prop-for-that 0.7.2 → 0.7.3
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/CHANGELOG.md +45 -0
- package/README.md +1 -1
- package/dist/auto.cjs +1 -1
- package/dist/auto.js +1 -1
- package/dist/chunk-2OYRAOTM.cjs +1 -0
- package/dist/chunk-2YHGSLQQ.cjs +1 -0
- package/dist/chunk-3REDV2FZ.cjs +1 -0
- package/dist/chunk-BTKSOVH3.js +1 -0
- package/dist/chunk-BVU5BAWU.js +1 -0
- package/dist/chunk-COGNT6R5.js +1 -0
- package/dist/chunk-EYDIF3NM.cjs +1 -0
- package/dist/chunk-FZYB3P7L.cjs +1 -0
- package/dist/chunk-G2BOTBBH.cjs +1 -0
- package/dist/chunk-HTKGZP36.cjs +1 -0
- package/dist/chunk-IIQP3BYA.cjs +1 -0
- package/dist/chunk-KG3EF456.js +1 -0
- package/dist/chunk-LBK3257B.js +1 -0
- package/dist/{chunk-S2QXIZB2.cjs → chunk-LP3QQ33O.cjs} +1 -1
- package/dist/chunk-M65LNJXV.js +1 -0
- package/dist/{chunk-XFT6UIQJ.js → chunk-M7FMWTDF.js} +1 -1
- package/dist/chunk-ODPCQAKC.cjs +1 -0
- package/dist/chunk-QFJ6SZ2H.cjs +1 -0
- package/dist/chunk-QTM2FDUV.js +1 -0
- package/dist/chunk-SKEEFKDT.js +1 -0
- package/dist/{chunk-RI7ZNKJ4.js → chunk-SV76E7NI.js} +1 -1
- package/dist/chunk-TRMZLMNW.js +1 -0
- package/dist/chunk-WZXNO2W7.cjs +1 -0
- package/dist/chunk-YARRV66T.js +1 -0
- package/dist/color-input-STV57DGE.js +1 -0
- package/dist/{color-input-ISNND62O.cjs → color-input-SYYBVLZM.cjs} +1 -1
- package/dist/{field-MPAB2GPW.cjs → field-4MBM2R7N.cjs} +1 -1
- package/dist/field-6USMKGKM.js +1 -0
- package/dist/field-state-NXSK6ZZW.cjs +1 -0
- package/dist/field-state-YLUDK3XS.js +1 -0
- package/dist/{form-state-OQCU5JIW.cjs → form-state-FJZINKN7.cjs} +1 -1
- package/dist/form-state-Q4SCA6TH.js +1 -0
- package/dist/fps-IGSZPFLV.js +1 -0
- package/dist/fps-Q3ITXSJO.cjs +1 -0
- package/dist/img-6F5QAPW3.cjs +1 -0
- package/dist/img-PYBNG6OU.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.global.js +1 -1
- package/dist/index.js +1 -1
- package/dist/motion-GHDWROM2.js +1 -0
- package/dist/motion-GMUGWJN3.cjs +1 -0
- package/dist/orientation-27ULVQVJ.js +1 -0
- package/dist/orientation-JD23MYZR.cjs +1 -0
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.js +1 -1
- package/dist/scroll-velocity-DGZNNO73.cjs +1 -0
- package/dist/scroll-velocity-ZRXPNZG7.js +1 -0
- package/dist/select-H3CFIVK3.js +1 -0
- package/dist/{select-VOFG6POI.cjs → select-LMRGCCLB.cjs} +1 -1
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/dist/chunk-2C7ZUOOR.js +0 -1
- package/dist/chunk-2LAVIUIS.cjs +0 -1
- package/dist/chunk-6FIY4G6K.cjs +0 -1
- package/dist/chunk-BH7EQDLL.cjs +0 -1
- package/dist/chunk-CGNMHQYQ.cjs +0 -1
- package/dist/chunk-CO3JFREC.cjs +0 -1
- package/dist/chunk-CQQV55KU.cjs +0 -1
- package/dist/chunk-EOPF4ZLZ.cjs +0 -1
- package/dist/chunk-IJDX3MYP.js +0 -1
- package/dist/chunk-KMPRPVIO.js +0 -1
- package/dist/chunk-LF4OE7IL.js +0 -1
- package/dist/chunk-LULEQHRM.cjs +0 -1
- package/dist/chunk-MJJCQRTF.cjs +0 -1
- package/dist/chunk-QRIZE6VL.js +0 -1
- package/dist/chunk-SRQQTNRZ.js +0 -1
- package/dist/chunk-UQW7YOHI.js +0 -1
- package/dist/chunk-WUGCASE4.js +0 -1
- package/dist/chunk-X5SADKXG.cjs +0 -1
- package/dist/chunk-Y7HUY6HR.js +0 -1
- package/dist/chunk-YXEERKSK.js +0 -1
- package/dist/chunk-YXQTZ7WB.cjs +0 -1
- package/dist/color-input-UT32SY4G.js +0 -1
- package/dist/field-N3X45MAG.js +0 -1
- package/dist/field-state-CW4AHAD4.js +0 -1
- package/dist/field-state-LUVDPYVB.cjs +0 -1
- package/dist/form-state-43U225CL.js +0 -1
- package/dist/fps-IYNIQTBO.cjs +0 -1
- package/dist/fps-PJTUYBXE.js +0 -1
- package/dist/img-QU7AEFQR.cjs +0 -1
- package/dist/img-ZKCK5FYH.js +0 -1
- package/dist/motion-BIOKXRRD.js +0 -1
- package/dist/motion-XN5OMPI3.cjs +0 -1
- package/dist/orientation-7UDEAKUV.cjs +0 -1
- package/dist/orientation-WJTK5VKX.js +0 -1
- package/dist/scroll-velocity-3LOHC3FK.js +0 -1
- package/dist/scroll-velocity-FBORAQ7L.cjs +0 -1
- package/dist/select-EU62RW5T.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,51 @@ backwards-compatible change (semver's `1.0.0`+ rules kick in at v1).
|
|
|
8
8
|
Only the published library (`dist/`) is versioned here; the demo and docs site
|
|
9
9
|
are repo-only and not part of the npm package.
|
|
10
10
|
|
|
11
|
+
## [0.7.3]
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
- **Event-driven element sources no longer use the off-screen viewport gate.**
|
|
15
|
+
`range`, `field`, `field-state`, `form-state`, `select`, `color-input`, and
|
|
16
|
+
`img` now run ungated (`gate: false`). They only write in response to user
|
|
17
|
+
interaction or an image `load` — neither of which can happen while the element
|
|
18
|
+
is off screen — so gating them only added an `IntersectionObserver`
|
|
19
|
+
subscription plus a tear-down / re-seed cycle on every scroll in and out, for
|
|
20
|
+
no benefit. Ungated, they seed their values once at bind time (so a `var()`
|
|
21
|
+
resolves immediately, even for an element below the fold) and never tear down.
|
|
22
|
+
Continuously-sampling element sources (`size`, `pointer-local`, `media`,
|
|
23
|
+
`img-color`, `video-color`) stay gated, where pausing off screen is a real
|
|
24
|
+
saving. Additive: off-screen elements that previously had no props until they
|
|
25
|
+
scrolled in now carry their seeded values from the start.
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
- **`field-state` no longer loses its latched interaction history when its
|
|
29
|
+
element scrolls off screen and back.** Because it was viewport-gated,
|
|
30
|
+
scrolling the field out of view tore the source down and scrolling back
|
|
31
|
+
re-ran it — re-snapshotting each field's "initial" value from the *current*
|
|
32
|
+
(already-edited) value and clearing the dirty / touched / changed latches, so
|
|
33
|
+
a field would report pristine again. Now that it runs ungated (above), the
|
|
34
|
+
snapshot and latches are taken once and persist for the binding's life.
|
|
35
|
+
- **The shared frame loop no longer keeps `requestAnimationFrame` scheduled when
|
|
36
|
+
no flush is owed.** Under a `liveHz` cadence cap a throttled frame rescheduled
|
|
37
|
+
unconditionally; it now reschedules only while a continuous sampler is
|
|
38
|
+
registered or a flush is still pending, so a one-shot write can't leave rAF
|
|
39
|
+
spinning after its work is done. Any running rAF can demote compositor-driven
|
|
40
|
+
CSS animations, so the loop is kept as quiet as possible — it idles the moment
|
|
41
|
+
nothing needs it (regression test added).
|
|
42
|
+
- **`writer.forget()` no longer leaves an empty entry that makes a queued frame
|
|
43
|
+
flush nothing.** When a source's disposal raced a same-frame write, the
|
|
44
|
+
emptied target lingered in the pending map past the `flush` fast-path's size
|
|
45
|
+
check; it is now removed so the frame is a true no-op.
|
|
46
|
+
|
|
47
|
+
### Performance
|
|
48
|
+
- Removed a per-frame array allocation from the loop's sampler dispatch
|
|
49
|
+
(`[...frameFns]` → direct `Set` iteration). Samplers only ever remove
|
|
50
|
+
themselves, which `Set` iteration handles safely, so the defensive copy was
|
|
51
|
+
unnecessary on the one path that runs every frame.
|
|
52
|
+
- `motion` and `orientation` now attach through the shared, ref-counted
|
|
53
|
+
`onWindow` helper instead of raw `window.addEventListener`, matching every
|
|
54
|
+
other window-driven source — one real listener per event type for the page.
|
|
55
|
+
|
|
11
56
|
## [0.7.2]
|
|
12
57
|
|
|
13
58
|
### Fixed
|
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ Bind any element with `data-props-for="key …"` and read its `--live-*` propert
|
|
|
43
43
|
## Why
|
|
44
44
|
|
|
45
45
|
- **CSS does the work.** No per-element event handlers or render loops — bind once, compose in stylesheets.
|
|
46
|
-
- **Fast by design.** One `requestAnimationFrame` flush per frame — idle when nothing changes, frozen while the tab is hidden — plus write-on-change diffing and a single shared `ResizeObserver` / `IntersectionObserver` for the whole page.
|
|
46
|
+
- **Fast by design.** One `requestAnimationFrame` flush per frame — idle when nothing changes, frozen while the tab is hidden — plus write-on-change diffing and a single shared `ResizeObserver` / `IntersectionObserver` for the whole page. Continuously-sampling element sources pause while their element is off screen; event-driven ones (form fields, ranges, selects) run ungated.
|
|
47
47
|
- **Ship only what you use.** Four lightweight core sources are built in; everything else is an opt-in, tree-shakeable plugin — and under `auto` each plugin loads on demand, the moment a `data-props-for` attribute asks for it.
|
|
48
48
|
- **Plays with the platform.** Opt into typed [`@property`](https://prop-for-that.netlify.app/docsite/concepts/typed-properties/) values for interpolation, or FOUC-safe constants written before first paint.
|
|
49
49
|
- **Tiny and dependency-free**, in every bundle format.
|
package/dist/auto.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkWZXNO2W7_cjs=require('./chunk-WZXNO2W7.cjs');require('./chunk-HHINWX7L.cjs'),require('./chunk-EYDIF3NM.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7L35N3N3.cjs'),require('./chunk-QHHF5SEL.cjs');var u={"scroll-velocity":()=>import('./scroll-velocity-DGZNNO73.cjs').then(t=>t.scrollVelocity),online:()=>import('./online-KTMCBCXT.cjs').then(t=>t.online),"page-focused":()=>import('./page-focused-3WLSZDV4.cjs').then(t=>t.pageFocused),"page-visible":()=>import('./page-visible-6PMX575B.cjs').then(t=>t.pageVisible),"nav-type":()=>import('./nav-type-MFJJDDPZ.cjs').then(t=>t.navType),network:()=>import('./network-DPAAEK2S.cjs').then(t=>t.network),battery:()=>import('./battery-DQQ2NOGC.cjs').then(t=>t.battery),clock:()=>import('./clock-EVSBOOMJ.cjs').then(t=>t.clock),fps:()=>import('./fps-Q3ITXSJO.cjs').then(t=>t.fps),"visual-viewport":()=>import('./visual-viewport-MKUHWUQT.cjs').then(t=>t.visualViewport),pointer:()=>import('./pointer-DJSMZGSV.cjs').then(t=>t.pointer),"pointer-local":()=>import('./pointer-local-6JKSOJZV.cjs').then(t=>t.pointerLocal),media:()=>import('./media-XS6ADFFY.cjs').then(t=>t.media),field:()=>import('./field-4MBM2R7N.cjs').then(t=>t.field),"field-state":()=>import('./field-state-NXSK6ZZW.cjs').then(t=>t.fieldState),"form-state":()=>import('./form-state-FJZINKN7.cjs').then(t=>t.formState),select:()=>import('./select-LMRGCCLB.cjs').then(t=>t.select),"color-input":()=>import('./color-input-SYYBVLZM.cjs').then(t=>t.colorInput),orientation:()=>import('./orientation-JD23MYZR.cjs').then(t=>t.orientation),motion:()=>import('./motion-GMUGWJN3.cjs').then(t=>t.motion),geo:()=>import('./geo-CMG7QJ6S.cjs').then(t=>t.geo),"cpu-pressure":()=>import('./cpu-pressure-FXZDL5IE.cjs').then(t=>t.cpuPressure),img:()=>import('./img-6F5QAPW3.cjs').then(t=>t.img),"img-color":()=>import('./img-color-MBEU42DF.cjs').then(t=>t.imgColor),"video-color":()=>import('./video-color-B37Z5OBY.cjs').then(t=>t.videoColor)};var n=new WeakMap,a=new Map;function v(t){return (t.dataset.propsFor??"").split(/\s+/).filter(Boolean)}function E(t){if(chunkWZXNO2W7_cjs.c(t))return null;let e=u[t];if(!e)return null;let o=a.get(t);return o||(o=e().then(r=>{chunkWZXNO2W7_cjs.a(r);}).catch(r=>{a.delete(t),console.error(`[prop-for-that] failed to load plugin "${t}"`,r);}),a.set(t,o)),o}function L(t,e){let o=E(e);if(!o){chunkWZXNO2W7_cjs.e(t,[e]);return}o.then(()=>{chunkWZXNO2W7_cjs.c(e)&&(n.get(t)??[]).includes(e)&&chunkWZXNO2W7_cjs.e(t,[e]);});}function s(t){let e=v(t),o=n.get(t)??[],r=o.filter(i=>!e.includes(i)),g=e.filter(i=>!o.includes(i));r.length&&chunkWZXNO2W7_cjs.f(t,r),e.length?n.set(t,e):n.delete(t);for(let i of g)L(t,i);}function f(t){let e=n.get(t);e&&(chunkWZXNO2W7_cjs.f(t,e),n.delete(t));}function M(t){t instanceof HTMLElement&&(t.hasAttribute("data-props-for")&&s(t),t.querySelectorAll("[data-props-for]").forEach(s));}function b(t){t instanceof HTMLElement&&(f(t),t.querySelectorAll("[data-props-for]").forEach(f));}function h(){document.documentElement.hasAttribute("data-props-typed")&&chunkWZXNO2W7_cjs.d({typed:true}),document.querySelectorAll("[data-props-for]").forEach(s),new MutationObserver(t=>{for(let e of t){if(e.type==="attributes"&&e.target instanceof HTMLElement){s(e.target);continue}e.removedNodes.forEach(b),e.addedNodes.forEach(M);}}).observe(document.documentElement,{subtree:true,childList:true,attributes:true,attributeFilter:["data-props-for"]});}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",h,{once:true}):h());
|
package/dist/auto.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d,f as f$1,e,c,a as a$1}from'./chunk-
|
|
1
|
+
import {d,f as f$1,e,c,a as a$1}from'./chunk-BVU5BAWU.js';import'./chunk-LTJ2VKVY.js';import'./chunk-KG3EF456.js';import'./chunk-T4N6AEOZ.js';import'./chunk-LWKH66VY.js';import'./chunk-EEMKKLRF.js';var u={"scroll-velocity":()=>import('./scroll-velocity-ZRXPNZG7.js').then(t=>t.scrollVelocity),online:()=>import('./online-MGYZDLCQ.js').then(t=>t.online),"page-focused":()=>import('./page-focused-LBKD6QXG.js').then(t=>t.pageFocused),"page-visible":()=>import('./page-visible-27YKTHKU.js').then(t=>t.pageVisible),"nav-type":()=>import('./nav-type-S4MHMDHS.js').then(t=>t.navType),network:()=>import('./network-BHUTXTX7.js').then(t=>t.network),battery:()=>import('./battery-CDMJLP4C.js').then(t=>t.battery),clock:()=>import('./clock-LYF2IHGE.js').then(t=>t.clock),fps:()=>import('./fps-IGSZPFLV.js').then(t=>t.fps),"visual-viewport":()=>import('./visual-viewport-GNJTAHPT.js').then(t=>t.visualViewport),pointer:()=>import('./pointer-3O7MGTQD.js').then(t=>t.pointer),"pointer-local":()=>import('./pointer-local-X5TVNEEJ.js').then(t=>t.pointerLocal),media:()=>import('./media-RDQ3WR22.js').then(t=>t.media),field:()=>import('./field-6USMKGKM.js').then(t=>t.field),"field-state":()=>import('./field-state-YLUDK3XS.js').then(t=>t.fieldState),"form-state":()=>import('./form-state-Q4SCA6TH.js').then(t=>t.formState),select:()=>import('./select-H3CFIVK3.js').then(t=>t.select),"color-input":()=>import('./color-input-STV57DGE.js').then(t=>t.colorInput),orientation:()=>import('./orientation-27ULVQVJ.js').then(t=>t.orientation),motion:()=>import('./motion-GHDWROM2.js').then(t=>t.motion),geo:()=>import('./geo-MXO5OMVO.js').then(t=>t.geo),"cpu-pressure":()=>import('./cpu-pressure-WCDHVDRP.js').then(t=>t.cpuPressure),img:()=>import('./img-PYBNG6OU.js').then(t=>t.img),"img-color":()=>import('./img-color-VW3XMATY.js').then(t=>t.imgColor),"video-color":()=>import('./video-color-ZMRKDZFO.js').then(t=>t.videoColor)};var n=new WeakMap,a=new Map;function v(t){return (t.dataset.propsFor??"").split(/\s+/).filter(Boolean)}function E(t){if(c(t))return null;let e=u[t];if(!e)return null;let o=a.get(t);return o||(o=e().then(r=>{a$1(r);}).catch(r=>{a.delete(t),console.error(`[prop-for-that] failed to load plugin "${t}"`,r);}),a.set(t,o)),o}function L(t,e$1){let o=E(e$1);if(!o){e(t,[e$1]);return}o.then(()=>{c(e$1)&&(n.get(t)??[]).includes(e$1)&&e(t,[e$1]);});}function s(t){let e=v(t),o=n.get(t)??[],r=o.filter(i=>!e.includes(i)),g=e.filter(i=>!o.includes(i));r.length&&f$1(t,r),e.length?n.set(t,e):n.delete(t);for(let i of g)L(t,i);}function f(t){let e=n.get(t);e&&(f$1(t,e),n.delete(t));}function M(t){t instanceof HTMLElement&&(t.hasAttribute("data-props-for")&&s(t),t.querySelectorAll("[data-props-for]").forEach(s));}function b(t){t instanceof HTMLElement&&(f(t),t.querySelectorAll("[data-props-for]").forEach(f));}function h(){document.documentElement.hasAttribute("data-props-typed")&&d({typed:true}),document.querySelectorAll("[data-props-for]").forEach(s),new MutationObserver(t=>{for(let e of t){if(e.type==="attributes"&&e.target instanceof HTMLElement){s(e.target);continue}e.removedNodes.forEach(b),e.addedNodes.forEach(M);}}).observe(document.documentElement,{subtree:true,childList:true,attributes:true,attributeFilter:["data-props-for"]});}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",h,{once:true}):h());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkEYDIF3NM_cjs=require('./chunk-EYDIF3NM.cjs');var f=250,c={key:"fps",scope:"global",start(o){let e=performance.now(),s=e,r=60;return o.write("fps",Math.round(r)),chunkEYDIF3NM_cjs.c(t=>{let p=t-e;e=t,!(p<=0)&&(r+=(1e3/p-r)*.1,!(t-s<f)&&(s=t,o.write("fps",Math.round(r))));})}};exports.a=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkHHINWX7L_cjs=require('./chunk-HHINWX7L.cjs');var u={key:"img",scope:"element",gate:false,start(t){let e=chunkHHINWX7L_cjs.a(t.target,"img");if(!e)return ()=>{};let i=()=>e.getAttribute("src")!==null||e.getAttribute("srcset")!==null,r=e.complete&&e.naturalWidth===0&&i(),o=()=>{t.write("natural-w",e.naturalWidth),t.write("natural-h",e.naturalHeight),t.write("loaded",e.complete&&e.naturalWidth>0?1:0),t.write("broken",r?1:0);},a=()=>{r=false,o();},n=()=>{r=true,o();};return o(),e.addEventListener("load",a,{passive:true}),e.addEventListener("error",n,{passive:true}),()=>{e.removeEventListener("load",a),e.removeEventListener("error",n);}}};exports.a=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkA6JDSQWH_cjs=require('./chunk-A6JDSQWH.cjs'),chunkHHINWX7L_cjs=require('./chunk-HHINWX7L.cjs');var u={key:"color-input",scope:"element",props:{color:chunkA6JDSQWH_cjs.b},gate:false,start(r){let e=chunkHHINWX7L_cjs.a(r.target,'input[type="color"]');if(!e)return ()=>{};let o=()=>r.write("color",e.value);o();let n=["input","change"];for(let t of n)e.addEventListener(t,o,{passive:true});return ()=>{for(let t of n)e.removeEventListener(t,o);}}};exports.a=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-QIUPJ6MF.js';var g=e=>e instanceof HTMLInputElement&&(e.type==="checkbox"||e.type==="radio")?e.checked?"1":"0":e.value,h=e=>{if(e instanceof HTMLInputElement&&(e.type==="checkbox"||e.type==="radio"))return e.defaultChecked?"1":"0";if(e instanceof HTMLSelectElement){let r=Array.from(e.options).find(o=>o.defaultSelected);return r?r.value:e.options[0]?.value??""}return e.defaultValue},y={key:"field-state",scope:"element",gate:false,start(e){let r=a(e.target);if(!r.length)return ()=>{};let o=new Set(r),l=new WeakMap;for(let t of r)l.set(t,g(t));let u=new Set,f=new Set,s=new Set,c=false,i=()=>{let t=u.size>0,n=f.size>0;e.write("dirty",t?1:0),e.write("pristine",t?0:1),e.write("touched",n?1:0),e.write("untouched",n?0:1),e.write("changed",s.size>0?1:0),e.write("submitted",c?1:0);};i();let a$1=t=>{let n=t.target;o.has(n)&&(u.add(n),g(n)===l.get(n)?s.delete(n):s.add(n),i());},m=t=>{let n=t.target;o.has(n)&&(f.add(n),i());};e.target.addEventListener("input",a$1,{passive:true}),e.target.addEventListener("change",a$1,{passive:true}),e.target.addEventListener("focusout",m,{passive:true});let d=e.target instanceof HTMLFormElement?e.target:r[0]?.form,E=()=>{c=true,i();},v=()=>{u.clear(),f.clear(),c=false,s.clear();for(let t of r)h(t)!==l.get(t)&&s.add(t);i();};return d?.addEventListener("submit",E,{passive:true}),d?.addEventListener("reset",v,{passive:true}),()=>{e.target.removeEventListener("input",a$1),e.target.removeEventListener("change",a$1),e.target.removeEventListener("focusout",m),d?.removeEventListener("submit",E),d?.removeEventListener("reset",v);}}};export{y as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$3}from'./chunk-LTJ2VKVY.js';import {b as b$1,a as a$1}from'./chunk-KG3EF456.js';import {a as a$5}from'./chunk-T4N6AEOZ.js';import {a as a$2}from'./chunk-LWKH66VY.js';import {a as a$4}from'./chunk-EEMKKLRF.js';var u;function K(){if(u!==void 0||(u=null,typeof document>"u"||typeof CSSStyleSheet!="function"||!("adoptedStyleSheets"in document)))return u;try{let e=new CSSStyleSheet;e.replaceSync(":root{}"),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e],u=e.cssRules[0].style;}catch{u=null;}return u}function y(e){if(typeof document<"u"&&e===document.documentElement){let t=K();if(t)return t}return e.style}var E=class{pending=new Map;last=new WeakMap;set(t,r,o){let n=this.pending.get(t);if(n?.has(r)){n.set(r,o);return}this.last.get(t)?.get(r)!==o&&(n?n.set(r,o):this.pending.set(t,new Map([[r,o]])),a$1());}forget(t,r){this.last.get(t)?.delete(r);let o=this.pending.get(t);o&&(o.delete(r),o.size===0&&this.pending.delete(t));}flush=()=>{if(this.pending.size!==0){for(let[t,r]of this.pending){let o=this.last.get(t);o||this.last.set(t,o=new Map);let n=y(t);for(let[s,i]of r)o.get(s)!==i&&(n.setProperty(s,i),o.set(s,i));}this.pending.clear();}}},g=new E;b$1(g.flush);var S,a=new WeakMap,T=new WeakMap;function H(e,t){S||(S=new ResizeObserver(n=>{for(let s of n){T.set(s.target,s);let i=a.get(s.target);if(i)for(let p of [...i])p(s);}}));let r=a.get(e);r||(a.set(e,r=new Set),S.observe(e)),r.add(t);let o=T.get(e);return o&&t(o),()=>{let n=a.get(e);n&&(n.delete(t),n.size===0&&(a.delete(e),S.unobserve(e)));}}var v,m=new WeakMap,z=new WeakMap,A=[0,.98,.99,.995,.999,1];function w(e,t){v||(v=new IntersectionObserver(n=>{for(let s of n){z.set(s.target,s);let i=m.get(s.target);if(i)for(let p of [...i])p(s);}},{threshold:A}));let r=m.get(e);r||(m.set(e,r=new Set),v.observe(e)),r.add(t);let o=z.get(e);return o&&t(o),()=>{let n=m.get(e);n&&(n.delete(t),n.size===0&&(m.delete(e),v.unobserve(e)));}}var R=new Set;function I(e,t,r){if(R.has(e)||typeof CSS>"u"||typeof CSS.registerProperty!="function")return;R.add(e);let o=t?r?.[t]:void 0,n=t?a$2.defaults?.[t]:void 0;try{CSS.registerProperty({name:e,syntax:o?.syntax??"<number>",inherits:o?.inherits??!0,initialValue:n!=null?String(n):o?.initial??"0"});}catch{}}var D={key:"viewport",scope:"global",start(e){let t=()=>{e.write("vw",window.innerWidth),e.write("vh",window.innerHeight);};return t(),a$4("resize",t)}};var O={key:"size",scope:"element",start(e){return H(e.target,t=>{let r=t.borderBoxSize?.[0],o=r?r.inlineSize:t.contentRect.width,n=r?r.blockSize:t.contentRect.height;e.write("w",a$5(o)),e.write("h",a$5(n)),e.write("aspect",n>0?a$5(o/n):0);})}};var h=1;function B(e){let t=e.rootBounds;if(!t)return e.intersectionRatio>=1;let r=e.boundingClientRect;return r.top>=t.top-h&&r.right<=t.right+h&&r.bottom<=t.bottom+h&&r.left>=t.left-h}var P={key:"visibility",scope:"element",gate:false,start(e){let t=false;return e.write("visible",0),e.write("has-entered",0,"const"),w(e.target,r=>{let o=B(r);e.write("visible",o?1:0),o&&!t&&(t=true,e.write("has-entered",1,"const"));})}};var F={key:"range",scope:"element",gate:false,start(e){let t=a$3(e.target,'input[type="range"], input[type="number"]');if(!t)return ()=>{};let r=()=>{let o=t.min===""?0:Number(t.min),n=t.max===""?100:Number(t.max),s=Number(t.value);e.write("value",s),e.write("value-pct",n>o?a$5((s-o)/(n-o)):0);};return r(),t.addEventListener("input",r,{passive:true}),()=>t.removeEventListener("input",r)}};var W={viewport:D,size:O,visibility:P,range:F};var N=()=>{},f=new Map,b={...W};function Me(e){b[e.key]=e;}function ke(e){delete b[e];}function Le(e){return e in b}function xe(e){Object.assign(a$2,e);}function V(e,t,r){return {target:e,config:a$2,write(o,n,s="live"){let i=(s==="const"?a$2.constPrefix:a$2.livePrefix)+o;t.add(i),a$2.typed&&I(i,o,r),g.set(e,i,String(n));}}}function $(e,t,r){if(!(e.scope==="element"&&e.gate!==false&&r!==a$2.root&&typeof IntersectionObserver<"u"))return e.start(t);let n=null,s=()=>{if(!n)try{n=e.start(t);}catch(d){console.error(`[prop-for-that] source "${e.key}" failed to start`,d);}},i=()=>{n?.(),n=null;},p=w(r,d=>{d.isIntersecting?s():i();});return ()=>{p(),i();}}function C(e,t,r){let o=r.get(t);if(!o)return;o.dispose();let n=y(e);for(let s of o.written)n.removeProperty(s),g.forget(e,s);r.delete(t);}function _(e,t){let r=f.get(e);r||f.set(e,r=new Map);let o=[];for(let n of t){if(r.has(n))continue;let s=b[n];if(!s){console.warn(`[prop-for-that] unknown source "${n}"`);continue}let i=new Set,p;try{p=$(s,V(e,i,s.props),e);}catch(d){console.error(`[prop-for-that] source "${n}" failed to start`,d);continue}r.set(n,{dispose:p,written:i}),o.push(n);}return ()=>{let n=f.get(e);if(n){for(let s of o)C(e,s,n);n.size===0&&f.delete(e);}}}function j(e){return e instanceof Element?[e]:typeof NodeList<"u"&&e instanceof NodeList||typeof HTMLCollection<"u"&&e instanceof HTMLCollection||Array.isArray(e)?Array.from(e).filter(t=>t instanceof Element):[]}function q(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="string")}function Te(e,t){let r,o;if(t===void 0&&q(e)?(r=a$2.root?[a$2.root]:[],o=e):(r=j(e),o=t??[]),!r.length||!o.length)return N;let n=r.map(s=>_(s,o));return ()=>{for(let s of n)s();}}function ze(e,t){let r=f.get(e);if(r){for(let o of t??[...r.keys()])C(e,o,r);r.size===0&&f.delete(e);}}function He(){for(let[e,t]of f)for(let r of [...t.keys()])C(e,r,t);f.clear();}export{Me as a,ke as b,Le as c,xe as d,Te as e,ze as f,He as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-LTJ2VKVY.js';import {a as a$1}from'./chunk-T4N6AEOZ.js';var p=[["valueMissing","value-missing"],["typeMismatch","type-mismatch"],["patternMismatch","pattern-mismatch"],["tooLong","too-long"],["tooShort","too-short"],["rangeUnderflow","range-underflow"],["rangeOverflow","range-overflow"],["stepMismatch","step-mismatch"],["badInput","bad-input"],["customError","custom-error"]],g={key:"field",scope:"element",gate:false,start(t){let r=a(t.target,"input, textarea, select");if(!r)return ()=>{};let o=()=>{let e=r.value.length;t.write("length",e),t.write("empty",e===0?1:0),t.write("valid",r.validity.valid?1:0);for(let[l,m]of p)t.write(m,r.validity[l]?1:0);let n=r.maxLength;n>=0&&(t.write("remaining",Math.max(0,n-e)),t.write("fill-pct",n>0?a$1(Math.min(1,e/n)):0));};o();let a$2=["input","change"];for(let e of a$2)r.addEventListener(e,o,{passive:true});return ()=>{for(let e of a$2)r.removeEventListener(e,o);}}};export{g as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk7L35N3N3_cjs=require('./chunk-7L35N3N3.cjs');var t=new Set,c=null,n=0,f=false,i=false,l=0,u=false,s=()=>typeof requestAnimationFrame=="function";function a(e){if(n=0,i)return;let r=chunk7L35N3N3_cjs.a.liveHz;if(s()&&r&&r>0&&e-l<1e3/r){(t.size||u)&&(n=requestAnimationFrame(a));return}if(l=e,f=true,t.size)for(let m of t)m(e);u=false,c?.(),f=false,t.size&&s()&&o();}function o(){n||f||i||(s()?n=requestAnimationFrame(a):a(0));}function y(){u=true,o();}function h(e){c=e;}function x(e){return t.add(e),o(),()=>{t.delete(e);}}function p(){i||(i=true,n&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),n=0);}function F(){i&&(i=false,o());}typeof document<"u"&&typeof document.addEventListener=="function"&&document.addEventListener("visibilitychange",()=>{document.hidden?p():F();});exports.a=y;exports.b=h;exports.c=x;exports.d=p;exports.e=F;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkHHINWX7L_cjs=require('./chunk-HHINWX7L.cjs'),chunk65MXZJBD_cjs=require('./chunk-65MXZJBD.cjs');var p=[["valueMissing","value-missing"],["typeMismatch","type-mismatch"],["patternMismatch","pattern-mismatch"],["tooLong","too-long"],["tooShort","too-short"],["rangeUnderflow","range-underflow"],["rangeOverflow","range-overflow"],["stepMismatch","step-mismatch"],["badInput","bad-input"],["customError","custom-error"]],g={key:"field",scope:"element",gate:false,start(t){let r=chunkHHINWX7L_cjs.a(t.target,"input, textarea, select");if(!r)return ()=>{};let o=()=>{let e=r.value.length;t.write("length",e),t.write("empty",e===0?1:0),t.write("valid",r.validity.valid?1:0);for(let[l,m]of p)t.write(m,r.validity[l]?1:0);let n=r.maxLength;n>=0&&(t.write("remaining",Math.max(0,n-e)),t.write("fill-pct",n>0?chunk65MXZJBD_cjs.a(Math.min(1,e/n)):0));};o();let a=["input","change"];for(let e of a)r.addEventListener(e,o,{passive:true});return ()=>{for(let e of a)r.removeEventListener(e,o);}}};exports.a=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk65MXZJBD_cjs=require('./chunk-65MXZJBD.cjs'),chunkQHHF5SEL_cjs=require('./chunk-QHHF5SEL.cjs');var m={key:"motion",scope:"global",start(e){return typeof DeviceMotionEvent>"u"?()=>{}:chunkQHHF5SEL_cjs.a("devicemotion",i=>{let t=i.accelerationIncludingGravity;e.write("accel-x",chunk65MXZJBD_cjs.a(t?.x??0)),e.write("accel-y",chunk65MXZJBD_cjs.a(t?.y??0)),e.write("accel-z",chunk65MXZJBD_cjs.a(t?.z??0));})}};exports.a=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk65MXZJBD_cjs=require('./chunk-65MXZJBD.cjs'),chunkQHHF5SEL_cjs=require('./chunk-QHHF5SEL.cjs');var p={key:"orientation",scope:"global",start(t){return typeof DeviceOrientationEvent>"u"?()=>{}:chunkQHHF5SEL_cjs.a("deviceorientation",r=>{let o=r;t.write("orient-alpha",chunk65MXZJBD_cjs.a(o.alpha??0)),t.write("orient-beta",chunk65MXZJBD_cjs.a(o.beta??0)),t.write("orient-gamma",chunk65MXZJBD_cjs.a(o.gamma??0));})}};exports.a=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkL4SCOKPV_cjs=require('./chunk-L4SCOKPV.cjs');var g=e=>e instanceof HTMLInputElement&&(e.type==="checkbox"||e.type==="radio")?e.checked?"1":"0":e.value,h=e=>{if(e instanceof HTMLInputElement&&(e.type==="checkbox"||e.type==="radio"))return e.defaultChecked?"1":"0";if(e instanceof HTMLSelectElement){let r=Array.from(e.options).find(o=>o.defaultSelected);return r?r.value:e.options[0]?.value??""}return e.defaultValue},y={key:"field-state",scope:"element",gate:false,start(e){let r=chunkL4SCOKPV_cjs.a(e.target);if(!r.length)return ()=>{};let o=new Set(r),l=new WeakMap;for(let t of r)l.set(t,g(t));let u=new Set,f=new Set,s=new Set,c=false,i=()=>{let t=u.size>0,n=f.size>0;e.write("dirty",t?1:0),e.write("pristine",t?0:1),e.write("touched",n?1:0),e.write("untouched",n?0:1),e.write("changed",s.size>0?1:0),e.write("submitted",c?1:0);};i();let a=t=>{let n=t.target;o.has(n)&&(u.add(n),g(n)===l.get(n)?s.delete(n):s.add(n),i());},m=t=>{let n=t.target;o.has(n)&&(f.add(n),i());};e.target.addEventListener("input",a,{passive:true}),e.target.addEventListener("change",a,{passive:true}),e.target.addEventListener("focusout",m,{passive:true});let d=e.target instanceof HTMLFormElement?e.target:r[0]?.form,E=()=>{c=true,i();},v=()=>{u.clear(),f.clear(),c=false,s.clear();for(let t of r)h(t)!==l.get(t)&&s.add(t);i();};return d?.addEventListener("submit",E,{passive:true}),d?.addEventListener("reset",v,{passive:true}),()=>{e.target.removeEventListener("input",a),e.target.removeEventListener("change",a),e.target.removeEventListener("focusout",m),d?.removeEventListener("submit",E),d?.removeEventListener("reset",v);}}};exports.a=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-LWKH66VY.js';var t=new Set,c=null,n=0,f=false,i=false,l=0,u=false,s=()=>typeof requestAnimationFrame=="function";function a(e){if(n=0,i)return;let r=a$1.liveHz;if(s()&&r&&r>0&&e-l<1e3/r){(t.size||u)&&(n=requestAnimationFrame(a));return}if(l=e,f=true,t.size)for(let m of t)m(e);u=false,c?.(),f=false,t.size&&s()&&o();}function o(){n||f||i||(s()?n=requestAnimationFrame(a):a(0));}function y(){u=true,o();}function h(e){c=e;}function x(e){return t.add(e),o(),()=>{t.delete(e);}}function p(){i||(i=true,n&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),n=0);}function F(){i&&(i=false,o());}typeof document<"u"&&typeof document.addEventListener=="function"&&document.addEventListener("visibilitychange",()=>{document.hidden?p():F();});export{y as a,h as b,x as c,p as d,F as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-QIUPJ6MF.js';import {a as a$1}from'./chunk-T4N6AEOZ.js';var c={key:"form-state",scope:"element",gate:false,start(e){let o=a(e.target);if(!o.length)return ()=>{};let t=()=>{let r=0,i=0,n=0,f=0;for(let a of o){if(!a.willValidate)continue;r++;let u=a.validity.valid;u&&i++,a.required&&(n++,u&&f++);}e.write("field-count",r),e.write("valid-count",i),e.write("invalid-count",r-i),e.write("all-valid",r===i?1:0),e.write("completion",n?a$1(f/n):1);};t(),e.target.addEventListener("input",t,{passive:true}),e.target.addEventListener("change",t,{passive:true});let s=false,l=e.target instanceof HTMLFormElement?e.target:o[0]?.form,d=()=>{requestAnimationFrame(()=>{s||t();});};return l?.addEventListener("reset",d,{passive:true}),()=>{s=true,e.target.removeEventListener("input",t),e.target.removeEventListener("change",t),l?.removeEventListener("reset",d);}}};export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkEYDIF3NM_cjs=require('./chunk-EYDIF3NM.cjs'),chunk65MXZJBD_cjs=require('./chunk-65MXZJBD.cjs'),chunkQHHF5SEL_cjs=require('./chunk-QHHF5SEL.cjs');var u={key:"scroll-velocity",scope:"global",start(r){let e=window.scrollY,l=0,o=null,a=()=>{let c=window.scrollY,w=c-e;e=c,l=w||l*.8,Math.abs(l)<.01&&(l=0);let t=chunk65MXZJBD_cjs.a(l);r.write("scroll-velocity",t),r.write("scroll-direction",Math.sign(t)),t===0&&o&&(o(),o=null);},m=()=>{o||(o=chunkEYDIF3NM_cjs.c(a));};r.write("scroll-velocity",0),r.write("scroll-direction",0);let p=chunkQHHF5SEL_cjs.a("scroll",m);return ()=>{p(),o?.();}}};exports.a=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-LTJ2VKVY.js';import {a as a$1}from'./chunk-T4N6AEOZ.js';var m={key:"select",scope:"element",gate:false,start(n){let t=a(n.target,"select");if(!t)return ()=>{};let o=()=>{let e=t.options.length,r=t.selectedIndex,c=t.selectedOptions.length;n.write("index",r),n.write("option-count",e),n.write("index-pct",r>=0&&e>1?a$1(r/(e-1)):0),n.write("selected-count",c),n.write("selected-pct",e>0?a$1(c/e):0);let l=Number(t.value);t.value.trim()!==""&&Number.isFinite(l)&&n.write("value-num",l);};o();let i=["input","change"];for(let e of i)t.addEventListener(e,o,{passive:true});return ()=>{for(let e of i)t.removeEventListener(e,o);}}};export{m as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c as c$1}from'./chunk-
|
|
1
|
+
import {c as c$1}from'./chunk-KG3EF456.js';var f=250,c={key:"fps",scope:"global",start(o){let e=performance.now(),s=e,r=60;return o.write("fps",Math.round(r)),c$1(t=>{let p=t-e;e=t,!(p<=0)&&(r+=(1e3/p-r)*.1,!(t-s<f)&&(s=t,o.write("fps",Math.round(r))));})}};export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkHHINWX7L_cjs=require('./chunk-HHINWX7L.cjs'),chunk65MXZJBD_cjs=require('./chunk-65MXZJBD.cjs');var m={key:"select",scope:"element",gate:false,start(n){let t=chunkHHINWX7L_cjs.a(n.target,"select");if(!t)return ()=>{};let o=()=>{let e=t.options.length,r=t.selectedIndex,c=t.selectedOptions.length;n.write("index",r),n.write("option-count",e),n.write("index-pct",r>=0&&e>1?chunk65MXZJBD_cjs.a(r/(e-1)):0),n.write("selected-count",c),n.write("selected-pct",e>0?chunk65MXZJBD_cjs.a(c/e):0);let l=Number(t.value);t.value.trim()!==""&&Number.isFinite(l)&&n.write("value-num",l);};o();let i=["input","change"];for(let e of i)t.addEventListener(e,o,{passive:true});return ()=>{for(let e of i)t.removeEventListener(e,o);}}};exports.a=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkL4SCOKPV_cjs=require('./chunk-L4SCOKPV.cjs'),chunk65MXZJBD_cjs=require('./chunk-65MXZJBD.cjs');var c={key:"form-state",scope:"element",gate:false,start(e){let o=chunkL4SCOKPV_cjs.a(e.target);if(!o.length)return ()=>{};let t=()=>{let r=0,i=0,n=0,f=0;for(let a of o){if(!a.willValidate)continue;r++;let u=a.validity.valid;u&&i++,a.required&&(n++,u&&f++);}e.write("field-count",r),e.write("valid-count",i),e.write("invalid-count",r-i),e.write("all-valid",r===i?1:0),e.write("completion",n?chunk65MXZJBD_cjs.a(f/n):1);};t(),e.target.addEventListener("input",t,{passive:true}),e.target.addEventListener("change",t,{passive:true});let s=false,l=e.target instanceof HTMLFormElement?e.target:o[0]?.form,d=()=>{requestAnimationFrame(()=>{s||t();});};return l?.addEventListener("reset",d,{passive:true}),()=>{s=true,e.target.removeEventListener("input",t),e.target.removeEventListener("change",t),l?.removeEventListener("reset",d);}}};exports.a=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {b}from'./chunk-A2ETARW3.js';import {a}from'./chunk-LTJ2VKVY.js';var u={key:"color-input",scope:"element",props:{color:b},gate:false,start(r){let e=a(r.target,'input[type="color"]');if(!e)return ()=>{};let o=()=>r.write("color",e.value);o();let n=["input","change"];for(let t of n)e.addEventListener(t,o,{passive:true});return ()=>{for(let t of n)e.removeEventListener(t,o);}}};export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-T4N6AEOZ.js';import {a}from'./chunk-EEMKKLRF.js';var m={key:"motion",scope:"global",start(e){return typeof DeviceMotionEvent>"u"?()=>{}:a("devicemotion",i=>{let t=i.accelerationIncludingGravity;e.write("accel-x",a$1(t?.x??0)),e.write("accel-y",a$1(t?.y??0)),e.write("accel-z",a$1(t?.z??0));})}};export{m as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c}from'./chunk-
|
|
1
|
+
import {c}from'./chunk-KG3EF456.js';import {a as a$1}from'./chunk-T4N6AEOZ.js';import {a}from'./chunk-EEMKKLRF.js';var u={key:"scroll-velocity",scope:"global",start(r){let e=window.scrollY,l=0,o=null,a$2=()=>{let c=window.scrollY,w=c-e;e=c,l=w||l*.8,Math.abs(l)<.01&&(l=0);let t=a$1(l);r.write("scroll-velocity",t),r.write("scroll-direction",Math.sign(t)),t===0&&o&&(o(),o=null);},m=()=>{o||(o=c(a$2));};r.write("scroll-velocity",0),r.write("scroll-direction",0);let p=a("scroll",m);return ()=>{p(),o?.();}}};export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-T4N6AEOZ.js';import {a}from'./chunk-EEMKKLRF.js';var p={key:"orientation",scope:"global",start(t){return typeof DeviceOrientationEvent>"u"?()=>{}:a("deviceorientation",r=>{let o=r;t.write("orient-alpha",a$1(o.alpha??0)),t.write("orient-beta",a$1(o.beta??0)),t.write("orient-gamma",a$1(o.gamma??0));})}};export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkHHINWX7L_cjs=require('./chunk-HHINWX7L.cjs'),chunkEYDIF3NM_cjs=require('./chunk-EYDIF3NM.cjs'),chunk65MXZJBD_cjs=require('./chunk-65MXZJBD.cjs'),chunk7L35N3N3_cjs=require('./chunk-7L35N3N3.cjs'),chunkQHHF5SEL_cjs=require('./chunk-QHHF5SEL.cjs');var u;function K(){if(u!==void 0||(u=null,typeof document>"u"||typeof CSSStyleSheet!="function"||!("adoptedStyleSheets"in document)))return u;try{let e=new CSSStyleSheet;e.replaceSync(":root{}"),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e],u=e.cssRules[0].style;}catch{u=null;}return u}function y(e){if(typeof document<"u"&&e===document.documentElement){let t=K();if(t)return t}return e.style}var E=class{pending=new Map;last=new WeakMap;set(t,r,o){let n=this.pending.get(t);if(n?.has(r)){n.set(r,o);return}this.last.get(t)?.get(r)!==o&&(n?n.set(r,o):this.pending.set(t,new Map([[r,o]])),chunkEYDIF3NM_cjs.a());}forget(t,r){this.last.get(t)?.delete(r);let o=this.pending.get(t);o&&(o.delete(r),o.size===0&&this.pending.delete(t));}flush=()=>{if(this.pending.size!==0){for(let[t,r]of this.pending){let o=this.last.get(t);o||this.last.set(t,o=new Map);let n=y(t);for(let[s,i]of r)o.get(s)!==i&&(n.setProperty(s,i),o.set(s,i));}this.pending.clear();}}},g=new E;chunkEYDIF3NM_cjs.b(g.flush);var S,a=new WeakMap,T=new WeakMap;function H(e,t){S||(S=new ResizeObserver(n=>{for(let s of n){T.set(s.target,s);let i=a.get(s.target);if(i)for(let p of [...i])p(s);}}));let r=a.get(e);r||(a.set(e,r=new Set),S.observe(e)),r.add(t);let o=T.get(e);return o&&t(o),()=>{let n=a.get(e);n&&(n.delete(t),n.size===0&&(a.delete(e),S.unobserve(e)));}}var v,m=new WeakMap,z=new WeakMap,A=[0,.98,.99,.995,.999,1];function w(e,t){v||(v=new IntersectionObserver(n=>{for(let s of n){z.set(s.target,s);let i=m.get(s.target);if(i)for(let p of [...i])p(s);}},{threshold:A}));let r=m.get(e);r||(m.set(e,r=new Set),v.observe(e)),r.add(t);let o=z.get(e);return o&&t(o),()=>{let n=m.get(e);n&&(n.delete(t),n.size===0&&(m.delete(e),v.unobserve(e)));}}var R=new Set;function I(e,t,r){if(R.has(e)||typeof CSS>"u"||typeof CSS.registerProperty!="function")return;R.add(e);let o=t?r?.[t]:void 0,n=t?chunk7L35N3N3_cjs.a.defaults?.[t]:void 0;try{CSS.registerProperty({name:e,syntax:o?.syntax??"<number>",inherits:o?.inherits??!0,initialValue:n!=null?String(n):o?.initial??"0"});}catch{}}var D={key:"viewport",scope:"global",start(e){let t=()=>{e.write("vw",window.innerWidth),e.write("vh",window.innerHeight);};return t(),chunkQHHF5SEL_cjs.a("resize",t)}};var O={key:"size",scope:"element",start(e){return H(e.target,t=>{let r=t.borderBoxSize?.[0],o=r?r.inlineSize:t.contentRect.width,n=r?r.blockSize:t.contentRect.height;e.write("w",chunk65MXZJBD_cjs.a(o)),e.write("h",chunk65MXZJBD_cjs.a(n)),e.write("aspect",n>0?chunk65MXZJBD_cjs.a(o/n):0);})}};var h=1;function B(e){let t=e.rootBounds;if(!t)return e.intersectionRatio>=1;let r=e.boundingClientRect;return r.top>=t.top-h&&r.right<=t.right+h&&r.bottom<=t.bottom+h&&r.left>=t.left-h}var P={key:"visibility",scope:"element",gate:false,start(e){let t=false;return e.write("visible",0),e.write("has-entered",0,"const"),w(e.target,r=>{let o=B(r);e.write("visible",o?1:0),o&&!t&&(t=true,e.write("has-entered",1,"const"));})}};var F={key:"range",scope:"element",gate:false,start(e){let t=chunkHHINWX7L_cjs.a(e.target,'input[type="range"], input[type="number"]');if(!t)return ()=>{};let r=()=>{let o=t.min===""?0:Number(t.min),n=t.max===""?100:Number(t.max),s=Number(t.value);e.write("value",s),e.write("value-pct",n>o?chunk65MXZJBD_cjs.a((s-o)/(n-o)):0);};return r(),t.addEventListener("input",r,{passive:true}),()=>t.removeEventListener("input",r)}};var W={viewport:D,size:O,visibility:P,range:F};var N=()=>{},f=new Map,b={...W};function Me(e){b[e.key]=e;}function ke(e){delete b[e];}function Le(e){return e in b}function xe(e){Object.assign(chunk7L35N3N3_cjs.a,e);}function V(e,t,r){return {target:e,config:chunk7L35N3N3_cjs.a,write(o,n,s="live"){let i=(s==="const"?chunk7L35N3N3_cjs.a.constPrefix:chunk7L35N3N3_cjs.a.livePrefix)+o;t.add(i),chunk7L35N3N3_cjs.a.typed&&I(i,o,r),g.set(e,i,String(n));}}}function $(e,t,r){if(!(e.scope==="element"&&e.gate!==false&&r!==chunk7L35N3N3_cjs.a.root&&typeof IntersectionObserver<"u"))return e.start(t);let n=null,s=()=>{if(!n)try{n=e.start(t);}catch(d){console.error(`[prop-for-that] source "${e.key}" failed to start`,d);}},i=()=>{n?.(),n=null;},p=w(r,d=>{d.isIntersecting?s():i();});return ()=>{p(),i();}}function C(e,t,r){let o=r.get(t);if(!o)return;o.dispose();let n=y(e);for(let s of o.written)n.removeProperty(s),g.forget(e,s);r.delete(t);}function _(e,t){let r=f.get(e);r||f.set(e,r=new Map);let o=[];for(let n of t){if(r.has(n))continue;let s=b[n];if(!s){console.warn(`[prop-for-that] unknown source "${n}"`);continue}let i=new Set,p;try{p=$(s,V(e,i,s.props),e);}catch(d){console.error(`[prop-for-that] source "${n}" failed to start`,d);continue}r.set(n,{dispose:p,written:i}),o.push(n);}return ()=>{let n=f.get(e);if(n){for(let s of o)C(e,s,n);n.size===0&&f.delete(e);}}}function j(e){return e instanceof Element?[e]:typeof NodeList<"u"&&e instanceof NodeList||typeof HTMLCollection<"u"&&e instanceof HTMLCollection||Array.isArray(e)?Array.from(e).filter(t=>t instanceof Element):[]}function q(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="string")}function Te(e,t){let r,o;if(t===void 0&&q(e)?(r=chunk7L35N3N3_cjs.a.root?[chunk7L35N3N3_cjs.a.root]:[],o=e):(r=j(e),o=t??[]),!r.length||!o.length)return N;let n=r.map(s=>_(s,o));return ()=>{for(let s of n)s();}}function ze(e,t){let r=f.get(e);if(r){for(let o of t??[...r.keys()])C(e,o,r);r.size===0&&f.delete(e);}}function He(){for(let[e,t]of f)for(let r of [...t.keys()])C(e,r,t);f.clear();}exports.a=Me;exports.b=ke;exports.c=Le;exports.d=xe;exports.e=Te;exports.f=ze;exports.g=He;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-LTJ2VKVY.js';var u={key:"img",scope:"element",gate:false,start(t){let e=a(t.target,"img");if(!e)return ()=>{};let i=()=>e.getAttribute("src")!==null||e.getAttribute("srcset")!==null,r=e.complete&&e.naturalWidth===0&&i(),o=()=>{t.write("natural-w",e.naturalWidth),t.write("natural-h",e.naturalHeight),t.write("loaded",e.complete&&e.naturalWidth>0?1:0),t.write("broken",r?1:0);},a$1=()=>{r=false,o();},n=()=>{r=true,o();};return o(),e.addEventListener("load",a$1,{passive:true}),e.addEventListener("error",n,{passive:true}),()=>{e.removeEventListener("load",a$1),e.removeEventListener("error",n);}}};export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as colorInput}from'./chunk-QTM2FDUV.js';import'./chunk-A2ETARW3.js';import'./chunk-LTJ2VKVY.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk3REDV2FZ_cjs=require('./chunk-3REDV2FZ.cjs');require('./chunk-A6JDSQWH.cjs'),require('./chunk-HHINWX7L.cjs');Object.defineProperty(exports,"colorInput",{enumerable:true,get:function(){return chunk3REDV2FZ_cjs.a}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkFZYB3P7L_cjs=require('./chunk-FZYB3P7L.cjs');require('./chunk-HHINWX7L.cjs'),require('./chunk-65MXZJBD.cjs');Object.defineProperty(exports,"field",{enumerable:true,get:function(){return chunkFZYB3P7L_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as field}from'./chunk-COGNT6R5.js';import'./chunk-LTJ2VKVY.js';import'./chunk-T4N6AEOZ.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkIIQP3BYA_cjs=require('./chunk-IIQP3BYA.cjs');require('./chunk-L4SCOKPV.cjs');Object.defineProperty(exports,"fieldState",{enumerable:true,get:function(){return chunkIIQP3BYA_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as fieldState}from'./chunk-BTKSOVH3.js';import'./chunk-QIUPJ6MF.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkQFJ6SZ2H_cjs=require('./chunk-QFJ6SZ2H.cjs');require('./chunk-L4SCOKPV.cjs'),require('./chunk-65MXZJBD.cjs');Object.defineProperty(exports,"formState",{enumerable:true,get:function(){return chunkQFJ6SZ2H_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as formState}from'./chunk-LBK3257B.js';import'./chunk-QIUPJ6MF.js';import'./chunk-T4N6AEOZ.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as fps}from'./chunk-M7FMWTDF.js';import'./chunk-KG3EF456.js';import'./chunk-LWKH66VY.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk2OYRAOTM_cjs=require('./chunk-2OYRAOTM.cjs');require('./chunk-EYDIF3NM.cjs'),require('./chunk-7L35N3N3.cjs');Object.defineProperty(exports,"fps",{enumerable:true,get:function(){return chunk2OYRAOTM_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk2YHGSLQQ_cjs=require('./chunk-2YHGSLQQ.cjs');require('./chunk-HHINWX7L.cjs');Object.defineProperty(exports,"img",{enumerable:true,get:function(){return chunk2YHGSLQQ_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as img}from'./chunk-YARRV66T.js';import'./chunk-LTJ2VKVY.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkWZXNO2W7_cjs=require('./chunk-WZXNO2W7.cjs');require('./chunk-HHINWX7L.cjs');var chunkEYDIF3NM_cjs=require('./chunk-EYDIF3NM.cjs');require('./chunk-65MXZJBD.cjs'),require('./chunk-7L35N3N3.cjs'),require('./chunk-QHHF5SEL.cjs');Object.defineProperty(exports,"configure",{enumerable:true,get:function(){return chunkWZXNO2W7_cjs.d}});Object.defineProperty(exports,"isRegistered",{enumerable:true,get:function(){return chunkWZXNO2W7_cjs.c}});Object.defineProperty(exports,"propsFor",{enumerable:true,get:function(){return chunkWZXNO2W7_cjs.e}});Object.defineProperty(exports,"register",{enumerable:true,get:function(){return chunkWZXNO2W7_cjs.a}});Object.defineProperty(exports,"reset",{enumerable:true,get:function(){return chunkWZXNO2W7_cjs.g}});Object.defineProperty(exports,"unbind",{enumerable:true,get:function(){return chunkWZXNO2W7_cjs.f}});Object.defineProperty(exports,"unregister",{enumerable:true,get:function(){return chunkWZXNO2W7_cjs.b}});Object.defineProperty(exports,"pause",{enumerable:true,get:function(){return chunkEYDIF3NM_cjs.d}});Object.defineProperty(exports,"resume",{enumerable:true,get:function(){return chunkEYDIF3NM_cjs.e}});
|
package/dist/index.global.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var PropForThat=(function(exports){'use strict';var c={livePrefix:"--live-",constPrefix:"--const-",root:typeof document<"u"?document.documentElement:void 0,typed:false};var
|
|
1
|
+
var PropForThat=(function(exports){'use strict';var c={livePrefix:"--live-",constPrefix:"--const-",root:typeof document<"u"?document.documentElement:void 0,typed:false};var S=new Set,I=null,u=0,C=false,d=false,R=0,M=false,k=()=>typeof requestAnimationFrame=="function";function T(e){if(u=0,d)return;let t=c.liveHz;if(k()&&t&&t>0&&e-R<1e3/t){(S.size||M)&&(u=requestAnimationFrame(T));return}if(R=e,C=true,S.size)for(let n of S)n(e);M=false,I?.(),C=false,S.size&&k()&&z();}function z(){u||C||d||(k()?u=requestAnimationFrame(T):T(0));}function P(){M=true,z();}function O(e){I=e;}function A(){d||(d=true,u&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(u),u=0);}function W(){d&&(d=false,z());}typeof document<"u"&&typeof document.addEventListener=="function"&&document.addEventListener("visibilitychange",()=>{document.hidden?A():W();});var l;function Q(){if(l!==void 0||(l=null,typeof document>"u"||typeof CSSStyleSheet!="function"||!("adoptedStyleSheets"in document)))return l;try{let e=new CSSStyleSheet;e.replaceSync(":root{}"),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e],l=e.cssRules[0].style;}catch{l=null;}return l}function v(e){if(typeof document<"u"&&e===document.documentElement){let t=Q();if(t)return t}return e.style}var H=class{pending=new Map;last=new WeakMap;set(t,n,r){let o=this.pending.get(t);if(o?.has(n)){o.set(n,r);return}this.last.get(t)?.get(n)!==r&&(o?o.set(n,r):this.pending.set(t,new Map([[n,r]])),P());}forget(t,n){this.last.get(t)?.delete(n);let r=this.pending.get(t);r&&(r.delete(n),r.size===0&&this.pending.delete(t));}flush=()=>{if(this.pending.size!==0){for(let[t,n]of this.pending){let r=this.last.get(t);r||this.last.set(t,r=new Map);let o=v(t);for(let[i,s]of n)r.get(i)!==s&&(o.setProperty(i,s),r.set(i,s));}this.pending.clear();}}},h=new H;O(h.flush);var w,y=new WeakMap,K=new WeakMap;function B(e,t){w||(w=new ResizeObserver(o=>{for(let i of o){K.set(i.target,i);let s=y.get(i.target);if(s)for(let f of [...s])f(i);}}));let n=y.get(e);n||(y.set(e,n=new Set),w.observe(e)),n.add(t);let r=K.get(e);return r&&t(r),()=>{let o=y.get(e);o&&(o.delete(t),o.size===0&&(y.delete(e),w.unobserve(e)));}}var b,g=new WeakMap,q=new WeakMap,X=[0,.98,.99,.995,.999,1];function E(e,t){b||(b=new IntersectionObserver(o=>{for(let i of o){q.set(i.target,i);let s=g.get(i.target);if(s)for(let f of [...s])f(i);}},{threshold:X}));let n=g.get(e);n||(g.set(e,n=new Set),b.observe(e)),n.add(t);let r=q.get(e);return r&&t(r),()=>{let o=g.get(e);o&&(o.delete(t),o.size===0&&(g.delete(e),b.unobserve(e)));}}var N=new Set;function V(e,t,n){if(N.has(e)||typeof CSS>"u"||typeof CSS.registerProperty!="function")return;N.add(e);let r=t?n?.[t]:void 0,o=t?c.defaults?.[t]:void 0;try{CSS.registerProperty({name:e,syntax:r?.syntax??"<number>",inherits:r?.inherits??!0,initialValue:o!=null?String(o):r?.initial??"0"});}catch{}}var F=new Map;function $(e,t){let n=F.get(e);if(!n){let r=new Set,o=i=>{for(let s of [...r])s(i);};n={handlers:r,dispatch:o},F.set(e,n),window.addEventListener(e,o,{passive:true});}return n.handlers.add(t),()=>{n.handlers.delete(t),n.handlers.size===0&&(window.removeEventListener(e,n.dispatch),F.delete(e));}}var _={key:"viewport",scope:"global",start(e){let t=()=>{e.write("vw",window.innerWidth),e.write("vh",window.innerHeight);};return t(),$("resize",t)}};function a(e){return Math.round(e*1e4)/1e4}var j={key:"size",scope:"element",start(e){return B(e.target,t=>{let n=t.borderBoxSize?.[0],r=n?n.inlineSize:t.contentRect.width,o=n?n.blockSize:t.contentRect.height;e.write("w",a(r)),e.write("h",a(o)),e.write("aspect",o>0?a(r/o):0);})}};var x=1;function Z(e){let t=e.rootBounds;if(!t)return e.intersectionRatio>=1;let n=e.boundingClientRect;return n.top>=t.top-x&&n.right<=t.right+x&&n.bottom<=t.bottom+x&&n.left>=t.left-x}var G={key:"visibility",scope:"element",gate:false,start(e){let t=false;return e.write("visible",0),e.write("has-entered",0,"const"),E(e.target,n=>{let r=Z(n);e.write("visible",r?1:0),r&&!t&&(t=true,e.write("has-entered",1,"const"));})}};function U(e,t){return e.matches(t)?e:e.querySelector(t)}var Y={key:"range",scope:"element",gate:false,start(e){let t=U(e.target,'input[type="range"], input[type="number"]');if(!t)return ()=>{};let n=()=>{let r=t.min===""?0:Number(t.min),o=t.max===""?100:Number(t.max),i=Number(t.value);e.write("value",i),e.write("value-pct",o>r?a((i-r)/(o-r)):0);};return n(),t.addEventListener("input",n,{passive:true}),()=>t.removeEventListener("input",n)}};var J={viewport:_,size:j,visibility:G,range:Y};var ee=()=>{},p=new Map,L={...J};function Be(e){L[e.key]=e;}function Ne(e){delete L[e];}function Ve(e){return e in L}function $e(e){Object.assign(c,e);}function te(e,t,n){return {target:e,config:c,write(r,o,i="live"){let s=(i==="const"?c.constPrefix:c.livePrefix)+r;t.add(s),c.typed&&V(s,r,n),h.set(e,s,String(o));}}}function ne(e,t,n){if(!(e.scope==="element"&&e.gate!==false&&n!==c.root&&typeof IntersectionObserver<"u"))return e.start(t);let o=null,i=()=>{if(!o)try{o=e.start(t);}catch(m){console.error(`[prop-for-that] source "${e.key}" failed to start`,m);}},s=()=>{o?.(),o=null;},f=E(n,m=>{m.isIntersecting?i():s();});return ()=>{f(),s();}}function D(e,t,n){let r=n.get(t);if(!r)return;r.dispose();let o=v(e);for(let i of r.written)o.removeProperty(i),h.forget(e,i);n.delete(t);}function re(e,t){let n=p.get(e);n||p.set(e,n=new Map);let r=[];for(let o of t){if(n.has(o))continue;let i=L[o];if(!i){console.warn(`[prop-for-that] unknown source "${o}"`);continue}let s=new Set,f;try{f=ne(i,te(e,s,i.props),e);}catch(m){console.error(`[prop-for-that] source "${o}" failed to start`,m);continue}n.set(o,{dispose:f,written:s}),r.push(o);}return ()=>{let o=p.get(e);if(o){for(let i of r)D(e,i,o);o.size===0&&p.delete(e);}}}function oe(e){return e instanceof Element?[e]:typeof NodeList<"u"&&e instanceof NodeList||typeof HTMLCollection<"u"&&e instanceof HTMLCollection||Array.isArray(e)?Array.from(e).filter(t=>t instanceof Element):[]}function ie(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="string")}function _e(e,t){let n,r;if(t===void 0&&ie(e)?(n=c.root?[c.root]:[],r=e):(n=oe(e),r=t??[]),!n.length||!r.length)return ee;let o=n.map(i=>re(i,r));return ()=>{for(let i of o)i();}}function je(e,t){let n=p.get(e);if(n){for(let r of t??[...n.keys()])D(e,r,n);n.size===0&&p.delete(e);}}function Ge(){for(let[e,t]of p)for(let n of [...t.keys()])D(e,n,t);p.clear();}exports.configure=$e;exports.isRegistered=Ve;exports.pause=A;exports.propsFor=_e;exports.register=Be;exports.reset=Ge;exports.resume=W;exports.unbind=je;exports.unregister=Ne;return exports;})({});
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as configure,c as isRegistered,e as propsFor,a as register,g as reset,f as unbind,b as unregister}from'./chunk-
|
|
1
|
+
export{d as configure,c as isRegistered,e as propsFor,a as register,g as reset,f as unbind,b as unregister}from'./chunk-BVU5BAWU.js';import'./chunk-LTJ2VKVY.js';export{d as pause,e as resume}from'./chunk-KG3EF456.js';import'./chunk-T4N6AEOZ.js';import'./chunk-LWKH66VY.js';import'./chunk-EEMKKLRF.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as motion}from'./chunk-SKEEFKDT.js';import'./chunk-T4N6AEOZ.js';import'./chunk-EEMKKLRF.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkG2BOTBBH_cjs=require('./chunk-G2BOTBBH.cjs');require('./chunk-65MXZJBD.cjs'),require('./chunk-QHHF5SEL.cjs');Object.defineProperty(exports,"motion",{enumerable:true,get:function(){return chunkG2BOTBBH_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as orientation}from'./chunk-TRMZLMNW.js';import'./chunk-T4N6AEOZ.js';import'./chunk-EEMKKLRF.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkHTKGZP36_cjs=require('./chunk-HTKGZP36.cjs');require('./chunk-65MXZJBD.cjs'),require('./chunk-QHHF5SEL.cjs');Object.defineProperty(exports,"orientation",{enumerable:true,get:function(){return chunkHTKGZP36_cjs.a}});
|
package/dist/plugins.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunkUALPUR2L_cjs=require('./chunk-UALPUR2L.cjs'),chunk2H5YFW6O_cjs=require('./chunk-2H5YFW6O.cjs'),
|
|
1
|
+
'use strict';var chunkUALPUR2L_cjs=require('./chunk-UALPUR2L.cjs'),chunk2H5YFW6O_cjs=require('./chunk-2H5YFW6O.cjs'),chunk2YHGSLQQ_cjs=require('./chunk-2YHGSLQQ.cjs'),chunkFKBHTKZH_cjs=require('./chunk-FKBHTKZH.cjs'),chunkHYVT6V4Z_cjs=require('./chunk-HYVT6V4Z.cjs'),chunk63C3RCO2_cjs=require('./chunk-63C3RCO2.cjs'),chunkFZYB3P7L_cjs=require('./chunk-FZYB3P7L.cjs'),chunkIIQP3BYA_cjs=require('./chunk-IIQP3BYA.cjs'),chunkQFJ6SZ2H_cjs=require('./chunk-QFJ6SZ2H.cjs');require('./chunk-L4SCOKPV.cjs');var chunkODPCQAKC_cjs=require('./chunk-ODPCQAKC.cjs'),chunk3REDV2FZ_cjs=require('./chunk-3REDV2FZ.cjs');require('./chunk-A6JDSQWH.cjs');var chunkHTKGZP36_cjs=require('./chunk-HTKGZP36.cjs'),chunkG2BOTBBH_cjs=require('./chunk-G2BOTBBH.cjs'),chunkMGZTR3X6_cjs=require('./chunk-MGZTR3X6.cjs'),chunkRT47EE2L_cjs=require('./chunk-RT47EE2L.cjs'),chunk7CDVAP3H_cjs=require('./chunk-7CDVAP3H.cjs'),chunk6LTQ7ISE_cjs=require('./chunk-6LTQ7ISE.cjs'),chunk2OYRAOTM_cjs=require('./chunk-2OYRAOTM.cjs'),chunkXQOUJEVE_cjs=require('./chunk-XQOUJEVE.cjs'),chunk3W7CXUWN_cjs=require('./chunk-3W7CXUWN.cjs'),chunkSYKMPPTY_cjs=require('./chunk-SYKMPPTY.cjs'),chunkWZXNO2W7_cjs=require('./chunk-WZXNO2W7.cjs');require('./chunk-HHINWX7L.cjs');var chunkLP3QQ33O_cjs=require('./chunk-LP3QQ33O.cjs');require('./chunk-EYDIF3NM.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7L35N3N3.cjs');var chunkOVF4XN2H_cjs=require('./chunk-OVF4XN2H.cjs'),chunkWIPJMLJJ_cjs=require('./chunk-WIPJMLJJ.cjs');require('./chunk-QHHF5SEL.cjs');var chunk3MK6Q7DX_cjs=require('./chunk-3MK6Q7DX.cjs');var I=[chunkLP3QQ33O_cjs.a,chunkOVF4XN2H_cjs.a,chunkWIPJMLJJ_cjs.a,chunk3MK6Q7DX_cjs.a,chunkMGZTR3X6_cjs.a,chunkRT47EE2L_cjs.b,chunk7CDVAP3H_cjs.a,chunk6LTQ7ISE_cjs.a,chunk2OYRAOTM_cjs.a,chunkXQOUJEVE_cjs.a,chunk3W7CXUWN_cjs.a,chunkSYKMPPTY_cjs.a,chunk63C3RCO2_cjs.a,chunkFZYB3P7L_cjs.a,chunkIIQP3BYA_cjs.a,chunkQFJ6SZ2H_cjs.a,chunkODPCQAKC_cjs.a,chunk3REDV2FZ_cjs.a,chunkHTKGZP36_cjs.a,chunkG2BOTBBH_cjs.a,chunkUALPUR2L_cjs.a,chunk2H5YFW6O_cjs.a,chunk2YHGSLQQ_cjs.a,chunkFKBHTKZH_cjs.a,chunkHYVT6V4Z_cjs.a];function ro(...o){for(let F of o.length?o:I)chunkWZXNO2W7_cjs.a(F);}Object.defineProperty(exports,"geo",{enumerable:true,get:function(){return chunkUALPUR2L_cjs.a}});Object.defineProperty(exports,"cpuPressure",{enumerable:true,get:function(){return chunk2H5YFW6O_cjs.a}});Object.defineProperty(exports,"img",{enumerable:true,get:function(){return chunk2YHGSLQQ_cjs.a}});Object.defineProperty(exports,"imgColor",{enumerable:true,get:function(){return chunkFKBHTKZH_cjs.a}});Object.defineProperty(exports,"videoColor",{enumerable:true,get:function(){return chunkHYVT6V4Z_cjs.a}});Object.defineProperty(exports,"media",{enumerable:true,get:function(){return chunk63C3RCO2_cjs.a}});Object.defineProperty(exports,"field",{enumerable:true,get:function(){return chunkFZYB3P7L_cjs.a}});Object.defineProperty(exports,"fieldState",{enumerable:true,get:function(){return chunkIIQP3BYA_cjs.a}});Object.defineProperty(exports,"formState",{enumerable:true,get:function(){return chunkQFJ6SZ2H_cjs.a}});Object.defineProperty(exports,"select",{enumerable:true,get:function(){return chunkODPCQAKC_cjs.a}});Object.defineProperty(exports,"colorInput",{enumerable:true,get:function(){return chunk3REDV2FZ_cjs.a}});Object.defineProperty(exports,"orientation",{enumerable:true,get:function(){return chunkHTKGZP36_cjs.a}});Object.defineProperty(exports,"motion",{enumerable:true,get:function(){return chunkG2BOTBBH_cjs.a}});Object.defineProperty(exports,"navType",{enumerable:true,get:function(){return chunkMGZTR3X6_cjs.a}});Object.defineProperty(exports,"network",{enumerable:true,get:function(){return chunkRT47EE2L_cjs.b}});Object.defineProperty(exports,"battery",{enumerable:true,get:function(){return chunk7CDVAP3H_cjs.a}});Object.defineProperty(exports,"clock",{enumerable:true,get:function(){return chunk6LTQ7ISE_cjs.a}});Object.defineProperty(exports,"fps",{enumerable:true,get:function(){return chunk2OYRAOTM_cjs.a}});Object.defineProperty(exports,"visualViewport",{enumerable:true,get:function(){return chunkXQOUJEVE_cjs.a}});Object.defineProperty(exports,"pointer",{enumerable:true,get:function(){return chunk3W7CXUWN_cjs.a}});Object.defineProperty(exports,"pointerLocal",{enumerable:true,get:function(){return chunkSYKMPPTY_cjs.a}});Object.defineProperty(exports,"scrollVelocity",{enumerable:true,get:function(){return chunkLP3QQ33O_cjs.a}});Object.defineProperty(exports,"online",{enumerable:true,get:function(){return chunkOVF4XN2H_cjs.a}});Object.defineProperty(exports,"pageFocused",{enumerable:true,get:function(){return chunkWIPJMLJJ_cjs.a}});Object.defineProperty(exports,"pageVisible",{enumerable:true,get:function(){return chunk3MK6Q7DX_cjs.a}});exports.allPlugins=I;exports.registerPlugins=ro;
|
package/dist/plugins.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$j}from'./chunk-FOHEZJHF.js';export{a as geo}from'./chunk-FOHEZJHF.js';import {a as a$k}from'./chunk-5JZBLUQK.js';export{a as cpuPressure}from'./chunk-5JZBLUQK.js';import {a as a$l}from'./chunk-
|
|
1
|
+
import {a as a$j}from'./chunk-FOHEZJHF.js';export{a as geo}from'./chunk-FOHEZJHF.js';import {a as a$k}from'./chunk-5JZBLUQK.js';export{a as cpuPressure}from'./chunk-5JZBLUQK.js';import {a as a$l}from'./chunk-YARRV66T.js';export{a as img}from'./chunk-YARRV66T.js';import {a as a$m}from'./chunk-A7GWTDM7.js';export{a as imgColor}from'./chunk-A7GWTDM7.js';import {a as a$n}from'./chunk-ZQTU5EW7.js';export{a as videoColor}from'./chunk-ZQTU5EW7.js';import {a as a$b}from'./chunk-UHGW7AXC.js';export{a as media}from'./chunk-UHGW7AXC.js';import {a as a$c}from'./chunk-COGNT6R5.js';export{a as field}from'./chunk-COGNT6R5.js';import {a as a$d}from'./chunk-BTKSOVH3.js';export{a as fieldState}from'./chunk-BTKSOVH3.js';import {a as a$e}from'./chunk-LBK3257B.js';export{a as formState}from'./chunk-LBK3257B.js';import'./chunk-QIUPJ6MF.js';import {a as a$f}from'./chunk-M65LNJXV.js';export{a as select}from'./chunk-M65LNJXV.js';import {a as a$g}from'./chunk-QTM2FDUV.js';export{a as colorInput}from'./chunk-QTM2FDUV.js';import'./chunk-A2ETARW3.js';import {a as a$h}from'./chunk-TRMZLMNW.js';export{a as orientation}from'./chunk-TRMZLMNW.js';import {a as a$i}from'./chunk-SKEEFKDT.js';export{a as motion}from'./chunk-SKEEFKDT.js';import {a as a$4}from'./chunk-H7X35UB4.js';export{a as navType}from'./chunk-H7X35UB4.js';import {b}from'./chunk-JB72QLD6.js';export{b as network}from'./chunk-JB72QLD6.js';import {a as a$5}from'./chunk-DQJQEWPS.js';export{a as battery}from'./chunk-DQJQEWPS.js';import {a as a$6}from'./chunk-7U544OAJ.js';export{a as clock}from'./chunk-7U544OAJ.js';import {a as a$7}from'./chunk-M7FMWTDF.js';export{a as fps}from'./chunk-M7FMWTDF.js';import {a as a$8}from'./chunk-F5H2O3AR.js';export{a as visualViewport}from'./chunk-F5H2O3AR.js';import {a as a$9}from'./chunk-KAK6WZS7.js';export{a as pointer}from'./chunk-KAK6WZS7.js';import {a as a$a}from'./chunk-2E2JQAHI.js';export{a as pointerLocal}from'./chunk-2E2JQAHI.js';import {a as a$o}from'./chunk-BVU5BAWU.js';import'./chunk-LTJ2VKVY.js';import {a}from'./chunk-SV76E7NI.js';export{a as scrollVelocity}from'./chunk-SV76E7NI.js';import'./chunk-KG3EF456.js';import'./chunk-T4N6AEOZ.js';import'./chunk-LWKH66VY.js';import {a as a$1}from'./chunk-MDKLN42L.js';export{a as online}from'./chunk-MDKLN42L.js';import {a as a$2}from'./chunk-HKCTBVQT.js';export{a as pageFocused}from'./chunk-HKCTBVQT.js';import'./chunk-EEMKKLRF.js';import {a as a$3}from'./chunk-SFO6H2DN.js';export{a as pageVisible}from'./chunk-SFO6H2DN.js';var I=[a,a$1,a$2,a$3,a$4,b,a$5,a$6,a$7,a$8,a$9,a$a,a$b,a$c,a$d,a$e,a$f,a$g,a$h,a$i,a$j,a$k,a$l,a$m,a$n];function ro(...o){for(let F of o.length?o:I)a$o(F);}export{I as allPlugins,ro as registerPlugins};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkLP3QQ33O_cjs=require('./chunk-LP3QQ33O.cjs');require('./chunk-EYDIF3NM.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7L35N3N3.cjs'),require('./chunk-QHHF5SEL.cjs');Object.defineProperty(exports,"scrollVelocity",{enumerable:true,get:function(){return chunkLP3QQ33O_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as scrollVelocity}from'./chunk-SV76E7NI.js';import'./chunk-KG3EF456.js';import'./chunk-T4N6AEOZ.js';import'./chunk-LWKH66VY.js';import'./chunk-EEMKKLRF.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as select}from'./chunk-M65LNJXV.js';import'./chunk-LTJ2VKVY.js';import'./chunk-T4N6AEOZ.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkODPCQAKC_cjs=require('./chunk-ODPCQAKC.cjs');require('./chunk-HHINWX7L.cjs'),require('./chunk-65MXZJBD.cjs');Object.defineProperty(exports,"select",{enumerable:true,get:function(){return chunkODPCQAKC_cjs.a}});
|
package/llms.txt
CHANGED
|
@@ -196,7 +196,7 @@ Discrete reaction with a style query:
|
|
|
196
196
|
- **Typed properties are opt-in.** `configure({ typed: true })` (before attaching) registers each written `--live-*` with `@property` so it interpolates (consumers add `transition`/`@keyframes`) and resolves to `0` before a value arrives. With the `auto` entry, `<html data-props-typed>` is the markup equivalent (boolean, read once on load; typing is global per `@property` name, so no per-key subset). It is a one-way door (no unregister), uses `inherits: true`, is feature-detected, and skips names already registered. Sources can declare per-property `props: { name: { syntax, initial, inherits } }` (default `<number>` / `0` / inherited); consumers can set initials with `configure({ typed: true, defaults: { 'pointer-x-ratio': 0.5 } })` (keyed by local name).
|
|
197
197
|
- **Permission-gated plugins** (`orientation`, `motion`, `geo`) and unsupported APIs feature-detect and no-op; registering them is always safe. On iOS some need a user-gesture permission grant before values arrive. `cpuPressure` is Chromium-only and needs a secure context + the `compute-pressure` Permissions Policy; it seeds `--live-cpu-pressure: 0` where supported, writes nothing where not.
|
|
198
198
|
- **Global writes land in an adopted stylesheet, not `<html>` inline style.** Root `--live-*` go into one constructable, adopted `:root {}` rule (element-scoped writes stay inline; the `head` entry still writes `--const-*` inline for first paint). Keeps the DevTools Styles panel usable under per-frame churn; `var()`/`calc()` consumption is identical (still inherits). Reading `documentElement.style` directly won't show them — read computed style. Falls back to inline where constructable stylesheets are unsupported.
|
|
199
|
-
- **
|
|
199
|
+
- **Continuously-sampling element sources pause off screen.** Under both the imperative API and `auto`, a *gated* `element`-scoped source runs only while its element intersects the viewport (via the shared `IntersectionObserver`); off screen its work (listeners/observers/timers) is torn down and its last-written values freeze in place, resuming + re-seeding on re-entry. This covers the sources that do continuous/heavy work: `size`, `pointer-local`, `media`, `img-color`, `video-color`. `global` sources and `:root` bindings are never gated. Opt out with `gate: false`: `visibility` does (it must keep observing to *report* visibility), and so do the **event-driven** sources `range`, `field`, `field-state`, `form-state`, `select`, `color-input`, `img` — they only write on user interaction or `load` (impossible off screen), so they seed once at bind and run ungated rather than paying for an `IntersectionObserver` subscription that saves nothing.
|
|
200
200
|
- **Freeze or throttle the loop.** The whole loop also freezes automatically while the tab is hidden (`document.hidden`). `pause()` / `resume()` stop and restart sampling+flushing (values hold steady; bindings stay attached). `configure({ liveHz: 30 })` caps the rate to reduce mutations/recalc, throttling samplers (`fps`, `scroll-velocity`) too.
|
|
201
201
|
|
|
202
202
|
## Links
|
package/package.json
CHANGED
package/dist/chunk-2C7ZUOOR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-LTJ2VKVY.js';import {a as a$1}from'./chunk-T4N6AEOZ.js';var p=[["valueMissing","value-missing"],["typeMismatch","type-mismatch"],["patternMismatch","pattern-mismatch"],["tooLong","too-long"],["tooShort","too-short"],["rangeUnderflow","range-underflow"],["rangeOverflow","range-overflow"],["stepMismatch","step-mismatch"],["badInput","bad-input"],["customError","custom-error"]],u={key:"field",scope:"element",start(t){let r=a(t.target,"input, textarea, select");if(!r)return ()=>{};let o=()=>{let e=r.value.length;t.write("length",e),t.write("empty",e===0?1:0),t.write("valid",r.validity.valid?1:0);for(let[l,m]of p)t.write(m,r.validity[l]?1:0);let n=r.maxLength;n>=0&&(t.write("remaining",Math.max(0,n-e)),t.write("fill-pct",n>0?a$1(Math.min(1,e/n)):0));};o();let i=["input","change"];for(let e of i)r.addEventListener(e,o,{passive:true});return ()=>{for(let e of i)r.removeEventListener(e,o);}}};export{u as a};
|
package/dist/chunk-2LAVIUIS.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkHHINWX7L_cjs=require('./chunk-HHINWX7L.cjs'),chunkEOPF4ZLZ_cjs=require('./chunk-EOPF4ZLZ.cjs'),chunk65MXZJBD_cjs=require('./chunk-65MXZJBD.cjs'),chunk7L35N3N3_cjs=require('./chunk-7L35N3N3.cjs'),chunkQHHF5SEL_cjs=require('./chunk-QHHF5SEL.cjs');var u;function K(){if(u!==void 0||(u=null,typeof document>"u"||typeof CSSStyleSheet!="function"||!("adoptedStyleSheets"in document)))return u;try{let e=new CSSStyleSheet;e.replaceSync(":root{}"),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e],u=e.cssRules[0].style;}catch{u=null;}return u}function y(e){if(typeof document<"u"&&e===document.documentElement){let t=K();if(t)return t}return e.style}var E=class{pending=new Map;last=new WeakMap;set(t,r,n){let o=this.pending.get(t);if(o?.has(r)){o.set(r,n);return}this.last.get(t)?.get(r)!==n&&(o?o.set(r,n):this.pending.set(t,new Map([[r,n]])),chunkEOPF4ZLZ_cjs.a());}forget(t,r){this.last.get(t)?.delete(r),this.pending.get(t)?.delete(r);}flush=()=>{if(this.pending.size!==0){for(let[t,r]of this.pending){let n=this.last.get(t);n||this.last.set(t,n=new Map);let o=y(t);for(let[s,i]of r)n.get(s)!==i&&(o.setProperty(s,i),n.set(s,i));}this.pending.clear();}}},g=new E;chunkEOPF4ZLZ_cjs.b(g.flush);var S,d=new WeakMap,T=new WeakMap;function R(e,t){S||(S=new ResizeObserver(o=>{for(let s of o){T.set(s.target,s);let i=d.get(s.target);if(i)for(let p of [...i])p(s);}}));let r=d.get(e);r||(d.set(e,r=new Set),S.observe(e)),r.add(t);let n=T.get(e);return n&&t(n),()=>{let o=d.get(e);o&&(o.delete(t),o.size===0&&(d.delete(e),S.unobserve(e)));}}var v,m=new WeakMap,H=new WeakMap,A=[0,.98,.99,.995,.999,1];function w(e,t){v||(v=new IntersectionObserver(o=>{for(let s of o){H.set(s.target,s);let i=m.get(s.target);if(i)for(let p of [...i])p(s);}},{threshold:A}));let r=m.get(e);r||(m.set(e,r=new Set),v.observe(e)),r.add(t);let n=H.get(e);return n&&t(n),()=>{let o=m.get(e);o&&(o.delete(t),o.size===0&&(m.delete(e),v.unobserve(e)));}}var z=new Set;function I(e,t,r){if(z.has(e)||typeof CSS>"u"||typeof CSS.registerProperty!="function")return;z.add(e);let n=t?r?.[t]:void 0,o=t?chunk7L35N3N3_cjs.a.defaults?.[t]:void 0;try{CSS.registerProperty({name:e,syntax:n?.syntax??"<number>",inherits:n?.inherits??!0,initialValue:o!=null?String(o):n?.initial??"0"});}catch{}}var D={key:"viewport",scope:"global",start(e){let t=()=>{e.write("vw",window.innerWidth),e.write("vh",window.innerHeight);};return t(),chunkQHHF5SEL_cjs.a("resize",t)}};var O={key:"size",scope:"element",start(e){return R(e.target,t=>{let r=t.borderBoxSize?.[0],n=r?r.inlineSize:t.contentRect.width,o=r?r.blockSize:t.contentRect.height;e.write("w",chunk65MXZJBD_cjs.a(n)),e.write("h",chunk65MXZJBD_cjs.a(o)),e.write("aspect",o>0?chunk65MXZJBD_cjs.a(n/o):0);})}};var h=1;function B(e){let t=e.rootBounds;if(!t)return e.intersectionRatio>=1;let r=e.boundingClientRect;return r.top>=t.top-h&&r.right<=t.right+h&&r.bottom<=t.bottom+h&&r.left>=t.left-h}var P={key:"visibility",scope:"element",gate:false,start(e){let t=false;return e.write("visible",0),e.write("has-entered",0,"const"),w(e.target,r=>{let n=B(r);e.write("visible",n?1:0),n&&!t&&(t=true,e.write("has-entered",1,"const"));})}};var F={key:"range",scope:"element",start(e){let t=chunkHHINWX7L_cjs.a(e.target,'input[type="range"], input[type="number"]');if(!t)return ()=>{};let r=()=>{let n=t.min===""?0:Number(t.min),o=t.max===""?100:Number(t.max),s=Number(t.value);e.write("value",s),e.write("value-pct",o>n?chunk65MXZJBD_cjs.a((s-n)/(o-n)):0);};return r(),t.addEventListener("input",r,{passive:true}),()=>t.removeEventListener("input",r)}};var W={viewport:D,size:O,visibility:P,range:F};var N=()=>{},f=new Map,b={...W};function Me(e){b[e.key]=e;}function ke(e){delete b[e];}function Le(e){return e in b}function xe(e){Object.assign(chunk7L35N3N3_cjs.a,e);}function V(e,t,r){return {target:e,config:chunk7L35N3N3_cjs.a,write(n,o,s="live"){let i=(s==="const"?chunk7L35N3N3_cjs.a.constPrefix:chunk7L35N3N3_cjs.a.livePrefix)+n;t.add(i),chunk7L35N3N3_cjs.a.typed&&I(i,n,r),g.set(e,i,String(o));}}}function $(e,t,r){if(!(e.scope==="element"&&e.gate!==false&&r!==chunk7L35N3N3_cjs.a.root&&typeof IntersectionObserver<"u"))return e.start(t);let o=null,s=()=>{if(!o)try{o=e.start(t);}catch(a){console.error(`[prop-for-that] source "${e.key}" failed to start`,a);}},i=()=>{o?.(),o=null;},p=w(r,a=>{a.isIntersecting?s():i();});return ()=>{p(),i();}}function C(e,t,r){let n=r.get(t);if(!n)return;n.dispose();let o=y(e);for(let s of n.written)o.removeProperty(s),g.forget(e,s);r.delete(t);}function _(e,t){let r=f.get(e);r||f.set(e,r=new Map);let n=[];for(let o of t){if(r.has(o))continue;let s=b[o];if(!s){console.warn(`[prop-for-that] unknown source "${o}"`);continue}let i=new Set,p;try{p=$(s,V(e,i,s.props),e);}catch(a){console.error(`[prop-for-that] source "${o}" failed to start`,a);continue}r.set(o,{dispose:p,written:i}),n.push(o);}return ()=>{let o=f.get(e);if(o){for(let s of n)C(e,s,o);o.size===0&&f.delete(e);}}}function j(e){return e instanceof Element?[e]:typeof NodeList<"u"&&e instanceof NodeList||typeof HTMLCollection<"u"&&e instanceof HTMLCollection||Array.isArray(e)?Array.from(e).filter(t=>t instanceof Element):[]}function q(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="string")}function Te(e,t){let r,n;if(t===void 0&&q(e)?(r=chunk7L35N3N3_cjs.a.root?[chunk7L35N3N3_cjs.a.root]:[],n=e):(r=j(e),n=t??[]),!r.length||!n.length)return N;let o=r.map(s=>_(s,n));return ()=>{for(let s of o)s();}}function He(e,t){let r=f.get(e);if(r){for(let n of t??[...r.keys()])C(e,n,r);r.size===0&&f.delete(e);}}function Re(){for(let[e,t]of f)for(let r of [...t.keys()])C(e,r,t);f.clear();}exports.a=Me;exports.b=ke;exports.c=Le;exports.d=xe;exports.e=Te;exports.f=He;exports.g=Re;
|
package/dist/chunk-6FIY4G6K.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkHHINWX7L_cjs=require('./chunk-HHINWX7L.cjs');var u={key:"img",scope:"element",start(t){let e=chunkHHINWX7L_cjs.a(t.target,"img");if(!e)return ()=>{};let i=()=>e.getAttribute("src")!==null||e.getAttribute("srcset")!==null,r=e.complete&&e.naturalWidth===0&&i(),o=()=>{t.write("natural-w",e.naturalWidth),t.write("natural-h",e.naturalHeight),t.write("loaded",e.complete&&e.naturalWidth>0?1:0),t.write("broken",r?1:0);},n=()=>{r=false,o();},a=()=>{r=true,o();};return o(),e.addEventListener("load",n,{passive:true}),e.addEventListener("error",a,{passive:true}),()=>{e.removeEventListener("load",n),e.removeEventListener("error",a);}}};exports.a=u;
|
package/dist/chunk-BH7EQDLL.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkHHINWX7L_cjs=require('./chunk-HHINWX7L.cjs'),chunk65MXZJBD_cjs=require('./chunk-65MXZJBD.cjs');var m={key:"select",scope:"element",start(n){let t=chunkHHINWX7L_cjs.a(n.target,"select");if(!t)return ()=>{};let o=()=>{let e=t.options.length,r=t.selectedIndex,c=t.selectedOptions.length;n.write("index",r),n.write("option-count",e),n.write("index-pct",r>=0&&e>1?chunk65MXZJBD_cjs.a(r/(e-1)):0),n.write("selected-count",c),n.write("selected-pct",e>0?chunk65MXZJBD_cjs.a(c/e):0);let l=Number(t.value);t.value.trim()!==""&&Number.isFinite(l)&&n.write("value-num",l);};o();let i=["input","change"];for(let e of i)t.addEventListener(e,o,{passive:true});return ()=>{for(let e of i)t.removeEventListener(e,o);}}};exports.a=m;
|
package/dist/chunk-CGNMHQYQ.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkL4SCOKPV_cjs=require('./chunk-L4SCOKPV.cjs');var g=e=>e instanceof HTMLInputElement&&(e.type==="checkbox"||e.type==="radio")?e.checked?"1":"0":e.value,h=e=>{if(e instanceof HTMLInputElement&&(e.type==="checkbox"||e.type==="radio"))return e.defaultChecked?"1":"0";if(e instanceof HTMLSelectElement){let r=Array.from(e.options).find(o=>o.defaultSelected);return r?r.value:e.options[0]?.value??""}return e.defaultValue},y={key:"field-state",scope:"element",start(e){let r=chunkL4SCOKPV_cjs.a(e.target);if(!r.length)return ()=>{};let o=new Set(r),l=new WeakMap;for(let t of r)l.set(t,g(t));let u=new Set,f=new Set,s=new Set,c=false,i=()=>{let t=u.size>0,n=f.size>0;e.write("dirty",t?1:0),e.write("pristine",t?0:1),e.write("touched",n?1:0),e.write("untouched",n?0:1),e.write("changed",s.size>0?1:0),e.write("submitted",c?1:0);};i();let a=t=>{let n=t.target;o.has(n)&&(u.add(n),g(n)===l.get(n)?s.delete(n):s.add(n),i());},m=t=>{let n=t.target;o.has(n)&&(f.add(n),i());};e.target.addEventListener("input",a,{passive:true}),e.target.addEventListener("change",a,{passive:true}),e.target.addEventListener("focusout",m,{passive:true});let d=e.target instanceof HTMLFormElement?e.target:r[0]?.form,E=()=>{c=true,i();},v=()=>{u.clear(),f.clear(),c=false,s.clear();for(let t of r)h(t)!==l.get(t)&&s.add(t);i();};return d?.addEventListener("submit",E,{passive:true}),d?.addEventListener("reset",v,{passive:true}),()=>{e.target.removeEventListener("input",a),e.target.removeEventListener("change",a),e.target.removeEventListener("focusout",m),d?.removeEventListener("submit",E),d?.removeEventListener("reset",v);}}};exports.a=y;
|
package/dist/chunk-CO3JFREC.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkEOPF4ZLZ_cjs=require('./chunk-EOPF4ZLZ.cjs');var f=250,c={key:"fps",scope:"global",start(o){let e=performance.now(),s=e,r=60;return o.write("fps",Math.round(r)),chunkEOPF4ZLZ_cjs.c(t=>{let p=t-e;e=t,!(p<=0)&&(r+=(1e3/p-r)*.1,!(t-s<f)&&(s=t,o.write("fps",Math.round(r))));})}};exports.a=c;
|
package/dist/chunk-CQQV55KU.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkL4SCOKPV_cjs=require('./chunk-L4SCOKPV.cjs'),chunk65MXZJBD_cjs=require('./chunk-65MXZJBD.cjs');var c={key:"form-state",scope:"element",start(e){let o=chunkL4SCOKPV_cjs.a(e.target);if(!o.length)return ()=>{};let t=()=>{let r=0,i=0,n=0,f=0;for(let a of o){if(!a.willValidate)continue;r++;let u=a.validity.valid;u&&i++,a.required&&(n++,u&&f++);}e.write("field-count",r),e.write("valid-count",i),e.write("invalid-count",r-i),e.write("all-valid",r===i?1:0),e.write("completion",n?chunk65MXZJBD_cjs.a(f/n):1);};t(),e.target.addEventListener("input",t,{passive:true}),e.target.addEventListener("change",t,{passive:true});let s=false,l=e.target instanceof HTMLFormElement?e.target:o[0]?.form,d=()=>{requestAnimationFrame(()=>{s||t();});};return l?.addEventListener("reset",d,{passive:true}),()=>{s=true,e.target.removeEventListener("input",t),e.target.removeEventListener("change",t),l?.removeEventListener("reset",d);}}};exports.a=c;
|
package/dist/chunk-EOPF4ZLZ.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk7L35N3N3_cjs=require('./chunk-7L35N3N3.cjs');var i=new Set,m=null,n=0,u=false,t=false,d=0,f=()=>typeof requestAnimationFrame=="function";function s(e){if(n=0,t)return;let r=chunk7L35N3N3_cjs.a.liveHz;if(f()&&r&&r>0&&e-d<1e3/r){n=requestAnimationFrame(s);return}if(d=e,u=true,i.size)for(let c of [...i])c(e);m?.(),u=false,i.size&&f()&&o();}function o(){n||u||t||(f()?n=requestAnimationFrame(s):s(0));}function v(){o();}function y(e){m=e;}function h(e){return i.add(e),o(),()=>{i.delete(e);}}function l(){t||(t=true,n&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),n=0);}function p(){t&&(t=false,o());}typeof document<"u"&&typeof document.addEventListener=="function"&&document.addEventListener("visibilitychange",()=>{document.hidden?l():p();});exports.a=v;exports.b=y;exports.c=h;exports.d=l;exports.e=p;
|
package/dist/chunk-IJDX3MYP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-LTJ2VKVY.js';import {a as a$1}from'./chunk-T4N6AEOZ.js';var m={key:"select",scope:"element",start(n){let t=a(n.target,"select");if(!t)return ()=>{};let o=()=>{let e=t.options.length,r=t.selectedIndex,c=t.selectedOptions.length;n.write("index",r),n.write("option-count",e),n.write("index-pct",r>=0&&e>1?a$1(r/(e-1)):0),n.write("selected-count",c),n.write("selected-pct",e>0?a$1(c/e):0);let l=Number(t.value);t.value.trim()!==""&&Number.isFinite(l)&&n.write("value-num",l);};o();let i=["input","change"];for(let e of i)t.addEventListener(e,o,{passive:true});return ()=>{for(let e of i)t.removeEventListener(e,o);}}};export{m as a};
|
package/dist/chunk-KMPRPVIO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-LTJ2VKVY.js';var u={key:"img",scope:"element",start(t){let e=a(t.target,"img");if(!e)return ()=>{};let i=()=>e.getAttribute("src")!==null||e.getAttribute("srcset")!==null,r=e.complete&&e.naturalWidth===0&&i(),o=()=>{t.write("natural-w",e.naturalWidth),t.write("natural-h",e.naturalHeight),t.write("loaded",e.complete&&e.naturalWidth>0?1:0),t.write("broken",r?1:0);},n=()=>{r=false,o();},a$1=()=>{r=true,o();};return o(),e.addEventListener("load",n,{passive:true}),e.addEventListener("error",a$1,{passive:true}),()=>{e.removeEventListener("load",n),e.removeEventListener("error",a$1);}}};export{u as a};
|
package/dist/chunk-LF4OE7IL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-LWKH66VY.js';var i=new Set,m=null,n=0,u=false,t=false,d=0,f=()=>typeof requestAnimationFrame=="function";function s(e){if(n=0,t)return;let r=a.liveHz;if(f()&&r&&r>0&&e-d<1e3/r){n=requestAnimationFrame(s);return}if(d=e,u=true,i.size)for(let c of [...i])c(e);m?.(),u=false,i.size&&f()&&o();}function o(){n||u||t||(f()?n=requestAnimationFrame(s):s(0));}function v(){o();}function y(e){m=e;}function h(e){return i.add(e),o(),()=>{i.delete(e);}}function l(){t||(t=true,n&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),n=0);}function p(){t&&(t=false,o());}typeof document<"u"&&typeof document.addEventListener=="function"&&document.addEventListener("visibilitychange",()=>{document.hidden?l():p();});export{v as a,y as b,h as c,l as d,p as e};
|
package/dist/chunk-LULEQHRM.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk65MXZJBD_cjs=require('./chunk-65MXZJBD.cjs');var c={key:"motion",scope:"global",start(o){if(typeof DeviceMotionEvent>"u")return ()=>{};let n=i=>{let t=i.accelerationIncludingGravity;o.write("accel-x",chunk65MXZJBD_cjs.a(t?.x??0)),o.write("accel-y",chunk65MXZJBD_cjs.a(t?.y??0)),o.write("accel-z",chunk65MXZJBD_cjs.a(t?.z??0));};return window.addEventListener("devicemotion",n,{passive:true}),()=>window.removeEventListener("devicemotion",n)}};exports.a=c;
|
package/dist/chunk-MJJCQRTF.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk65MXZJBD_cjs=require('./chunk-65MXZJBD.cjs');var r={key:"orientation",scope:"global",start(t){if(typeof DeviceOrientationEvent>"u")return ()=>{};let n=i=>{t.write("orient-alpha",chunk65MXZJBD_cjs.a(i.alpha??0)),t.write("orient-beta",chunk65MXZJBD_cjs.a(i.beta??0)),t.write("orient-gamma",chunk65MXZJBD_cjs.a(i.gamma??0));};return window.addEventListener("deviceorientation",n,{passive:true}),()=>window.removeEventListener("deviceorientation",n)}};exports.a=r;
|
package/dist/chunk-QRIZE6VL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {b}from'./chunk-A2ETARW3.js';import {a}from'./chunk-LTJ2VKVY.js';var i={key:"color-input",scope:"element",props:{color:b},start(r){let e=a(r.target,'input[type="color"]');if(!e)return ()=>{};let o=()=>r.write("color",e.value);o();let n=["input","change"];for(let t of n)e.addEventListener(t,o,{passive:true});return ()=>{for(let t of n)e.removeEventListener(t,o);}}};export{i as a};
|
package/dist/chunk-SRQQTNRZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-QIUPJ6MF.js';import {a as a$1}from'./chunk-T4N6AEOZ.js';var c={key:"form-state",scope:"element",start(e){let o=a(e.target);if(!o.length)return ()=>{};let t=()=>{let r=0,i=0,n=0,f=0;for(let a of o){if(!a.willValidate)continue;r++;let u=a.validity.valid;u&&i++,a.required&&(n++,u&&f++);}e.write("field-count",r),e.write("valid-count",i),e.write("invalid-count",r-i),e.write("all-valid",r===i?1:0),e.write("completion",n?a$1(f/n):1);};t(),e.target.addEventListener("input",t,{passive:true}),e.target.addEventListener("change",t,{passive:true});let s=false,l=e.target instanceof HTMLFormElement?e.target:o[0]?.form,d=()=>{requestAnimationFrame(()=>{s||t();});};return l?.addEventListener("reset",d,{passive:true}),()=>{s=true,e.target.removeEventListener("input",t),e.target.removeEventListener("change",t),l?.removeEventListener("reset",d);}}};export{c as a};
|
package/dist/chunk-UQW7YOHI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-LTJ2VKVY.js';import {b as b$1,a}from'./chunk-LF4OE7IL.js';import {a as a$4}from'./chunk-T4N6AEOZ.js';import {a as a$1}from'./chunk-LWKH66VY.js';import {a as a$3}from'./chunk-EEMKKLRF.js';var u;function K(){if(u!==void 0||(u=null,typeof document>"u"||typeof CSSStyleSheet!="function"||!("adoptedStyleSheets"in document)))return u;try{let e=new CSSStyleSheet;e.replaceSync(":root{}"),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e],u=e.cssRules[0].style;}catch{u=null;}return u}function y(e){if(typeof document<"u"&&e===document.documentElement){let t=K();if(t)return t}return e.style}var E=class{pending=new Map;last=new WeakMap;set(t,r,n){let o=this.pending.get(t);if(o?.has(r)){o.set(r,n);return}this.last.get(t)?.get(r)!==n&&(o?o.set(r,n):this.pending.set(t,new Map([[r,n]])),a());}forget(t,r){this.last.get(t)?.delete(r),this.pending.get(t)?.delete(r);}flush=()=>{if(this.pending.size!==0){for(let[t,r]of this.pending){let n=this.last.get(t);n||this.last.set(t,n=new Map);let o=y(t);for(let[s,i]of r)n.get(s)!==i&&(o.setProperty(s,i),n.set(s,i));}this.pending.clear();}}},g=new E;b$1(g.flush);var S,d=new WeakMap,T=new WeakMap;function R(e,t){S||(S=new ResizeObserver(o=>{for(let s of o){T.set(s.target,s);let i=d.get(s.target);if(i)for(let p of [...i])p(s);}}));let r=d.get(e);r||(d.set(e,r=new Set),S.observe(e)),r.add(t);let n=T.get(e);return n&&t(n),()=>{let o=d.get(e);o&&(o.delete(t),o.size===0&&(d.delete(e),S.unobserve(e)));}}var v,m=new WeakMap,H=new WeakMap,A=[0,.98,.99,.995,.999,1];function w(e,t){v||(v=new IntersectionObserver(o=>{for(let s of o){H.set(s.target,s);let i=m.get(s.target);if(i)for(let p of [...i])p(s);}},{threshold:A}));let r=m.get(e);r||(m.set(e,r=new Set),v.observe(e)),r.add(t);let n=H.get(e);return n&&t(n),()=>{let o=m.get(e);o&&(o.delete(t),o.size===0&&(m.delete(e),v.unobserve(e)));}}var z=new Set;function I(e,t,r){if(z.has(e)||typeof CSS>"u"||typeof CSS.registerProperty!="function")return;z.add(e);let n=t?r?.[t]:void 0,o=t?a$1.defaults?.[t]:void 0;try{CSS.registerProperty({name:e,syntax:n?.syntax??"<number>",inherits:n?.inherits??!0,initialValue:o!=null?String(o):n?.initial??"0"});}catch{}}var D={key:"viewport",scope:"global",start(e){let t=()=>{e.write("vw",window.innerWidth),e.write("vh",window.innerHeight);};return t(),a$3("resize",t)}};var O={key:"size",scope:"element",start(e){return R(e.target,t=>{let r=t.borderBoxSize?.[0],n=r?r.inlineSize:t.contentRect.width,o=r?r.blockSize:t.contentRect.height;e.write("w",a$4(n)),e.write("h",a$4(o)),e.write("aspect",o>0?a$4(n/o):0);})}};var h=1;function B(e){let t=e.rootBounds;if(!t)return e.intersectionRatio>=1;let r=e.boundingClientRect;return r.top>=t.top-h&&r.right<=t.right+h&&r.bottom<=t.bottom+h&&r.left>=t.left-h}var P={key:"visibility",scope:"element",gate:false,start(e){let t=false;return e.write("visible",0),e.write("has-entered",0,"const"),w(e.target,r=>{let n=B(r);e.write("visible",n?1:0),n&&!t&&(t=true,e.write("has-entered",1,"const"));})}};var F={key:"range",scope:"element",start(e){let t=a$2(e.target,'input[type="range"], input[type="number"]');if(!t)return ()=>{};let r=()=>{let n=t.min===""?0:Number(t.min),o=t.max===""?100:Number(t.max),s=Number(t.value);e.write("value",s),e.write("value-pct",o>n?a$4((s-n)/(o-n)):0);};return r(),t.addEventListener("input",r,{passive:true}),()=>t.removeEventListener("input",r)}};var W={viewport:D,size:O,visibility:P,range:F};var N=()=>{},f=new Map,b={...W};function Me(e){b[e.key]=e;}function ke(e){delete b[e];}function Le(e){return e in b}function xe(e){Object.assign(a$1,e);}function V(e,t,r){return {target:e,config:a$1,write(n,o,s="live"){let i=(s==="const"?a$1.constPrefix:a$1.livePrefix)+n;t.add(i),a$1.typed&&I(i,n,r),g.set(e,i,String(o));}}}function $(e,t,r){if(!(e.scope==="element"&&e.gate!==false&&r!==a$1.root&&typeof IntersectionObserver<"u"))return e.start(t);let o=null,s=()=>{if(!o)try{o=e.start(t);}catch(a){console.error(`[prop-for-that] source "${e.key}" failed to start`,a);}},i=()=>{o?.(),o=null;},p=w(r,a=>{a.isIntersecting?s():i();});return ()=>{p(),i();}}function C(e,t,r){let n=r.get(t);if(!n)return;n.dispose();let o=y(e);for(let s of n.written)o.removeProperty(s),g.forget(e,s);r.delete(t);}function _(e,t){let r=f.get(e);r||f.set(e,r=new Map);let n=[];for(let o of t){if(r.has(o))continue;let s=b[o];if(!s){console.warn(`[prop-for-that] unknown source "${o}"`);continue}let i=new Set,p;try{p=$(s,V(e,i,s.props),e);}catch(a){console.error(`[prop-for-that] source "${o}" failed to start`,a);continue}r.set(o,{dispose:p,written:i}),n.push(o);}return ()=>{let o=f.get(e);if(o){for(let s of n)C(e,s,o);o.size===0&&f.delete(e);}}}function j(e){return e instanceof Element?[e]:typeof NodeList<"u"&&e instanceof NodeList||typeof HTMLCollection<"u"&&e instanceof HTMLCollection||Array.isArray(e)?Array.from(e).filter(t=>t instanceof Element):[]}function q(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="string")}function Te(e,t){let r,n;if(t===void 0&&q(e)?(r=a$1.root?[a$1.root]:[],n=e):(r=j(e),n=t??[]),!r.length||!n.length)return N;let o=r.map(s=>_(s,n));return ()=>{for(let s of o)s();}}function He(e,t){let r=f.get(e);if(r){for(let n of t??[...r.keys()])C(e,n,r);r.size===0&&f.delete(e);}}function Re(){for(let[e,t]of f)for(let r of [...t.keys()])C(e,r,t);f.clear();}export{Me as a,ke as b,Le as c,xe as d,Te as e,He as f,Re as g};
|
package/dist/chunk-WUGCASE4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-T4N6AEOZ.js';var c={key:"motion",scope:"global",start(o){if(typeof DeviceMotionEvent>"u")return ()=>{};let n=i=>{let t=i.accelerationIncludingGravity;o.write("accel-x",a(t?.x??0)),o.write("accel-y",a(t?.y??0)),o.write("accel-z",a(t?.z??0));};return window.addEventListener("devicemotion",n,{passive:true}),()=>window.removeEventListener("devicemotion",n)}};export{c as a};
|
package/dist/chunk-X5SADKXG.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkA6JDSQWH_cjs=require('./chunk-A6JDSQWH.cjs'),chunkHHINWX7L_cjs=require('./chunk-HHINWX7L.cjs');var i={key:"color-input",scope:"element",props:{color:chunkA6JDSQWH_cjs.b},start(r){let e=chunkHHINWX7L_cjs.a(r.target,'input[type="color"]');if(!e)return ()=>{};let o=()=>r.write("color",e.value);o();let n=["input","change"];for(let t of n)e.addEventListener(t,o,{passive:true});return ()=>{for(let t of n)e.removeEventListener(t,o);}}};exports.a=i;
|
package/dist/chunk-Y7HUY6HR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-T4N6AEOZ.js';var r={key:"orientation",scope:"global",start(t){if(typeof DeviceOrientationEvent>"u")return ()=>{};let n=i=>{t.write("orient-alpha",a(i.alpha??0)),t.write("orient-beta",a(i.beta??0)),t.write("orient-gamma",a(i.gamma??0));};return window.addEventListener("deviceorientation",n,{passive:true}),()=>window.removeEventListener("deviceorientation",n)}};export{r as a};
|
package/dist/chunk-YXEERKSK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-QIUPJ6MF.js';var g=e=>e instanceof HTMLInputElement&&(e.type==="checkbox"||e.type==="radio")?e.checked?"1":"0":e.value,h=e=>{if(e instanceof HTMLInputElement&&(e.type==="checkbox"||e.type==="radio"))return e.defaultChecked?"1":"0";if(e instanceof HTMLSelectElement){let r=Array.from(e.options).find(o=>o.defaultSelected);return r?r.value:e.options[0]?.value??""}return e.defaultValue},y={key:"field-state",scope:"element",start(e){let r=a(e.target);if(!r.length)return ()=>{};let o=new Set(r),l=new WeakMap;for(let t of r)l.set(t,g(t));let u=new Set,f=new Set,s=new Set,c=false,i=()=>{let t=u.size>0,n=f.size>0;e.write("dirty",t?1:0),e.write("pristine",t?0:1),e.write("touched",n?1:0),e.write("untouched",n?0:1),e.write("changed",s.size>0?1:0),e.write("submitted",c?1:0);};i();let a$1=t=>{let n=t.target;o.has(n)&&(u.add(n),g(n)===l.get(n)?s.delete(n):s.add(n),i());},m=t=>{let n=t.target;o.has(n)&&(f.add(n),i());};e.target.addEventListener("input",a$1,{passive:true}),e.target.addEventListener("change",a$1,{passive:true}),e.target.addEventListener("focusout",m,{passive:true});let d=e.target instanceof HTMLFormElement?e.target:r[0]?.form,E=()=>{c=true,i();},v=()=>{u.clear(),f.clear(),c=false,s.clear();for(let t of r)h(t)!==l.get(t)&&s.add(t);i();};return d?.addEventListener("submit",E,{passive:true}),d?.addEventListener("reset",v,{passive:true}),()=>{e.target.removeEventListener("input",a$1),e.target.removeEventListener("change",a$1),e.target.removeEventListener("focusout",m),d?.removeEventListener("submit",E),d?.removeEventListener("reset",v);}}};export{y as a};
|
package/dist/chunk-YXQTZ7WB.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkHHINWX7L_cjs=require('./chunk-HHINWX7L.cjs'),chunk65MXZJBD_cjs=require('./chunk-65MXZJBD.cjs');var p=[["valueMissing","value-missing"],["typeMismatch","type-mismatch"],["patternMismatch","pattern-mismatch"],["tooLong","too-long"],["tooShort","too-short"],["rangeUnderflow","range-underflow"],["rangeOverflow","range-overflow"],["stepMismatch","step-mismatch"],["badInput","bad-input"],["customError","custom-error"]],u={key:"field",scope:"element",start(t){let r=chunkHHINWX7L_cjs.a(t.target,"input, textarea, select");if(!r)return ()=>{};let o=()=>{let e=r.value.length;t.write("length",e),t.write("empty",e===0?1:0),t.write("valid",r.validity.valid?1:0);for(let[l,m]of p)t.write(m,r.validity[l]?1:0);let n=r.maxLength;n>=0&&(t.write("remaining",Math.max(0,n-e)),t.write("fill-pct",n>0?chunk65MXZJBD_cjs.a(Math.min(1,e/n)):0));};o();let i=["input","change"];for(let e of i)r.addEventListener(e,o,{passive:true});return ()=>{for(let e of i)r.removeEventListener(e,o);}}};exports.a=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as colorInput}from'./chunk-QRIZE6VL.js';import'./chunk-A2ETARW3.js';import'./chunk-LTJ2VKVY.js';
|
package/dist/field-N3X45MAG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as field}from'./chunk-2C7ZUOOR.js';import'./chunk-LTJ2VKVY.js';import'./chunk-T4N6AEOZ.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as fieldState}from'./chunk-YXEERKSK.js';import'./chunk-QIUPJ6MF.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkCGNMHQYQ_cjs=require('./chunk-CGNMHQYQ.cjs');require('./chunk-L4SCOKPV.cjs');Object.defineProperty(exports,"fieldState",{enumerable:true,get:function(){return chunkCGNMHQYQ_cjs.a}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as formState}from'./chunk-SRQQTNRZ.js';import'./chunk-QIUPJ6MF.js';import'./chunk-T4N6AEOZ.js';
|
package/dist/fps-IYNIQTBO.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkCO3JFREC_cjs=require('./chunk-CO3JFREC.cjs');require('./chunk-EOPF4ZLZ.cjs'),require('./chunk-7L35N3N3.cjs');Object.defineProperty(exports,"fps",{enumerable:true,get:function(){return chunkCO3JFREC_cjs.a}});
|
package/dist/fps-PJTUYBXE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as fps}from'./chunk-XFT6UIQJ.js';import'./chunk-LF4OE7IL.js';import'./chunk-LWKH66VY.js';
|
package/dist/img-QU7AEFQR.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk6FIY4G6K_cjs=require('./chunk-6FIY4G6K.cjs');require('./chunk-HHINWX7L.cjs');Object.defineProperty(exports,"img",{enumerable:true,get:function(){return chunk6FIY4G6K_cjs.a}});
|
package/dist/img-ZKCK5FYH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as img}from'./chunk-KMPRPVIO.js';import'./chunk-LTJ2VKVY.js';
|
package/dist/motion-BIOKXRRD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as motion}from'./chunk-WUGCASE4.js';import'./chunk-T4N6AEOZ.js';
|
package/dist/motion-XN5OMPI3.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkLULEQHRM_cjs=require('./chunk-LULEQHRM.cjs');require('./chunk-65MXZJBD.cjs');Object.defineProperty(exports,"motion",{enumerable:true,get:function(){return chunkLULEQHRM_cjs.a}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkMJJCQRTF_cjs=require('./chunk-MJJCQRTF.cjs');require('./chunk-65MXZJBD.cjs');Object.defineProperty(exports,"orientation",{enumerable:true,get:function(){return chunkMJJCQRTF_cjs.a}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as orientation}from'./chunk-Y7HUY6HR.js';import'./chunk-T4N6AEOZ.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as scrollVelocity}from'./chunk-RI7ZNKJ4.js';import'./chunk-LF4OE7IL.js';import'./chunk-T4N6AEOZ.js';import'./chunk-LWKH66VY.js';import'./chunk-EEMKKLRF.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkS2QXIZB2_cjs=require('./chunk-S2QXIZB2.cjs');require('./chunk-EOPF4ZLZ.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7L35N3N3.cjs'),require('./chunk-QHHF5SEL.cjs');Object.defineProperty(exports,"scrollVelocity",{enumerable:true,get:function(){return chunkS2QXIZB2_cjs.a}});
|
package/dist/select-EU62RW5T.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as select}from'./chunk-IJDX3MYP.js';import'./chunk-LTJ2VKVY.js';import'./chunk-T4N6AEOZ.js';
|