aptechka 0.1.1 → 0.1.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/lib/Damped-DdPj4Sho.cjs +1 -0
- package/lib/Damped-H3PuZwKV.js +152 -0
- package/lib/SourceManager-tmQlXkSD.cjs +1 -0
- package/lib/SourceManager-vXInLlh_.js +108 -0
- package/lib/Store-qq7IjRLE.js +136 -0
- package/lib/Store-txkR3wXU.cjs +1 -0
- package/lib/WheelControls-9ZQKSYYq.js +83 -0
- package/lib/WheelControls-TYhGU6oA.cjs +1 -0
- package/lib/accordion/AccordionElement.d.ts +7 -0
- package/lib/accordion/index.d.ts +1 -0
- package/lib/animation/Animated.d.ts +41 -0
- package/lib/animation/Damped.d.ts +11 -0
- package/lib/animation/Tweened.d.ts +16 -0
- package/lib/animation/index.cjs +1 -0
- package/lib/animation/index.d.ts +3 -0
- package/lib/animation/index.js +56 -0
- package/lib/attribute/index.cjs +1 -0
- package/lib/attribute/index.d.ts +8 -0
- package/lib/attribute/index.js +47 -0
- package/lib/attributes-_2U65GDl.cjs +1 -0
- package/lib/attributes-w0u-KiIb.js +10 -0
- package/lib/browser-QbF6EW-w.cjs +1 -0
- package/lib/browser-S4eq8AeN.js +4 -0
- package/lib/canvas-2d/index.cjs +5 -0
- package/lib/canvas-2d/index.d.ts +30 -0
- package/lib/canvas-2d/index.js +90 -0
- package/lib/controls/Controls.d.ts +9 -0
- package/lib/controls/KeyboardControls.d.ts +10 -0
- package/lib/controls/LinearControls.d.ts +11 -0
- package/lib/controls/WheelControls.d.ts +17 -0
- package/lib/controls/index.cjs +1 -0
- package/lib/controls/index.d.ts +4 -0
- package/lib/controls/index.js +42 -0
- package/lib/css-unit-parser/index.cjs +8 -0
- package/lib/css-unit-parser/index.d.ts +6 -0
- package/lib/css-unit-parser/index.js +36 -0
- package/lib/custom-element/index.cjs +1 -0
- package/lib/custom-element/index.d.ts +8 -0
- package/lib/custom-element/index.js +16 -0
- package/lib/device/Device.d.ts +17 -0
- package/lib/device/Viewport.d.ts +27 -0
- package/lib/device/index.cjs +1 -0
- package/lib/device/index.d.ts +2 -0
- package/lib/device/index.js +123 -0
- package/lib/dom-QhWsdQS2.cjs +1 -0
- package/lib/dom-bHEwc_xV.js +24 -0
- package/lib/easings-_wFs9ZWc.cjs +1 -0
- package/lib/easings-uF-tgahf.js +19 -0
- package/lib/element-constructor/ElementConstructor.d.ts +76 -0
- package/lib/element-constructor/htmlTags.d.ts +113 -0
- package/lib/element-constructor/index.cjs +1 -0
- package/lib/element-constructor/index.d.ts +4 -0
- package/lib/element-constructor/index.js +1390 -0
- package/lib/element-constructor/specialObjects.d.ts +2 -0
- package/lib/element-constructor/svgTags.d.ts +64 -0
- package/lib/en3/attachments/En3SourceManager.d.ts +30 -0
- package/lib/en3/core/en3.d.ts +55 -0
- package/lib/en3/index.cjs +28 -0
- package/lib/en3/index.d.ts +18 -0
- package/lib/en3/index.js +3249 -0
- package/lib/en3/instances/en3LazyLoader.d.ts +7 -0
- package/lib/en3/libs/MeshoptDecoder.d.ts +1 -0
- package/lib/en3/loaders/en3GLTFLoader.d.ts +16 -0
- package/lib/en3/loaders/en3TextureLoader.d.ts +2 -0
- package/lib/en3/objects/En3Clip.d.ts +10 -0
- package/lib/en3/objects/En3ClipHelpers.d.ts +5 -0
- package/lib/en3/objects/En3GLTF.d.ts +9 -0
- package/lib/en3/objects/En3Image.d.ts +7 -0
- package/lib/en3/objects/En3ImageLike.d.ts +22 -0
- package/{src/packages/en3/objects/En3SourceConsumer.ts → lib/en3/objects/En3SourceConsumer.d.ts} +2 -3
- package/lib/en3/objects/En3Video.d.ts +12 -0
- package/lib/en3/test/En3HTML.d.ts +9 -0
- package/lib/en3/test/En3ModifiedMaterial.d.ts +32 -0
- package/lib/en3/test/En3Raycaster.d.ts +19 -0
- package/lib/en3/utils/coverTexture.d.ts +6 -0
- package/lib/en3/utils/dispose.d.ts +2 -0
- package/lib/en3/utils/traverseMaterials.d.ts +2 -0
- package/lib/en3/utils/traverseMeshes.d.ts +2 -0
- package/lib/function-QP7IreXR.cjs +1 -0
- package/lib/function-zwSFehNd.js +17 -0
- package/lib/image/index.cjs +1 -0
- package/lib/image/index.d.ts +10 -0
- package/lib/image/index.js +30 -0
- package/lib/intersector/index.cjs +1 -0
- package/lib/intersector/index.d.ts +8 -0
- package/lib/intersector/index.js +55 -0
- package/lib/ladder/index.cjs +1 -0
- package/lib/ladder/index.d.ts +21 -0
- package/lib/ladder/index.js +97 -0
- package/lib/layout-5SJlcXTY.js +12 -0
- package/lib/layout-box/index.cjs +1 -0
- package/lib/layout-box/index.d.ts +78 -0
- package/lib/layout-box/index.js +235 -0
- package/lib/layout-rZzbsLPd.cjs +1 -0
- package/lib/loading/index.cjs +1 -0
- package/lib/loading/index.d.ts +38 -0
- package/lib/loading/index.js +99 -0
- package/lib/math-FNUBmQPK.cjs +1 -0
- package/lib/math-_a3IpKOc.js +45 -0
- package/lib/measurer/CumulativeOffsetLeft.d.ts +4 -0
- package/lib/measurer/CumulativeOffsetTop.d.ts +4 -0
- package/lib/measurer/Meaurer.d.ts +8 -0
- package/lib/measurer/index.cjs +1 -0
- package/lib/measurer/index.d.ts +3 -0
- package/lib/measurer/index.js +48 -0
- package/lib/media/index.cjs +1 -0
- package/lib/media/index.d.ts +11 -0
- package/lib/media/index.js +33 -0
- package/lib/morph/Link.d.ts +6 -0
- package/lib/morph/Morph.d.ts +26 -0
- package/lib/morph/index.cjs +1 -0
- package/lib/morph/index.d.ts +1 -0
- package/lib/morph/index.js +182 -0
- package/lib/notifier/index.cjs +1 -0
- package/lib/notifier/index.d.ts +8 -0
- package/lib/notifier/index.js +38 -0
- package/lib/number-2bR0KBcX.cjs +1 -0
- package/lib/number-bCHB2GAD.js +31 -0
- package/lib/order/index.cjs +1 -0
- package/lib/order/index.d.ts +13 -0
- package/lib/order/index.js +5 -0
- package/lib/resizer/index.cjs +1 -0
- package/lib/resizer/index.d.ts +10 -0
- package/lib/resizer/index.js +45 -0
- package/lib/router/Link.d.ts +6 -0
- package/lib/router/Route.d.ts +15 -0
- package/lib/router/RouteElement.d.ts +14 -0
- package/lib/router/Router.d.ts +33 -0
- package/lib/router/index.cjs +1 -0
- package/lib/router/index.d.ts +3 -0
- package/lib/router/index.js +266 -0
- package/lib/scroll/ScrollElement.d.ts +40 -0
- package/lib/scroll/ScrollUserElement.d.ts +7 -0
- package/lib/scroll/ScrollbarElement.d.ts +13 -0
- package/lib/scroll/index.cjs +71 -0
- package/lib/scroll/index.d.ts +2 -0
- package/lib/scroll/index.js +444 -0
- package/lib/scroll-entries/index.cjs +1 -0
- package/lib/scroll-entries/index.d.ts +17 -0
- package/lib/scroll-entries/index.js +56 -0
- package/lib/source/SourceClass.d.ts +11 -0
- package/lib/source/SourceElement.d.ts +16 -0
- package/lib/source/SourceManager.d.ts +13 -0
- package/lib/source/SourceSet.d.ts +8 -0
- package/lib/source/index.cjs +5 -0
- package/lib/source/index.d.ts +4 -0
- package/lib/source/index.js +95 -0
- package/lib/store/Composed.d.ts +7 -0
- package/lib/store/CumulativeResource.d.ts +12 -0
- package/lib/store/Derived.d.ts +7 -0
- package/lib/store/DerivedArray.d.ts +7 -0
- package/lib/store/Resource.d.ts +14 -0
- package/lib/store/Store.d.ts +33 -0
- package/lib/store/StoreRegistry.d.ts +22 -0
- package/lib/store/index.cjs +1 -0
- package/lib/store/index.d.ts +6 -0
- package/lib/store/index.js +99 -0
- package/lib/string-GmxZA5Nq.js +31 -0
- package/lib/string-WmNOGq16.cjs +1 -0
- package/lib/studio/StudioElement.d.ts +9 -0
- package/lib/studio/index.d.ts +1 -0
- package/lib/ticker/index.cjs +1 -0
- package/lib/ticker/index.d.ts +19 -0
- package/lib/ticker/index.js +107 -0
- package/lib/utils/array.d.ts +1 -0
- package/lib/utils/attributes.d.ts +2 -0
- package/lib/utils/browser.d.ts +1 -0
- package/lib/utils/canvas.d.ts +6 -0
- package/lib/utils/collisions.d.ts +3 -0
- package/lib/utils/coordinates.d.ts +13 -0
- package/lib/utils/decoding.d.ts +2 -0
- package/lib/utils/dev.d.ts +3 -0
- package/lib/utils/dom.d.ts +4 -0
- package/lib/utils/easings.d.ts +17 -0
- package/lib/utils/file.d.ts +1 -0
- package/lib/utils/function.d.ts +2 -0
- package/lib/utils/index.cjs +1 -0
- package/lib/utils/index.d.ts +19 -0
- package/lib/utils/index.js +203 -0
- package/lib/utils/layout.d.ts +3 -0
- package/lib/utils/math.d.ts +11 -0
- package/lib/utils/number.d.ts +3 -0
- package/lib/utils/object.d.ts +7 -0
- package/lib/utils/string.d.ts +5 -0
- package/lib/utils/ts-shape.d.ts +19 -0
- package/lib/utils/ts-utility.d.ts +19 -0
- package/lib/video/index.cjs +1 -0
- package/lib/video/index.d.ts +11 -0
- package/lib/video/index.js +37 -0
- package/package.json +7 -7
- package/.github/workflows/publish.yml +0 -20
- package/.prettierignore +0 -16
- package/.prettierrc +0 -9
- package/index.html +0 -32
- package/public/vite.svg +0 -1
- package/src/packages/animation/Animated.ts +0 -189
- package/src/packages/animation/Damped.ts +0 -39
- package/src/packages/animation/Tweened.ts +0 -51
- package/src/packages/animation/index.ts +0 -10
- package/src/packages/attribute/index.ts +0 -59
- package/src/packages/canvas-2d/index.ts +0 -137
- package/src/packages/controls/Controls.ts +0 -15
- package/src/packages/controls/KeyboardControls.ts +0 -63
- package/src/packages/controls/LinearControls.ts +0 -27
- package/src/packages/controls/User.ts +0 -20
- package/src/packages/controls/WheelControls.ts +0 -92
- package/src/packages/controls/index.ts +0 -5
- package/src/packages/css-unit-parser/index.ts +0 -32
- package/src/packages/custom-element/index.ts +0 -19
- package/src/packages/device/Device.ts +0 -113
- package/src/packages/device/Viewport.ts +0 -67
- package/src/packages/device/index.ts +0 -2
- package/src/packages/element-constructor/ElementConstructor.ts +0 -577
- package/src/packages/element-constructor/htmlTags.ts +0 -679
- package/src/packages/element-constructor/index.ts +0 -4
- package/src/packages/element-constructor/specialObjects.ts +0 -8
- package/src/packages/element-constructor/svgTags.ts +0 -588
- package/src/packages/en3/attachments/En3SourceManager.ts +0 -116
- package/src/packages/en3/core/en3.ts +0 -306
- package/src/packages/en3/index.ts +0 -52
- package/src/packages/en3/instances/en3LazyLoader.ts +0 -22
- package/src/packages/en3/libs/MeshoptDecoder.js +0 -138
- package/src/packages/en3/loaders/en3GLTFLoader.ts +0 -54
- package/src/packages/en3/loaders/en3TextureLoader.ts +0 -3
- package/src/packages/en3/objects/En3Clip.ts +0 -53
- package/src/packages/en3/objects/En3ClipHelpers.ts +0 -12
- package/src/packages/en3/objects/En3GLTF.ts +0 -35
- package/src/packages/en3/objects/En3Image.ts +0 -18
- package/src/packages/en3/objects/En3ImageLike.ts +0 -101
- package/src/packages/en3/objects/En3Video.ts +0 -88
- package/src/packages/en3/test/En3HTML.ts +0 -55
- package/src/packages/en3/test/En3ModifiedMaterial.ts +0 -221
- package/src/packages/en3/test/En3Raycaster.ts +0 -187
- package/src/packages/en3/utils/coverTexture.ts +0 -29
- package/src/packages/en3/utils/dispose.ts +0 -27
- package/src/packages/en3/utils/traverseMaterials.ts +0 -10
- package/src/packages/en3/utils/traverseMeshes.ts +0 -9
- package/src/packages/image/index.ts +0 -19
- package/src/packages/intersector/index.ts +0 -83
- package/src/packages/ladder/index.ts +0 -112
- package/src/packages/layout-box/index.ts +0 -417
- package/src/packages/loading/index.ts +0 -131
- package/src/packages/measurer/CumulativeOffsetLeft.ts +0 -8
- package/src/packages/measurer/CumulativeOffsetTop.ts +0 -8
- package/src/packages/measurer/Meaurer.ts +0 -38
- package/src/packages/measurer/index.ts +0 -3
- package/src/packages/media/index.ts +0 -38
- package/src/packages/morph/Link.ts +0 -32
- package/src/packages/morph/Morph.ts +0 -246
- package/src/packages/morph/index.ts +0 -10
- package/src/packages/notifier/index.ts +0 -41
- package/src/packages/order/index.ts +0 -14
- package/src/packages/resizer/index.ts +0 -55
- package/src/packages/router/Link.ts +0 -33
- package/src/packages/router/Route.ts +0 -152
- package/src/packages/router/RouteElement.ts +0 -34
- package/src/packages/router/Router.ts +0 -190
- package/src/packages/router/index.ts +0 -13
- package/src/packages/scroll/ScrollElement.ts +0 -618
- package/src/packages/scroll/ScrollUserElement.ts +0 -21
- package/src/packages/scroll/ScrollbarElement.ts +0 -170
- package/src/packages/scroll/index.ts +0 -2
- package/src/packages/scroll-entries/index.ts +0 -74
- package/src/packages/source/SourceClass.ts +0 -77
- package/src/packages/source/SourceElement.ts +0 -177
- package/src/packages/source/SourceManager.ts +0 -61
- package/src/packages/source/SourceSet.ts +0 -52
- package/src/packages/source/index.ts +0 -8
- package/src/packages/store/Composed.ts +0 -33
- package/src/packages/store/Derived.ts +0 -24
- package/src/packages/store/DerivedArray.ts +0 -36
- package/src/packages/store/Resource.ts +0 -38
- package/src/packages/store/Store.ts +0 -144
- package/src/packages/store/StoreRegistry.ts +0 -105
- package/src/packages/store/index.ts +0 -23
- package/src/packages/ticker/index.ts +0 -173
- package/src/packages/utils/array.ts +0 -3
- package/src/packages/utils/attributes.ts +0 -19
- package/src/packages/utils/browser.ts +0 -2
- package/src/packages/utils/canvas.ts +0 -46
- package/src/packages/utils/collisions.ts +0 -12
- package/src/packages/utils/coordinates.ts +0 -40
- package/src/packages/utils/decoding.ts +0 -11
- package/src/packages/utils/dev.ts +0 -5
- package/src/packages/utils/dom.ts +0 -48
- package/src/packages/utils/easings.ts +0 -69
- package/src/packages/utils/file.ts +0 -17
- package/src/packages/utils/function.ts +0 -29
- package/src/packages/utils/index.ts +0 -61
- package/src/packages/utils/layout.ts +0 -22
- package/src/packages/utils/math.ts +0 -74
- package/src/packages/utils/number.ts +0 -26
- package/src/packages/utils/object.ts +0 -108
- package/src/packages/utils/string.ts +0 -49
- package/src/packages/utils/ts-shape.ts +0 -25
- package/src/packages/utils/ts-utility.ts +0 -47
- package/src/packages/video/index.ts +0 -39
- package/src/playground/index.ts +0 -0
- package/tsconfig.json +0 -31
- package/vite.config.ts +0 -78
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var z=Object.defineProperty,B=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var k=(s,e,t)=>e in s?z(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,v=(s,e)=>{for(var t in e||(e={}))G.call(e,t)&&k(s,t,e[t]);if(M)for(var t of M(e))H.call(e,t)&&k(s,t,e[t]);return s},D=(s,e)=>B(s,C(e));var R=(s,e,t)=>(k(s,typeof e!="symbol"?e+"":e,t),t),I=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var i=(s,e,t)=>(I(s,e,"read from private field"),t?t.call(s):e.get(s)),a=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},h=(s,e,t,r)=>(I(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);var b=(s,e,t)=>(I(s,e,"access private method"),t);const _=require("./math-FNUBmQPK.cjs"),L=require("./number-2bR0KBcX.cjs"),w=require("./Store-txkR3wXU.cjs"),E=require("./ticker/index.cjs");var g,S,y,n,l,x,m,f,q,c,F,P,d,A;class j extends w.Store{constructor(t){super(0,t);a(this,d);a(this,g,void 0);a(this,S,void 0);a(this,y,void 0);a(this,n,void 0);a(this,l,void 0);a(this,x,void 0);a(this,m,void 0);a(this,f,new w.Store(!1));a(this,q,0);a(this,c,0);a(this,F,t=>{this.set(t.current)});a(this,P,t=>{const r=this.current;this.handleAnimationFrame(t);const u=Math.abs(r-this.target);h(this,c,u/t.elapsed)});h(this,S,t==null?void 0:t.order),h(this,g,t==null?void 0:t.maxFPS),h(this,y,t==null?void 0:t.culling),h(this,l,b(this,d,A).call(this,t==null?void 0:t.min)),h(this,x,b(this,d,A).call(this,t==null?void 0:t.max)),h(this,n,this.current=0)}get target(){return i(this,n)}get isRunning(){return i(this,f)}get direction(){return i(this,q)}get maxFPS(){return i(this,g)}get speed(){return i(this,c)}get min(){return i(this,l).call(this)}set min(t){h(this,l,b(this,d,A).call(this,t)),this.set(i(this,n)),this.current=i(this,n)}get max(){return i(this,x).call(this)}set max(t){h(this,x,b(this,d,A).call(this,t)),this.set(i(this,n)),this.current=i(this,n)}get delta(){return this.max-this.min}get progress(){return this.delta?L.fix((this.current-this.min)/this.delta,6):0}get entry(){return D(v({},super.entry),{min:this.min,max:this.max,delta:this.delta,direction:this.direction,progress:this.progress,speed:this.speed})}get setter(){return i(this,m)}set setter(t){var r,u;(r=i(this,m))==null||r.unsubscribe(i(this,F)),h(this,m,t),(u=i(this,m))==null||u.subscribe(i(this,F))}set(t,r=!1){const u=i(this,n);h(this,n,_.clamp(t,this.min,this.max)),r&&(this.current=i(this,n)),i(this,n)!==u&&(h(this,c,0),h(this,q,Math.sign(t-i(this,n))||1),this.update())}shift(t,r=!1){this.set(i(this,n)+t,r)}close(){var t;super.close(),this.unlistenAnimationFrame(),(t=i(this,m))==null||t.unsubscribe(i(this,F)),h(this,m,void 0)}reset(){this.set(this.initial,!0),super.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){i(this,f).current=!0,E.ticker.subscribe(i(this,P),{maxFPS:i(this,g),order:i(this,S),culling:i(this,y)})}unlistenAnimationFrame(){h(this,c,0),i(this,f).current=!1,E.ticker.unsubscribe(i(this,P))}}g=new WeakMap,S=new WeakMap,y=new WeakMap,n=new WeakMap,l=new WeakMap,x=new WeakMap,m=new WeakMap,f=new WeakMap,q=new WeakMap,c=new WeakMap,F=new WeakMap,P=new WeakMap,d=new WeakSet,A=function(t){const r=t||0;return typeof r=="function"?r:()=>r};class J extends j{constructor(t){var r,u;super(D(v({},t),{min:(r=t==null?void 0:t.min)!=null?r:-1/0,max:(u=t==null?void 0:t.max)!=null?u:1/0}));R(this,"damping");this.damping=(t==null?void 0:t.damping)||0}update(){this.damping?this.listenAnimationFrame():(this.current=this.target,this.unlistenAnimationFrame())}handleAnimationFrame(t){L.fix(this.current,4)===L.fix(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target),this.current=_.damp(this.current,this.target,this.damping,t.elapsed)}}exports.Animated=j;exports.Damped=J;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
var q = Object.defineProperty, z = Object.defineProperties;
|
|
2
|
+
var B = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var k = Object.getOwnPropertySymbols;
|
|
4
|
+
var C = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var D = (s, e, t) => e in s ? q(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, I = (s, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
C.call(e, t) && D(s, t, e[t]);
|
|
8
|
+
if (k)
|
|
9
|
+
for (var t of k(e))
|
|
10
|
+
G.call(e, t) && D(s, t, e[t]);
|
|
11
|
+
return s;
|
|
12
|
+
}, L = (s, e) => z(s, B(e));
|
|
13
|
+
var w = (s, e, t) => (D(s, typeof e != "symbol" ? e + "" : e, t), t), M = (s, e, t) => {
|
|
14
|
+
if (!e.has(s))
|
|
15
|
+
throw TypeError("Cannot " + t);
|
|
16
|
+
};
|
|
17
|
+
var i = (s, e, t) => (M(s, e, "read from private field"), t ? t.call(s) : e.get(s)), n = (s, e, t) => {
|
|
18
|
+
if (e.has(s))
|
|
19
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
20
|
+
e instanceof WeakSet ? e.add(s) : e.set(s, t);
|
|
21
|
+
}, h = (s, e, t, r) => (M(s, e, "write to private field"), r ? r.call(s, t) : e.set(s, t), t);
|
|
22
|
+
var b = (s, e, t) => (M(s, e, "access private method"), t);
|
|
23
|
+
import { c as H, d as J } from "./math-_a3IpKOc.js";
|
|
24
|
+
import { f as R } from "./number-bCHB2GAD.js";
|
|
25
|
+
import { S as E } from "./Store-qq7IjRLE.js";
|
|
26
|
+
import { ticker as j } from "./ticker/index.js";
|
|
27
|
+
var g, S, y, a, l, f, u, x, P, c, F, v, d, A;
|
|
28
|
+
class K extends E {
|
|
29
|
+
constructor(t) {
|
|
30
|
+
super(0, t);
|
|
31
|
+
n(this, d);
|
|
32
|
+
n(this, g, void 0);
|
|
33
|
+
n(this, S, void 0);
|
|
34
|
+
n(this, y, void 0);
|
|
35
|
+
n(this, a, void 0);
|
|
36
|
+
n(this, l, void 0);
|
|
37
|
+
n(this, f, void 0);
|
|
38
|
+
n(this, u, void 0);
|
|
39
|
+
n(this, x, new E(!1));
|
|
40
|
+
n(this, P, 0);
|
|
41
|
+
n(this, c, 0);
|
|
42
|
+
n(this, F, (t) => {
|
|
43
|
+
this.set(t.current);
|
|
44
|
+
});
|
|
45
|
+
n(this, v, (t) => {
|
|
46
|
+
const r = this.current;
|
|
47
|
+
this.handleAnimationFrame(t);
|
|
48
|
+
const m = Math.abs(r - this.target);
|
|
49
|
+
h(this, c, m / t.elapsed);
|
|
50
|
+
});
|
|
51
|
+
h(this, S, t == null ? void 0 : t.order), h(this, g, t == null ? void 0 : t.maxFPS), h(this, y, t == null ? void 0 : t.culling), h(this, l, b(this, d, A).call(this, t == null ? void 0 : t.min)), h(this, f, b(this, d, A).call(this, t == null ? void 0 : t.max)), h(this, a, this.current = 0);
|
|
52
|
+
}
|
|
53
|
+
get target() {
|
|
54
|
+
return i(this, a);
|
|
55
|
+
}
|
|
56
|
+
get isRunning() {
|
|
57
|
+
return i(this, x);
|
|
58
|
+
}
|
|
59
|
+
get direction() {
|
|
60
|
+
return i(this, P);
|
|
61
|
+
}
|
|
62
|
+
get maxFPS() {
|
|
63
|
+
return i(this, g);
|
|
64
|
+
}
|
|
65
|
+
get speed() {
|
|
66
|
+
return i(this, c);
|
|
67
|
+
}
|
|
68
|
+
get min() {
|
|
69
|
+
return i(this, l).call(this);
|
|
70
|
+
}
|
|
71
|
+
set min(t) {
|
|
72
|
+
h(this, l, b(this, d, A).call(this, t)), this.set(i(this, a)), this.current = i(this, a);
|
|
73
|
+
}
|
|
74
|
+
get max() {
|
|
75
|
+
return i(this, f).call(this);
|
|
76
|
+
}
|
|
77
|
+
set max(t) {
|
|
78
|
+
h(this, f, b(this, d, A).call(this, t)), this.set(i(this, a)), this.current = i(this, a);
|
|
79
|
+
}
|
|
80
|
+
get delta() {
|
|
81
|
+
return this.max - this.min;
|
|
82
|
+
}
|
|
83
|
+
get progress() {
|
|
84
|
+
return this.delta ? R((this.current - this.min) / this.delta, 6) : 0;
|
|
85
|
+
}
|
|
86
|
+
get entry() {
|
|
87
|
+
return L(I({}, super.entry), {
|
|
88
|
+
min: this.min,
|
|
89
|
+
max: this.max,
|
|
90
|
+
delta: this.delta,
|
|
91
|
+
direction: this.direction,
|
|
92
|
+
progress: this.progress,
|
|
93
|
+
speed: this.speed
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
get setter() {
|
|
97
|
+
return i(this, u);
|
|
98
|
+
}
|
|
99
|
+
set setter(t) {
|
|
100
|
+
var r, m;
|
|
101
|
+
(r = i(this, u)) == null || r.unsubscribe(i(this, F)), h(this, u, t), (m = i(this, u)) == null || m.subscribe(i(this, F));
|
|
102
|
+
}
|
|
103
|
+
set(t, r = !1) {
|
|
104
|
+
const m = i(this, a);
|
|
105
|
+
h(this, a, H(t, this.min, this.max)), r && (this.current = i(this, a)), i(this, a) !== m && (h(this, c, 0), h(this, P, Math.sign(t - i(this, a)) || 1), this.update());
|
|
106
|
+
}
|
|
107
|
+
shift(t, r = !1) {
|
|
108
|
+
this.set(i(this, a) + t, r);
|
|
109
|
+
}
|
|
110
|
+
close() {
|
|
111
|
+
var t;
|
|
112
|
+
super.close(), this.unlistenAnimationFrame(), (t = i(this, u)) == null || t.unsubscribe(i(this, F)), h(this, u, void 0);
|
|
113
|
+
}
|
|
114
|
+
reset() {
|
|
115
|
+
this.set(this.initial, !0), super.reset(), this.unlistenAnimationFrame();
|
|
116
|
+
}
|
|
117
|
+
listenAnimationFrame() {
|
|
118
|
+
i(this, x).current = !0, j.subscribe(i(this, v), {
|
|
119
|
+
maxFPS: i(this, g),
|
|
120
|
+
order: i(this, S),
|
|
121
|
+
culling: i(this, y)
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
unlistenAnimationFrame() {
|
|
125
|
+
h(this, c, 0), i(this, x).current = !1, j.unsubscribe(i(this, v));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
g = new WeakMap(), S = new WeakMap(), y = new WeakMap(), a = new WeakMap(), l = new WeakMap(), f = new WeakMap(), u = new WeakMap(), x = new WeakMap(), P = new WeakMap(), c = new WeakMap(), F = new WeakMap(), v = new WeakMap(), d = new WeakSet(), A = function(t) {
|
|
129
|
+
const r = t || 0;
|
|
130
|
+
return typeof r == "function" ? r : () => r;
|
|
131
|
+
};
|
|
132
|
+
class V extends K {
|
|
133
|
+
constructor(t) {
|
|
134
|
+
var r, m;
|
|
135
|
+
super(L(I({}, t), {
|
|
136
|
+
min: (r = t == null ? void 0 : t.min) != null ? r : -1 / 0,
|
|
137
|
+
max: (m = t == null ? void 0 : t.max) != null ? m : 1 / 0
|
|
138
|
+
}));
|
|
139
|
+
w(this, "damping");
|
|
140
|
+
this.damping = (t == null ? void 0 : t.damping) || 0;
|
|
141
|
+
}
|
|
142
|
+
update() {
|
|
143
|
+
this.damping ? this.listenAnimationFrame() : (this.current = this.target, this.unlistenAnimationFrame());
|
|
144
|
+
}
|
|
145
|
+
handleAnimationFrame(t) {
|
|
146
|
+
R(this.current, 4) === R(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target), this.current = J(this.current, this.target, this.damping, t.elapsed);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
export {
|
|
150
|
+
K as A,
|
|
151
|
+
V as D
|
|
152
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var M=(n,s,t)=>{if(!s.has(n))throw TypeError("Cannot "+t)};var r=(n,s,t)=>(M(n,s,"read from private field"),t?t.call(n):s.get(n)),o=(n,s,t)=>{if(s.has(n))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(n):s.set(n,t)},c=(n,s,t,i)=>(M(n,s,"write to private field"),i?i.call(n,t):s.set(n,t),t);const k=require("./order/index.cjs"),R=require("./resizer/index.cjs"),z=require("./Store-txkR3wXU.cjs");var l,g,q,x,a,p,E;class I{constructor(s){o(this,l,void 0);o(this,g,void 0);o(this,q,void 0);o(this,x,void 0);o(this,a,void 0);o(this,p,void 0);o(this,E,void 0);c(this,l,s);const t=s.indexOf("?");t>=0&&(s=s.slice(0,t));const i=s.split(".");c(this,g,i[0]);const d=/\d+x/g,h=i.find(f=>f.match(d));c(this,q,h?parseInt(h):1);const y=/\d+max/g,w=/\d+min/g,e=i.find(f=>f.match(y)),u=i.find(f=>f.match(w));e?(c(this,a,parseInt(e)),c(this,p,"max"),c(this,x,`(max-width: ${r(this,a)}px)`)):u?(c(this,a,parseInt(u)),c(this,x,`(min-width: ${r(this,a)}px)`),c(this,p,"min")):(c(this,a,0),c(this,x,`(min-width: ${r(this,a)}px)`),c(this,p,"min")),c(this,E,"."+i[i.length-1])}get url(){return r(this,l)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,x)}get extension(){return r(this,E)}get queryType(){return r(this,p)}get queryPx(){return r(this,a)}}l=new WeakMap,g=new WeakMap,q=new WeakMap,x=new WeakMap,a=new WeakMap,p=new WeakMap,E=new WeakMap;var m;class b{constructor(s){o(this,m,void 0);c(this,m,new Map);const t=typeof s=="string"?s.trim().split(",").map(e=>e.trim()).filter(e=>!!e):s,i=[];t.forEach(e=>{const u=new I(e);i.push([u.query,u])});const d=i.filter(e=>e[1].queryType==="max").sort((e,u)=>u[1].queryPx-e[1].queryPx),h=i.filter(e=>e[1].queryType==="min"&&e[1].queryPx!==0).sort((e,u)=>e[1].queryPx-u[1].queryPx),y=i.filter(e=>e[0]==="(min-width: 0px)");(y?[...y,...d,...h]:[...d,...h]).forEach(e=>{r(this,m).has(e[0])||r(this,m).set(e[0],[]),r(this,m).get(e[0]).push(e[1])})}get mediaBuckets(){return r(this,m)}}m=new WeakMap;var P,S;class B extends z.Store{constructor(t){super(void 0);o(this,P,void 0);o(this,S,()=>{let t;r(this,P).mediaBuckets.forEach((h,y)=>{matchMedia(y).matches&&(t=h)});let i,d=0;t==null||t.forEach(h=>{h.density>d&&h.density<=Math.max(devicePixelRatio,1)&&(d=h.density,i=h)}),t!=null&&t.length&&!i&&(i=t[0]),this.current=i});c(this,P,new b(t.srcset))}close(){super.close(),this.disconnect()}connect(){R.resizer.subscribe(r(this,S),k.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){R.resizer.unsubscribe(r(this,S))}}P=new WeakMap,S=new WeakMap;exports.Source=I;exports.SourceManager=B;exports.SourceSet=b;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
var R = (r, s, t) => {
|
|
2
|
+
if (!s.has(r))
|
|
3
|
+
throw TypeError("Cannot " + t);
|
|
4
|
+
};
|
|
5
|
+
var n = (r, s, t) => (R(r, s, "read from private field"), t ? t.call(r) : s.get(r)), a = (r, s, t) => {
|
|
6
|
+
if (s.has(r))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
s instanceof WeakSet ? s.add(r) : s.set(r, t);
|
|
9
|
+
}, h = (r, s, t, i) => (R(r, s, "write to private field"), i ? i.call(r, t) : s.set(r, t), t);
|
|
10
|
+
import { RESIZE_ORDER as I } from "./order/index.js";
|
|
11
|
+
import { resizer as b } from "./resizer/index.js";
|
|
12
|
+
import { S } from "./Store-qq7IjRLE.js";
|
|
13
|
+
var l, g, q, d, o, p, E;
|
|
14
|
+
class k {
|
|
15
|
+
constructor(s) {
|
|
16
|
+
a(this, l, void 0);
|
|
17
|
+
a(this, g, void 0);
|
|
18
|
+
a(this, q, void 0);
|
|
19
|
+
a(this, d, void 0);
|
|
20
|
+
a(this, o, void 0);
|
|
21
|
+
a(this, p, void 0);
|
|
22
|
+
a(this, E, void 0);
|
|
23
|
+
h(this, l, s);
|
|
24
|
+
const t = s.indexOf("?");
|
|
25
|
+
t >= 0 && (s = s.slice(0, t));
|
|
26
|
+
const i = s.split(".");
|
|
27
|
+
h(this, g, i[0]);
|
|
28
|
+
const x = /\d+x/g, c = i.find((y) => y.match(x));
|
|
29
|
+
h(this, q, c ? parseInt(c) : 1);
|
|
30
|
+
const f = /\d+max/g, M = /\d+min/g, e = i.find((y) => y.match(f)), m = i.find((y) => y.match(M));
|
|
31
|
+
e ? (h(this, o, parseInt(e)), h(this, p, "max"), h(this, d, `(max-width: ${n(this, o)}px)`)) : m ? (h(this, o, parseInt(m)), h(this, d, `(min-width: ${n(this, o)}px)`), h(this, p, "min")) : (h(this, o, 0), h(this, d, `(min-width: ${n(this, o)}px)`), h(this, p, "min")), h(this, E, "." + i[i.length - 1]);
|
|
32
|
+
}
|
|
33
|
+
get url() {
|
|
34
|
+
return n(this, l);
|
|
35
|
+
}
|
|
36
|
+
get name() {
|
|
37
|
+
return n(this, g);
|
|
38
|
+
}
|
|
39
|
+
get density() {
|
|
40
|
+
return n(this, q);
|
|
41
|
+
}
|
|
42
|
+
get query() {
|
|
43
|
+
return n(this, d);
|
|
44
|
+
}
|
|
45
|
+
get extension() {
|
|
46
|
+
return n(this, E);
|
|
47
|
+
}
|
|
48
|
+
get queryType() {
|
|
49
|
+
return n(this, p);
|
|
50
|
+
}
|
|
51
|
+
get queryPx() {
|
|
52
|
+
return n(this, o);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
l = new WeakMap(), g = new WeakMap(), q = new WeakMap(), d = new WeakMap(), o = new WeakMap(), p = new WeakMap(), E = new WeakMap();
|
|
56
|
+
var u;
|
|
57
|
+
class B {
|
|
58
|
+
constructor(s) {
|
|
59
|
+
a(this, u, void 0);
|
|
60
|
+
h(this, u, /* @__PURE__ */ new Map());
|
|
61
|
+
const t = typeof s == "string" ? s.trim().split(",").map((e) => e.trim()).filter((e) => !!e) : s, i = [];
|
|
62
|
+
t.forEach((e) => {
|
|
63
|
+
const m = new k(e);
|
|
64
|
+
i.push([m.query, m]);
|
|
65
|
+
});
|
|
66
|
+
const x = i.filter((e) => e[1].queryType === "max").sort((e, m) => m[1].queryPx - e[1].queryPx), c = i.filter((e) => e[1].queryType === "min" && e[1].queryPx !== 0).sort((e, m) => e[1].queryPx - m[1].queryPx), f = i.filter((e) => e[0] === "(min-width: 0px)");
|
|
67
|
+
(f ? [...f, ...x, ...c] : [...x, ...c]).forEach((e) => {
|
|
68
|
+
n(this, u).has(e[0]) || n(this, u).set(e[0], []), n(this, u).get(e[0]).push(e[1]);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
get mediaBuckets() {
|
|
72
|
+
return n(this, u);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
u = new WeakMap();
|
|
76
|
+
var P, w;
|
|
77
|
+
class A extends S {
|
|
78
|
+
constructor(t) {
|
|
79
|
+
super(void 0);
|
|
80
|
+
a(this, P, void 0);
|
|
81
|
+
a(this, w, () => {
|
|
82
|
+
let t;
|
|
83
|
+
n(this, P).mediaBuckets.forEach((c, f) => {
|
|
84
|
+
matchMedia(f).matches && (t = c);
|
|
85
|
+
});
|
|
86
|
+
let i, x = 0;
|
|
87
|
+
t == null || t.forEach((c) => {
|
|
88
|
+
c.density > x && c.density <= Math.max(devicePixelRatio, 1) && (x = c.density, i = c);
|
|
89
|
+
}), t != null && t.length && !i && (i = t[0]), this.current = i;
|
|
90
|
+
});
|
|
91
|
+
h(this, P, new B(t.srcset));
|
|
92
|
+
}
|
|
93
|
+
close() {
|
|
94
|
+
super.close(), this.disconnect();
|
|
95
|
+
}
|
|
96
|
+
connect() {
|
|
97
|
+
b.subscribe(n(this, w), I.SOURCE_MANAGER);
|
|
98
|
+
}
|
|
99
|
+
disconnect() {
|
|
100
|
+
b.unsubscribe(n(this, w));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
P = new WeakMap(), w = new WeakMap();
|
|
104
|
+
export {
|
|
105
|
+
A as S,
|
|
106
|
+
k as a,
|
|
107
|
+
B as b
|
|
108
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
var N = (s, t, e) => {
|
|
2
|
+
if (!t.has(s))
|
|
3
|
+
throw TypeError("Cannot " + e);
|
|
4
|
+
};
|
|
5
|
+
var r = (s, t, e) => (N(s, t, "read from private field"), e ? e.call(s) : t.get(s)), a = (s, t, e) => {
|
|
6
|
+
if (t.has(s))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
t instanceof WeakSet ? t.add(s) : t.set(s, e);
|
|
9
|
+
}, i = (s, t, e, c) => (N(s, t, "write to private field"), c ? c.call(s, e) : t.set(s, e), e);
|
|
10
|
+
var w = (s, t, e) => (N(s, t, "access private method"), e);
|
|
11
|
+
import { i as A } from "./browser-S4eq8AeN.js";
|
|
12
|
+
var l, o, S;
|
|
13
|
+
class q {
|
|
14
|
+
constructor() {
|
|
15
|
+
a(this, l, null);
|
|
16
|
+
a(this, o, void 0);
|
|
17
|
+
a(this, S, "");
|
|
18
|
+
A && (i(this, o, document.documentElement.getAttribute("data-project") || void 0), i(this, S, r(this, o) ? r(this, o) + "-store-registry" : "store-registry"));
|
|
19
|
+
}
|
|
20
|
+
get projectName() {
|
|
21
|
+
return r(this, o);
|
|
22
|
+
}
|
|
23
|
+
get localStoreRegistryName() {
|
|
24
|
+
return r(this, S);
|
|
25
|
+
}
|
|
26
|
+
get loadedState() {
|
|
27
|
+
return r(this, l);
|
|
28
|
+
}
|
|
29
|
+
saveState() {
|
|
30
|
+
const t = this.getState(), e = JSON.stringify(t);
|
|
31
|
+
localStorage.setItem(r(this, S), e);
|
|
32
|
+
}
|
|
33
|
+
loadState(t = localStorage.getItem(r(this, S))) {
|
|
34
|
+
t && (typeof t == "string" ? i(this, l, JSON.parse(t)) : i(this, l, t), f.current.forEach((e) => {
|
|
35
|
+
this.updateStore(e);
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
resetState() {
|
|
39
|
+
f.current.forEach((t) => {
|
|
40
|
+
t.reset();
|
|
41
|
+
}), this.saveState();
|
|
42
|
+
}
|
|
43
|
+
updateStore(t) {
|
|
44
|
+
var c, b;
|
|
45
|
+
if (!Array.isArray((c = r(this, l)) == null ? void 0 : c.stores))
|
|
46
|
+
return t;
|
|
47
|
+
const e = t.passport;
|
|
48
|
+
if (e) {
|
|
49
|
+
const k = (b = r(this, l)) == null ? void 0 : b.stores.find((j) => j.name === e.name);
|
|
50
|
+
k && (t.current = k.value);
|
|
51
|
+
}
|
|
52
|
+
return t;
|
|
53
|
+
}
|
|
54
|
+
getState() {
|
|
55
|
+
const t = {
|
|
56
|
+
stores: []
|
|
57
|
+
};
|
|
58
|
+
return f.current.forEach((e) => {
|
|
59
|
+
e.passport && t.stores.push({
|
|
60
|
+
value: e.current,
|
|
61
|
+
name: e.passport.name
|
|
62
|
+
});
|
|
63
|
+
}), t;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
l = new WeakMap(), o = new WeakMap(), S = new WeakMap();
|
|
67
|
+
const z = new q();
|
|
68
|
+
var u, d, g, n, m, h, y, p, v, R;
|
|
69
|
+
class C {
|
|
70
|
+
constructor(t, e) {
|
|
71
|
+
a(this, v);
|
|
72
|
+
a(this, u, void 0);
|
|
73
|
+
a(this, d, void 0);
|
|
74
|
+
a(this, g, void 0);
|
|
75
|
+
a(this, n, void 0);
|
|
76
|
+
a(this, m, void 0);
|
|
77
|
+
a(this, h, /* @__PURE__ */ new Set());
|
|
78
|
+
a(this, y, void 0);
|
|
79
|
+
a(this, p, void 0);
|
|
80
|
+
i(this, u, e == null ? void 0 : e.passport), i(this, d, t), i(this, g, void 0), i(this, n, t), i(this, m, (e == null ? void 0 : e.equalityCheck) || ((c, b) => c === b)), i(this, y, (e == null ? void 0 : e.validate) || ((c) => c)), i(this, p, (e == null ? void 0 : e.skipSubscribeNotification) || !1), r(this, u) && z.updateStore(this);
|
|
81
|
+
}
|
|
82
|
+
get passport() {
|
|
83
|
+
return r(this, u);
|
|
84
|
+
}
|
|
85
|
+
get initial() {
|
|
86
|
+
return r(this, d);
|
|
87
|
+
}
|
|
88
|
+
get previous() {
|
|
89
|
+
return r(this, g);
|
|
90
|
+
}
|
|
91
|
+
get current() {
|
|
92
|
+
return r(this, n);
|
|
93
|
+
}
|
|
94
|
+
set current(t) {
|
|
95
|
+
r(this, m).call(this, r(this, n), t) || (i(this, g, r(this, n)), i(this, n, r(this, y).call(this, t)), w(this, v, R).call(this));
|
|
96
|
+
}
|
|
97
|
+
get subscribers() {
|
|
98
|
+
return r(this, h);
|
|
99
|
+
}
|
|
100
|
+
get entry() {
|
|
101
|
+
return {
|
|
102
|
+
current: r(this, n),
|
|
103
|
+
previous: r(this, g)
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
subscribe(t) {
|
|
107
|
+
return r(this, u) && !r(this, h).size && I(this), r(this, h).add(t), r(this, p) || t(this.entry), () => {
|
|
108
|
+
this.unsubscribe(t);
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
unsubscribe(t) {
|
|
112
|
+
r(this, h).delete(t), r(this, u) && !r(this, h).size && E(this);
|
|
113
|
+
}
|
|
114
|
+
reset() {
|
|
115
|
+
this.current = this.initial;
|
|
116
|
+
}
|
|
117
|
+
close() {
|
|
118
|
+
r(this, h).clear(), r(this, u) && E(this);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
u = new WeakMap(), d = new WeakMap(), g = new WeakMap(), n = new WeakMap(), m = new WeakMap(), h = new WeakMap(), y = new WeakMap(), p = new WeakMap(), v = new WeakSet(), R = function() {
|
|
122
|
+
for (const t of r(this, h))
|
|
123
|
+
t(this.entry);
|
|
124
|
+
};
|
|
125
|
+
const f = new C([]);
|
|
126
|
+
function I(s) {
|
|
127
|
+
f.current.find((t) => t.passport.name === s.passport.name) || (f.current = [...f.current, s]);
|
|
128
|
+
}
|
|
129
|
+
function E(s) {
|
|
130
|
+
f.current.includes(s) && (f.current = f.current.filter((t) => t !== s));
|
|
131
|
+
}
|
|
132
|
+
export {
|
|
133
|
+
C as S,
|
|
134
|
+
f as a,
|
|
135
|
+
z as s
|
|
136
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var N=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(N(s,t,"read from private field"),e?e.call(s):t.get(s)),a=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},i=(s,t,e,u)=>(N(s,t,"write to private field"),u?u.call(s,e):t.set(s,e),e);var R=(s,t,e)=>(N(s,t,"access private method"),e);const z=require("./browser-QbF6EW-w.cjs");var l,o,S;class C{constructor(){a(this,l,null);a(this,o,void 0);a(this,S,"");z.isBrowser&&(i(this,o,document.documentElement.getAttribute("data-project")||void 0),i(this,S,r(this,o)?r(this,o)+"-store-registry":"store-registry"))}get projectName(){return r(this,o)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?i(this,l,JSON.parse(t)):i(this,l,t),c.current.forEach(e=>{this.updateStore(e)}))}resetState(){c.current.forEach(t=>{t.reset()}),this.saveState()}updateStore(t){var u,p;if(!Array.isArray((u=r(this,l))==null?void 0:u.stores))return t;const e=t.passport;if(e){const w=(p=r(this,l))==null?void 0:p.stores.find(A=>A.name===e.name);w&&(t.current=w.value)}return t}getState(){const t={stores:[]};return c.current.forEach(e=>{e.passport&&t.stores.push({value:e.current,name:e.passport.name})}),t}}l=new WeakMap,o=new WeakMap,S=new WeakMap;const E=new C;var n,d,g,f,y,h,m,b,v,q;class j{constructor(t,e){a(this,v);a(this,n,void 0);a(this,d,void 0);a(this,g,void 0);a(this,f,void 0);a(this,y,void 0);a(this,h,new Set);a(this,m,void 0);a(this,b,void 0);i(this,n,e==null?void 0:e.passport),i(this,d,t),i(this,g,void 0),i(this,f,t),i(this,y,(e==null?void 0:e.equalityCheck)||((u,p)=>u===p)),i(this,m,(e==null?void 0:e.validate)||(u=>u)),i(this,b,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,n)&&E.updateStore(this)}get passport(){return r(this,n)}get initial(){return r(this,d)}get previous(){return r(this,g)}get current(){return r(this,f)}set current(t){r(this,y).call(this,r(this,f),t)||(i(this,g,r(this,f)),i(this,f,r(this,m).call(this,t)),R(this,v,q).call(this))}get subscribers(){return r(this,h)}get entry(){return{current:r(this,f),previous:r(this,g)}}subscribe(t){return r(this,n)&&!r(this,h).size&&I(this),r(this,h).add(t),r(this,b)||t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,h).delete(t),r(this,n)&&!r(this,h).size&&k(this)}reset(){this.current=this.initial}close(){r(this,h).clear(),r(this,n)&&k(this)}}n=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,y=new WeakMap,h=new WeakMap,m=new WeakMap,b=new WeakMap,v=new WeakSet,q=function(){for(const t of r(this,h))t(this.entry)};const c=new j([]);function I(s){c.current.find(t=>t.passport.name===s.passport.name)||(c.current=[...c.current,s])}function k(s){c.current.includes(s)&&(c.current=c.current.filter(t=>t!==s))}exports.Store=j;exports.activeStores=c;exports.storeRegistry=E;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
var x = Object.defineProperty;
|
|
2
|
+
var b = (t, i, e) => i in t ? x(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
|
|
3
|
+
var g = (t, i, e) => (b(t, typeof i != "symbol" ? i + "" : i, e), e), y = (t, i, e) => {
|
|
4
|
+
if (!i.has(t))
|
|
5
|
+
throw TypeError("Cannot " + e);
|
|
6
|
+
};
|
|
7
|
+
var s = (t, i, e) => (y(t, i, "read from private field"), e ? e.call(t) : i.get(t)), a = (t, i, e) => {
|
|
8
|
+
if (i.has(t))
|
|
9
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
10
|
+
i instanceof WeakSet ? i.add(t) : i.set(t, e);
|
|
11
|
+
}, h = (t, i, e, n) => (y(t, i, "write to private field"), n ? n.call(t, e) : i.set(t, e), e);
|
|
12
|
+
import { i as r } from "./browser-S4eq8AeN.js";
|
|
13
|
+
import { g as u } from "./dom-bHEwc_xV.js";
|
|
14
|
+
import { Notifier as L } from "./notifier/index.js";
|
|
15
|
+
var m;
|
|
16
|
+
class v {
|
|
17
|
+
constructor() {
|
|
18
|
+
a(this, m, new L());
|
|
19
|
+
}
|
|
20
|
+
get changeEvent() {
|
|
21
|
+
return s(this, m);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
m = new WeakMap();
|
|
25
|
+
var c, o;
|
|
26
|
+
class k extends v {
|
|
27
|
+
constructor(e) {
|
|
28
|
+
super();
|
|
29
|
+
a(this, c, null);
|
|
30
|
+
a(this, o, (e) => {
|
|
31
|
+
const n = e.shiftKey ? -1 : 1;
|
|
32
|
+
e.code === "Space" ? this.changeEvent.notify(n * 500) : e.code === "ArrowLeft" ? this.changeEvent.notify(-1 * 100) : e.code === "ArrowRight" ? this.changeEvent.notify(1 * 100) : e.code === "ArrowUp" ? this.changeEvent.notify(-1 * 100) : e.code === "ArrowDown" ? this.changeEvent.notify(1 * 100) : e.code === "PageUp" ? this.changeEvent.notify(-1 * 1e3) : e.code === "PageDown" ? this.changeEvent.notify(1 * 1e3) : e.code === "Home" ? this.changeEvent.notify("min") : e.code === "End" && this.changeEvent.notify("max");
|
|
33
|
+
});
|
|
34
|
+
r && h(this, c, e != null && e.element && u(e.element) || window);
|
|
35
|
+
}
|
|
36
|
+
connect() {
|
|
37
|
+
r && s(this, c).addEventListener("keydown", s(this, o));
|
|
38
|
+
}
|
|
39
|
+
disconnect() {
|
|
40
|
+
r && s(this, c).removeEventListener("keydown", s(this, o));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
c = new WeakMap(), o = new WeakMap();
|
|
44
|
+
var d, l, f, w;
|
|
45
|
+
class K extends v {
|
|
46
|
+
constructor(e) {
|
|
47
|
+
super();
|
|
48
|
+
g(this, "axis");
|
|
49
|
+
g(this, "speed");
|
|
50
|
+
g(this, "debounce");
|
|
51
|
+
a(this, d, null);
|
|
52
|
+
a(this, l, void 0);
|
|
53
|
+
a(this, f, void 0);
|
|
54
|
+
a(this, w, (e) => {
|
|
55
|
+
let n = 0;
|
|
56
|
+
if (!(this.axis === "x" && Math.abs(e.deltaY) > Math.abs(e.deltaX) || this.axis === "y" && Math.abs(e.deltaX) > Math.abs(e.deltaY)))
|
|
57
|
+
if (n = (this.axis === "x" ? e.deltaX : e.deltaY) * this.speed, e.stopPropagation(), e.preventDefault(), this.debounce) {
|
|
58
|
+
const E = Date.now();
|
|
59
|
+
if (E - s(this, f) > 40 && (n = 100 * Math.sign(n)), h(this, f, E), Math.abs(n) < 100 || s(this, l))
|
|
60
|
+
return;
|
|
61
|
+
this.changeEvent.notify(n), h(this, l, setTimeout(() => {
|
|
62
|
+
h(this, l, void 0);
|
|
63
|
+
}, 80));
|
|
64
|
+
} else
|
|
65
|
+
this.changeEvent.notify(n);
|
|
66
|
+
});
|
|
67
|
+
this.axis = (e == null ? void 0 : e.axis) || "y", this.speed = (e == null ? void 0 : e.speed) || 1, this.debounce = (e == null ? void 0 : e.debounce) || !1, h(this, f, Date.now()), r && h(this, d, e != null && e.element && u(e.element) || window);
|
|
68
|
+
}
|
|
69
|
+
connect() {
|
|
70
|
+
r && s(this, d).addEventListener("wheel", s(this, w), {
|
|
71
|
+
passive: !1
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
disconnect() {
|
|
75
|
+
r && s(this, d).removeEventListener("wheel", s(this, w));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
d = new WeakMap(), l = new WeakMap(), f = new WeakMap(), w = new WeakMap();
|
|
79
|
+
export {
|
|
80
|
+
v as C,
|
|
81
|
+
k as K,
|
|
82
|
+
K as W
|
|
83
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var b=Object.defineProperty;var x=(t,s,e)=>s in t?b(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e;var g=(t,s,e)=>(x(t,typeof s!="symbol"?s+"":s,e),e),v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var i=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),r=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,n)=>(v(t,s,"write to private field"),n?n.call(t,e):s.set(t,e),e);const a=require("./browser-QbF6EW-w.cjs"),m=require("./dom-QhWsdQS2.cjs"),L=require("./notifier/index.cjs");var u;class E{constructor(){r(this,u,new L.Notifier)}get changeEvent(){return i(this,u)}}u=new WeakMap;var c,o;class B extends E{constructor(e){super();r(this,c,null);r(this,o,e=>{const n=e.shiftKey?-1:1;e.code==="Space"?this.changeEvent.notify(n*500):e.code==="ArrowLeft"?this.changeEvent.notify(-1*100):e.code==="ArrowRight"?this.changeEvent.notify(1*100):e.code==="ArrowUp"?this.changeEvent.notify(-1*100):e.code==="ArrowDown"?this.changeEvent.notify(1*100):e.code==="PageUp"?this.changeEvent.notify(-1*1e3):e.code==="PageDown"?this.changeEvent.notify(1*1e3):e.code==="Home"?this.changeEvent.notify("min"):e.code==="End"&&this.changeEvent.notify("max")});a.isBrowser&&h(this,c,e!=null&&e.element&&m.getElement(e.element)||window)}connect(){a.isBrowser&&i(this,c).addEventListener("keydown",i(this,o))}disconnect(){a.isBrowser&&i(this,c).removeEventListener("keydown",i(this,o))}}c=new WeakMap,o=new WeakMap;var d,l,f,w;class C extends E{constructor(e){super();g(this,"axis");g(this,"speed");g(this,"debounce");r(this,d,null);r(this,l,void 0);r(this,f,void 0);r(this,w,e=>{let n=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)))if(n=(this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),e.preventDefault(),this.debounce){const y=Date.now();if(y-i(this,f)>40&&(n=100*Math.sign(n)),h(this,f,y),Math.abs(n)<100||i(this,l))return;this.changeEvent.notify(n),h(this,l,setTimeout(()=>{h(this,l,void 0)},80))}else this.changeEvent.notify(n)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,h(this,f,Date.now()),a.isBrowser&&h(this,d,e!=null&&e.element&&m.getElement(e.element)||window)}connect(){a.isBrowser&&i(this,d).addEventListener("wheel",i(this,w),{passive:!1})}disconnect(){a.isBrowser&&i(this,d).removeEventListener("wheel",i(this,w))}}d=new WeakMap,l=new WeakMap,f=new WeakMap,w=new WeakMap;exports.Controls=E;exports.KeyboardControls=B;exports.WheelControls=C;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AccordionElement } from './AccordionElement';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { StoreOptions, StoreEntry, Store } from '../store';
|
|
2
|
+
import { TickerCallbackEntry, TickerAddOptions } from '../ticker';
|
|
3
|
+
export interface AnimatedOptions extends StoreOptions<number>, TickerAddOptions {
|
|
4
|
+
min?: number | AnimatedEdgeFunction;
|
|
5
|
+
max?: number | AnimatedEdgeFunction;
|
|
6
|
+
}
|
|
7
|
+
export type AnimatedEdgeFunction = () => number;
|
|
8
|
+
export interface AnimatedEntry extends StoreEntry<number> {
|
|
9
|
+
min: number;
|
|
10
|
+
max: number;
|
|
11
|
+
delta: number;
|
|
12
|
+
progress: number;
|
|
13
|
+
direction: number;
|
|
14
|
+
speed: number;
|
|
15
|
+
}
|
|
16
|
+
export declare abstract class Animated<Entry extends AnimatedEntry = AnimatedEntry> extends Store<number, Entry> {
|
|
17
|
+
#private;
|
|
18
|
+
constructor(options?: AnimatedOptions);
|
|
19
|
+
get target(): number;
|
|
20
|
+
get isRunning(): Store<boolean, StoreEntry<boolean>>;
|
|
21
|
+
get direction(): number;
|
|
22
|
+
get maxFPS(): number | undefined;
|
|
23
|
+
get speed(): number;
|
|
24
|
+
get min(): number;
|
|
25
|
+
set min(value: number | AnimatedEdgeFunction | undefined);
|
|
26
|
+
get max(): number;
|
|
27
|
+
set max(value: number | AnimatedEdgeFunction | undefined);
|
|
28
|
+
get delta(): number;
|
|
29
|
+
get progress(): number;
|
|
30
|
+
get entry(): Entry;
|
|
31
|
+
get setter(): Animated | undefined;
|
|
32
|
+
set setter(animated: Animated | undefined);
|
|
33
|
+
set(value: number, equalize?: boolean): void;
|
|
34
|
+
shift(value: number, equalize?: boolean): void;
|
|
35
|
+
close(): void;
|
|
36
|
+
reset(): void;
|
|
37
|
+
listenAnimationFrame(): void;
|
|
38
|
+
unlistenAnimationFrame(): void;
|
|
39
|
+
protected abstract update(): void;
|
|
40
|
+
protected abstract handleAnimationFrame(e: TickerCallbackEntry): void;
|
|
41
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TickerCallbackEntry } from '../ticker';
|
|
2
|
+
import { AnimatedOptions, Animated } from './Animated';
|
|
3
|
+
export interface DampedOptions extends AnimatedOptions {
|
|
4
|
+
damping?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class Damped extends Animated {
|
|
7
|
+
damping: number;
|
|
8
|
+
constructor(options?: DampedOptions);
|
|
9
|
+
protected update(): void;
|
|
10
|
+
protected handleAnimationFrame(e: TickerCallbackEntry): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TickerCallbackEntry } from '../ticker';
|
|
2
|
+
import { EasingFunction } from '../utils';
|
|
3
|
+
import { AnimatedOptions, Animated } from './Animated';
|
|
4
|
+
export interface TweenedOptions extends AnimatedOptions {
|
|
5
|
+
easing?: EasingFunction;
|
|
6
|
+
}
|
|
7
|
+
export declare class Tweened extends Animated {
|
|
8
|
+
easing: EasingFunction;
|
|
9
|
+
constructor(options?: TweenedOptions);
|
|
10
|
+
start(): void;
|
|
11
|
+
pause(): void;
|
|
12
|
+
stop(): void;
|
|
13
|
+
get max(): number;
|
|
14
|
+
protected update(): void;
|
|
15
|
+
protected handleAnimationFrame(e: TickerCallbackEntry): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var h=Object.defineProperty,l=Object.defineProperties;var c=Object.getOwnPropertyDescriptors;var s=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var a=(t,r,e)=>r in t?h(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,n=(t,r)=>{for(var e in r||(r={}))g.call(r,e)&&a(t,e,r[e]);if(s)for(var e of s(r))q.call(r,e)&&a(t,e,r[e]);return t},m=(t,r)=>l(t,c(r));var u=(t,r,e)=>(a(t,typeof r!="symbol"?r+"":r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../Damped-DdPj4Sho.cjs"),A=require("../easings-_wFs9ZWc.cjs");require("../math-FNUBmQPK.cjs");require("../number-2bR0KBcX.cjs");require("../Store-txkR3wXU.cjs");require("../browser-QbF6EW-w.cjs");require("../ticker/index.cjs");require("../intersector/index.cjs");class x extends i.Animated{constructor(e){super(m(n({},e),{min:(e==null?void 0:e.min)||0,max:(e==null?void 0:e.max)||1e3}));u(this,"easing");this.easing=(e==null?void 0:e.easing)||A.linear}start(){this.listenAnimationFrame()}pause(){this.unlistenAnimationFrame()}stop(){this.reset()}get max(){return super.max}update(){const e=(this.target-this.min)/(this.delta||1),d=this.easing(e);this.current=this.min+d*this.delta}handleAnimationFrame(e){this.shift(e.elapsed),(e.elapsed&&this.current===0||this.current===this.delta)&&this.unlistenAnimationFrame()}}exports.Animated=i.Animated;exports.Damped=i.Damped;exports.Tweened=x;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var d = Object.defineProperty, l = Object.defineProperties;
|
|
2
|
+
var u = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var i = Object.getOwnPropertySymbols;
|
|
4
|
+
var c = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var r = (a, t, e) => t in a ? d(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e, m = (a, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
c.call(t, e) && r(a, e, t[e]);
|
|
8
|
+
if (i)
|
|
9
|
+
for (var e of i(t))
|
|
10
|
+
x.call(t, e) && r(a, e, t[e]);
|
|
11
|
+
return a;
|
|
12
|
+
}, s = (a, t) => l(a, u(t));
|
|
13
|
+
var n = (a, t, e) => (r(a, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
+
import { A as g } from "../Damped-H3PuZwKV.js";
|
|
15
|
+
import { D as y } from "../Damped-H3PuZwKV.js";
|
|
16
|
+
import { l as A } from "../easings-uF-tgahf.js";
|
|
17
|
+
import "../math-_a3IpKOc.js";
|
|
18
|
+
import "../number-bCHB2GAD.js";
|
|
19
|
+
import "../Store-qq7IjRLE.js";
|
|
20
|
+
import "../browser-S4eq8AeN.js";
|
|
21
|
+
import "../ticker/index.js";
|
|
22
|
+
import "../intersector/index.js";
|
|
23
|
+
class k extends g {
|
|
24
|
+
constructor(e) {
|
|
25
|
+
super(s(m({}, e), {
|
|
26
|
+
min: (e == null ? void 0 : e.min) || 0,
|
|
27
|
+
max: (e == null ? void 0 : e.max) || 1e3
|
|
28
|
+
}));
|
|
29
|
+
n(this, "easing");
|
|
30
|
+
this.easing = (e == null ? void 0 : e.easing) || A;
|
|
31
|
+
}
|
|
32
|
+
start() {
|
|
33
|
+
this.listenAnimationFrame();
|
|
34
|
+
}
|
|
35
|
+
pause() {
|
|
36
|
+
this.unlistenAnimationFrame();
|
|
37
|
+
}
|
|
38
|
+
stop() {
|
|
39
|
+
this.reset();
|
|
40
|
+
}
|
|
41
|
+
get max() {
|
|
42
|
+
return super.max;
|
|
43
|
+
}
|
|
44
|
+
update() {
|
|
45
|
+
const e = (this.target - this.min) / (this.delta || 1), h = this.easing(e);
|
|
46
|
+
this.current = this.min + h * this.delta;
|
|
47
|
+
}
|
|
48
|
+
handleAnimationFrame(e) {
|
|
49
|
+
this.shift(e.elapsed), (e.elapsed && this.current === 0 || this.current === this.delta) && this.unlistenAnimationFrame();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
g as Animated,
|
|
54
|
+
y as Damped,
|
|
55
|
+
k as Tweened
|
|
56
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var v=(e,r,t)=>{if(!r.has(e))throw TypeError("Cannot "+t)};var s=(e,r,t)=>(v(e,r,"read from private field"),t?t.call(e):r.get(e)),b=(e,r,t)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,t)},a=(e,r,t,c)=>(v(e,r,"write to private field"),c?c.call(e,t):r.set(e,t),t);var d=(e,r,t)=>(v(e,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../Store-txkR3wXU.cjs"),A=require("../attributes-_2U65GDl.cjs"),f=require("../browser-QbF6EW-w.cjs"),S=require("../dom-QhWsdQS2.cjs");var i,u,o,h,m;class q extends w.Store{constructor(t,c,g,p){super(g,p);b(this,h);b(this,i,null);b(this,u,void 0);b(this,o,null);a(this,u,c),this.subscribe(l=>{var n;(n=s(this,i))==null||n.setAttribute(s(this,u),l.current.toString())}),f.isBrowser&&(a(this,i,S.getElement(t)),a(this,o,new MutationObserver(l=>{l.forEach(n=>{n.type==="attributes"&&n.attributeName===s(this,u)&&d(this,h,m).call(this)})})))}unobserve(){f.isBrowser&&s(this,o).disconnect()}observe(){f.isBrowser&&s(this,i)&&(s(this,o).observe(s(this,i),{attributes:!0}),d(this,h,m).call(this))}}i=new WeakMap,u=new WeakMap,o=new WeakMap,h=new WeakSet,m=function(){const t=s(this,i).getAttribute(s(this,u));t!=null&&(this.current=A.parseAttributeValue(t))};exports.Attribute=q;
|