PageSourceSearch

https://atrule.com/_next/static/chunks/useRenderElement-e-LotxM9.js

js atrule.com collected 2026-10-02 00:46:39 UTC 4,322 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-C60lm6uB.js";import{i as t}from"./framework-D_rUT4EX.js";var n=e(t(),1),r={};function i(e,t){let i=n.useRef(r);return i.current===r&&(i.current=e(t)),i}function a(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var o=a(`https://base-ui.com/production-error`,`Base UI`);function s(){}var c=Object.freeze([]),l=Object.freeze({});function u(e,t,n,r){let a=i(f).current;return p(a,e,t,n,r)&&h(a,[e,t,n,r]),a.callback}function d(e){let t=i(f).current;return m(t,e)&&h(t,e),t.callback}function f(){return{callback:null,cleanup:null,refs:[]}}function p(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function m(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function h(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n;break;default:}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null;break;default:}}}}}}var g=19;function _(e){return g>=e}function v(e){if(!n.isValidElement(e))return null;let t=e,r=t.props;return(_(19)?r?.ref:t.ref)??null}function y(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function b(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function x(e,t){return typeof e==`function`?e(t):e}function S(e,t){return typeof e==`function`?e(t):e}var C={};function w(e,t,n,r,i){if(!n&&!r&&!i&&!e)return E(t);let a=E(e);return t&&(a=D(a,t)),n&&(a=D(a,n)),r&&(a=D(a,r)),i&&(a=D(a,i)),a}function T(e){if(e.length===0)return C;if(e.length===1)return E(e[0]);let t=E(e[0]);for(let n=1;n<e.length;n+=1)t=D(t,e[n]);return t}function E(e){return j(e)?{...M(e,C)}:O(e)}function D(e,t){return j(t)?M(t,e):k(e,t)}function O(e){let t={...e};for(let e in t){let n=t[e];A(e,n)&&(t[e]=P(n))}return t}function k(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=y(e.style,r);break;case`className`:e[n]=I(e.className,r);break;default:A(n,r)?e[n]=N(e[n],r):e[n]=r}}return e}function A(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function j(e){return typeof e==`function`}function M(e,t){return j(e)?e(t):e??C}function N(e,t){return t?e?(...n)=>{let r=n[0];if(L(r)){let i=r;F(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:P(t):e}function P(e){return e&&((...t)=>{let n=t[0];return L(n)&&F(n),e(...t)})}function F(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function I(e,t){return t?e?t+` `+e:t:e}function L(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function R(e,t,n={}){let r=t.render,i=z(t,n);return n.enabled===!1?null:H(e,r,i,n.state??l)}function z(e,t={}){let{className:n,style:r,render:i}=e,{state:a=l,ref:o,props:s,stateAttributesMapping:c,enabled:f=!0}=t,p=f?x(n,a):void 0,m=f?S(r,a):void 0,h=f?b(a,c):l,g=f&&s?B(s):void 0,_=f?y(h,g)??{}:l;return typeof document<`u`&&(f?Array.isArray(o)?_.ref=d([_.ref,v(i),...o]):_.ref=u(_.ref,v(i),o):u(null,null)),f?(p!==void 0&&(_.className=I(_.className,p)),m!==void 0&&(_.style=y(_.style,m)),_):l}function B(e){return Array.isArray(e)?T(e):w(void 0,e)}var V=Symbol.for(`react.lazy`);function H(e,t,r,i){if(t){if(typeof t==`function`)return t(r,i);let e=w(r,t.props);e.ref=r.ref;let a=t;return a?.$$typeof===V&&(a=n.Children.toArray(t)[0]),n.cloneElement(a,e)}if(e&&typeof e==`string`)return U(e,r);throw Error(o(8))}function U(e,t){return e===`button`?(0,n.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,n.createElement)(`img`,{alt:``,...t,key:t.key}):n.createElement(e,t)}export{_ as a,l as c,i as d,S as i,s as l,F as n,u as o,w as r,c as s,R as t,o as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.