Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lume/variable

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lume/variable - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

2

dist/dom.js
var _a;
import * as _dom from 'solid-js/dom';
import { getGlobal } from './getGlobal';
import { getGlobal } from './getGlobal.js';
const global = getGlobal();

@@ -5,0 +5,0 @@ const dom = (_a = global.SOLID_DOM) !== null && _a !== void 0 ? _a : (global.SOLID_DOM = _dom);

@@ -9,4 +9,4 @@

}
LUME=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";(function(e){function r(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:Function("return this")()}n.d(t,"a",(function(){return r}))}).call(this,n(1))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"variable",(function(){return lt})),n.d(t,"autorun",(function(){return ft})),n.d(t,"reactive",(function(){return at})),n.d(t,"reactify",(function(){return yt})),n.d(t,"untrack",(function(){return vt})),n.d(t,"version",(function(){return wt}));var r={};n.r(r),n.d(r,"$RAW",(function(){return pe})),n.d(r,"ErrorBoundary",(function(){return Ge})),n.d(r,"For",(function(){return Ne})),n.d(r,"Index",(function(){return Ye})),n.d(r,"Match",(function(){return Be})),n.d(r,"Show",(function(){return qe})),n.d(r,"Suspense",(function(){return Xe})),n.d(r,"SuspenseList",(function(){return Qe})),n.d(r,"Switch",(function(){return We})),n.d(r,"assignProps",(function(){return Ee})),n.d(r,"awaitSuspense",(function(){return Ke})),n.d(r,"batch",(function(){return V})),n.d(r,"cancelCallback",(function(){return p})),n.d(r,"createComponent",(function(){return Le})),n.d(r,"createComputed",(function(){return F})),n.d(r,"createContext",(function(){return J})),n.d(r,"createDeferred",(function(){return L})),n.d(r,"createEffect",(function(){return C})),n.d(r,"createMemo",(function(){return I})),n.d(r,"createMutable",(function(){return De})),n.d(r,"createRenderEffect",(function(){return $})),n.d(r,"createResource",(function(){return X})),n.d(r,"createResourceState",(function(){return je})),n.d(r,"createRoot",(function(){return M})),n.d(r,"createSelector",(function(){return E})),n.d(r,"createSignal",(function(){return R})),n.d(r,"createState",(function(){return xe})),n.d(r,"equalFn",(function(){return y})),n.d(r,"getContextOwner",(function(){return G})),n.d(r,"getListener",(function(){return B})),n.d(r,"indexArray",(function(){return Ie})),n.d(r,"lazy",(function(){return ze})),n.d(r,"mapArray",(function(){return Ce})),n.d(r,"on",(function(){return N})),n.d(r,"onCleanup",(function(){return q})),n.d(r,"onError",(function(){return W})),n.d(r,"onMount",(function(){return Y})),n.d(r,"produce",(function(){return Fe})),n.d(r,"reconcile",(function(){return Me})),n.d(r,"requestCallback",(function(){return h})),n.d(r,"serializeGraph",(function(){return U})),n.d(r,"splitProps",(function(){return Ve})),n.d(r,"untrack",(function(){return H})),n.d(r,"unwrap",(function(){return _e})),n.d(r,"useContext",(function(){return K})),n.d(r,"useTransition",(function(){return z}));let o=1,u=!1,i=!1,c=[],s=null,l=null,f=0,a=null,d=null;function h(e,t){a||function(){if(window&&window.MessageChannel){const e=new MessageChannel,t=e.port2;a=()=>t.postMessage(null),e.port1.onmessage=()=>{if(null!==d){const e=performance.now();f=e+5;const n=!0;try{d(n,e)?t.postMessage(null):d=null}catch(e){throw t.postMessage(null),e}}}}else{let e;a=()=>{e||(e=d,setTimeout(()=>{const t=performance.now();f=t+5;const n=e(!0,t);e=null,n&&a()},0))}}if(navigator&&navigator.scheduling&&navigator.scheduling.isInputPending){const e=navigator.scheduling;l=()=>{const t=performance.now();return t>=f&&(!!e.isInputPending()||t>=300)}}else l=()=>performance.now()>=f}();let n=performance.now(),r=1073741823;t&&t.timeout&&(r=t.timeout);const s={id:o++,fn:e,startTime:n,expirationTime:n+r};return function(e,t){e.splice(function(){let n=0,r=e.length-1;for(;n<=r;){let o=r+n>>1,u=t.expirationTime-e[o].expirationTime;if(u>0)n=o+1;else{if(!(u<0))return o;r=o-1}}return n}(),0,t)}(c,s),u||i||(u=!0,d=g,a()),s}function p(e){e.fn=null}function g(e,t){u=!1,i=!0;try{return function(e,t){let n=t;s=c[0]||null;for(;null!==s&&(!(s.expirationTime>n)||e&&!l());){const e=s.fn;if(null!==e){s.fn=null;const t=s.expirationTime<=n;e(t),n=performance.now(),s===c[0]&&c.shift()}else c.shift();s=c[0]||null}return null!==s}(e,t)}finally{s=null,i=!1}}const y=(e,t)=>e===t;let b=null,v=ie;const w={},_={owned:null,cleanups:null,context:null,owner:null},[m,O]=R(!1,!0);var S=null,P=null;let k,x=null,A=null,j=null,T=null,D=0;function M(e,t){t&&(S=t);const n=P,r=S,o=0===e.length?_:{owned:null,cleanups:null,context:null,owner:r,attached:!!t};let u;S=o,P=null;try{ue(()=>u=e(()=>fe(o)),!0)}finally{P=n,S=r}return u}function R(e,t,n){const r={value:e,observers:null,observerSlots:null,pending:w,comparator:t?"function"==typeof t?t:y:void 0};return[Z.bind(r),ee.bind(r)]}function F(e,t){te(re(e,t,!0))}function $(e,t){te(re(e,t,!1))}function C(e,t){if(globalThis._$HYDRATION&&globalThis._$HYDRATION.asyncSSR)return;v=ce;const n=re(e,t,!1),r=k&&de(S,k.id);r&&(n.suspense=r),n.user=!0,j&&j.push(n)}function I(e,t,n){const r=re(e,t,!0);return r.pending=w,r.observers=null,r.observerSlots=null,r.state=0,r.comparator=n?"function"==typeof n?n:y:void 0,te(r),Z.bind(r)}function L(e,t){let n,r=t?t.timeoutMs:void 0;const[o,u]=R(),i=re(()=>(n&&n.fn||(n=h(()=>u(i.value),void 0!==r?{timeout:r}:void 0)),e()),void 0,!0);return te(i),u(i.value),o}function E(e,t=y){let n=new Map;const r=re(r=>{const o=e();for(const e of n.keys())if(t(e,o)||r&&t(e,r)){const t=n.get(e);t.state=1,t.pure?A.push(t):j.push(t)}return o},void 0,!0);return te(r),e=>(P&&(n.set(e,P),q(()=>n.delete(e))),t(e,r.value))}function V(e){if(x)return e();const t=x=[],n=e();return x=null,ue(()=>{for(let e=0;e<t.length;e+=1){const n=t[e];if(n.pending!==w){const e=n.pending;n.pending=w,ee.call(n,e)}}},!1),n}function z(){return[m,e=>{k&&(T||(T={sources:new Set,effects:[],promises:new Set,disposed:new Set,running:!0}),T.running=!0),V(e)}]}function H(e){let t,n=P;return P=null,t=e(),P=n,t}function N(...e){const t=e.pop();let n,r,o=!0;return e.length<2?(n=e[0],o=!1):n=e,e=>{let u;if(o){u=[],r||(r=[]);for(let e=0;e<n.length;e++)u.push(n[e]())}else u=n();const i=H(()=>t(u,r,e));return r=u,i}}function Y(e){C(()=>H(e))}function q(e){return null===S||(null===S.cleanups?S.cleanups=[e]:S.cleanups.push(e)),e}function W(e){b||(b=Symbol("error")),null===S||(null===S.context?S.context={[b]:[e]}:S.context[b]?S.context[b].push(e):S.context[b]=[e])}function B(){return P}function G(){return S}function U(e){return{}}function J(e){const t=Symbol("context");return{id:t,Provider:he(t),defaultValue:e}}function K(e){return de(S,e.id)||e.defaultValue}function Q(){return k||(k=J({}))}function X(e,t={}){const n=new Set,r=globalThis._$HYDRATION||{},[o,u]=R(e,!0),[i,c]=R(),[s,l]=R(!1,!0);let f,a=null,d=null;function h(e,t,n){return d===e&&(a=n,d=null,T&&T.promises.has(e)?(T.promises.delete(e),ue(()=>{T.running=!0,T.promises.size||(j.push.apply(j,T.effects),T.effects=[]),p(t)},!1)):p(t)),t}function p(e){V(()=>{f&&(r.context=f),r.asyncSSR&&t.name&&(r.resources[t.name]=e),u(e),l(!1);for(let e of n.keys())e.decrement();n.clear()}),f&&(r.context=f=void 0)}function g(){const e=k&&de(S,k.id),t=o();if(a)throw a;return P&&!P.user&&e&&F(()=>{i(),d&&(e.resolved&&T?T.promises.add(d):n.has(e)||(e.increment(),n.add(e)))}),t}return Object.defineProperty(g,"loading",{get:()=>s()}),[g,function(e){let n;return a=null,r.context&&!!r.context.registry?r.loadResource&&!t.notStreamed?e=r.loadResource:t.name&&r.resources&&t.name in r.resources&&(e=()=>{const e=r.resources[t.name];return delete r.resources[t.name],e}):r.asyncSSR&&r.context&&(f=r.context),n=e(),T&&d&&T.promises.delete(d),"object"==typeof n&&"then"in n?(d=n,V(()=>{l(!0),c()}),n.then(e=>h(n,e),e=>h(n,void 0,e))):(d=null,p(n),Promise.resolve(n))}]}function Z(){if(this.state&&this.sources){const e=A;A=null,1===this.state?te(this):se(this),A=e}if(P){const e=this.observers?this.observers.length:0;P.sources?(P.sources.push(this),P.sourceSlots.push(e)):(P.sources=[this],P.sourceSlots=[e]),this.observers?(this.observers.push(P),this.observerSlots.push(P.sources.length-1)):(this.observers=[P],this.observerSlots=[P.sources.length-1])}return T&&T.running&&T.sources.has(this)?this.tValue:this.value}function ee(e,t){if(this.comparator)if(T&&T.running&&T.sources.has(this)){if(this.comparator(this.tValue,e))return e}else if(this.comparator(this.value,e))return e;return x?(this.pending===w&&x.push(this),this.pending=e,e):(T?((T.running||!t&&T.sources.has(this))&&(T.sources.add(this),this.tValue=e),T.running||(this.value=e)):this.value=e,!this.observers||A&&!this.observers.length||ue(()=>{for(let e=0;e<this.observers.length;e+=1){const t=this.observers[e];T&&T.running&&T.disposed.has(t)||(t.observers&&2!==t.state&&le(t),t.state=1,t.pure?A.push(t):j.push(t))}if(A.length>1e6)throw A=[],new Error("Potential Infinite Loop Detected.")},!1),e)}function te(e){if(!e.fn)return;fe(e);const t=S,n=P,r=D;P=S=e,ne(e,e.value,r),T&&!T.running&&T.sources.has(e)&&(T.running=!0,ne(e,e.tValue,r),T.running=!1),P=n,S=t}function ne(e,t,n){let r;try{r=e.fn(t)}catch(e){ae(e)}(!e.updatedAt||e.updatedAt<=n)&&(e.observers&&e.observers.length?ee.call(e,r,!0):T&&T.running&&e.pure?(T.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function re(e,t,n){const r={fn:e,state:1,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:S,context:null,pure:n};return null===S||S!==_&&(T&&T.running&&S.pure?S.tOwned?S.tOwned.push(r):S.tOwned=[r]:S.owned?S.owned.push(r):S.owned=[r]),r}function oe(e){let t,n=1===e.state&&e;if(e.suspense&&H(e.suspense.inFallback))return e.suspense.effects.push(e);const r=T&&T.running;for(;(e.fn||r&&e.attached)&&(e=e.owner);){if(r&&T.disposed.has(e))return;2===e.state?t=e:1===e.state&&(n=e,t=void 0)}if(t){const o=A;if(A=null,se(t),A=o,!n||1!==n.state)return;if(r)for(e=n;(e.fn||e.attached)&&(e=e.owner);)if(T.disposed.has(e))return}n&&te(n)}function ue(e,t){if(A)return e();let n=!1;t||(A=[]),j?n=!0:j=[],D++;try{e()}catch(e){ae(e)}finally{if(A&&(ie(A),A=null),n)return;if(T&&T.running){if(T.running=!1,T.promises.size)return T.effects.push.apply(T.effects,j),j=null,void O(!0);T.sources.forEach(e=>{if(e.value=e.tValue,e.owned)for(let t=0,n=e.owned.length;t<n;t++)fe(e.owned[t]);e.tOwned&&(e.owned=e.tOwned),delete e.tValue,delete e.tOwned}),T=null,O(!1)}j.length?V(()=>{v(j),j=null}):j=null}}function ie(e){for(let t=0;t<e.length;t++)oe(e[t])}function ce(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:oe(r)}const r=e.length;for(t=0;t<n;t++)oe(e[t]);for(t=r;t<e.length;t++)oe(e[t])}function se(e){e.state=0;for(let t=0;t<e.sources.length;t+=1){const n=e.sources[t];n.sources&&(1===n.state?oe(n):2===n.state&&se(n))}}function le(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=2,n.observers&&le(n))}}function fe(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(T&&T.running&&e.pure){if(e.tOwned){for(t=0;t<e.tOwned.length;t++)fe(e.tOwned[t]);delete e.tOwned}!function e(t,n){n||(t.state=0,T.disposed.add(t));if(t.owned)for(let n=0;n<t.owned.length;n++)e(t.owned[n])}(e,!0)}else if(e.owned){for(t=0;t<e.owned.length;t++)fe(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function ae(e){const t=b&&de(S,b);if(!t)throw e;t.forEach(t=>t(e))}function de(e,t){return e&&(e.context&&e.context[t]||e.owner&&de(e.owner,t))}function he(e){return function(t){return I(()=>{S.context={[e]:t.value};const n=I(()=>t.children);return I(()=>function e(t){if("function"==typeof t)return e(t());if(Array.isArray(t)){const n=[];for(let r=0;r<t.length;r++){let o=e(t[r]);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return n}return t}(n()))})}}const pe=Symbol("state-raw"),ge=Symbol("state-node"),ye=Symbol("state-proxy"),be=Symbol("state-name");function ve(e,t,n,r){let o=e[ye];if(!o&&(Object.defineProperty(e,ye,{value:o=new Proxy(e,r||Se)}),n)){let t=Object.keys(e),n=Object.getOwnPropertyDescriptors(e);for(let r=0,u=t.length;r<u;r++){const u=t[r];if(n[u].get){const t=I(n[u].get.bind(o),void 0,!0);Object.defineProperty(e,u,{get:t})}if(n[u].set){const t=n[u].set,r=e=>V(()=>t.call(o,e));Object.defineProperty(e,u,{set:r})}}}return o}function we(e){return null!=e&&"object"==typeof e&&(!e.__proto__||e.__proto__===Object.prototype||Array.isArray(e))}function _e(e,t){let n,r,o,u;if(n=null!=e&&e[pe])return n;if(!we(e))return e;if(Array.isArray(e)){Object.isFrozen(e)&&(e=e.slice(0));for(let n=0,u=e.length;n<u;n++)o=e[n],(r=_e(o,t))!==o&&(e[n]=r)}else{Object.isFrozen(e)&&(e=Object.assign({},e));let n=Object.keys(e),i=t&&Object.getOwnPropertyDescriptors(e);for(let c=0,s=n.length;c<s;c++)u=n[c],t&&i[u].get||(o=e[u],(r=_e(o,t))!==o&&(e[u]=r))}return e}function me(e){let t=e[ge];return t||Object.defineProperty(e,ge,{value:t={}}),t}function Oe(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||t===ye||t===ge||t===be||(delete n.value,delete n.writable,n.get=()=>e[t]),n}const Se={get(e,t,n){if(t===pe)return e;if(t===ye)return n;const r=e[t];if(t===ge||"__proto__"===t)return r;const o=we(r);if(P&&("function"!=typeof r||e.hasOwnProperty(t))){let n,u;o&&(n=me(r))&&(u=n._||(n._=R()),u[0]()),n=me(e),u=n[t]||(n[t]=R()),u[0]()}return o?ve(r):r},set:()=>!0,deleteProperty:()=>!0,getOwnPropertyDescriptor:Oe};function Pe(e,t,n){if(e[t]===n)return;const r=Array.isArray(e)||!(t in e);void 0===n?delete e[t]:e[t]=n;let o,u=me(e);(o=u[t])&&o[1](n),r&&(o=u._)&&o[1]()}function ke(e,t,n=[]){let r,o=e;if(t.length>1){r=t.shift();const u=typeof r,i=Array.isArray(e);if(Array.isArray(r)){for(let o=0;o<r.length;o++)ke(e,[r[o]].concat(t),[r[o]].concat(n));return}if(i&&"function"===u){for(let o=0;o<e.length;o++)r(e[o],o)&&ke(e,[o].concat(t),[o].concat(n));return}if(i&&"object"===u){const{from:o=0,to:u=e.length-1,by:i=1}=r;for(let r=o;r<=u;r+=i)ke(e,[r].concat(t),[r].concat(n));return}if(t.length>1)return void ke(e[r],t,[r].concat(n));o=e[r],n=[r].concat(n)}let u=t[0];"function"==typeof u&&(u=u(o,n),u===o)||void 0===r&&null==u||(u=_e(u),void 0===r||we(o)&&we(u)&&!Array.isArray(u)?function(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];Pe(e,o,t[o])}}(o,u):Pe(e,r,u))}function xe(e,t){const n=_e(e||{},!0);return[ve(n,0,!0),function(...e){V(()=>ke(n,e))}]}function Ae(e,t){const[n,r]=X(e,{name:t});return[()=>n(),e=>r(()=>e),r,()=>n.loading]}function je(e,t={}){const n={get:(e,n)=>(e[n]||(e[n]=Ae(void 0,t.name&&`${t.name}:${n}`)))[3](),set:()=>!0,deleteProperty:()=>!0},r={get(e,r,o){if(r===pe)return e;if(r===ye)return o;if("loading"===r)return new Proxy(me(e),n);const u=e[r];if(r===ge||"__proto__"===r)return u;const i=we(u);if(P&&("function"!=typeof u||e.hasOwnProperty(r))){let n,o;i&&(n=me(u))&&(o=n._||(n._=R()),o[0]()),n=me(e),o=n[r]||(n[r]=Ae(u,`${t.name}:${r}`)),o[0]()}return i?ve(u):u},set:()=>!0,deleteProperty:()=>!0,getOwnPropertyDescriptor:Oe},o=_e(e||{},!0);function u(...e){V(()=>ke(o,e))}return[ve(o,0,!0,r),function(e,n){const r=me(o),i=Object.keys(e);for(let c=0;c<i.length;c++){const s=i[c],l=r[s]||(r[s]=Ae(o[s],`${t.name}:${s}`)),f=e=>(n?u(s,n(e)):Pe(o,s,e),o[s]);l[2](()=>{const t=e[s]();return"object"==typeof t&&"then"in t?t.then(f):f(t)})}},u]}const Te={get(e,t,n){if(t===pe)return e;if(t===ye)return n;const r=e[t];if(t===ge||"__proto__"===t)return r;const o=we(r);if(P&&("function"!=typeof r||e.hasOwnProperty(t))){let n,u;o&&(n=me(r))&&(u=n._||(n._=R()),u[0]()),n=me(e),u=n[t]||(n[t]=R()),u[0]()}return o?ve(r,0,!1,Te):r},set:(e,t,n)=>(Pe(e,t,_e(n)),!0),deleteProperty:(e,t)=>(Pe(e,t,void 0),!0),getOwnPropertyDescriptor:Oe};function De(e,t){return ve(_e(e||{},!0),0,!0,Te)}function Me(e,t={}){const{merge:n,key:r="id"}=t,o=_e(e);return e=>we(e)?(function e(t,n,r,o,u){let i=n[r];if(t===i)return;if(!we(t)||!we(i)||u&&t[u]!==i[u])return void(t!==i&&Pe(n,r,t));if(Array.isArray(t)){if(t.length&&i.length&&(!o||u&&null!=t[0][u])){let n,r,c,s,l,f,a,d;for(c=0,s=Math.min(i.length,t.length);c<s&&(i[c]===t[c]||u&&i[c][u]===t[c][u]);c++)e(t[c],i,c,o,u);const h=new Array(t.length),p=new Map;for(s=i.length-1,l=t.length-1;s>=c&&l>=c&&(i[s]===t[l]||u&&i[s][u]===t[l][u]);s--,l--)h[l]=i[s];if(c>l||c>s){for(r=c;r<=l;r++)Pe(i,r,t[r]);for(;r<t.length;r++)Pe(i,r,h[r]),e(t[r],i,r,o,u);return void(i.length>t.length&&Pe(i,"length",t.length))}for(a=new Array(l+1),r=l;r>=c;r--)f=t[r],d=u?f[u]:f,n=p.get(d),a[r]=void 0===n?-1:n,p.set(d,r);for(n=c;n<=s;n++)f=i[n],d=u?f[u]:f,r=p.get(d),void 0!==r&&-1!==r&&(h[r]=i[n],r=a[r],p.set(d,r));for(r=c;r<t.length;r++)r in h?(Pe(i,r,h[r]),e(t[r],i,r,o,u)):Pe(i,r,t[r])}else for(let n=0,r=t.length;n<r;n++)e(t[n],i,n,o,u);return void(i.length>t.length&&Pe(i,"length",t.length))}const c=Object.keys(t);for(let n=0,r=c.length;n<r;n++)e(t[c[n]],i,c[n],o,u);const s=Object.keys(i);for(let e=0,n=s.length;e<n;e++)void 0===t[s[e]]&&Pe(i,s[e],void 0)}(o,{state:e},"state",n,r),e):o}const Re={get(e,t){if(t===pe)return e;const n=e[t];return we(n)?new Proxy(n,Re):n},set:(e,t,n)=>(Pe(e,t,_e(n)),!0),deleteProperty:(e,t)=>(Pe(e,t,void 0),!0)};function Fe(e){return t=>(we(t)&&e(new Proxy(t,Re)),t)}const $e=Symbol("fallback");function Ce(e,t,n={}){let r=[],o=[],u=[],i=0,c=t.length>1?[]:null,s=S;return q(()=>{for(let e=0,t=u.length;e<t;e++)u[e]()}),()=>{let l,f,a=e()||[];return H(()=>{let e,t,h,p,g,y,b,v,w,_=a.length;if(0===_){if(0!==i){for(l=0;l<i;l++)u[l]();u=[],r=[],o=[],i=0,c&&(c=[])}n.fallback&&(r=[$e],o[0]=M(e=>(u[0]=e,n.fallback()),s),i=1)}else if(0===i){for(f=0;f<_;f++)r[f]=a[f],o[f]=M(d,s);i=_}else{for(h=new Array(_),p=new Array(_),c&&(g=new Array(_)),y=0,b=Math.min(i,_);y<b&&r[y]===a[y];y++);for(b=i-1,v=_-1;b>=y&&v>=y&&r[b]===a[v];b--,v--)h[v]=o[b],p[v]=u[b],c&&(g[v]=c[b]);for(e=new Map,t=new Array(v+1),f=v;f>=y;f--)w=a[f],l=e.get(w),t[f]=void 0===l?-1:l,e.set(w,f);for(l=y;l<=b;l++)w=r[l],f=e.get(w),void 0!==f&&-1!==f?(h[f]=o[l],p[f]=u[l],c&&(g[f]=c[l]),f=t[f],e.set(w,f)):u[l]();for(f=y;f<_;f++)f in h?(o[f]=h[f],u[f]=p[f],c&&(c[f]=g[f],c[f](f))):o[f]=M(d,s);i=o.length=_,r=a.slice(0)}return o});function d(e){if(u[f]=e,c){const[e,n]=R(f,!0);return c[f]=n,t(a[f],e)}return t(a[f])}}}function Ie(e,t,n={}){let r,o=[],u=[],i=[],c=[],s=0,l=S;return q(()=>{for(let e=0,t=i.length;e<t;e++)i[e]()}),()=>{const f=e()||[];return H(()=>{if(0===f.length){if(0!==s){for(r=0;r<s;r++)i[r]();i=[],o=[],u=[],s=0,c=[]}return n.fallback&&(o=[$e],u[0]=M(e=>(i[0]=e,n.fallback()),l),s=1),u}for(o[0]===$e&&(i[0](),i=[],o=[],u=[],s=0),r=0;r<f.length;r++)r<o.length&&o[r]!==f[r]?c[r](f[r]):r>=o.length&&(u[r]=M(a,l));for(;r<o.length;r++)i[r]();return s=u.length=c.length=i.length=f.length,o=f.slice(0),u});function a(e){i[r]=e;const[n,o]=R(f[r]);return c[r]=o,t(n,r)}}}function Le(e,t){return H(()=>e(t))}function Ee(e,...t){for(let n=0;n<t.length;n++){const r=Object.getOwnPropertyDescriptors(t[n]);Object.defineProperties(e,r)}return e}function Ve(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=e=>{const t={};for(let r=0;r<e.length;r++){const o=e[r];n[o]&&(Object.defineProperty(t,o,n[o]),delete n[o])}return t};return t.map(r).concat(r(Object.keys(n)))}function ze(e){let t;return n=>{const r=globalThis._$HYDRATION||{},o=r.context&&r.context.registry,u=function(){const e=globalThis._$HYDRATION;return e&&e.context?{id:`${e.context.id}.${e.context.count++}`,count:0,registry:e.context.registry}:void 0}(),[i,c]=X(void 0,{notStreamed:!0});let s;return o&&r.resources?(t||(t=e())).then(e=>{He(u),c(()=>e.default),He(void 0)}):c(()=>(t||(t=e())).then(e=>e.default)),I(()=>(s=i())&&H(()=>{if(!u)return s(n);const e=r.context;He(u);const t=s(n);return He(e),t}))}}function He(e){globalThis._$HYDRATION.context=e}function Ne(e){const t="fallback"in e&&{fallback:()=>e.fallback};return I(Ce(()=>e.each,e.children,t||void 0))}function Ye(e){const t="fallback"in e&&{fallback:()=>e.fallback};return I(Ie(()=>e.each,e.children,t||void 0))}function qe(e){const t=Object.getOwnPropertyDescriptor(e,"children").value,n="function"==typeof t&&t.length,r=I(n?()=>e.when:()=>!!e.when,void 0,!0);return I(()=>{const t=r();return t?n?H(()=>e.children(t)):e.children:e.fallback})}function We(e){let t=e.children;Array.isArray(t)||(t=[t]);const n=I(()=>{for(let e=0;e<t.length;e++){const n=t[e].when;if(n)return[e,t[e].keyed?n:!!n]}return[-1]},void 0,(e,t)=>e&&e[0]===t[0]&&e[1]===t[1]);return I(()=>{const[r,o]=n();if(r<0)return e.fallback;const u=t[r].children;return"function"==typeof u&&u.length?H(()=>u(o)):u})}function Be(e){const t=Object.getOwnPropertyDescriptor(e,"children").value;return e.keyed="function"==typeof t&&!!t.length,e}function Ge(e){const[t,n]=R(),r=Object.getOwnPropertyDescriptor(e,"fallback").value,o="function"==typeof r&&!!r.length;let u;return W(n),I(()=>null!=(u=t())?o?H(()=>e.fallback(u)):e.fallback:e.children)}const Ue=J();let Je=!1;function Ke(e){const t=Q();if(!Je){let e=0;const[n,r]=R(!1);t.active=n,t.increment=()=>0==e++&&r(!0),t.decrement=()=>--e<=0&&r(!1),Je=!0}return()=>new Promise(n=>{const r=e();$(()=>!t.active()&&n(r))})}function Qe(e){let t,n,r,o=0;const u=K(Ue);if(u){const[e,o]=R(!1,!0);t=o,[n,r]=u.register(e)}const i=[],c=Le(Ue.Provider,{value:{register:e=>{const[t,n]=R(!1,!0),[r,u]=R(!1,!0);return i[o++]={inFallback:e,showContent:n,showFallback:u},[t,r]}},get children(){return e.children}});return F(()=>{const o=e.revealOrder,u=e.tail,c=!n||n(),s=!r||r(),l="backwards"===o;if("together"===o){const e=i.every(e=>!e.inFallback());return t&&t(!e),void i.forEach(t=>{t.showContent(e&&c),t.showFallback(s)})}let f=!1;for(let e=0,n=i.length;e<n;e++){const r=l?n-e-1:e,o=i[r].inFallback();if(f||o){const e=!f;e&&t&&t(!0),!u||e&&"collapsed"===u?i[r].showFallback(s):i[r].showFallback(!1),f=!0,i[r].showContent(e)}else i[r].showContent(c),i[r].showFallback(s)}!f&&t&&t(!1)}),c}function Xe(e){let t,n,r=0;const[o,u]=R(!1),i=Q(),c={increment:()=>{1==++r&&(u(!0),Je&&i.increment())},decrement:()=>{0==--r&&(u(!1),Je&&setTimeout(i.decrement))},inFallback:o,effects:[],resolved:!1},s=K(Ue);return s&&([t,n]=s.register(c.inFallback)),Le(i.Provider,{value:c,get children(){const r=H(()=>e.children);return()=>{const o=c.inFallback(),u=!t||t(),i=!n||n();return!o&&u?(c.resolved=!0,s=c.effects,T&&(T.running=!0),j.push.apply(j,s),s.length=0,r):i?e.fallback:void 0;var s}}})}var Ze,et=n(0);const tt=Object(et.a)(),nt=null!==(Ze=tt.SOLID)&&void 0!==Ze?Ze:tt.SOLID=r,{createSignal:rt,createEffect:ot,createRoot:ut,untrack:it}=nt;function ct(){return this()}function st(e){return this(e)}function lt(e){const[t,n]=rt(e),r=e=>void 0===e?t():(n(e),e);return r.get=ct.bind(r),r.set=st.bind(r),r}function ft(e){let t;return ut(n=>{t=n,ot(e)}),t}function at(e,t,n){const r=1===arguments.length&&"kind"in e;if(r){const t=e;return"class"===t.kind?{...t,finisher:dt}:{...t,finisher(e){var n,r;return pt(e.prototype,t.key),null!==(r=null===(n=t.finisher)||void 0===n?void 0:n.call(t,e))&&void 0!==r?r:e}}}if(1===arguments.length&&"function"==typeof e){return dt(e)}return pt(e,t,n)}function dt(e){var t;return(t=class extends e{constructor(...t){super(...t),yt(this,e)}}).__isReactive__=!0,t}const ht=new WeakMap;function pt(e,t,n){let r=ht.get(e.constructor);r||ht.set(e.constructor,r=[]),r.push(t);const o="v_"+t;let u,i,c,s=!1;if(n&&!("initializer"in n)||(s=!0,n||(n=Object.getOwnPropertyDescriptor(e,t))),n)if(u=n.get,i=n.set,u||i){if(!u||!i)return void console.warn('The `@reactive` decorator was used on an accessor named "'+t+'" which had a getter or a setter, but not both. Reactivity on accessors works only when accessors have both get and set. In this case the decorator does not do anything.');delete n.get,delete n.set}else{if(c=n.value,!n.writable)return void console.warn("The `@reactive` decorator was used on a property named "+t+" that is not writable. Reactivity is not enabled for non-writable properties.");delete n.value,delete n.writable}if(n={...n,get:u?function(){return gt(this,o,c)(),u.call(this)}:function(){return gt(this,o,c)()},set:i?function(e){i.call(this,e);gt(this,o)(e),this.__propsSetAtLeastOnce__||(this.__propsSetAtLeastOnce__=new Set),this.__propsSetAtLeastOnce__.add(t)}:function(e){gt(this,o)(e),this.__propsSetAtLeastOnce__||(this.__propsSetAtLeastOnce__=new Set),this.__propsSetAtLeastOnce__.add(t)}},e.__reactifiedProps__||(e.__reactifiedProps__=new Set),e.__reactifiedProps__.add(t),!s)return n;Object.defineProperty(e,t,n)}function gt(e,t,n){let r=e[t];return r||(e[t]=r=lt(n),r)}function yt(e,t){if(function(e){return"function"==typeof e}(t)){const n=t;let r=ht.get(n);r&&function(e,t){for(const n of t)if(e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}}(e,r),r=n.reactiveProperties,Array.isArray(r)&&bt(e,r)}else{bt(e,t)}return e}function bt(e,t){var n;for(const r of t){if(null===(n=e.__reactifiedProps__)||void 0===n?void 0:n.has(r))continue;const t=e[r];pt(e,r),e[r]=t}}const vt=it,wt="0.4.0"}]);
LUME=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";(function(e){function r(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:Function("return this")()}n.d(t,"a",(function(){return r}))}).call(this,n(1))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"variable",(function(){return lt})),n.d(t,"autorun",(function(){return ft})),n.d(t,"reactive",(function(){return at})),n.d(t,"reactify",(function(){return yt})),n.d(t,"untrack",(function(){return vt})),n.d(t,"version",(function(){return wt}));var r={};n.r(r),n.d(r,"$RAW",(function(){return pe})),n.d(r,"ErrorBoundary",(function(){return Ge})),n.d(r,"For",(function(){return Ne})),n.d(r,"Index",(function(){return Ye})),n.d(r,"Match",(function(){return Be})),n.d(r,"Show",(function(){return qe})),n.d(r,"Suspense",(function(){return Xe})),n.d(r,"SuspenseList",(function(){return Qe})),n.d(r,"Switch",(function(){return We})),n.d(r,"assignProps",(function(){return Ee})),n.d(r,"awaitSuspense",(function(){return Ke})),n.d(r,"batch",(function(){return V})),n.d(r,"cancelCallback",(function(){return p})),n.d(r,"createComponent",(function(){return Le})),n.d(r,"createComputed",(function(){return F})),n.d(r,"createContext",(function(){return J})),n.d(r,"createDeferred",(function(){return L})),n.d(r,"createEffect",(function(){return C})),n.d(r,"createMemo",(function(){return I})),n.d(r,"createMutable",(function(){return De})),n.d(r,"createRenderEffect",(function(){return $})),n.d(r,"createResource",(function(){return X})),n.d(r,"createResourceState",(function(){return je})),n.d(r,"createRoot",(function(){return M})),n.d(r,"createSelector",(function(){return E})),n.d(r,"createSignal",(function(){return R})),n.d(r,"createState",(function(){return xe})),n.d(r,"equalFn",(function(){return y})),n.d(r,"getContextOwner",(function(){return G})),n.d(r,"getListener",(function(){return B})),n.d(r,"indexArray",(function(){return Ie})),n.d(r,"lazy",(function(){return ze})),n.d(r,"mapArray",(function(){return Ce})),n.d(r,"on",(function(){return N})),n.d(r,"onCleanup",(function(){return q})),n.d(r,"onError",(function(){return W})),n.d(r,"onMount",(function(){return Y})),n.d(r,"produce",(function(){return Fe})),n.d(r,"reconcile",(function(){return Me})),n.d(r,"requestCallback",(function(){return h})),n.d(r,"serializeGraph",(function(){return U})),n.d(r,"splitProps",(function(){return Ve})),n.d(r,"untrack",(function(){return H})),n.d(r,"unwrap",(function(){return _e})),n.d(r,"useContext",(function(){return K})),n.d(r,"useTransition",(function(){return z}));let o=1,u=!1,i=!1,c=[],s=null,l=null,f=0,a=null,d=null;function h(e,t){a||function(){if(window&&window.MessageChannel){const e=new MessageChannel,t=e.port2;a=()=>t.postMessage(null),e.port1.onmessage=()=>{if(null!==d){const e=performance.now();f=e+5;const n=!0;try{d(n,e)?t.postMessage(null):d=null}catch(e){throw t.postMessage(null),e}}}}else{let e;a=()=>{e||(e=d,setTimeout(()=>{const t=performance.now();f=t+5;const n=e(!0,t);e=null,n&&a()},0))}}if(navigator&&navigator.scheduling&&navigator.scheduling.isInputPending){const e=navigator.scheduling;l=()=>{const t=performance.now();return t>=f&&(!!e.isInputPending()||t>=300)}}else l=()=>performance.now()>=f}();let n=performance.now(),r=1073741823;t&&t.timeout&&(r=t.timeout);const s={id:o++,fn:e,startTime:n,expirationTime:n+r};return function(e,t){e.splice(function(){let n=0,r=e.length-1;for(;n<=r;){let o=r+n>>1,u=t.expirationTime-e[o].expirationTime;if(u>0)n=o+1;else{if(!(u<0))return o;r=o-1}}return n}(),0,t)}(c,s),u||i||(u=!0,d=g,a()),s}function p(e){e.fn=null}function g(e,t){u=!1,i=!0;try{return function(e,t){let n=t;s=c[0]||null;for(;null!==s&&(!(s.expirationTime>n)||e&&!l());){const e=s.fn;if(null!==e){s.fn=null;const t=s.expirationTime<=n;e(t),n=performance.now(),s===c[0]&&c.shift()}else c.shift();s=c[0]||null}return null!==s}(e,t)}finally{s=null,i=!1}}const y=(e,t)=>e===t;let b=null,v=ie;const w={},_={owned:null,cleanups:null,context:null,owner:null},[m,O]=R(!1,!0);var S=null,P=null;let k,x=null,A=null,j=null,T=null,D=0;function M(e,t){t&&(S=t);const n=P,r=S,o=0===e.length?_:{owned:null,cleanups:null,context:null,owner:r,attached:!!t};let u;S=o,P=null;try{ue(()=>u=e(()=>fe(o)),!0)}finally{P=n,S=r}return u}function R(e,t,n){const r={value:e,observers:null,observerSlots:null,pending:w,comparator:t?"function"==typeof t?t:y:void 0};return[Z.bind(r),ee.bind(r)]}function F(e,t){te(re(e,t,!0))}function $(e,t){te(re(e,t,!1))}function C(e,t){if(globalThis._$HYDRATION&&globalThis._$HYDRATION.asyncSSR)return;v=ce;const n=re(e,t,!1),r=k&&de(S,k.id);r&&(n.suspense=r),n.user=!0,j&&j.push(n)}function I(e,t,n){const r=re(e,t,!0);return r.pending=w,r.observers=null,r.observerSlots=null,r.state=0,r.comparator=n?"function"==typeof n?n:y:void 0,te(r),Z.bind(r)}function L(e,t){let n,r=t?t.timeoutMs:void 0;const[o,u]=R(),i=re(()=>(n&&n.fn||(n=h(()=>u(i.value),void 0!==r?{timeout:r}:void 0)),e()),void 0,!0);return te(i),u(i.value),o}function E(e,t=y){let n=new Map;const r=re(r=>{const o=e();for(const e of n.keys())if(t(e,o)||r&&t(e,r)){const t=n.get(e);t.state=1,t.pure?A.push(t):j.push(t)}return o},void 0,!0);return te(r),e=>(P&&(n.set(e,P),q(()=>n.delete(e))),t(e,r.value))}function V(e){if(x)return e();const t=x=[],n=e();return x=null,ue(()=>{for(let e=0;e<t.length;e+=1){const n=t[e];if(n.pending!==w){const e=n.pending;n.pending=w,ee.call(n,e)}}},!1),n}function z(){return[m,e=>{k&&(T||(T={sources:new Set,effects:[],promises:new Set,disposed:new Set,running:!0}),T.running=!0),V(e)}]}function H(e){let t,n=P;return P=null,t=e(),P=n,t}function N(...e){const t=e.pop();let n,r,o=!0;return e.length<2?(n=e[0],o=!1):n=e,e=>{let u;if(o){u=[],r||(r=[]);for(let e=0;e<n.length;e++)u.push(n[e]())}else u=n();const i=H(()=>t(u,r,e));return r=u,i}}function Y(e){C(()=>H(e))}function q(e){return null===S||(null===S.cleanups?S.cleanups=[e]:S.cleanups.push(e)),e}function W(e){b||(b=Symbol("error")),null===S||(null===S.context?S.context={[b]:[e]}:S.context[b]?S.context[b].push(e):S.context[b]=[e])}function B(){return P}function G(){return S}function U(e){return{}}function J(e){const t=Symbol("context");return{id:t,Provider:he(t),defaultValue:e}}function K(e){return de(S,e.id)||e.defaultValue}function Q(){return k||(k=J({}))}function X(e,t={}){const n=new Set,r=globalThis._$HYDRATION||{},[o,u]=R(e,!0),[i,c]=R(),[s,l]=R(!1,!0);let f,a=null,d=null;function h(e,t,n){return d===e&&(a=n,d=null,T&&e&&T.promises.has(e)?(T.promises.delete(e),ue(()=>{T.running=!0,T.promises.size||(j.push.apply(j,T.effects),T.effects=[]),p(t)},!1)):p(t)),t}function p(e){V(()=>{f&&(r.context=f),r.asyncSSR&&t.name&&(r.resources[t.name]=e),u(e),l(!1);for(let e of n.keys())e.decrement();n.clear()}),f&&(r.context=f=void 0)}function g(){const e=k&&de(S,k.id),t=o();if(a)throw a;return P&&!P.user&&e&&F(()=>{i(),d&&(e.resolved&&T?T.promises.add(d):n.has(e)||(e.increment(),n.add(e)))}),t}return Object.defineProperty(g,"loading",{get:()=>s()}),[g,function(e){let n;return a=null,r.context&&!!r.context.registry?r.loadResource&&!t.notStreamed?e=r.loadResource:t.name&&r.resources&&t.name in r.resources&&(e=()=>{const e=r.resources[t.name];return delete r.resources[t.name],e}):r.asyncSSR&&r.context&&(f=r.context),n=e(),"object"==typeof n&&"then"in n?(d=n,V(()=>{l(!0),c()}),n.then(e=>h(n,e),e=>h(n,void 0,e))):(h(d,n),Promise.resolve(n))}]}function Z(){if(this.state&&this.sources){const e=A;A=null,1===this.state?te(this):se(this),A=e}if(P){const e=this.observers?this.observers.length:0;P.sources?(P.sources.push(this),P.sourceSlots.push(e)):(P.sources=[this],P.sourceSlots=[e]),this.observers?(this.observers.push(P),this.observerSlots.push(P.sources.length-1)):(this.observers=[P],this.observerSlots=[P.sources.length-1])}return T&&T.running&&T.sources.has(this)?this.tValue:this.value}function ee(e,t){if(this.comparator)if(T&&T.running&&T.sources.has(this)){if(this.comparator(this.tValue,e))return e}else if(this.comparator(this.value,e))return e;return x?(this.pending===w&&x.push(this),this.pending=e,e):(T?((T.running||!t&&T.sources.has(this))&&(T.sources.add(this),this.tValue=e),T.running||(this.value=e)):this.value=e,!this.observers||A&&!this.observers.length||ue(()=>{for(let e=0;e<this.observers.length;e+=1){const t=this.observers[e];T&&T.running&&T.disposed.has(t)||(t.observers&&2!==t.state&&le(t),t.state=1,t.pure?A.push(t):j.push(t))}if(A.length>1e6)throw A=[],new Error("Potential Infinite Loop Detected.")},!1),e)}function te(e){if(!e.fn)return;fe(e);const t=S,n=P,r=D;P=S=e,ne(e,e.value,r),T&&!T.running&&T.sources.has(e)&&(T.running=!0,ne(e,e.tValue,r),T.running=!1),P=n,S=t}function ne(e,t,n){let r;try{r=e.fn(t)}catch(e){ae(e)}(!e.updatedAt||e.updatedAt<=n)&&(e.observers&&e.observers.length?ee.call(e,r,!0):T&&T.running&&e.pure?(T.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function re(e,t,n){const r={fn:e,state:1,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:S,context:null,pure:n};return null===S||S!==_&&(T&&T.running&&S.pure?S.tOwned?S.tOwned.push(r):S.tOwned=[r]:S.owned?S.owned.push(r):S.owned=[r]),r}function oe(e){let t,n=1===e.state&&e;if(e.suspense&&H(e.suspense.inFallback))return e.suspense.effects.push(e);const r=T&&T.running;for(;(e.fn||r&&e.attached)&&(e=e.owner);){if(r&&T.disposed.has(e))return;2===e.state?t=e:1===e.state&&(n=e,t=void 0)}if(t){const o=A;if(A=null,se(t),A=o,!n||1!==n.state)return;if(r)for(e=n;(e.fn||e.attached)&&(e=e.owner);)if(T.disposed.has(e))return}n&&te(n)}function ue(e,t){if(A)return e();let n=!1;t||(A=[]),j?n=!0:j=[],D++;try{e()}catch(e){ae(e)}finally{if(A&&(ie(A),A=null),n)return;if(T&&T.running){if(T.promises.size)return T.running=!1,T.effects.push.apply(T.effects,j),j=null,void O(!0);const e=T.sources;T=null,V(()=>{e.forEach(e=>{if(e.value=e.tValue,e.owned)for(let t=0,n=e.owned.length;t<n;t++)fe(e.owned[t]);e.tOwned&&(e.owned=e.tOwned),delete e.tValue,delete e.tOwned}),O(!1)})}j.length?V(()=>{v(j),j=null}):j=null}}function ie(e){for(let t=0;t<e.length;t++)oe(e[t])}function ce(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:oe(r)}const r=e.length;for(t=0;t<n;t++)oe(e[t]);for(t=r;t<e.length;t++)oe(e[t])}function se(e){e.state=0;for(let t=0;t<e.sources.length;t+=1){const n=e.sources[t];n.sources&&(1===n.state?oe(n):2===n.state&&se(n))}}function le(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=2,n.observers&&le(n))}}function fe(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(T&&T.running&&e.pure){if(e.tOwned){for(t=0;t<e.tOwned.length;t++)fe(e.tOwned[t]);delete e.tOwned}!function e(t,n){n||(t.state=0,T.disposed.add(t));if(t.owned)for(let n=0;n<t.owned.length;n++)e(t.owned[n])}(e,!0)}else if(e.owned){for(t=0;t<e.owned.length;t++)fe(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function ae(e){const t=b&&de(S,b);if(!t)throw e;t.forEach(t=>t(e))}function de(e,t){return e&&(e.context&&e.context[t]||e.owner&&de(e.owner,t))}function he(e){return function(t){return I(()=>{S.context={[e]:t.value};const n=I(()=>t.children);return I(()=>function e(t){if("function"==typeof t)return e(t());if(Array.isArray(t)){const n=[];for(let r=0;r<t.length;r++){let o=e(t[r]);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return n}return t}(n()))})}}const pe=Symbol("state-raw"),ge=Symbol("state-node"),ye=Symbol("state-proxy"),be=Symbol("state-name");function ve(e,t,n,r){let o=e[ye];if(!o&&(Object.defineProperty(e,ye,{value:o=new Proxy(e,r||Se)}),n)){let t=Object.keys(e),n=Object.getOwnPropertyDescriptors(e);for(let r=0,u=t.length;r<u;r++){const u=t[r];if(n[u].get){const t=I(n[u].get.bind(o),void 0,!0);Object.defineProperty(e,u,{get:t})}if(n[u].set){const t=n[u].set,r=e=>V(()=>t.call(o,e));Object.defineProperty(e,u,{set:r})}}}return o}function we(e){return null!=e&&"object"==typeof e&&(!e.__proto__||e.__proto__===Object.prototype||Array.isArray(e))}function _e(e,t){let n,r,o,u;if(n=null!=e&&e[pe])return n;if(!we(e))return e;if(Array.isArray(e)){Object.isFrozen(e)&&(e=e.slice(0));for(let n=0,u=e.length;n<u;n++)o=e[n],(r=_e(o,t))!==o&&(e[n]=r)}else{Object.isFrozen(e)&&(e=Object.assign({},e));let n=Object.keys(e),i=t&&Object.getOwnPropertyDescriptors(e);for(let c=0,s=n.length;c<s;c++)u=n[c],t&&i[u].get||(o=e[u],(r=_e(o,t))!==o&&(e[u]=r))}return e}function me(e){let t=e[ge];return t||Object.defineProperty(e,ge,{value:t={}}),t}function Oe(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||t===ye||t===ge||t===be||(delete n.value,delete n.writable,n.get=()=>e[t]),n}const Se={get(e,t,n){if(t===pe)return e;if(t===ye)return n;const r=e[t];if(t===ge||"__proto__"===t)return r;const o=we(r);if(P&&("function"!=typeof r||e.hasOwnProperty(t))){let n,u;o&&(n=me(r))&&(u=n._||(n._=R()),u[0]()),n=me(e),u=n[t]||(n[t]=R()),u[0]()}return o?ve(r):r},set:()=>!0,deleteProperty:()=>!0,getOwnPropertyDescriptor:Oe};function Pe(e,t,n){if(e[t]===n)return;const r=Array.isArray(e)||!(t in e);void 0===n?delete e[t]:e[t]=n;let o,u=me(e);(o=u[t])&&o[1](n),r&&(o=u._)&&o[1]()}function ke(e,t,n=[]){let r,o=e;if(t.length>1){r=t.shift();const u=typeof r,i=Array.isArray(e);if(Array.isArray(r)){for(let o=0;o<r.length;o++)ke(e,[r[o]].concat(t),[r[o]].concat(n));return}if(i&&"function"===u){for(let o=0;o<e.length;o++)r(e[o],o)&&ke(e,[o].concat(t),[o].concat(n));return}if(i&&"object"===u){const{from:o=0,to:u=e.length-1,by:i=1}=r;for(let r=o;r<=u;r+=i)ke(e,[r].concat(t),[r].concat(n));return}if(t.length>1)return void ke(e[r],t,[r].concat(n));o=e[r],n=[r].concat(n)}let u=t[0];"function"==typeof u&&(u=u(o,n),u===o)||void 0===r&&null==u||(u=_e(u),void 0===r||we(o)&&we(u)&&!Array.isArray(u)?function(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];Pe(e,o,t[o])}}(o,u):Pe(e,r,u))}function xe(e,t){const n=_e(e||{},!0);return[ve(n,0,!0),function(...e){V(()=>ke(n,e))}]}function Ae(e,t){const[n,r]=X(e,{name:t});return[()=>n(),e=>r(()=>e),r,()=>n.loading]}function je(e,t={}){const n={get:(e,n)=>(e[n]||(e[n]=Ae(void 0,t.name&&`${t.name}:${n}`)))[3](),set:()=>!0,deleteProperty:()=>!0},r={get(e,r,o){if(r===pe)return e;if(r===ye)return o;if("loading"===r)return new Proxy(me(e),n);const u=e[r];if(r===ge||"__proto__"===r)return u;const i=we(u);if(P&&("function"!=typeof u||e.hasOwnProperty(r))){let n,o;i&&(n=me(u))&&(o=n._||(n._=R()),o[0]()),n=me(e),o=n[r]||(n[r]=Ae(u,`${t.name}:${r}`)),o[0]()}return i?ve(u):u},set:()=>!0,deleteProperty:()=>!0,getOwnPropertyDescriptor:Oe},o=_e(e||{},!0);function u(...e){V(()=>ke(o,e))}return[ve(o,0,!0,r),function(e,n){const r=me(o),i=Object.keys(e);for(let c=0;c<i.length;c++){const s=i[c],l=r[s]||(r[s]=Ae(o[s],`${t.name}:${s}`)),f=e=>(n?u(s,n(e)):Pe(o,s,e),o[s]);l[2](()=>{const t=e[s]();return"object"==typeof t&&"then"in t?t.then(f):f(t)})}},u]}const Te={get(e,t,n){if(t===pe)return e;if(t===ye)return n;const r=e[t];if(t===ge||"__proto__"===t)return r;const o=we(r);if(P&&("function"!=typeof r||e.hasOwnProperty(t))){let n,u;o&&(n=me(r))&&(u=n._||(n._=R()),u[0]()),n=me(e),u=n[t]||(n[t]=R()),u[0]()}return o?ve(r,0,!1,Te):r},set:(e,t,n)=>(Pe(e,t,_e(n)),!0),deleteProperty:(e,t)=>(Pe(e,t,void 0),!0),getOwnPropertyDescriptor:Oe};function De(e,t){return ve(_e(e||{},!0),0,!0,Te)}function Me(e,t={}){const{merge:n,key:r="id"}=t,o=_e(e);return e=>we(e)?(function e(t,n,r,o,u){let i=n[r];if(t===i)return;if(!we(t)||!we(i)||u&&t[u]!==i[u])return void(t!==i&&Pe(n,r,t));if(Array.isArray(t)){if(t.length&&i.length&&(!o||u&&null!=t[0][u])){let n,r,c,s,l,f,a,d;for(c=0,s=Math.min(i.length,t.length);c<s&&(i[c]===t[c]||u&&i[c][u]===t[c][u]);c++)e(t[c],i,c,o,u);const h=new Array(t.length),p=new Map;for(s=i.length-1,l=t.length-1;s>=c&&l>=c&&(i[s]===t[l]||u&&i[s][u]===t[l][u]);s--,l--)h[l]=i[s];if(c>l||c>s){for(r=c;r<=l;r++)Pe(i,r,t[r]);for(;r<t.length;r++)Pe(i,r,h[r]),e(t[r],i,r,o,u);return void(i.length>t.length&&Pe(i,"length",t.length))}for(a=new Array(l+1),r=l;r>=c;r--)f=t[r],d=u?f[u]:f,n=p.get(d),a[r]=void 0===n?-1:n,p.set(d,r);for(n=c;n<=s;n++)f=i[n],d=u?f[u]:f,r=p.get(d),void 0!==r&&-1!==r&&(h[r]=i[n],r=a[r],p.set(d,r));for(r=c;r<t.length;r++)r in h?(Pe(i,r,h[r]),e(t[r],i,r,o,u)):Pe(i,r,t[r])}else for(let n=0,r=t.length;n<r;n++)e(t[n],i,n,o,u);return void(i.length>t.length&&Pe(i,"length",t.length))}const c=Object.keys(t);for(let n=0,r=c.length;n<r;n++)e(t[c[n]],i,c[n],o,u);const s=Object.keys(i);for(let e=0,n=s.length;e<n;e++)void 0===t[s[e]]&&Pe(i,s[e],void 0)}(o,{state:e},"state",n,r),e):o}const Re={get(e,t){if(t===pe)return e;const n=e[t];return we(n)?new Proxy(n,Re):n},set:(e,t,n)=>(Pe(e,t,_e(n)),!0),deleteProperty:(e,t)=>(Pe(e,t,void 0),!0)};function Fe(e){return t=>(we(t)&&e(new Proxy(t,Re)),t)}const $e=Symbol("fallback");function Ce(e,t,n={}){let r=[],o=[],u=[],i=0,c=t.length>1?[]:null,s=S;return q(()=>{for(let e=0,t=u.length;e<t;e++)u[e]()}),()=>{let l,f,a=e()||[];return H(()=>{let e,t,h,p,g,y,b,v,w,_=a.length;if(0===_){if(0!==i){for(l=0;l<i;l++)u[l]();u=[],r=[],o=[],i=0,c&&(c=[])}n.fallback&&(r=[$e],o[0]=M(e=>(u[0]=e,n.fallback()),s),i=1)}else if(0===i){for(f=0;f<_;f++)r[f]=a[f],o[f]=M(d,s);i=_}else{for(h=new Array(_),p=new Array(_),c&&(g=new Array(_)),y=0,b=Math.min(i,_);y<b&&r[y]===a[y];y++);for(b=i-1,v=_-1;b>=y&&v>=y&&r[b]===a[v];b--,v--)h[v]=o[b],p[v]=u[b],c&&(g[v]=c[b]);for(e=new Map,t=new Array(v+1),f=v;f>=y;f--)w=a[f],l=e.get(w),t[f]=void 0===l?-1:l,e.set(w,f);for(l=y;l<=b;l++)w=r[l],f=e.get(w),void 0!==f&&-1!==f?(h[f]=o[l],p[f]=u[l],c&&(g[f]=c[l]),f=t[f],e.set(w,f)):u[l]();for(f=y;f<_;f++)f in h?(o[f]=h[f],u[f]=p[f],c&&(c[f]=g[f],c[f](f))):o[f]=M(d,s);i=o.length=_,r=a.slice(0)}return o});function d(e){if(u[f]=e,c){const[e,n]=R(f,!0);return c[f]=n,t(a[f],e)}return t(a[f])}}}function Ie(e,t,n={}){let r,o=[],u=[],i=[],c=[],s=0,l=S;return q(()=>{for(let e=0,t=i.length;e<t;e++)i[e]()}),()=>{const f=e()||[];return H(()=>{if(0===f.length){if(0!==s){for(r=0;r<s;r++)i[r]();i=[],o=[],u=[],s=0,c=[]}return n.fallback&&(o=[$e],u[0]=M(e=>(i[0]=e,n.fallback()),l),s=1),u}for(o[0]===$e&&(i[0](),i=[],o=[],u=[],s=0),r=0;r<f.length;r++)r<o.length&&o[r]!==f[r]?c[r](f[r]):r>=o.length&&(u[r]=M(a,l));for(;r<o.length;r++)i[r]();return s=u.length=c.length=i.length=f.length,o=f.slice(0),u});function a(e){i[r]=e;const[n,o]=R(f[r]);return c[r]=o,t(n,r)}}}function Le(e,t){return H(()=>e(t))}function Ee(e,...t){for(let n=0;n<t.length;n++){const r=Object.getOwnPropertyDescriptors(t[n]);Object.defineProperties(e,r)}return e}function Ve(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=e=>{const t={};for(let r=0;r<e.length;r++){const o=e[r];n[o]&&(Object.defineProperty(t,o,n[o]),delete n[o])}return t};return t.map(r).concat(r(Object.keys(n)))}function ze(e){let t;return n=>{const r=globalThis._$HYDRATION||{},o=r.context&&r.context.registry,u=function(){const e=globalThis._$HYDRATION;return e&&e.context?{id:`${e.context.id}.${e.context.count++}`,count:0,registry:e.context.registry}:void 0}(),[i,c]=X(void 0,{notStreamed:!0});let s;return o&&r.resources?(t||(t=e())).then(e=>{He(u),c(()=>e.default),He(void 0)}):c(()=>(t||(t=e())).then(e=>e.default)),I(()=>(s=i())&&H(()=>{if(!u)return s(n);const e=r.context;He(u);const t=s(n);return He(e),t}))}}function He(e){globalThis._$HYDRATION.context=e}function Ne(e){const t="fallback"in e&&{fallback:()=>e.fallback};return I(Ce(()=>e.each,e.children,t||void 0))}function Ye(e){const t="fallback"in e&&{fallback:()=>e.fallback};return I(Ie(()=>e.each,e.children,t||void 0))}function qe(e){const t=Object.getOwnPropertyDescriptor(e,"children").value,n="function"==typeof t&&t.length,r=I(n?()=>e.when:()=>!!e.when,void 0,!0);return I(()=>{const t=r();return t?n?H(()=>e.children(t)):e.children:e.fallback})}function We(e){let t=e.children;Array.isArray(t)||(t=[t]);const n=I(()=>{for(let e=0;e<t.length;e++){const n=t[e].when;if(n)return[e,t[e].keyed?n:!!n]}return[-1]},void 0,(e,t)=>e&&e[0]===t[0]&&e[1]===t[1]);return I(()=>{const[r,o]=n();if(r<0)return e.fallback;const u=t[r].children;return"function"==typeof u&&u.length?H(()=>u(o)):u})}function Be(e){const t=Object.getOwnPropertyDescriptor(e,"children").value;return e.keyed="function"==typeof t&&!!t.length,e}function Ge(e){const[t,n]=R(),r=Object.getOwnPropertyDescriptor(e,"fallback").value,o="function"==typeof r&&!!r.length;let u;return W(n),I(()=>null!=(u=t())?o?H(()=>e.fallback(u)):e.fallback:e.children)}const Ue=J();let Je=!1;function Ke(e){const t=Q();if(!Je){let e=0;const[n,r]=R(!1);t.active=n,t.increment=()=>0==e++&&r(!0),t.decrement=()=>--e<=0&&r(!1),Je=!0}return()=>new Promise(n=>{const r=e();$(()=>!t.active()&&n(r))})}function Qe(e){let t,n,r,o=0;const u=K(Ue);if(u){const[e,o]=R(!1,!0);t=o,[n,r]=u.register(e)}const i=[],c=Le(Ue.Provider,{value:{register:e=>{const[t,n]=R(!1,!0),[r,u]=R(!1,!0);return i[o++]={inFallback:e,showContent:n,showFallback:u},[t,r]}},get children(){return e.children}});return F(()=>{const o=e.revealOrder,u=e.tail,c=!n||n(),s=!r||r(),l="backwards"===o;if("together"===o){const e=i.every(e=>!e.inFallback());return t&&t(!e),void i.forEach(t=>{t.showContent(e&&c),t.showFallback(s)})}let f=!1;for(let e=0,n=i.length;e<n;e++){const r=l?n-e-1:e,o=i[r].inFallback();if(f||o){const e=!f;e&&t&&t(!0),!u||e&&"collapsed"===u?i[r].showFallback(s):i[r].showFallback(!1),f=!0,i[r].showContent(e)}else i[r].showContent(c),i[r].showFallback(s)}!f&&t&&t(!1)}),c}function Xe(e){let t,n,r=0;const[o,u]=R(!1),i=Q(),c={increment:()=>{1==++r&&(u(!0),Je&&i.increment())},decrement:()=>{0==--r&&(u(!1),Je&&setTimeout(i.decrement))},inFallback:o,effects:[],resolved:!1},s=K(Ue);return s&&([t,n]=s.register(c.inFallback)),Le(i.Provider,{value:c,get children(){const r=H(()=>e.children);return I(()=>{const o=c.inFallback(),u=!t||t(),i=!n||n();return!o&&u?(c.resolved=!0,s=c.effects,T&&(T.running=!0),j.push.apply(j,s),s.length=0,r):i?e.fallback:void 0;var s})}})}var Ze,et=n(0);const tt=Object(et.a)(),nt=null!==(Ze=tt.SOLID)&&void 0!==Ze?Ze:tt.SOLID=r,{createSignal:rt,createEffect:ot,createRoot:ut,untrack:it}=nt;function ct(){return this()}function st(e){return this(e)}function lt(e){const[t,n]=rt(e),r=e=>void 0===e?t():(n(e),e);return r.get=ct.bind(r),r.set=st.bind(r),r}function ft(e){let t;return ut(n=>{t=n,ot(e)}),t}function at(e,t,n){const r=1===arguments.length&&"kind"in e;if(r){const t=e;return"class"===t.kind?{...t,finisher:dt}:{...t,finisher(e){var n,r;return pt(e.prototype,t.key),null!==(r=null===(n=t.finisher)||void 0===n?void 0:n.call(t,e))&&void 0!==r?r:e}}}if(1===arguments.length&&"function"==typeof e){return dt(e)}return pt(e,t,n)}function dt(e){var t;return(t=class extends e{constructor(...t){super(...t),yt(this,e)}}).__isReactive__=!0,t}const ht=new WeakMap;function pt(e,t,n){let r=ht.get(e.constructor);r||ht.set(e.constructor,r=[]),r.push(t);const o="v_"+t;let u,i,c,s=!1;if(n&&!("initializer"in n)||(s=!0,n||(n=Object.getOwnPropertyDescriptor(e,t))),n)if(u=n.get,i=n.set,u||i){if(!u||!i)return void console.warn('The `@reactive` decorator was used on an accessor named "'+t+'" which had a getter or a setter, but not both. Reactivity on accessors works only when accessors have both get and set. In this case the decorator does not do anything.');delete n.get,delete n.set}else{if(c=n.value,!n.writable)return void console.warn("The `@reactive` decorator was used on a property named "+t+" that is not writable. Reactivity is not enabled for non-writable properties.");delete n.value,delete n.writable}if(n={...n,get:u?function(){return gt(this,o,c)(),u.call(this)}:function(){return gt(this,o,c)()},set:i?function(e){i.call(this,e);gt(this,o)(e),this.__propsSetAtLeastOnce__||(this.__propsSetAtLeastOnce__=new Set),this.__propsSetAtLeastOnce__.add(t)}:function(e){gt(this,o)(e),this.__propsSetAtLeastOnce__||(this.__propsSetAtLeastOnce__=new Set),this.__propsSetAtLeastOnce__.add(t)}},e.__reactifiedProps__||(e.__reactifiedProps__=new Set),e.__reactifiedProps__.add(t),!s)return n;Object.defineProperty(e,t,n)}function gt(e,t,n){let r=e[t];return r||(e[t]=r=lt(n),r)}function yt(e,t){if(function(e){return"function"==typeof e}(t)){const n=t;let r=ht.get(n);r&&function(e,t){for(const n of t)if(e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}}(e,r),r=n.reactiveProperties,Array.isArray(r)&&bt(e,r)}else{bt(e,t)}return e}function bt(e,t){var n;for(const r of t){if(null===(n=e.__reactifiedProps__)||void 0===n?void 0:n.has(r))continue;const t=e[r];pt(e,r),e[r]=t}}const vt=it,wt="0.4.1"}]);
//# sourceMappingURL=global.js.map
var _a;
import _html from 'solid-js/html';
import { getGlobal } from './getGlobal';
import { getGlobal } from './getGlobal.js';
const global = getGlobal();

