aptechka 0.9.0 → 0.10.0
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/{Animation-BCA-DBje.cjs → Animation-BInSRYNr.cjs} +1 -1
- package/lib/{Animation-DrSYnbgb.js → Animation-uimN7sdT.js} +1 -1
- package/lib/{Composed-pnupzTOv.js → Composed-Fa7owymK.js} +1 -1
- package/lib/{Composed-7Fe7TW_T.cjs → Composed-Iihn8fT4.cjs} +1 -1
- package/lib/{Damped-CSEZ0qwp.cjs → Damped-Da3EnNN4.cjs} +1 -1
- package/lib/{Damped-C2FuK_3K.js → Damped-yrNXlkDE.js} +1 -1
- package/lib/{Derived-Dko3EP7m.cjs → Derived-D9VrDuf9.cjs} +1 -1
- package/lib/{Derived-CFnbeEgJ.js → Derived-DIWinC7Y.js} +1 -1
- package/lib/ElementConstructor-OK-6OPjh.cjs +1 -0
- package/lib/{ElementConstructor-CZKbNIQK.js → ElementConstructor-rValMo8f.js} +94 -88
- package/lib/{SourceManager-CmhlHGx7.js → SourceManager--L_rA28b.js} +1 -1
- package/lib/{SourceManager-DYnGpBi1.cjs → SourceManager-D6D2LVKf.cjs} +1 -1
- package/lib/{Store-kzJycezD.cjs → Store-Cr3VaD9G.cjs} +1 -1
- package/lib/{Store-Dsft7GtM.js → Store-Qr3SNOSf.js} +1 -1
- package/lib/{Tweened-BrD2cPSC.js → Tweened-CjgvoOwL.js} +1 -1
- package/lib/{Tweened-D6dAu8Zi.cjs → Tweened-DksN-Rz6.cjs} +1 -1
- package/lib/{Viewport-DRNfjjDY.cjs → Viewport-BBYt1Ivy.cjs} +1 -1
- package/lib/{Viewport-Ud7nellV.js → Viewport-Cgtq2I_K.js} +1 -1
- package/lib/{_createStore-Cf1MyeHa.cjs → _createStore-C75y9luu.cjs} +1 -1
- package/lib/_createStore-D3qHYaSz.js +12 -0
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- 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.d.ts +3 -3
- package/lib/canvas/index.js +4 -4
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +14 -13
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.d.ts +2 -2
- package/lib/connector/index.js +39 -34
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/{createStylesheet-Di9WRypw.cjs → createStylesheet-9nksoWW0.cjs} +1 -1
- package/lib/{createStylesheet-C2gpLy4r.js → createStylesheet-BrFGJ8Q7.js} +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/ElementConstructor.d.ts +6 -5
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +3 -3
- package/lib/en3/helpers/index.cjs +1 -1
- package/lib/en3/helpers/index.js +2 -2
- package/lib/en3/misc/index.cjs +1 -1
- package/lib/en3/misc/index.js +2 -2
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/{index-BtB-3MG7.js → index-3R8YL-P3.js} +22 -21
- package/lib/index-CyQAdqFu.cjs +9 -0
- package/lib/instantiate-BuVJ8pIJ.cjs +1 -0
- package/lib/{instantiate-BPZZn8jK.js → instantiate-TYteKsII.js} +7 -7
- package/lib/jsx/hooks/animation/createDamped.d.ts +3 -0
- package/lib/jsx/hooks/animation/createTweened.d.ts +3 -0
- package/lib/jsx/hooks/animation/index.cjs +1 -0
- package/lib/jsx/hooks/animation/index.d.ts +2 -0
- package/lib/jsx/hooks/animation/index.js +15 -0
- package/lib/jsx/hooks/basic/createRef.d.ts +3 -0
- package/lib/jsx/hooks/basic/onStoreChange.d.ts +3 -0
- package/lib/jsx/hooks/store/createCached.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerived.d.ts +1 -1
- package/lib/jsx/hooks/store/index.cjs +1 -1
- package/lib/jsx/hooks/store/index.d.ts +1 -0
- package/lib/jsx/hooks/store/index.js +20 -16
- package/lib/jsx/index.cjs +1 -1
- package/lib/jsx/index.d.ts +5 -3
- package/lib/jsx/index.js +73 -58
- package/lib/jsx/type.d.ts +10 -4
- 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 +4 -3
- package/lib/order/index.cjs +1 -1
- package/lib/order/index.d.ts +5 -4
- package/lib/order/index.js +1 -1
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +2 -2
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +3 -2
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +1 -1
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +7 -7
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/store/Cached.d.ts +13 -0
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +1 -1
- package/lib/store/index.js +66 -32
- package/lib/{tags-BBOGIzDK.cjs → tags-BosXYPYv.cjs} +1 -1
- package/lib/{tags-CefGDQtF.js → tags-D0kLlFdQ.js} +1 -1
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +3 -2
- package/lib/tweaker/index.cjs +2 -2
- package/lib/tweaker/index.js +6 -5
- package/lib/utils/bytes.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +122 -105
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +9 -1
- package/lib/ElementConstructor-9S0f1yAH.cjs +0 -1
- package/lib/Resource-BhF6Tj1p.js +0 -49
- package/lib/Resource-WCQEgLpB.cjs +0 -1
- package/lib/_createStore-Ck9bHolX.js +0 -12
- package/lib/index-DQo2-dnB.cjs +0 -9
- package/lib/instantiate-BWM-ipPW.cjs +0 -1
- package/lib/store/Keyed.d.ts +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var S=(i,s,t)=>{if(!s.has(i))throw TypeError("Cannot "+t)};var e=(i,s,t)=>(S(i,s,"read from private field"),t?t.call(i):s.get(i)),a=(i,s,t)=>{if(s.has(i))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(i):s.set(i,t)},h=(i,s,t,n)=>(S(i,s,"write to private field"),n?n.call(i,t):s.set(i,t),t);var C=(i,s,t)=>(S(i,s,"access private method"),t);const M=require("./Store-
|
|
1
|
+
"use strict";var S=(i,s,t)=>{if(!s.has(i))throw TypeError("Cannot "+t)};var e=(i,s,t)=>(S(i,s,"read from private field"),t?t.call(i):s.get(i)),a=(i,s,t)=>{if(s.has(i))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(i):s.set(i,t)},h=(i,s,t,n)=>(S(i,s,"write to private field"),n?n.call(i,t):s.set(i,t),t);var C=(i,s,t)=>(S(i,s,"access private method"),t);const M=require("./Store-Cr3VaD9G.cjs"),y=require("./math-GDWEqu7y.cjs"),m=require("./polyfills-CM4SCDTt.cjs"),I=require("./ticker/index.cjs"),z=require("./order/index.cjs");var f,b,A,c,F,r,u,l,g,d,q,P,x;class N extends M.Store{constructor(t,n){super(t||0,n);a(this,q);a(this,f,void 0);a(this,b,z.TICK_ORDER.ANIMATION);a(this,A,void 0);a(this,c,new M.Store(!1));a(this,F,0);a(this,r,0);a(this,u,-1/0);a(this,l,1/0);a(this,g,0);a(this,d,null);a(this,x,t=>{this.handleAnimationFrame(t)});h(this,r,this.current)}get direction(){return e(this,F)}get target(){return e(this,r)}get min(){return e(this,u)}set min(t){h(this,u,t),this.set(e(this,r),{equalize:!0})}get max(){return e(this,l)}set max(t){h(this,l,t),this.set(e(this,r),{equalize:!0})}get from(){return e(this,g)}get isRunning(){return e(this,c)}get delta(){return Math.abs(e(this,r)-e(this,g))}get deltaProgress(){return this.delta?m.preciseNumber(Math.abs(this.current-e(this,g))/this.delta,6):0}get distance(){return Math.abs(e(this,l)-e(this,u))}get distanceProgress(){return this.distance?m.preciseNumber(Math.abs(this.current-e(this,u))/this.distance,6):0}set(t,n){(e(this,r)!==t||n!=null&&n.restart)&&(h(this,d,t),this.updateOptions(n),h(this,d,null),e(this,r)!==this.current&&this.start())}shift(t,n){this.set(e(this,r)+t,n)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,c).current||(e(this,c).current=!0,I.ticker.subscribe(e(this,x),{maxFPS:e(this,f),order:e(this,b),culling:e(this,A)}))}unlistenAnimationFrame(){e(this,c).current&&(e(this,c).current=!1,I.ticker.unsubscribe(e(this,x)))}updateOptions(t){h(this,f,m.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,f))),h(this,b,m.nullishCoalescing(t==null?void 0:t.order,e(this,b))),h(this,A,m.nullishCoalescing(t==null?void 0:t.culling,e(this,A))),h(this,u,m.nullishCoalescing(t==null?void 0:t.min,e(this,u))),h(this,l,m.nullishCoalescing(t==null?void 0:t.max,e(this,l))),C(this,q,P).call(this,typeof e(this,d)=="number"?e(this,d):e(this,r)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=e(this,r)),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=this.initial)}start(){this.listenAnimationFrame()}}f=new WeakMap,b=new WeakMap,A=new WeakMap,c=new WeakMap,F=new WeakMap,r=new WeakMap,u=new WeakMap,l=new WeakMap,g=new WeakMap,d=new WeakMap,q=new WeakSet,P=function(t){h(this,F,Math.sign(t-e(this,r))),h(this,r,y.clamp(t,e(this,u),e(this,l))),h(this,g,this.current)},x=new WeakMap;exports.Animation=N;
|
|
@@ -8,7 +8,7 @@ var e = (i, r, t) => (S(i, r, "read from private field"), t ? t.call(i) : r.get(
|
|
|
8
8
|
r instanceof WeakSet ? r.add(i) : r.set(i, t);
|
|
9
9
|
}, h = (i, r, t, u) => (S(i, r, "write to private field"), u ? u.call(i, t) : r.set(i, t), t);
|
|
10
10
|
var I = (i, r, t) => (S(i, r, "access private method"), t);
|
|
11
|
-
import { S as P } from "./Store-
|
|
11
|
+
import { S as P } from "./Store-Qr3SNOSf.js";
|
|
12
12
|
import { c as R } from "./math-BOBiC4TN.js";
|
|
13
13
|
import { p as q, n as F } from "./polyfills-X6KXuHg-.js";
|
|
14
14
|
import { ticker as z } from "./ticker/index.js";
|
|
@@ -8,7 +8,7 @@ var t = (s, r, o) => (n(s, r, "read from private field"), o ? o.call(s) : r.get(
|
|
|
8
8
|
r instanceof WeakSet ? r.add(s) : r.set(s, o);
|
|
9
9
|
};
|
|
10
10
|
import { d as h } from "./function-C10DGppn.js";
|
|
11
|
-
import { S as b } from "./Store-
|
|
11
|
+
import { S as b } from "./Store-Qr3SNOSf.js";
|
|
12
12
|
var e;
|
|
13
13
|
class f extends b {
|
|
14
14
|
constructor(o, u, p) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var p=(s,e,r)=>{if(!e.has(s))throw TypeError("Cannot "+r)};var c=(s,e,r)=>(p(s,e,"read from private field"),r?r.call(s):e.get(s)),t=(s,e,r)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,r)};const b=require("./function-MthRj-GJ.cjs"),d=require("./Store-
|
|
1
|
+
"use strict";var p=(s,e,r)=>{if(!e.has(s))throw TypeError("Cannot "+r)};var c=(s,e,r)=>(p(s,e,"read from private field"),r?r.call(s):e.get(s)),t=(s,e,r)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,r)};const b=require("./function-MthRj-GJ.cjs"),d=require("./Store-Cr3VaD9G.cjs");var o;class l extends d.Store{constructor(r,u,n){super(null,n);t(this,o,[]);const i=b.debounce(()=>{this.current=u()},0);r.forEach(h=>{c(this,o).push(h.subscribe(()=>{i()}))})}close(){super.close(),c(this,o).forEach(r=>r())}}o=new WeakMap;exports.Composed=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var F=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var d=(e,t,s)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,g=(e,t)=>{for(var s in t||(t={}))C.call(t,s)&&d(e,s,t[s]);if(l)for(var s of l(t))O.call(t,s)&&d(e,s,t[s]);return e},f=(e,t)=>b(e,y(t));var p=(e,t,s)=>{if(!t.has(e))throw TypeError("Cannot "+s)};var a=(e,t,s)=>(p(e,t,"read from private field"),s?s.call(e):t.get(e)),u=(e,t,s)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,s)},n=(e,t,s,r)=>(p(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s);const v=require("./math-GDWEqu7y.cjs"),c=require("./polyfills-CM4SCDTt.cjs"),w=require("./Animation-
|
|
1
|
+
"use strict";var F=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var d=(e,t,s)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,g=(e,t)=>{for(var s in t||(t={}))C.call(t,s)&&d(e,s,t[s]);if(l)for(var s of l(t))O.call(t,s)&&d(e,s,t[s]);return e},f=(e,t)=>b(e,y(t));var p=(e,t,s)=>{if(!t.has(e))throw TypeError("Cannot "+s)};var a=(e,t,s)=>(p(e,t,"read from private field"),s?s.call(e):t.get(e)),u=(e,t,s)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,s)},n=(e,t,s,r)=>(p(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s);const v=require("./math-GDWEqu7y.cjs"),c=require("./polyfills-CM4SCDTt.cjs"),w=require("./Animation-BInSRYNr.cjs");var i,h;class B extends w.Animation{constructor(s,r){super(s,r);u(this,i,void 0);u(this,h,void 0);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(f(g({},r),{equalize:!0}))}get velocity(){return a(this,i)}get speed(){return a(this,h)}updateOptions(s){this.damping=c.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=c.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=c.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){c.preciseNumber(this.current,6)===c.preciseNumber(this.target,6)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,q=Math.abs(r-this.target);n(this,h,q/s.timeBetweenFrames);const m=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const A=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+A/this.mass*m),this.current+=a(this,i)*m}else this.current=v.damp(this.current,this.target,this.damping,m)}}i=new WeakMap,h=new WeakMap;exports.Damped=B;
|
|
@@ -21,7 +21,7 @@ var a = (e, s, t) => (p(e, s, "read from private field"), t ? t.call(e) : s.get(
|
|
|
21
21
|
}, m = (e, s, t, r) => (p(e, s, "write to private field"), r ? r.call(e, t) : s.set(e, t), t);
|
|
22
22
|
import { d as B } from "./math-BOBiC4TN.js";
|
|
23
23
|
import { n as u, p as A } from "./polyfills-X6KXuHg-.js";
|
|
24
|
-
import { A as D } from "./Animation-
|
|
24
|
+
import { A as D } from "./Animation-uimN7sdT.js";
|
|
25
25
|
var i, h;
|
|
26
26
|
class N extends D {
|
|
27
27
|
constructor(t, r) {
|
|
@@ -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-Cr3VaD9G.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;
|
|
@@ -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-Qr3SNOSf.js";
|
|
11
11
|
var t;
|
|
12
12
|
class d extends p {
|
|
13
13
|
constructor(e, c, l) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var Z=(f,e,t)=>{if(!e.has(f))throw TypeError("Cannot "+t)};var i=(f,e,t)=>(Z(f,e,"read from private field"),t?t.call(f):e.get(f)),a=(f,e,t)=>{if(e.has(f))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(f):e.set(f,t)},E=(f,e,t,s)=>(Z(f,e,"write to private field"),s?s.call(f,t):e.set(f,t),t);var r=(f,e,t)=>(Z(f,e,"access private method"),t);const y=require("./Store-Cr3VaD9G.cjs"),he=require("./browser-CpzFX2xg.cjs"),de=require("./object-CCiXnER2.cjs"),_=require("./string-DhgS_iFl.cjs"),we=require("./connector/index.cjs"),Le=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view"]);var o,u,l,w,m,g,P,ue,B,me,R,ge,L,j,T,ee,G,Se,$,Ee,W,ye,z,be,A,te,v,se,J,Ce,k,ie,M,ne,V,pe,x,oe,p,H,D,re,q,ae,F,ce,I,K;const U=class U{constructor(...e){a(this,P);a(this,B);a(this,R);a(this,L);a(this,T);a(this,G);a(this,$);a(this,W);a(this,z);a(this,A);a(this,v);a(this,J);a(this,k);a(this,M);a(this,V);a(this,x);a(this,p);a(this,D);a(this,q);a(this,F);a(this,o,null);a(this,u,new Set);a(this,l,new Set);a(this,w,void 0);a(this,m,void 0);a(this,g,void 0);a(this,I,e=>{i(this,u).forEach(t=>{t(e)}),i(this,u).clear()});a(this,K,(e,t)=>{i(this,l).forEach(s=>{s(e,t)}),i(this,l).clear(),r(this,M,ne).call(this)});if(he.isBrowser){const t=e[0],s=e[1];E(this,o,r(this,P,ue).call(this,t,s==null?void 0:s.forceSvg)),r(this,R,ge).call(this,s)}}get node(){return i(this,o)}set node(e){var t;r(this,M,ne).call(this),E(this,o,e),(t=i(this,w))==null||t.call(this),i(this,o)instanceof Element&&E(this,m,[...i(this,o).querySelectorAll("store-root")]),r(this,k,ie).call(this),r(this,L,j).call(this)}};o=new WeakMap,u=new WeakMap,l=new WeakMap,w=new WeakMap,m=new WeakMap,g=new WeakMap,P=new WeakSet,ue=function(e,t){let s=null;if(e instanceof Node)s=e;else if(typeof e=="string")if(!e.includes("<")&&e.includes("-"))s=new(customElements.get(e));else if(e.includes("<")){const n=document.createElement("div");n.innerHTML=e,s=n.firstElementChild}else Le.has(e)||t?s=document.createElementNS("http://www.w3.org/2000/svg",e):s=document.createElement(e);else s=document.createElement("div");return s},B=new WeakSet,me=function(e){return e instanceof HTMLElement||e instanceof SVGElement},R=new WeakSet,ge=function(e){if(!e)return;const t=r(this,B,me).call(this,i(this,o)),s=e.ref;delete e.ref,e!=null&&e.onConnect&&(i(this,u).add(e.onConnect),delete e.onConnect),e!=null&&e.onDisconnect&&(i(this,l).add(e.onDisconnect),delete e.onDisconnect);let n,c;for(const h in e){const d=e[h];h==="class"&&t?r(this,T,ee).call(this,d):h==="style"&&t?r(this,W,ye).call(this,d):h==="lightChildren"?r(this,p,H).call(this,i(this,o),d):h==="children"?r(this,p,H).call(this,i(this,o)instanceof Element?i(this,o).shadowRoot||i(this,o):i(this,o),d):h==="connectedClass"?i(this,u).add(()=>{requestAnimationFrame(()=>{i(this,o).classList.add(typeof d=="boolean"?"connected":d)})}):h.startsWith("on")?(c||(c={}),c[h]=d):(n||(n={}),n[h]=d)}r(this,V,pe).call(this,n),r(this,J,Ce).call(this,c),s&&(typeof s=="function"?s(i(this,o)):s.current=i(this,o)),r(this,L,j).call(this)},L=new WeakSet,j=function(){if(he.isBrowser&&(i(this,l).size||i(this,u).size)){const e=i(this,o)instanceof DocumentFragment?i(this,o).firstChild:i(this,o);E(this,w,we.connector.subscribe(e,{connectCallback:i(this,I),disconnectCallback:i(this,K),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},T=new WeakSet,ee=function(e){if(e){if(typeof e=="string")i(this,o).classList.add(e);else if(Array.isArray(e))e.forEach(t=>{t&&r(this,T,ee).call(this,t)});else if(typeof e=="object")if(e instanceof y.Store)r(this,G,Se).call(this,e);else for(const t in e){const s=e[t];s instanceof y.Store?r(this,$,Ee).call(this,t,s):s?i(this,o).classList.add(t):i(this,o).classList.remove(t)}}else return},G=new WeakSet,Se=function(e){i(this,l).add(e.subscribe(({current:t,previous:s})=>{s&&[s].flat().forEach(n=>{n&&i(this,o).classList.remove(n)}),t&&[t].flat().forEach(n=>{n&&i(this,o).classList.add(n)})}))},$=new WeakSet,Ee=function(e,t){i(this,l).add(t.subscribe(({current:s})=>{s?i(this,o).classList.add(e):i(this,o).classList.remove(e)}))},W=new WeakSet,ye=function(e){if(!e)return;i(this,o).tagName==="style"||i(this,o).tagName==="STYLE"?r(this,A,te).call(this,e):r(this,z,be).call(this,e)},z=new WeakSet,be=function(e){for(const t in e){const s=t,n=e[s];n instanceof y.Store?i(this,l).add(n.subscribe(({current:c})=>{r(this,v,se).call(this,s,c)})):r(this,v,se).call(this,s,n)}},A=new WeakSet,te=function(e){for(const t in e){const s=e[t];if(typeof s=="object"&&!(s instanceof y.Store))i(this,o).appendChild(document.createTextNode(`${t} {`)),r(this,A,te).call(this,s),i(this,o).appendChild(document.createTextNode("}"));else if(s instanceof y.Store){const n=document.createTextNode("");i(this,l).add(s.subscribe(c=>{c.current?n.nodeValue=`${_.camelToKebab(t)}: ${c.current};`:n.nodeValue=""})),i(this,o).appendChild(n)}else i(this,o).appendChild(document.createTextNode(`${_.camelToKebab(t)}: ${s};`))}},v=new WeakSet,se=function(e,t){e.includes("--")?t?i(this,o).style.setProperty(e,t.toString()):i(this,o).style.removeProperty(e):t?i(this,o).style[e]=t.toString():i(this,o).style[e]=""},J=new WeakSet,Ce=function(e){if(e){i(this,g)||E(this,g,[]);for(const t in e){const s=t,n=_.uncapitalize(s.split("on").slice(1).join("on")),c=e[s];typeof c=="object"?i(this,g).push({name:n,callback:c.callback,options:c.options}):typeof c=="function"&&i(this,g).push({name:n,callback:c})}r(this,k,ie).call(this)}},k=new WeakSet,ie=function(){var e;(e=i(this,g))==null||e.forEach(t=>{i(this,o).addEventListener(t.name,t.callback,t.options)})},M=new WeakSet,ne=function(){var e;(e=i(this,g))==null||e.forEach(t=>{i(this,o).removeEventListener(t.name,t.callback,t.options)})},V=new WeakSet,pe=function(e){for(const t in e){const s=e[t];s instanceof y.Store?i(this,l).add(s.subscribe(({current:n})=>{r(this,x,oe).call(this,t,n)})):r(this,x,oe).call(this,t,s)}},x=new WeakSet,oe=function(e,t){var n,c;const s=i(this,o);e in s&&!((c=(n=s.constructor)==null?void 0:n.observedAttributes)!=null&&c.includes(e))?t!=null&&(s[e]=t.toString()):t!=null&&s.setAttribute(e,t.toString())},p=new WeakSet,H=function(e,t){t&&(t=[t].flat(),t.forEach(s=>{if(s instanceof y.Store){const n=document.createElement("div");n.style.display="contents",e.appendChild(n),i(this,m)||E(this,m,[]);const c=i(this,m).length;n.setAttribute("store-root",""),i(this,m).push(n),i(this,l).add(s.subscribe(({current:h,previous:d})=>{const b=i(this,m)[c];b.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const Y=Array.from(b.childNodes),fe=Array.isArray(h)?h:[h],Ne=Array.isArray(d)?d:[d],le=[],Q=[];Y.length&&Ne.forEach((S,N)=>{fe.includes(S)?Q.push(S):le.push(Y[N])}),fe.forEach((S,N)=>{if(Q[N]!=null){if(S!==Q[N]){const C=r(this,q,ae).call(this,S),X=Y[N];C instanceof Node&&!X.isEqualNode(C)?b.replaceChild(C,X):b.removeChild(X)}}else{const C=r(this,q,ae).call(this,S);C instanceof Node&&n.appendChild(C)}}),le.forEach(S=>{b.removeChild(S)}),b.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(s instanceof U)r(this,D,re).call(this,e,s.node);else if(s instanceof Function)r(this,p,H).call(this,e,de.isESClass(s)?new s:s());else{const n=r(this,F,ce).call(this,s);n instanceof Node&&r(this,D,re).call(this,e,n)}}))},D=new WeakSet,re=function(e,t){!(e instanceof ShadowRoot)&&t instanceof HTMLElement&&t.tagName==="STYLE"?(i(this,u).add(()=>{[...document.head.querySelectorAll("style")].find(n=>n.outerHTML===t.outerHTML)||document.head.appendChild(t)}),i(this,l).add(()=>{t.remove()})):e.appendChild(t)},q=new WeakSet,ae=function(e){return e instanceof U?e.node:typeof e=="function"?de.isESClass(e)?new e:e():r(this,F,ce).call(this,e)},F=new WeakSet,ce=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 document.createTextNode(t)}else return},I=new WeakMap,K=new WeakMap;let O=U;exports.ElementConstructor=O;
|
|
@@ -6,9 +6,9 @@ var i = (f, e, t) => (Z(f, e, "read from private field"), t ? t.call(f) : e.get(
|
|
|
6
6
|
if (e.has(f))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
e instanceof WeakSet ? e.add(f) : e.set(f, t);
|
|
9
|
-
},
|
|
9
|
+
}, E = (f, e, t, s) => (Z(f, e, "write to private field"), s ? s.call(f, t) : e.set(f, t), t);
|
|
10
10
|
var a = (f, e, t) => (Z(f, e, "access private method"), t);
|
|
11
|
-
import { S as
|
|
11
|
+
import { S as p } from "./Store-Qr3SNOSf.js";
|
|
12
12
|
import { i as fe } from "./browser-0zX67oeU.js";
|
|
13
13
|
import { i as le } from "./object-D6MVWB4l.js";
|
|
14
14
|
import { c as he, u as we } from "./string-f0Dnk0L1.js";
|
|
@@ -77,7 +77,7 @@ const Te = /* @__PURE__ */ new Set([
|
|
|
77
77
|
"tspan",
|
|
78
78
|
"view"
|
|
79
79
|
]);
|
|
80
|
-
var o,
|
|
80
|
+
var o, m, l, w, u, g, R, me, B, ue, G, ge, L, _, T, O, $, ye, q, Ee, W, pe, z, Ce, A, j, v, ee, J, be, k, te, M, se, V, Se, x, ie, S, P, D, ne, F, oe, H, ae, I, U;
|
|
81
81
|
const Y = class Y {
|
|
82
82
|
constructor(...e) {
|
|
83
83
|
r(this, R);
|
|
@@ -85,40 +85,40 @@ const Y = class Y {
|
|
|
85
85
|
r(this, G);
|
|
86
86
|
r(this, L);
|
|
87
87
|
r(this, T);
|
|
88
|
-
r(this, W);
|
|
89
88
|
r(this, $);
|
|
90
89
|
r(this, q);
|
|
90
|
+
r(this, W);
|
|
91
91
|
r(this, z);
|
|
92
|
-
r(this, v);
|
|
93
92
|
r(this, A);
|
|
94
|
-
r(this,
|
|
93
|
+
r(this, v);
|
|
94
|
+
r(this, J);
|
|
95
95
|
r(this, k);
|
|
96
96
|
r(this, M);
|
|
97
|
-
r(this,
|
|
98
|
-
r(this, D);
|
|
99
|
-
r(this, N);
|
|
97
|
+
r(this, V);
|
|
100
98
|
r(this, x);
|
|
101
|
-
r(this,
|
|
99
|
+
r(this, S);
|
|
100
|
+
r(this, D);
|
|
102
101
|
r(this, F);
|
|
102
|
+
r(this, H);
|
|
103
103
|
r(this, o, null);
|
|
104
|
-
r(this,
|
|
104
|
+
r(this, m, /* @__PURE__ */ new Set());
|
|
105
105
|
r(this, l, /* @__PURE__ */ new Set());
|
|
106
106
|
r(this, w, void 0);
|
|
107
|
-
r(this,
|
|
108
|
-
r(this,
|
|
109
|
-
r(this,
|
|
110
|
-
i(this,
|
|
111
|
-
e();
|
|
112
|
-
}), i(this, E).clear();
|
|
113
|
-
});
|
|
114
|
-
r(this, U, (e) => {
|
|
115
|
-
i(this, l).forEach((t) => {
|
|
107
|
+
r(this, u, void 0);
|
|
108
|
+
r(this, g, void 0);
|
|
109
|
+
r(this, I, (e) => {
|
|
110
|
+
i(this, m).forEach((t) => {
|
|
116
111
|
t(e);
|
|
112
|
+
}), i(this, m).clear();
|
|
113
|
+
});
|
|
114
|
+
r(this, U, (e, t) => {
|
|
115
|
+
i(this, l).forEach((s) => {
|
|
116
|
+
s(e, t);
|
|
117
117
|
}), i(this, l).clear(), a(this, M, se).call(this);
|
|
118
118
|
});
|
|
119
119
|
if (fe) {
|
|
120
120
|
const t = e[0], s = e[1];
|
|
121
|
-
|
|
121
|
+
E(this, o, a(this, R, me).call(this, t, s == null ? void 0 : s.forceSvg)), a(this, G, ge).call(this, s);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
get node() {
|
|
@@ -126,12 +126,12 @@ const Y = class Y {
|
|
|
126
126
|
}
|
|
127
127
|
set node(e) {
|
|
128
128
|
var t;
|
|
129
|
-
a(this, M, se).call(this),
|
|
129
|
+
a(this, M, se).call(this), E(this, o, e), (t = i(this, w)) == null || t.call(this), i(this, o) instanceof Element && E(this, u, [
|
|
130
130
|
...i(this, o).querySelectorAll("store-root")
|
|
131
131
|
]), a(this, k, te).call(this), a(this, L, _).call(this);
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
-
o = new WeakMap(),
|
|
134
|
+
o = new WeakMap(), m = new WeakMap(), l = new WeakMap(), w = new WeakMap(), u = new WeakMap(), g = new WeakMap(), R = new WeakSet(), me = function(e, t) {
|
|
135
135
|
let s = null;
|
|
136
136
|
if (e instanceof Node)
|
|
137
137
|
s = e;
|
|
@@ -155,20 +155,26 @@ o = new WeakMap(), E = new WeakMap(), l = new WeakMap(), w = new WeakMap(), d =
|
|
|
155
155
|
if (!e)
|
|
156
156
|
return;
|
|
157
157
|
const t = a(this, B, ue).call(this, i(this, o)), s = e.ref;
|
|
158
|
-
delete e.ref, e != null && e.onConnect && (i(this,
|
|
158
|
+
delete e.ref, e != null && e.onConnect && (i(this, m).add(e.onConnect), delete e.onConnect), e != null && e.onDisconnect && (i(this, l).add(e.onDisconnect), delete e.onDisconnect);
|
|
159
159
|
let n, c;
|
|
160
160
|
for (const h in e) {
|
|
161
|
-
const
|
|
162
|
-
h === "class" && t ? a(this, T, O).call(this,
|
|
161
|
+
const d = e[h];
|
|
162
|
+
h === "class" && t ? a(this, T, O).call(this, d) : h === "style" && t ? a(this, W, pe).call(this, d) : h === "lightChildren" ? a(this, S, P).call(this, i(this, o), d) : h === "children" ? a(this, S, P).call(this, i(this, o) instanceof Element ? i(this, o).shadowRoot || i(this, o) : i(this, o), d) : h === "connectedClass" ? i(this, m).add(() => {
|
|
163
|
+
requestAnimationFrame(() => {
|
|
164
|
+
i(this, o).classList.add(
|
|
165
|
+
typeof d == "boolean" ? "connected" : d
|
|
166
|
+
);
|
|
167
|
+
});
|
|
168
|
+
}) : h.startsWith("on") ? (c || (c = {}), c[h] = d) : (n || (n = {}), n[h] = d);
|
|
163
169
|
}
|
|
164
|
-
a(this,
|
|
170
|
+
a(this, V, Se).call(this, n), a(this, J, be).call(this, c), s && (typeof s == "function" ? s(i(this, o)) : s.current = i(this, o)), a(this, L, _).call(this);
|
|
165
171
|
}, L = new WeakSet(), _ = function() {
|
|
166
|
-
if (fe && (i(this, l).size || i(this,
|
|
172
|
+
if (fe && (i(this, l).size || i(this, m).size)) {
|
|
167
173
|
const e = i(this, o) instanceof DocumentFragment ? i(this, o).firstChild : i(this, o);
|
|
168
|
-
|
|
174
|
+
E(this, w, Le.subscribe(
|
|
169
175
|
e,
|
|
170
176
|
{
|
|
171
|
-
connectCallback: i(this,
|
|
177
|
+
connectCallback: i(this, I),
|
|
172
178
|
disconnectCallback: i(this, U),
|
|
173
179
|
unsubscribeAfterDisconnect: !0,
|
|
174
180
|
maxWaitSec: 20
|
|
@@ -181,19 +187,19 @@ o = new WeakMap(), E = new WeakMap(), l = new WeakMap(), w = new WeakMap(), d =
|
|
|
181
187
|
i(this, o).classList.add(e);
|
|
182
188
|
else if (Array.isArray(e))
|
|
183
189
|
e.forEach((t) => {
|
|
184
|
-
a(this, T, O).call(this, t);
|
|
190
|
+
t && a(this, T, O).call(this, t);
|
|
185
191
|
});
|
|
186
192
|
else if (typeof e == "object")
|
|
187
|
-
if (e instanceof
|
|
188
|
-
a(this,
|
|
193
|
+
if (e instanceof p)
|
|
194
|
+
a(this, $, ye).call(this, e);
|
|
189
195
|
else
|
|
190
196
|
for (const t in e) {
|
|
191
197
|
const s = e[t];
|
|
192
|
-
s instanceof
|
|
198
|
+
s instanceof p ? a(this, q, Ee).call(this, t, s) : s ? i(this, o).classList.add(t) : i(this, o).classList.remove(t);
|
|
193
199
|
}
|
|
194
200
|
} else
|
|
195
201
|
return;
|
|
196
|
-
},
|
|
202
|
+
}, $ = new WeakSet(), ye = function(e) {
|
|
197
203
|
i(this, l).add(
|
|
198
204
|
e.subscribe(({ current: t, previous: s }) => {
|
|
199
205
|
s && [s].flat().forEach((n) => {
|
|
@@ -203,33 +209,33 @@ o = new WeakMap(), E = new WeakMap(), l = new WeakMap(), w = new WeakMap(), d =
|
|
|
203
209
|
});
|
|
204
210
|
})
|
|
205
211
|
);
|
|
206
|
-
},
|
|
212
|
+
}, q = new WeakSet(), Ee = function(e, t) {
|
|
207
213
|
i(this, l).add(
|
|
208
214
|
t.subscribe(({ current: s }) => {
|
|
209
215
|
s ? i(this, o).classList.add(e) : i(this, o).classList.remove(e);
|
|
210
216
|
})
|
|
211
217
|
);
|
|
212
|
-
},
|
|
218
|
+
}, W = new WeakSet(), pe = function(e) {
|
|
213
219
|
if (!e)
|
|
214
220
|
return;
|
|
215
|
-
i(this, o).tagName === "style" || i(this, o).tagName === "STYLE" ? a(this,
|
|
216
|
-
}, z = new WeakSet(),
|
|
221
|
+
i(this, o).tagName === "style" || i(this, o).tagName === "STYLE" ? a(this, A, j).call(this, e) : a(this, z, Ce).call(this, e);
|
|
222
|
+
}, z = new WeakSet(), Ce = function(e) {
|
|
217
223
|
for (const t in e) {
|
|
218
224
|
const s = t, n = e[s];
|
|
219
|
-
n instanceof
|
|
225
|
+
n instanceof p ? i(this, l).add(
|
|
220
226
|
n.subscribe(({ current: c }) => {
|
|
221
|
-
a(this,
|
|
227
|
+
a(this, v, ee).call(this, s, c);
|
|
222
228
|
})
|
|
223
|
-
) : a(this,
|
|
229
|
+
) : a(this, v, ee).call(this, s, n);
|
|
224
230
|
}
|
|
225
|
-
},
|
|
231
|
+
}, A = new WeakSet(), j = function(e) {
|
|
226
232
|
for (const t in e) {
|
|
227
233
|
const s = e[t];
|
|
228
|
-
if (typeof s == "object" && !(s instanceof
|
|
234
|
+
if (typeof s == "object" && !(s instanceof p))
|
|
229
235
|
i(this, o).appendChild(
|
|
230
236
|
document.createTextNode(`${t} {`)
|
|
231
|
-
), a(this,
|
|
232
|
-
else if (s instanceof
|
|
237
|
+
), a(this, A, j).call(this, s), i(this, o).appendChild(document.createTextNode("}"));
|
|
238
|
+
else if (s instanceof p) {
|
|
233
239
|
const n = document.createTextNode("");
|
|
234
240
|
i(this, l).add(
|
|
235
241
|
s.subscribe((c) => {
|
|
@@ -241,20 +247,20 @@ o = new WeakMap(), E = new WeakMap(), l = new WeakMap(), w = new WeakMap(), d =
|
|
|
241
247
|
document.createTextNode(`${he(t)}: ${s};`)
|
|
242
248
|
);
|
|
243
249
|
}
|
|
244
|
-
},
|
|
250
|
+
}, v = new WeakSet(), ee = function(e, t) {
|
|
245
251
|
e.includes("--") ? t ? i(this, o).style.setProperty(e, t.toString()) : i(this, o).style.removeProperty(e) : t ? i(this, o).style[e] = t.toString() : i(this, o).style[e] = "";
|
|
246
|
-
},
|
|
252
|
+
}, J = new WeakSet(), be = function(e) {
|
|
247
253
|
if (e) {
|
|
248
|
-
i(this,
|
|
254
|
+
i(this, g) || E(this, g, []);
|
|
249
255
|
for (const t in e) {
|
|
250
256
|
const s = t, n = we(
|
|
251
257
|
s.split("on").slice(1).join("on")
|
|
252
258
|
), c = e[s];
|
|
253
|
-
typeof c == "object" ? i(this,
|
|
259
|
+
typeof c == "object" ? i(this, g).push({
|
|
254
260
|
name: n,
|
|
255
261
|
callback: c.callback,
|
|
256
262
|
options: c.options
|
|
257
|
-
}) : typeof c == "function" && i(this,
|
|
263
|
+
}) : typeof c == "function" && i(this, g).push({
|
|
258
264
|
name: n,
|
|
259
265
|
callback: c
|
|
260
266
|
});
|
|
@@ -263,7 +269,7 @@ o = new WeakMap(), E = new WeakMap(), l = new WeakMap(), w = new WeakMap(), d =
|
|
|
263
269
|
}
|
|
264
270
|
}, k = new WeakSet(), te = function() {
|
|
265
271
|
var e;
|
|
266
|
-
(e = i(this,
|
|
272
|
+
(e = i(this, g)) == null || e.forEach((t) => {
|
|
267
273
|
i(this, o).addEventListener(
|
|
268
274
|
t.name,
|
|
269
275
|
t.callback,
|
|
@@ -272,57 +278,57 @@ o = new WeakMap(), E = new WeakMap(), l = new WeakMap(), w = new WeakMap(), d =
|
|
|
272
278
|
});
|
|
273
279
|
}, M = new WeakSet(), se = function() {
|
|
274
280
|
var e;
|
|
275
|
-
(e = i(this,
|
|
281
|
+
(e = i(this, g)) == null || e.forEach((t) => {
|
|
276
282
|
i(this, o).removeEventListener(
|
|
277
283
|
t.name,
|
|
278
284
|
t.callback,
|
|
279
285
|
t.options
|
|
280
286
|
);
|
|
281
287
|
});
|
|
282
|
-
},
|
|
288
|
+
}, V = new WeakSet(), Se = function(e) {
|
|
283
289
|
for (const t in e) {
|
|
284
290
|
const s = e[t];
|
|
285
|
-
s instanceof
|
|
291
|
+
s instanceof p ? i(this, l).add(
|
|
286
292
|
s.subscribe(({ current: n }) => {
|
|
287
|
-
a(this,
|
|
293
|
+
a(this, x, ie).call(this, t, n);
|
|
288
294
|
})
|
|
289
|
-
) : a(this,
|
|
295
|
+
) : a(this, x, ie).call(this, t, s);
|
|
290
296
|
}
|
|
291
|
-
},
|
|
297
|
+
}, x = new WeakSet(), ie = function(e, t) {
|
|
292
298
|
var n, c;
|
|
293
299
|
const s = i(this, o);
|
|
294
300
|
e in s && !((c = (n = s.constructor) == null ? void 0 : n.observedAttributes) != null && c.includes(e)) ? t != null && (s[e] = t.toString()) : t != null && s.setAttribute(e, t.toString());
|
|
295
|
-
},
|
|
301
|
+
}, S = new WeakSet(), P = function(e, t) {
|
|
296
302
|
t && (t = [t].flat(), t.forEach((s) => {
|
|
297
|
-
if (s instanceof
|
|
303
|
+
if (s instanceof p) {
|
|
298
304
|
const n = document.createElement("div");
|
|
299
|
-
n.style.display = "contents", e.appendChild(n), i(this,
|
|
300
|
-
const c = i(this,
|
|
301
|
-
n.setAttribute("store-root", ""), i(this,
|
|
302
|
-
s.subscribe(({ current: h, previous:
|
|
303
|
-
const
|
|
304
|
-
|
|
305
|
+
n.style.display = "contents", e.appendChild(n), i(this, u) || E(this, u, []);
|
|
306
|
+
const c = i(this, u).length;
|
|
307
|
+
n.setAttribute("store-root", ""), i(this, u).push(n), i(this, l).add(
|
|
308
|
+
s.subscribe(({ current: h, previous: d }) => {
|
|
309
|
+
const C = i(this, u)[c];
|
|
310
|
+
C.dispatchEvent(
|
|
305
311
|
new CustomEvent("beforeChildrenChange", {
|
|
306
312
|
bubbles: !0,
|
|
307
313
|
composed: !0
|
|
308
314
|
})
|
|
309
315
|
);
|
|
310
|
-
const K = Array.from(
|
|
311
|
-
Ne.forEach((
|
|
312
|
-
|
|
313
|
-
}), re.forEach((
|
|
314
|
-
if (Q[
|
|
315
|
-
if (
|
|
316
|
-
const b = a(this,
|
|
317
|
-
b instanceof Node
|
|
316
|
+
const K = Array.from(C.childNodes), re = Array.isArray(h) ? h : [h], Ne = Array.isArray(d) ? d : [d], ce = [], Q = [];
|
|
317
|
+
K.length && Ne.forEach((y, N) => {
|
|
318
|
+
re.includes(y) ? Q.push(y) : ce.push(K[N]);
|
|
319
|
+
}), re.forEach((y, N) => {
|
|
320
|
+
if (Q[N] != null) {
|
|
321
|
+
if (y !== Q[N]) {
|
|
322
|
+
const b = a(this, F, oe).call(this, y), X = K[N];
|
|
323
|
+
b instanceof Node && !X.isEqualNode(b) ? C.replaceChild(b, X) : C.removeChild(X);
|
|
318
324
|
}
|
|
319
325
|
} else {
|
|
320
|
-
const b = a(this,
|
|
326
|
+
const b = a(this, F, oe).call(this, y);
|
|
321
327
|
b instanceof Node && n.appendChild(b);
|
|
322
328
|
}
|
|
323
|
-
}), ce.forEach((
|
|
324
|
-
|
|
325
|
-
}),
|
|
329
|
+
}), ce.forEach((y) => {
|
|
330
|
+
C.removeChild(y);
|
|
331
|
+
}), C.dispatchEvent(
|
|
326
332
|
new CustomEvent("afterChildrenChange", {
|
|
327
333
|
bubbles: !0,
|
|
328
334
|
composed: !0
|
|
@@ -331,23 +337,23 @@ o = new WeakMap(), E = new WeakMap(), l = new WeakMap(), w = new WeakMap(), d =
|
|
|
331
337
|
})
|
|
332
338
|
);
|
|
333
339
|
} else if (s instanceof Y)
|
|
334
|
-
a(this,
|
|
340
|
+
a(this, D, ne).call(this, e, s.node);
|
|
335
341
|
else if (s instanceof Function)
|
|
336
|
-
a(this,
|
|
342
|
+
a(this, S, P).call(this, e, le(s) ? new s() : s());
|
|
337
343
|
else {
|
|
338
|
-
const n = a(this,
|
|
339
|
-
n instanceof Node && a(this,
|
|
344
|
+
const n = a(this, H, ae).call(this, s);
|
|
345
|
+
n instanceof Node && a(this, D, ne).call(this, e, n);
|
|
340
346
|
}
|
|
341
347
|
}));
|
|
342
|
-
},
|
|
343
|
-
!(e instanceof ShadowRoot) && t instanceof HTMLElement && t.tagName === "STYLE" ? (i(this,
|
|
348
|
+
}, D = new WeakSet(), ne = function(e, t) {
|
|
349
|
+
!(e instanceof ShadowRoot) && t instanceof HTMLElement && t.tagName === "STYLE" ? (i(this, m).add(() => {
|
|
344
350
|
[...document.head.querySelectorAll("style")].find((n) => n.outerHTML === t.outerHTML) || document.head.appendChild(t);
|
|
345
351
|
}), i(this, l).add(() => {
|
|
346
352
|
t.remove();
|
|
347
353
|
})) : e.appendChild(t);
|
|
348
|
-
},
|
|
349
|
-
return e instanceof Y ? e.node : typeof e == "function" ? le(e) ? new e() : e() : a(this,
|
|
350
|
-
},
|
|
354
|
+
}, F = new WeakSet(), oe = function(e) {
|
|
355
|
+
return e instanceof Y ? e.node : typeof e == "function" ? le(e) ? new e() : e() : a(this, H, ae).call(this, e);
|
|
356
|
+
}, H = new WeakSet(), ae = function(e) {
|
|
351
357
|
if (e instanceof Node)
|
|
352
358
|
return e;
|
|
353
359
|
if (e != null) {
|
|
@@ -359,7 +365,7 @@ o = new WeakMap(), E = new WeakMap(), l = new WeakMap(), w = new WeakMap(), d =
|
|
|
359
365
|
return document.createTextNode(t);
|
|
360
366
|
} else
|
|
361
367
|
return;
|
|
362
|
-
},
|
|
368
|
+
}, I = new WeakMap(), U = new WeakMap();
|
|
363
369
|
let de = Y;
|
|
364
370
|
export {
|
|
365
371
|
de as E
|
|
@@ -9,7 +9,7 @@ var r = (a, e, t) => ($(a, e, "read from private field"), t ? t.call(a) : e.get(
|
|
|
9
9
|
}, i = (a, e, t, n) => ($(a, e, "write to private field"), n ? n.call(a, t) : e.set(a, t), t);
|
|
10
10
|
import { RESIZE_ORDER as A } from "./order/index.js";
|
|
11
11
|
import { windowResizer as k } from "./window-resizer/index.js";
|
|
12
|
-
import { S as B } from "./Store-
|
|
12
|
+
import { S as B } from "./Store-Qr3SNOSf.js";
|
|
13
13
|
var y, g, q, u, c, d, w;
|
|
14
14
|
class T {
|
|
15
15
|
constructor(e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var b=(c,e,t)=>{if(!e.has(c))throw TypeError("Cannot "+t)};var r=(c,e,t)=>(b(c,e,"read from private field"),t?t.call(c):e.get(c)),o=(c,e,t)=>{if(e.has(c))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(c):e.set(c,t)},i=(c,e,t,n)=>(b(c,e,"write to private field"),n?n.call(c,t):e.set(c,t),t);const B=require("./order/index.cjs"),k=require("./window-resizer/index.cjs"),T=require("./Store-
|
|
1
|
+
"use strict";var b=(c,e,t)=>{if(!e.has(c))throw TypeError("Cannot "+t)};var r=(c,e,t)=>(b(c,e,"read from private field"),t?t.call(c):e.get(c)),o=(c,e,t)=>{if(e.has(c))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(c):e.set(c,t)},i=(c,e,t,n)=>(b(c,e,"write to private field"),n?n.call(c,t):e.set(c,t),t);const B=require("./order/index.cjs"),k=require("./window-resizer/index.cjs"),T=require("./Store-Cr3VaD9G.cjs");var y,g,q,m,a,d,w;class z{constructor(e){o(this,y,void 0);o(this,g,void 0);o(this,q,void 0);o(this,m,void 0);o(this,a,void 0);o(this,d,void 0);o(this,w,void 0);i(this,y,e);const t=e.indexOf("?");t>=0&&(e=e.slice(0,t));const n=e.split(".");i(this,g,n[0]);const x=/\d+x/g,h=n.find(u=>u.match(x));i(this,q,h?parseInt(h):1);const f=/\d+max/g,M=/\d+min/g,s=/\d+mar/g,l=/\d+mir/g,S=n.find(u=>u.match(f)),I=n.find(u=>u.match(M)),V=n.find(u=>u.match(s)),$=n.find(u=>u.match(l));V?(i(this,a,parseInt(V)),i(this,d,"max"),i(this,m,`(max-aspect-ratio: ${r(this,a)})`)):$?(i(this,a,parseInt($)),i(this,d,"max"),i(this,m,`(min-aspect-ratio: ${r(this,a)})`)):S?(i(this,a,parseInt(S)),i(this,d,"max"),i(this,m,`(max-width: ${r(this,a)}px)`)):I?(i(this,a,parseInt(I)),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")):(i(this,a,0),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")),i(this,w,"."+n[n.length-1])}get url(){return r(this,y)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,m)}get extension(){return r(this,w)}get queryType(){return r(this,d)}get queryValue(){return r(this,a)}}y=new WeakMap,g=new WeakMap,q=new WeakMap,m=new WeakMap,a=new WeakMap,d=new WeakMap,w=new WeakMap;var p;class A{constructor(e){o(this,p,void 0);i(this,p,new Map);const t=typeof e=="string"?e.trim().split(",").map(s=>s.trim()).filter(s=>!!s):e,n=[];t.forEach(s=>{const l=new z(s);n.push([l.query,l])});const x=n.filter(s=>s[1].queryType.includes("max")).sort((s,l)=>l[1].queryValue-s[1].queryValue),h=n.filter(s=>s[1].queryType.includes("min")&&s[1].queryValue!==0).sort((s,l)=>s[1].queryValue-l[1].queryValue),f=n.filter(s=>s[0]==="(min-width: 0px)");(f?[...f,...x,...h]:[...x,...h]).forEach(s=>{r(this,p).has(s[0])||r(this,p).set(s[0],[]),r(this,p).get(s[0]).push(s[1])})}get mediaBuckets(){return r(this,p)}}p=new WeakMap;var R,E;class _ extends T.Store{constructor(t){super(void 0);o(this,R,void 0);o(this,E,()=>{let t;r(this,R).mediaBuckets.forEach((h,f)=>{matchMedia(f).matches&&(t=h)});let n,x=0;t==null||t.forEach(h=>{h.density>x&&h.density<=Math.max(devicePixelRatio,1)&&(x=h.density,n=h)}),t!=null&&t.length&&!n&&(n=t[0]),this.current=n});i(this,R,new A(t.srcset))}close(){super.close(),this.disconnect()}connect(){k.windowResizer.subscribe(r(this,E),B.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){k.windowResizer.unsubscribe(r(this,E))}}R=new WeakMap,E=new WeakMap;exports.Source=z;exports.SourceManager=_;exports.SourceSet=A;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var N=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var r=(i,t,e)=>(N(i,t,"read from private field"),e?e.call(i):t.get(i)),s=(i,t,e)=>{if(t.has(i))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(i):t.set(i,e)},a=(i,t,e,c)=>(N(i,t,"write to private field"),c?c.call(i,e):t.set(i,e),e);var p=(i,t,e)=>(N(i,t,"access private method"),e);const q=require("./browser-CpzFX2xg.cjs");var f,d,S;class z{constructor(){s(this,f,null);s(this,d,"");s(this,S,"");q.isBrowser&&(a(this,d,document.documentElement.getAttribute("data-project")||"unnamed"),a(this,S,r(this,d)?r(this,d)+"-store-registry":"store-registry"))}get projectName(){return r(this,d)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,f)}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"?a(this,f,JSON.parse(t)):a(this,f,t),
|
|
1
|
+
"use strict";var N=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var r=(i,t,e)=>(N(i,t,"read from private field"),e?e.call(i):t.get(i)),s=(i,t,e)=>{if(t.has(i))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(i):t.set(i,e)},a=(i,t,e,c)=>(N(i,t,"write to private field"),c?c.call(i,e):t.set(i,e),e);var p=(i,t,e)=>(N(i,t,"access private method"),e);const q=require("./browser-CpzFX2xg.cjs");var f,d,S;class z{constructor(){s(this,f,null);s(this,d,"");s(this,S,"");q.isBrowser&&(a(this,d,document.documentElement.getAttribute("data-project")||"unnamed"),a(this,S,r(this,d)?r(this,d)+"-store-registry":"store-registry"))}get projectName(){return r(this,d)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,f)}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"?a(this,f,JSON.parse(t)):a(this,f,t),l.current.forEach(e=>{e.passport&&this.updateStore(e)}))}resetState(){l.current.forEach(t=>{t.passport&&t.reset()}),this.saveState()}updateStore(t){var c,v;if(!Array.isArray((c=r(this,f))==null?void 0:c.stores))return t;const e=t.passport;if(e){const A=(v=r(this,f))==null?void 0:v.stores.find(j=>j.name===e.name);A&&(t.current=A.value)}return t}getState(){const t={stores:[]};return l.current.forEach(e=>{e.passport&&(t.stores.find(c=>c.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}f=new WeakMap,d=new WeakMap,S=new WeakMap;const k=new z;var g,h,m,n,o,u,y,b,w,E;class C{constructor(t,e){s(this,w);s(this,g,void 0);s(this,h,void 0);s(this,m,void 0);s(this,n,new Set);s(this,o,void 0);s(this,u,void 0);s(this,y,void 0);s(this,b,void 0);a(this,g,e==null?void 0:e.passport),a(this,h,{initial:t,previous:void 0,current:t}),a(this,m,(e==null?void 0:e.equalityCheck)||((c,v)=>c===v)),e!=null&&e.validate&&this.addMiddleware(e.validate),a(this,y,(e==null?void 0:e.notifyAndClose)||!1),a(this,b,(e==null?void 0:e.invisible)||!1),a(this,o,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,g)&&k.updateStore(this)}get passport(){return r(this,g)}get initial(){return r(this,h).initial}get previous(){return r(this,h).previous}get current(){return r(this,h).current}set current(t){if(!r(this,m).call(this,r(this,h).current,t)){if(r(this,h).previous=r(this,h).current,r(this,u))for(const e of r(this,u))t=e(t);r(this,h).current=t,p(this,w,E).call(this),r(this,y)&&this.close()}}get subscribers(){return r(this,n)}addMiddleware(t){r(this,u)||a(this,u,new Set),r(this,u).add(t)}removeMiddleware(t){var e,c;(e=r(this,u))==null||e.delete(t),(c=r(this,u))!=null&&c.size||a(this,u,void 0)}subscribe(t){return!r(this,b)&&!r(this,n).size&&M(this),r(this,n).add(t),r(this,o)||t(r(this,h)),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,n).delete(t),r(this,n).size||R(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){r(this,n).clear(),R(this)}}g=new WeakMap,h=new WeakMap,m=new WeakMap,n=new WeakMap,o=new WeakMap,u=new WeakMap,y=new WeakMap,b=new WeakMap,w=new WeakSet,E=function(){for(const t of r(this,n))t(r(this,h))};const l=new C([],{invisible:!0});function M(i){l.current.includes(i)||(l.current=[...l.current,i])}function R(i){l.current.includes(i)&&(l.current=l.current.filter(t=>t!==i))}exports.Store=C;exports.activeStores=l;exports.storeRegistry=k;
|
|
@@ -143,7 +143,7 @@ function q(i) {
|
|
|
143
143
|
l.current.includes(i) || (l.current = [...l.current, i]);
|
|
144
144
|
}
|
|
145
145
|
function k(i) {
|
|
146
|
-
l.current.includes(i) && (l.current = l.current.filter((t) => t !== i)
|
|
146
|
+
l.current.includes(i) && (l.current = l.current.filter((t) => t !== i));
|
|
147
147
|
}
|
|
148
148
|
export {
|
|
149
149
|
M as S,
|
|
@@ -22,7 +22,7 @@ var n = (i, e, t) => (f(i, e, "read from private field"), t ? t.call(i) : e.get(
|
|
|
22
22
|
import { l as x } from "./easings-BKi40vHz.js";
|
|
23
23
|
import { c as S } from "./math-BOBiC4TN.js";
|
|
24
24
|
import { n as p, p as T } from "./polyfills-X6KXuHg-.js";
|
|
25
|
-
import { A as q } from "./Animation-
|
|
25
|
+
import { A as q } from "./Animation-uimN7sdT.js";
|
|
26
26
|
var s, r;
|
|
27
27
|
class j extends q {
|
|
28
28
|
constructor(t, a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var f=Object.defineProperty,F=Object.defineProperties;var o=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var m=(t,i,e)=>i in t?f(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,d=(t,i)=>{for(var e in i||(i={}))O.call(i,e)&&m(t,e,i[e]);if(c)for(var e of c(i))b.call(i,e)&&m(t,e,i[e]);return t},g=(t,i)=>F(t,o(i));var A=(t,i,e)=>{if(!i.has(t))throw TypeError("Cannot "+e)};var a=(t,i,e)=>(A(t,i,"read from private field"),e?e.call(t):i.get(t)),u=(t,i,e)=>{if(i.has(t))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(t):i.set(t,e)},h=(t,i,e,s)=>(A(t,i,"write to private field"),s?s.call(t,e):i.set(t,e),e);const p=require("./easings-DsS5-Kqc.cjs"),w=require("./math-GDWEqu7y.cjs"),l=require("./polyfills-CM4SCDTt.cjs"),C=require("./Animation-
|
|
1
|
+
"use strict";var f=Object.defineProperty,F=Object.defineProperties;var o=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var m=(t,i,e)=>i in t?f(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,d=(t,i)=>{for(var e in i||(i={}))O.call(i,e)&&m(t,e,i[e]);if(c)for(var e of c(i))b.call(i,e)&&m(t,e,i[e]);return t},g=(t,i)=>F(t,o(i));var A=(t,i,e)=>{if(!i.has(t))throw TypeError("Cannot "+e)};var a=(t,i,e)=>(A(t,i,"read from private field"),e?e.call(t):i.get(t)),u=(t,i,e)=>{if(i.has(t))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(t):i.set(t,e)},h=(t,i,e,s)=>(A(t,i,"write to private field"),s?s.call(t,e):i.set(t,e),e);const p=require("./easings-DsS5-Kqc.cjs"),w=require("./math-GDWEqu7y.cjs"),l=require("./polyfills-CM4SCDTt.cjs"),C=require("./Animation-BInSRYNr.cjs");var n,r;class S extends C.Animation{constructor(e,s){super(e||0,s);u(this,n,p.linear);u(this,r,1e3);this.updateOptions(g(d({},s),{equalize:!0}))}updateOptions(e){super.updateOptions(e),h(this,n,l.nullishCoalescing(e==null?void 0:e.easing,a(this,n))),h(this,r,l.nullishCoalescing(e==null?void 0:e.duration,a(this,r)))}handleAnimationFrame(e){const s=e.timeElapsedSinceSubscription/1e3/(a(this,r)/1e3),q=a(this,n).call(this,w.clamp(s,0,1));this.current=l.preciseNumber(this.from+(this.target-this.from)*q,6),s>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,r=new WeakMap;exports.Tweened=S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var W=(e,s,o)=>{if(!s.has(e))throw TypeError("Cannot "+o)};var i=(e,s,o)=>(W(e,s,"read from private field"),o?o.call(e):s.get(e)),n=(e,s,o)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,o)},t=(e,s,o,v)=>(W(e,s,"write to private field"),v?v.call(e,o):s.set(e,o),o);const k=require("./order/index.cjs"),z=require("./window-resizer/index.cjs"),A=require("./browser-CpzFX2xg.cjs"),T=require("detect-gpu"),q=require("./Store-
|
|
1
|
+
"use strict";var W=(e,s,o)=>{if(!s.has(e))throw TypeError("Cannot "+o)};var i=(e,s,o)=>(W(e,s,"read from private field"),o?o.call(e):s.get(e)),n=(e,s,o)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,o)},t=(e,s,o,v)=>(W(e,s,"write to private field"),v?v.call(e,o):s.set(e,o),o);const k=require("./order/index.cjs"),z=require("./window-resizer/index.cjs"),A=require("./browser-CpzFX2xg.cjs"),T=require("detect-gpu"),q=require("./Store-Cr3VaD9G.cjs");var r,l,m,c,g,u,w,x,d;class I{constructor(){n(this,r,void 0);n(this,l,void 0);n(this,m,void 0);n(this,c,void 0);n(this,g,void 0);n(this,u,void 0);n(this,w,void 0);n(this,x,void 0);n(this,d,void 0);var s,o;if(t(this,r,"unknown"),t(this,l,"unknown"),t(this,m,0),t(this,c,null),t(this,g,!1),t(this,u,!1),t(this,w,!1),t(this,x,!1),t(this,d,!1),this.resize=()=>{t(this,g,/Mobi|Android/i.test(navigator.userAgent)),t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},A.isBrowser){t(this,c,T.getGPUTier()),i(this,c).then(a=>{t(this,l,a.gpu||"unknown"),t(this,m,a.tier)}),this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");t(this,w,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&t(this,x,a.toDataURL("image/webp").indexOf("data:image/webp")==0)}const v=window.navigator.userAgent,E=((o=(s=window.navigator)==null?void 0:s.userAgentData)==null?void 0:o.platform)||window.navigator.platform,C=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],O=["Win32","Win64","Windows","WinCE"],R=["iPhone","iPad","iPod"];C.includes(E)?(t(this,r,"macOS"),t(this,d,!0)):R.includes(E)?(t(this,r,"iOS"),t(this,d,!0)):O.includes(E)?t(this,r,"Windows"):/Android/.test(v)?t(this,r,"Android"):/Linux/.test(E)?t(this,r,"Linux"):t(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 D=(e=>(e.mobile="600px",e.tablet="1024px",e.notebook="1280px",e.desktop="1281px",e))(D||{}),S=(e=>(e["<=mobile"]="(max-width: 600px)",e[">=mobile"]="(min-width: 601px)",e["<=tablet"]="(max-width: 1024px)",e[">=tablet"]="(min-width: 1025px)",e["<=notebook"]="(max-width: 1280px)",e[">=notebook"]="(min-width: 1281px)",e["<=desktop"]="(max-width: 1280px)",e[">=desktop"]="(min-width: 1281px)",e))(S||{}),p,b,f,h;class L{constructor(){n(this,p,void 0);n(this,b,void 0);n(this,f,void 0);n(this,h,void 0);t(this,p,0),t(this,b,0),t(this,f,0),t(this,h,new q.Store(void 0)),this.resize=()=>{t(this,p,document.documentElement.clientWidth),t(this,b,innerHeight),t(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")},A.isBrowser&&(this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE))}get width(){return i(this,p)}get height(){return i(this,b)}get type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const _=new L;exports.ViewportBreakpoints=D;exports.ViewportMediaRules=S;exports.device=M;exports.viewport=_;
|
|
@@ -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 z } from "detect-gpu";
|
|
14
|
-
import { S as O } from "./Store-
|
|
14
|
+
import { S as O } from "./Store-Qr3SNOSf.js";
|
|
15
15
|
var h, d, l, c, g, m, p, x, u;
|
|
16
16
|
class I {
|
|
17
17
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./globals-bYKki-b9.cjs");function o(e){n.currentComponentElement.value.addDisconnectCallback(e)}function c(e){const t=typeof e=="function"?e(n.currentComponentElement.value):e;return n.currentComponentElement&&o(()=>t.close()),t}exports._createStore=c;exports.onDisconnect=o;
|
|
1
|
+
"use strict";const n=require("./globals-bYKki-b9.cjs");function o(e){n.currentComponentElement.value.addDisconnectCallback(e)}function c(e){const t=typeof e=="function"?e(n.currentComponentElement.value):e;return n.currentComponentElement.value&&o(()=>t.close()),t}exports._createStore=c;exports.onDisconnect=o;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { c as n } from "./globals-DMjysUXI.js";
|
|
2
|
+
function t(e) {
|
|
3
|
+
n.value.addDisconnectCallback(e);
|
|
4
|
+
}
|
|
5
|
+
function a(e) {
|
|
6
|
+
const o = typeof e == "function" ? e(n.value) : e;
|
|
7
|
+
return n.value && t(() => o.close()), o;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
a as _,
|
|
11
|
+
t as o
|
|
12
|
+
};
|
package/lib/animation/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-BInSRYNr.cjs"),n=require("../Damped-Da3EnNN4.cjs"),i=require("../Tweened-DksN-Rz6.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
|
package/lib/animation/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as r } from "../Animation-
|
|
2
|
-
import { D as m } from "../Damped-
|
|
3
|
-
import { T as t } from "../Tweened-
|
|
1
|
+
import { A as r } from "../Animation-uimN7sdT.js";
|
|
2
|
+
import { D as m } from "../Damped-yrNXlkDE.js";
|
|
3
|
+
import { T as t } from "../Tweened-CjgvoOwL.js";
|
|
4
4
|
export {
|
|
5
5
|
r as Animation,
|
|
6
6
|
m as Damped,
|