@aracna/react 1.0.56 → 1.0.58

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.
Files changed (4) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +18 -18
  3. package/index.iife.js +1 -1
  4. package/package.json +2 -37
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Dario Sechi
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Dario Sechi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,18 +1,18 @@
1
- ![NPM](https://img.shields.io/npm/l/@aracna/react)
2
- ![npm (scoped)](https://img.shields.io/npm/v/@aracna/react)
3
- [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=coverage)](https://sonarcloud.io/summary/new_code?id=aracna_react)
4
- [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=aracna_react)
5
- [![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=aracna_react)
6
- [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=aracna_react)
7
- [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=aracna_react)
8
- [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=aracna_react)
9
- [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=aracna_react)
10
- [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=aracna_react)
11
-
12
- # Aracna React
13
-
14
- This library contains a collection of functions and hooks to make your react development experience smoother.
15
-
16
- ### Documentation
17
-
18
- You can find the react documentation on the [Aracna Website](https://aracna.dariosechi.it).
1
+ ![NPM](https://img.shields.io/npm/l/@aracna/react)
2
+ ![npm (scoped)](https://img.shields.io/npm/v/@aracna/react)
3
+ [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=coverage)](https://sonarcloud.io/summary/new_code?id=aracna_react)
4
+ [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=aracna_react)
5
+ [![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=aracna_react)
6
+ [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=aracna_react)
7
+ [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=aracna_react)
8
+ [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=aracna_react)
9
+ [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=aracna_react)
10
+ [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=aracna_react)
11
+
12
+ # Aracna React
13
+
14
+ This library contains a collection of functions and hooks to make your react development experience smoother.
15
+
16
+ ### Documentation
17
+
18
+ You can find the react documentation on the [Aracna Website](https://aracna.dariosechi.it).
package/index.iife.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var AracnaReact=(()=>{var De=Object.create;var C=Object.defineProperty;var Le=Object.getOwnPropertyDescriptor;var Pe=Object.getOwnPropertyNames;var we=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var M=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ue=(e,t)=>{for(var n in t)C(e,n,{get:t[n],enumerable:!0})},z=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Pe(t))!Me.call(e,o)&&o!==n&&C(e,o,{get:()=>t[o],enumerable:!(r=Le(t,o))||r.enumerable});return e};var _=(e,t,n)=>(n=e!=null?De(we(e)):{},z(t||!e||!e.__esModule?C(n,"default",{value:e,enumerable:!0}):n,e)),be=e=>z(C({},"__esModule",{value:!0}),e);var oe=M(u=>{"use strict";var b=Symbol.for("react.transitional.element"),Ie=Symbol.for("react.portal"),xe=Symbol.for("react.fragment"),He=Symbol.for("react.strict_mode"),Fe=Symbol.for("react.profiler"),Be=Symbol.for("react.consumer"),Ge=Symbol.for("react.context"),ke=Symbol.for("react.forward_ref"),je=Symbol.for("react.suspense"),Ke=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),Y=Symbol.iterator;function We(e){return e===null||typeof e!="object"?null:(e=Y&&e[Y]||e["@@iterator"],typeof e=="function"?e:null)}var Q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ee=Object.assign,te={};function v(e,t,n){this.props=e,this.context=t,this.refs=te,this.updater=n||Q}v.prototype.isReactComponent={};v.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ne(){}ne.prototype=v.prototype;function I(e,t,n){this.props=e,this.context=t,this.refs=te,this.updater=n||Q}var x=I.prototype=new ne;x.constructor=I;ee(x,v.prototype);x.isPureReactComponent=!0;var V=Array.isArray,E={H:null,A:null,T:null,S:null,V:null},re=Object.prototype.hasOwnProperty;function H(e,t,n,r,o,i){return n=i.ref,{$$typeof:b,type:e,key:t,ref:n!==void 0?n:null,props:i}}function $e(e,t){return H(e.type,t,void 0,void 0,void 0,e.props)}function F(e){return typeof e=="object"&&e!==null&&e.$$typeof===b}function ze(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var X=/\/+/g;function U(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ze(""+e.key):t.toString(36)}function J(){}function Ye(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(J,J):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function y(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case b:case Ie:s=!0;break;case Z:return s=e._init,y(s(e._payload),t,n,r,o)}}if(s)return o=o(e),s=r===""?"."+U(e,0):r,V(o)?(n="",s!=null&&(n=s.replace(X,"$&/")+"/"),y(o,t,n,"",function(d){return d})):o!=null&&(F(o)&&(o=$e(o,n+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(X,"$&/")+"/")+s)),t.push(o)),1;s=0;var f=r===""?".":r+":";if(V(e))for(var a=0;a<e.length;a++)r=e[a],i=f+U(r,a),s+=y(r,t,n,i,o);else if(a=We(e),typeof a=="function")for(e=a.call(e),a=0;!(r=e.next()).done;)r=r.value,i=f+U(r,a++),s+=y(r,t,n,i,o);else if(i==="object"){if(typeof e.then=="function")return y(Ye(e),t,n,r,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function g(e,t,n){if(e==null)return e;var r=[],o=0;return y(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Ve(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var q=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Xe(){}u.Children={map:g,forEach:function(e,t,n){g(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return g(e,function(){t++}),t},toArray:function(e){return g(e,function(t){return t})||[]},only:function(e){if(!F(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};u.Component=v;u.Fragment=xe;u.Profiler=Fe;u.PureComponent=I;u.StrictMode=He;u.Suspense=je;u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E;u.__COMPILER_RUNTIME={__proto__:null,c:function(e){return E.H.useMemoCache(e)}};u.cache=function(e){return function(){return e.apply(null,arguments)}};u.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=ee({},e.props),o=e.key,i=void 0;if(t!=null)for(s in t.ref!==void 0&&(i=void 0),t.key!==void 0&&(o=""+t.key),t)!re.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(r[s]=t[s]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var f=Array(s),a=0;a<s;a++)f[a]=arguments[a+2];r.children=f}return H(e.type,o,void 0,void 0,i,r)};u.createContext=function(e){return e={$$typeof:Ge,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Be,_context:e},e};u.createElement=function(e,t,n){var r,o={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)re.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var f=Array(s),a=0;a<s;a++)f[a]=arguments[a+2];o.children=f}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return H(e,i,void 0,void 0,null,o)};u.createRef=function(){return{current:null}};u.forwardRef=function(e){return{$$typeof:ke,render:e}};u.isValidElement=F;u.lazy=function(e){return{$$typeof:Z,_payload:{_status:-1,_result:e},_init:Ve}};u.memo=function(e,t){return{$$typeof:Ke,type:e,compare:t===void 0?null:t}};u.startTransition=function(e){var t=E.T,n={};E.T=n;try{var r=e(),o=E.S;o!==null&&o(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Xe,q)}catch(i){q(i)}finally{E.T=t}};u.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()};u.use=function(e){return E.H.use(e)};u.useActionState=function(e,t,n){return E.H.useActionState(e,t,n)};u.useCallback=function(e,t){return E.H.useCallback(e,t)};u.useContext=function(e){return E.H.useContext(e)};u.useDebugValue=function(){};u.useDeferredValue=function(e,t){return E.H.useDeferredValue(e,t)};u.useEffect=function(e,t,n){var r=E.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)};u.useId=function(){return E.H.useId()};u.useImperativeHandle=function(e,t,n){return E.H.useImperativeHandle(e,t,n)};u.useInsertionEffect=function(e,t){return E.H.useInsertionEffect(e,t)};u.useLayoutEffect=function(e,t){return E.H.useLayoutEffect(e,t)};u.useMemo=function(e,t){return E.H.useMemo(e,t)};u.useOptimistic=function(e,t){return E.H.useOptimistic(e,t)};u.useReducer=function(e,t,n){return E.H.useReducer(e,t,n)};u.useRef=function(e){return E.H.useRef(e)};u.useState=function(e){return E.H.useState(e)};u.useSyncExternalStore=function(e,t,n){return E.H.useSyncExternalStore(e,t,n)};u.useTransition=function(){return E.H.useTransition()};u.version="19.1.0"});var R=M((ht,se)=>{"use strict";se.exports=oe()});var de=M(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.parse=it;N.serialize=ut;var et=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,tt=/^[\u0021-\u003A\u003C-\u007E]*$/,nt=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,rt=/^[\u0020-\u003A\u003D-\u007E]*$/,ot=Object.prototype.toString,st=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function it(e,t){let n=new st,r=e.length;if(r<2)return n;let o=t?.decode||at,i=0;do{let s=e.indexOf("=",i);if(s===-1)break;let f=e.indexOf(";",i),a=f===-1?r:f;if(s>a){i=e.lastIndexOf(";",s-1)+1;continue}let d=pe(e,i,s),m=le(e,s,d),c=e.slice(d,m);if(n[c]===void 0){let T=pe(e,s+1,a),p=le(e,a,T),l=o(e.slice(T,p));n[c]=l}i=a+1}while(i<r);return n}function pe(e,t,n){do{let r=e.charCodeAt(t);if(r!==32&&r!==9)return t}while(++t<n);return n}function le(e,t,n){for(;t>n;){let r=e.charCodeAt(--t);if(r!==32&&r!==9)return t+1}return n}function ut(e,t,n){let r=n?.encode||encodeURIComponent;if(!et.test(e))throw new TypeError(`argument name is invalid: ${e}`);let o=r(t);if(!tt.test(o))throw new TypeError(`argument val is invalid: ${t}`);let i=e+"="+o;if(!n)return i;if(n.maxAge!==void 0){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);i+="; Max-Age="+n.maxAge}if(n.domain){if(!nt.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);i+="; Domain="+n.domain}if(n.path){if(!rt.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);i+="; Path="+n.path}if(n.expires){if(!ct(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);i+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.partitioned&&(i+="; Partitioned"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():void 0){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return i}function at(e){if(e.indexOf("%")===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function ct(e){return ot.call(e)==="[object Date]"}});var vt={};Ue(vt,{ComponentLifeCycle:()=>ue,Memo:()=>Je,createElementComponent:()=>Et,forwardRef:()=>pt,useDOMRect:()=>Tt,useDispatch:()=>lt,useElementRef:()=>_t,useEventListener:()=>Rt,useIntersectionObserver:()=>At,useLifeCycle:()=>W,useWindowEventListener:()=>$,useWindowSize:()=>yt});var ie=_(R(),1);function Je(e){return(0,ie.useMemo)(()=>e.children,e.deps??[])}var ue=(r=>(r.CONSTRUCTED="CONSTRUCTED",r.MOUNTED="MOUNTED",r.UNMOUNTED="UNMOUNTED",r))(ue||{});var ae=()=>({tc:{log:!0,onCatch:()=>{}},tcp:{log:!0,onCatch:()=>{}}});var qe="abcdefghijklmnopqrstuvwxyz";var B="0123456789",Ze="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Dt=B+qe+Ze,Lt=B+"abcdef",Pt=B+"ABCDEF";var ce=/[^a-zA-Z0-9]/g;var O=class{static functions=ae()};function fe(e,t=O.functions.tc.log){try{return e()}catch(n){return t&&console.error(n),O.functions.tc.onCatch(n,t),n}}function A(){return typeof window<"u"}function Qe(e,t=!1){return e.charAt(0).toUpperCase()+(t?e.slice(1).toLowerCase():e.slice(1))}function Ee(e){let t,n;t="",n=!1;for(let r of e){if(ce.test(r)){n=!0;continue}if(n){t+=r.toUpperCase(),n=!1;continue}t+=r}return Qe(t)}function G(e){return Array.isArray(e)}var k=_(de(),1);function me(e,t){let n;return n=fe(()=>(0,k.parse)(e,t)),n instanceof Error?{}:n}var Te=e=>()=>[...e.entries()].map(([t,n])=>[t,n].join("=")).join(";"),_e=(e,t=me)=>n=>{let r;if(r=t(n),!(r instanceof Error))for(let o in r){if(n.includes("Expires=Thu, 01 Jan 1970 00:00:00 GMT")){e.delete(o);continue}e.set(o,r[o])}};var j=e=>({clear:()=>e.clear(),getItem:t=>{let n;return n=e.get(t),typeof n>"u"?null:n},key:t=>{let n;return n=[...e.keys()][t],typeof n>"u"?null:n},removeItem:t=>{e.delete(t)},setItem:(t,n)=>{e.set(t,n)},get length(){return e.size}}),Jt=Object.freeze({decode:()=>"",encoding:"",fatal:!1,ignoreBOM:!1}),qt=Object.freeze({encode:()=>new Uint8Array,encodeInto:()=>({read:0,written:0}),encoding:""});var ft=new Set(["children","localName","ref","style","className"]),Re=new WeakMap,Ae=(e,t,n,r,o)=>{let i=o?.[t];i===void 0?(e[t]=n,n==null&&t in HTMLElement.prototype&&e.removeAttribute(t)):n!==r&&((s,f,a)=>{let d=Re.get(s);d===void 0&&Re.set(s,d=new Map);let m=d.get(f);a!==void 0?m===void 0?(d.set(f,m={handleEvent:a}),s.addEventListener(f,m)):m.handleEvent=a:m!==void 0&&(d.delete(f),s.removeEventListener(f,m))})(e,i,n)},K=({react:e,tagName:t,elementClass:n,events:r,displayName:o})=>{let i=new Set(Object.keys(r??{})),s=e.forwardRef((f,a)=>{let d=e.useRef(new Map),m=e.useRef(null),c={},T={};for(let[p,l]of Object.entries(f))ft.has(p)?c[p==="className"?"class":p]=l:i.has(p)||p in n.prototype?T[p]=l:c[p]=l;return e.useLayoutEffect(()=>{if(m.current===null)return;let p=new Map;for(let l in T)Ae(m.current,l,f[l],d.current.get(l),r),d.current.delete(l),p.set(l,f[l]);for(let[l,w]of d.current)Ae(m.current,l,void 0,w,r);d.current=p}),e.useLayoutEffect(()=>{m.current?.removeAttribute("defer-hydration")},[]),c.suppressHydrationWarning=!0,e.createElement(t,{...c,ref:e.useCallback(p=>{m.current=p,typeof a=="function"?a(p):a!==null&&(a.current=p)},[a])})});return s.displayName=o??n.name,s};var ve=_(R(),1);var ye={onAbort:"abort",onAnimationEnd:"animationend",onAnimationIteration:"animationiteration",onAnimationStart:"animationstart",onAuxClick:"auxclick",onBeforeInput:"beforeinput",onBlur:"blur",onCanPlay:"canplay",onCanPlayThrough:"canplaythrough",onChange:"change",onClick:"click",onCompositionEnd:"compositionend",onCompositionStart:"compositionstart",onCompositionUpdate:"compositionupdate",onContextMenu:"contextmenu",onCopy:"copy",onCut:"cut",onDoubleClick:"doubleclick",onDrag:"drag",onDragEnd:"dragend",onDragEnter:"dragenter",onDragExit:"dragexit",onDragLeave:"dragleave",onDragOver:"dragover",onDragStart:"dragstart",onDrop:"drop",onDurationChange:"durationchange",onEmptied:"emptied",onEncrypted:"encrypted",onEnded:"ended",onError:"error",onEventHandler:"eventhandler",onFocus:"focus",onInput:"input",onInvalid:"invalid",onKeyDown:"keydown",onKeyPress:"keypress",onKeyUp:"keyup",onLoad:"load",onLoadStart:"loadstart",onLoadedData:"loadeddata",onLoadedMetadata:"loadedmetadata",onMouseDown:"mousedown",onMouseEnter:"mouseenter",onMouseLeave:"mouseleave",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPaste:"paste",onPause:"pause",onPlay:"play",onPlaying:"playing",onPointerCancel:"pointercancel",onPointerDown:"pointerdown",onPointerEnter:"pointerenter",onPointerLeave:"pointerleave",onPointerMove:"pointermove",onPointerOut:"pointerout",onPointerOver:"pointerover",onPointerUp:"pointerup",onProgress:"progress",onRateChange:"ratechange",onReset:"reset",onResize:"resize",onScroll:"scroll",onSeeked:"seeked",onSeeking:"seeking",onSelect:"select",onStalled:"stalled",onSubmit:"submit",onSuspend:"suspend",onTimeUpdate:"timeupdate",onTouchCancel:"touchcancel",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchStart:"touchstart",onTransitionEnd:"transitionend",onVolumeChange:"volumechange",onWaiting:"waiting",onWheel:"wheel"};function Et(e,t,n=[]){return K({elementClass:t,events:{...ye,...n.reduce((r,o)=>({...r,["on"+Ee(String(o))]:o}),{})},react:ve.default,tagName:e})}var Se=_(R(),1);function pt(...e){return(0,Se.forwardRef)(e[0])}var Oe=_(R(),1);var D=_(R(),1);function W(){let e=(0,D.useRef)("CONSTRUCTED");return(0,D.useEffect)(()=>(e.current="MOUNTED",()=>{e.current="UNMOUNTED"}),[]),e}function lt(e){let t=W(),n=(0,Oe.useReducer)(()=>({}),{});return()=>{switch(t.current){case"CONSTRUCTED":case"UNMOUNTED":break;case"MOUNTED":n[1](),e&&e();break}}}var L=class e{bottom;height;left;right;top;width;x;y;constructor(t,n,r,o){this.bottom=0,this.height=o??0,this.left=0,this.right=0,this.top=0,this.width=r??0,this.x=t??0,this.y=n??0}fromRect(t){return new e(t?.x,t?.y,t?.width,t?.height)}toJSON(){return{bottom:this.bottom,height:this.height,left:this.left,right:this.right,top:this.top,width:this.width,x:this.x,y:this.y}}};var he=new Map,dn={get:Te(he),set:_e(he)},dt=new Map,mn=j(dt),mt=new Map,Tn=j(mt);var P=_(R(),1);function Tt(e,t=[]){let[n,r]=(0,P.useState)(new L);return(0,P.useEffect)(()=>{if(e instanceof Element){r(e.getBoundingClientRect());return}e?.current instanceof Element&&r(e.current.getBoundingClientRect())},[e,...t]),n}var Ce=_(R(),1);function _t(e,t){return(0,Ce.useRef)(A()?document.createElement(e,t):{current:{}})}var ge=_(R(),1);function Rt(e,t,n,r=[]){(0,ge.useEffect)(()=>{if(e instanceof Element)return e.addEventListener(t,n),()=>e.removeEventListener(t,n);if(e?.current instanceof Element)return e.current.addEventListener(t,n),()=>e.current?.removeEventListener(t,n)},[e,t,n,...r])}var S=_(R(),1);function At(e,t,n=[]){let r=(0,S.useRef)(void 0),[o,i]=(0,S.useState)([]),s=(...c)=>{let T=G(c[0])?c[0][0]instanceof Element?c[0]:[]:c[0]instanceof Element?c:[];if(T.length>0)return o.filter(l=>T.includes(l.target));let p=G(c[0])?c[0][0]?.current instanceof Element?c[0]:[]:c[0]?.current instanceof Element?c:[];return p.length>0?o.filter(l=>p.some(w=>w.current===l.target)):o},f=(...c)=>s(...c).some(T=>T.isIntersecting),a=(...c)=>s(...c).every(T=>T.isIntersecting),d=(...c)=>f(...c),m=c=>{i(c)};return(0,S.useEffect)(()=>{r.current=new IntersectionObserver(m,t);for(let c of e){if(c instanceof Element){r.current.observe(c);continue}c?.current instanceof Element&&r.current.observe(c.current)}return()=>r.current?.disconnect()},[...e,t?.root,t?.rootMargin,t?.threshold,...n]),{entries:o,observer:r,areSomeIntersecting:f,isEveryIntersecting:a,isIntersecting:d}}var Ne=_(R(),1);function $(e,t,n=[]){(0,Ne.useEffect)(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t,...n])}var h=_(R(),1);function yt(e=[]){let[t,n]=(0,h.useState)(A()?window.innerHeight:0),[r,o]=(0,h.useState)(A()?window.innerWidth:0),[i,s]=(0,h.useState)(A()?window.outerHeight:0),[f,a]=(0,h.useState)(A()?window.outerWidth:0);return $("resize",()=>{n(window.innerHeight),o(window.innerWidth),s(window.outerHeight),a(window.outerWidth)},e),{innerHeight:t,innerWidth:r,outerHeight:i,outerWidth:f}}return be(vt);})();
1
+ "use strict";var AracnaReact=(()=>{var we=Object.create;var C=Object.defineProperty;var Ie=Object.getOwnPropertyDescriptor;var Ue=Object.getOwnPropertyNames;var Me=Object.getPrototypeOf,xe=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),je=(e,t)=>{for(var n in t)C(e,n,{get:t[n],enumerable:!0})},Y=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ue(t))!xe.call(e,o)&&o!==n&&C(e,o,{get:()=>t[o],enumerable:!(r=Ie(t,o))||r.enumerable});return e};var _=(e,t,n)=>(n=e!=null?we(Me(e)):{},Y(t||!e||!e.__esModule?C(n,"default",{value:e,enumerable:!0}):n,e)),Fe=e=>Y(C({},"__esModule",{value:!0}),e);var ie=I(u=>{"use strict";var M=Symbol.for("react.transitional.element"),Be=Symbol.for("react.portal"),He=Symbol.for("react.fragment"),ke=Symbol.for("react.strict_mode"),Ge=Symbol.for("react.profiler"),Ke=Symbol.for("react.consumer"),We=Symbol.for("react.context"),ze=Symbol.for("react.forward_ref"),$e=Symbol.for("react.suspense"),Ye=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),V=Symbol.iterator;function Ve(e){return e===null||typeof e!="object"?null:(e=V&&e[V]||e["@@iterator"],typeof e=="function"?e:null)}var ee={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},te=Object.assign,ne={};function O(e,t,n){this.props=e,this.context=t,this.refs=ne,this.updater=n||ee}O.prototype.isReactComponent={};O.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};O.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function re(){}re.prototype=O.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=ne,this.updater=n||ee}var j=x.prototype=new re;j.constructor=x;te(j,O.prototype);j.isPureReactComponent=!0;var J=Array.isArray,E={H:null,A:null,T:null,S:null,V:null},oe=Object.prototype.hasOwnProperty;function F(e,t,n,r,o,i){return n=i.ref,{$$typeof:M,type:e,key:t,ref:n!==void 0?n:null,props:i}}function Je(e,t){return F(e.type,t,void 0,void 0,void 0,e.props)}function B(e){return typeof e=="object"&&e!==null&&e.$$typeof===M}function Xe(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var X=/\/+/g;function U(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Xe(""+e.key):t.toString(36)}function q(){}function qe(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(q,q):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function A(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case M:case Be:s=!0;break;case Z:return s=e._init,A(s(e._payload),t,n,r,o)}}if(s)return o=o(e),s=r===""?"."+U(e,0):r,J(o)?(n="",s!=null&&(n=s.replace(X,"$&/")+"/"),A(o,t,n,"",function(d){return d})):o!=null&&(B(o)&&(o=Je(o,n+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(X,"$&/")+"/")+s)),t.push(o)),1;s=0;var f=r===""?".":r+":";if(J(e))for(var a=0;a<e.length;a++)r=e[a],i=f+U(r,a),s+=A(r,t,n,i,o);else if(a=Ve(e),typeof a=="function")for(e=a.call(e),a=0;!(r=e.next()).done;)r=r.value,i=f+U(r,a++),s+=A(r,t,n,i,o);else if(i==="object"){if(typeof e.then=="function")return A(qe(e),t,n,r,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function b(e,t,n){if(e==null)return e;var r=[],o=0;return A(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Qe(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Q=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Ze(){}u.Children={map:b,forEach:function(e,t,n){b(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return b(e,function(){t++}),t},toArray:function(e){return b(e,function(t){return t})||[]},only:function(e){if(!B(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};u.Component=O;u.Fragment=He;u.Profiler=Ge;u.PureComponent=x;u.StrictMode=ke;u.Suspense=$e;u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E;u.__COMPILER_RUNTIME={__proto__:null,c:function(e){return E.H.useMemoCache(e)}};u.cache=function(e){return function(){return e.apply(null,arguments)}};u.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=te({},e.props),o=e.key,i=void 0;if(t!=null)for(s in t.ref!==void 0&&(i=void 0),t.key!==void 0&&(o=""+t.key),t)!oe.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(r[s]=t[s]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var f=Array(s),a=0;a<s;a++)f[a]=arguments[a+2];r.children=f}return F(e.type,o,void 0,void 0,i,r)};u.createContext=function(e){return e={$$typeof:We,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Ke,_context:e},e};u.createElement=function(e,t,n){var r,o={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)oe.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var f=Array(s),a=0;a<s;a++)f[a]=arguments[a+2];o.children=f}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return F(e,i,void 0,void 0,null,o)};u.createRef=function(){return{current:null}};u.forwardRef=function(e){return{$$typeof:ze,render:e}};u.isValidElement=B;u.lazy=function(e){return{$$typeof:Z,_payload:{_status:-1,_result:e},_init:Qe}};u.memo=function(e,t){return{$$typeof:Ye,type:e,compare:t===void 0?null:t}};u.startTransition=function(e){var t=E.T,n={};E.T=n;try{var r=e(),o=E.S;o!==null&&o(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Ze,Q)}catch(i){Q(i)}finally{E.T=t}};u.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()};u.use=function(e){return E.H.use(e)};u.useActionState=function(e,t,n){return E.H.useActionState(e,t,n)};u.useCallback=function(e,t){return E.H.useCallback(e,t)};u.useContext=function(e){return E.H.useContext(e)};u.useDebugValue=function(){};u.useDeferredValue=function(e,t){return E.H.useDeferredValue(e,t)};u.useEffect=function(e,t,n){var r=E.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)};u.useId=function(){return E.H.useId()};u.useImperativeHandle=function(e,t,n){return E.H.useImperativeHandle(e,t,n)};u.useInsertionEffect=function(e,t){return E.H.useInsertionEffect(e,t)};u.useLayoutEffect=function(e,t){return E.H.useLayoutEffect(e,t)};u.useMemo=function(e,t){return E.H.useMemo(e,t)};u.useOptimistic=function(e,t){return E.H.useOptimistic(e,t)};u.useReducer=function(e,t,n){return E.H.useReducer(e,t,n)};u.useRef=function(e){return E.H.useRef(e)};u.useState=function(e){return E.H.useState(e)};u.useSyncExternalStore=function(e,t,n){return E.H.useSyncExternalStore(e,t,n)};u.useTransition=function(){return E.H.useTransition()};u.version="19.1.1"});var y=I((wt,se)=>{"use strict";se.exports=ie()});var Re=I(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.parse=Et;N.serialize=lt;var it=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,st=/^[\u0021-\u003A\u003C-\u007E]*$/,ut=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,at=/^[\u0020-\u003A\u003D-\u007E]*$/,ct=Object.prototype.toString,ft=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function Et(e,t){let n=new ft,r=e.length;if(r<2)return n;let o=t?.decode||pt,i=0;do{let s=e.indexOf("=",i);if(s===-1)break;let f=e.indexOf(";",i),a=f===-1?r:f;if(s>a){i=e.lastIndexOf(";",s-1)+1;continue}let d=_e(e,i,s),m=ye(e,s,d),c=e.slice(d,m);if(n[c]===void 0){let T=_e(e,s+1,a),l=ye(e,a,T),p=o(e.slice(T,l));n[c]=p}i=a+1}while(i<r);return n}function _e(e,t,n){do{let r=e.charCodeAt(t);if(r!==32&&r!==9)return t}while(++t<n);return n}function ye(e,t,n){for(;t>n;){let r=e.charCodeAt(--t);if(r!==32&&r!==9)return t+1}return n}function lt(e,t,n){let r=n?.encode||encodeURIComponent;if(!it.test(e))throw new TypeError(`argument name is invalid: ${e}`);let o=r(t);if(!st.test(o))throw new TypeError(`argument val is invalid: ${t}`);let i=e+"="+o;if(!n)return i;if(n.maxAge!==void 0){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);i+="; Max-Age="+n.maxAge}if(n.domain){if(!ut.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);i+="; Domain="+n.domain}if(n.path){if(!at.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);i+="; Path="+n.path}if(n.expires){if(!dt(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);i+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.partitioned&&(i+="; Partitioned"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():void 0){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return i}function pt(e){if(e.indexOf("%")===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function dt(e){return ct.call(e)==="[object Date]"}});var Pt={};je(Pt,{ComponentLifeCycle:()=>ae,Memo:()=>et,createElementComponent:()=>_t,forwardRef:()=>yt,useDOMRect:()=>vt,useDispatch:()=>Rt,useElementRef:()=>ht,useEventListener:()=>Ct,useIntersectionObserver:()=>bt,useLifeCycle:()=>z,useWindowEventListener:()=>$,useWindowSize:()=>Nt});var ue=_(y(),1);function et(e){return(0,ue.useMemo)(()=>e.children,e.deps??[])}var ae=(r=>(r.CONSTRUCTED="CONSTRUCTED",r.MOUNTED="MOUNTED",r.UNMOUNTED="UNMOUNTED",r))(ae||{});var ce=()=>({tc:{log:!0,onCatch:()=>{}},tcp:{log:!0,onCatch:()=>{}}});var tt="abcdefghijklmnopqrstuvwxyz";var H="0123456789",nt="ABCDEFGHIJKLMNOPQRSTUVWXYZ",xt=H+tt+nt,jt=H+"abcdef",Ft=H+"ABCDEF";var fe=/[^a-zA-Z0-9]/g;var g=class{static functions=ce()};function v(e,t=g.functions.tc.log){try{return e()}catch(n){return t&&console.error(n),g.functions.tc.onCatch(n,t),n}}function R(){return typeof window<"u"}function rt(e,t=!1){return e.charAt(0).toUpperCase()+(t?e.slice(1).toLowerCase():e.slice(1))}function Ee(e){let t,n;t="",n=!1;for(let r of e){if(fe.test(r)){n=!0;continue}if(n){t+=r.toUpperCase(),n=!1;continue}t+=r}return rt(t)}function le(e){let t;return ot(e)||(t=v(()=>BigInt(e),!1),t instanceof Error)?!1:t.toString()===e}function pe(e){return[String(!1),String(!0)].includes(e)}function ot(e){return Number.isSafeInteger(parseFloat(e))}function de(e){return!isNaN(Number(e))}function me(e){return!(v(()=>JSON.parse(e),!1)instanceof Error)}function k(e){return Array.isArray(e)}function Te(e){return e===null||typeof e!="object"?!1:Object.getPrototypeOf(e)===Object.prototype}var G=e=>({clear:()=>e.clear(),getItem:t=>{let n;return n=e.get(t),typeof n>"u"?null:n},key:t=>{let n;return n=[...e.keys()][t],typeof n>"u"?null:n},removeItem:t=>{e.delete(t)},setItem:(t,n)=>{e.set(t,n)},get length(){return e.size}}),nn=Object.freeze({decode:()=>"",encoding:"",fatal:!1,ignoreBOM:!1}),rn=Object.freeze({encode:()=>new Uint8Array,encodeInto:()=>({read:0,written:0}),encoding:""});var K=_(Re(),1);function Ae(e,t){let n,r;if(n=v(()=>(0,K.parse)(e,t)),n instanceof Error)return n;r={};for(let[o,i]of Object.entries(n))r[o]=mt(i);return r}function mt(e){if(!(typeof e>"u")){switch(!0){case le(e):return BigInt(e);case pe(e):return e===String(!0);case de(e):return Number(e);case me(e):return JSON.parse(e)}return e}}function Oe(e){switch(typeof e){case"bigint":return String(e);case"boolean":case"number":case"string":return String(e);case"function":case"symbol":return new Error(`The value cannot be a ${typeof e}.`);case"object":return Te(e)?JSON.stringify(e):"";case"undefined":return""}}var Tt=new Set(["children","localName","ref","style","className"]),Se=new WeakMap,ge=(e,t,n,r,o)=>{let i=o?.[t];i===void 0?(e[t]=n,n==null&&t in HTMLElement.prototype&&e.removeAttribute(t)):n!==r&&((s,f,a)=>{let d=Se.get(s);d===void 0&&Se.set(s,d=new Map);let m=d.get(f);a!==void 0?m===void 0?(d.set(f,m={handleEvent:a}),s.addEventListener(f,m)):m.handleEvent=a:m!==void 0&&(d.delete(f),s.removeEventListener(f,m))})(e,i,n)},W=({react:e,tagName:t,elementClass:n,events:r,displayName:o})=>{let i=new Set(Object.keys(r??{})),s=e.forwardRef(((f,a)=>{let d=e.useRef(new Map),m=e.useRef(null),c={},T={};for(let[l,p]of Object.entries(f))Tt.has(l)?c[l==="className"?"class":l]=p:i.has(l)||l in n.prototype?T[l]=p:c[l]=p;return e.useLayoutEffect((()=>{if(m.current===null)return;let l=new Map;for(let p in T)ge(m.current,p,f[p],d.current.get(p),r),d.current.delete(p),l.set(p,f[p]);for(let[p,w]of d.current)ge(m.current,p,void 0,w,r);d.current=l})),e.useLayoutEffect((()=>{m.current?.removeAttribute("defer-hydration")}),[]),c.suppressHydrationWarning=!0,e.createElement(t,{...c,ref:e.useCallback((l=>{m.current=l,typeof a=="function"?a(l):a!==null&&(a.current=l)}),[a])})}));return s.displayName=o??n.name,s};var he=_(y(),1);var ve={onAbort:"abort",onAnimationEnd:"animationend",onAnimationIteration:"animationiteration",onAnimationStart:"animationstart",onAuxClick:"auxclick",onBeforeInput:"beforeinput",onBlur:"blur",onCanPlay:"canplay",onCanPlayThrough:"canplaythrough",onChange:"change",onClick:"click",onCompositionEnd:"compositionend",onCompositionStart:"compositionstart",onCompositionUpdate:"compositionupdate",onContextMenu:"contextmenu",onCopy:"copy",onCut:"cut",onDoubleClick:"doubleclick",onDrag:"drag",onDragEnd:"dragend",onDragEnter:"dragenter",onDragExit:"dragexit",onDragLeave:"dragleave",onDragOver:"dragover",onDragStart:"dragstart",onDrop:"drop",onDurationChange:"durationchange",onEmptied:"emptied",onEncrypted:"encrypted",onEnded:"ended",onError:"error",onEventHandler:"eventhandler",onFocus:"focus",onInput:"input",onInvalid:"invalid",onKeyDown:"keydown",onKeyPress:"keypress",onKeyUp:"keyup",onLoad:"load",onLoadStart:"loadstart",onLoadedData:"loadeddata",onLoadedMetadata:"loadedmetadata",onMouseDown:"mousedown",onMouseEnter:"mouseenter",onMouseLeave:"mouseleave",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPaste:"paste",onPause:"pause",onPlay:"play",onPlaying:"playing",onPointerCancel:"pointercancel",onPointerDown:"pointerdown",onPointerEnter:"pointerenter",onPointerLeave:"pointerleave",onPointerMove:"pointermove",onPointerOut:"pointerout",onPointerOver:"pointerover",onPointerUp:"pointerup",onProgress:"progress",onRateChange:"ratechange",onReset:"reset",onResize:"resize",onScroll:"scroll",onSeeked:"seeked",onSeeking:"seeking",onSelect:"select",onStalled:"stalled",onSubmit:"submit",onSuspend:"suspend",onTimeUpdate:"timeupdate",onTouchCancel:"touchcancel",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchStart:"touchstart",onTransitionEnd:"transitionend",onVolumeChange:"volumechange",onWaiting:"waiting",onWheel:"wheel"};function _t(e,t,n=[]){return W({elementClass:t,events:{...ve,...n.reduce((r,o)=>({...r,["on"+Ee(String(o))]:o}),{})},react:he.default,tagName:e})}var Ce=_(y(),1);function yt(...e){return(0,Ce.forwardRef)(e[0])}var be=_(y(),1);var P=_(y(),1);function z(){let e=(0,P.useRef)("CONSTRUCTED");return(0,P.useEffect)(()=>(e.current="MOUNTED",()=>{e.current="UNMOUNTED"}),[]),e}function Rt(e){let t=z(),n=(0,be.useReducer)(()=>({}),{});return()=>{switch(t.current){case"CONSTRUCTED":case"UNMOUNTED":break;case"MOUNTED":n[1](),e&&e();break}}}var D=class e{bottom;height;left;right;top;width;x;y;constructor(t,n,r,o){this.bottom=0,this.height=o??0,this.left=0,this.right=0,this.top=0,this.width=r??0,this.x=t??0,this.y=n??0}fromRect(t){return new e(t?.x,t?.y,t?.width,t?.height)}toJSON(){return{bottom:this.bottom,height:this.height,left:this.left,right:this.right,top:this.top,width:this.width,x:this.x,y:this.y}}};var Ne=new Map,At=e=>()=>[...e.entries()].map(([t,n])=>[t,n].join("=")).join(";"),Ot=(e,t=Ae)=>n=>{let r;if(r=t(n),!(r instanceof Error))for(let o in r){let i;if(n.includes("Expires=Thu, 01 Jan 1970 00:00:00 GMT")){e.delete(o);continue}i=Oe(r[o]),!(i instanceof Error)&&e.set(o,i)}},hn={get:At(Ne),set:Ot(Ne)},St=new Map,Cn=G(St),gt=new Map,bn=G(gt);var L=_(y(),1);function vt(e,t=[]){let[n,r]=(0,L.useState)(new D);return(0,L.useEffect)(()=>{if(e instanceof Element){r(e.getBoundingClientRect());return}e?.current instanceof Element&&r(e.current.getBoundingClientRect())},[e,...t]),n}var Pe=_(y(),1);function ht(e,t){return(0,Pe.useRef)(R()?document.createElement(e,t):{current:{}})}var De=_(y(),1);function Ct(e,t,n,r=[]){(0,De.useEffect)(()=>{if(e instanceof Element)return e.addEventListener(t,n),()=>e.removeEventListener(t,n);if(e?.current instanceof Element)return e.current.addEventListener(t,n),()=>e.current?.removeEventListener(t,n)},[e,t,n,...r])}var S=_(y(),1);function bt(e,t,n=[]){let r=(0,S.useRef)(void 0),[o,i]=(0,S.useState)([]),s=(...c)=>{let T=k(c[0])?c[0][0]instanceof Element?c[0]:[]:c[0]instanceof Element?c:[];if(T.length>0)return o.filter(p=>T.includes(p.target));let l=k(c[0])?c[0][0]?.current instanceof Element?c[0]:[]:c[0]?.current instanceof Element?c:[];return l.length>0?o.filter(p=>l.some(w=>w.current===p.target)):o},f=(...c)=>s(...c).some(T=>T.isIntersecting),a=(...c)=>s(...c).every(T=>T.isIntersecting),d=(...c)=>f(...c),m=c=>{i(c)};return(0,S.useEffect)(()=>{r.current=new IntersectionObserver(m,t);for(let c of e){if(c instanceof Element){r.current.observe(c);continue}c?.current instanceof Element&&r.current.observe(c.current)}return()=>r.current?.disconnect()},[...e,t?.root,t?.rootMargin,t?.threshold,...n]),{entries:o,observer:r,areSomeIntersecting:f,isEveryIntersecting:a,isIntersecting:d}}var Le=_(y(),1);function $(e,t,n=[]){(0,Le.useEffect)(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t,...n])}var h=_(y(),1);function Nt(e=[]){let[t,n]=(0,h.useState)(R()?window.innerHeight:0),[r,o]=(0,h.useState)(R()?window.innerWidth:0),[i,s]=(0,h.useState)(R()?window.outerHeight:0),[f,a]=(0,h.useState)(R()?window.outerWidth:0);return $("resize",()=>{n(window.innerHeight),o(window.innerWidth),s(window.outerHeight),a(window.outerWidth)},e),{innerHeight:t,innerWidth:r,outerHeight:i,outerWidth:f}}return Fe(Pt);})();
2
2
  /*! Bundled license information:
3
3
 
4
4
  react/cjs/react.production.js:
package/package.json CHANGED
@@ -1,32 +1,5 @@
1
1
  {
2
2
  "author": "Dario Sechi",
3
- "devDependencies": {
4
- "@aracna/core": "^1.3.1",
5
- "@aracna/web": "^1.0.83",
6
- "@lit/react": "^1.0.7",
7
- "@microsoft/api-extractor": "^7.52.8",
8
- "@testing-library/react": "^16.3.0",
9
- "@types/react": "^19.1.7",
10
- "@types/react-dom": "^19.1.6",
11
- "@vitejs/plugin-react": "^4.5.2",
12
- "@vitest/coverage-v8": "^3.2.3",
13
- "@vitest/ui": "^3.2.3",
14
- "esbuild": "^0.25.5",
15
- "glob": "^11.0.2",
16
- "jsdom": "^26.1.0",
17
- "lit": "^3.3.0",
18
- "prettier": "^3.5.3",
19
- "react": "^19.1.0",
20
- "react-dom": "^19.1.0",
21
- "tslib": "^2.8.1",
22
- "typedoc": "^0.28.5",
23
- "typescript": "^5.8.3",
24
- "vitest": "^3.2.3"
25
- },
26
- "engines": {
27
- "node": ">=18",
28
- "pnpm": ">=10"
29
- },
30
3
  "exports": {
31
4
  "types": "./index.d.ts",
32
5
  "import": "./index.js",
@@ -37,22 +10,14 @@
37
10
  "module": "index.js",
38
11
  "name": "@aracna/react",
39
12
  "peerDependencies": {
40
- "@aracna/core": ">= 1.3.0",
13
+ "@aracna/core": ">= 1.4.0",
41
14
  "@aracna/web": ">= 1.0.0",
42
15
  "@lit/react": ">= 1.0.0",
43
16
  "react": ">= 19.0.0"
44
17
  },
45
- "publishConfig": {
46
- "directory": "dist"
47
- },
48
18
  "repository": "https://github.com/queelag/react",
49
19
  "sideEffects": false,
50
20
  "type": "module",
51
21
  "types": "index.d.ts",
52
- "version": "1.0.56",
53
- "scripts": {
54
- "build": "node esbuild.mjs && pnpm tsc && pnpm api-extractor run --local",
55
- "prepublish": "pnpm test && pnpm build && node scripts/pre-publish.mjs",
56
- "test": "vitest run"
57
- }
22
+ "version": "1.0.58"
58
23
  }