@@ -5,0 +5,0 @@ const html = (_a = global.SOLID_HTML) !== null && _a !== void 0 ? _a : (global.SOLID_HTML = _html);

@@ -18,3 +18,3 @@ import * as SOLID from 'solid-js';

export declare const untrack: typeof SOLID.untrack;
export declare const version = "0.4.0";
export declare const version = "0.4.1";
export {};
var _a;
import * as SOLID from 'solid-js';
import { getGlobal } from './getGlobal';
import { getGlobal } from './getGlobal.js';
const global = getGlobal();

@@ -191,3 +191,3 @@ const Solid = (_a = global.SOLID) !== null && _a !== void 0 ? _a : (global.SOLID = SOLID);

export const untrack = _untrack;
export const version = '0.4.0';
export const version = '0.4.1';
//# sourceMappingURL=index.js.map

@@ -10,3 +10,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

};
import { variable, autorun, reactive, reactify } from './index';
import { variable, autorun, reactive, reactify } from './index.js';
describe('@lume/variable', () => {

@@ -13,0 +13,0 @@ describe('variable()', () => {

{
"name": "@lume/variable",
"version": "0.4.0",
"version": "0.4.1",
"description": "Create and react to reactive variables.",

@@ -5,0 +5,0 @@ "author": "Joe Pea <joe@trusktr.io>",

@@ -8,3 +8,3 @@ // This import should live in @lume/element, but doing that causes Solid to exist

import {getGlobal} from './getGlobal'
import {getGlobal} from './getGlobal.js'

@@ -11,0 +11,0 @@ const global = getGlobal() as any

@@ -7,3 +7,3 @@ // This import should live in @lume/element, but doing that causes Solid to exist

import {getGlobal} from './getGlobal'
import {getGlobal} from './getGlobal.js'

@@ -10,0 +10,0 @@ const global = getGlobal() as any

@@ -1,2 +0,2 @@

import {variable, autorun, reactive, reactify} from './index'
import {variable, autorun, reactive, reactify} from './index.js'

@@ -3,0 +3,0 @@ describe('@lume/variable', () => {

import * as SOLID from 'solid-js'
import {getGlobal} from './getGlobal'
import {getGlobal} from './getGlobal.js'

@@ -361,2 +361,2 @@ const global = getGlobal() as any

export const version = '0.4.0'
export const version = '0.4.1'

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc