@takumi-rs/helpers 0.18.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +30 -6
- package/dist/index.js +4 -4
- package/package.json +7 -2
package/dist/index.d.ts
CHANGED
|
@@ -129,6 +129,12 @@ export type FlexDirection = "row" | "column" | "row-reverse" | "column-reverse";
|
|
|
129
129
|
* This enum determines how flex items should wrap within the flex container.
|
|
130
130
|
*/
|
|
131
131
|
export type FlexWrap = "nowrap" | "wrap" | "wrap-reverse";
|
|
132
|
+
/**
|
|
133
|
+
* Represents a font family for text rendering.
|
|
134
|
+
* Use only the family name (no style suffixes like "Bold", "Italic", "Regular").
|
|
135
|
+
* Multi-word names are allowed (e.g., "Noto Sans") and should be provided as-is without quotes.
|
|
136
|
+
*/
|
|
137
|
+
export type FontFamily = "sans-serif" | "serif" | "monospace" | "cursive" | "fantasy" | string;
|
|
132
138
|
/**
|
|
133
139
|
* Represents font weight as a numeric value.
|
|
134
140
|
*
|
|
@@ -177,6 +183,10 @@ export type GridLine = {
|
|
|
177
183
|
export type GridTrackSize = {
|
|
178
184
|
"fr": number;
|
|
179
185
|
} | LengthUnit;
|
|
186
|
+
/**
|
|
187
|
+
* Defines how images should be scaled when rendered.
|
|
188
|
+
*/
|
|
189
|
+
export type ImageScalingAlgorithm = "auto" | "smooth" | "pixelated";
|
|
180
190
|
/**
|
|
181
191
|
* Defines how flex items are aligned along the main axis.
|
|
182
192
|
*
|
|
@@ -189,7 +199,7 @@ export type JustifyContent = "start" | "end" | "flex-start" | "flex-end" | "cent
|
|
|
189
199
|
*
|
|
190
200
|
* Similar to CSS object-fit property.
|
|
191
201
|
*/
|
|
192
|
-
export type ObjectFit = "
|
|
202
|
+
export type ObjectFit = "fill" | "contain" | "cover" | "scale-down" | "none";
|
|
193
203
|
/**
|
|
194
204
|
* Defines the positioning method for an element.
|
|
195
205
|
*
|
|
@@ -352,9 +362,13 @@ export type Style = {
|
|
|
352
362
|
*/
|
|
353
363
|
object_fit: ObjectFit;
|
|
354
364
|
/**
|
|
355
|
-
* Background
|
|
365
|
+
* Background gradient(s)
|
|
366
|
+
*/
|
|
367
|
+
background_image?: Gradient;
|
|
368
|
+
/**
|
|
369
|
+
* Background color for the element
|
|
356
370
|
*/
|
|
357
|
-
background_color?:
|
|
371
|
+
background_color?: Color;
|
|
358
372
|
/**
|
|
359
373
|
* Box shadow effect for the element
|
|
360
374
|
*/
|
|
@@ -406,7 +420,7 @@ export type Style = {
|
|
|
406
420
|
/**
|
|
407
421
|
* Font family name for text rendering
|
|
408
422
|
*/
|
|
409
|
-
font_family?:
|
|
423
|
+
font_family?: FontFamily;
|
|
410
424
|
/**
|
|
411
425
|
* Line height multiplier for text spacing
|
|
412
426
|
*/
|
|
@@ -432,6 +446,11 @@ export type Style = {
|
|
|
432
446
|
* Positive values increase spacing, negative values decrease spacing
|
|
433
447
|
*/
|
|
434
448
|
letter_spacing?: LengthUnit;
|
|
449
|
+
/**
|
|
450
|
+
* Controls how images are scaled when rendered
|
|
451
|
+
* This property determines the algorithm used for image scaling
|
|
452
|
+
*/
|
|
453
|
+
image_rendering?: ImageScalingAlgorithm;
|
|
435
454
|
};
|
|
436
455
|
/**
|
|
437
456
|
* Style properties that can be inherited by child elements.
|
|
@@ -459,7 +478,7 @@ export type InheritableStyle = {
|
|
|
459
478
|
/**
|
|
460
479
|
* Font family name for text rendering
|
|
461
480
|
*/
|
|
462
|
-
font_family?:
|
|
481
|
+
font_family?: FontFamily;
|
|
463
482
|
/**
|
|
464
483
|
* Line height multiplier for text spacing
|
|
465
484
|
*/
|
|
@@ -485,6 +504,11 @@ export type InheritableStyle = {
|
|
|
485
504
|
* Positive values increase spacing, negative values decrease spacing
|
|
486
505
|
*/
|
|
487
506
|
letter_spacing?: LengthUnit;
|
|
507
|
+
/**
|
|
508
|
+
* Controls how images are scaled when rendered
|
|
509
|
+
* This property determines the algorithm used for image scaling
|
|
510
|
+
*/
|
|
511
|
+
image_rendering?: ImageScalingAlgorithm;
|
|
488
512
|
};
|
|
489
513
|
/**
|
|
490
514
|
* Represents a value that can be a specific length, percentage, or automatic.
|
|
@@ -551,7 +575,7 @@ export declare function gradient(from: ColorInput, to: ColorInput, angle?: numbe
|
|
|
551
575
|
to: ColorInput;
|
|
552
576
|
angle: number;
|
|
553
577
|
};
|
|
554
|
-
export declare function rgba(r: number, g: number, b: number, a?: number):
|
|
578
|
+
export declare function rgba(r: number, g: number, b: number, a?: number): Color;
|
|
555
579
|
export declare function fromJsx(element: ReactNode): Promise<Node$1[]>;
|
|
556
580
|
|
|
557
581
|
export {
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
1
|
+
var zw=Object.create;var{getPrototypeOf:Ow,defineProperty:_x,getOwnPropertyNames:qw}=Object;var Iw=Object.prototype.hasOwnProperty;var jw=(w,T,D)=>{D=w!=null?zw(Ow(w)):{};let X=T||!w||!w.__esModule?_x(D,"default",{value:w,enumerable:!0}):D;for(let B of qw(w))if(!Iw.call(X,B))_x(X,B,{get:()=>w[B],enumerable:!0});return X};var Uw=(w,T)=>()=>(T||w((T={exports:{}}).exports,T),T.exports);var bx=Uw((Kw,n)=>{(function(){function w(x,$){Object.defineProperty(X.prototype,x,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",$[0],$[1])}})}function T(x){if(x===null||typeof x!=="object")return null;return x=Rx&&x[Rx]||x["@@iterator"],typeof x==="function"?x:null}function D(x,$){x=(x=x.constructor)&&(x.displayName||x.name)||"ReactClass";var G=x+"."+$;Jx[G]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",$,x),Jx[G]=!0)}function X(x,$,G){this.props=x,this.context=$,this.refs=wx,this.updater=G||Wx}function B(){}function E(x,$,G){this.props=x,this.context=$,this.refs=wx,this.updater=G||Wx}function H(x){return""+x}function Y(x){try{H(x);var $=!1}catch(f){$=!0}if($){$=console;var G=$.error,Z=typeof Symbol==="function"&&Symbol.toStringTag&&x[Symbol.toStringTag]||x.constructor.name||"Object";return G.call($,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z),H(x)}}function q(x){if(x==null)return null;if(typeof x==="function")return x.$$typeof===Mw?null:x.displayName||x.name||null;if(typeof x==="string")return x;switch(x){case a:return"Fragment";case Ex:return"Profiler";case fx:return"StrictMode";case Mx:return"Suspense";case Qw:return"SuspenseList";case Yw:return"Activity"}if(typeof x==="object")switch(typeof x.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),x.$$typeof){case Hx:return"Portal";case Qx:return(x.displayName||"Context")+".Provider";case e:return(x._context.displayName||"Context")+".Consumer";case Yx:var $=x.render;return x=x.displayName,x||(x=$.displayName||$.name||"",x=x!==""?"ForwardRef("+x+")":"ForwardRef"),x;case xx:return $=x.displayName||null,$!==null?$:q(x.type)||"Memo";case g:$=x._payload,x=x._init;try{return q(x($))}catch(G){}}return null}function U(x){if(x===a)return"<>";if(typeof x==="object"&&x!==null&&x.$$typeof===g)return"<...>";try{var $=q(x);return $?"<"+$+">":"<...>"}catch(G){return"<...>"}}function K(){var x=R.A;return x===null?null:x.getOwner()}function j(){return Error("react-stack-top-frame")}function _(x){if(d.call(x,"key")){var $=Object.getOwnPropertyDescriptor(x,"key").get;if($&&$.isReactWarning)return!1}return x.key!==void 0}function Gw(x,$){function G(){qx||(qx=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",$))}G.isReactWarning=!0,Object.defineProperty(x,"key",{get:G,configurable:!0})}function Xw(){var x=q(this.type);return jx[x]||(jx[x]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),x=this.props.ref,x!==void 0?x:null}function t(x,$,G,Z,f,J,Q,W){return G=J.ref,x={$$typeof:r,type:x,key:$,props:J,_owner:f},(G!==void 0?G:null)!==null?Object.defineProperty(x,"ref",{enumerable:!1,get:Xw}):Object.defineProperty(x,"ref",{enumerable:!1,value:null}),x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(x,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(x,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Q}),Object.defineProperty(x,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:W}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x}function Zw(x,$){return $=t(x.type,$,void 0,void 0,x._owner,x.props,x._debugStack,x._debugTask),x._store&&($._store.validated=x._store.validated),$}function L(x){return typeof x==="object"&&x!==null&&x.$$typeof===r}function Bw(x){var $={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(G){return $[G]})}function o(x,$){return typeof x==="object"&&x!==null&&x.key!=null?(Y(x.key),Bw(""+x.key)):$.toString(36)}function Bx(){}function Hw(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status==="string"?x.then(Bx,Bx):(x.status="pending",x.then(function($){x.status==="pending"&&(x.status="fulfilled",x.value=$)},function($){x.status==="pending"&&(x.status="rejected",x.reason=$)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function h(x,$,G,Z,f){var J=typeof x;if(J==="undefined"||J==="boolean")x=null;var Q=!1;if(x===null)Q=!0;else switch(J){case"bigint":case"string":case"number":Q=!0;break;case"object":switch(x.$$typeof){case r:case Hx:Q=!0;break;case g:return Q=x._init,h(Q(x._payload),$,G,Z,f)}}if(Q){Q=x,f=f(Q);var W=Z===""?"."+o(Q,0):Z;return zx(f)?(G="",W!=null&&(G=W.replace(Kx,"$&/")+"/"),h(f,$,G,"",function(N){return N})):f!=null&&(L(f)&&(f.key!=null&&(Q&&Q.key===f.key||Y(f.key)),G=Zw(f,G+(f.key==null||Q&&Q.key===f.key?"":(""+f.key).replace(Kx,"$&/")+"/")+W),Z!==""&&Q!=null&&L(Q)&&Q.key==null&&Q._store&&!Q._store.validated&&(G._store.validated=2),f=G),$.push(f)),1}if(Q=0,W=Z===""?".":Z+":",zx(x))for(var M=0;M<x.length;M++)Z=x[M],J=W+o(Z,M),Q+=h(Z,$,G,J,f);else if(M=T(x),typeof M==="function")for(M===x.entries&&(Ux||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ux=!0),x=M.call(x),M=0;!(Z=x.next()).done;)Z=Z.value,J=W+o(Z,M++),Q+=h(Z,$,G,J,f);else if(J==="object"){if(typeof x.then==="function")return h(Hw(x),$,G,Z,f);throw $=String(x),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return Q}function y(x,$,G){if(x==null)return x;var Z=[],f=0;return h(x,Z,"","",function(J){return $.call(G,J,f++)}),Z}function fw(x){if(x._status===-1){var $=x._result;$=$(),$.then(function(G){if(x._status===0||x._status===-1)x._status=1,x._result=G},function(G){if(x._status===0||x._status===-1)x._status=2,x._result=G}),x._status===-1&&(x._status=0,x._result=$)}if(x._status===1)return $=x._result,$===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
5
5
|
|
|
6
|
-
Did you accidentally put curly braces around the import
|
|
6
|
+
Did you accidentally put curly braces around the import?`,$),"default"in $||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
7
|
|
|
8
8
|
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,$),$.default;throw x._result}function z(){var x=R.H;return x===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
10
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
11
|
2. You might be breaking the Rules of Hooks
|
|
12
12
|
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),x}function Af(){}function k(x){if(s===null)try{var T=("require"+Math.random()).slice(0,7);s=(p&&p[T]).call(p,"timers").setImmediate}catch(D){s=function(G){Cx===!1&&(Cx=!0,typeof MessageChannel==="undefined"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var X=new MessageChannel;X.port1.onmessage=G,X.port2.postMessage(void 0)}}return s(x)}function P(x){return 1<x.length&&typeof AggregateError==="function"?new AggregateError(x):x[0]}function b(x,T){T!==i-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),i=T}function c(x,T,D){var G=E.actQueue;if(G!==null)if(G.length!==0)try{l(G),k(function(){return c(x,T,D)});return}catch(X){E.thrownErrors.push(X)}else E.actQueue=null;0<E.thrownErrors.length?(G=P(E.thrownErrors),E.thrownErrors.length=0,D(G)):T(x)}function l(x){if(!Tx){Tx=!0;var T=0;try{for(;T<x.length;T++){var D=x[T];do{E.didUsePromise=!1;var G=D(!1);if(G!==null){if(E.didUsePromise){x[T]=D,x.splice(0,T);return}D=G}else break}while(1)}x.length=0}catch(X){x.splice(0,T+1),E.thrownErrors.push(X)}finally{Tx=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=Symbol.for("react.transitional.element"),Zx=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),Hx=Symbol.for("react.strict_mode"),Bx=Symbol.for("react.profiler"),e=Symbol.for("react.consumer"),Ex=Symbol.for("react.context"),Qx=Symbol.for("react.forward_ref"),Yx=Symbol.for("react.suspense"),Xf=Symbol.for("react.suspense_list"),xx=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),Zf=Symbol.for("react.activity"),Jx=Symbol.iterator,Rx={},Mx={isMounted:function(){return!1},enqueueForceUpdate:function(x){$(x,"forceUpdate")},enqueueReplaceState:function(x){$(x,"replaceState")},enqueueSetState:function(x){$(x,"setState")}},zx=Object.assign,fx={};Object.freeze(fx),A.prototype.isReactComponent={},A.prototype.setState=function(x,T){if(typeof x!=="object"&&typeof x!=="function"&&x!=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,x,T,"setState")},A.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};var N={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},V;for(V in N)N.hasOwnProperty(V)&&f(V,N[V]);Z.prototype=A.prototype,N=R.prototype=new Z,N.constructor=R,zx(N,A.prototype),N.isPureReactComponent=!0;var Wx=Array.isArray,Hf=Symbol.for("react.client.reference"),E={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},d=Object.prototype.hasOwnProperty,Ox=console.createTask?console.createTask:function(){return null};N={react_stack_bottom_frame:function(x){return x()}};var Ix,jx,Nx={},Bf=N.react_stack_bottom_frame.bind(N,q)(),Ef=Ox(j(q)),qx=!1,Ux=/\/+/g,Kx=typeof reportError==="function"?reportError:function(x){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var T=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x==="object"&&x!==null&&typeof x.message==="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(T))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",x);return}console.error(x)},Cx=!1,s=null,i=0,t=!1,Tx=!1,Fx=typeof queueMicrotask==="function"?function(x){queueMicrotask(function(){return queueMicrotask(x)})}:k;N=Object.freeze({__proto__:null,c:function(x){return z().useMemoCache(x)}}),If.Children={map:y,forEach:function(x,T,D){y(x,function(){T.apply(this,arguments)},D)},count:function(x){var T=0;return y(x,function(){T++}),T},toArray:function(x){return y(x,function(T){return T})||[]},only:function(x){if(!_(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},If.Component=A,If.Fragment=a,If.Profiler=Bx,If.PureComponent=R,If.StrictMode=Hx,If.Suspense=Yx,If.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,If.__COMPILER_RUNTIME=N,If.act=function(x){var T=E.actQueue,D=i;i++;var G=E.actQueue=T!==null?T:[],X=!1;try{var Q=x()}catch(B){E.thrownErrors.push(B)}if(0<E.thrownErrors.length)throw b(T,D),x=P(E.thrownErrors),E.thrownErrors.length=0,x;if(Q!==null&&typeof Q==="object"&&typeof Q.then==="function"){var H=Q;return Fx(function(){X||t||(t=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(B,K){X=!0,H.then(function(m){if(b(T,D),D===0){try{l(G),k(function(){return c(m,B,K)})}catch(Yf){E.thrownErrors.push(Yf)}if(0<E.thrownErrors.length){var Qf=P(E.thrownErrors);E.thrownErrors.length=0,K(Qf)}}else B(m)},function(m){b(T,D),0<E.thrownErrors.length?(m=P(E.thrownErrors),E.thrownErrors.length=0,K(m)):K(m)})}}}var J=Q;if(b(T,D),D===0&&(l(G),G.length!==0&&Fx(function(){X||t||(t=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),E.actQueue=null),0<E.thrownErrors.length)throw x=P(E.thrownErrors),E.thrownErrors.length=0,x;return{then:function(B,K){X=!0,D===0?(E.actQueue=G,k(function(){return c(J,B,K)})):B(J)}}},If.cache=function(x){return function(){return x.apply(null,arguments)}},If.captureOwnerStack=function(){var x=E.getCurrentStack;return x===null?null:x()},If.cloneElement=function(x,T,D){if(x===null||x===void 0)throw Error("The argument must be a React element, but you passed "+x+".");var G=zx({},x.props),X=x.key,Q=x._owner;if(T!=null){var H;x:{if(d.call(T,"ref")&&(H=Object.getOwnPropertyDescriptor(T,"ref").get)&&H.isReactWarning){H=!1;break x}H=T.ref!==void 0}H&&(Q=U()),F(T)&&(O(T.key),X=""+T.key);for(J in T)!d.call(T,J)||J==="key"||J==="__self"||J==="__source"||J==="ref"&&T.ref===void 0||(G[J]=T[J])}var J=arguments.length-2;if(J===1)G.children=D;else if(1<J){H=Array(J);for(var B=0;B<J;B++)H[B]=arguments[B+2];G.children=H}G=n(x.type,X,void 0,void 0,Q,G,x._debugStack,x._debugTask);for(X=2;X<arguments.length;X++)Q=arguments[X],_(Q)&&Q._store&&(Q._store.validated=1);return G},If.createContext=function(x){return x={$$typeof:Ex,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:e,_context:x},x._currentRenderer=null,x._currentRenderer2=null,x},If.createElement=function(x,T,D){for(var G=2;G<arguments.length;G++){var X=arguments[G];_(X)&&X._store&&(X._store.validated=1)}if(G={},X=null,T!=null)for(B in jx||!("__self"in T)||"key"in T||(jx=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),F(T)&&(O(T.key),X=""+T.key),T)d.call(T,B)&&B!=="key"&&B!=="__self"&&B!=="__source"&&(G[B]=T[B]);var Q=arguments.length-2;if(Q===1)G.children=D;else if(1<Q){for(var H=Array(Q),J=0;J<Q;J++)H[J]=arguments[J+2];Object.freeze&&Object.freeze(H),G.children=H}if(x&&x.defaultProps)for(B in Q=x.defaultProps,Q)G[B]===void 0&&(G[B]=Q[B]);X&&ff(G,typeof x==="function"?x.displayName||x.name||"Unknown":x);var B=1e4>E.recentlyCreatedOwnerStacks++;return n(x,X,void 0,void 0,U(),G,B?Error("react-stack-top-frame"):Bf,B?Ox(j(x)):Ef)},If.createRef=function(){var x={current:null};return Object.seal(x),x},If.forwardRef=function(x){x!=null&&x.$$typeof===xx?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof x!=="function"?console.error("forwardRef requires a render function but was given %s.",x===null?"null":typeof x):x.length!==0&&x.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",x.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),x!=null&&x.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var T={$$typeof:Qx,render:x},D;return Object.defineProperty(T,"displayName",{enumerable:!1,configurable:!0,get:function(){return D},set:function(G){D=G,x.name||x.displayName||(Object.defineProperty(x,"name",{value:G}),x.displayName=G)}}),T},If.isValidElement=_,If.lazy=function(x){return{$$typeof:v,_payload:{_status:-1,_result:x},_init:Gf}},If.memo=function(x,T){x==null&&console.error("memo: The first argument must be a component. Instead received: %s",x===null?"null":typeof x),T={$$typeof:xx,type:x,compare:T===void 0?null:T};var D;return Object.defineProperty(T,"displayName",{enumerable:!1,configurable:!0,get:function(){return D},set:function(G){D=G,x.name||x.displayName||(Object.defineProperty(x,"name",{value:G}),x.displayName=G)}}),T},If.startTransition=function(x){var T=E.T,D={};E.T=D,D._updatedFibers=new Set;try{var G=x(),X=E.S;X!==null&&X(D,G),typeof G==="object"&&G!==null&&typeof G.then==="function"&&G.then(Af,Kx)}catch(Q){Kx(Q)}finally{T===null&&D._updatedFibers&&(x=D._updatedFibers.size,D._updatedFibers.clear(),10<x&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),E.T=T}},If.unstable_useCacheRefresh=function(){return z().useCacheRefresh()},If.use=function(x){return z().use(x)},If.useActionState=function(x,T,D){return z().useActionState(x,T,D)},If.useCallback=function(x,T){return z().useCallback(x,T)},If.useContext=function(x){var T=z();return x.$$typeof===e&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),T.useContext(x)},If.useDebugValue=function(x,T){return z().useDebugValue(x,T)},If.useDeferredValue=function(x,T){return z().useDeferredValue(x,T)},If.useEffect=function(x,T,D){x==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var G=z();if(typeof D==="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return G.useEffect(x,T)},If.useId=function(){return z().useId()},If.useImperativeHandle=function(x,T,D){return z().useImperativeHandle(x,T,D)},If.useInsertionEffect=function(x,T){return x==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),z().useInsertionEffect(x,T)},If.useLayoutEffect=function(x,T){return x==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),z().useLayoutEffect(x,T)},If.useMemo=function(x,T){return z().useMemo(x,T)},If.useOptimistic=function(x,T){return z().useOptimistic(x,T)},If.useReducer=function(x,T,D){return z().useReducer(x,T,D)},If.useRef=function(x){return z().useRef(x)},If.useState=function(x){return z().useState(x)},If.useSyncExternalStore=function(x,T,D){return z().useSyncExternalStore(x,T,D)},If.useTransition=function(){return z().useTransition()},If.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});function Lx(f){return{type:"container",...f}}function mx(f,w){return{...w,type:"text",text:f}}function wx(f,w){return{...w,type:"image",src:f}}function lf(f){return f}function hx(f){return{percentage:f}}function Px(f){return{vw:f}}function Sx(f){return{vh:f}}function W(f){return{em:f}}function gx(f){return{rem:f}}function yx(f){return{fr:f}}function rf(f,w,$=0){return{from:f,to:w,angle:$}}function kx(f,w,$,A=1){return[f,w,$,A]}var xf=Wf(bx(),1);import{renderToString as Vf}from"react-dom/server";function vx(f){return f.replace(/[A-Z]/g,(w)=>`_${w.toLowerCase()}`)}var jf=["-moz-","-webkit-","-o-","-ms-"];function Vx(f){if(typeof f!=="string")return f;if(Nf(f))return;if(f[0]==="-"){for(let w of jf)if(f.startsWith(w))return f.slice(w.length);throw new Error(`Unsupported prefix in value: ${f}`)}return f}function Nf(f){return f==="inherit"||f==="initial"||f==="revert"||f==="unset"}function qf(f){if(f.length===7)return Number.parseInt(f.slice(1),16);if(f.length===9){let w=Number.parseInt(f.slice(1),16);return[w>>24&255,w>>16&255,w>>8&255,(w&255)/255]}throw new Error(`Invalid hex color: ${f}`)}function Uf(f){let w=f.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);if(w){let[,$,A,Z]=w;return[Number($),Number(A),Number(Z)]}return null}function Kf(f){let w=f.match(/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([0-9]*\.?[0-9]+)\s*\)$/);if(w){let[,$,A,Z,R]=w,Y=Number($),O=Number(A),I=Number(Z),j=Number(R);if(Y<0||Y>255||O<0||O>255||I<0||I>255)return null;if(j<0||j>1)return null;return[Y,O,I,j]}return null}function h(f){if(f.startsWith("#"))return qf(f);if(f.startsWith("rgb(")){let w=Uf(f);if(w!==null)return w}if(f.startsWith("rgba(")){let w=Kf(f);if(w!==null)return w}throw new Error(`Invalid RGB color: ${f}`)}function M(f){if(typeof f==="number")return f;if(f==="auto"||f==="min-content"||f==="max-content")return f;let w=f.match(/^(-?[\d.]+)(.*)$/);if(!w)return 0;let[,$,A]=w;if(!$)return 0;let Z=Number.parseFloat($);switch(A){case"%":return hx(Z);case"rem":return gx(Z);case"em":return W(Z);case"vh":return Sx(Z);case"vw":return Px(Z);case"px":case"":return Z;default:return Z}}function C(f){if(typeof f==="number")return M(f);let $=f.trim().split(/\s+/).map(M);if($.length===1)return $[0];if($.length===2||$.length===4)return $;if($.length===3&&$[0]!==void 0&&$[1]!==void 0&&$[2]!==void 0)return[$[0],$[1],$[2],$[1]];throw new Error(`Invalid sides value: ${f}. Expected 1 to at most 4 values.`)}function dx(f){if(typeof f==="number")return f;if(typeof f==="string"&&f.includes("/")){let[w,$]=f.split("/").map(Number.parseFloat);if(w===void 0||$===void 0)throw new Error(`Invalid aspect ratio: ${f}. Expected format 'width/height'.`);if($===0)throw new Error(`Invalid aspect ratio: ${f}. Denominator cannot be zero.`);return w/$}if(typeof f==="string")return Number.parseFloat(f);throw new Error(`Invalid aspect ratio: ${f}`)}function sx(f){switch(f){case"block":case"flex":case"grid":case"none":return f;default:return console.warn(`Invalid display value: ${f}, fallback to 'block'.`),"block"}}function ix(f){switch(f){case"relative":case"absolute":return f;case"static":return"relative";default:return console.warn(`Invalid position value: ${f}, fallback to 'relative'.`),"relative"}}function tx(f){let w=f.trim().split(/\s+/);if(w.length<2)throw new Error(`Invalid box-shadow: ${f}`);let $=!1,A="black",Z=0;if(w[0]==="inset")$=!0,Z=1;let R=/^(#|rgb|rgba|hsl|hsla|[a-zA-Z]+)/,Y=[];for(let q=Z;q<w.length;q++){let F=w[q]??"";if(q===w.length-1&&R.test(F))A=F;else Y.push(F)}if(Y.length<2||Y.length>4)throw new Error(`Invalid box-shadow format: ${f}`);let[O="0px",I="0px",j="0px",U="0px"]=Y;try{return{color:h(A),offset_x:M(O)??0,offset_y:M(I)??0,blur_radius:M(j)??0,spread_radius:M(U)??0,inset:$}}catch{throw new Error(`Invalid box-shadow color: ${A}`)}}function Cf(f){return f.trim().split(/\s+/).map(($)=>{if($.endsWith("fr")){let A=Number.parseFloat($.slice(0,-2));if(Number.isNaN(A))return{fr:0};return{fr:A}}return M($)??0})}function px(f){switch(f){case"row":case"column":case"row dense":case"column dense":return f.replace(" ","-");default:return console.warn(`Invalid grid-auto-flow value: ${f}, fallback to 'row'.`),"row"}}function Ff(f){if(f.startsWith("span ")){let $=Number.parseInt(f.slice(5));if(Number.isNaN($))throw new Error(`Invalid span value: ${f}`);return{start:$,end:null}}if(f.includes("/")){let $=f.split("/");if($.length!==2)throw new Error(`Invalid grid line format: ${f}`);let[A="",Z=""]=$.map((O)=>O.trim()),R=A==="auto"?null:Number.parseInt(A)||A,Y=Z==="auto"?null:Number.parseInt(Z)||Z;return{start:R,end:Y}}if(f==="auto")return{start:null,end:null};let w=Number.parseInt(f);if(Number.isNaN(w))return{start:f,end:null};return{start:w,end:null}}function ox(f){let w=f.match(/repeat\(([^,]+),\s*(.+)\)/);if(w){let $=_f(w);if(!$)throw new Error(`Invalid repeat function: ${f}`);return $}return Lf(f)}function _f(f){let[,w,$]=f;if(!w||!$)return;let A;if(w==="auto-fill")A="auto-fill";else if(w==="auto-fit")A="auto-fit";else{let R=Number.parseInt(w);if(Number.isNaN(R))return;A=R}let Z=$.trim().split(/\s+/).map((R)=>{if(R.endsWith("fr")){let Y=Number.parseFloat(R.slice(0,-2));return Number.isNaN(Y)?0:{fr:Y}}return M(R)??0});return[{repeat:[A,Z]}]}function Lf(f){return f.trim().split(/\s+/).map(($)=>{if($.endsWith("fr")){let A=Number.parseFloat($.slice(0,-2));return{single:Number.isNaN(A)?0:{fr:A}}}return{single:M($)??0}})}function nx(f){if(typeof f==="number")return Math.max(1,Math.min(1000,f));if(typeof f==="string")switch(f){case"normal":return 400;case"bold":return 700;case"lighter":return 300;case"bolder":return 600;default:{let w=Number.parseInt(f);if(!Number.isNaN(w))return Math.max(1,Math.min(1000,w))}}return console.warn(`Invalid font-weight value: ${f}, fallback to 400.`),400}function $x(f){if(typeof f==="string")return Cf(f);if(Array.isArray(f))return f;return typeof f==="number"?[f]:[yx(1)]}function Dx(f){if(typeof f==="string")return Ff(f);if(typeof f==="number")return{start:f,end:null};return f}function ux(f){if(typeof f==="string")return ox(f);if(Array.isArray(f))return f;return typeof f==="number"?[{single:f}]:[{single:0}]}function cx(f){if(typeof f==="string")return ox(f);if(Array.isArray(f))return f;return typeof f==="number"?[{single:f}]:[{single:0}]}function lx(f){if(f==="none")return 0;return Number(f)}var S=Symbol("skip-parsing"),mf={display:sx,position:ix,width:M,height:M,maxWidth:M,maxHeight:M,minWidth:M,minHeight:M,aspectRatio:dx,padding:C,margin:C,flexDirection:S,flexWrap:S,justifyContent:(f)=>f,alignContent:(f)=>f,justifySelf:(f)=>f,alignItems:(f)=>f,alignSelf:(f)=>f,justifyItems:(f)=>f,flexBasis:M,gap:M,flexGrow:(f)=>Number(f),flexShrink:(f)=>Number(f),borderWidth:C,backgroundColor:h,boxShadow:tx,objectFit:S,gridAutoColumns:$x,gridAutoRows:$x,gridAutoFlow:px,gridColumn:Dx,gridRow:Dx,gridTemplateColumns:ux,gridTemplateRows:cx,textOverflow:(f)=>f,borderColor:h,color:h,fontSize:M,fontFamily:S,lineHeight:M,fontWeight:nx,lineClamp:lx,borderRadius:(f)=>C(f),textAlign(f){if(f==="match-parent")return void console.warn("Unsupported value for text-align found:",f);return f},letterSpacing:M,inset:(f)=>C(f)},hf=new Set(["top","right","bottom","left","marginTop","marginRight","marginBottom","marginLeft","paddingTop","paddingRight","paddingBottom","paddingLeft"]);function Pf(f,w,$){if(hf.has(w))return;let A=Vx($);if(A===void 0||A===null)return;let Z=mf[w];if(!Z){console.warn(`No parser found for CSS property: ${w}`);return}let R=vx(w);if(Z===S){f[R]=A;return}try{let Y=Z(A);if(Y!=null&&Y!==void 0)f[R]=Y}catch(Y){console.warn(`Failed to parse ${w}:`,Y)}}function Sf(f){let w=C(f);if(typeof w==="number")return{top:w,right:w,bottom:w,left:w};if(Array.isArray(w)){if(w.length===2)return{top:w[0],right:w[1],bottom:w[0],left:w[1]};if(w.length===4)return{top:w[0],right:w[1],bottom:w[2],left:w[3]}}return{top:0,right:0,bottom:0,left:0}}function gf(f,w,$,A,Z,R){let Y=f[$]!==void 0||f[A]!==void 0||f[Z]!==void 0||f[R]!==void 0;return f[w]!==void 0&&!Y}function yf(f,w){let $=f[w];if($!==void 0&&typeof $!=="object")return Sf($);return{top:0,right:0,bottom:0,left:0}}function o(f,w){let $=f[w];if($!==void 0&&typeof $!=="object")return M($);return 0}function Gx(f,w,$,A,Z,R){if(f[w]===void 0&&f[$]===void 0&&f[A]===void 0&&f[Z]===void 0&&f[R]===void 0)return;if(gf(f,w,$,A,Z,R)){let q=f[w];if(q!==void 0)return C(q)}let Y=yf(f,w),O=Y.top,I=Y.right,j=Y.bottom,U=Y.left;if(f[$]!==void 0)O=o(f,$);if(f[A]!==void 0)I=o(f,A);if(f[Z]!==void 0)j=o(f,Z);if(f[R]!==void 0)U=o(f,R);if(O===I&&I===j&&j===U)return O;return[O,I,j,U]}function kf(f){return Gx(f,"padding","paddingTop","paddingRight","paddingBottom","paddingLeft")}function bf(f){return Gx(f,"margin","marginTop","marginRight","marginBottom","marginLeft")}function vf(f){return Gx(f,"inset","top","right","bottom","left")}function Ax(f){if(!f)return;let w={};for(let[R,Y]of Object.entries(f))Pf(w,R,Y);let $=vf(f);if($!==void 0)w.inset=$;let A=kf(f);if(A!==void 0)w.padding=A;let Z=bf(f);if(Z!==void 0)w.margin=Z;return Object.keys(w).length>0?w:void 0}var rx={p:{margin:[W(1),0]},blockquote:{margin:[W(1),40]},center:{text_align:"center"},hr:{margin:[W(0.5),"auto"],border_width:1},h1:{font_size:W(2),margin:[W(0.67),0],font_weight:700},h2:{font_size:W(1.5),margin:[W(0.83),0],font_weight:700},h3:{font_size:W(1.17),margin:[W(1),0],font_weight:700},h4:{margin:[W(1.33),0],font_weight:700},h5:{font_size:W(0.83),margin:[W(1.67),0],font_weight:700},h6:{font_size:W(0.67),margin:[W(2.33),0],font_weight:700},strong:{font_weight:700},b:{font_weight:700},code:{font_family:"monospace"},kbd:{font_family:"monospace"},pre:{font_family:"monospace",margin:[W(1),0]},mark:{background_color:kx(255,255,0),color:0},big:{font_size:19.2},small:{font_size:13.333333333333334}};var df=Symbol.for("react.transitional.element");function sf(f){return typeof f==="object"&&f!==null&&"$$typeof"in f&&f.$$typeof===df}async function g(f){if(f===void 0||f===null)return[];if(f instanceof Promise)return g(await f);if(typeof f==="object"&&Symbol.iterator in f)return uf(f);if(sf(f)){let w=await tf(f);return Array.isArray(w)?w:w?[w]:[]}return[mx(String(f))]}async function tf(f){if(typeof f.type==="function"){let A=f.type;return g(A(f.props))}if(typeof f.type==="symbol"&&f.type===Symbol.for("react.fragment"))return await ex(f)||[];if(ax(f,"img"))return pf(f);if(ax(f,"svg"))return[of(f)];let w=await ex(f),$=nf(f.props);return[Lx({children:w,...rx[f.type],...Ax($)})]}function pf(f){if(!f.props.src)throw new Error("Image element must have a 'src' prop.");let w=f.props.style?.width??f.props.width,$=f.props.style?.height??f.props.height;return[wx(f.props.src,{...Ax(f.props.style),width:w?M(w):void 0,height:$?M($):void 0})]}function of(f){return wx(Vf(xf.cloneElement(f,{xmlns:"http://www.w3.org/2000/svg",...f.props},f.props.children)))}function nf(f){return typeof f==="object"&&f&&"style"in f?f.style:void 0}function ax(f,w){return f.type===w}async function ex(f){if(typeof f.props!=="object"||f.props===null||!("children"in f.props))return[];return await g(f.props.children)}async function uf(f){return(await Promise.all(Array.from(f).map(g))).flat()}export{Px as vw,Sx as vh,mx as text,lf as style,kx as rgba,gx as rem,hx as percentage,wx as image,rf as gradient,g as fromJsx,yx as fr,W as em,Lx as container};
|
|
13
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),x}function Ew(){}function V(x){if(s===null)try{var $=("require"+Math.random()).slice(0,7);s=(n&&n[$]).call(n,"timers").setImmediate}catch(G){s=function(Z){Cx===!1&&(Cx=!0,typeof MessageChannel==="undefined"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var f=new MessageChannel;f.port1.onmessage=Z,f.port2.postMessage(void 0)}}return s(x)}function m(x){return 1<x.length&&typeof AggregateError==="function"?new AggregateError(x):x[0]}function b(x,$){$!==i-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),i=$}function c(x,$,G){var Z=R.actQueue;if(Z!==null)if(Z.length!==0)try{l(Z),V(function(){return c(x,$,G)});return}catch(f){R.thrownErrors.push(f)}else R.actQueue=null;0<R.thrownErrors.length?(Z=m(R.thrownErrors),R.thrownErrors.length=0,G(Z)):$(x)}function l(x){if(!Tx){Tx=!0;var $=0;try{for(;$<x.length;$++){var G=x[$];do{R.didUsePromise=!1;var Z=G(!1);if(Z!==null){if(R.didUsePromise){x[$]=G,x.splice(0,$);return}G=Z}else break}while(1)}x.length=0}catch(f){x.splice(0,$+1),R.thrownErrors.push(f)}finally{Tx=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=Symbol.for("react.transitional.element"),Hx=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),fx=Symbol.for("react.strict_mode"),Ex=Symbol.for("react.profiler"),e=Symbol.for("react.consumer"),Qx=Symbol.for("react.context"),Yx=Symbol.for("react.forward_ref"),Mx=Symbol.for("react.suspense"),Qw=Symbol.for("react.suspense_list"),xx=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),Yw=Symbol.for("react.activity"),Rx=Symbol.iterator,Jx={},Wx={isMounted:function(){return!1},enqueueForceUpdate:function(x){D(x,"forceUpdate")},enqueueReplaceState:function(x){D(x,"replaceState")},enqueueSetState:function(x){D(x,"setState")}},Ax=Object.assign,wx={};Object.freeze(wx),X.prototype.isReactComponent={},X.prototype.setState=function(x,$){if(typeof x!=="object"&&typeof x!=="function"&&x!=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,x,$,"setState")},X.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};var I={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},v;for(v in I)I.hasOwnProperty(v)&&w(v,I[v]);B.prototype=X.prototype,I=E.prototype=new B,I.constructor=E,Ax(I,X.prototype),I.isPureReactComponent=!0;var zx=Array.isArray,Mw=Symbol.for("react.client.reference"),R={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},d=Object.prototype.hasOwnProperty,Ox=console.createTask?console.createTask:function(){return null};I={react_stack_bottom_frame:function(x){return x()}};var qx,Ix,jx={},Rw=I.react_stack_bottom_frame.bind(I,j)(),Jw=Ox(U(j)),Ux=!1,Kx=/\/+/g,Nx=typeof reportError==="function"?reportError:function(x){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x==="object"&&x!==null&&typeof x.message==="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent($))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",x);return}console.error(x)},Cx=!1,s=null,i=0,u=!1,Tx=!1,Fx=typeof queueMicrotask==="function"?function(x){queueMicrotask(function(){return queueMicrotask(x)})}:V;I=Object.freeze({__proto__:null,c:function(x){return z().useMemoCache(x)}}),Kw.Children={map:y,forEach:function(x,$,G){y(x,function(){$.apply(this,arguments)},G)},count:function(x){var $=0;return y(x,function(){$++}),$},toArray:function(x){return y(x,function($){return $})||[]},only:function(x){if(!L(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},Kw.Component=X,Kw.Fragment=a,Kw.Profiler=Ex,Kw.PureComponent=E,Kw.StrictMode=fx,Kw.Suspense=Mx,Kw.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Kw.__COMPILER_RUNTIME=I,Kw.act=function(x){var $=R.actQueue,G=i;i++;var Z=R.actQueue=$!==null?$:[],f=!1;try{var J=x()}catch(M){R.thrownErrors.push(M)}if(0<R.thrownErrors.length)throw b($,G),x=m(R.thrownErrors),R.thrownErrors.length=0,x;if(J!==null&&typeof J==="object"&&typeof J.then==="function"){var Q=J;return Fx(function(){f||u||(u=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(M,N){f=!0,Q.then(function(P){if(b($,G),G===0){try{l(Z),V(function(){return c(P,M,N)})}catch(Aw){R.thrownErrors.push(Aw)}if(0<R.thrownErrors.length){var Ww=m(R.thrownErrors);R.thrownErrors.length=0,N(Ww)}}else M(P)},function(P){b($,G),0<R.thrownErrors.length?(P=m(R.thrownErrors),R.thrownErrors.length=0,N(P)):N(P)})}}}var W=J;if(b($,G),G===0&&(l(Z),Z.length!==0&&Fx(function(){f||u||(u=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),R.actQueue=null),0<R.thrownErrors.length)throw x=m(R.thrownErrors),R.thrownErrors.length=0,x;return{then:function(M,N){f=!0,G===0?(R.actQueue=Z,V(function(){return c(W,M,N)})):M(W)}}},Kw.cache=function(x){return function(){return x.apply(null,arguments)}},Kw.captureOwnerStack=function(){var x=R.getCurrentStack;return x===null?null:x()},Kw.cloneElement=function(x,$,G){if(x===null||x===void 0)throw Error("The argument must be a React element, but you passed "+x+".");var Z=Ax({},x.props),f=x.key,J=x._owner;if($!=null){var Q;x:{if(d.call($,"ref")&&(Q=Object.getOwnPropertyDescriptor($,"ref").get)&&Q.isReactWarning){Q=!1;break x}Q=$.ref!==void 0}Q&&(J=K()),_($)&&(Y($.key),f=""+$.key);for(W in $)!d.call($,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&$.ref===void 0||(Z[W]=$[W])}var W=arguments.length-2;if(W===1)Z.children=G;else if(1<W){Q=Array(W);for(var M=0;M<W;M++)Q[M]=arguments[M+2];Z.children=Q}Z=t(x.type,f,void 0,void 0,J,Z,x._debugStack,x._debugTask);for(f=2;f<arguments.length;f++)J=arguments[f],L(J)&&J._store&&(J._store.validated=1);return Z},Kw.createContext=function(x){return x={$$typeof:Qx,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:e,_context:x},x._currentRenderer=null,x._currentRenderer2=null,x},Kw.createElement=function(x,$,G){for(var Z=2;Z<arguments.length;Z++){var f=arguments[Z];L(f)&&f._store&&(f._store.validated=1)}if(Z={},f=null,$!=null)for(M in Ix||!("__self"in $)||"key"in $||(Ix=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),_($)&&(Y($.key),f=""+$.key),$)d.call($,M)&&M!=="key"&&M!=="__self"&&M!=="__source"&&(Z[M]=$[M]);var J=arguments.length-2;if(J===1)Z.children=G;else if(1<J){for(var Q=Array(J),W=0;W<J;W++)Q[W]=arguments[W+2];Object.freeze&&Object.freeze(Q),Z.children=Q}if(x&&x.defaultProps)for(M in J=x.defaultProps,J)Z[M]===void 0&&(Z[M]=J[M]);f&&Gw(Z,typeof x==="function"?x.displayName||x.name||"Unknown":x);var M=1e4>R.recentlyCreatedOwnerStacks++;return t(x,f,void 0,void 0,K(),Z,M?Error("react-stack-top-frame"):Rw,M?Ox(U(x)):Jw)},Kw.createRef=function(){var x={current:null};return Object.seal(x),x},Kw.forwardRef=function(x){x!=null&&x.$$typeof===xx?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof x!=="function"?console.error("forwardRef requires a render function but was given %s.",x===null?"null":typeof x):x.length!==0&&x.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",x.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),x!=null&&x.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var $={$$typeof:Yx,render:x},G;return Object.defineProperty($,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(Z){G=Z,x.name||x.displayName||(Object.defineProperty(x,"name",{value:Z}),x.displayName=Z)}}),$},Kw.isValidElement=L,Kw.lazy=function(x){return{$$typeof:g,_payload:{_status:-1,_result:x},_init:fw}},Kw.memo=function(x,$){x==null&&console.error("memo: The first argument must be a component. Instead received: %s",x===null?"null":typeof x),$={$$typeof:xx,type:x,compare:$===void 0?null:$};var G;return Object.defineProperty($,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(Z){G=Z,x.name||x.displayName||(Object.defineProperty(x,"name",{value:Z}),x.displayName=Z)}}),$},Kw.startTransition=function(x){var $=R.T,G={};R.T=G,G._updatedFibers=new Set;try{var Z=x(),f=R.S;f!==null&&f(G,Z),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"&&Z.then(Ew,Nx)}catch(J){Nx(J)}finally{$===null&&G._updatedFibers&&(x=G._updatedFibers.size,G._updatedFibers.clear(),10<x&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),R.T=$}},Kw.unstable_useCacheRefresh=function(){return z().useCacheRefresh()},Kw.use=function(x){return z().use(x)},Kw.useActionState=function(x,$,G){return z().useActionState(x,$,G)},Kw.useCallback=function(x,$){return z().useCallback(x,$)},Kw.useContext=function(x){var $=z();return x.$$typeof===e&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),$.useContext(x)},Kw.useDebugValue=function(x,$){return z().useDebugValue(x,$)},Kw.useDeferredValue=function(x,$){return z().useDeferredValue(x,$)},Kw.useEffect=function(x,$,G){x==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var Z=z();if(typeof G==="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Z.useEffect(x,$)},Kw.useId=function(){return z().useId()},Kw.useImperativeHandle=function(x,$,G){return z().useImperativeHandle(x,$,G)},Kw.useInsertionEffect=function(x,$){return x==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),z().useInsertionEffect(x,$)},Kw.useLayoutEffect=function(x,$){return x==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),z().useLayoutEffect(x,$)},Kw.useMemo=function(x,$){return z().useMemo(x,$)},Kw.useOptimistic=function(x,$){return z().useOptimistic(x,$)},Kw.useReducer=function(x,$,G){return z().useReducer(x,$,G)},Kw.useRef=function(x){return z().useRef(x)},Kw.useState=function(x){return z().useState(x)},Kw.useSyncExternalStore=function(x,$,G){return z().useSyncExternalStore(x,$,G)},Kw.useTransition=function(){return z().useTransition()},Kw.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});function Lx(w){return{type:"container",...w}}function hx(w,T){return{...T,type:"text",text:w}}function $x(w,T){return{...T,type:"image",src:w}}function BT(w){return w}function Px(w){return{percentage:w}}function mx(w){return{vw:w}}function kx(w){return{vh:w}}function O(w){return{em:w}}function Sx(w){return{rem:w}}function yx(w){return{fr:w}}function HT(w,T,D=0){return{from:w,to:T,angle:D}}function Vx(w,T,D,X=1){return[w,T,D,X]}var Dw=jw(bx(),1);import{renderToString as ew}from"react-dom/server";function gx(w){return w.replace(/[A-Z]/g,(T)=>`_${T.toLowerCase()}`)}var Nw=["-moz-","-webkit-","-o-","-ms-"];function vx(w){if(typeof w!=="string")return w;if(Fw(w)||Cw(w))return;return w}function Cw(w){return Nw.some((T)=>w.startsWith(T))}function Fw(w){return w==="inherit"||w==="initial"||w==="revert"||w==="unset"}function _w(w){let T=Number.parseInt(w.slice(1),16);if(Number.isNaN(T))throw new Error(`Invalid hex color: ${w}`);if(w.length===4){let D=T>>8&15,X=T>>4&15,B=T&15;return D<<20|D<<16|X<<12|X<<8|B<<4|B}if(w.length===5){let D=T>>12&15,X=T>>8&15,B=T>>4&15,E=T&15;return[D<<4|D,X<<4|X,B<<4|B,E/15]}if(w.length===7)return T;if(w.length===9)return[T>>24&255,T>>16&255,T>>8&255,(T&255)/255];throw new Error(`Invalid hex color: ${w}`)}function Lw(w){let T=w.slice(4,-1).split(",").map((D)=>Number.parseInt(D.trim()).toString(16).padStart(2,"0"));if(T.length!==3)throw new Error(`Invalid rgb color: ${w}`);return Number.parseInt(T.join(""),16)}function hw(w){let T=w.slice(5,-1).split(",").map((X)=>Number.parseFloat(X.trim()));if(T.length!==4)throw new Error(`Invalid rgba color: ${w}`);let D=T;if(D[0]<0||D[0]>255||D[1]<0||D[1]>255||D[2]<0||D[2]>255||D[3]<0||D[3]>1)throw new Error(`Invalid rgba color: ${w}`);return D}function C(w){if(w.startsWith("#"))return _w(w);if(w.startsWith("rgb("))return Lw(w);if(w.startsWith("rgba("))return hw(w);if(w.toLowerCase()==="transparent")return[0,0,0,0];throw new Error(`Invalid color: ${w}`)}function dx(w){if(w==="none")return;let T=w.match(/^linear-gradient\((.*)\)$/i)?.[1];if(!T)throw new Error(`Invalid linear-gradient syntax: ${w}`);let D=T.trim(),X=sx(D,","),B=X[0]?.trim();if(!B)throw new Error(`linear-gradient requires at least one argument: ${w}`);let E=Pw(B),H=E!==void 0?ix(E):180,Y=E!==void 0?X.slice(1):X;if(Y.length<2)throw new Error(`linear-gradient requires at least two color stops: ${w}`);let q=Y.map(Sw);return{angle:H,stops:Vw(q)}}function sx(w,T){let D=[],X=0,B=0;for(let H=0;H<w.length;H++){let Y=w[H];if(Y==="(")X++;else if(Y===")")X=Math.max(0,X-1);if(X===0&&w.startsWith(T,H)){let q=w.slice(B,H).trim();if(q)D.push(q);B=H+T.length,H+=T.length-1}}let E=w.slice(B).trim();if(E)D.push(E);return D}function Pw(w){let T=w.trim();return mw(T)??kw(T)}function mw(w){let T=w.match(/^to\s+(top|bottom|left|right)(?:\s+(top|bottom|left|right))?$/i);if(!T)return;let D=(T[1]??"").toLowerCase(),X=(T[2]??"").toLowerCase(),B={top:0,right:90,bottom:180,left:270},E=B[D]??180;if(!X)return E;let H=B[X]??180,Y=new Set([E,H]);if(Y.has(0)&&Y.has(90))return 45;if(Y.has(90)&&Y.has(180))return 135;if(Y.has(180)&&Y.has(270))return 225;if(Y.has(270)&&Y.has(0))return 315;return ix((E+H)/2)}function kw(w){let T=w.match(/^(-?\d*\.?\d+)\s*(deg|rad|turn)?$/i);if(!T)return;let D=Number.parseFloat(T[1]??"0");switch(T[2]?T[2].toLowerCase():"deg"){case"deg":return D;case"rad":return D*180/Math.PI;case"turn":return D*360;default:return D}}function Sw(w){let T=sx(w.trim()," "),D=C(T[0]??w.trim()),X=T[1]?yw(T[1]):void 0;return{color:D,position:X}}function yw(w){let T=w.trim();if(T.endsWith("%"))return Number.parseFloat(T.slice(0,-1))/100;return Number.parseFloat(T)}function Vw(w){if(w.every((H)=>H.position===void 0))return bw(w);let T=[],D=w.length,X=w[0];if(!X)throw new Error("First stop must have a position defined");T.push({color:X.color,position:0});for(let H=1;H<D-1;H++){let Y=w[H];if(typeof Y?.position==="number")T.push({color:Y.color,position:gw(Y.position)})}let B=w[D-1];if(!B)throw new Error("Last stop must have a position defined");return T.push({color:B.color,position:1}),T.reduce((H,Y)=>{if(H.length===0||H[H.length-1]?.position!==Y.position)H.push(Y);return H},[]).sort((H,Y)=>H.position-Y.position)}function bw(w){let T=w.length;return w.map((D,X)=>({color:D.color,position:T===1?0:X/(T-1)}))}function gw(w){return Math.max(0,Math.min(1,w))}function ix(w){let T=w%360;if(T<0)T+=360;return T}function A(w){if(typeof w==="number")return w;if(w==="auto"||w==="min-content"||w==="max-content")return w;let T=w.match(/^(-?[\d.]+)(.*)$/);if(!T)return 0;let[,D,X]=T;if(!D)return 0;let B=Number.parseFloat(D);switch(X){case"%":return Px(B);case"rem":return Sx(B);case"em":return O(B);case"vh":return kx(B);case"vw":return mx(B);case"px":case"":return B;default:return B}}function F(w){if(typeof w==="number")return A(w);let D=w.trim().split(/\s+/).map(A);if(D.length===1)return D[0];if(D.length===2||D.length===4)return D;if(D.length===3&&D[0]!==void 0&&D[1]!==void 0&&D[2]!==void 0)return[D[0],D[1],D[2],D[1]];throw new Error(`Invalid sides value: ${w}. Expected 1 to at most 4 values.`)}function ux(w){if(typeof w==="number")return w;if(typeof w==="string"&&w.includes("/")){let[T,D]=w.split("/").map(Number.parseFloat);if(T===void 0||D===void 0)throw new Error(`Invalid aspect ratio: ${w}. Expected format 'width/height'.`);if(D===0)throw new Error(`Invalid aspect ratio: ${w}. Denominator cannot be zero.`);return T/D}if(typeof w==="string")return Number.parseFloat(w);throw new Error(`Invalid aspect ratio: ${w}`)}function nx(w){switch(w){case"block":case"flex":case"grid":case"none":return w;default:return console.warn(`Invalid display value: ${w}, fallback to 'block'.`),"block"}}function px(w){switch(w){case"relative":case"absolute":return w;case"static":return"relative";default:return console.warn(`Invalid position value: ${w}, fallback to 'relative'.`),"relative"}}function tx(w){let T=w.trim().split(/\s+/);if(T.length<2)throw new Error(`Invalid box-shadow: ${w}`);let D=!1,X="black",B=0;if(T[0]==="inset")D=!0,B=1;let E=/^(#|rgb|rgba|hsl|hsla|[a-zA-Z]+)/,H=[];for(let j=B;j<T.length;j++){let _=T[j]??"";if(j===T.length-1&&E.test(_))X=_;else H.push(_)}if(H.length<2||H.length>4)throw new Error(`Invalid box-shadow format: ${w}`);let[Y="0px",q="0px",U="0px",K="0px"]=H;try{return{color:C(X),offset_x:A(Y)??0,offset_y:A(q)??0,blur_radius:A(U)??0,spread_radius:A(K)??0,inset:D}}catch{throw new Error(`Invalid box-shadow color: ${X}`)}}function vw(w){return w.trim().split(/\s+/).map((D)=>{if(D.endsWith("fr")){let X=Number.parseFloat(D.slice(0,-2));if(Number.isNaN(X))return{fr:0};return{fr:X}}return A(D)??0})}function ox(w){switch(w){case"row":case"column":case"row dense":case"column dense":return w.replace(" ","-");default:return console.warn(`Invalid grid-auto-flow value: ${w}, fallback to 'row'.`),"row"}}function dw(w){if(w.startsWith("span ")){let D=Number.parseInt(w.slice(5));if(Number.isNaN(D))throw new Error(`Invalid span value: ${w}`);return{start:D,end:null}}if(w.includes("/")){let D=w.split("/");if(D.length!==2)throw new Error(`Invalid grid line format: ${w}`);let[X="",B=""]=D.map((Y)=>Y.trim()),E=X==="auto"?null:Number.parseInt(X)||X,H=B==="auto"?null:Number.parseInt(B)||B;return{start:E,end:H}}if(w==="auto")return{start:null,end:null};let T=Number.parseInt(w);if(Number.isNaN(T))return{start:w,end:null};return{start:T,end:null}}function cx(w){let T=w.match(/repeat\(([^,]+),\s*(.+)\)/);if(T){let D=sw(T);if(!D)throw new Error(`Invalid repeat function: ${w}`);return D}return iw(w)}function sw(w){let[,T,D]=w;if(!T||!D)return;let X;if(T==="auto-fill")X="auto-fill";else if(T==="auto-fit")X="auto-fit";else{let E=Number.parseInt(T);if(Number.isNaN(E))return;X=E}let B=D.trim().split(/\s+/).map((E)=>{if(E.endsWith("fr")){let H=Number.parseFloat(E.slice(0,-2));return Number.isNaN(H)?0:{fr:H}}return A(E)??0});return[{repeat:[X,B]}]}function iw(w){return w.trim().split(/\s+/).map((D)=>{if(D.endsWith("fr")){let X=Number.parseFloat(D.slice(0,-2));return{single:Number.isNaN(X)?0:{fr:X}}}return{single:A(D)??0}})}function lx(w){if(typeof w==="number")return Math.max(1,Math.min(1000,w));if(typeof w==="string")switch(w){case"normal":return 400;case"bold":return 700;case"lighter":return 300;case"bolder":return 600;default:{let T=Number.parseInt(w);if(!Number.isNaN(T))return Math.max(1,Math.min(1000,T))}}return console.warn(`Invalid font-weight value: ${w}, fallback to 400.`),400}function Dx(w){if(typeof w==="string")return vw(w);if(Array.isArray(w))return w;return typeof w==="number"?[w]:[yx(1)]}function Gx(w){if(typeof w==="string")return dw(w);if(typeof w==="number")return{start:w,end:null};return w}function rx(w){if(typeof w==="string")return cx(w);if(Array.isArray(w))return w;return typeof w==="number"?[{single:w}]:[{single:0}]}function ax(w){if(typeof w==="string")return cx(w);if(Array.isArray(w))return w;return typeof w==="number"?[{single:w}]:[{single:0}]}function ex(w){if(w==="none")return 0;return Number(w)}function xw(w){switch(w){case"auto":case"pixelated":return w;case"crisp-edges":return"pixelated";default:return console.warn(`Invalid image-rendering value: ${w}, fallback to 'auto'.`),"auto"}}var k=Symbol("skip-parsing"),uw={display:nx,position:px,width:A,height:A,maxWidth:A,maxHeight:A,minWidth:A,minHeight:A,aspectRatio:ux,padding:F,margin:F,flexDirection:k,flexWrap:k,justifyContent:(w)=>w,alignContent:(w)=>w,justifySelf:(w)=>w,alignItems:(w)=>w,alignSelf:(w)=>w,justifyItems:(w)=>w,flexBasis:A,gap:A,flexGrow:(w)=>Number(w),flexShrink:(w)=>Number(w),borderWidth:F,backgroundColor:C,backgroundImage:dx,boxShadow:tx,objectFit:k,imageRendering:xw,gridAutoColumns:Dx,gridAutoRows:Dx,gridAutoFlow:ox,gridColumn:Gx,gridRow:Gx,gridTemplateColumns:rx,gridTemplateRows:ax,textOverflow:(w)=>w,borderColor:C,color:C,fontSize:A,fontFamily:k,lineHeight:A,fontWeight:lx,lineClamp:ex,borderRadius:(w)=>F(w),textAlign(w){if(w==="match-parent")return void console.warn("Unsupported value for text-align found:",w);return w},letterSpacing:A,inset:(w)=>F(w)},nw=new Set(["top","right","bottom","left","marginTop","marginRight","marginBottom","marginLeft","paddingTop","paddingRight","paddingBottom","paddingLeft"]);function pw(w,T,D){if(nw.has(T))return;let X=vx(D);if(X===void 0||X===null)return;let B=uw[T];if(!B){console.warn(`No parser found for CSS property: ${T}`);return}let E=gx(T);if(B===k){w[E]=X;return}try{let H=B(X);if(H!=null&&H!==void 0)w[E]=H}catch(H){console.warn(`Failed to parse ${T}:`,H)}}function tw(w){let T=F(w);if(typeof T==="number")return{top:T,right:T,bottom:T,left:T};if(Array.isArray(T)){if(T.length===2)return{top:T[0],right:T[1],bottom:T[0],left:T[1]};if(T.length===4)return{top:T[0],right:T[1],bottom:T[2],left:T[3]}}return{top:0,right:0,bottom:0,left:0}}function ow(w,T,D,X,B,E){let H=w[D]!==void 0||w[X]!==void 0||w[B]!==void 0||w[E]!==void 0;return w[T]!==void 0&&!H}function cw(w,T){let D=w[T];if(D!==void 0&&typeof D!=="object")return tw(D);return{top:0,right:0,bottom:0,left:0}}function p(w,T){let D=w[T];if(D!==void 0&&typeof D!=="object")return A(D);return 0}function Xx(w,T,D,X,B,E){if(w[T]===void 0&&w[D]===void 0&&w[X]===void 0&&w[B]===void 0&&w[E]===void 0)return;if(ow(w,T,D,X,B,E)){let j=w[T];if(j!==void 0)return F(j)}let H=cw(w,T),Y=H.top,q=H.right,U=H.bottom,K=H.left;if(w[D]!==void 0)Y=p(w,D);if(w[X]!==void 0)q=p(w,X);if(w[B]!==void 0)U=p(w,B);if(w[E]!==void 0)K=p(w,E);if(Y===q&&q===U&&U===K)return Y;return[Y,q,U,K]}function lw(w){return Xx(w,"padding","paddingTop","paddingRight","paddingBottom","paddingLeft")}function rw(w){return Xx(w,"margin","marginTop","marginRight","marginBottom","marginLeft")}function aw(w){return Xx(w,"inset","top","right","bottom","left")}function Zx(w){if(!w)return;let T={};for(let[E,H]of Object.entries(w))pw(T,E,H);let D=aw(w);if(D!==void 0)T.inset=D;let X=lw(w);if(X!==void 0)T.padding=X;let B=rw(w);if(B!==void 0)T.margin=B;return Object.keys(T).length>0?T:void 0}var ww={p:{margin:[O(1),0]},blockquote:{margin:[O(1),40]},center:{text_align:"center"},hr:{margin:[O(0.5),"auto"],border_width:1},h1:{font_size:O(2),margin:[O(0.67),0],font_weight:700},h2:{font_size:O(1.5),margin:[O(0.83),0],font_weight:700},h3:{font_size:O(1.17),margin:[O(1),0],font_weight:700},h4:{margin:[O(1.33),0],font_weight:700},h5:{font_size:O(0.83),margin:[O(1.67),0],font_weight:700},h6:{font_size:O(0.67),margin:[O(2.33),0],font_weight:700},strong:{font_weight:700},b:{font_weight:700},code:{font_family:"monospace"},kbd:{font_family:"monospace"},pre:{font_family:"monospace",margin:[O(1),0]},mark:{background_color:Vx(255,255,0),color:0},big:{font_size:19.2},small:{font_size:13.333333333333334}};var xT=Symbol.for("react.transitional.element");function wT(w){return typeof w==="object"&&w!==null&&"$$typeof"in w&&w.$$typeof===xT}async function S(w){if(w===void 0||w===null)return[];if(w instanceof Promise)return S(await w);if(typeof w==="object"&&Symbol.iterator in w)return XT(w);if(wT(w)){let T=await TT(w);return Array.isArray(T)?T:T?[T]:[]}return[hx(String(w))]}async function TT(w){if(typeof w.type==="function"){let X=w.type;return S(X(w.props))}if(typeof w.type==="symbol"&&w.type===Symbol.for("react.fragment"))return await $w(w)||[];if(Tw(w,"img"))return $T(w);if(Tw(w,"svg"))return[DT(w)];let T=await $w(w),D=GT(w.props);return[Lx({children:T,...ww[w.type],...Zx(D)})]}function $T(w){if(!w.props.src)throw new Error("Image element must have a 'src' prop.");let T=w.props.style?.width??w.props.width,D=w.props.style?.height??w.props.height;return[$x(w.props.src,{...Zx(w.props.style),width:T?A(T):void 0,height:D?A(D):void 0})]}function DT(w){return $x(ew(Dw.cloneElement(w,{xmlns:"http://www.w3.org/2000/svg",...w.props},w.props.children)))}function GT(w){return typeof w==="object"&&w&&"style"in w?w.style:void 0}function Tw(w,T){return w.type===T}async function $w(w){if(typeof w.props!=="object"||w.props===null||!("children"in w.props))return[];return await S(w.props.children)}async function XT(w){return(await Promise.all(Array.from(w).map(S))).flat()}export{mx as vw,kx as vh,hx as text,BT as style,Vx as rgba,Sx as rem,Px as percentage,$x as image,HT as gradient,S as fromJsx,yx as fr,O as em,Lx as container};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takumi-rs/helpers",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "me@kane.tw",
|
|
6
6
|
"name": "Kane Wang",
|
|
@@ -19,7 +19,12 @@
|
|
|
19
19
|
"typescript": "catalog:"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"react-dom": "^19.
|
|
22
|
+
"react-dom": "^19.0.0"
|
|
23
|
+
},
|
|
24
|
+
"peerDependenciesMeta": {
|
|
25
|
+
"react-dom": {
|
|
26
|
+
"optional": true
|
|
27
|
+
}
|
|
23
28
|
},
|
|
24
29
|
"exports": {
|
|
25
30
|
"types": "./dist/index.d.ts",
|