vendor: 4,275 bytes, lines 1-17
1function Hj(e,t){for(var i=0;i<t.length;i++){const r=t[i];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const u=Object.getOwnPropertyDescriptor(r,o);u&&Object.defineProperty(e,o,u.get?u:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function i(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(o){if(o.ep)return;o.ep=!0;const u=i(o);fetch(o.href,u)}})();function $j(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vd={exports:{}},co={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Ex;function Zj(){if(Ex)return co;Ex=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(r,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var h in o)h!=="key"&&(u[h]=o[h])}else u=o;return o=u.ref,{$$typeof:e,type:r,key:c,ref:o!==void 0?o:null,props:u}}return co.Fragment=t,co.jsx=i,co.jsxs=i,co}var Cx;function Pj(){return Cx||(Cx=1,vd.exports=Zj()),vd.exports}var d=Pj(),bd={exports:{}},fo={},Sd={exports:{}},wd={};/** 10 * @license React 11 * scheduler.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Ax;function qj(){return Ax||(Ax=1,(function(e){function t(H,K){var te=H.length;H.push(K);e:for(;0<te;){var ne=te-1>>>1,ae=H[ne];if(0<o(ae,K))H[ne]=K,H[te]=ae,te=ne;else break e}}function i(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var K=H[0],te=H.pop();if(te!==K){H[0]=te;e:for(var ne=0,ae=H.length,A=ae>>>1;ne<A;){var q=2*(ne+1)-1,ie=H[q],ue=q+1,ye=H[ue];if(0>o(ie,te))ue<ae&&0>o(ye,ie)?(H[ne]=ye,H[ue]=te,ne=ue):(H[ne]=ie,H[q]=te,ne=q);else if(ue<ae&&0>o(ye,te))H[ne]=ye,H[ue]=te,ne=ue;else break e}}return K}function o(H,K){var te=H.sortIndex-K.sortIndex;return te!==0?te:H.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,h=c.now();e.unstable_now=function(){return c.now()-h}}var m=[],g=[],y=1,x=null,b=3,S=!1,j=!1,N=!1,_=!1,k=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function I(H){for(var K=i(g);K!==null;){if(K.callback===null)r(g);else if(K.startTime<=H)r(g),K.sortIndex=K.expirationTime,t(m,K);else break;K=i(g)}}function L(H){if(N=!1,I(H),!j)if(i(m)!==null)j=!0,Y||(Y=!0,Ce());else{var K=i(g);K!==null&&Be(L,K.startTime-H)}}var Y=!1,z=-1,G=5,ee=-1;function le(){return _?!0:!(e.unstable_now()-ee<G)}function ce(){if(_=!1,Y){var H=e.unstable_now();ee=H;var K=!0;try{e:{j=!1,N&&(N=!1,R(z),z=-1),S=!0;var te=b;try{t:{for(I(H),x=i(m);x!==null&&!(x.expirationTime>H&&le());){var ne=x.callback;if(typeof ne=="function"){x.callback=null,b=x.priorityLevel;var ae=ne(x.expirationTime<=H);if(H=e.unstable_now(),typeof ae=="function"){x.callback=ae,I(H),K=!0;break t}x===i(m)&&r(m),I(H)}else r(m);x=i(m)}if(x!==null)K=!0;else{var A=i(g);A!==null&&Be(L,A.startTime-H),K=!1}}break e}finally{x=null,b=te,S=!1}K=void 0}}finally{K?Ce():Y=!1}}}var Ce;if(typeof O=="function")Ce=function(){O(ce)};else if(typeof MessageChannel<"u"){var tt=new MessageChannel,ze=tt.port2;tt.port1.onmessage=ce,Ce=function(){ze.postMessage(null)}}else Ce=function(){k(ce,0)};
vendor: 7,624 bytes, lines 17-25
17function Be(H,K){z=k(function(){H(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(H){switch(b){case 1:case 2:case 3:var K=3;break;default:K=b}var te=b;b=K;try{return H()}finally{b=te}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(H,K){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var te=b;b=H;try{return K()}finally{b=te}},e.unstable_scheduleCallback=function(H,K,te){var ne=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ne+te:ne):te=ne,H){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=te+ae,H={id:y++,callback:K,priorityLevel:H,startTime:te,expirationTime:ae,sortIndex:-1},te>ne?(H.sortIndex=te,t(g,H),i(m)===null&&H===i(g)&&(N?(R(z),z=-1):N=!0,Be(L,te-ne))):(H.sortIndex=ae,t(m,H),j||S||(j=!0,Y||(Y=!0,Ce()))),H},e.unstable_shouldYield=le,e.unstable_wrapCallback=function(H){var K=b;return function(){var te=b;b=K;try{return H.apply(this,arguments)}finally{b=te}}}})(wd)),wd}var _x;function Yj(){return _x||(_x=1,Sd.exports=qj()),Sd.exports}var jd={exports:{}},Ee={};/** 18 * @license React 19 * react.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var zx;function Fj(){if(zx)return Ee;zx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),b=Symbol.iterator;function S(A){return A===null||typeof A!="object"?null:(A=b&&A[b]||A["@@iterator"],typeof A=="function"?A:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,_={};function k(A,q,ie){this.props=A,this.context=q,this.refs=_,this.updater=ie||j}k.prototype.isReactComponent={},k.prototype.setState=function(A,q){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,q,"setState")},k.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function R(){}R.prototype=k.prototype;function O(A,q,ie){this.props=A,this.context=q,this.refs=_,this.updater=ie||j}var I=O.prototype=new R;I.constructor=O,N(I,k.prototype),I.isPureReactComponent=!0;var L=Array.isArray;function Y(){}var z={H:null,A:null,T:null,S:null},G=Object.prototype.hasOwnProperty;function ee(A,q,ie){var ue=ie.ref;return{$$typeof:e,type:A,key:q,ref:ue!==void 0?ue:null,props:ie}}function le(A,q){return ee(A.type,q,A.props)}function ce(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function Ce(A){var q={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ie){return q[ie]})}var tt=/\/+/g;function ze(A,q){return typeof A=="object"&&A!==null&&A.key!=null?Ce(""+A.key):q.toString(36)}function Be(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(Y,Y):(A.status="pending",A.then(function(q){A.status==="pending"&&(A.status="fulfilled",A.value=q)},function(q){A.status==="pending"&&(A.status="rejected",A.reason=q)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function H(A,q,ie,ue,ye){var Te=typeof A;(Te==="undefined"||Te==="boolean")&&(A=null);var Ve=!1;if(A===null)Ve=!0;else switch(Te){case"bigint":case"string":case"number":Ve=!0;break;case"object":switch(A.$$typeof){case e:case t:Ve=!0;break;case y:return Ve=A._init,H(Ve(A._payload),q,ie,ue,ye)}}if(Ve)return ye=ye(A),Ve=ue===""?"."+ze(A,0):ue,L(ye)?(ie="",Ve!=null&&(ie=Ve.replace(tt,"$&/")+"/"),H(ye,q,ie,"",function(Ei){return Ei})):ye!=null&&(ce(ye)&&(ye=le(ye,ie+(ye.key==null||A&&A.key===ye.key?"":(""+ye.key).replace(tt,"$&/")+"/")+Ve)),q.push(ye)),1;Ve=0;var ft=ue===""?".":ue+":";if(L(A))for(var dt=0;dt<A.length;dt++)ue=A[dt],Te=ft+ze(ue,dt),Ve+=H(ue,q,ie,Te,ye);else if(dt=S(A),typeof dt=="function")for(A=dt.call(A),dt=0;!(ue=A.next()).done;)ue=ue.value,Te=ft+ze(ue,dt++),Ve+=H(ue,q,ie,Te,ye);else if(Te==="object"){if(typeof A.then=="function")return H(Be(A),q,ie,ue,ye);throw q=String(A),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Ve}function K(A,q,ie){if(A==null)return A;var ue=[],ye=0;return H(A,ue,"","",function(Te){return q.call(ie,Te,ye++)}),ue}function te(A){if(A._status===-1){var q=A._result;q=q(),q.then(function(ie){(A._status===0||A._status===-1)&&(A._status=1,A._result=ie)},function(ie){(A._status===0||A._status===-1)&&(A._status=2,A._result=ie)}),A._status===-1&&(A._status=0,A._result=q)}if(A._status===1)return A._result.default;throw A._result}var ne=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},ae={map:K,forEach:function(A,q,ie){K(A,function(){q.apply(this,arguments)},ie)},count:function(A){var q=0;return K(A,function(){q++}),q},toArray:function(A){return K(A,function(q){return q})||[]},only:function(A){if(!ce(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ee.Activity=x,Ee.Children=ae,Ee.Component=k,Ee.Fragment=i,Ee.Profiler=o,Ee.PureComponent=O,Ee.StrictMode=r,Ee.Suspense=m,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(A){return z.H.useMemoCache(A)}},Ee.cache=function(A){return function(){return A.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(A,q,ie){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var ue=N({},A.props),ye=A.key;if(q!=null)for(Te in q.key!==void 0&&(ye=""+q.key),q)!G.call(q,Te)||Te==="key"||Te==="__self"||Te==="__source"||Te==="ref"&&q.ref===void 0||(ue[Te]=q[Te]);var Te=arguments.length-2;if(Te===1)ue.children=ie;else if(1<Te){for(var Ve=Array(Te),ft=0;ft<Te;ft++)Ve[ft]=arguments[ft+2];ue.children=Ve}return ee(A.type,ye,ue)},Ee.createContext=function(A){return A={$$typeof:c,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:u,_context:A},A},Ee.createElement=function(A,q,ie){var ue,ye={},Te=null;if(q!=null)for(ue in q.key!==void 0&&(Te=""+q.key),q)G.call(q,ue)&&ue!=="
25key"&&ue!=="__self"&&ue!=="__source"&&(ye[ue]=q[ue]);var Ve=arguments.length-2;if(Ve===1)ye.children=ie;else if(1<Ve){for(var ft=Array(Ve),dt=0;dt<Ve;dt++)ft[dt]=arguments[dt+2];ye.children=ft}if(A&&A.defaultProps)for(ue in Ve=A.defaultProps,Ve)ye[ue]===void 0&&(ye[ue]=Ve[ue]);return ee(A,Te,ye)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(A){return{$$typeof:h,render:A}},Ee.isValidElement=ce,Ee.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:te}},Ee.memo=function(A,q){return{$$typeof:g,type:A,compare:q===void 0?null:q}},Ee.startTransition=function(A){var q=z.T,ie={};z.T=ie;try{var ue=A(),ye=z.S;ye!==null&&ye(ie,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(Y,ne)}catch(Te){ne(Te)}finally{q!==null&&ie.types!==null&&(q.types=ie.types),z.T=q}},Ee.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},Ee.use=function(A){return z.H.use(A)},Ee.useActionState=function(A,q,ie){return z.H.useActionState(A,q,ie)},Ee.useCallback=function(A,q){return z.H.useCallback(A,q)},Ee.useContext=function(A){return z.H.useContext(A)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(A,q){return z.H.useDeferredValue(A,q)},Ee.useEffect=function(A,q){return z.H.useEffect(A,q)},Ee.useEffectEvent=function(A){return z.H.useEffectEvent(A)},Ee.useId=function(){return z.H.useId()},Ee.useImperativeHandle=function(A,q,ie){return z.H.useImperativeHandle(A,q,ie)},Ee.useInsertionEffect=function(A,q){return z.H.useInsertionEffect(A,q)},Ee.useLayoutEffect=function(A,q){return z.H.useLayoutEffect(A,q)},Ee.useMemo=function(A,q){return z.H.useMemo(A,q)},Ee.useOptimistic=function(A,q){return z.H.useOptimistic(A,q)},Ee.useReducer=function(A,q,ie){return z.H.useReducer(A,q,ie)},Ee.useRef=function(A){return z.H.useRef(A)},Ee.useState=function(A){return z.H.useState(A)},Ee.useSyncExternalStore=function(A,q,ie){return z.H.useSyncExternalStore(A,q,ie)},Ee.useTransition=function(){return z.H.useTransition()},Ee.version="19.2.4",Ee}var Mx;function Vh(){return Mx||(Mx=1,jd.exports=Fj()),jd.exports}var Td={exports:{}},Xt={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var Rx;function Gj(){if(Rx)return Xt;Rx=1;var e=Vh();function t(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(m,g,y){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:m,containerInfo:g,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Xt.createPortal=function(m,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(t(299));return u(m,g,null,y)},Xt.flushSync=function(m){var g=c.T,y=r.p;try{if(c.T=null,r.p=2,m)return m()}finally{c.T=g,r.p=y,r.d.f()}},Xt.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(m,g))},Xt.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},Xt.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var y=g.as,x=h(y,g.crossOrigin),b=typeof g.integrity=="string"?g.integrity:void 0,S=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?r.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:b,fetchPriority:S}):y==="script"&&r.d.X(m,{crossOrigin:x,integrity:b,fetchPriority:S,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Xt.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=h(g.as,g.crossOrigin);r.d.M(m,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(m)},Xt.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,x=h(y,g.crossOrigin);r.d.L(m,y,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Xt.preloadModule=function(m,g){if(typeof m=="string")if(g){var y=h(g.as,g.crossOrigin);r.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(m)},Xt.requestFormReset=function(m){r.d.r(m)},Xt.unstable_batchedUpdates=function(m,g){return m(g)},Xt.useFormState=function(m,g,y){return c.H.useFormState(m,g,y)},Xt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Xt.version="19.2.4",Xt}var kx;function Xj(){if(kx)return Td.exports;kx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Td.exports=Gj(),Td.exports}/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var Ox;function Ij(){if(Ox)return fo;Ox=1;var e=Yj(),t=Vh(),i=Xj();function r(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function u(n){var a=n,s=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(s=a.return),n=a.return;while(n)}return a.tag===3?s:null}function c(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function h(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function m(n){if(u(n)!==n)throw Error(r(188))}function g(n){var a=n.alternate;if(!a){if(a=u(n),a===null)throw Error(r(188));return a!==n?null:n}for(var s=n,l=a;;){var f=s.return;if(f===null)break;var p=f.alternate;if(p===null){if(l=f.return,l!==null){s=l;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===s)return m(f),n;if(p===l)return m(f),a;p=p.sibling}throw Error(r(188))}if(s.return!==l.return)s=f,l=p;else{for(var v=!1,w=f.child;w;){if(w===s){v=!0,s=f,l=p;break}if(w===l){v=!0,l=f,s=p;break}w=w.sibling}if(!v){for(w=p.child;w;){if(w===s){v=!0,s=p,l=f;break}if(w===l){v=!0,l=p,s=f;break}w=w.sibling}if(!v)throw Error(r(189))}}if(s.alternate!==l)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?n:a}function y(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=y(n),a!==null)return a;n=n.sibling}return null}var x=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),O=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function Ce(n){return n===null||typeof n!="object"?null:(n=ce&&n[ce]||n["@@iterator"],typeof n=="function"?n:null)}var tt=Symbol.for("react.client.reference");function ze(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===tt?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case N:return"Fragment";case k:return"Profiler";case _:return"StrictMode";case L:return"Suspense";case Y:return"SuspenseList";case ee:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case j:return"Portal";case O:return n.displayName||"Context";case R:return(n._context.displayName||"Context")+".Consumer";case I:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case z:return a=n.displayName||null,a!==null?a:ze(n.type)||"Memo";case G:a=n._payload,n=n._init;try{return ze(n(a))}catch{}}return null}var Be=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ne=[],ae=-1;function A(n){return{current:n}}function q(n){0>ae||(n.current=ne[ae],ne[ae]=null,ae--)}function ie(n,a){ae++,ne[ae]=n.current,n.current=a}var ue=A(null),ye=A(null),Te=A(null),Ve=A(null);function ft(n,a){switch(ie(Te,a),ie(ye,n),ie(ue,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?Iy(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=Iy(a),n=Jy(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}q(ue),ie(ue,n)}function dt(){q(ue),q(ye),q(Te)}function Ei(n){n.memoizedState!==null&&ie(Ve,n);var a=ue.current,s=Jy(a,n.type);a!==s&&(ie(ye,n),ie(ue,s))}function fr(n){ye.current===n&&(q(ue),q(ye)),Ve.current===n&&(q(Ve),so._currentValue=te)}var At,da;function Wn(n){if(At===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);At=a&&a[1]||"",da=-1<s.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+At+n+da}var gs=!1;function Hn(n,a){if(!n||gs)return"";gs=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(a){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(P){var $=P}Reflect.construct(n,[],Q)}else{try{Q.call()}catch(P){$=P}n.call(Q.prototype)}}else{try{throw Error()}catch(P){$=P}(Q=n())&&typeof Q.catch=="function"&&Q.catch(function(){})}}
vendor: 12,131 bytes, lines 43-48
43catch(P){if(P&&$&&typeof P.stack=="string")return[P.stack,$.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=l.DetermineComponentFrameRoot(),v=p[0],w=p[1];if(v&&w){var C=v.split(` 44`),V=w.split(` 45`);for(f=l=0;l<C.length&&!C[l].includes("DetermineComponentFrameRoot");)l++;for(;f<V.length&&!V[f].includes("DetermineComponentFrameRoot");)f++;if(l===C.length||f===V.length)for(l=C.length-1,f=V.length-1;1<=l&&0<=f&&C[l]!==V[f];)f--;for(;1<=l&&0<=f;l--,f--)if(C[l]!==V[f]){if(l!==1||f!==1)do if(l--,f--,0>f||C[l]!==V[f]){var F=` 46`+C[l].replace(" at new "," at ");return n.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",n.displayName)),F}while(1<=l&&0<=f);break}}}finally{gs=!1,Error.prepareStackTrace=s}return(s=n?n.displayName||n.name:"")?Wn(s):""}function sc(n,a){switch(n.tag){case 26:case 27:case 5:return Wn(n.type);case 16:return Wn("Lazy");case 13:return n.child!==a&&a!==null?Wn("Suspense Fallback"):Wn("Suspense");case 19:return Wn("SuspenseList");case 0:case 15:return Hn(n.type,!1);case 11:return Hn(n.type.render,!1);case 1:return Hn(n.type,!0);case 31:return Wn("Activity");default:return""}}function Io(n){try{var a="",s=null;do a+=sc(n,s),s=n,n=n.return;while(n);return a}catch(l){return` 47Error generating stack: `+l.message+` 48`+l.stack}}var dr=Object.prototype.hasOwnProperty,ys=e.unstable_scheduleCallback,xs=e.unstable_cancelCallback,oc=e.unstable_shouldYield,lc=e.unstable_requestPaint,wt=e.unstable_now,Ci=e.unstable_getCurrentPriorityLevel,vs=e.unstable_ImmediatePriority,hr=e.unstable_UserBlockingPriority,nn=e.unstable_NormalPriority,$n=e.unstable_LowPriority,bs=e.unstable_IdlePriority,uc=e.log,Ss=e.unstable_setDisableYieldValue,Ai=null,ht=null;function Zn(n){if(typeof uc=="function"&&Ss(n),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(Ai,n)}catch{}}var Gt=Math.clz32?Math.clz32:Ko,Jo=Math.log,cc=Math.LN2;function Ko(n){return n>>>=0,n===0?32:31-(Jo(n)/cc|0)|0}var ha=256,_i=262144,Ha=4194304;function pa(n){var a=n&42;if(a!==0)return a;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function zi(n,a,s){var l=n.pendingLanes;if(l===0)return 0;var f=0,p=n.suspendedLanes,v=n.pingedLanes;n=n.warmLanes;var w=l&134217727;return w!==0?(l=w&~p,l!==0?f=pa(l):(v&=w,v!==0?f=pa(v):s||(s=w&~n,s!==0&&(f=pa(s))))):(w=l&~p,w!==0?f=pa(w):v!==0?f=pa(v):s||(s=l&~n,s!==0&&(f=pa(s)))),f===0?0:a!==0&&a!==f&&(a&p)===0&&(p=f&-f,s=a&-a,p>=s||p===32&&(s&4194048)!==0)?a:f}function Mi(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Qo(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ri(){var n=Ha;return Ha<<=1,(Ha&62914560)===0&&(Ha=4194304),n}function $a(n){for(var a=[],s=0;31>s;s++)a.push(n);return a}function Za(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function fc(n,a,s,l,f,p){var v=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var w=n.entanglements,C=n.expirationTimes,V=n.hiddenUpdates;for(s=v&~s;0<s;){var F=31-Gt(s),Q=1<<F;w[F]=0,C[F]=-1;var $=V[F];if($!==null)for(V[F]=null,F=0;F<$.length;F++){var P=$[F];P!==null&&(P.lane&=-536870913)}s&=~Q}l!==0&&Wo(n,l,0),p!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=p&~(v&~a))}function Wo(n,a,s){n.pendingLanes|=a,n.suspendedLanes&=~a;var l=31-Gt(a);n.entangledLanes|=a,n.entanglements[l]=n.entanglements[l]|1073741824|s&261930}function E(n,a){var s=n.entangledLanes|=a;for(n=n.entanglements;s;){var l=31-Gt(s),f=1<<l;f&a|n[l]&a&&(n[l]|=a),s&=~f}}function D(n,a){var s=a&-a;return s=(s&42)!==0?1:Z(s),(s&(n.suspendedLanes|a))!==0?0:s}function Z(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function W(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function re(){var n=K.p;return n!==0?n:(n=window.event,n===void 0?32:vx(n.type))}function xe(n,a){var s=K.p;try{return K.p=n,a()}finally{K.p=s}}var pe=Math.random().toString(36).slice(2),se="__reactFiber$"+pe,oe="__reactProps$"+pe,me="__reactContainer$"+pe,Ne="__reactEvents$"+pe,ve="__reactListeners$"+pe,Ae="__reactHandles$"+pe,ke="__reactResources$"+pe,pt="__reactMarker$"+pe;function yt(n){delete n[se],delete n[oe],delete n[Ne],delete n[ve],delete n[Ae]}function xt(n){var a=n[se];if(a)return a;for(var s=n.parentNode;s;){if(a=s[me]||s[se]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(n=ax(n);n!==null;){if(s=n[se])return s;n=ax(n)}return a}n=s,s=n.parentNode}return null}function He(n){if(n=n[se]||n[me]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function Vt(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(r(33))}function an(n){var a=n[ke];return a||(a=n[ke]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function ot(n){n[pt]=!0}var Pn=new Set,dn={};function qn(n,a){jn(n,a),jn(n+"Capture",a)}function jn(n,a){for(dn[n]=a,n=0;n<a.length;n++)Pn.add(a[n])}var ma=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ki={},Oi={};function $e(n){return dr.call(Oi,n)?!0:dr.call(ki,n)?!1:ma.test(n)?Oi[n]=!0:(ki[n]=!0,!1)}function jt(n,a,s){if($e(a))if(s===null)n.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var l=a.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+s)}}function Yn(n,a,s){if(s===null)n.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+s)}}function $t(n,a,s,l){if(l===null)n.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(a,s,""+l)}}function Ze(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Di(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function el(n,a,s){var l=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,p=l.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return f.call(this)},set:function(v){s=""+v,p.call(this,v)}}),Object.defineProperty(n,a,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(v){s=""+v},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function ws(n){if(!n._valueTracker){var a=Di(n)?"checked":"value";n._valueTracker=el(n,a,""+n[a])}}function Zp(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var s=a.getValue(),l="";return n&&(l=Di(n)?n.checked?"true":"false":n.value),n=l,n!==s?(a.setValue(n),!0):!1}function tl(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var O2=/[\n"\\]/g;function Tn(n){return n.replace(O2,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function dc(n,a,s,l,f,p,v,w){n.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?n.type=v:n.removeAttribute("type"),a!=null?v==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Ze(a)):n.value!==""+Ze(a)&&(n.value=""+Ze(a)):v!=="submit"&&v!=="reset"||n.removeAttribute("value"),a!=null?hc(n,v,Ze(a)):s!=null?hc(n,v,Ze(s)):l!=null&&n.removeAttribute("value"),f==null&&p!=null&&(n.defaultChecked=!!p),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?n.name=""+Ze(w):n.removeAttribute("name")}function Pp(n,a,s,l,f,p,v,w){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(n.type=p),a!=null||s!=null){if(!(p!=="submit"&&p!=="reset"||a!=null)){ws(n);return}s=s!=null?""+Ze(s):"",a=a!=null?""+Ze(a):s,w||a===n.value||(n.value=a),n.defaultValue=a}l=l??f,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=w?n.checked:!!l,n.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.name=v),ws(n)}function hc(n,a,s){a==="number"&&tl(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function pr(n,a,s,l){if(n=n.options,a){a={};for(var f=0;f<s.length;f++)a["$"+s[f]]=!0;for(s=0;s<n.length;s++)f=a.hasOwnProperty("$"+n[s].value),n[s].selected!==f&&(n[s].selected=f),f&&l&&(n[s].defaultSelected=!0)}else{for(s=""+Ze(s),a=null,f=0;f<n.length;f++){if(n[f].value===s){n[f].selected=!0,l&&(n[f].defaultSelected=!0);return}a!==null||n[f].disabled||(a=n[f])}a!==null&&(a.selected=!0)}}function qp(n,a,s){if(a!=null&&(a=""+Ze(a),a!==n.value&&(n.value=a),s==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=s!=null?""+Ze(s):""}function Yp(n,a,s,l){if(a==null){if(l!=null){if(s!=null)throw Error(r(92));if(Be(l)){if(1<l.length)throw Error(r(93));l=l[0]}s=l}s==null&&(s=""),a=s}s=Ze(a),n.defaultValue=s,l=n.textContent,l===s&&l!==""&&l!==null&&(n.value=l),ws(n)}function mr(n,a){if(a){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=a;return}}n.textContent=a}var D2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Fp(n,a,s){var l=a.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":l?n.setProperty(a,s):typeof s!="number"||s===0||D2.has(a)?a==="float"?n.cssFloat=s:n[a]=(""+s).trim():n[a]=s+"px"}
vendor: 4,435 bytes, line 48
48function Gp(n,a,s){if(a!=null&&typeof a!="object")throw Error(r(62));if(n=n.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||a!=null&&a.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var f in a)l=a[f],a.hasOwnProperty(f)&&s[f]!==l&&Fp(n,f,l)}else for(var p in a)a.hasOwnProperty(p)&&Fp(n,p,a[p])}function pc(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var U2=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),L2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function nl(n){return L2.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function ga(){}var mc=null;function gc(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var gr=null,yr=null;function Xp(n){var a=He(n);if(a&&(n=a.stateNode)){var s=n[oe]||null;e:switch(n=a.stateNode,a.type){case"input":if(dc(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),a=s.name,s.type==="radio"&&a!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Tn(""+a)+'"][type="radio"]'),a=0;a<s.length;a++){var l=s[a];if(l!==n&&l.form===n.form){var f=l[oe]||null;if(!f)throw Error(r(90));dc(l,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<s.length;a++)l=s[a],l.form===n.form&&Zp(l)}break e;case"textarea":qp(n,s.value,s.defaultValue);break e;case"select":a=s.value,a!=null&&pr(n,!!s.multiple,a,!1)}}}var yc=!1;
vendor: 9,286 bytes, line 48
48function Ip(n,a,s){if(yc)return n(a,s);yc=!0;try{var l=n(a);return l}finally{if(yc=!1,(gr!==null||yr!==null)&&(Pl(),gr&&(a=gr,n=yr,yr=gr=null,Xp(a),n)))for(a=0;a<n.length;a++)Xp(n[a])}}function js(n,a){var s=n.stateNode;if(s===null)return null;var l=s[oe]||null;if(l===null)return null;s=l[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(r(231,a,typeof s));return s}var ya=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xc=!1;if(ya)try{var Ts={};Object.defineProperty(Ts,"passive",{get:function(){xc=!0}}),window.addEventListener("test",Ts,Ts),window.removeEventListener("test",Ts,Ts)}catch{xc=!1}var Pa=null,vc=null,al=null;function Jp(){if(al)return al;var n,a=vc,s=a.length,l,f="value"in Pa?Pa.value:Pa.textContent,p=f.length;for(n=0;n<s&&a[n]===f[n];n++);var v=s-n;for(l=1;l<=v&&a[s-l]===f[p-l];l++);return al=f.slice(n,1<l?1-l:void 0)}function il(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function rl(){return!0}function Kp(){return!1}function rn(n){function a(s,l,f,p,v){this._reactName=s,this._targetInst=f,this.type=l,this.nativeEvent=p,this.target=v,this.currentTarget=null;for(var w in n)n.hasOwnProperty(w)&&(s=n[w],this[w]=s?s(p):p[w]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?rl:Kp,this.isPropagationStopped=Kp,this}return x(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=rl)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=rl)},persist:function(){},isPersistent:rl}),a}var Ui={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sl=rn(Ui),Ns=x({},Ui,{view:0,detail:0}),B2=rn(Ns),bc,Sc,Es,ol=x({},Ns,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jc,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Es&&(Es&&n.type==="mousemove"?(bc=n.screenX-Es.screenX,Sc=n.screenY-Es.screenY):Sc=bc=0,Es=n),bc)},movementY:function(n){return"movementY"in n?n.movementY:Sc}}),Qp=rn(ol),V2=x({},ol,{dataTransfer:0}),H2=rn(V2),$2=x({},Ns,{relatedTarget:0}),wc=rn($2),Z2=x({},Ui,{animationName:0,elapsedTime:0,pseudoElement:0}),P2=rn(Z2),q2=x({},Ui,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Y2=rn(q2),F2=x({},Ui,{data:0}),Wp=rn(F2),G2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},X2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},I2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J2(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=I2[n])?!!a[n]:!1}function jc(){return J2}var K2=x({},Ns,{key:function(n){if(n.key){var a=G2[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=il(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?X2[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jc,charCode:function(n){return n.type==="keypress"?il(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?il(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Q2=rn(K2),W2=x({},ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),em=rn(W2),ew=x({},Ns,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jc}),tw=rn(ew),nw=x({},Ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),aw=rn(nw),iw=x({},ol,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),rw=rn(iw),sw=x({},Ui,{newState:0,oldState:0}),ow=rn(sw),lw=[9,13,27,32],Tc=ya&&"CompositionEvent"in window,Cs=null;ya&&"documentMode"in document&&(Cs=document.documentMode);var uw=ya&&"TextEvent"in window&&!Cs,tm=ya&&(!Tc||Cs&&8<Cs&&11>=Cs),nm=" ",am=!1;function im(n,a){switch(n){case"keyup":return lw.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rm(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var xr=!1;function cw(n,a){switch(n){case"compositionend":return rm(a);case"keypress":return a.which!==32?null:(am=!0,nm);case"textInput":return n=a.data,n===nm&&am?null:n;default:return null}}function fw(n,a){if(xr)return n==="compositionend"||!Tc&&im(n,a)?(n=Jp(),al=vc=Pa=null,xr=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return tm&&a.locale!=="ko"?null:a.data;default:return null}}var dw={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function sm(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!dw[n.type]:a==="textarea"}function om(n,a,s,l){gr?yr?yr.push(l):yr=[l]:gr=l,a=Jl(a,"onChange"),0<a.length&&(s=new sl("onChange","change",null,s,l),n.push({event:s,listeners:a}))}var As=null,_s=null;function hw(n){Py(n,0)}function ll(n){var a=Vt(n);if(Zp(a))return n}function lm(n,a){if(n==="change")return a}var um=!1;if(ya){var Nc;if(ya){var Ec="oninput"in document;if(!Ec){var cm=document.createElement("div");cm.setAttribute("oninput","return;"),Ec=typeof cm.oninput=="function"}Nc=Ec}else Nc=!1;um=Nc&&(!document.documentMode||9<document.documentMode)}function fm(){As&&(As.detachEvent("onpropertychange",dm),_s=As=null)}function dm(n){if(n.propertyName==="value"&&ll(_s)){var a=[];om(a,_s,n,gc(n)),Ip(hw,a)}}function pw(n,a,s){n==="focusin"?(fm(),As=a,_s=s,As.attachEvent("onpropertychange",dm)):n==="focusout"&&fm()}function mw(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ll(_s)}function gw(n,a){if(n==="click")return ll(a)}function yw(n,a){if(n==="input"||n==="change")return ll(a)}function xw(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var hn=typeof Object.is=="function"?Object.is:xw;function zs(n,a){if(hn(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var s=Object.keys(n),l=Object.keys(a);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var f=s[l];if(!dr.call(a,f)||!hn(n[f],a[f]))return!1}return!0}function hm(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function pm(n,a){var s=hm(n);n=0;for(var l;s;){if(s.nodeType===3){if(l=n+s.textContent.length,n<=a&&l>=a)return{node:s,offset:a-n};n=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=hm(s)}}function mm(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?mm(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function gm(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=tl(n.document);a instanceof n.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)n=a.contentWindow;else break;a=tl(n.document)}return a}function Cc(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var vw=ya&&"documentMode"in document&&11>=document.documentMode,vr=null,Ac=null,Ms=null,_c=!1;function ym(n,a,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;_c||vr==null||vr!==tl(l)||(l=vr,"selectionStart"in l&&Cc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focu
vendor: 19,005 bytes, line 48
48sNode:l.focusNode,focusOffset:l.focusOffset}),Ms&&zs(Ms,l)||(Ms=l,l=Jl(Ac,"onSelect"),0<l.length&&(a=new sl("onSelect","select",null,a,s),n.push({event:a,listeners:l}),a.target=vr)))}function Li(n,a){var s={};return s[n.toLowerCase()]=a.toLowerCase(),s["Webkit"+n]="webkit"+a,s["Moz"+n]="moz"+a,s}var br={animationend:Li("Animation","AnimationEnd"),animationiteration:Li("Animation","AnimationIteration"),animationstart:Li("Animation","AnimationStart"),transitionrun:Li("Transition","TransitionRun"),transitionstart:Li("Transition","TransitionStart"),transitioncancel:Li("Transition","TransitionCancel"),transitionend:Li("Transition","TransitionEnd")},zc={},xm={};ya&&(xm=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);function Bi(n){if(zc[n])return zc[n];if(!br[n])return n;var a=br[n],s;for(s in a)if(a.hasOwnProperty(s)&&s in xm)return zc[n]=a[s];return n}var vm=Bi("animationend"),bm=Bi("animationiteration"),Sm=Bi("animationstart"),bw=Bi("transitionrun"),Sw=Bi("transitionstart"),ww=Bi("transitioncancel"),wm=Bi("transitionend"),jm=new Map,Mc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Mc.push("scrollEnd");function Fn(n,a){jm.set(n,a),qn(a,[n])}var ul=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Nn=[],Sr=0,Rc=0;function cl(){for(var n=Sr,a=Rc=Sr=0;a<n;){var s=Nn[a];Nn[a++]=null;var l=Nn[a];Nn[a++]=null;var f=Nn[a];Nn[a++]=null;var p=Nn[a];if(Nn[a++]=null,l!==null&&f!==null){var v=l.pending;v===null?f.next=f:(f.next=v.next,v.next=f),l.pending=f}p!==0&&Tm(s,f,p)}}function fl(n,a,s,l){Nn[Sr++]=n,Nn[Sr++]=a,Nn[Sr++]=s,Nn[Sr++]=l,Rc|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function kc(n,a,s,l){return fl(n,a,s,l),dl(n)}function Vi(n,a){return fl(n,null,null,a),dl(n)}function Tm(n,a,s){n.lanes|=s;var l=n.alternate;l!==null&&(l.lanes|=s);for(var f=!1,p=n.return;p!==null;)p.childLanes|=s,l=p.alternate,l!==null&&(l.childLanes|=s),p.tag===22&&(n=p.stateNode,n===null||n._visibility&1||(f=!0)),n=p,p=p.return;return n.tag===3?(p=n.stateNode,f&&a!==null&&(f=31-Gt(s),n=p.hiddenUpdates,l=n[f],l===null?n[f]=[a]:l.push(a),a.lane=s|536870912),p):null}function dl(n){if(50<Ws)throw Ws=0,Pf=null,Error(r(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var wr={};function jw(n,a,s,l){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pn(n,a,s,l){return new jw(n,a,s,l)}function Oc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function xa(n,a){var s=n.alternate;return s===null?(s=pn(n.tag,a,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=a,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,a=n.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}function Nm(n,a){n.flags&=65011714;var s=n.alternate;return s===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,a=s.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function hl(n,a,s,l,f,p){var v=0;if(l=n,typeof n=="function")Oc(n)&&(v=1);else if(typeof n=="string")v=Aj(n,s,ue.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case ee:return n=pn(31,s,a,f),n.elementType=ee,n.lanes=p,n;case N:return Hi(s.children,f,p,a);case _:v=8,f|=24;break;case k:return n=pn(12,s,a,f|2),n.elementType=k,n.lanes=p,n;case L:return n=pn(13,s,a,f),n.elementType=L,n.lanes=p,n;case Y:return n=pn(19,s,a,f),n.elementType=Y,n.lanes=p,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case O:v=10;break e;case R:v=9;break e;case I:v=11;break e;case z:v=14;break e;case G:v=16,l=null;break e}v=29,s=Error(r(130,n===null?"null":typeof n,"")),l=null}return a=pn(v,s,a,f),a.elementType=n,a.type=l,a.lanes=p,a}function Hi(n,a,s,l){return n=pn(7,n,l,a),n.lanes=s,n}function Dc(n,a,s){return n=pn(6,n,null,a),n.lanes=s,n}function Em(n){var a=pn(18,null,null,0);return a.stateNode=n,a}function Uc(n,a,s){return a=pn(4,n.children!==null?n.children:[],n.key,a),a.lanes=s,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var Cm=new WeakMap;function En(n,a){if(typeof n=="object"&&n!==null){var s=Cm.get(n);return s!==void 0?s:(a={value:n,source:a,stack:Io(a)},Cm.set(n,a),a)}return{value:n,source:a,stack:Io(a)}}var jr=[],Tr=0,pl=null,Rs=0,Cn=[],An=0,qa=null,ea=1,ta="";function va(n,a){jr[Tr++]=Rs,jr[Tr++]=pl,pl=n,Rs=a}function Am(n,a,s){Cn[An++]=ea,Cn[An++]=ta,Cn[An++]=qa,qa=n;var l=ea;n=ta;var f=32-Gt(l)-1;l&=~(1<<f),s+=1;var p=32-Gt(a)+f;if(30<p){var v=f-f%5;p=(l&(1<<v)-1).toString(32),l>>=v,f-=v,ea=1<<32-Gt(a)+f|s<<f|l,ta=p+n}else ea=1<<p|s<<f|l,ta=n}function Lc(n){n.return!==null&&(va(n,1),Am(n,1,0))}function Bc(n){for(;n===pl;)pl=jr[--Tr],jr[Tr]=null,Rs=jr[--Tr],jr[Tr]=null;for(;n===qa;)qa=Cn[--An],Cn[An]=null,ta=Cn[--An],Cn[An]=null,ea=Cn[--An],Cn[An]=null}function _m(n,a){Cn[An++]=ea,Cn[An++]=ta,Cn[An++]=qa,ea=a.id,ta=a.overflow,qa=n}var Zt=null,rt=null,Pe=!1,Ya=null,_n=!1,Vc=Error(r(519));function Fa(n){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ks(En(a,n)),Vc}function zm(n){var a=n.stateNode,s=n.type,l=n.memoizedProps;switch(a[se]=n,a[oe]=l,s){case"dialog":De("cancel",a),De("close",a);break;case"iframe":case"object":case"embed":De("load",a);break;case"video":case"audio":for(s=0;s<to.length;s++)De(to[s],a);break;case"source":De("error",a);break;case"img":case"image":case"link":De("error",a),De("load",a);break;case"details":De("toggle",a);break;case"input":De("invalid",a),Pp(a,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":De("invalid",a);break;case"textarea":De("invalid",a),Yp(a,l.value,l.defaultValue,l.children)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||a.textContent===""+s||l.suppressHydrationWarning===!0||Gy(a.textContent,s)?(l.popover!=null&&(De("beforetoggle",a),De("toggle",a)),l.onScroll!=null&&De("scroll",a),l.onScrollEnd!=null&&De("scrollend",a),l.onClick!=null&&(a.onclick=ga),a=!0):a=!1,a||Fa(n,!0)}function Mm(n){for(Zt=n.return;Zt;)switch(Zt.tag){case 5:case 31:case 13:_n=!1;return;case 27:case 3:_n=!0;return;default:Zt=Zt.return}}function Nr(n){if(n!==Zt)return!1;if(!Pe)return Mm(n),Pe=!0,!1;var a=n.tag,s;if((s=a!==3&&a!==27)&&((s=a===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||id(n.type,n.memoizedProps)),s=!s),s&&rt&&Fa(n),Mm(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));rt=nx(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));rt=nx(n)}else a===27?(a=rt,si(n.type)?(n=ud,ud=null,rt=n):rt=a):rt=Zt?Mn(n.stateNode.nextSibling):null;return!0}function $i(){rt=Zt=null,Pe=!1}function Hc(){var n=Ya;return n!==null&&(un===null?un=n:un.push.apply(un,n),Ya=null),n}function ks(n){Ya===null?Ya=[n]:Ya.push(n)}var $c=A(null),Zi=null,ba=null;function Ga(n,a,s){ie($c,a._currentValue),a._currentValue=s}function Sa(n){n._currentValue=$c.current,q($c)}function Zc(n,a,s){for(;n!==null;){var l=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,l!==null&&(l.childLanes|=a)):l!==null&&(l.childLanes&a)!==a&&(l.childLanes|=a),n===s)break;n=n.return}}function Pc(n,a,s,l){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var p=f.dependencies;if(p!==null){var v=f.child;p=p.firstContext;e:for(;p!==null;){var w=p;p=f;for(var C=0;C<a.length;C++)if(w.context===a[C]){p.lanes|=s,w=p.alternate,w!==null&&(w.lanes|=s),Zc(p.return,s,n),l||(v=null);break e}p=w.next}}else if(f.tag===18){if(v=f.return,v===null)throw Error(r(341));v.lanes|=s,p=v.alternate,p!==null&&(p.lanes|=s),Zc(v,s,n),v=null}else v=f.child;if(v!==null)v.return=f;else for(v=f;v!==null;){if(v===n){v=null;break}if(f=v.sibling,f!==null){f.return=v.return,v=f;break}v=v.return}f=v}}function Er(n,a,s,l){n=null;for(var f=a,p=!1;f!==null;){if(!p){if((f.flags&524288)!==0)p=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var v=f.alternate;if(v===null)throw Error(r(387));if(v=v.memoizedProps,v!==null){var w=f.type;hn(f.pendingProps.value,v.value)||(n!==null?n.push(w):n=[w])}}else if(f===Ve.current){if(v=f.alternate,v===null)throw Error(r(387));v.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(so):n=[so])}f=f.return}n!==null&&Pc(a,n,s,l),a.flags|=262144}function ml(n){for(n=n.firstContext;n!==null;){if(!hn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Pi(n){Zi=n,ba=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Pt(n){return Rm(Zi,n)}function gl(n,a){return Zi===null&&Pi(n),Rm(n,a)}function Rm(n,a){var s=a._currentValue;if(a={context:a,memoizedValue:s,next:null},ba===null){if(n===null)throw Error(r(308));ba=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else ba=ba.next=a;return s}var Tw=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(s,l){n.push(l)}};this.abort=function(){a.aborted=!0,n.forEach(function(s){return s()})}},Nw=e.unstable_scheduleCallback,Ew=e.unstable_NormalPriority,_t={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qc(){return{controller:new Tw,data:new Map,refCount:0}}function Os(n){n.refCount--,n.refCount===0&&Nw(Ew,function(){n.controller.abort()})}var Ds=null,Yc=0,Cr=0,Ar=null;function Cw(n,a){if(Ds===null){var s=Ds=[];Yc=0,Cr=If(),Ar={status:"pending",value:void 0,then:function(l){s.push(l)}}}return Yc++,a.then(km,km),a}function km(){if(--Yc===0&&Ds!==null){Ar!==null&&(Ar.status="fulfilled");var n=Ds;Ds=null,Cr=0,Ar=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function Aw(n,a){var s=[],l={status:"pending",value:null,reason:null,then:function(f){s.push(f)}};return n.then(function(){l.status="fulfilled",l.value=a;for(var f=0;f<s.length;f++)(0,s[f])(a)},function(f){for(l.status="rejected",l.reason=f,f=0;f<s.length;f++)(0,s[f])(void 0)}),l}var Om=H.S;H.S=function(n,a){yy=wt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&Cw(n,a),Om!==null&&Om(n,a)};var qi=A(null);function Fc(){var n=qi.current;return n!==null?n:We.pooledCache}function yl(n,a){a===null?ie(qi,qi.current):ie(qi,a.pool)}function Dm(){var n=Fc();return n===null?null:{parent:_t._currentValue,pool:n}}var _r=Error(r(460)),Gc=Error(r(474)),xl=Error(r(542)),vl={then:function(){}};function Um(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Lm(n,a,s){switch(s=n[s],s===void 0?n.push(a):s!==a&&(a.then(ga,ga),a=s),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Vm(n),n;default:if(typeof a.status=="string")a.then(ga,ga);else{if(n=We,n!==null&&100<n.shellSuspendCounter)throw Error(r(482));n=a,n.status="pending",n.then(function(l){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=l}},function(l){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=l}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Vm(n),n}throw Fi=a,_r}}function Yi(n){try{var a=n._init;return a(n._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Fi=s,_r):s}}var Fi=null;function Bm(){if(Fi===null)throw Error(r(459));var n=Fi;return Fi=null,n}function Vm(n){if(n===_r||n===xl)throw Error(r(483))}var zr=null,Us=0;function bl(n){var a=Us;return Us+=1,zr===null&&(zr=[]),Lm(zr,n,a)}function Ls(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Sl(n,a){throw a.$$typeof===b?Error(r(525)):(n=Object.prototype.toString.call(a),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function Hm(n){function a(U,M){if(n){var B=U.deletions;B===null?(U.deletions=[M],U.flags|=16):B.push(M)}}function s(U,M){if(!n)return null;for(;M!==null;)a(U,M),M=M.sibling;return null}function l(U){for(var M=new Map;U!==null;)U.key!==null?M.set(U.key,U):M.set(U.index,U),U=U.sibling;return M}function f(U,M){return U=xa(U,M),U.index=0,U.sibling=null,U}function p(U,M,B){return U.index=B,n?(B=U.alternate,B!==null?(B=B.index,B<M?(U.flags|=67108866,M):B):(U.flags|=67108866,M)):(U.flags|=1048576,M)}function v(U){return n&&U.alternate===null&&(U.flags|=67108866),U}function w(U,M,B,J){return M===null||M.tag!==6?(M=Dc(B,U.mode,J),M.return=U,M):(M=f(M,B),M.return=U,M)}function C(U,M,B,J){var Se=B.type;return Se===N?F(U,M,B.props.children,J,B.key):M!==null&&(M.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===G&&Yi(Se)===M.type)?(M=f(M,B.props),Ls(M,B),M.return=U,M):(M=hl(B.type,B.key,B.props,null,U.mode,J),Ls(M,B),M.return=U,M)}function V(U,M,B,J){return M===null||M.tag!==4||M.stateNode.containerInfo!==B.containerInfo||M.stateNode.implementation!==B.implementation?(M=Uc(B,U.mode,J),M.return=U,M):(M=f(M,B.children||[]),M.return=U,M)}function F(U,M,B,J,Se){return M===null||M.tag!==7?(M=Hi(B,U.mode,J,Se),M.return=U,M):(M=f(M,B),M.return=U,M)}function Q(U,M,B){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Dc(""+M,U.mode,B),M.return=U,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case S:return B=hl(M.type,M.key,M.props,null,U.mode,B),Ls(B,M),B.return=U,B;case j:return M=Uc(M,U.mode,B),M.return=U,M;case G:return M=Yi(M),Q(U,M,B)}if(Be(M)||Ce(M))return M=Hi(M,U.mode,B,null),M.return=U,M;if(typeof M.then=="function")return Q(U,bl(M),B);if(M.$$typeof===O)return Q(U,gl(U,M),B);Sl(U,M)}return null}function $(U,M,B,J){var Se=M!==null?M.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return Se!==null?null:w(U,M,""+B,J);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case S:return B.key===Se?C(U,M,B,J):null;case j:return B.key===Se?V(U,M,B,J):null;case G:return B=Yi(B),$(U,M,B,J)}if(Be(B)||Ce(B))return Se!==null?null:F(U,M,B,J,null);if(typeof B.then=="function")return $(U,M,bl(B),J);if(B.$$typeof===O)return $(U,M,gl(U,B),J);Sl(U,B)}return null}function P(U,M,B,J,Se){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return U=U.get(B)||null,w(M,U,""+J,Se);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case S:return U=U.get(J.key===null?B:J.key)||null,C(M,U,J,Se);case j:return U=U.get(J.key===null?B:J.key)||null,V(M,U,J,Se);case G:return J=Yi(J),P(U,M,B,J,Se)}if(Be(J)||Ce(J))return U=U.get(B)||null,F(M,U,J,Se,null);if(typeof J.then=="function")return P(U,M,B,bl(J),Se);if(J.$$typeof===O)return P(U,M,B,gl(M,J),Se);Sl(M,J)}return null}function fe(U,M,B,J){for(var Se=null,Ye=null,ge=M,Me=M=0,Le=null;ge!==null&&Me<B.length;Me++){ge.index>Me?(Le=ge,ge=null):Le=ge.sibling;var Fe=$(U,ge,B[Me],J);if(Fe===null){ge===null&&(ge=Le);break}n&&ge&&Fe.alternate===null&&a(U,ge),M=p(Fe,M,Me),Ye===null?Se=Fe:Ye.sibling=Fe,Ye=Fe,ge=Le}if(Me===B.length)return s(U,ge),Pe&&va(U,Me),Se;if(ge===null){for(;Me<B.length;Me++)ge=Q(U,B[Me],J),ge!==null&&(M=p(ge,M,Me),Ye===null?Se=ge:Ye.sibling=ge,Ye=ge);return Pe&&va(U,Me),Se}for(ge=l(ge);Me<B.length;Me++)Le=P(ge,U,Me,B[Me],J),Le!==null&&(n&&Le.alternate!==null&&ge.delete(Le.key===null?Me:Le.key),M=p(Le,M,Me),Ye===null?Se=Le:Ye.sibling=Le,Ye=Le);return n&&ge.forEach(function(fi){return a(U,fi)}),Pe&&va(U,Me),Se}function je(U,M,B,J){if(B==null)throw Error(r(151));for(var Se=null,Ye=null,ge=M,Me=M=0,Le=null,Fe=B.next();ge!==null&&!Fe.done;Me++,Fe=B.next()){ge.index>Me?(Le=ge,ge=null):Le=ge.sibling;var fi=$(U,ge,Fe.value,J);if(fi===null){ge===null&&(ge=Le);break}n&&ge&&fi.alternate===null&&a(U,ge),M=p(fi,M,Me),Ye===null?Se=fi:Ye.sibling=fi,Ye=fi,ge=Le}if(Fe.done)return s(U,ge),Pe&&va(U,Me),Se;if(ge===null){for(;!Fe.done;Me++,Fe=B.next())Fe=Q(U,Fe.value,J),Fe!==null&&(M=p(Fe,M,Me),Ye===null?Se=Fe:Ye.sibling=Fe,Ye=Fe);return Pe&&va(U,Me),Se}for(ge=l(ge);!Fe.done;Me++,Fe=B.next())Fe=P(ge,U,Me,Fe.value,J),Fe!==null&&(n&&Fe.alternate!==null&&ge.delete(Fe.key===null?Me:Fe.key),M=p(Fe,M,Me),Ye===null?Se=Fe:Ye.sibling=Fe,Ye=Fe);return n&&ge.forEach(function(Vj){return a(U,Vj)}),Pe&&va(U,Me),Se}function Qe(U,M,B,J){if(typeof B=="object"&&B!==null&&B.type===N&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case S:e:{for(var Se=B.key;M!==null;){if(M.key===Se){if(Se=B.type,Se===N){if(M.tag===7){s(U,M.sibling),J=f(M,B.props.children),J.return=U,U=J;break e}}else if(M.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===G&&Yi(Se)===M.type){s(U,M.sibling),J=f(M,B.props),Ls(J,B),J.return=U,U=J;break e}s(U,M);break}else a(U,M);M=M.sibling}B.type===N?(J=Hi(B.props.children,U.mode,J,B.key),J.return=U,U=J):(J=hl(B.type,B.key,B.props,null,U.mode,J),Ls(J,B),J.return=U,U=J)}return v(U);case j:e:{for(Se=B.key;M!==null;){if(M.key===Se)if(M.tag===4&&M.stateNode.containerInfo===B.containerInfo&&M.stateNode.implementation===B.implementation){s(U,M.sibling),J=f(M,B.children||[]),J.return=U,U=J;break e}else{s(U,M);break}else a(U,M);M=M.sibling}J=Uc(B,U.mode,J),J.return=U,U=J}return v(U);case G:return B=Yi(B),Qe(U,M,B,J)}if(Be(B))return fe(U,M,B,J);if(Ce(B)){if(Se=Ce(B),typeof Se!="function")throw Error(r(150));return B=Se.call(B),je(U,M,B,J)}if(typeof B.then=="function")return Qe(U,M,bl(B),J);if(B.$$typeof===O)return Qe(U,M,gl(U,B),J);Sl(U,B)}
vendor: 4,776 bytes, line 48
48return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,M!==null&&M.tag===6?(s(U,M.sibling),J=f(M,B),J.return=U,U=J):(s(U,M),J=Dc(B,U.mode,J),J.return=U,U=J),v(U)):s(U,M)}return function(U,M,B,J){try{Us=0;var Se=Qe(U,M,B,J);return zr=null,Se}catch(ge){if(ge===_r||ge===xl)throw ge;var Ye=pn(29,ge,null,U.mode);return Ye.lanes=J,Ye.return=U,Ye}finally{}}}var Gi=Hm(!0),$m=Hm(!1),Xa=!1;function Xc(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ic(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Ia(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Ja(n,a,s){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(Ge&2)!==0){var f=l.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),l.pending=a,a=dl(n),Tm(n,null,s),a}return fl(n,l,a,s),dl(n)}function Bs(n,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194048)!==0)){var l=a.lanes;l&=n.pendingLanes,s|=l,a.lanes=s,E(n,s)}}function Jc(n,a){var s=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var f=null,p=null;if(s=s.firstBaseUpdate,s!==null){do{var v={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};p===null?f=p=v:p=p.next=v,s=s.next}while(s!==null);p===null?f=p=a:p=p.next=a}else f=p=a;s={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:l.shared,callbacks:l.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=a:n.next=a,s.lastBaseUpdate=a}var Kc=!1;function Vs(){if(Kc){var n=Ar;if(n!==null)throw n}}function Hs(n,a,s,l){Kc=!1;var f=n.updateQueue;Xa=!1;var p=f.firstBaseUpdate,v=f.lastBaseUpdate,w=f.shared.pending;if(w!==null){f.shared.pending=null;var C=w,V=C.next;C.next=null,v===null?p=V:v.next=V,v=C;var F=n.alternate;F!==null&&(F=F.updateQueue,w=F.lastBaseUpdate,w!==v&&(w===null?F.firstBaseUpdate=V:w.next=V,F.lastBaseUpdate=C))}if(p!==null){var Q=f.baseState;v=0,F=V=C=null,w=p;do{var $=w.lane&-536870913,P=$!==w.lane;if(P?(Ue&$)===$:(l&$)===$){$!==0&&$===Cr&&(Kc=!0),F!==null&&(F=F.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var fe=n,je=w;$=a;var Qe=s;switch(je.tag){case 1:if(fe=je.payload,typeof fe=="function"){Q=fe.call(Qe,Q,$);break e}Q=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=je.payload,$=typeof fe=="function"?fe.call(Qe,Q,$):fe,$==null)break e;Q=x({},Q,$);break e;case 2:Xa=!0}}$=w.callback,$!==null&&(n.flags|=64,P&&(n.flags|=8192),P=f.callbacks,P===null?f.callbacks=[$]:P.push($))}else P={lane:$,tag:w.tag,payload:w.payload,callback:w.callback,next:null},F===null?(V=F=P,C=Q):F=F.next=P,v|=$;if(w=w.next,w===null){if(w=f.shared.pending,w===null)break;P=w,w=P.next,P.next=null,f.lastBaseUpdate=P,f.shared.pending=null}}while(!0);F===null&&(C=Q),f.baseState=C,f.firstBaseUpdate=V,f.lastBaseUpdate=F,p===null&&(f.shared.lanes=0),ti|=v,n.lanes=v,n.memoizedState=Q}}function Zm(n,a){if(typeof n!="function")throw Error(r(191,n));n.call(a)}function Pm(n,a){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)Zm(s[n],a)}var Mr=A(null),wl=A(0);function qm(n,a){n=za,ie(wl,n),ie(Mr,a),za=n|a.baseLanes}function Qc(){ie(wl,za),ie(Mr,Mr.current)}function Wc(){za=wl.current,q(Mr),q(wl)}var mn=A(null),zn=null;function Ka(n){var a=n.alternate;ie(Tt,Tt.current&1),ie(mn,n),zn===null&&(a===null||Mr.current!==null||a.memoizedState!==null)&&(zn=n)}function ef(n){ie(Tt,Tt.current),ie(mn,n),zn===null&&(zn=n)}function Ym(n){n.tag===22?(ie(Tt,Tt.current),ie(mn,n),zn===null&&(zn=n)):Qa()}function Qa(){ie(Tt,Tt.current),ie(mn,mn.current)}function gn(n){q(mn),zn===n&&(zn=null),q(Tt)}var Tt=A(0);function jl(n){for(var a=n;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||od(s)||ld(s)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var wa=0,_e=null,Je=null,zt=null,Tl=!1,Rr=!1,Xi=!1,Nl=0,$s=0,kr=null,_w=0;function vt(){throw Error(r(321))}function tf(n,a){if(a===null)return!1;for(var s=0;s<a.length&&s<n.length;s++)if(!hn(n[s],a[s]))return!1;return!0}function nf(n,a,s,l,f,p){return wa=p,_e=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,H.H=n===null||n.memoizedState===null?Ag:xf,Xi=!1,p=s(l,f),Xi=!1,Rr&&(p=Gm(
vendor: 11,120 bytes, line 48
48a,s,l,f)),Fm(n),p}function Fm(n){H.H=qs;var a=Je!==null&&Je.next!==null;if(wa=0,zt=Je=_e=null,Tl=!1,$s=0,kr=null,a)throw Error(r(300));n===null||Mt||(n=n.dependencies,n!==null&&ml(n)&&(Mt=!0))}function Gm(n,a,s,l){_e=n;var f=0;do{if(Rr&&(kr=null),$s=0,Rr=!1,25<=f)throw Error(r(301));if(f+=1,zt=Je=null,n.updateQueue!=null){var p=n.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}H.H=_g,p=a(s,l)}while(Rr);return p}function zw(){var n=H.H,a=n.useState()[0];return a=typeof a.then=="function"?Zs(a):a,n=n.useState()[0],(Je!==null?Je.memoizedState:null)!==n&&(_e.flags|=1024),a}function af(){var n=Nl!==0;return Nl=0,n}function rf(n,a,s){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~s}function sf(n){if(Tl){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Tl=!1}wa=0,zt=Je=_e=null,Rr=!1,$s=Nl=0,kr=null}function Qt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?_e.memoizedState=zt=n:zt=zt.next=n,zt}function Nt(){if(Je===null){var n=_e.alternate;n=n!==null?n.memoizedState:null}else n=Je.next;var a=zt===null?_e.memoizedState:zt.next;if(a!==null)zt=a,Je=n;else{if(n===null)throw _e.alternate===null?Error(r(467)):Error(r(310));Je=n,n={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},zt===null?_e.memoizedState=zt=n:zt=zt.next=n}return zt}function El(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zs(n){var a=$s;return $s+=1,kr===null&&(kr=[]),n=Lm(kr,n,a),a=_e,(zt===null?a.memoizedState:zt.next)===null&&(a=a.alternate,H.H=a===null||a.memoizedState===null?Ag:xf),n}function Cl(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Zs(n);if(n.$$typeof===O)return Pt(n)}throw Error(r(438,String(n)))}function of(n){var a=null,s=_e.updateQueue;if(s!==null&&(a=s.memoCache),a==null){var l=_e.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(a={data:l.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),s===null&&(s=El(),_e.updateQueue=s),s.memoCache=a,s=a.data[a.index],s===void 0)for(s=a.data[a.index]=Array(n),l=0;l<n;l++)s[l]=le;return a.index++,s}function ja(n,a){return typeof a=="function"?a(n):a}function Al(n){var a=Nt();return lf(a,Je,n)}function lf(n,a,s){var l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=s;var f=n.baseQueue,p=l.pending;if(p!==null){if(f!==null){var v=f.next;f.next=p.next,p.next=v}a.baseQueue=f=p,l.pending=null}if(p=n.baseState,f===null)n.memoizedState=p;else{a=f.next;var w=v=null,C=null,V=a,F=!1;do{var Q=V.lane&-536870913;if(Q!==V.lane?(Ue&Q)===Q:(wa&Q)===Q){var $=V.revertLane;if($===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),Q===Cr&&(F=!0);else if((wa&$)===$){V=V.next,$===Cr&&(F=!0);continue}else Q={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},C===null?(w=C=Q,v=p):C=C.next=Q,_e.lanes|=$,ti|=$;Q=V.action,Xi&&s(p,Q),p=V.hasEagerState?V.eagerState:s(p,Q)}else $={lane:Q,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},C===null?(w=C=$,v=p):C=C.next=$,_e.lanes|=Q,ti|=Q;V=V.next}while(V!==null&&V!==a);if(C===null?v=p:C.next=w,!hn(p,n.memoizedState)&&(Mt=!0,F&&(s=Ar,s!==null)))throw s;n.memoizedState=p,n.baseState=v,n.baseQueue=C,l.lastRenderedState=p}return f===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function uf(n){var a=Nt(),s=a.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var l=s.dispatch,f=s.pending,p=a.memoizedState;if(f!==null){s.pending=null;var v=f=f.next;do p=n(p,v.action),v=v.next;while(v!==f);hn(p,a.memoizedState)||(Mt=!0),a.memoizedState=p,a.baseQueue===null&&(a.baseState=p),s.lastRenderedState=p}return[p,l]}function Xm(n,a,s){var l=_e,f=Nt(),p=Pe;if(p){if(s===void 0)throw Error(r(407));s=s()}else s=a();var v=!hn((Je||f).memoizedState,s);if(v&&(f.memoizedState=s,Mt=!0),f=f.queue,df(Km.bind(null,l,f,n),[n]),f.getSnapshot!==a||v||zt!==null&&zt.memoizedState.tag&1){if(l.flags|=2048,Or(9,{destroy:void 0},Jm.bind(null,l,f,s,a),null),We===null)throw Error(r(349));p||(wa&127)!==0||Im(l,a,s)}return s}function Im(n,a,s){n.flags|=16384,n={getSnapshot:a,value:s},a=_e.updateQueue,a===null?(a=El(),_e.updateQueue=a,a.stores=[n]):(s=a.stores,s===null?a.stores=[n]:s.push(n))}function Jm(n,a,s,l){a.value=s,a.getSnapshot=l,Qm(a)&&Wm(n)}function Km(n,a,s){return s(function(){Qm(a)&&Wm(n)})}function Qm(n){var a=n.getSnapshot;n=n.value;try{var s=a();return!hn(n,s)}catch{return!0}}function Wm(n){var a=Vi(n,2);a!==null&&cn(a,n,2)}function cf(n){var a=Qt();if(typeof n=="function"){var s=n;if(n=s(),Xi){Zn(!0);try{s()}finally{Zn(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:n},a}function eg(n,a,s,l){return n.baseState=s,lf(n,Je,typeof l=="function"?l:ja)}function Mw(n,a,s,l,f){if(Ml(n))throw Error(r(485));if(n=a.action,n!==null){var p={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){p.listeners.push(v)}};H.T!==null?s(!0):p.isTransition=!1,l(p),s=a.pending,s===null?(p.next=a.pending=p,tg(a,p)):(p.next=s.next,a.pending=s.next=p)}}function tg(n,a){var s=a.action,l=a.payload,f=n.state;if(a.isTransition){var p=H.T,v={};H.T=v;try{var w=s(f,l),C=H.S;C!==null&&C(v,w),ng(n,a,w)}catch(V){ff(n,a,V)}finally{p!==null&&v.types!==null&&(p.types=v.types),H.T=p}}else try{p=s(f,l),ng(n,a,p)}catch(V){ff(n,a,V)}}function ng(n,a,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){ag(n,a,l)},function(l){return ff(n,a,l)}):ag(n,a,s)}function ag(n,a,s){a.status="fulfilled",a.value=s,ig(a),n.state=s,a=n.pending,a!==null&&(s=a.next,s===a?n.pending=null:(s=s.next,a.next=s,tg(n,s)))}function ff(n,a,s){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do a.status="rejected",a.reason=s,ig(a),a=a.next;while(a!==l)}n.action=null}function ig(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function rg(n,a){return a}function sg(n,a){if(Pe){var s=We.formState;if(s!==null){e:{var l=_e;if(Pe){if(rt){t:{for(var f=rt,p=_n;f.nodeType!==8;){if(!p){f=null;break t}if(f=Mn(f.nextSibling),f===null){f=null;break t}}p=f.data,f=p==="F!"||p==="F"?f:null}if(f){rt=Mn(f.nextSibling),l=f.data==="F!";break e}}Fa(l)}l=!1}l&&(a=s[0])}}return s=Qt(),s.memoizedState=s.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rg,lastRenderedState:a},s.queue=l,s=Ng.bind(null,_e,l),l.dispatch=s,l=cf(!1),p=yf.bind(null,_e,!1,l.queue),l=Qt(),f={state:a,dispatch:null,action:n,pending:null},l.queue=f,s=Mw.bind(null,_e,f,p,s),f.dispatch=s,l.memoizedState=n,[a,s,!1]}function og(n){var a=Nt();return lg(a,Je,n)}function lg(n,a,s){if(a=lf(n,a,rg)[0],n=Al(ja)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var l=Zs(a)}catch(v){throw v===_r?xl:v}else l=a;a=Nt();var f=a.queue,p=f.dispatch;return s!==a.memoizedState&&(_e.flags|=2048,Or(9,{destroy:void 0},Rw.bind(null,f,s),null)),[l,p,n]}function Rw(n,a){n.action=a}function ug(n){var a=Nt(),s=Je;if(s!==null)return lg(a,s,n);Nt(),a=a.memoizedState,s=Nt();var l=s.queue.dispatch;return s.memoizedState=n,[a,l,!1]}function Or(n,a,s,l){return n={tag:n,create:s,deps:l,inst:a,next:null},a=_e.updateQueue,a===null&&(a=El(),_e.updateQueue=a),s=a.lastEffect,s===null?a.lastEffect=n.next=n:(l=s.next,s.next=n,n.next=l,a.lastEffect=n),n}function cg(){return Nt().memoizedState}function _l(n,a,s,l){var f=Qt();_e.flags|=n,f.memoizedState=Or(1|a,{destroy:void 0},s,l===void 0?null:l)}function zl(n,a,s,l){var f=Nt();l=l===void 0?null:l;var p=f.memoizedState.inst;Je!==null&&l!==null&&tf(l,Je.memoizedState.deps)?f.memoizedState=Or(a,p,s,l):(_e.flags|=n,f.memoizedState=Or(1|a,p,s,l))}function fg(n,a){_l(8390656,8,n,a)}function df(n,a){zl(2048,8,n,a)}function kw(n){_e.flags|=4;var a=_e.updateQueue;if(a===null)a=El(),_e.updateQueue=a,a.events=[n];else{var s=a.events;s===null?a.events=[n]:s.push(n)}}function dg(n){var a=Nt().memoizedState;return kw({ref:a,nextImpl:n}),function(){if((Ge&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function hg(n,a){return zl(4,2,n,a)}function pg(n,a){return zl(4,4,n,a)}function mg(n,a){if(typeof a=="function"){n=n();var s=a(n);return function(){typeof s=="function"?s():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function gg(n,a,s){s=s!=null?s.concat([n]):null,zl(4,4,mg.bind(null,a,n),s)}function hf(){}function yg(n,a){var s=Nt();a=a===void 0?null:a;var l=s.memoizedState;return a!==null&&tf(a,l[1])?l[0]:(s.memoizedState=[n,a],n)}function xg(n,a){var s=Nt();a=a===void 0?null:a;var l=s.memoizedState;if(a!==null&&tf(a,l[1]))return l[0];if(l=n(),Xi){Zn(!0);try{n()}finally{Zn(!1)}}return s.memoizedState=[l,a],l}function pf(n,a,s){return s===void 0||(wa&1073741824)!==0&&(Ue&261930)===0?n.memoizedState=a:(n.memoizedState=s,n=vy(),_e.lanes|=n,ti|=n,s)}function vg(n,a,s,l){return hn(s,a)?s:Mr.current!==null?(n=pf(n,s,l),hn(n,a)||(Mt=!0),n):(wa&42)===0||(wa&1073741824)!==0&&(Ue&261930)===0?(Mt=!0,n.memoizedState=s):(n=vy(),_e.lanes|=n,ti|=n,a)}function bg(n,a,s,l,f){var p=K.p;K.p=p!==0&&8>p?p:8;var v=H.T,w={};H.T=w,yf(n,!1,a,s);try{var C=f(),V=H.S;if(V!==null&&V(w,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var F=Aw(C,l);Ps(n,a,F,vn(n))}else Ps(n,a,l,vn(n))}catch(Q){Ps(n,a,{then:function(){},status:"rejected",reason:Q},vn())}finally{K.p=p,v!==null&&w.types!==null&&(v.types=w.types),H.T=v}}function Ow(){}function mf(n,a,s,l){if(n.tag!==5)throw Error(r(476));var f=Sg(n).queue;bg(n,f,a,te,s===null?Ow:function(){return wg(n),s(l)})}function Sg(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:te},next:null};var s={};return a.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:s},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function wg(n){var a=Sg(n);a.next===null&&(a=n.alternate.memoizedState),Ps(n,a.next.queue,{},vn())}function gf(){return Pt(so)}function jg(){return Nt().memoizedState}function Tg(){return Nt().memoizedState}function Dw(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var s=vn();n=Ia(s);var l=Ja(a,n,s);l!==null&&(cn(l,a,s),Bs(l,a,s)),a={cache:qc()},n.payload=a;return}a=a.return}}function Uw(n,a,s){var l=vn();s={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ml(n)?Eg(a,s):(s=kc(n,a,s,l),s!==null&&(cn(s,n,l),Cg(s,a,l)))}function Ng(n,a,s){var l=vn();Ps(n,a,s,l)}function Ps(n,a,s,l){var f={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Ml(n))Eg(a,f);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=a.lastRenderedReducer,p!==null))try{var v=a.lastRenderedState,w=p(v,s
vendor: 5,114 bytes, line 48
48);if(f.hasEagerState=!0,f.eagerState=w,hn(w,v))return fl(n,a,f,0),We===null&&cl(),!1}catch{}finally{}if(s=kc(n,a,f,l),s!==null)return cn(s,n,l),Cg(s,a,l),!0}return!1}function yf(n,a,s,l){if(l={lane:2,revertLane:If(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ml(n)){if(a)throw Error(r(479))}else a=kc(n,s,l,2),a!==null&&cn(a,n,2)}function Ml(n){var a=n.alternate;return n===_e||a!==null&&a===_e}function Eg(n,a){Rr=Tl=!0;var s=n.pending;s===null?a.next=a:(a.next=s.next,s.next=a),n.pending=a}function Cg(n,a,s){if((s&4194048)!==0){var l=a.lanes;l&=n.pendingLanes,s|=l,a.lanes=s,E(n,s)}}var qs={readContext:Pt,use:Cl,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt};qs.useEffectEvent=vt;var Ag={readContext:Pt,use:Cl,useCallback:function(n,a){return Qt().memoizedState=[n,a===void 0?null:a],n},useContext:Pt,useEffect:fg,useImperativeHandle:function(n,a,s){s=s!=null?s.concat([n]):null,_l(4194308,4,mg.bind(null,a,n),s)},useLayoutEffect:function(n,a){return _l(4194308,4,n,a)},useInsertionEffect:function(n,a){_l(4,2,n,a)},useMemo:function(n,a){var s=Qt();a=a===void 0?null:a;var l=n();if(Xi){Zn(!0);try{n()}finally{Zn(!1)}}return s.memoizedState=[l,a],l},useReducer:function(n,a,s){var l=Qt();if(s!==void 0){var f=s(a);if(Xi){Zn(!0);try{s(a)}finally{Zn(!1)}}}else f=a;return l.memoizedState=l.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},l.queue=n,n=n.dispatch=Uw.bind(null,_e,n),[l.memoizedState,n]},useRef:function(n){var a=Qt();return n={current:n},a.memoizedState=n},useState:function(n){n=cf(n);var a=n.queue,s=Ng.bind(null,_e,a);return a.dispatch=s,[n.memoizedState,s]},useDebugValue:hf,useDeferredValue:function(n,a){var s=Qt();return pf(s,n,a)},useTransition:function(){var n=cf(!1);return n=bg.bind(null,_e,n.queue,!0,!1),Qt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,s){var l=_e,f=Qt();if(Pe){if(s===void 0)throw Error(r(407));s=s()}else{if(s=a(),We===null)throw Error(r(349));(Ue&127)!==0||Im(l,a,s)}f.memoizedState=s;var p={value:s,getSnapshot:a};return f.queue=p,fg(Km.bind(null,l,p,n),[n]),l.flags|=2048,Or(9,{destroy:void 0},Jm.bind(null,l,p,s,a),null),s},useId:function(){var n=Qt(),a=We.identifierPrefix;if(Pe){var s=ta,l=ea;s=(l&~(1<<32-Gt(l)-1)).toString(32)+s,a="_"+a+"R_"+s,s=Nl++,0<s&&(a+="H"+s.toString(32)),a+="_"}else s=_w++,a="_"+a+"r_"+s.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:gf,useFormState:sg,useActionState:sg,useOptimistic:function(n){var a=Qt();a.memoizedState=a.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=s,a=yf.bind(null,_e,!0,s),s.dispatch=a,[n,a]},useMemoCache:of,useCacheRefresh:function(){return Qt().memoizedState=Dw.bind(null,_e)},useEffectEvent:function(n){var a=Qt(),s={impl:n};return a.memoizedState=s,function(){if((Ge&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}},xf={readContext:Pt,use:Cl,useCallback:yg,useContext:Pt,useEffect:df,useImperativeHandle:gg,useInsertionEffect:hg,useLayoutEffect:pg,useMemo:xg,useReducer:Al,useRef:cg,useState:function(){return Al(ja)},useDebugValue:hf,useDeferredValue:function(n,a){var s=Nt();return vg(s,Je.memoizedState,n,a)},useTransition:function(){var n=Al(ja)[0],a=Nt().memoizedState;return[typeof n=="boolean"?n:Zs(n),a]},useSyncExternalStore:Xm,useId:jg,useHostTransitionStatus:gf,useFormState:og,useActionState:og,useOptimistic:function(n,a){var s=Nt();return eg(s,Je,n,a)},useMemoCache:of,useCacheRefresh:Tg};xf.useEffectEvent=dg;var _g={readContext:Pt,use:Cl,useCallback:yg,useContext:Pt,useEffect:df,useImperativeHandle:gg,useInsertionEffect:hg,useLayoutEffect:pg,useMemo:xg,useReducer:uf,useRef:cg,useState:function(){return uf(ja)},useDebugValue:hf,useDeferredValue:function(n,a){var s=Nt();return Je===null?pf(s,n,a):vg(s,Je.memoizedState,n,a)},useTransition:function(){var n=uf(ja)[0],a=Nt().memoizedState;return[typeof n=="boolean"?n:Zs(n),a]},useSyncExternalStore:Xm,useId:jg,useHostTransitionStatus:gf,useFormState:ug,useActionState:ug,useOptimistic:function(n,a){var s=Nt();return Je!==null?eg(s,Je,n,a):(s.baseState=n,[n,s.queue.dispatch])},useMemoCache:of,useCacheRefresh:Tg};_g.useEffectEvent=dg;function vf(n,a,s,l){a=n.memoizedState,s=s(l,a),s=s==null?a:x({},a,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var bf={enqueueSetState:function(n,a,s){n=n._reactInternals;var l=vn(),f=Ia(l);f.payload=a,s!=null&&(f.callback=s),a=Ja(n,f,l),a!==null&&(cn(a,n,l),Bs(a,n,l))},enqueueReplaceState:function(n,a,s){n=n._reactInternals;var l=vn(),f=Ia(l);f.tag=1,f.payload=a,s!=null&&(f.callback=s),a=Ja(n,f,l),a!==null&&(cn(a,n,l),Bs(a,n,l))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var s=vn(),l=Ia(s);l.tag=2,a!=null&&(l.callback=a),a=Ja(n,l,s),a!==null&&(cn(a,n,s),Bs(a,n,s)
vendor: 22,798 bytes, line 48
48)}};function zg(n,a,s,l,f,p,v){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,p,v):a.prototype&&a.prototype.isPureReactComponent?!zs(s,l)||!zs(f,p):!0}function Mg(n,a,s,l){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,l),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,l),a.state!==n&&bf.enqueueReplaceState(a,a.state,null)}function Ii(n,a){var s=a;if("ref"in a){s={};for(var l in a)l!=="ref"&&(s[l]=a[l])}if(n=n.defaultProps){s===a&&(s=x({},s));for(var f in n)s[f]===void 0&&(s[f]=n[f])}return s}function Rg(n){ul(n)}function kg(n){console.error(n)}function Og(n){ul(n)}function Rl(n,a){try{var s=n.onUncaughtError;s(a.value,{componentStack:a.stack})}catch(l){setTimeout(function(){throw l})}}function Dg(n,a,s){try{var l=n.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Sf(n,a,s){return s=Ia(s),s.tag=3,s.payload={element:null},s.callback=function(){Rl(n,a)},s}function Ug(n){return n=Ia(n),n.tag=3,n}function Lg(n,a,s,l){var f=s.type.getDerivedStateFromError;if(typeof f=="function"){var p=l.value;n.payload=function(){return f(p)},n.callback=function(){Dg(a,s,l)}}var v=s.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(n.callback=function(){Dg(a,s,l),typeof f!="function"&&(ni===null?ni=new Set([this]):ni.add(this));var w=l.stack;this.componentDidCatch(l.value,{componentStack:w!==null?w:""})})}function Lw(n,a,s,l,f){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(a=s.alternate,a!==null&&Er(a,s,f,!0),s=mn.current,s!==null){switch(s.tag){case 31:case 13:return zn===null?ql():s.alternate===null&&bt===0&&(bt=3),s.flags&=-257,s.flags|=65536,s.lanes=f,l===vl?s.flags|=16384:(a=s.updateQueue,a===null?s.updateQueue=new Set([l]):a.add(l),Ff(n,l,f)),!1;case 22:return s.flags|=65536,l===vl?s.flags|=16384:(a=s.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=a):(s=a.retryQueue,s===null?a.retryQueue=new Set([l]):s.add(l)),Ff(n,l,f)),!1}throw Error(r(435,s.tag))}return Ff(n,l,f),ql(),!1}if(Pe)return a=mn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,l!==Vc&&(n=Error(r(422),{cause:l}),ks(En(n,s)))):(l!==Vc&&(a=Error(r(423),{cause:l}),ks(En(a,s))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,l=En(l,s),f=Sf(n.stateNode,l,f),Jc(n,f),bt!==4&&(bt=2)),!1;var p=Error(r(520),{cause:l});if(p=En(p,s),Qs===null?Qs=[p]:Qs.push(p),bt!==4&&(bt=2),a===null)return!0;l=En(l,s),s=a;do{switch(s.tag){case 3:return s.flags|=65536,n=f&-f,s.lanes|=n,n=Sf(s.stateNode,l,n),Jc(s,n),!1;case 1:if(a=s.type,p=s.stateNode,(s.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(ni===null||!ni.has(p))))return s.flags|=65536,f&=-f,s.lanes|=f,f=Ug(f),Lg(f,n,s,l),Jc(s,f),!1}s=s.return}while(s!==null);return!1}var wf=Error(r(461)),Mt=!1;function qt(n,a,s,l){a.child=n===null?$m(a,null,s,l):Gi(a,n.child,s,l)}function Bg(n,a,s,l,f){s=s.render;var p=a.ref;if("ref"in l){var v={};for(var w in l)w!=="ref"&&(v[w]=l[w])}else v=l;return Pi(a),l=nf(n,a,s,v,p,f),w=af(),n!==null&&!Mt?(rf(n,a,f),Ta(n,a,f)):(Pe&&w&&Lc(a),a.flags|=1,qt(n,a,l,f),a.child)}function Vg(n,a,s,l,f){if(n===null){var p=s.type;return typeof p=="function"&&!Oc(p)&&p.defaultProps===void 0&&s.compare===null?(a.tag=15,a.type=p,Hg(n,a,p,l,f)):(n=hl(s.type,null,l,a,a.mode,f),n.ref=a.ref,n.return=a,a.child=n)}if(p=n.child,!zf(n,f)){var v=p.memoizedProps;if(s=s.compare,s=s!==null?s:zs,s(v,l)&&n.ref===a.ref)return Ta(n,a,f)}return a.flags|=1,n=xa(p,l),n.ref=a.ref,n.return=a,a.child=n}function Hg(n,a,s,l,f){if(n!==null){var p=n.memoizedProps;if(zs(p,l)&&n.ref===a.ref)if(Mt=!1,a.pendingProps=l=p,zf(n,f))(n.flags&131072)!==0&&(Mt=!0);else return a.lanes=n.lanes,Ta(n,a,f)}return jf(n,a,s,l,f)}function $g(n,a,s,l){var f=l.children,p=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((a.flags&128)!==0){if(p=p!==null?p.baseLanes|s:s,n!==null){for(l=a.child=n.child,f=0;l!==null;)f=f|l.lanes|l.childLanes,l=l.sibling;l=f&~p}else l=0,a.child=null;return Zg(n,a,p,s,l)}if((s&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&yl(a,p!==null?p.cachePool:null),p!==null?qm(a,p):Qc(),Ym(a);else return l=a.lanes=536870912,Zg(n,a,p!==null?p.baseLanes|s:s,s,l)}else p!==null?(yl(a,p.cachePool),qm(a,p),Qa(),a.memoizedState=null):(n!==null&&yl(a,null),Qc(),Qa());return qt(n,a,f,s),a.child}function Ys(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Zg(n,a,s,l,f){var p=Fc();return p=p===null?null:{parent:_t._currentValue,pool:p},a.memoizedState={baseLanes:s,cachePool:p},n!==null&&yl(a,null),Qc(),Ym(a),n!==null&&Er(n,a,l,!0),a.childLanes=f,null}function kl(n,a){return a=Dl({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function Pg(n,a,s){return Gi(a,n.child,null,s),n=kl(a,a.pendingProps),n.flags|=2,gn(a),a.memoizedState=null,n}function Bw(n,a,s){var l=a.pendingProps,f=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(Pe){if(l.mode==="hidden")return n=kl(a,l),a.lanes=536870912,Ys(null,n);if(ef(a),(n=rt)?(n=tx(n,_n),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:qa!==null?{id:ea,overflow:ta}:null,retryLane:536870912,hydrationErrors:null},s=Em(n),s.return=a,a.child=s,Zt=a,rt=null)):n=null,n===null)throw Fa(a);return a.lanes=536870912,null}return kl(a,l)}var p=n.memoizedState;if(p!==null){var v=p.dehydrated;if(ef(a),f)if(a.flags&256)a.flags&=-257,a=Pg(n,a,s);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(r(558));else if(Mt||Er(n,a,s,!1),f=(s&n.childLanes)!==0,Mt||f){if(l=We,l!==null&&(v=D(l,s),v!==0&&v!==p.retryLane))throw p.retryLane=v,Vi(n,v),cn(l,n,v),wf;ql(),a=Pg(n,a,s)}else n=p.treeContext,rt=Mn(v.nextSibling),Zt=a,Pe=!0,Ya=null,_n=!1,n!==null&&_m(a,n),a=kl(a,l),a.flags|=4096;return a}return n=xa(n.child,{mode:l.mode,children:l.children}),n.ref=a.ref,a.child=n,n.return=a,n}function Ol(n,a){var s=a.ref;if(s===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(n===null||n.ref!==s)&&(a.flags|=4194816)}}function jf(n,a,s,l,f){return Pi(a),s=nf(n,a,s,l,void 0,f),l=af(),n!==null&&!Mt?(rf(n,a,f),Ta(n,a,f)):(Pe&&l&&Lc(a),a.flags|=1,qt(n,a,s,f),a.child)}function qg(n,a,s,l,f,p){return Pi(a),a.updateQueue=null,s=Gm(a,l,s,f),Fm(n),l=af(),n!==null&&!Mt?(rf(n,a,p),Ta(n,a,p)):(Pe&&l&&Lc(a),a.flags|=1,qt(n,a,s,p),a.child)}function Yg(n,a,s,l,f){if(Pi(a),a.stateNode===null){var p=wr,v=s.contextType;typeof v=="object"&&v!==null&&(p=Pt(v)),p=new s(l,p),a.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=bf,a.stateNode=p,p._reactInternals=a,p=a.stateNode,p.props=l,p.state=a.memoizedState,p.refs={},Xc(a),v=s.contextType,p.context=typeof v=="object"&&v!==null?Pt(v):wr,p.state=a.memoizedState,v=s.getDerivedStateFromProps,typeof v=="function"&&(vf(a,s,v,l),p.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(v=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),v!==p.state&&bf.enqueueReplaceState(p,p.state,null),Hs(a,l,p,f),Vs(),p.state=a.memoizedState),typeof p.componentDidMount=="function"&&(a.flags|=4194308),l=!0}else if(n===null){p=a.stateNode;var w=a.memoizedProps,C=Ii(s,w);p.props=C;var V=p.context,F=s.contextType;v=wr,typeof F=="object"&&F!==null&&(v=Pt(F));var Q=s.getDerivedStateFromProps;F=typeof Q=="function"||typeof p.getSnapshotBeforeUpdate=="function",w=a.pendingProps!==w,F||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w||V!==v)&&Mg(a,p,l,v),Xa=!1;var $=a.memoizedState;p.state=$,Hs(a,l,p,f),Vs(),V=a.memoizedState,w||$!==V||Xa?(typeof Q=="function"&&(vf(a,s,Q,l),V=a.memoizedState),(C=Xa||zg(a,s,C,l,$,V,v))?(F||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(a.flags|=4194308)):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=l,a.memoizedState=V),p.props=l,p.state=V,p.context=v,l=C):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),l=!1)}else{p=a.stateNode,Ic(n,a),v=a.memoizedProps,F=Ii(s,v),p.props=F,Q=a.pendingProps,$=p.context,V=s.contextType,C=wr,typeof V=="object"&&V!==null&&(C=Pt(V)),w=s.getDerivedStateFromProps,(V=typeof w=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(v!==Q||$!==C)&&Mg(a,p,l,C),Xa=!1,$=a.memoizedState,p.state=$,Hs(a,l,p,f),Vs();var P=a.memoizedState;v!==Q||$!==P||Xa||n!==null&&n.dependencies!==null&&ml(n.dependencies)?(typeof w=="function"&&(vf(a,s,w,l),P=a.memoizedState),(F=Xa||zg(a,s,F,l,$,P,C)||n!==null&&n.dependencies!==null&&ml(n.dependencies))?(V||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(l,P,C),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(l,P,C)),typeof p.componentDidUpdate=="function"&&(a.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof p.componentDidUpdate!="function"||v===n.memoizedProps&&$===n.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&$===n.memoizedState||(a.flags|=1024),a.memoizedProps=l,a.memoizedState=P),p.props=l,p.state=P,p.context=C,l=F):(typeof p.componentDidUpdate!="function"||v===n.memoizedProps&&$===n.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&$===n.memoizedState||(a.flags|=1024),l=!1)}return p=l,Ol(n,a),l=(a.flags&128)!==0,p||l?(p=a.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:p.render(),a.flags|=1,n!==null&&l?(a.child=Gi(a,n.child,null,f),a.child=Gi(a,null,s,f)):qt(n,a,s,f),a.memoizedState=p.state,n=a.child):n=Ta(n,a,f),n}function Fg(n,a,s,l){return $i(),a.flags|=256,qt(n,a,s,l),a.child}var Tf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nf(n){return{baseLanes:n,cachePool:Dm()}}function Ef(n,a,s){return n=n!==null?n.childLanes&~s:0,a&&(n|=xn),n}function Gg(n,a,s){var l=a.pendingProps,f=!1,p=(a.flags&128)!==0,v;if((v=p)||(v=n!==null&&n.memoizedState===null?!1:(Tt.current&2)!==0),v&&(f=!0,a.flags&=-129),v=(a.flags&32)!==0,a.flags&=-33,n===null){if(Pe){if(f?Ka(a):Qa(),(n=rt)?(n=tx(n,_n),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:qa!==null?{id:ea,overflow:ta}:null,retryLane:536870912,hydrationErrors:null},s=Em(n),s.return=a,a.child=s,Zt=a,rt=null)):n=null,n===null)throw Fa(a);return ld(n)?a.lanes=32:a.lanes=536870912,null}var w=l.children;return l=l.fallback,f?(Qa(),f=a.mode,w=Dl({mode:"hidden",children:w},f),l=Hi(l,f,s,null),w.return=a,l.return=a,w.sibling=l,a.child=w,l=a.child,l.memoizedState=Nf(s),l.childLanes=Ef(n,v,s),a.memoizedState=Tf,Ys(null,l)):(Ka(a),Cf(a,w))}var C=n.memoizedState;if(C!==null&&(w=C.dehydrated,w!==null)){if(p)a.flags&256?(Ka(a),a.flags&=-257,a=Af(n,a,s)):a.memoizedState!==null?(Qa(),a.child=n.child,a.flags|=128,a=null):(Qa(),w=l.fallback,f=a.mode,l=Dl({mode:"visible",children:l.children},f),w=Hi(w,f,s,null),w.flags|=2,l.return=a,w.return=a,l.sibling=w,a.child=l,Gi(a,n.child,null,s),l=a.child,l.memoizedState=Nf(s),l.childLanes=Ef(n,v,s),a.memoizedState=Tf,a=Ys(null,l));else if(Ka(a),ld(w)){if(v=w.nextSibling&&w.nextSibling.dataset,v)var V=v.dgst;v=V,l=Error(r(419)),l.stack="",l.digest=v,ks({value:l,source:null,stack:null}),a=Af(n,a,s)}else if(Mt||Er(n,a,s,!1),v=(s&n.childLanes)!==0,Mt||v){if(v=We,v!==null&&(l=D(v,s),l!==0&&l!==C.retryLane))throw C.retryLane=l,Vi(n,l),cn(v,n,l),wf;od(w)||ql(),a=Af(n,a,s)}else od(w)?(a.flags|=192,a.child=n.child,a=null):(n=C.treeContext,rt=Mn(w.nextSibling),Zt=a,Pe=!0,Ya=null,_n=!1,n!==null&&_m(a,n),a=Cf(a,l.children),a.flags|=4096);return a}return f?(Qa(),w=l.fallback,f=a.mode,C=n.child,V=C.sibling,l=xa(C,{mode:"hidden",children:l.children}),l.subtreeFlags=C.subtreeFlags&65011712,V!==null?w=xa(V,w):(w=Hi(w,f,s,null),w.flags|=2),w.return=a,l.return=a,l.sibling=w,a.child=l,Ys(null,l),l=a.child,w=n.child.memoizedState,w===null?w=Nf(s):(f=w.cachePool,f!==null?(C=_t._currentValue,f=f.parent!==C?{parent:C,pool:C}:f):f=Dm(),w={baseLanes:w.baseLanes|s,cachePool:f}),l.memoizedState=w,l.childLanes=Ef(n,v,s),a.memoizedState=Tf,Ys(n.child,l)):(Ka(a),s=n.child,n=s.sibling,s=xa(s,{mode:"visible",children:l.children}),s.return=a,s.sibling=null,n!==null&&(v=a.deletions,v===null?(a.deletions=[n],a.flags|=16):v.push(n)),a.child=s,a.memoizedState=null,s)}function Cf(n,a){return a=Dl({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Dl(n,a){return n=pn(22,n,null,a),n.lanes=0,n}function Af(n,a,s){return Gi(a,n.child,null,s),n=Cf(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function Xg(n,a,s){n.lanes|=a;var l=n.alternate;l!==null&&(l.lanes|=a),Zc(n.return,a,s)}function _f(n,a,s,l,f,p){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:f,treeForkCount:p}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=l,v.tail=s,v.tailMode=f,v.treeForkCount=p)}function Ig(n,a,s){var l=a.pendingProps,f=l.revealOrder,p=l.tail;l=l.children;var v=Tt.current,w=(v&2)!==0;if(w?(v=v&1|2,a.flags|=128):v&=1,ie(Tt,v),qt(n,a,l,s),l=Pe?Rs:0,!w&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Xg(n,s,a);else if(n.tag===19)Xg(n,s,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(f){case"forwards":for(s=a.child,f=null;s!==null;)n=s.alternate,n!==null&&jl(n)===null&&(f=s),s=s.sibling;s=f,s===null?(f=a.child,a.child=null):(f=s.sibling,s.sibling=null),_f(a,!1,f,s,p,l);break;case"backwards":case"unstable_legacy-backwards":for(s=null,f=a.child,a.child=null;f!==null;){if(n=f.alternate,n!==null&&jl(n)===null){a.child=f;break}n=f.sibling,f.sibling=s,s=f,f=n}_f(a,!0,s,null,p,l);break;case"together":_f(a,!1,null,null,void 0,l);break;default:a.memoizedState=null}return a.child}function Ta(n,a,s){if(n!==null&&(a.dependencies=n.dependencies),ti|=a.lanes,(s&a.childLanes)===0)if(n!==null){if(Er(n,a,s,!1),(s&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(r(153));if(a.child!==null){for(n=a.child,s=xa(n,n.pendingProps),a.child=s,s.return=a;n.sibling!==null;)n=n.sibling,s=s.sibling=xa(n,n.pendingProps),s.return=a;s.sibling=null}return a.child}function zf(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&ml(n)))}function Vw(n,a,s){switch(a.tag){case 3:ft(a,a.stateNode.containerInfo),Ga(a,_t,n.memoizedState.cache),$i();break;case 27:case 5:Ei(a);break;case 4:ft(a,a.stateNode.containerInfo);break;case 10:Ga(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,ef(a),null;break;case 13:var l=a.memoizedState;if(l!==null)return l.dehydrated!==null?(Ka(a),a.flags|=128,null):(s&a.child.childLanes)!==0?Gg(n,a,s):(Ka(a),n=Ta(n,a,s),n!==null?n.sibling:null);Ka(a);break;case 19:var f=(n.flags&128)!==0;if(l=(s&a.childLanes)!==0,l||(Er(n,a,s,!1),l=(s&a.childLanes)!==0),f){if(l)return Ig(n,a,s);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ie(Tt,Tt.current),l)break;return null;case 22:return a.lanes=0,$g(n,a,s,a.pendingProps);case 24:Ga(a,_t,n.memoizedState.cache)}return Ta(n,a,s)}function Jg(n,a,s){if(n!==null)if(n.memoizedProps!==a.pendingProps)Mt=!0;else{if(!zf(n,s)&&(a.flags&128)===0)return Mt=!1,Vw(n,a,s);Mt=(n.flags&131072)!==0}else Mt=!1,Pe&&(a.flags&1048576)!==0&&Am(a,Rs,a.index);switch(a.lanes=0,a.tag){case 16:e:{var l=a.pendingProps;if(n=Yi(a.elementType),a.type=n,typeof n=="function")Oc(n)?(l=Ii(n,l),a.tag=1,a=Yg(null,a,n,l,s)):(a.tag=0,a=jf(null,a,n,l,s));else{if(n!=null){var f=n.$$typeof;if(f===I){a.tag=11,a=Bg(null,a,n,l,s);break e}else if(f===z){a.tag=14,a=Vg(null,a,n,l,s);break e}}throw a=ze(n)||n,Error(r(306,a,""))}}return a;case 0:return jf(n,a,a.type,a.pendingProps,s);case 1:return l=a.type,f=Ii(l,a.pendingProps),Yg(n,a,l,f,s);case 3:e:{if(ft(a,a.stateNode.containerInfo),n===null)throw Error(r(387));l=a.pendingProps;var p=a.memoizedState;f=p.element,Ic(n,a),Hs(a,l,null,s);var v=a.memoizedState;if(l=v.cache,Ga(a,_t,l),l!==p.cache&&Pc(a,[_t],s,!0),Vs(),l=v.element,p.isDehydrated)if(p={element:l,isDehydrated:!1,cache:v.cache},a.updateQueue.baseState=p,a.memoizedState=p,a.flags&256){a=Fg(n,a,l,s);break e}else if(l!==f){f=En(Error(r(424)),a),ks(f),a=Fg(n,a,l,s);break e}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(rt=Mn(n.firstChild),Zt=a,Pe=!0,Ya=null,_n=!0,s=$m(a,null,l,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if($i(),l===f){a=Ta(n,a,s);break e}qt(n,a,l,s)}a=a.child}return a;case 26:return Ol(n,a),n===null?(s=ox(a.type,null,a.pendingProps,null))?a.memoizedState=s:Pe||(s=a.type,n=a.pendingProps,l=Kl(Te.current).createElement(s),l[se]=a,l[oe]=n,Yt(l,s,n),ot(l),a.stateNode=l):a.memoizedState=ox(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return Ei(a),n===null&&Pe&&(l=a.stateNode=ix(a.type,a.pendingProps,Te.current),Zt=a,_n=!0,f=rt,si(a.type)?(ud=f,rt=Mn(l.firstChild)):rt=f),qt(n,a,a.pendingProps.children,s),Ol(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&Pe&&((f=l=rt)&&(l=mj(l,a.type,a.pendingProps,_n),l!==null?(a.stateNode=l,Zt=a,rt=Mn(l.firstChild),_n=!1,f=!0):f=!1),f||Fa(a)),Ei(a),f=a.type,p=a.pendingProps,v=n!==null?n.memoizedProps:null,l=p.children,id(f,p)?l=null:v!==null&&id(f,v)&&(a.flags|=32),a.memoizedState!==null&&(f=nf(n,a,zw,null,null,s),so._currentValue=f),Ol(n,a),qt(n,a,l,s),a.child;case 6:return n===null&&Pe&&((n=s=rt)&&(s=gj(s,a.pendingProps,_n),s!==null?(a.stateNode=s,Zt=a,rt=null,n=!0):n=!1),n||Fa(a)),null;case 13:return Gg(n,a,s);case 4:return ft(a,a.stateNode.containerInfo),l=a.pendingProps,n===null?a.child=Gi(a,null,l,s):qt(n,a,l,s),a.child;case 11:return Bg(n,a,a.type,a.pendingProps,s);case 7:return qt(n,a,a.pendingProps,s),a.child;case 8:return qt(n,a,a.pendingProps.children,s),a.child;case 12:return qt(n,a,a.pendingProps.children,s),a.child;case 10:return l=a.pendingProps,Ga(a,a.type,l.value),qt(n,a,l.children,s),a.child;case 9:return f=a.type._context,l=a.pendingProps.children,Pi(a),f=Pt(f),l=l(f),a.flags|=1,qt(n,a,l,s),a.child;case 14:return Vg(n,a,a.type,a.pendingProps,s);case 15:return Hg(n,a,a.type,a.pendingProps,s);case 19:return Ig(n,a,s);case 31:return Bw(n,a,s);case 22:return $g(n,a,s,a.pendingProps);case 24:return Pi(a),l=Pt(_t),n===null?(f=Fc(),f===null&&(f=We,p=qc(),f.pooledCache=p,p.refCount++,p!==null&&(f.pooledCacheLanes|=s),f=p),a.memoizedState={parent:l,cache:f},Xc(a),Ga(a,_t,f)):((n.lanes&s)!==0&&(Ic(n,a),Hs(a,null,null,s),Vs()),f=n.memoizedState,p=a.memoizedState,f.parent!==l?(f={parent:l,cache:l},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),Ga(a,_t,l)):(l=p.cache,Ga(a,_t,l),l!==f.cache&&Pc(a,[_t],s,!0))),qt(n,a,a.pendingProps.children,s),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function Na(n){n.flags|=4}function Mf(n,a,s,l,f){if((a=(n.mode&32)!==0)&&(a=!1),a){if(n.flags|=16777216,(f&335544128)===f)if(n.stateNode.complete)n.flags|=8192;else if(jy())n.flags|=8192;else throw Fi=vl,Gc}else n.flags&=-16777217}function Kg(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!dx(a))if(jy())n.flags|=8192;else throw Fi=vl,Gc}function Ul(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Ri():536870912,n.lanes|=a,Br|=a)}function Fs(n,a){if(!Pe)switch(n.tailMode){case"hidden":a=n.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function st(n){var a=n.alternate!==null&&n.alternate.child===n.child,s=0,l=0;if(a)for(var f=n.child;f!==null;)s|=f.lanes|f.childLanes,l|=f.subtreeFlags&65011712,l|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)s|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=l,n.childLanes=s,a}function Hw(n,a,s){var l=a.pendingProps;switch(Bc(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(a),null;case 1:return st(a),null;case 3:return s=a.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Sa(_t),dt(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(Nr(a)?Na(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Hc())),st(a),null;case 26:var f=a.type,p=a.memoizedState;return n===null?(Na(a),p!==null?(st(a),Kg(a,p)):(st(a),Mf(a,f,null,l,s))):p?p!==n.memoizedState?(Na(a),st(a),Kg(a,p)):(st(a),a.flags&=-16777217):(n=n.memoizedProps,n!==l&&Na(a),st(a),Mf(a,f,n,l,s)),null;case 27:if(fr(a),s=Te.current,f=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==l&&Na(a);else{if(!l){if(a.stateNode===null)throw Error(r(166));return st(a),null}n=ue.current,Nr(a)?zm(a):(n=ix(f,l,s),a.stateNode=n,Na(a))}return st(a),null;case 5:if(fr(a),f=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==l&&Na(a);else{if(!l){if(a.stateNode===null)throw Error(r(166));return st(a),null}if(p=ue.current,Nr(a))zm(a);else{var v=Kl(Te.current);switch(p){case 1:p=v.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:p=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":p=v.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":p=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":p=v.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;
vendor: 22,369 bytes, line 48
48case"select":p=typeof l.is=="string"?v.createElement("select",{is:l.is}):v.createElement("select"),l.multiple?p.multiple=!0:l.size&&(p.size=l.size);break;default:p=typeof l.is=="string"?v.createElement(f,{is:l.is}):v.createElement(f)}}p[se]=a,p[oe]=l;e:for(v=a.child;v!==null;){if(v.tag===5||v.tag===6)p.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===a)break e;for(;v.sibling===null;){if(v.return===null||v.return===a)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}a.stateNode=p;e:switch(Yt(p,f,l),f){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Na(a)}}return st(a),Mf(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,s),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==l&&Na(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(r(166));if(n=Te.current,Nr(a)){if(n=a.stateNode,s=a.memoizedProps,l=null,f=Zt,f!==null)switch(f.tag){case 27:case 5:l=f.memoizedProps}n[se]=a,n=!!(n.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||Gy(n.nodeValue,s)),n||Fa(a,!0)}else n=Kl(n).createTextNode(l),n[se]=a,a.stateNode=n}return st(a),null;case 31:if(s=a.memoizedState,n===null||n.memoizedState!==null){if(l=Nr(a),s!==null){if(n===null){if(!l)throw Error(r(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(557));n[se]=a}else $i(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;st(a),n=!1}else s=Hc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=s),n=!0;if(!n)return a.flags&256?(gn(a),a):(gn(a),null);if((a.flags&128)!==0)throw Error(r(558))}return st(a),null;case 13:if(l=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=Nr(a),l!==null&&l.dehydrated!==null){if(n===null){if(!f)throw Error(r(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[se]=a}else $i(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;st(a),f=!1}else f=Hc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(gn(a),a):(gn(a),null)}return gn(a),(a.flags&128)!==0?(a.lanes=s,a):(s=l!==null,n=n!==null&&n.memoizedState!==null,s&&(l=a.child,f=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(f=l.alternate.memoizedState.cachePool.pool),p=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),p!==f&&(l.flags|=2048)),s!==n&&s&&(a.child.flags|=8192),Ul(a,a.updateQueue),st(a),null);case 4:return dt(),n===null&&Wf(a.stateNode.containerInfo),st(a),null;case 10:return Sa(a.type),st(a),null;case 19:if(q(Tt),l=a.memoizedState,l===null)return st(a),null;if(f=(a.flags&128)!==0,p=l.rendering,p===null)if(f)Fs(l,!1);else{if(bt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(p=jl(n),p!==null){for(a.flags|=128,Fs(l,!1),n=p.updateQueue,a.updateQueue=n,Ul(a,n),a.subtreeFlags=0,n=s,s=a.child;s!==null;)Nm(s,n),s=s.sibling;return ie(Tt,Tt.current&1|2),Pe&&va(a,l.treeForkCount),a.child}n=n.sibling}l.tail!==null&&wt()>$l&&(a.flags|=128,f=!0,Fs(l,!1),a.lanes=4194304)}else{if(!f)if(n=jl(p),n!==null){if(a.flags|=128,f=!0,n=n.updateQueue,a.updateQueue=n,Ul(a,n),Fs(l,!0),l.tail===null&&l.tailMode==="hidden"&&!p.alternate&&!Pe)return st(a),null}else 2*wt()-l.renderingStartTime>$l&&s!==536870912&&(a.flags|=128,f=!0,Fs(l,!1),a.lanes=4194304);l.isBackwards?(p.sibling=a.child,a.child=p):(n=l.last,n!==null?n.sibling=p:a.child=p,l.last=p)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=wt(),n.sibling=null,s=Tt.current,ie(Tt,f?s&1|2:s&1),Pe&&va(a,l.treeForkCount),n):(st(a),null);case 22:case 23:return gn(a),Wc(),l=a.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(s&536870912)!==0&&(a.flags&128)===0&&(st(a),a.subtreeFlags&6&&(a.flags|=8192)):st(a),s=a.updateQueue,s!==null&&Ul(a,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==s&&(a.flags|=2048),n!==null&&q(qi),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),Sa(_t),st(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function $w(n,a){switch(Bc(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return Sa(_t),dt(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return fr(a),null;case 31:if(a.memoizedState!==null){if(gn(a),a.alternate===null)throw Error(r(340));$i()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(gn(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(r(340));$i()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return q(Tt),null;case 4:return dt(),null;case 10:return Sa(a.type),null;case 22:case 23:return gn(a),Wc(),n!==null&&q(qi),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return Sa(_t),null;case 25:return null;default:return null}}function Qg(n,a){switch(Bc(a),a.tag){case 3:Sa(_t),dt();break;case 26:case 27:case 5:fr(a);break;case 4:dt();break;case 31:a.memoizedState!==null&&gn(a);break;case 13:gn(a);break;case 19:q(Tt);break;case 10:Sa(a.type);break;case 22:case 23:gn(a),Wc(),n!==null&&q(qi);break;case 24:Sa(_t)}}function Gs(n,a){try{var s=a.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var f=l.next;s=f;do{if((s.tag&n)===n){l=void 0;var p=s.create,v=s.inst;l=p(),v.destroy=l}s=s.next}while(s!==f)}}catch(w){Ie(a,a.return,w)}}function Wa(n,a,s){try{var l=a.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var p=f.next;l=p;do{if((l.tag&n)===n){var v=l.inst,w=v.destroy;if(w!==void 0){v.destroy=void 0,f=a;var C=s,V=w;try{V()}catch(F){Ie(f,C,F)}}}l=l.next}while(l!==p)}}catch(F){Ie(a,a.return,F)}}function Wg(n){var a=n.updateQueue;if(a!==null){var s=n.stateNode;try{Pm(a,s)}catch(l){Ie(n,n.return,l)}}}function ey(n,a,s){s.props=Ii(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(l){Ie(n,a,l)}}function Xs(n,a){try{var s=n.ref;if(s!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof s=="function"?n.refCleanup=s(l):s.current=l}}catch(f){Ie(n,a,f)}}function na(n,a){var s=n.ref,l=n.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(f){Ie(n,a,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(f){Ie(n,a,f)}else s.current=null}function ty(n){var a=n.type,s=n.memoizedProps,l=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break e;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(f){Ie(n,n.return,f)}}function Rf(n,a,s){try{var l=n.stateNode;uj(l,n.type,s,a),l[oe]=a}catch(f){Ie(n,n.return,f)}}function ny(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&si(n.type)||n.tag===4}function kf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||ny(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&si(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Of(n,a,s){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,a):(a=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,a.appendChild(n),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=ga));else if(l!==4&&(l===27&&si(n.type)&&(s=n.stateNode,a=null),n=n.child,n!==null))for(Of(n,a,s),n=n.sibling;n!==null;)Of(n,a,s),n=n.sibling}function Ll(n,a,s){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?s.insertBefore(n,a):s.appendChild(n);else if(l!==4&&(l===27&&si(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(Ll(n,a,s),n=n.sibling;n!==null;)Ll(n,a,s),n=n.sibling}function ay(n){var a=n.stateNode,s=n.memoizedProps;try{for(var l=n.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);Yt(a,l,s),a[se]=n,a[oe]=s}catch(p){Ie(n,n.return,p)}}var Ea=!1,Rt=!1,Df=!1,iy=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function Zw(n,a){if(n=n.containerInfo,nd=iu,n=gm(n),Cc(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var f=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{s.nodeType,p.nodeType}catch{s=null;break e}var v=0,w=-1,C=-1,V=0,F=0,Q=n,$=null;t:for(;;){for(var P;Q!==s||f!==0&&Q.nodeType!==3||(w=v+f),Q!==p||l!==0&&Q.nodeType!==3||(C=v+l),Q.nodeType===3&&(v+=Q.nodeValue.length),(P=Q.firstChild)!==null;)$=Q,Q=P;for(;;){if(Q===n)break t;if($===s&&++V===f&&(w=v),$===p&&++F===l&&(C=v),(P=Q.nextSibling)!==null)break;Q=$,$=Q.parentNode}Q=P}s=w===-1||C===-1?null:{start:w,end:C}}else s=null}s=s||{start:0,end:0}}else s=null;for(ad={focusedElem:n,selectionRange:s},iu=!1,Ht=a;Ht!==null;)if(a=Ht,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,Ht=n;else for(;Ht!==null;){switch(a=Ht,p=a.alternate,n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(s=0;s<n.length;s++)f=n[s],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&p!==null){n=void 0,s=a,f=p.memoizedProps,p=p.memoizedState,l=s.stateNode;try{var fe=Ii(s.type,f);n=l.getSnapshotBeforeUpdate(fe,p),l.__reactInternalSnapshotBeforeUpdate=n}catch(je){Ie(s,s.return,je)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,s=n.nodeType,s===9)sd(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":sd(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(r(163))}if(n=a.sibling,n!==null){n.return=a.return,Ht=n;break}Ht=a.return}}function ry(n,a,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:Aa(n,s),l&4&&Gs(5,s);break;case 1:if(Aa(n,s),l&4)if(n=s.stateNode,a===null)try{n.componentDidMount()}catch(v){Ie(s,s.return,v)}else{var f=Ii(s.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(f,a,n.__reactInternalSnapshotBeforeUpdate)}catch(v){Ie(s,s.return,v)}}l&64&&Wg(s),l&512&&Xs(s,s.return);break;case 3:if(Aa(n,s),l&64&&(n=s.updateQueue,n!==null)){if(a=null,s.child!==null)switch(s.child.tag){case 27:case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}try{Pm(n,a)}catch(v){Ie(s,s.return,v)}}break;case 27:a===null&&l&4&&ay(s);case 26:case 5:Aa(n,s),a===null&&l&4&&ty(s),l&512&&Xs(s,s.return);break;case 12:Aa(n,s);break;case 31:Aa(n,s),l&4&&ly(n,s);break;case 13:Aa(n,s),l&4&&uy(n,s),l&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=Kw.bind(null,s),yj(n,s))));break;case 22:if(l=s.memoizedState!==null||Ea,!l){a=a!==null&&a.memoizedState!==null||Rt,f=Ea;var p=Rt;Ea=l,(Rt=a)&&!p?_a(n,s,(s.subtreeFlags&8772)!==0):Aa(n,s),Ea=f,Rt=p}break;case 30:break;default:Aa(n,s)}}function sy(n){var a=n.alternate;a!==null&&(n.alternate=null,sy(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&yt(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var lt=null,sn=!1;function Ca(n,a,s){for(s=s.child;s!==null;)oy(n,a,s),s=s.sibling}function oy(n,a,s){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Ai,s)}catch{}switch(s.tag){case 26:Rt||na(s,a),Ca(n,a,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Rt||na(s,a);var l=lt,f=sn;si(s.type)&&(lt=s.stateNode,sn=!1),Ca(n,a,s),ao(s.stateNode),lt=l,sn=f;break;case 5:Rt||na(s,a);case 6:if(l=lt,f=sn,lt=null,Ca(n,a,s),lt=l,sn=f,lt!==null)if(sn)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(s.stateNode)}catch(p){Ie(s,a,p)}else try{lt.removeChild(s.stateNode)}catch(p){Ie(s,a,p)}break;case 18:lt!==null&&(sn?(n=lt,Wy(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),Fr(n)):Wy(lt,s.stateNode));break;case 4:l=lt,f=sn,lt=s.stateNode.containerInfo,sn=!0,Ca(n,a,s),lt=l,sn=f;break;case 0:case 11:case 14:case 15:Wa(2,s,a),Rt||Wa(4,s,a),Ca(n,a,s);break;case 1:Rt||(na(s,a),l=s.stateNode,typeof l.componentWillUnmount=="function"&&ey(s,a,l)),Ca(n,a,s);break;case 21:Ca(n,a,s);break;case 22:Rt=(l=Rt)||s.memoizedState!==null,Ca(n,a,s),Rt=l;break;default:Ca(n,a,s)}}function ly(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Fr(n)}catch(s){Ie(a,a.return,s)}}}function uy(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Fr(n)}catch(s){Ie(a,a.return,s)}}function Pw(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new iy),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new iy),a;default:throw Error(r(435,n.tag))}}function Bl(n,a){var s=Pw(n);a.forEach(function(l){if(!s.has(l)){s.add(l);var f=Qw.bind(null,n,l);l.then(f,f)}})}function on(n,a){var s=a.deletions;if(s!==null)for(var l=0;l<s.length;l++){var f=s[l],p=n,v=a,w=v;e:for(;w!==null;){switch(w.tag){case 27:if(si(w.type)){lt=w.stateNode,sn=!1;break e}break;case 5:lt=w.stateNode,sn=!1;break e;case 3:case 4:lt=w.stateNode.containerInfo,sn=!0;break e}w=w.return}if(lt===null)throw Error(r(160));oy(p,v,f),lt=null,sn=!1,p=f.alternate,p!==null&&(p.return=null),f.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)cy(a,n),a=a.sibling}var Gn=null;function cy(n,a){var s=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:on(a,n),ln(n),l&4&&(Wa(3,n,n.return),Gs(3,n),Wa(5,n,n.return));break;case 1:on(a,n),ln(n),l&512&&(Rt||s===null||na(s,s.return)),l&64&&Ea&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var f=Gn;if(on(a,n),ln(n),l&512&&(Rt||s===null||na(s,s.return)),l&4){var p=s!==null?s.memoizedState:null;if(l=n.memoizedState,s===null)if(l===null)if(n.stateNode===null){e:{l=n.type,s=n.memoizedProps,f=f.ownerDocument||f;t:switch(l){case"title":p=f.getElementsByTagName("title")[0],(!p||p[pt]||p[se]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=f.createElement(l),f.head.insertBefore(p,f.querySelector("head > title"))),Yt(p,l,s),p[se]=n,ot(p),l=p;break e;case"link":var v=cx("link","href",f).get(l+(s.href||""));if(v){for(var w=0;w<v.length;w++)if(p=v[w],p.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&p.getAttribute("rel")===(s.rel==null?null:s.rel)&&p.getAttribute("title")===(s.title==null?null:s.title)&&p.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){v.splice(w,1);break t}}p=f.createElement(l),Yt(p,l,s),f.head.appendChild(p);break;case"meta":if(v=cx("meta","content",f).get(l+(s.content||""))){for(w=0;w<v.length;w++)if(p=v[w],p.getAttribute("content")===(s.content==null?null:""+s.content)&&p.getAttribute("name")===(s.name==null?null:s.name)&&p.getAttribute("property")===(s.property==null?null:s.property)&&p.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&p.getAttribute("charset")===(s.charSet==null?null:s.charSet)){v.splice(w,1);break t}}p=f.createElement(l),Yt(p,l,s),f.head.appendChild(p);break;default:throw Error(r(468,l))}p[se]=n,ot(p),l=p}n.stateNode=l}else fx(f,n.type,n.stateNode);else n.stateNode=ux(f,l,n.memoizedProps);else p!==l?(p===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):p.count--,l===null?fx(f,n.type,n.stateNode):ux(f,l,n.memoizedProps)):l===null&&n.stateNode!==null&&Rf(n,n.memoizedProps,s.memoizedProps)}break;case 27:on(a,n),ln(n),l&512&&(Rt||s===null||na(s,s.return)),s!==null&&l&4&&Rf(n,n.memoizedProps,s.memoizedProps);break;case 5:if(on(a,n),ln(n),l&512&&(Rt||s===null||na(s,s.return)),n.flags&32){f=n.stateNode;try{mr(f,"")}catch(fe){Ie(n,n.return,fe)}}l&4&&n.stateNode!=null&&(f=n.memoizedProps,Rf(n,f,s!==null?s.memoizedProps:f)),l&1024&&(Df=!0);break;case 6:if(on(a,n),ln(n),l&4){if(n.stateNode===null)throw Error(r(162));l=n.memoizedProps,s=n.stateNode;try{s.nodeValue=l}catch(fe){Ie(n,n.return,fe)}}break;case 3:if(eu=null,f=Gn,Gn=Ql(a.containerInfo),on(a,n),Gn=f,ln(n),l&4&&s!==null&&s.memoizedState.isDehydrated)try{Fr(a.containerInfo)}catch(fe){Ie(n,n.return,fe)}Df&&(Df=!1,fy(n));break;case 4:l=Gn,Gn=Ql(n.stateNode.containerInfo),on(a,n),ln(n),Gn=l;break;case 12:on(a,n),ln(n);break;case 31:on(a,n),ln(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Bl(n,l)));break;case 13:on(a,n),ln(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Hl=wt()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Bl(n,l)));break;case 22:f=n.memoizedState!==null;var C=s!==null&&s.memoizedState!==null,V=Ea,F=Rt;if(Ea=V||f,Rt=F||C,on(a,n),Rt=F,Ea=V,ln(n),l&8192)e:for(a=n.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(s===null||C||Ea||Rt||Ji(n)),s=null,a=n;;){if(a.tag===5||a.tag===26){if(s===null){C=s=a;try{if(p=C.stateNode,f)v=p.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{w=C.stateNode;var Q=C.memoizedProps.style,$=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;w.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(fe){Ie(C,C.return,fe)}}}else if(a.tag===6){if(s===null){C=a;try{C.stateNode.nodeValue=f?"":C.memoizedProps}catch(fe){Ie(C,C.return,fe)}}}else if(a.tag===18){if(s===null){C=a;try{var P=C.stateNode;f?ex(P,!0):ex(C.stateNode,!1)}catch(fe){Ie(C,C.return,fe)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;s===a&&(s=null),a=a.return}s===a&&(s=null),a.sibling.return=a.return,a=a.sibling}l&4&&(l=n.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,Bl(n,s))));break;case 19:on(a,n),ln(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Bl(n,l)));break;case 30:break;case 21:break;default:on(a,n),ln(n)}}function ln(n){var a=n.flags;if(a&2){try{for(var s,l=n.return;l!==null;){if(ny(l)){s=l;break}l=l.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var f=s.stateNode,p=kf(n);Ll(n,p,f);break;case 5:var v=s.stateNode;s.flags&32&&(mr(v,""),s.flags&=-33);var w=kf(n);Ll(n,w,v);break;case 3:case 4:var C=s.stateNode.containerInfo,V=kf(n);Of(n,V,C);break;default:throw Error(r(161))}}catch(F){Ie(n,n.return,F)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function fy(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;fy(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Aa(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)ry(n,a.alternate,a),a=a.sibling}function Ji(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:Wa(4,a,a.return),Ji(a);break;case 1:na(a,a.return);var s=a.stateNode;typeof s.componentWillUnmount=="function"&&ey(a,a.return,s),Ji(a);break;case 27:ao(a.stateNode);case 26:case 5:na(a,a.return),Ji(a);break;case 22:a.memoizedState===null&&Ji(a);break;case 30:Ji(a);break;default:Ji(a)}n=n.sibling}}function _a(n,a,s){for(s=s&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var l=a.alternate,f=n,p=a,v=p.flags;switch(p.tag){case 0:case 11:case 15:_a(f,p,s),Gs(4,p);break;case 1:if(_a(f,p,s),l=p,f=l.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(V){Ie(l,l.return,V)}if(l=p,f=l.updateQueue,f!==null){var w=l.stateNode;try{var C=f.shared.hiddenCallbacks;if(C!==null)for(f.shared.hiddenCallbacks=null,f=0;f<C.length;f++)Zm(C[f],w)}catch(V){Ie(l,l.return,V)}}s&&v&64&&Wg(p),Xs(p,p.return);break;case 27:ay(p);case 26:case 5:_a(f,p,s),s&&l===null&&v&4&&ty(p),Xs(p,p.return);break;case 12:_a(f,p,s);break;case 31:_a(f,p,s),s&&v&4&&ly(f,p);break;case 13:_a(f,p,s),s&&v&4&&uy(f,p);break;case 22:p.memoizedState===null&&_a(f,p,s),Xs(p,p.return);break;case 30:break;default:_a(f,p,s)}a=a.sibling}}function Uf(n,a){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&Os(s))}function Lf(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Os(n))}function Xn(n,a,s,l){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)dy(n,a,s,l),a=a.sibling}function dy(n,a,s,l){var f=a.flags;switch(a.tag){case 0:case 11:case 15:Xn(n,a,s,l),f&2048&&Gs(9,a);break;case 1:Xn(n,a,s,l);break;case 3:Xn(n,a,s,l),f&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Os(n)));break;case 12:if(f&2048){Xn(n,a,s,l),n=a.stateNode;try{var p=a.memoizedProps,v=p.id,w=p.onPostCommit;typeof w=="function"&&w(v,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(C){Ie(a,a.return,C)}}else Xn(n,a,s,l);break;case 31:Xn(n,a,s,l);break;case 13:Xn(n,a,s,l);break;case 23:break;case 22:p=a.stateNode,v=a.alternate,a.memoizedState!==null?p._visibility&2?Xn(n,a,s,l):Is(n,a):p._visibility&2?Xn(n,a,s,l):(p._visibility|=2,Dr(n,a,s,l,(a.subtreeFlags&10256)!==0||!1)),f&2048&&Uf(v,a);break;case 24:Xn(n,a,s,l),f&2048&&Lf(a.alternate,a);break;default:Xn(n,a,s,l)}}function Dr(n,a,s,l,f){for(f=f&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var p=n,v=a,w=s,C=l,V=v.flags;switch(v.tag){case 0:case 11:case 15:Dr(p,v,w,C,f),Gs(8,v);break;case 23:break;case 22:var F=v.stateNode;v.memoizedState!==null?F._visibility&2?Dr(p,v,w,C,f):Is(p,v):(F._visibility|=2,Dr(p,v,w,C,f)),f&&V&2048&&Uf(v.alternate,v);break;case 24:Dr(p,v,w,C,f),f&&V&2048&&Lf(v.alternate,v);break;default:Dr(p,v,w,C,f)}a=a.sibling}}function Is(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var s=n,l=a,f=l.flags;switch(l.tag){case 22:Is(s,l),f&2048&&Uf(l.alternate,l);break;case 24:Is(s,l),f&2048&&Lf(l.alternate,l);break;default:Is(s,l)}a=a.sibling}}var Js=8192;
vendor: 16,846 bytes, line 48
48function Ur(n,a,s){if(n.subtreeFlags&Js)for(n=n.child;n!==null;)hy(n,a,s),n=n.sibling}function hy(n,a,s){switch(n.tag){case 26:Ur(n,a,s),n.flags&Js&&n.memoizedState!==null&&_j(s,Gn,n.memoizedState,n.memoizedProps);break;case 5:Ur(n,a,s);break;case 3:case 4:var l=Gn;Gn=Ql(n.stateNode.containerInfo),Ur(n,a,s),Gn=l;break;case 22:n.memoizedState===null&&(l=n.alternate,l!==null&&l.memoizedState!==null?(l=Js,Js=16777216,Ur(n,a,s),Js=l):Ur(n,a,s));break;default:Ur(n,a,s)}}function py(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function Ks(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var l=a[s];Ht=l,gy(l,n)}py(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)my(n),n=n.sibling}function my(n){switch(n.tag){case 0:case 11:case 15:Ks(n),n.flags&2048&&Wa(9,n,n.return);break;case 3:Ks(n);break;case 12:Ks(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,Vl(n)):Ks(n);break;default:Ks(n)}}function Vl(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var l=a[s];Ht=l,gy(l,n)}py(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Wa(8,a,a.return),Vl(a);break;case 22:s=a.stateNode,s._visibility&2&&(s._visibility&=-3,Vl(a));break;default:Vl(a)}n=n.sibling}}function gy(n,a){for(;Ht!==null;){var s=Ht;switch(s.tag){case 0:case 11:case 15:Wa(8,s,a);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Os(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,Ht=l;else e:for(s=n;Ht!==null;){l=Ht;var f=l.sibling,p=l.return;if(sy(l),l===s){Ht=null;break e}if(f!==null){f.return=p,Ht=f;break e}Ht=p}}}var qw={getCacheForType:function(n){var a=Pt(_t),s=a.data.get(n);return s===void 0&&(s=n(),a.data.set(n,s)),s},cacheSignal:function(){return Pt(_t).controller.signal}},Yw=typeof WeakMap=="function"?WeakMap:Map,Ge=0,We=null,Oe=null,Ue=0,Xe=0,yn=null,ei=!1,Lr=!1,Bf=!1,za=0,bt=0,ti=0,Ki=0,Vf=0,xn=0,Br=0,Qs=null,un=null,Hf=!1,Hl=0,yy=0,$l=1/0,Zl=null,ni=null,Lt=0,ai=null,Vr=null,Ma=0,$f=0,Zf=null,xy=null,Ws=0,Pf=null;function vn(){return(Ge&2)!==0&&Ue!==0?Ue&-Ue:H.T!==null?If():re()}function vy(){if(xn===0)if((Ue&536870912)===0||Pe){var n=_i;_i<<=1,(_i&3932160)===0&&(_i=262144),xn=n}else xn=536870912;return n=mn.current,n!==null&&(n.flags|=32),xn}function cn(n,a,s){(n===We&&(Xe===2||Xe===9)||n.cancelPendingCommit!==null)&&(Hr(n,0),ii(n,Ue,xn,!1)),Za(n,s),((Ge&2)===0||n!==We)&&(n===We&&((Ge&2)===0&&(Ki|=s),bt===4&&ii(n,Ue,xn,!1)),aa(n))}function by(n,a,s){if((Ge&6)!==0)throw Error(r(327));var l=!s&&(a&127)===0&&(a&n.expiredLanes)===0||Mi(n,a),f=l?Xw(n,a):Yf(n,a,!0),p=l;do{if(f===0){Lr&&!l&&ii(n,a,0,!1);break}else{if(s=n.current.alternate,p&&!Fw(s)){f=Yf(n,a,!1),p=!1;continue}if(f===2){if(p=a,n.errorRecoveryDisabledLanes&p)var v=0;else v=n.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){a=v;e:{var w=n;f=Qs;var C=w.current.memoizedState.isDehydrated;if(C&&(Hr(w,v).flags|=256),v=Yf(w,v,!1),v!==2){if(Bf&&!C){w.errorRecoveryDisabledLanes|=p,Ki|=p,f=4;break e}p=un,un=f,p!==null&&(un===null?un=p:un.push.apply(un,p))}f=v}if(p=!1,f!==2)continue}}if(f===1){Hr(n,0),ii(n,a,0,!0);break}e:{switch(l=n,p=f,p){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:ii(l,a,xn,!ei);break e;case 2:un=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(f=Hl+300-wt(),10<f)){if(ii(l,a,xn,!ei),zi(l,0,!0)!==0)break e;Ma=a,l.timeoutHandle=Ky(Sy.bind(null,l,s,un,Zl,Hf,a,xn,Ki,Br,ei,p,"Throttled",-0,0),f);break e}Sy(l,s,un,Zl,Hf,a,xn,Ki,Br,ei,p,null,-0,0)}}break}while(!0);aa(n)}function Sy(n,a,s,l,f,p,v,w,C,V,F,Q,$,P){if(n.timeoutHandle=-1,Q=a.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ga},hy(a,p,Q);var fe=(p&62914560)===p?Hl-wt():(p&4194048)===p?yy-wt():0;if(fe=zj(Q,fe),fe!==null){Ma=p,n.cancelPendingCommit=fe(_y.bind(null,n,a,p,s,l,f,v,w,C,F,Q,null,$,P)),ii(n,p,v,!V);return}}_y(n,a,p,s,l,f,v,w,C)}function Fw(n){for(var a=n;;){var s=a.tag;if((s===0||s===11||s===15)&&a.flags&16384&&(s=a.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var f=s[l],p=f.getSnapshot;f=f.value;try{if(!hn(p(),f))return!1}catch{return!1}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ii(n,a,s,l){a&=~Vf,a&=~Ki,n.suspendedLanes|=a,n.pingedLanes&=~a,l&&(n.warmLanes|=a),l=n.expirationTimes;for(var f=a;0<f;){var p=31-Gt(f),v=1<<p;l[p]=-1,f&=~v}s!==0&&Wo(n,s,a)}function Pl(){return(Ge&6)===0?(eo(0),!1):!0}function qf(){if(Oe!==null){if(Xe===0)var n=Oe.return;else n=Oe,ba=Zi=null,sf(n),zr=null,Us=0,n=Oe;for(;n!==null;)Qg(n.alternate,n),n=n.return;Oe=null}}function Hr(n,a){var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,dj(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),Ma=0,qf(),We=n,Oe=s=xa(n.current,null),Ue=a,Xe=0,yn=null,ei=!1,Lr=Mi(n,a),Bf=!1,Br=xn=Vf=Ki=ti=bt=0,un=Qs=null,Hf=!1,(a&8)!==0&&(a|=a&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=a;0<l;){var f=31-Gt(l),p=1<<f;a|=n[f],l&=~p}return za=a,cl(),s}function wy(n,a){_e=null,H.H=qs,a===_r||a===xl?(a=Bm(),Xe=3):a===Gc?(a=Bm(),Xe=4):Xe=a===wf?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,yn=a,Oe===null&&(bt=1,Rl(n,En(a,n.current)))}function jy(){var n=mn.current;return n===null?!0:(Ue&4194048)===Ue?zn===null:(Ue&62914560)===Ue||(Ue&536870912)!==0?n===zn:!1}function Ty(){var n=H.H;return H.H=qs,n===null?qs:n}function Ny(){var n=H.A;return H.A=qw,n}function ql(){bt=4,ei||(Ue&4194048)!==Ue&&mn.current!==null||(Lr=!0),(ti&134217727)===0&&(Ki&134217727)===0||We===null||ii(We,Ue,xn,!1)}function Yf(n,a,s){var l=Ge;Ge|=2;var f=Ty(),p=Ny();(We!==n||Ue!==a)&&(Zl=null,Hr(n,a)),a=!1;var v=bt;e:do try{if(Xe!==0&&Oe!==null){var w=Oe,C=yn;switch(Xe){case 8:qf(),v=6;break e;case 3:case 2:case 9:case 6:mn.current===null&&(a=!0);var V=Xe;if(Xe=0,yn=null,$r(n,w,C,V),s&&Lr){v=0;break e}break;default:V=Xe,Xe=0,yn=null,$r(n,w,C,V)}}Gw(),v=bt;break}catch(F){wy(n,F)}while(!0);return a&&n.shellSuspendCounter++,ba=Zi=null,Ge=l,H.H=f,H.A=p,Oe===null&&(We=null,Ue=0,cl()),v}function Gw(){for(;Oe!==null;)Ey(Oe)}function Xw(n,a){var s=Ge;Ge|=2;var l=Ty(),f=Ny();We!==n||Ue!==a?(Zl=null,$l=wt()+500,Hr(n,a)):Lr=Mi(n,a);e:do try{if(Xe!==0&&Oe!==null){a=Oe;var p=yn;t:switch(Xe){case 1:Xe=0,yn=null,$r(n,a,p,1);break;case 2:case 9:if(Um(p)){Xe=0,yn=null,Cy(a);break}a=function(){Xe!==2&&Xe!==9||We!==n||(Xe=7),aa(n)},p.then(a,a);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:Um(p)?(Xe=0,yn=null,Cy(a)):(Xe=0,yn=null,$r(n,a,p,7));break;case 5:var v=null;switch(Oe.tag){case 26:v=Oe.memoizedState;case 5:case 27:var w=Oe;if(v?dx(v):w.stateNode.complete){Xe=0,yn=null;var C=w.sibling;if(C!==null)Oe=C;else{var V=w.return;V!==null?(Oe=V,Yl(V)):Oe=null}break t}}Xe=0,yn=null,$r(n,a,p,5);break;case 6:Xe=0,yn=null,$r(n,a,p,6);break;case 8:qf(),bt=6;break e;default:throw Error(r(462))}}Iw();break}catch(F){wy(n,F)}while(!0);return ba=Zi=null,H.H=l,H.A=f,Ge=s,Oe!==null?0:(We=null,Ue=0,cl(),bt)}function Iw(){for(;Oe!==null&&!oc();)Ey(Oe)}function Ey(n){var a=Jg(n.alternate,n,za);n.memoizedProps=n.pendingProps,a===null?Yl(n):Oe=a}function Cy(n){var a=n,s=a.alternate;switch(a.tag){case 15:case 0:a=qg(s,a,a.pendingProps,a.type,void 0,Ue);break;case 11:a=qg(s,a,a.pendingProps,a.type.render,a.ref,Ue);break;case 5:sf(a);default:Qg(s,a),a=Oe=Nm(a,za),a=Jg(s,a,za)}n.memoizedProps=n.pendingProps,a===null?Yl(n):Oe=a}function $r(n,a,s,l){ba=Zi=null,sf(a),zr=null,Us=0;var f=a.return;try{if(Lw(n,f,a,s,Ue)){bt=1,Rl(n,En(s,n.current)),Oe=null;return}}catch(p){if(f!==null)throw Oe=f,p;bt=1,Rl(n,En(s,n.current)),Oe=null;return}a.flags&32768?(Pe||l===1?n=!0:Lr||(Ue&536870912)!==0?n=!1:(ei=n=!0,(l===2||l===9||l===3||l===6)&&(l=mn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Ay(a,n)):Yl(a)}function Yl(n){var a=n;do{if((a.flags&32768)!==0){Ay(a,ei);return}n=a.return;var s=Hw(a.alternate,a,za);if(s!==null){Oe=s;return}if(a=a.sibling,a!==null){Oe=a;return}Oe=a=n}while(a!==null);bt===0&&(bt=5)}function Ay(n,a){do{var s=$w(n.alternate,n);if(s!==null){s.flags&=32767,Oe=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!a&&(n=n.sibling,n!==null)){Oe=n;return}Oe=n=s}while(n!==null);bt=6,Oe=null}function _y(n,a,s,l,f,p,v,w,C){n.cancelPendingCommit=null;do Fl();while(Lt!==0);if((Ge&6)!==0)throw Error(r(327));if(a!==null){if(a===n.current)throw Error(r(177));if(p=a.lanes|a.childLanes,p|=Rc,fc(n,s,p,v,w,C),n===We&&(Oe=We=null,Ue=0),Vr=a,ai=n,Ma=s,$f=p,Zf=f,xy=l,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,Ww(nn,function(){return Oy(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||l){l=H.T,H.T=null,f=K.p,K.p=2,v=Ge,Ge|=4;try{Zw(n,a,s)}finally{Ge=v,K.p=f,H.T=l}}Lt=1,zy(),My(),Ry()}}function zy(){if(Lt===1){Lt=0;var n=ai,a=Vr,s=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||s){s=H.T,H.T=null;var l=K.p;K.p=2;var f=Ge;Ge|=4;try{cy(a,n);var p=ad,v=gm(n.containerInfo),w=p.focusedElem,C=p.selectionRange;if(v!==w&&w&&w.ownerDocument&&mm(w.ownerDocument.documentElement,w)){if(C!==null&&Cc(w)){var V=C.start,F=C.end;if(F===void 0&&(F=V),"selectionStart"in w)w.selectionStart=V,w.selectionEnd=Math.min(F,w.value.length);else{var Q=w.ownerDocument||document,$=Q&&Q.defaultView||window;if($.getSelection){var P=$.getSelection(),fe=w.textContent.length,je=Math.min(C.start,fe),Qe=C.end===void 0?je:Math.min(C.end,fe);!P.extend&&je>Qe&&(v=Qe,Qe=je,je=v);var U=pm(w,je),M=pm(w,Qe);if(U&&M&&(P.rangeCount!==1||P.anchorNode!==U.node||P.anchorOffset!==U.offset||P.focusNode!==M.node||P.focusOffset!==M.offset)){var B=Q.createRange();B.setStart(U.node,U.offset),P.removeAllRanges(),je>Qe?(P.addRange(B),P.extend(M.node,M.offset)):(B.setEnd(M.node,M.offset),P.addRange(B))}}}}for(Q=[],P=w;P=P.parentNode;)P.nodeType===1&&Q.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<Q.length;w++){var J=Q[w];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}iu=!!nd,ad=nd=null}finally{Ge=f,K.p=l,H.T=s}}n.current=a,Lt=2}}function My(){if(Lt===2){Lt=0;var n=ai,a=Vr,s=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||s){s=H.T,H.T=null;var l=K.p;K.p=2;var f=Ge;Ge|=4;try{ry(n,a.alternate,a)}finally{Ge=f,K.p=l,H.T=s}}Lt=3}}function Ry(){if(Lt===4||Lt===3){Lt=0,lc();var n=ai,a=Vr,s=Ma,l=xy;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Lt=5:(Lt=0,Vr=ai=null,ky(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(ni=null),W(s),a=a.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(Ai,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=H.T,f=K.p,K.p=2,H.T=null;try{for(var p=n.onRecoverableError,v=0;v<l.length;v++){var w=l[v];p(w.value,{componentStack:w.stack})}}finally{H.T=a,K.p=f}}(Ma&3)!==0&&Fl(),aa(n),f=n.pendingLanes,(s&261930)!==0&&(f&42)!==0?n===Pf?Ws++:(Ws=0,Pf=n):Ws=0,eo(0)}}function ky(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Os(a)))}function Fl(){return zy(),My(),Ry(),Oy()}function Oy(){if(Lt!==5)return!1;var n=ai,a=$f;$f=0;var s=W(Ma),l=H.T,f=K.p;try{K.p=32>s?32:s,H.T=null,s=Zf,Zf=null;var p=ai,v=Ma;if(Lt=0,Vr=ai=null,Ma=0,(Ge&6)!==0)throw Error(r(331));var w=Ge;if(Ge|=4,my(p.current),dy(p,p.current,v,s),Ge=w,eo(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(Ai,p)}catch{}return!0}finally{K.p=f,H.T=l,ky(n,a)}}function Dy(n,a,s){a=En(s,a),a=Sf(n.stateNode,a,2),n=Ja(n,a,2),n!==null&&(Za(n,2),aa(n))}function Ie(n,a,s){if(n.tag===3)Dy(n,n,s);else for(;a!==null;){if(a.tag===3){Dy(a,n,s);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ni===null||!ni.has(l))){n=En(s,n),s=Ug(2),l=Ja(a,s,2),l!==null&&(Lg(s,l,a,n),Za(l,2),aa(l));break}}a=a.return}}function Ff(n,a,s){var l=n.pingCache;if(l===null){l=n.pingCache=new Yw;var f=new Set;l.set(a,f)}else f=l.get(a),f===void 0&&(f=new Set,l.set(a,f));f.has(s)||(Bf=!0,f.add(s),n=Jw.bind(null,n,a,s),a.then(n,n))}function Jw(n,a,s){var l=n.pingCache;l!==null&&l.delete(a),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,We===n&&(Ue&s)===s&&(bt===4||bt===3&&(Ue&62914560)===Ue&&300>wt()-Hl?(Ge&2)===0&&Hr(n,0):Vf|=s,Br===Ue&&(Br=0)),aa(n)}function Uy(n,a){a===0&&(a=Ri()),n=Vi(n,a),n!==null&&(Za(n,a),aa(n))}function Kw(n){var a=n.memoizedState,s=0;a!==null&&(s=a.retryLane),Uy(n,s)}function Qw(n,a){var s=0;switch(n.tag){case 31:case 13:var l=n.stateNode,f=n.memoizedState;f!==null&&(s=f.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(a),Uy(n,s)}function Ww(n,a){return ys(n,a)}var Gl=null,Zr=null,Gf=!1,Xl=!1,Xf=!1,ri=0;function aa(n){n!==Zr&&n.next===null&&(Zr===null?Gl=Zr=n:Zr=Zr.next=n),Xl=!0,Gf||(Gf=!0,tj())}function eo(n,a){if(!Xf&&Xl){Xf=!0;do for(var s=!1,l=Gl;l!==null;){if(n!==0){var f=l.pendingLanes;if(f===0)var p=0;else{var v=l.suspendedLanes,w=l.pingedLanes;p=(1<<31-Gt(42|n)+1)-1,p&=f&~(v&~w),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(s=!0,Hy(l,p))}else p=Ue,p=zi(l,l===We?p:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(p&3)===0||Mi(l,p)||(s=!0,Hy(l,p));l=l.next}while(s);Xf=!1}}function ej(){Ly()}function Ly(){Xl=Gf=!1;var n=0;ri!==0&&fj()&&(n=ri);for(var a=wt(),s=null,l=Gl;l!==null;){var f=l.next,p=By(l,a);p===0?(l.next=null,s===null?Gl=f:s.next=f,f===null&&(Zr=s)):(s=l,(n!==0||(p&3)!==0)&&(Xl=!0)),l=f}Lt!==0&&Lt!==5||eo(n),ri!==0&&(ri=0)}function By(n,a){for(var s=n.suspendedLanes,l=n.pingedLanes,f=n.expirationTimes,p=n.pendingLanes&-62914561;0<p;){var v=31-Gt(p),w=1<<v,C=f[v];C===-1?((w&s)===0||(w&l)!==0)&&(f[v]=Qo(w,a)):C<=a&&(n.expiredLanes|=w),p&=~w}if(a=We,s=Ue,s=zi(n,n===a?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,s===0||n===a&&(Xe===2||Xe===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&xs(l),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||Mi(n,s)){if(a=s&-s,a===n.callbackPriority)return a;switch(l!==null&&xs(l),W(s)){case 2:case 8:s=hr;break;case 32:s=nn;break;case 268435456:s=bs;break;default:s=nn}return l=Vy.bind(null,n),s=ys(s,l),n.callbackPriority=a,n.callbackNode=s,a}return l!==null&&l!==null&&xs(l),n.callbackPriority=2,n.callbackNode=null,2}function Vy(n,a){if(Lt!==0&&Lt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(Fl()&&n.callbackNode!==s)return null;var l=Ue;return l=zi(n,n===We?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(by(n,l,a),By(n,wt()),n.callbackNode!=null&&n.callbackNode===s?Vy.bind(null,n):null)}function Hy(n,a){if(Fl())return null;by(n,a,!0)}function tj(){hj(function(){(Ge&6)!==0?ys(vs,ej):Ly()})}function If(){if(ri===0){var n=Cr;n===0&&(n=ha,ha<<=1,(ha&261888)===0&&(ha=256)),ri=n}return ri}function $y(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:nl(""+n)}function Zy(n,a){var s=a.ownerDocument.createElement("input");return s.name=a.name,s.value=a.value,n.id&&s.setAttribute("form",n.id),a.parentNode.insertBefore(s,a),n=new FormData(n),s.parentNode.removeChild(s),n}function nj(n,a,s,l,f){if(a==="submit"&&s&&s.stateNode===f){var p=$y((f[oe]||null).action),v=l.submitter;v&&(a=(a=v[oe]||null)?$y(a.formAction):v.getAttribute("formAction"),a!==null&&(p=a,v=null));var w=new sl("action","action",null,l,f);n.push({event:w,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ri!==0){var C=v?Zy(f,v):new FormData(f);mf(s,{pending:!0,data:C,method:f.method,action:p},null,C)}}else typeof p=="function"&&(w.preventDefault(),C=v?Zy(f,v):new FormData(f),mf(s,{pending:!0,data:C,method:f.method,action:p},p,C))},currentTarget:f}]})}}for(var Jf=0;Jf<Mc.length;Jf++){var Kf=Mc[Jf],aj=Kf.toLowerCase(),ij=Kf[0].toUpperCase()+Kf.slice(1);Fn(aj,"on"+ij)}Fn(vm,"onAnimationEnd"),Fn(bm,"onAnimationIteration"),Fn(Sm,"onAnimationStart"),Fn("dblclick","onDoubleClick"),Fn("focusin","onFocus"),Fn("focusout","onBlur"),Fn(bw,"onTransitionRun"),Fn(Sw,"onTransitionStart"),Fn(ww,"onTransitionCancel"),Fn(wm,"onTransitionEnd"),jn("onMouseEnter",["mouseout","mouseover"]),jn("onMouseLeave",["mouseout","mouseover"]),jn("onPointerEnter",["pointerout","pointerover"]),jn("onPointerLeave",["pointerout","pointerover"]),qn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qn("onSelect","focusout contextmenu dragend focu
48sin keydown keyup mousedown mouseup selectionchange".split(" ")),qn("onBeforeInput",["compositionend","keypress","textInput","paste"]),qn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var to="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(to));function Py(n,a){a=(a&4)!==0;for(var s=0;s<n.length;s++){var l=n[s],f=l.event;l=l.listeners;e:{var p=void 0;if(a)for(var v=l.length-1;0<=v;v--){var w=l[v],C=w.instance,V=w.currentTarget;if(w=w.listener,C!==p&&f.isPropagationStopped())break e;p=w,f.currentTarget=V;try{p(f)}catch(F){ul(F)}f.currentTarget=null,p=C}else for(v=0;v<l.length;v++){if(w=l[v],C=w.instance,V=w.currentTarget,w=w.listener,C!==p&&f.isPropagationStopped())break e;p=w,f.currentTarget=V;try{p(f)}catch(F){ul(F)}f.currentTarget=null,p=C}}}}function De(n,a){var s=a[Ne];s===void 0&&(s=a[Ne]=new Set);var l=n+"__bubble";s.has(l)||(qy(a,n,2,!1),s.add(l))}function Qf(n,a,s){var l=0;a&&(l|=4),qy(s,n,l,a)}var Il="_reactListening"+Math.random().toString(36).slice(2);function Wf(n){if(!n[Il]){n[Il]=!0,Pn.forEach(function(s){s!=="selectionchange"&&(rj.has(s)||Qf(s,!1,n),Qf(s,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[Il]||(a[Il]=!0,Qf("selectionchange",!1,a))}}function qy(n,a,s,l){switch(vx(a)){case 2:var f=kj;break;case 8:f=Oj;break;default:f=pd}s=f.bind(null,a,s,n),f=void 0,!xc||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),l?f!==void 0?n.addEventListener(a,s,{capture:!0,passive:f}):n.addEventListener(a,s,!0):f!==void 0?n.addEventListener(a,s,{passive:f}):n.addEventListener(a,s,!1)}function ed(n,a,s,l,f){var p=l;if((a&1)===0&&(a&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var w=l.stateNode.containerInfo;if(w===f)break;if(v===4)for(v=l.return;v!==null;){var C=v.tag;if((C===3||C===4)&&v.stateNode.containerInfo===f)return;v=v.return}for(;w!==null;){if(v=xt(w),v===null)return;if(C=v.tag,C===5||C===6||C===26||C===27){l=p=v;continue e}w=w.parentNode}}l=l.return}Ip(function(){var V=p,F=gc(s),Q=[];e:{var $=jm.get(n);if($!==void 0){var P=sl,fe=n;switch(n){case"keypress":if(il(s)===0)break e;case"keydown":case"keyup":P=Q2;break;case"focusin":fe="focus",P=wc;break;case"focusout":fe="blur",P=wc;break;case"beforeblur":case"afterblur":P=wc;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=Qp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=H2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=tw;break;case vm:case bm:case Sm:P=P2;break;case wm:P=aw;break;case"scroll":case"scrollend":P=B2;break;case"wheel":P=rw;break;case"copy":case"cut":case"paste":P=Y2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=em;break;case"toggle":case"beforetoggle":P=ow}var je=(a&4)!==0,Qe=!je&&(n==="scroll"||n==="scrollend"),U=je?$!==null?$+"Capture":null:$;je=[];for(var M=V,B;M!==null;){var J=M;if(B=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||B===null||U===null||(J=js(M,U),J!=null&&je.push(no(M,J,B))),Qe)break;M=M.return}0<je.length&&($=new P($,fe,null,s,F),Q.push({event:$,listeners:je}))}}if((a&7)===0){e:{if($=n==="mouseover"||n==="pointerover",P=n==="mouseout"||n==="pointerout",$&&s!==mc&&(fe=s.relatedTarget||s.fromElement)&&(xt(fe)||fe[me]))break e;if((P||$)&&($=F.window===F?F:($=F.ownerDocument)?$.defaultView||$.parentWindow:window,P?(fe=s.relatedTarget||s.toElement,P=V,fe=fe?xt(fe):null,fe!==null&&(Qe=u(fe),je=fe.tag,fe!==Qe||je!==5&&je!==27&&je!==6)&&(fe=null)):(P=null,fe=V),P!==fe)){if(je=Qp,J="onMouseLeave",U="onMouseEnter",M="mouse",(n==="pointerout"||n==="pointerover")&&(je=em,J="onPointerLeave",U="onPointerEnter",M="pointer"),Qe=P==null?$:Vt(P),B=fe==null?$:Vt(fe),$=new je(J,M+"leave",P,s,F),$.target=Qe,$.relatedTarget=B,J=null,xt(F)===V&&(je=new je(U,M+"enter",fe,s,F),je.target=B,je.relatedTarget=Qe,J=je),Qe=J,P&&fe)t:{for(je=sj,U=P,M=fe,B=0,J=U;J;J=je(J))B++;J=0;for(var Se=M;Se;Se=je(Se))J++;for(;0<B-J;)U=je(U),B--;for(;0<J-B;)M=je(M),J--;for(;B--;){if(U===M||M!==null&&U===M.alternate){je=U;break t}U=je(U),M=je(M)}je=null}else je=null;P!==null&&Yy(Q,$,P,je,!1),fe!==null&&Qe!==null&&Yy(Q,Qe,fe,je,!0)}}
vendor: 5,189 bytes, lines 48-49
48e:{if($=V?Vt(V):window,P=$.nodeName&&$.nodeName.toLowerCase(),P==="select"||P==="input"&&$.type==="file")var Ye=lm;else if(sm($))if(um)Ye=yw;else{Ye=mw;var ge=pw}else P=$.nodeName,!P||P.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?V&&pc(V.elementType)&&(Ye=lm):Ye=gw;if(Ye&&(Ye=Ye(n,V))){om(Q,Ye,s,F);break e}ge&&ge(n,$,V),n==="focusout"&&V&&$.type==="number"&&V.memoizedProps.value!=null&&hc($,"number",$.value)}switch(ge=V?Vt(V):window,n){case"focusin":(sm(ge)||ge.contentEditable==="true")&&(vr=ge,Ac=V,Ms=null);break;case"focusout":Ms=Ac=vr=null;break;case"mousedown":_c=!0;break;case"contextmenu":case"mouseup":case"dragend":_c=!1,ym(Q,s,F);break;case"selectionchange":if(vw)break;case"keydown":case"keyup":ym(Q,s,F)}var Me;if(Tc)e:{switch(n){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else xr?im(n,s)&&(Le="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Le="onCompositionStart");Le&&(tm&&s.locale!=="ko"&&(xr||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&xr&&(Me=Jp()):(Pa=F,vc="value"in Pa?Pa.value:Pa.textContent,xr=!0)),ge=Jl(V,Le),0<ge.length&&(Le=new Wp(Le,n,null,s,F),Q.push({event:Le,listeners:ge}),Me?Le.data=Me:(Me=rm(s),Me!==null&&(Le.data=Me)))),(Me=uw?cw(n,s):fw(n,s))&&(Le=Jl(V,"onBeforeInput"),0<Le.length&&(ge=new Wp("onBeforeInput","beforeinput",null,s,F),Q.push({event:ge,listeners:Le}),ge.data=Me)),nj(Q,n,V,s,F)}Py(Q,a)})}function no(n,a,s){return{instance:n,listener:a,currentTarget:s}}function Jl(n,a){for(var s=a+"Capture",l=[];n!==null;){var f=n,p=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||p===null||(f=js(n,s),f!=null&&l.unshift(no(n,f,p)),f=js(n,a),f!=null&&l.push(no(n,f,p))),n.tag===3)return l;n=n.return}return[]}function sj(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Yy(n,a,s,l,f){for(var p=a._reactName,v=[];s!==null&&s!==l;){var w=s,C=w.alternate,V=w.stateNode;if(w=w.tag,C!==null&&C===l)break;w!==5&&w!==26&&w!==27||V===null||(C=V,f?(V=js(s,p),V!=null&&v.unshift(no(s,V,C))):f||(V=js(s,p),V!=null&&v.push(no(s,V,C)))),s=s.return}v.length!==0&&n.push({event:a,listeners:v})}var oj=/\r\n?/g,lj=/\u0000|\uFFFD/g;function Fy(n){return(typeof n=="string"?n:""+n).replace(oj,` 49`).replace(lj,"")}function Gy(n,a){return a=Fy(a),Fy(n)===a}function Ke(n,a,s,l,f,p){switch(s){case"children":typeof l=="string"?a==="body"||a==="textarea"&&l===""||mr(n,l):(typeof l=="number"||typeof l=="bigint")&&a!=="body"&&mr(n,""+l);break;case"className":Yn(n,"class",l);break;case"tabIndex":Yn(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Yn(n,s,l);break;case"style":Gp(n,l,p);break;case"data":if(a!=="object"){Yn(n,"data",l);break}case"src":case"href":if(l===""&&(a!=="a"||s!=="href")){n.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(s);break}l=nl(""+l),n.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(s==="formAction"?(a!=="input"&&Ke(n,a,"name",f.name,f,null),Ke(n,a,"formEncType",f.formEncType,f,null),Ke(n,a,"formMethod",f.formMethod,f,null),Ke(n,a,"formTarget",f.formTarget,f,null)):(Ke(n,a,"encType",f.encType,f,null),Ke(n,a,"method",f.method,f,null),Ke(n,a,"target",f.target,f,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(s);break}l=nl(""+l),n.setAttribute(s,l);break;case"onClick":l!=null&&(n.onclick=ga);break;case"onScroll":l!=null&&De("scroll",n);break;case"onScrollEnd":l!=null&&De("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(f.children!=null)throw Error(r(60));n.innerHTML=s}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}s=nl(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(s,""+l):n.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":l===!0?n.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(s,l):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(s,l):n.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(s):n.setAttribute(s,l);break;case"popover":De("beforetoggle",n),De("toggle",n),jt(n,"popover",l);break;case"xlinkActuate":$t(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":$t(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":$t(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":$t(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":$t(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":$t(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":$t(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":$t(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":$t(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":jt(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=U2.get(s)||s,jt(n,s,l))}}function td(n,a,s,l,f,p){switch(s){case"style":Gp(n,l,p);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(f.children!=null)throw Error(r(60));n.innerHTML=s}}break;case"children":typeof l=="string"?mr(n,l):(typeof l=="number"||typeof l=="bigint")&&mr(n,""+l);break;case"onScroll":l!=null&&De("scroll",n);break;case"onScrollEnd":l!=null&&De("scrollend",n);break;case"onClick":l!=null&&(n.onclick=ga);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dn.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(f=s.endsWith("Capture"),a=s.slice(2,f?s.length-7:void 0),p=n[oe]||null,p=p!=null?p[s]:null,typeof p=="function"&&n.removeEventListener(a,p,f),typeof l=="function")){typeof p!="function"&&p!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(a,l,f);break e}s in n?n[s]=l:l===!0?n.setAttribute(s,""):jt(n,s,l)}}}function Yt(n,a,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",n),De("load",n);var l=!1,f=!1,p;for(p in s)if(s.hasOwnProperty(p)){var v=s[p];if(v!=null)switch(p){case"src":l=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Ke(n,a,p,v,s,null)}}f&&Ke(n,a,"srcSet",s.srcSet,s,null),l&&Ke(n,a,"src",s.src,s,null);return;case"input":De("invalid",n);var w=p=v=f=null,C=null,V=null;for(l in s)if(s.hasOwnProperty(l)){var F=s[l];if(F!=null)switch(l){case"name":f=F;break;case"type":v=F;break;case"checked":C=F;break;case"defaultChecked":V=F;break;case"value":p=F;break;case"defaultValue":w=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(137,a));break;default:Ke(n,a,l,F,s,null)}}Pp(n,p,w,C,V,v,f,!1);return;case"select":De("invalid",n),l=v=p=null;for(f in s)if(s.hasOwnProperty(f)&&(w=s[f],w!=null))switch(f){case"value":p=w;break;case"defaultValue":v=w;break;case"multiple":l=w;default:Ke(n,a,f,w,s,null)}a=p,s=v,n.multiple=!!l,a!=null?pr(n,!!l,a,!1):s!=null&&pr(n,!!l,s,!0);return;case"textarea":De("invalid",n),p=f=l=null;for(v in s)if(s.hasOwnProperty(v)&&(w=s[v],w!=null))switch(v){case"value":l=w;break;case"defaultValue":f=w;break;case"children":p=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(91));break;default:Ke(n,a,v,w,s,null)}Yp(n,l,f,p);return;case"option":for(C in s)if(s.hasOwnProperty(C)&&(l=s[C],l!=null))switch(C){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ke(n,a,C,l,s,null)}return;case"dialog":De("beforetoggle",n),De("toggle",n),De("cancel",n),De("close",n);break;case"iframe":case"object":De("load",n);break;case"video":case"audio":for(l=0;l<to.length;l++)De(to[l],n);break;case"image":De("error",n),De("load",n);break;case"details":De("toggle",n);break;case"embed":case"source":case"link":De("error",n),De("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in s)if(s.hasOwnProperty(V)&&(l=s[V],l!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Ke(n,a,V,l,s,null)}return;default:if(pc(a)){for(F in s)s.hasOwnProperty(F)&&(l=s[F],l!==void 0&&td(n,a,F,l,s,void 0));return}}for(w in s)s.hasOwnProperty(w)&&(l=s[w],l!=null&&Ke(n,a,w,l,s,null))}function uj(n,a,s,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,p=null,v=null,w=null,C=null,V=null,F=null;for(P in s){var Q=s[P];if(s.hasOwnProperty(P)&&Q!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":C=Q;default:l.hasOwnProperty(P)||Ke(n,a,P,null,l,Q)}}for(var $ in l){var P=l[$];if(Q=s[$],l.hasOwnProperty($)&&(P!=null||Q!=null))switch($){case"type":p=P;break;case"name":f=P;break;case"checked":V=P;break;case"defaultChecked":F=P;break;case"value":v=P;break;case"defaultValue":w=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(137,a));break;default:P!==Q&&Ke(n,a,$,P,l,Q)}}dc(n,v,w,C,V,F,p,f);return;case"select":P=v=w=$=null;for(p in s)if(C=s[p],s.hasOwnProperty(p)&&C!=null)switch(p){case"value":break;case"multiple":P=C;default:l.hasOwnProperty(p)||Ke(n,a,p,null,l,C)}for(f in l)if(p=l[f],C=s[f],l.hasOwnProperty(f)&&(p!=null||C!=null))switch(f){case"value":$=p;break;case"defaultValue":w=p;break;case"multiple":v=p;default:p!==C&&Ke(n,a,f,p,l,C)}a=w,s=v,l=P,$!=null?pr(n,!!s,$,!1):!!l!=!!s&&(a!=null?pr(n,!!s,a,!0):pr(n,!!s,s?[]:"",!1));return;case"textarea":P=$=null;for(w in s)if(f=s[w],s.hasOwnProperty(w)&&f!=null&&!l.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ke(n,a,w,null,l,f)}for(v in l)if(f=l[v],p=s[v],l.hasOwnProperty(v)&&(f!=null||p!=null))switch(v){case"value":$=f;break;case"defaultValue":P=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:f!==p&&Ke(n,a,v,f,l,p)}qp(n,$,P);return;case"option":for(var fe in s)if($=s[fe],s.hasOwnProperty(fe)&&$!=null&&!l.hasOwnProperty(fe))switch(fe){case"selected":n.selected=!1;break;default:Ke(n,a,fe,null,l,$)}for(C in l)if($=l[C],P=s[C],l.hasOwnProperty(C)&&$!==P&&($!=null||P!=null))switch(C){case"selected":n.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:Ke(n,a,C,$,l,P)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var je in s)$=s[je],s.hasOwnProperty(je)&&$!=null&&!l.hasOwnProperty(je)&&Ke(n,a,je,null,l,$);for(V in l)if($=l[V],P=s[V],l.hasOwnProperty(V)&&$!==P&&($!=null||P!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(r(137,a));break;default:Ke(n,a,V,$,l,P)}return;default:if(pc(a)){for(var Qe in s)$=s[Qe],s.hasOwnProperty(Qe)&&$!==void 0&&!l.hasOwnProperty(Qe)&&td(n,a,Qe,void 0,l,$);for(F in l)$=l[F],P=s[F],!l.hasOwnProperty(F)||$===P||$===void 0&&P===void 0||td(n,a,F,$,l,P);return}}for(var U in s)$=s[U],s.hasOwnProperty(U)&&$!=null&&!l.hasOwnProperty(U)&&Ke(n,a,U,null,l,$);for(Q in l)$=l[Q],P=s[Q],!l.hasOwnProperty(Q)||$===P||$==null&&P==null||Ke(n,a,Q,$,l,P)}function Xy(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function cj(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,s=performance.getEntriesByType("resource"),l=0;l<s.length;l++){var f=s[l],p=f.transferSize,v=f.initiatorType,w=f.duration;if(p&&w&&Xy(v)){for(v=0,w=f.responseEnd,l+=1;l<s.length;l++){var C=s[l],V=C.startTime;if(V>
vendor: 17,546 bytes, line 49
49w)break;var F=C.transferSize,Q=C.initiatorType;F&&Xy(Q)&&(C=C.responseEnd,v+=F*(C<w?1:(w-V)/(C-V)))}if(--l,a+=8*(p+v)/(f.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var nd=null,ad=null;function Kl(n){return n.nodeType===9?n:n.ownerDocument}function Iy(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Jy(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function id(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var rd=null;function fj(){var n=window.event;return n&&n.type==="popstate"?n===rd?!1:(rd=n,!0):(rd=null,!1)}var Ky=typeof setTimeout=="function"?setTimeout:void 0,dj=typeof clearTimeout=="function"?clearTimeout:void 0,Qy=typeof Promise=="function"?Promise:void 0,hj=typeof queueMicrotask=="function"?queueMicrotask:typeof Qy<"u"?function(n){return Qy.resolve(null).then(n).catch(pj)}:Ky;function pj(n){setTimeout(function(){throw n})}function si(n){return n==="head"}function Wy(n,a){var s=a,l=0;do{var f=s.nextSibling;if(n.removeChild(s),f&&f.nodeType===8)if(s=f.data,s==="/$"||s==="/&"){if(l===0){n.removeChild(f),Fr(a);return}l--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")l++;else if(s==="html")ao(n.ownerDocument.documentElement);else if(s==="head"){s=n.ownerDocument.head,ao(s);for(var p=s.firstChild;p;){var v=p.nextSibling,w=p.nodeName;p[pt]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&p.rel.toLowerCase()==="stylesheet"||s.removeChild(p),p=v}}else s==="body"&&ao(n.ownerDocument.body);s=f}while(s);Fr(a)}function ex(n,a){var s=n;n=0;do{var l=s.nextSibling;if(s.nodeType===1?a?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(a?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),l&&l.nodeType===8)if(s=l.data,s==="/$"){if(n===0)break;n--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||n++;s=l}while(s)}function sd(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var s=a;switch(a=a.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":sd(s),yt(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}function mj(n,a,s,l){for(;n.nodeType===1;){var f=s;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[pt])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(p=n.getAttribute("rel"),p==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(p!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(p=n.getAttribute("src"),(p!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&p&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var p=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===p)return n}else return n;if(n=Mn(n.nextSibling),n===null)break}return null}function gj(n,a,s){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=Mn(n.nextSibling),n===null))return null;return n}function tx(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=Mn(n.nextSibling),n===null))return null;return n}function od(n){return n.data==="$?"||n.data==="$~"}function ld(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function yj(n,a){var s=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||s.readyState!=="loading")a();else{var l=function(){a(),s.removeEventListener("DOMContentLoaded",l)};s.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function Mn(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var ud=null;function nx(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"||s==="/&"){if(a===0)return Mn(n.nextSibling);a--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||a++}n=n.nextSibling}return null}function ax(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(a===0)return n;a--}else s!=="/$"&&s!=="/&"||a++}n=n.previousSibling}return null}function ix(n,a,s){switch(a=Kl(s),n){case"html":if(n=a.documentElement,!n)throw Error(r(452));return n;case"head":if(n=a.head,!n)throw Error(r(453));return n;case"body":if(n=a.body,!n)throw Error(r(454));return n;default:throw Error(r(451))}}function ao(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);yt(n)}var Rn=new Map,rx=new Set;function Ql(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Ra=K.d;K.d={f:xj,r:vj,D:bj,C:Sj,L:wj,m:jj,X:Nj,S:Tj,M:Ej};function xj(){var n=Ra.f(),a=Pl();return n||a}function vj(n){var a=He(n);a!==null&&a.tag===5&&a.type==="form"?wg(a):Ra.r(n)}var Pr=typeof document>"u"?null:document;function sx(n,a,s){var l=Pr;if(l&&typeof a=="string"&&a){var f=Tn(a);f='link[rel="'+n+'"][href="'+f+'"]',typeof s=="string"&&(f+='[crossorigin="'+s+'"]'),rx.has(f)||(rx.add(f),n={rel:n,crossOrigin:s,href:a},l.querySelector(f)===null&&(a=l.createElement("link"),Yt(a,"link",n),ot(a),l.head.appendChild(a)))}}function bj(n){Ra.D(n),sx("dns-prefetch",n,null)}function Sj(n,a){Ra.C(n,a),sx("preconnect",n,a)}function wj(n,a,s){Ra.L(n,a,s);var l=Pr;if(l&&n&&a){var f='link[rel="preload"][as="'+Tn(a)+'"]';a==="image"&&s&&s.imageSrcSet?(f+='[imagesrcset="'+Tn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(f+='[imagesizes="'+Tn(s.imageSizes)+'"]')):f+='[href="'+Tn(n)+'"]';var p=f;switch(a){case"style":p=qr(n);break;case"script":p=Yr(n)}Rn.has(p)||(n=x({rel:"preload",href:a==="image"&&s&&s.imageSrcSet?void 0:n,as:a},s),Rn.set(p,n),l.querySelector(f)!==null||a==="style"&&l.querySelector(io(p))||a==="script"&&l.querySelector(ro(p))||(a=l.createElement("link"),Yt(a,"link",n),ot(a),l.head.appendChild(a)))}}function jj(n,a){Ra.m(n,a);var s=Pr;if(s&&n){var l=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+Tn(l)+'"][href="'+Tn(n)+'"]',p=f;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Yr(n)}if(!Rn.has(p)&&(n=x({rel:"modulepreload",href:n},a),Rn.set(p,n),s.querySelector(f)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(ro(p)))return}l=s.createElement("link"),Yt(l,"link",n),ot(l),s.head.appendChild(l)}}}function Tj(n,a,s){Ra.S(n,a,s);var l=Pr;if(l&&n){var f=an(l).hoistableStyles,p=qr(n);a=a||"default";var v=f.get(p);if(!v){var w={loading:0,preload:null};if(v=l.querySelector(io(p)))w.loading=5;else{n=x({rel:"stylesheet",href:n,"data-precedence":a},s),(s=Rn.get(p))&&cd(n,s);var C=v=l.createElement("link");ot(C),Yt(C,"link",n),C._p=new Promise(function(V,F){C.onload=V,C.onerror=F}),C.addEventListener("load",function(){w.loading|=1}),C.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Wl(v,a,l)}v={type:"stylesheet",instance:v,count:1,state:w},f.set(p,v)}}}function Nj(n,a){Ra.X(n,a);var s=Pr;if(s&&n){var l=an(s).hoistableScripts,f=Yr(n),p=l.get(f);p||(p=s.querySelector(ro(f)),p||(n=x({src:n,async:!0},a),(a=Rn.get(f))&&fd(n,a),p=s.createElement("script"),ot(p),Yt(p,"link",n),s.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(f,p))}}function Ej(n,a){Ra.M(n,a);var s=Pr;if(s&&n){var l=an(s).hoistableScripts,f=Yr(n),p=l.get(f);p||(p=s.querySelector(ro(f)),p||(n=x({src:n,async:!0,type:"module"},a),(a=Rn.get(f))&&fd(n,a),p=s.createElement("script"),ot(p),Yt(p,"link",n),s.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(f,p))}}function ox(n,a,s,l){var f=(f=Te.current)?Ql(f):null;if(!f)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(a=qr(s.href),s=an(f).hoistableStyles,l=s.get(a),l||(l={type:"style",instance:null,count:0,state:null},s.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=qr(s.href);var p=an(f).hoistableStyles,v=p.get(n);if(v||(f=f.ownerDocument||f,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(n,v),(p=f.querySelector(io(n)))&&!p._p&&(v.instance=p,v.state.loading=5),Rn.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Rn.set(n,s),p||Cj(f,n,s,v.state))),a&&l===null)throw Error(r(528,""));return v}if(a&&l!==null)throw Error(r(529,""));return null;case"script":return a=s.async,s=s.src,typeof s=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Yr(s),s=an(f).hoistableScripts,l=s.get(a),l||(l={type:"script",instance:null,count:0,state:null},s.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,n))}}function qr(n){return'href="'+Tn(n)+'"'}function io(n){return'link[rel="stylesheet"]['+n+"]"}function lx(n){return x({},n,{"data-precedence":n.precedence,precedence:null})}function Cj(n,a,s,l){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=n.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),Yt(a,"link",s),ot(a),n.head.appendChild(a))}function Yr(n){return'[src="'+Tn(n)+'"]'}function ro(n){return"script[async]"+n}function ux(n,a,s){if(a.count++,a.instance===null)switch(a.type){case"style":var l=n.querySelector('style[data-href~="'+Tn(s.href)+'"]');if(l)return a.instance=l,ot(l),l;var f=x({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),ot(l),Yt(l,"style",f),Wl(l,s.precedence,n),a.instance=l;case"stylesheet":f=qr(s.href);var p=n.querySelector(io(f));if(p)return a.state.loading|=4,a.instance=p,ot(p),p;l=lx(s),(f=Rn.get(f))&&cd(l,f),p=(n.ownerDocument||n).createElement("link"),ot(p);var v=p;return v._p=new Promise(function(w,C){v.onload=w,v.onerror=C}),Yt(p,"link",l),a.state.loading|=4,Wl(p,s.precedence,n),a.instance=p;case"script":return p=Yr(s.src),(f=n.querySelector(ro(p)))?(a.instance=f,ot(f),f):(l=s,(f=Rn.get(p))&&(l=x({},s),fd(l,f)),n=n.ownerDocument||n,f=n.createElement("script"),ot(f),Yt(f,"link",l),n.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,Wl(l,s.precedence,n));return a.instance}function Wl(n,a,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=l.length?l[l.length-1]:null,p=f,v=0;v<l.length;v++){var w=l[v];if(w.dataset.precedence===a)p=w;else if(p!==f)break}p?p.parentNode.insertBefore(n,p.nextSibling):(a=s.nodeType===9?s.head:s,a.insertBefore(n,a.firstChild))}function cd(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function fd(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var eu=null;function cx(n,a,s){if(eu===null){var l=new Map,f=eu=new Map;f.set(s,l)}else f=eu,l=f.get(s),l||(l=new Map,f.set(s,l));if(l.has(n))return l;for(l.set(n,null),s=s.getElementsByTagName(n),f=0;f<s.length;f++){var p=s[f];if(!(p[pt]||p[se]||n==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var v=p.getAttribute(a)||"";v=n+v;var w=l.get(v);w?w.push(p):l.set(v,[p])}}return l}function fx(n,a,s){n=n.ownerDocument||n,n.head.insertBefore(s,a==="title"?n.querySelector("head > title"):null)}function Aj(n,a,s){if(s===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function dx(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function _j(n,a,s,l){if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var f=qr(l.href),p=a.querySelector(io(f));if(p){a=p._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=tu.bind(n),a.then(n,n)),s.state.loading|=4,s.instance=p,ot(p);return}p=a.ownerDocument||a,l=lx(l),(f=Rn.get(f))&&cd(l,f),p=p.createElement("link"),ot(p);var v=p;v._p=new Promise(function(w,C){v.onload=w,v.onerror=C}),Yt(p,"link",l),s.instance=p}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(n.count++,s=tu.bind(n),a.addEventListener("load",s),a.addEventListener("error",s))}}var dd=0;function zj(n,a){return n.stylesheets&&n.count===0&&au(n,n.stylesheets),0<n.count||0<n.imgCount?function(s){var l=setTimeout(function(){if(n.stylesheets&&au(n,n.stylesheets),n.unsuspend){var p=n.unsuspend;n.unsuspend=null,p()}},6e4+a);0<n.imgBytes&&dd===0&&(dd=62500*cj());var f=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&au(n,n.stylesheets),n.unsuspend)){var p=n.unsuspend;n.unsuspend=null,p()}},(n.imgBytes>dd?50:800)+a);return n.unsuspend=s,function(){n.unsuspend=null,clearTimeout(l),clearTimeout(f)}}:null}function tu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)au(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var nu=null;function au(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,nu=new Map,a.forEach(Mj,n),nu=null,tu.call(n))}function Mj(n,a){if(!(a.state.loading&4)){var s=nu.get(n);if(s)var l=s.get(null);else{s=new Map,nu.set(n,s);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<f.length;p++){var v=f[p];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(s.set(v.dataset.precedence,v),l=v)}l&&s.set(null,l)}f=a.instance,v=f.getAttribute("data-precedence"),p=s.get(v)||l,p===l&&s.set(null,f),s.set(v,f),this.count++,l=tu.bind(this),f.addEventListener("load",l),f.addEventListener("error",l),p?p.parentNode.insertBefore(f,p.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),a.state.loading|=4}}var so={$$typeof:O,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function Rj(n,a,s,l,f,p,v,w,C){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$a(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$a(0),this.hiddenUpdates=$a(null),this.identifierPrefix=l,this.onUncaughtError=f,this.onCaughtError=p,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function hx(n,a,s,l,f,p,v,w,C,V,F,Q){return n=new Rj(n,a,s,v,C,V,F,Q,w),a=1,p===!0&&(a|=24),p=pn(3,null,null,a),n.current=p,p.stateNode=n,a=qc(),a.refCount++,n.pooledCache=a,a.refCount++,p.memoizedState={element:l,isDehydrated:s,cache:a},Xc(p),n}function px(n){return n?(n=wr,n):wr}function mx(n,a,s,l,f,p){f=px(f),l.context===null?l.context=f:l.pendingContext=f,l=Ia(a),l.payload={element:s},p=p===void 0?null:p,p!==null&&(l.callback=p),s=Ja(n,l,a),s!==null&&(cn(s,n,a),Bs(s,n,a))}function gx(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<a?s:a}}function hd(n,a){gx(n,a),(n=n.alternate)&&gx(n,a)}function yx(n){if(n.tag===13||n.tag===31){var a=Vi(n,67108864);a!==null&&cn(a,n,67108864),hd(n,67108864)}}function xx(n){if(n.tag===13||n.tag===31){var a=vn();a=Z(a);var s=Vi(n,a);s!==null&&cn(s,n,a),hd(n,a)}}var iu=!0;function kj(n,a,s,l){var f=H.T;H.T=null;var p=K.p;try{K.p=2,pd(n,a,s,l)}finally{K.p=p,H.T=f}}function Oj(n,a,s,l){var f=H.T;H.T=null;var p=K.p;try{K.p=8,pd(n,a,s,l)}finally{K.p=p,H.T=f}}function pd(n,a,s,l){if(iu){var f=md(l);if(f===null)ed(n,a,l,ru,s),bx(n,l);
vendor: 4,305 bytes, line 49
49else if(Uj(f,n,a,s,l))l.stopPropagation();else if(bx(n,l),a&4&&-1<Dj.indexOf(n)){for(;f!==null;){var p=He(f);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var v=pa(p.pendingLanes);if(v!==0){var w=p;for(w.pendingLanes|=2,w.entangledLanes|=2;v;){var C=1<<31-Gt(v);w.entanglements[1]|=C,v&=~C}aa(p),(Ge&6)===0&&($l=wt()+500,eo(0))}}break;case 31:case 13:w=Vi(p,2),w!==null&&cn(w,p,2),Pl(),hd(p,2)}if(p=md(l),p===null&&ed(n,a,l,ru,s),p===f)break;f=p}f!==null&&l.stopPropagation()}else ed(n,a,l,null,s)}}function md(n){return n=gc(n),gd(n)}var ru=null;function gd(n){if(ru=null,n=xt(n),n!==null){var a=u(n);if(a===null)n=null;else{var s=a.tag;if(s===13){if(n=c(a),n!==null)return n;n=null}else if(s===31){if(n=h(a),n!==null)return n;n=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return ru=n,null}function vx(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ci()){case vs:return 2;case hr:return 8;case nn:case $n:return 32;case bs:return 268435456;default:return 32}default:return 32}}var yd=!1,oi=null,li=null,ui=null,oo=new Map,lo=new Map,ci=[],Dj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function bx(n,a){switch(n){case"focusin":case"focusout":oi=null;break;case"dragenter":case"dragleave":li=null;break;case"mouseover":case"mouseout":ui=null;break;case"pointerover":case"pointerout":oo.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":lo.delete(a.pointerId)}}function uo(n,a,s,l,f,p){return n===null||n.nativeEvent!==p?(n={blockedOn:a,domEventName:s,eventSystemFlags:l,nativeEvent:p,targetContainers:[f]},a!==null&&(a=He(a),a!==null&&yx(a)),n):(n.eventSystemFlags|=l,a=n.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),n)}function Uj(n,a,s,l,f){switch(a){case"focusin":return oi=uo(oi,n,a,s,l,f),!0;case"dragenter":return li=uo(li,n,a,s,l,f),!0;case"mouseover":return ui=uo(ui,n,a,s,l,f),!0;case"pointerover":var p=f.pointerId;return oo.set(p,uo(oo.get(p)||null,n,a,s,l,f)),!0;case"gotpointercapture":return p=f.pointerId,lo.set(p,uo(lo.get(p)||null,n,a,s,l,f)),!0}return!1}function Sx(n){var a=xt(n.target);if(a!==null){var s=u(a);if(s!==null){if(a=s.tag,a===13){if(a=c(s),a!==null){n.blockedOn=a,xe(n.priority,function(){xx(s)});return}}else if(a===31){if(a=h(s),a!==null){n.blockedOn=a,xe(n.priority,function(){xx(s)});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function su(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var s=md(n.nativeEvent);if(s===null){s=n.nativeEvent;var l=new s.constructor(s.type,s);mc=l,s.target.dispatchEvent(l),mc=null}else return a=He(s),a!==null&&yx(a),n.blockedOn=s,!1;a.shift()}return!0}function wx(n,a,s){su(n)&&s.delete(a)}function Lj(){yd=!1,oi!==null&&su(oi)&&(oi=null),li!==null&&su(li)&&(li=null),ui!==null&&su(ui)&&(ui=null),oo.forEac
vendor: 5,173 bytes, lines 49-58
49h(wx),lo.forEach(wx)}function ou(n,a){n.blockedOn===a&&(n.blockedOn=null,yd||(yd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Lj)))}var lu=null;function jx(n){lu!==n&&(lu=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){lu===n&&(lu=null);for(var a=0;a<n.length;a+=3){var s=n[a],l=n[a+1],f=n[a+2];if(typeof l!="function"){if(gd(l||s)===null)continue;break}var p=He(s);p!==null&&(n.splice(a,3),a-=3,mf(p,{pending:!0,data:f,method:s.method,action:l},l,f))}}))}function Fr(n){function a(C){return ou(C,n)}oi!==null&&ou(oi,n),li!==null&&ou(li,n),ui!==null&&ou(ui,n),oo.forEach(a),lo.forEach(a);for(var s=0;s<ci.length;s++){var l=ci[s];l.blockedOn===n&&(l.blockedOn=null)}for(;0<ci.length&&(s=ci[0],s.blockedOn===null);)Sx(s),s.blockedOn===null&&ci.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var f=s[l],p=s[l+1],v=f[oe]||null;if(typeof p=="function")v||jx(s);else if(v){var w=null;if(p&&p.hasAttribute("formAction")){if(f=p,v=p[oe]||null)w=v.formAction;else if(gd(f)!==null)continue}else w=v.action;typeof w=="function"?s[l+1]=w:(s.splice(l,3),l-=3),jx(s)}}}function Tx(){function n(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(v){return f=v})},focusReset:"manual",scroll:"manual"})}function a(){f!==null&&(f(),f=null),l||setTimeout(s,20)}function s(){if(!l&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,f=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(s,100),function(){l=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),f!==null&&(f(),f=null)}}}function xd(n){this._internalRoot=n}uu.prototype.render=xd.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(r(409));var s=a.current,l=vn();mx(s,l,n,a,null,null)},uu.prototype.unmount=xd.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;mx(n.current,2,null,n,null,null),Pl(),a[me]=null}};function uu(n){this._internalRoot=n}uu.prototype.unstable_scheduleHydration=function(n){if(n){var a=re();n={blockedOn:null,target:n,priority:a};for(var s=0;s<ci.length&&a!==0&&a<ci[s].priority;s++);ci.splice(s,0,n),s===0&&Sx(n)}};var Nx=t.version;if(Nx!=="19.2.4")throw Error(r(527,Nx,"19.2.4"));K.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=g(a),n=n!==null?y(n):null,n=n===null?null:n.stateNode,n};var Bj={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cu.isDisabled&&cu.supportsFiber)try{Ai=cu.inject(Bj),ht=cu}catch{}}return fo.createRoot=function(n,a){if(!o(n))throw Error(r(299));var s=!1,l="",f=Rg,p=kg,v=Og;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError)),a=hx(n,1,!1,null,null,s,l,null,f,p,v,Tx),n[me]=a.current,Wf(n),new xd(a)},fo.hydrateRoot=function(n,a,s){if(!o(n))throw Error(r(299));var l=!1,f="",p=Rg,v=kg,w=Og,C=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(f=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(v=s.onCaughtError),s.onRecoverableError!==void 0&&(w=s.onRecoverableError),s.formState!==void 0&&(C=s.formState)),a=hx(n,1,!0,a,s??null,l,f,C,p,v,w,Tx),a.context=px(null),s=a.current,l=vn(),l=Z(l),f=Ia(l),f.callback=null,Ja(s,f,l),s=l,a.current.lanes=s,Za(a,s),aa(a),n[me]=a.current,Wf(n),new uu(a)},fo.version="19.2.4",fo}var Dx;function Jj(){if(Dx)return bd.exports;Dx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),bd.exports=Ij(),bd.exports}var Kj=Jj(),T=Vh();const oa=$j(T),Qj=Hj({__proto__:null,default:oa},[T]);/** 50 * react-router v7.13.0 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */var f1=e=>{throw TypeError(e)},Wj=(e,t,i)=>t.has(e)||f1("Cannot "+i),Nd=(e,t,i)=>(Wj(e,t,"read from private field"),i?i.call(e):t.get(e)),eT=(e,t,i)=>t.has(e)?f1("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),Ux="popstate";function tT(e={}){function t(r,o){let{pathname:u,search:c,hash:h}=r.location;return _o("",{pathname:u,search:c,hash:h},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}
58function i(r,o){return typeof o=="string"?o:la(o)}return aT(t,i,null,e)}function Re(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ut(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nT(){return Math.random().toString(36).substring(2,10)}function Lx(e,t){return{usr:e.state,key:e.key,idx:t}}function _o(e,t,i=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?wi(t):t,state:i,key:t&&t.key||r||nT()}}function la({pathname:e="/",search:t="",hash:i=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function wi(e){let t={};if(e){let i=e.indexOf("#");i>=0&&(t.hash=e.substring(i),e=e.substring(0,i));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function aT(e,t,i,r={}){let{window:o=document.defaultView,v5Compat:u=!1}=r,c=o.history,h="POP",m=null,g=y();g==null&&(g=0,c.replaceState({...c.state,idx:g},""));function y(){return(c.state||{idx:null}).idx}function x(){h="POP";let _=y(),k=_==null?null:_-g;g=_,m&&m({action:h,location:N.location,delta:k})}function b(_,k){h="PUSH";let R=_o(N.location,_,k);g=y()+1;let O=Lx(R,g),I=N.createHref(R);try{c.pushState(O,"",I)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;o.location.assign(I)}u&&m&&m({action:h,location:N.location,delta:1})}function S(_,k){h="REPLACE";let R=_o(N.location,_,k);g=y();let O=Lx(R,g),I=N.createHref(R);c.replaceState(O,"",I),u&&m&&m({action:h,location:N.location,delta:0})}function j(_){return d1(_)}let N={get action(){return h},get location(){return e(o,c)},listen(_){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(Ux,x),m=_,()=>{o.removeEventListener(Ux,x),m=null}},createHref(_){return t(o,_)},createURL:j,encodeLocation(_){let k=j(_);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:b,replace:S,go(_){return c.go(_)}};return N}function d1(e,t=!1){let i="http://localhost";
58typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Re(i,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:la(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=i+r),new URL(r,i)}var xo,Bx=class{constructor(e){if(eT(this,xo,new Map),e)for(let[t,i]of e)this.set(t,i)}get(e){if(Nd(this,xo).has(e))return Nd(this,xo).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){Nd(this,xo).set(e,t)}};xo=new WeakMap;var iT=new Set(["lazy","caseSensitive","path","id","index","children"]);function rT(e){return iT.has(e)}var sT=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function oT(e){return sT.has(e)}function lT(e){return e.index===!0}function zo(e,t,i=[],r={},o=!1){return e.map((u,c)=>{let h=[...i,String(c)],m=typeof u.id=="string"?u.id:h.join("-");if(Re(u.index!==!0||!u.children,"Cannot specify children on an index route"),Re(o||!r[m],`Found a route id collision on i
58d "${m}". Route id's must be globally unique within Data Router usages`),lT(u)){let g={...u,id:m};return r[m]=Vx(g,t(g)),g}else{let g={...u,id:m,children:void 0};return r[m]=Vx(g,t(g)),u.children&&(g.children=zo(u.children,t,h,r,o)),g}})}function Vx(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function pi(e,t,i="/"){return vo(e,t,i,!1)}function vo(e,t,i,r){let o=typeof t=="string"?wi(t):t,u=Un(o.pathname||"/",i);if(u==null)return null;let c=h1(e);cT(c);let h=null;for(let m=0;h==null&&m<c.length;++m){let g=ST(u);h=vT(c[m],g,r)}return h}function uT(e,t){let{route:i,pathname:r,params:o}=e;return{id:i.id,pathname:r,params:o,data:t[i.id],loaderData:t[i.id],handle:i.handle}}function h1(e,t=[],i=[],r="",o=!1){let u=(c,h,m=o,g)=>{let y={relativePath:g===void 0?c.path||"":g,caseSensitive:c.caseSensitive===!0,childrenIndex:h,route:c};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(r)&&m)return;Re(y.relativePath.startsWith(r),`Absolute route path "${y.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(r.length)}let x=ra([r,y.relativePath]),b=i.concat(y);c.children&&c.children.length>0&&(Re(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),h1(c.children,t,b,x,m)),!(c.path==null&&!c.index)&&t.push({path:x,score:yT(x,c.index),routesMeta:b})};return e.forEach((c,h)=>{var m;if(c.path===""||!((m=c.path)!=null&&m.includes("?")))u(c,h);else for(let g of p1(c.path))u(c,h,!0,g)}),t}function p1(e){let t=e.split("/");if(t.length===0)return[];let[i,...r]=t,o=i.endsWith("?"),u=i.replace(/\?$/,"");if(r.length===0)return o?[u,""]:[u];let c=p1(r.join("/")),h=[];return h.push(...c.map(m=>m===""?u:[u,m].join("/"))),o&&h.push(...c),h.map(m=>e.startsWith("/")&&m===""?"/":m)}function cT(e){e.sort((t,i)=>t.score!==i.score?i.score-t.score:xT(t.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var fT=/^:[\w-]+$/,dT=3,hT=2,pT=1,mT=10,gT=-2,Hx=e=>e==="*";function yT(e,t){let i=e.split("/"),r=i.length;return i.some(Hx)&&(r+=gT),t&&(r+=hT),i.filter(o=>!Hx(o)).reduce((o,u)=>o+(fT.test(u)?dT:u===""?pT:mT),r)}function xT(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function vT(e,t,i=!1){let{routesMeta:r}=e,o={},u="/",c=[];for(let h=0;h<r.length;++h){let m=r[h],g=h===r.length-1,y=u==="/"?t:t.slice(u.length)||"/",x=Du({path:m.relativePath,caseSensitive:m.caseSensitive,end:g},y),b=m.route;if(!x&&g&&i&&!r[r.length-1].route.index&&(x=Du({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},y)),!x)return null;
58Object.assign(o,x.params),c.push({params:o,pathname:ra([u,x.pathname]),pathnameBase:TT(ra([u,x.pathnameBase])),route:b}),x.pathnameBase!=="/"&&(u=ra([u,x.pathnameBase]))}return c}function Du(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,r]=bT(e.path,e.caseSensitive,e.end),o=t.match(i);if(!o)return null;let u=o[0],c=u.replace(/(.)\/+$/,"$1"),h=o.slice(1);return{params:r.reduce((g,{paramName:y,isOptional:x},b)=>{if(y==="*"){let j=h[b]||"";c=u.slice(0,u.length-j.length).replace(/(.)\/+$/,"$1")}const S=h[b];return x&&!S?g[y]=void 0:g[y]=(S||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:c,pattern:e}}function bT(e,t=!1,i=!0){Ut(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,h,m)=>(r.push({paramName:h,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function ST(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ut(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Un(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let i=t.endsWith("/")?t.length-1:t.length,r=e.charAt(i);return r&&r!=="/"?null:e.slice(i)||"/"}function wT({basename:e,pathname:t}){return t==="/"?e:ra([e,t])}var m1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hh=e=>m1.test(e);function jT(e,t="/"){let{pathname:i,search:r="",hash:o=""}=typeof e=="string"?wi(e):e,u;return i?(i=i.replace(/\/\/+/g,"/"),i.startsWith("/")?u=$x(i.substring(1),"/"):u=$x(i,t)):u=t,{pathname:u,search:NT(r),hash:ET(o)}}function $x(e,t){let i=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function Ed(e,t,i,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function g1(e){return e.filter((t,i)=>i===0||t.route.path&&t.route.path.length>0)}function $h(e){let t=g1(e);return t.map((i,r)=>r===t.length-1?i.pathname:i.pathnameBase)}function Zh(e,t,i,r=!1){let o;typeof e=="string"?o=wi(e):(o={...e},Re(!o.pathname||!o.pathname.includes("?"),Ed("?","pathname","search",o)),Re(!o.pathname||!o.pathname.includes("#"),Ed("#","pathname","hash",o)),Re(!o.search||!o.search.includes("#"),Ed("#","search","hash",o)));let u=e===""||o.pathname==="",c=u?"/":o.pathname,h;if(c==null)h=i;else{let x=t.length-1;if(!r&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),x-=1;o.pathname=b.join("/")}h=x>=0?t[x]:"/"}let m=jT(o,h),g=c&&c!=="/"&&c.endsWith("/"),y=(u||c===".")&&i.endsWith("/");return!m.pathname.endsWith("/")&&(g||y)&&(m.pathname+="/"),m}var ra=e=>e.join("/").replace(/\/\/+/g,"/"),TT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),NT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ET=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Bo=class{constructor(e,t,i,r=!1){this.status=e,this.statusText=t||"",this.internal=r,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function Mo(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Vo(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var y1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function x1(e,t){let i=e;
58if(typeof i!="string"||!m1.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let r=i,o=!1;if(y1)try{let u=new URL(window.location.href),c=i.startsWith("//")?new URL(u.protocol+i):new URL(i),h=Un(c.pathname,t);c.origin===u.origin&&h!=null?i=h+c.search+c.hash:o=!0}catch{Ut(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:i}}var gi=Symbol("Uninstrumented");function CT(e,t){let i={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(o=>o({id:t.id,index:t.index,path:t.path,instrument(u){let c=Object.keys(i);for(let h of c)u[h]&&i[h].push(u[h])}}));let r={};if(typeof t.lazy=="function"&&i.lazy.length>0){let o=Kr(i.lazy,t.lazy,()=>{});o&&(r.lazy=o)}if(typeof t.lazy=="object"){let o=t.lazy;["middleware","loader","action"].forEach(u=>{let c=o[u],h=i[`lazy.${u}`];if(typeof c=="function"&&h.length>0){let m=Kr(h,c,()=>{});m&&(r.lazy=Object.assign(r.lazy||{},{[u]:m}))}})}return["loader","action"].forEach(o=>{let u=t[o];if(typeof u=="function"&&i[o].length>0){let c=u[gi]??u,h=Kr(i[o],c,(...m)=>Zx(m[0]));h&&(o==="loader"&&c.hydrate===!0&&(h.hydrate=!0),h[gi]=c,r[o]=h)}}),t.middleware&&t.middleware.length>0&&i.middleware.length>0&&(r.middleware=t.middleware.map(o=>{let u=o[gi]??o,c=Kr(i.middleware,u,(...h)=>Zx(h[0]));return c?(c[gi]=u,c):o})),r}function AT(e,t){let i={navigate:[],fetch:[]};if(t.forEach(r=>r({instrument(o){let u=Object.keys(o);for(let c of u)o[c]&&i[c].push(o[c])}})),i.navigate.length>0){let r=e.navigate[gi]??e.navigate,o=Kr(i.navigate,r,(...u)=>{let[c,h]=u;return{to:typeof c=="number"||typeof c=="string"?c:c?la(c):".",...Px(e,h??{})}});o&&(o[gi]=r,e.navigate=o)}if(i.fetch.length>0){let r=e.fetch[gi]??e.fetch,o=Kr(i.fetch,r,(...u)=>{let[c,,h,m]=u;return{href:h??".",fetcherKey:c,...Px(e,m??{})}});o&&(o[gi]=r,e.fetch=o)}return e}function Kr(e,t,i){return e.length===0?null:async(...r)=>{let o=await v1(e,i(...r),()=>t(...r),e.length-1);if(o.type==="error")throw o.value;return o.value}}async function v1(e,t,i,r){let o=e[r],u;if(o){let c,h=async()=>(c?console.error("You cannot call instrumented handlers more than once"):c=v1(e,t,i,r-1),u=await c,Re(u,"Expected a result"),u.type==="error"&&u.value instanceof Error?{status:"error",error:u.value}:{status:"success",error:void 0});try{await o(h,t)}catch(m){console.error("An instrumentation function threw an error:",m)}c||await h(),await c}else try{u={type:"success",value:await i()}}catch(c){u={type:"error",value:c}}return u||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function Zx(e){let{request:t,context:i,params:r,unstable_pattern:o}=e;return{request:_T(t),params:{...r},unstable_pattern:o,context:zT(i)}}function Px(e,t){return{currentUrl:la(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function _T(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function zT(e){if(RT(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var MT=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function RT(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===MT}var b1=["POST","PUT","PATCH","DELETE"],kT=new Set(b1),OT=["GET",...b1],DT=new Set(OT),S1=new Set([301,302,303,307,308]),UT=new Set([307,308]),Cd={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},LT={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ho={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},BT=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),w1="remix-router-transitions",j1=Symbol("ResetLoaderData");function VT(e){const t=e.window?e.window:typeof window<"u"?window:void 0,i=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Re(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||BT,u=o;if(e.unstable_instrumentations){let E=e.unstable_instrumentations;u=D=>({...o(D),...CT(E.map(Z=>
58Z.route).filter(Boolean),D)})}let c={},h=zo(e.routes,u,void 0,c),m,g=e.basename||"/";g.startsWith("/")||(g=`/${g}`);let y=e.dataStrategy||qT,x={...e.future},b=null,S=new Set,j=null,N=null,_=null,k=e.hydrationData!=null,R=pi(h,e.history.location,g),O=!1,I=null,L;if(R==null&&!e.patchRoutesOnNavigation){let E=kn(404,{pathname:e.history.location.pathname}),{matches:D,route:Z}=fu(h);L=!0,R=D,I={[Z.id]:E}}else if(R&&!e.hydrationData&&Ri(R,h,e.history.location.pathname).active&&(R=null),R)if(R.some(E=>E.route.lazy))L=!1;else if(!R.some(E=>Ph(E.route)))L=!0;else{let E=e.hydrationData?e.hydrationData.loaderData:null,D=e.hydrationData?e.hydrationData.errors:null;if(D){let Z=R.findIndex(W=>D[W.route.id]!==void 0);L=R.slice(0,Z+1).every(W=>!ih(W.route,E,D))}else L=R.every(Z=>!ih(Z.route,E,D))}else{L=!1,R=[];let E=Ri(null,h,e.history.location.pathname);E.active&&E.matches&&(O=!0,R=E.matches)}let Y,z={historyAction:e.history.action,location:e.history.location,matches:R,initialized:L,navigation:Cd,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||I,fetchers:new Map,blockers:new Map},G="POP",ee=null,le=!1,ce,Ce=!1,tt=new Map,ze=null,Be=!1,H=!1,K=new Set,te=new Map,ne=0,ae=-1,A=new Map,q=new Set,ie=new Map,ue=new Map,ye=new Set,Te=new Map,Ve,ft=null;function dt(){if(b=e.history.listen(({action:E,location:D,delta:Z})=>{if(Ve){Ve(),Ve=void 0;return}Ut(Te.size===0||Z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let W=_i({currentLocation:z.location,nextLocation:D,historyAction:E});if(W&&Z!=null){let re=new Promise(xe=>{Ve=xe});e.history.go(Z*-1),ha(W,{state:"blocked",location:D,proceed(){ha(W,{state:"proceeding",proceed:void 0,reset:void 0,location:D}),re.then(()=>e.history.go(Z))},reset(){let xe=new Map(z.blockers);xe.set(W,ho),At({blockers:xe})}}),ee==null||ee.resolve(),ee=null;return}return Hn(E,D)}),i){lN(t,tt);let E=()=>uN(t,tt);t.addEventListener("pagehide",E),ze=()=>t.removeEventListener("pagehide",E)}return z.initialized||Hn("POP",z.location,{initialHydration:!0}),Y}function Ei(){b&&b(),ze&&ze(),S.clear(),ce&&ce.abort(),z.fetchers.forEach((E,D)=>Ss(D)),z.blockers.forEach((E,D)=>Ko(D))}function fr(E){return S.add(E),()=>S.delete(E)}function At(E,D={}){E.matches&&(E.matches=E.matches.map(re=>{let xe=c[re.route.id],pe=re.route;return pe.element!==xe.element||pe.errorElement!==xe.errorElement||pe.hydrateFallbackElement!==xe.hydrateFallbackElement?{...re,route:xe}:re})),z={...z,...E};let Z=[],W=[];z.fetchers.forEach((re,xe)=>{re.state==="idle"&&(ye.has(xe)?Z.push(xe):W.push(xe))}),ye.forEach(re=>{!z.fetchers.has(re)&&!te.has(re)&&Z.push(re)}),[...S].forEach(re=>re(z,{deletedFetchers:Z,newErrors:E.errors??null,viewTransitionOpts:D.viewTransitionOpts,flushSync:D.flushSync===!0})),Z.forEach(re=>Ss(re)),W.forEach(re=>z.fetchers.delete(re))}function da(E,D,{flushSync:Z}={}){var Ne,ve;let W=z.actionData!=null&&z.navigation.formMethod!=null&&It(z.navigation.formMethod)&&z.navigation.state==="loading"&&((Ne=E.state)==null?void 0:Ne._isRedirect)!==!0,re;D.actionData?Object.keys(D.actionData).length>0?re=D.actionData:re=null:W?re=z.actionData:re=null;let xe=D.loaderData?Wx(z.loaderData,D.loaderData,D.matches||[],D.errors):z.loaderData,pe=z.blockers;pe.size>0&&(pe=new Map(pe),pe.forEach((Ae,ke)=>pe.set(ke,ho)));let se=Be?!1:Qo(E,D.matches||z.matches),oe=le===!0||z.navigation.formMethod!=null&&It(z.navigation.formMethod)&&((ve=E.state)==null?void 0:ve._isRedirect)!==!0;m&&(h=m,m=void 0),Be||G==="POP"||(G==="PUSH"?e.history.push(E,E.state):G==="REPLACE"&&e.history.replace(E,E.state));let me;if(G==="POP"){let Ae=tt.get(z.location.pathname);Ae&&Ae.has(E.pathname)?me={currentLocation:z.location,nextLocation:E}:tt.has(E.pathname)&&(me={currentLocation:E,nextLocation:z.location})}else if(Ce){let Ae=tt.get(z.location.pathname);Ae?Ae.add(E.pathname):(Ae=new Set([E.pathname]),tt.set(z.location.pathname,Ae)),me={currentLocation:z.location,nextLocation:E}}At({...D,actionData:re,loaderData:xe,historyAction:G,location:E,initialized:!0,navigation:Cd,revalidation:"idle",restoreScrollPosition:se,preventScrollReset:oe,blockers:pe},{viewTransitionOpts:me,flushSync:Z===!0}),G="POP",le=!1,Ce=!1,Be=!1,H=!1,ee==null||ee.resolve(),ee=null,ft==null||ft.resolve(),ft=null}async function Wn(E,D){if(ee==null||ee.resolve(),ee=null,typeof E=="number"){ee||(ee=a0());let ke=ee.promise;return e.history.go(E),ke}let Z=ah(z.location,z.matches,g,E,D==null?void 0:D.fromRouteId,D==null?void 0:D.relative),{path:W,submission:re,error:xe}=qx(!1,Z,D),pe=z.location,se=_o(z.location,W,D&&D.state);se={...se,...e.history.encodeLocation(se)};let oe=D&&D.replace!=null?D.replace:void 0,me="PUSH";oe===!0?me="REPLACE":oe===!1||re!=null&&It(re.formMethod)&&re.formAction===z.location.pathname+z.location.search&&(me="REPLACE");let Ne=D&&"preventScrollReset"in D?D.preventScrollReset===!0:void 0,ve=(D&&D.flushSync)===!0,Ae=_i({currentLocation:pe,nextLocation:se,historyAction:me});if(Ae){ha(Ae,{state:"blocked",location:se,proceed(){ha(Ae,{state:"proceeding",proceed:void 0,reset:void 0,location:se}),Wn(E,D)},reset(){let ke=new Map(z.blockers);ke.set(Ae,ho),At({blockers:ke})}});return}await Hn(me,se,{submission:re,pendingError:xe,preventScrollReset:Ne,replace:D&&D.replace,enableViewTransition:D&&D.viewTransition,flushSync:ve,callSiteDefaultShouldRevalidate:D&&D.unstable_defaultShouldRevalidate})}function gs(){ft||(ft=a0()),hr(),At({revalidation:"loading"});let E=ft.promise;return z.navigation.state==="submitting"?E:z.navigation.state==="idle"?(Hn(z.historyAction,z.location,{startUninterruptedRevalidation:!0}
58),E):(Hn(G||z.historyAction,z.navigation.location,{overrideNavigation:z.navigation,enableViewTransition:Ce===!0}),E)}async function Hn(E,D,Z){ce&&ce.abort(),ce=null,G=E,Be=(Z&&Z.startUninterruptedRevalidation)===!0,Mi(z.location,z.matches),le=(Z&&Z.preventScrollReset)===!0,Ce=(Z&&Z.enableViewTransition)===!0;let W=m||h,re=Z&&Z.overrideNavigation,xe=Z!=null&&Z.initialHydration&&z.matches&&z.matches.length>0&&!O?z.matches:pi(W,D,g),pe=(Z&&Z.flushSync)===!0;if(xe&&z.initialized&&!H&&QT(z.location,D)&&!(Z&&Z.submission&&It(Z.submission.formMethod))){da(D,{matches:xe},{flushSync:pe});return}let se=Ri(xe,W,D.pathname);if(se.active&&se.matches&&(xe=se.matches),!xe){let{error:yt,notFoundMatches:xt,route:He}=Ha(D.pathname);da(D,{matches:xt,loaderData:{},errors:{[He.id]:yt}},{flushSync:pe});return}ce=new AbortController;let oe=Xr(e.history,D,ce.signal,Z&&Z.submission),me=e.getContext?await e.getContext():new Bx,Ne;if(Z&&Z.pendingError)Ne=[mi(xe).route.id,{type:"error",error:Z.pendingError}];else if(Z&&Z.submission&&It(Z.submission.formMethod)){let yt=await sc(oe,D,Z.submission,xe,me,se.active,Z&&Z.initialHydration===!0,{replace:Z.replace,flushSync:pe});if(yt.shortCircuited)return;if(yt.pendingActionResult){let[xt,He]=yt.pendingActionResult;if(bn(He)&&Mo(He.error)&&He.error.status===404){ce=null,da(D,{matches:yt.matches,loaderData:{},errors:{[xt]:He.error}});return}}xe=yt.matches||xe,Ne=yt.pendingActionResult,re=Ad(D,Z.submission),pe=!1,se.active=!1,oe=Xr(e.history,oe.url,oe.signal)}let{shortCircuited:ve,matches:Ae,loaderData:ke,errors:pt}=await Io(oe,D,xe,me,se.active,re,Z&&Z.submission,Z&&Z.fetcherSubmission,Z&&Z.replace,Z&&Z.initialHydration===!0,pe,Ne,Z&&Z.callSiteDefaultShouldRevalidate);ve||(ce=null,da(D,{matches:Ae||xe,...e0(Ne),loaderData:ke,errors:pt}))}async function sc(E,D,Z,W,re,xe,pe,se={}){hr();let oe=sN(D,Z);if(At({navigation:oe},{flushSync:se.flushSync===!0}),xe){let ve=await $a(W,D.pathname,E.signal);if(ve.type==="aborted")return{shortCircuited:!0};if(ve.type==="error"){if(ve.partialMatches.length===0){let{matches:ke,route:pt}=fu(h);return{matches:ke,pendingActionResult:[pt.id,{type:"error",error:ve.error}]}}let Ae=mi(ve.partialMatches).route.id;return{matches:ve.partialMatches,pendingActionResult:[Ae,{type:"error",error:ve.error}]}}else if(ve.matches)W=ve.matches;else{let{notFoundMatches:Ae,error:ke,route:pt}=Ha(D.pathname);return{matches:Ae,pendingActionResult:[pt.id,{type:"error",error:ke}]}}}let me,Ne=Nu(W,D);if(!Ne.route.action&&!Ne.route.lazy)me={type:"error",error:kn(405,{method:E.method,pathname:D.pathname,routeId:Ne.route.id})};else{let ve=rs(u,c,E,W,Ne,pe?[]:r,re),Ae=await Ci(E,ve,re,null);if(me=Ae[Ne.route.id],!me){for(let ke of W)if(Ae[ke.route.id]){me=Ae[ke.route.id];break}}if(E.signal.aborted)return{shortCircuited:!0}}if(tr(me)){let ve;return se&&se.replace!=null?ve=se.replace:ve=Jx(me.response.headers.get("Location"),new URL(E.url),g,e.history)===z.location.pathname+z.location.search,await wt(E,me,!0,{submission:Z,replace:ve}),{shortCircuited:!0}}if(bn(me)){let ve=mi(W,Ne.route.id);return(se&&se.replace)!==!0&&(G="PUSH"),{matches:W,pendingActionResult:[ve.route.id,me,Ne.route.id]}}return{matches:W,pendingActionResult:[Ne.route.id,me]}}async function Io(E,D,Z,W,re,xe,pe,se,oe,me,Ne,ve,Ae){let ke=xe||Ad(D,pe),pt=pe||se||n0(ke),yt=!Be&&!me;if(re){if(yt){let jt=dr(ve);At({navigation:ke,...jt!==void 0?{actionData:jt}:{}},{flushSync:Ne})}let $e=await $a(Z,D.pathname,E.signal);if($e.type==="aborted")return{shortCircuited:!0};if($e.type==="error"){if($e.partialMatches.length===0){let{matches:Yn,route:$t}=fu(h);return{matches:Yn,loaderData:{},errors:{[$t.id]:$e.error}}}let jt=mi($e.partialMatches).route.id;return{matches:$e.partialMatches,loaderData:{},errors:{[jt]:$e.error}}}else if($e.matches)Z=$e.matches;else{let{error:jt,notFoundMatches:Yn,route:$t}=Ha(D.pathname);return{matches:Yn,loaderData:{},errors:{[$t.id]:jt}}}}let xt=m||h,{dsMatches:He,revalidatingFetchers:Vt}=Yx(E,W,u,c,e.history,z,Z,pt,D,me?[]:r,me===!0,H,K,ye,ie,q,xt,g,e.patchRoutesOnNavigation!=null,ve,Ae);if(ae=++ne,!e.dataStrategy&&!He.some($e=>$e.shouldLoad)&&!He.some($e=>$e.route.middleware&&$e.route.middleware.length>0)&&Vt.length===0){let $e=Gt();return da(D,{matches:Z,loaderData:{},errors:ve&&bn(ve[1])?{[ve[0]]:ve[1].error}:null,...e0(ve),...$e?{fetchers:new Map(z.fetchers)}:{}},{flushSync:Ne}),{shortCircuited:!0}}if(yt){let $e={};if(!re){$e.navigation=ke;let jt=dr(ve);jt!==void 0&&($e.actionData=jt)}Vt.length>0&&($e.fetchers=ys(Vt)),At($e,{flushSync:Ne})}Vt.forEach($e=>{ht($e.key),$e.controller&&te.set($e.key,$e.controller)});let an=()=>Vt.forEach($e=>ht($e.key));ce&&ce.signal.addEventListener("abort",an);let{loaderResults:ot,fetcherResults:Pn}=await vs(He,Vt,E,W);if(E.signal.aborted)return{shortCircuited:!0};ce&&ce.signal.removeEventListener("abort",an),Vt.forEach($e=>te.delete($e.key));let dn=du(ot);if(dn)return await wt(E,dn.result,!0,{replace:oe}),{shortCircuited:!0};if(dn=du(Pn),dn)return q.add(dn.key),await wt(E,dn.result,!0,{replace:oe}),{shortCircuited:!0};let{loaderData:qn,errors:jn}=Qx(z,Z,ot,ve,Vt,Pn);me&&z.errors&&(jn={...z.errors,...jn});let ma=Gt(),ki=Jo(ae),Oi=ma||ki||Vt.length>0;return{matches:Z,loaderData:qn,errors:jn,...Oi?{fetchers:new Map(z.fetchers)}:{}}}function dr(E){if(E&&!bn(E[1]))return{[E[0]]:E[1].data};if(z.actionData)return Object.keys(z.actionData).length===0?null:z.actionData}
58function ys(E){return E.forEach(D=>{let Z=z.fetchers.get(D.key),W=po(void 0,Z?Z.data:void 0);z.fetchers.set(D.key,W)}),new Map(z.fetchers)}async function xs(E,D,Z,W){ht(E);let re=(W&&W.flushSync)===!0,xe=m||h,pe=ah(z.location,z.matches,g,Z,D,W==null?void 0:W.relative),se=pi(xe,pe,g),oe=Ri(se,xe,pe);if(oe.active&&oe.matches&&(se=oe.matches),!se){$n(E,D,kn(404,{pathname:pe}),{flushSync:re});return}let{path:me,submission:Ne,error:ve}=qx(!0,pe,W);if(ve){$n(E,D,ve,{flushSync:re});return}let Ae=e.getContext?await e.getContext():new Bx,ke=(W&&W.preventScrollReset)===!0;if(Ne&&It(Ne.formMethod)){await oc(E,D,me,se,Ae,oe.active,re,ke,Ne,W&&W.unstable_defaultShouldRevalidate);return}ie.set(E,{routeId:D,path:me}),await lc(E,D,me,se,Ae,oe.active,re,ke,Ne)}async function oc(E,D,Z,W,re,xe,pe,se,oe,me){hr(),ie.delete(E);let Ne=z.fetchers.get(E);nn(E,oN(oe,Ne),{flushSync:pe});let ve=new AbortController,Ae=Xr(e.history,Z,ve.signal,oe);if(xe){let Ze=await $a(W,new URL(Ae.url).pathname,Ae.signal,E);if(Ze.type==="aborted")return;if(Ze.type==="error"){$n(E,D,Ze.error,{flushSync:pe});return}else if(Ze.matches)W=Ze.matches;else{$n(E,D,kn(404,{pathname:Z}),{flushSync:pe});return}}let ke=Nu(W,Z);if(!ke.route.action&&!ke.route.lazy){let Ze=kn(405,{method:oe.formMethod,pathname:Z,routeId:D});$n(E,D,Ze,{flushSync:pe});return}te.set(E,ve);let pt=ne,yt=rs(u,c,Ae,W,ke,r,re),xt=await Ci(Ae,yt,re,E),He=xt[ke.route.id];if(!He){for(let Ze of yt)if(xt[Ze.route.id]){He=xt[Ze.route.id];break}}if(Ae.signal.aborted){te.get(E)===ve&&te.delete(E);return}if(ye.has(E)){if(tr(He)||bn(He)){nn(E,Oa(void 0));return}}else{if(tr(He))if(te.delete(E),ae>pt){nn(E,Oa(void 0));return}else return q.add(E),nn(E,po(oe)),wt(Ae,He,!1,{fetcherSubmission:oe,preventScrollReset:se});if(bn(He)){$n(E,D,He.error);return}}let Vt=z.navigation.location||z.location,an=Xr(e.history,Vt,ve.signal),ot=m||h,Pn=z.navigation.state!=="idle"?pi(ot,z.navigation.location,g):z.matches;Re(Pn,"Didn't find any matches after fetcher action");let dn=++ne;A.set(E,dn);let qn=po(oe,He.data);z.fetchers.set(E,qn);let{dsMatches:jn,revalidatingFetchers:ma}=Yx(an,re,u,c,e.history,z,Pn,oe,Vt,r,!1,H,K,ye,ie,q,ot,g,e.patchRoutesOnNavigation!=null,[ke.route.id,He],me);ma.filter(Ze=>Ze.key!==E).forEach(Ze=>{let Di=Ze.key,el=z.fetchers.get(Di),ws=po(void 0,el?el.data:void 0);z.fetchers.set(Di,ws),ht(Di),Ze.controller&&te.set(Di,Ze.controller)}),At({fetchers:new Map(z.fetchers)});let ki=()=>ma.forEach(Ze=>ht(Ze.key));ve.signal.addEventListener("abort",ki);let{loaderResults:Oi,fetcherResults:$e}=await vs(jn,ma,an,re);if(ve.signal.aborted)return;if(ve.signal.removeEventListener("abort",ki),A.delete(E),te.delete(E),ma.forEach(Ze=>te.delete(Ze.key)),z.fetchers.has(E)){let Ze=Oa(He.data);z.fetchers.set(E,Ze)}let jt=du(Oi);if(jt)return wt(an,jt.result,!1,{preventScrollReset:se});if(jt=du($e),jt)return q.add(jt.key),wt(an,jt.result,!1,{preventScrollReset:se});let{loaderData:Yn,errors:$t}=Qx(z,Pn,Oi,void 0,ma,$e);Jo(dn),z.navigation.state==="loading"&&dn>ae?(Re(G,"Expected pending action"),ce&&ce.abort(),da(z.navigation.location,{matches:Pn,loaderData:Yn,errors:$t,fetchers:new Map(z.fetchers)})):(At({errors:$t,loaderData:Wx(z.loaderData,Yn,Pn,$t),fetchers:new Map(z.fetchers)}),H=!1)}async function lc(E,D,Z,W,re,xe,pe,se,oe){let me=z.fetchers.get(E);nn(E,po(oe,me?me.data:void 0),{flushSync:pe});let Ne=new AbortController,ve=Xr(e.history,Z,Ne.signal);if(xe){let He=await $a(W,new URL(ve.url).pathname,ve.signal,E);if(He.type==="aborted")return;if(He.type==="error"){$n(E,D,He.error,{flushSync:pe});return}else if(He.matches)W=He.matches;else{$n(E,D,kn(404,{pathname:Z}),{flushSync:pe});return}}let Ae=Nu(W,Z);te.set(E,Ne);let ke=ne,pt=rs(u,c,ve,W,Ae,r,re),xt=(await Ci(ve,pt,re,E))[Ae.route.id];if(te.get(E)===Ne&&te.delete(E),!ve.signal.aborted){if(ye.has(E)){nn(E,Oa(void 0));return}if(tr(xt))if(ae>ke){nn(E,Oa(void 0));return}else{q.add(E),await wt(ve,xt,!1,{preventScrollReset:se});return}if(bn(xt)){$n(E,D,xt.error);return}nn(E,Oa(xt.data))}}async function wt(E,D,Z,{submission:W,fetcherSubmission:re,preventScrollReset:xe,replace:pe}={}){Z||(ee==null||ee.resolve(),ee=null),D.response.headers.has("X-Remix-Revalidate")&&(H=!0);let se=D.response.headers.get("Location");Re(se,"Expected a Location header on the redirect Response"),se=Jx(se,new URL(E.url),g,e.history);let oe=_o(z.location,se,{_isRedirect:!0});if(i){let pt=!1;if(D.response.headers.has("X-Remix-Reload-Document"))pt=!0;else if(Hh(se)){const yt=d1(se,!0);pt=yt.origin!==t.location.origin||Un(yt.pathname,g)==null}if(pt){pe?t.location.replace(se):t.location.assign(se);return}}ce=null;let me=pe===!0||D.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ne,formAction:ve,formEncType:Ae}=z.navigation;!W&&!re&&Ne&&ve&&Ae&&(W=n0(z.navigation));let ke=W||re;if(UT.has(D.response.status)&&ke&&It(ke.formMethod))await Hn(me,oe,{submission:{...ke,formAction:se},preventScrollReset:xe||le,enableViewTransition:Z?Ce:void 0});else{let pt=Ad(oe,W);await Hn(me,oe,{overrideNavigation:pt,fetcherSubmission:re,preventScrollReset:xe||le,enableViewTransition:Z?Ce:void 0})}}async function Ci(E,D,Z,W){var pe;let re,xe={};try{re=await FT(y,E,D,W,Z,!1)}catch(se){return D.filter(oe=>
58oe.shouldLoad).forEach(oe=>{xe[oe.route.id]={type:"error",error:se}}),xe}if(E.signal.aborted)return xe;if(!It(E.method))for(let se of D){if(((pe=re[se.route.id])==null?void 0:pe.type)==="error")break;!re.hasOwnProperty(se.route.id)&&!z.loaderData.hasOwnProperty(se.route.id)&&(!z.errors||!z.errors.hasOwnProperty(se.route.id))&&se.shouldCallHandler()&&(re[se.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${se.route.id}`)})}for(let[se,oe]of Object.entries(re))if(nN(oe)){let me=oe.result;xe[se]={type:"redirect",response:JT(me,E,se,D,g)}}else xe[se]=await IT(oe);return xe}async function vs(E,D,Z,W){let re=Ci(Z,E,W,null),xe=Promise.all(D.map(async oe=>{if(oe.matches&&oe.match&&oe.request&&oe.controller){let Ne=(await Ci(oe.request,oe.matches,W,oe.key))[oe.match.route.id];return{[oe.key]:Ne}}else return Promise.resolve({[oe.key]:{type:"error",error:kn(404,{pathname:oe.path})}})})),pe=await re,se=(await xe).reduce((oe,me)=>Object.assign(oe,me),{});return{loaderResults:pe,fetcherResults:se}}function hr(){H=!0,ie.forEach((E,D)=>{te.has(D)&&K.add(D),ht(D)})}function nn(E,D,Z={}){z.fetchers.set(E,D),At({fetchers:new Map(z.fetchers)},{flushSync:(Z&&Z.flushSync)===!0})}function $n(E,D,Z,W={}){let re=mi(z.matches,D);Ss(E),At({errors:{[re.route.id]:Z},fetchers:new Map(z.fetchers)},{flushSync:(W&&W.flushSync)===!0})}function bs(E){return ue.set(E,(ue.get(E)||0)+1),ye.has(E)&&ye.delete(E),z.fetchers.get(E)||LT}function uc(E,D){ht(E,D==null?void 0:D.reason),nn(E,Oa(null))}function Ss(E){let D=z.fetchers.get(E);te.has(E)&&!(D&&D.state==="loading"&&A.has(E))&&ht(E),ie.delete(E),A.delete(E),q.delete(E),ye.delete(E),K.delete(E),z.fetchers.delete(E)}function Ai(E){let D=(ue.get(E)||0)-1;D<=0?(ue.delete(E),ye.add(E)):ue.set(E,D),At({fetchers:new Map(z.fetchers)})}function ht(E,D){let Z=te.get(E);Z&&(Z.abort(D),te.delete(E))}function Zn(E){for(let D of E){let Z=bs(D),W=Oa(Z.data);z.fetchers.set(D,W)}}function Gt(){let E=[],D=!1;for(let Z of q){let W=z.fetchers.get(Z);Re(W,`Expected fetcher: ${Z}`),W.state==="loading"&&(q.delete(Z),E.push(Z),D=!0)}return Zn(E),D}function Jo(E){let D=[];for(let[Z,W]of A)if(W<E){let re=z.fetchers.get(Z);Re(re,`Expected fetcher: ${Z}`),re.state==="loading"&&(ht(Z),A.delete(Z),D.push(Z))}return Zn(D),D.length>0}function cc(E,D){let Z=z.blockers.get(E)||ho;return Te.get(E)!==D&&Te.set(E,D),Z}function Ko(E){z.blockers.delete(E),Te.delete(E)}function ha(E,D){let Z=z.blockers.get(E)||ho;Re(Z.state==="unblocked"&&D.state==="blocked"||Z.state==="blocked"&&D.state==="blocked"||Z.state==="blocked"&&D.state==="proceeding"||Z.state==="blocked"&&D.state==="unblocked"||Z.state==="proceeding"&&D.state==="unblocked",`Invalid blocker state transition: ${Z.state} -> ${D.state}`);let W=new Map(z.blockers);W.set(E,D),At({blockers:W})}function _i({currentLocation:E,nextLocation:D,historyAction:Z}){if(Te.size===0)return;Te.size>1&&Ut(!1,"A router only supports one blocker at a time");let W=Array.from(Te.entries()),[re,xe]=W[W.length-1],pe=z.blockers.get(re);if(!(pe&&pe.state==="proceeding")&&xe({currentLocation:E,nextLocation:D,historyAction:Z}))return re}function Ha(E){let D=kn(404,{pathname:E}),Z=m||h,{matches:W,route:re}=fu(Z);return{notFoundMatches:W,route:re,error:D}}function pa(E,D,Z){if(j=E,_=D,N=Z||null,!k&&z.navigation===Cd){k=!0;let W=Qo(z.location,z.matches);W!=null&&At({restoreScrollPosition:W})}return()=>{j=null,_=null,N=null}}function zi(E,D){return N&&N(E,D.map(W=>uT(W,z.loaderData)))||E.key}function Mi(E,D){if(j&&_){let Z=zi(E,D);j[Z]=_()}}function Qo(E,D){if(j){let Z=zi(E,D),W=j[Z];if(typeof W=="number")return W}return null}function Ri(E,D,Z){if(e.patchRoutesOnNavigation)if(E){if(Object.keys(E[0].params).length>0)return{active:!0,matches:vo(D,Z,g,!0)}}else return{active:!0,matches:vo(D,Z,g,!0)||[]};return{active:!1,matches:null}}async function $a(E,D,Z,W){if(!e.patchRoutesOnNavigation)return{type:"success",matches:E};let re=E;for(;;){let xe=m==null,pe=m||h,se=c;try{await e.patchRoutesOnNavigation({signal:Z,path:D,matches:re,fetcherKey:W,patch:(Ne,ve)=>{Z.aborted||Fx(Ne,ve,pe,se,u,!1)}})}catch(Ne){return{type:"error",error:Ne,partialMatches:re}}
58finally{xe&&!Z.aborted&&(h=[...h])}if(Z.aborted)return{type:"aborted"};let oe=pi(pe,D,g),me=null;if(oe){if(Object.keys(oe[0].params).length===0)return{type:"success",matches:oe};if(me=vo(pe,D,g,!0),!(me&&re.length<me.length&&Za(re,me.slice(0,re.length))))return{type:"success",matches:oe}}if(me||(me=vo(pe,D,g,!0)),!me||Za(re,me))return{type:"success",matches:null};re=me}}function Za(E,D){return E.length===D.length&&E.every((Z,W)=>Z.route.id===D[W].route.id)}function fc(E){c={},m=zo(E,u,void 0,c)}function Wo(E,D,Z=!1){let W=m==null;Fx(E,D,m||h,c,u,Z),W&&(h=[...h],At({}))}return Y={get basename(){return g},get future(){return x},get state(){return z},get routes(){return h},get window(){return t},initialize:dt,subscribe:fr,enableScrollRestoration:pa,navigate:Wn,fetch:xs,revalidate:gs,createHref:E=>e.history.createHref(E),encodeLocation:E=>e.history.encodeLocation(E),getFetcher:bs,resetFetcher:uc,deleteFetcher:Ai,dispose:Ei,getBlocker:cc,deleteBlocker:Ko,patchRoutes:Wo,_internalFetchControllers:te,_internalSetRoutes:fc,_internalSetStateDoNotUseOrYouWillBreakYourApp(E){At(E)}},e.unstable_instrumentations&&(Y=AT(Y,e.unstable_instrumentations.map(E=>E.router).filter(Boolean))),Y}function HT(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function ah(e,t,i,r,o,u){let c,h;if(o){c=[];for(let g of t)if(c.push(g),g.route.id===o){h=g;break}}else c=t,h=t[t.length-1];let m=Zh(r||".",$h(c),Un(e.pathname,i)||e.pathname,u==="path");if(r==null&&(m.search=e.search,m.hash=e.hash),(r==null||r===""||r===".")&&h){let g=Yh(m.search);if(h.route.index&&!g)m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index";else if(!h.route.index&&g){let y=new URLSearchParams(m.search),x=y.getAll("index");y.delete("index"),x.filter(S=>S).forEach(S=>y.append("index",S));let b=y.toString();m.search=b?`?${b}`:""}}return i!=="/"&&(m.pathname=wT({basename:i,pathname:m.pathname})),la(m)}function qx(e,t,i){if(!i||!HT(i))return{path:t};if(i.formMethod&&!rN(i.formMethod))return{path:t,error:kn(405,{method:i.formMethod})};let r=()=>({path:t,error:kn(400,{type:"invalid-body"})}),u=(i.formMethod||"get").toUpperCase(),c=_1(t);if(i.body!==void 0){if(i.formEncType==="text/plain"){if(!It(u))return r();let x=typeof i.body=="string"?i.body:i.body instanceof FormData||i.body instanceof URLSearchParams?Array.from(i.body.entries()).reduce((b,[S,j])=>`${b}${S}=${j} 59`,""):String(i.body);return{path:t,submission:{formMethod:u,formAction:c,formEncType:i.formEncType,formData:void 0,json:void 0,text:x}}}else if(i.formEncType==="application/json"){if(!It(u))return r();try{let x=typeof i.body=="string"?JSON.parse(i.body):i.body;return{path:t,submission:{formMethod:u,formAction:c,formEncType:i.formEncType,formData:void 0,json:x,text:void 0}}}catch{return r()}}}Re(typeof FormData=="function","FormData is not available in this environment");let h,m;if(i.formData)h=sh(i.formData),m=i.formData;else if(i.body instanceof FormData)h=sh(i.body),m=i.body;else if(i.body instanceof URLSearchParams)h=i.body,m=Kx(h);else if(i.body==null)h=new URLSearchParams,m=new FormData;else try{h=new URLSearchParams(i.body),m=Kx(h)}catch{return r()}let g={formMethod:u,formAction:c,formEncType:i&&i.formEncType||"application/x-www-form-urlencoded",formData:m,json:void 0,text:void 0};if(It(g.formMethod))return{path:t,submission:g};let y=wi(t);return e&&y.search&&Yh(y.search)&&h.append("index",""),y.search=`?${h}`,{path:la(y),submission:g}}function Yx(e,t,i,r,o,u,c,h,m,g,y,x,b,S,j,N,_,k,R,O,I){var Be;let L=O?bn(O[1])?O[1].error:O[1].data:void 0,Y=o.createURL(u.location),z=o.createURL(m),G;if(y&&u.errors){let H=Object.keys(u.errors)[0];G=c.findIndex(K=>K.route.id===H)}else if(O&&bn(O[1])){let H=O[0];G=c.findIndex(K=>K.route.id===H)-1}let ee=O?O[1].statusCode:void 0,le=ee&&ee>=400,ce={currentUrl:Y,currentParams:((Be=u.matches[0])==null?void 0:Be.params)||{},nextUrl:z,nextParams:c[0].params,...h,actionResult:L,actionStatus:ee},Ce=Vo(c),tt=c.map((H,K)=>{let{route:te}=H,ne=null;if(G!=null&&K>G?ne=!1:te.lazy?ne=!0:Ph(te)?y?ne=ih(te,u.loaderData,u.errors):$T(u.loaderData,u.matches[K],H)&&(ne=!0):ne=!1,ne!==null)return rh(i,r,e,Ce,H,g,t,ne);let ae=!1;typeof I=="boolean"?ae=I:le?ae=!1:(x||Y.pathname+Y.search===z.pathname+z.search||Y.search!==z.search||ZT(u.matches[K],H))&&(ae=!0);let A={...ce,defaultShouldRevalidate:ae},q=jo(H,A);return rh(i,r,e,Ce,H,g,t,q,A,I)}),ze=[];
59return j.forEach((H,K)=>{if(y||!c.some(ye=>ye.route.id===H.routeId)||S.has(K))return;let te=u.fetchers.get(K),ne=te&&te.state!=="idle"&&te.data===void 0,ae=pi(_,H.path,k);if(!ae){if(R&&ne)return;ze.push({key:K,routeId:H.routeId,path:H.path,matches:null,match:null,request:null,controller:null});return}if(N.has(K))return;let A=Nu(ae,H.path),q=new AbortController,ie=Xr(o,H.path,q.signal),ue=null;if(b.has(K))b.delete(K),ue=rs(i,r,ie,ae,A,g,t);else if(ne)x&&(ue=rs(i,r,ie,ae,A,g,t));else{let ye;typeof I=="boolean"?ye=I:le?ye=!1:ye=x;let Te={...ce,defaultShouldRevalidate:ye};jo(A,Te)&&(ue=rs(i,r,ie,ae,A,g,t,Te))}ue&&ze.push({key:K,routeId:H.routeId,path:H.path,matches:ue,match:A,request:ie,controller:q})}),{dsMatches:tt,revalidatingFetchers:ze}}function Ph(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function ih(e,t,i){if(e.lazy)return!0;if(!Ph(e))return!1;let r=t!=null&&e.id in t,o=i!=null&&i[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function $T(e,t,i){let r=!t||i.route.id!==t.route.id,o=!e.hasOwnProperty(i.route.id);return r||o}function ZT(e,t){let i=e.route.path;return e.pathname!==t.pathname||i!=null&&i.endsWith("*")&&e.params["*"]!==t.params["*"]}function jo(e,t){if(e.route.shouldRevalidate){let i=e.route.shouldRevalidate(t);if(typeof i=="boolean")return i}return t.defaultShouldRevalidate}function Fx(e,t,i,r,o,u){let c;if(e){let g=r[e];Re(g,`No route found to patch children into: routeId = ${e}`),g.children||(g.children=[]),c=g.children}else c=i;let h=[],m=[];if(t.forEach(g=>{let y=c.find(x=>T1(g,x));y?m.push({existingRoute:y,newRoute:g}):h.push(g)}),h.length>0){let g=zo(h,o,[e||"_","patch",String((c==null?void 0:c.length)||"0")],r);c.push(...g)}if(u&&m.length>0)for(let g=0;g<m.length;g++){let{existingRoute:y,newRoute:x}=m[g],b=y,[S]=zo([x],o,[],{},!0);Object.assign(b,{element:S.element?S.element:b.element,errorElement:S.errorElement?S.errorElement:b.errorElement,hydrateFallbackElement:S.hydrateFallbackElement?S.hydrateFallbackElement:b.hydrateFallbackElement})}}function T1(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((i,r)=>{var o;return(o=t.children)==null?void 0:o.some(u=>T1(i,u))}):!1}var Gx=new WeakMap,N1=({key:e,route:t,manifest:i,mapRouteProperties:r})=>{let o=i[t.id];if(Re(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let u=o.lazy[e];if(!u)return;let c=Gx.get(o);c||(c={},Gx.set(o,c));let h=c[e];if(h)return h;let m=(async()=>{let g=rT(e),x=o[e]!==void 0&&e!=="hasErrorBoundary";if(g)Ut(!g,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),c[e]=Promise.resolve();else if(x)Ut(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let b=await u();b!=null&&(Object.assign(o,{[e]:b}),Object.assign(o,r(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(b=>b===void 0)&&(o.lazy=void 0))})();return c[e]=m,m},Xx=new WeakMap;function PT(e,t,i,r,o){let u=i[e.id];if(Re(u,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let y=Xx.get(u);if(y)return{lazyRoutePromise:y,lazyHandlerPromise:y};let x=(async()=>{Re(typeof e.lazy=="function","No lazy route function found");let b=await e.lazy(),S={};for(let j in b){let N=b[j];if(N===void 0)continue;let _=oT(j),R=u[j]!==void 0&&j!=="hasErrorBoundary";_?Ut(!_,"Route property "+j+" is not a supported property to be returned from a lazy route function. This property will be ignored."):R?Ut(!R,`Route "${u.id}" has a static property "${j}" defined but its lazy function is also returning a value for this property. The lazy route property "${j}" will be ignored.`):S[j]=N}Object.assign(u,S),Object.assign(u,{...r(u),lazy:void 0})})();return Xx.set(u,x),x.catch(()=>{}),{lazyRoutePromise:x,lazyHandlerPromise:x}}let c=Object.keys(e.lazy),h=[],m;for(let y of c){if(o&&o.includes(y))continue;let x=N1({key:y,route:e,manifest:i,mapRouteProperties:r});x&&(h.push(x),y===t&&(m=x))}let g=h.length>0?Promise.all(h).then(()=>{}):void 0;return g==null||g.catch(()=>{}),m==null||m.catch(()=>{}),{lazyRoutePromise:g,lazyHandlerPromise:m}}async function Ix(e){let t=e.matches.filter(o=>o.shouldLoad),i={};return(await Promise.all(t.map(o=>
59o.resolve()))).forEach((o,u)=>{i[t[u].route.id]=o}),i}async function qT(e){return e.matches.some(t=>t.route.middleware)?E1(e,()=>Ix(e)):Ix(e)}function E1(e,t){return YT(e,t,r=>{if(iN(r))throw r;return r},eN,i);function i(r,o,u){if(u)return Promise.resolve(Object.assign(u.value,{[o]:{type:"error",result:r}}));{let{matches:c}=e,h=Math.min(Math.max(c.findIndex(g=>g.route.id===o),0),Math.max(c.findIndex(g=>g.shouldCallHandler()),0)),m=mi(c,c[h].route.id).route.id;return Promise.resolve({[m]:{type:"error",result:r}})}}}async function YT(e,t,i,r,o){let{matches:u,request:c,params:h,context:m,unstable_pattern:g}=e,y=u.flatMap(b=>b.route.middleware?b.route.middleware.map(S=>[b.route.id,S]):[]);return await C1({request:c,params:h,context:m,unstable_pattern:g},y,t,i,r,o)}async function C1(e,t,i,r,o,u,c=0){let{request:h}=e;if(h.signal.aborted)throw h.signal.reason??new Error(`Request aborted: ${h.method} ${h.url}`);let m=t[c];if(!m)return await i();let[g,y]=m,x,b=async()=>{if(x)throw new Error("You may only call `next()` once per middleware");try{return x={value:await C1(e,t,i,r,o,u,c+1)},x.value}catch(S){return x={value:await u(S,g,x)},x.value}};try{let S=await y(e,b),j=S!=null?r(S):void 0;return o(j)?j:x?j??x.value:(x={value:await b()},x.value)}catch(S){return await u(S,g,x)}}function A1(e,t,i,r,o){let u=N1({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),c=PT(r.route,It(i.method)?"action":"loader",t,e,o);return{middleware:u,route:c.lazyRoutePromise,handler:c.lazyHandlerPromise}}function rh(e,t,i,r,o,u,c,h,m=null,g){let y=!1,x=A1(e,t,i,o,u);return{...o,_lazyPromises:x,shouldLoad:h,shouldRevalidateArgs:m,shouldCallHandler(b){return y=!0,m?typeof g=="boolean"?jo(o,{...m,defaultShouldRevalidate:g}):typeof b=="boolean"?jo(o,{...m,defaultShouldRevalidate:b}):jo(o,m):h},resolve(b){let{lazy:S,loader:j,middleware:N}=o.route,_=y||h||b&&!It(i.method)&&(S||j),k=N&&N.length>0&&!j&&!S;return _&&(It(i.method)||!k)?GT({request:i,unstable_pattern:r,match:o,lazyHandlerPromise:x==null?void 0:x.handler,lazyRoutePromise:x==null?void 0:x.route,handlerOverride:b,scopedContext:c}):Promise.resolve({type:"data",result:void 0})}}}function rs(e,t,i,r,o,u,c,h=null){return r.map(m=>m.route.id!==o.route.id?{...m,shouldLoad:!1,shouldRevalidateArgs:h,shouldCallHandler:()=>!1,_lazyPromises:A1(e,t,i,m,u),resolve:()=>Promise.resolve({type:"data",result:void 0})}:rh(e,t,i,Vo(r),m,u,c,!0,h))}async function FT(e,t,i,r,o,u){i.some(g=>{var y;return(y=g._lazyPromises)==null?void 0:y.middleware})&&await Promise.all(i.map(g=>{var y;return(y=g._lazyPromises)==null?void 0:y.middleware}));let c={request:t,unstable_pattern:Vo(i),params:i[0].params,context:o,matches:i},m=await e({...c,fetcherKey:r,runClientMiddleware:g=>{let y=c;return E1(y,()=>g({...y,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(i.flatMap(g=>{var y,x;return[(y=g._lazyPromises)==null?void 0:y.handler,(x=g._lazyPromises)==null?void 0:x.route]}))}catch{}return m}async function GT({request:e,unstable_pattern:t,match:i,lazyHandlerPromise:r,lazyRoutePromise:o,handlerOverride:u,scopedContext:c}){let h,m,g=It(e.method),y=g?"action":"loader",x=b=>{let S,j=new Promise((k,R)=>S=R);m=()=>S(),e.signal.addEventListener("abort",m);let N=k=>typeof b!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${y}" [routeId: ${i.route.id}]`)):b({request:e,unstable_pattern:t,params:i.params,context:c},...k!==void 0?[k]:[]),_=(async()=>{try{return{type:"data",result:await(u?u(R=>N(R)):N())}}catch(k){return{type:"error",result:k}}})();return Promise.race([_,j])};try{let b=g?i.route.action:i.route.loader;if(r||o)if(b){let S,[j]=await Promise.all([x(b).catch(N=>{S=N}),r,o]);if(S!==void 0)throw S;h=j}else{await r;let S=g?i.route.action:i.route.loader;if(S)[h]=await Promise.all([x(S),o]);else if(y==="action"){let j=new URL(e.url),N=j.pathname+j.search;throw kn(405,{method:e.method,pathname:N,routeId:i.route.id})}else return{type:"data",result:void 0}}else if(b)h=await x(b);else{let S=new URL(e.url),j=S.pathname+S.search;throw kn(404,{pathname:j})}}catch(b){return{type:"error",result:b}}finally{m&&e.signal.removeEventListener("abort",m)}return h}async function XT(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function IT(e){var r,o,u,c,h;let{result:t,type:i}=e;if(qh(t)){let m;try{m=await XT(t)}catch(g){return{type:"error",error:g}}return i==="error"?{type:"error",error:new Bo(t.status,t.statusText,m),statusCode:t.status,headers:t.headers}:{type:"data",data:m,statusCode:t.status,headers:t.headers}}return i==="error"?t0(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(r=t.init)==null?void 0:r.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}:{type:"error",error:WT(t),statusCode:Mo(t)?t.status:void 0,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Mo(t)?t.status:void 0}:t0(t)?{type:"data",data:t.data,statusCode:(c=t.init)==null?void 0:c.status,headers:(h=t.init)!=null&&h.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function JT(e,t,i,r,o){let u=e.headers.get("Location");if(Re(u,"Redirects returned/thrown from loaders/actions must have a Location header"),!Hh(u)){let c=r.slice(0,r.findIndex(h=>h.route.id===i)+1);u=ah(new URL(t.url),c,o,u),e.headers.set("Location",u)}return e}function Jx(e,t,i,r){let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Hh(e)){let u=e,c=u.startsWith("//")?new URL(t.protocol+u):new URL(u);if(o.includes(c.protocol))throw new Error("Invalid redirect location");let h=Un(c.pathname,i)!=null;if(c.origin===t.origin&&h)return c.pathname+c.search+c.hash}try{let u=r.createURL(e);if(o.includes(u.protocol))throw new Error("Invalid redirect location")}catch{}return e}function Xr(e,t,i,r){let o=e.createURL(_1(t)).toString(),u={signal:i};if(r&&It(r.formMethod)){let{formMethod:c,formEncType:h}=r;u.method=c.toUpperCase(),h==="application/json"?(u.headers=new Headers({"Content-Type":h}),u.body=JSON.stringify(r.json)):h==="text/plain"?u.body=r.text:h==="application/x-www-form-urlencoded"&&r.formData?u.body=sh(r.formData):u.body=r.formData}
59return new Request(o,u)}function sh(e){let t=new URLSearchParams;for(let[i,r]of e.entries())t.append(i,typeof r=="string"?r:r.name);return t}function Kx(e){let t=new FormData;for(let[i,r]of e.entries())t.append(i,r);return t}function KT(e,t,i,r=!1,o=!1){let u={},c=null,h,m=!1,g={},y=i&&bn(i[1])?i[1].error:void 0;return e.forEach(x=>{if(!(x.route.id in t))return;let b=x.route.id,S=t[b];if(Re(!tr(S),"Cannot handle redirect results in processLoaderData"),bn(S)){let j=S.error;if(y!==void 0&&(j=y,y=void 0),c=c||{},o)c[b]=j;else{let N=mi(e,b);c[N.route.id]==null&&(c[N.route.id]=j)}r||(u[b]=j1),m||(m=!0,h=Mo(S.error)?S.error.status:500),S.headers&&(g[b]=S.headers)}else u[b]=S.data,S.statusCode&&S.statusCode!==200&&!m&&(h=S.statusCode),S.headers&&(g[b]=S.headers)}),y!==void 0&&i&&(c={[i[0]]:y},i[2]&&(u[i[2]]=void 0)),{loaderData:u,errors:c,statusCode:h||200,loaderHeaders:g}}function Qx(e,t,i,r,o,u){let{loaderData:c,errors:h}=KT(t,i,r);return o.filter(m=>!m.matches||m.matches.some(g=>g.shouldLoad)).forEach(m=>{let{key:g,match:y,controller:x}=m;if(x&&x.signal.aborted)return;let b=u[g];if(Re(b,"Did not find corresponding fetcher result"),bn(b)){let S=mi(e.matches,y==null?void 0:y.route.id);h&&h[S.route.id]||(h={...h,[S.route.id]:b.error}),e.fetchers.delete(g)}else if(tr(b))Re(!1,"Unhandled fetcher revalidation redirect");else{let S=Oa(b.data);e.fetchers.set(g,S)}}),{loaderData:c,errors:h}}function Wx(e,t,i,r){let o=Object.entries(t).filter(([,u])=>u!==j1).reduce((u,[c,h])=>(u[c]=h,u),{});for(let u of i){let c=u.route.id;if(!t.hasOwnProperty(c)&&e.hasOwnProperty(c)&&u.route.loader&&(o[c]=e[c]),r&&r.hasOwnProperty(c))break}return o}function e0(e){return e?bn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function mi(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function fu(e){let t=e.length===1?e[0]:e.find(i=>i.index||!i.path||i.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function kn(e,{pathname:t,routeId:i,method:r,type:o,message:u}={}){let c="Unknown Server Error",h="Unknown @remix-run/router error";return e===400?(c="Bad Request",r&&t&&i?h=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${i}", so there is no way to handle the request.`:o==="invalid-body"&&(h="Unable to encode submission body")):e===403?(c="Forbidden",h=`Route "${i}" does not match URL "${t}"`):e===404?(c="Not Found",h=`No route matches URL "${t}"`):e===405&&(c="Method Not Allowed",r&&t&&i?h=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${i}", so there is no way to handle the request.`:r&&(h=`Invalid request method "${r.toUpperCase()}"`)),new Bo(e||500,c,new Error(h),!0)}function du(e){let t=Object.entries(e);for(let i=t.length-1;i>=0;i--){let[r,o]=t[i];if(tr(o))return{key:r,result:o}}}function _1(e){let t=typeof e=="string"?wi(e):e;return la({...t,hash:""})}function QT(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function WT(e){var t,i;return new Bo(((t=e.init)==null?void 0:t.status)??500,((i=e.init)==null?void 0:i.statusText)??"Internal Server Error",e.data)}function eN(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,i])=>typeof t=="string"&&tN(i))}function tN(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function nN(e){return qh(e.result)&&S1.has(e.result.status)}function bn(e){return e.type==="error"}function tr(e){return(e&&e.type)==="redirect"}function t0(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function qh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function aN(e){return S1.has(e)}function iN(e){return qh(e)&&aN(e.status)&&e.headers.has("Location")}function rN(e){return DT.has(e.toUpperCase())}function It(e){return kT.has(e.toUpperCase())}function Yh(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Nu(e,t){let i=typeof t=="string"?wi(t).search:t.search;if(e[e.length-1].route.index&&Yh(i||""))return e[e.length-1];let r=g1(e);return r[r.length-1]}function n0(e){let{formMethod:t,formAction:i,formEncType:r,text:o,formData:u,json:c}=e;if(!(!t||!i||!r)){if(o!=null)return{formMethod:t,formAction:i,formEncType:r,formData:void 0,json:void 0,text:o};if(u!=null)return{formMethod:t,formAction:i,formEncType:r,formData:u,json:void 0,text:void 0};if(c!==void 0)return{formMethod:t,formAction:i,formEncType:r,formData:void 0,json:c,text:void 0}}}function Ad(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function sN(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function po(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function oN(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Oa(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function lN(e,t){try{let i=e.sessionStorage.getItem(w1);if(i){let r=JSON.parse(i);for(let[o,u]of Object.entries(r||{}))u&&Array.isArray(u)&&t.set(o,new Set(u||[]))}}catch{}}function uN(e,t){if(t.size>0){let i={};for(let[r,o]of t)i[r]=[...o];try{e.sessionStorage.setItem(w1,JSON.stringify(i))}catch(r){Ut(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function a0(){let e,t,i=new Promise((r,o)=>{e=async u=>{r(u);try{await i}catch{}},t=async u=>{o(u);try{await i}catch{}}});return{promise:i,resolve:e,reject:t}}var ur=T.createContext(null);ur.displayName="DataRouter";var Ho=T.createContext(null);Ho.displayName="DataRouterState";var z1=T.createContext(!1);function cN(){return T.useContext(z1)}var Fh=T.createContext({isTransitioning:!1});Fh.displayName="ViewTransition";var M1=T.createContext(new Map);M1.displayName="Fetchers";var fN=T.createContext(null);fN.displayName="Await";var Ln=T.createContext(null);Ln.displayName="Navigation";var Xu=T.createContext(null);Xu.displayName="Location";var ca=T.createContext({outlet:null,matches:[],isDataRoute:!1});ca.displayName="Route";var Gh=T.createContext(null);Gh.displayName="RouteError";var R1="REACT_ROUTER_ERROR",dN="REDIRECT",hN="ROUTE_ERROR_RESPONSE";function pN(e){if(e.startsWith(`${R1}:${dN}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="str
59ing"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function mN(e){if(e.startsWith(`${R1}:${hN}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Bo(t.status,t.statusText,t.data)}catch{}}function gN(e,{relative:t}={}){Re($o(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:r}=T.useContext(Ln),{hash:o,pathname:u,search:c}=Zo(e,{relative:t}),h=u;return i!=="/"&&(h=u==="/"?i:ra([i,u])),r.createHref({pathname:h,search:c,hash:o})}function $o(){return T.useContext(Xu)!=null}function Va(){return Re($o(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(Xu).location}var k1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function O1(e){T.useContext(Ln).static||T.useLayoutEffect(e)}function yN(){let{isDataRoute:e}=T.useContext(ca);return e?RN():xN()}function xN(){Re($o(),"useNavigate() may be used only in the context of a <Router> component.");let e=T.useContext(ur),{basename:t,navigator:i}=T.useContext(Ln),{matches:r}=T.useContext(ca),{pathname:o}=Va(),u=JSON.stringify($h(r)),c=T.useRef(!1);return O1(()=>{c.current=!0}),T.useCallback((m,g={})=>{if(Ut(c.current,k1),!c.current)return;if(typeof m=="number"){i.go(m);return}let y=Zh(m,JSON.parse(u),o,g.relative==="path");e==null&&t!=="/"&&(y.pathname=y.pathname==="/"?t:ra([t,y.pathname])),(g.replace?i.replace:i.push)(y,g.state,g)},[t,i,u,o,e])}var vN=T.createContext(null);function bN(e){let t=T.useContext(ca).outlet;return T.useMemo(()=>t&&T.createElement(vN.Provider,{value:e},t),[t,e])}function Zo(e,{relative:t}={}){let{matches:i}=T.useContext(ca),{pathname:r}=Va(),o=JSON.stringify($h(i));return T.useMemo(()=>Zh(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function SN(e,t,i,r,o){Re($o(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=T.useContext(Ln),{matches:c}=T.useContext(ca),h=c[c.length-1],m=h?h.params:{},g=h?h.pathname:"/",y=h?h.pathnameBase:"/",x=h&&h.route;{let R=x&&x.path||"";U1(g,!x||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 60 61Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let b=Va(),S;S=b;let j=S.pathname||"/",N=j;if(y!=="/"){let R=y.replace(/^\//,"").split("/");N="/"+j.replace(/^\//,"").split("/").slice(R.length).join("/")}let _=pi(e,{pathname:N});return Ut(x||_!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Ut(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),EN(_&&_.map(R=>Object.assign({},R,{params:Object.assign({},m,R.params),pathname:ra([y,u.encodeLocation?u.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?y:ra([y,u.encodeLocation?u.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),c,i,r,o)}function wN(){let e=MN(),t=Mo(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},u={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=T.createElement(T.Fragment,null,T.createElement("p",null,"ð¿ Hey developer ð"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:u},"ErrorBoundary")," or"," ",T.createElement("code",{style:u},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application
61Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),i?T.createElement("pre",{style:o},i):null,c)}var jN=T.createElement(wN,null),D1=class extends T.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const i=mN(e.digest);i&&(e=i)}let t=e!==void 0?T.createElement(ca.Provider,{value:this.props.routeContext},T.createElement(Gh.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?T.createElement(TN,{error:e},t):t}};D1.contextType=z1;var _d=new WeakMap;function TN({children:e,error:t}){let{basename:i}=T.useContext(Ln);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=pN(t.digest);if(r){let o=_d.get(t);if(o)throw o;let u=x1(r.location,i);if(y1&&!_d.get(t))if(u.isExternal||r.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:r.replace}));throw _d.set(t,c),c}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return e}function NN({routeContext:e,match:t,children:i}){let r=T.useContext(ur);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),T.createElement(ca.Provider,{value:e},i)}function EN(e,t=[],i=null,r=null,o=null){if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(t.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let u=e,c=i==null?void 0:i.errors;if(c!=null){let y=u.findIndex(x=>x.route.id&&(c==null?void 0:c[x.route.id])!==void 0);Re(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),u=u.slice(0,Math.min(u.length,y+1))}let h=!1,m=-1;if(i)for(let y=0;y<u.length;y++){let x=u[y];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(m=y),x.route.id){let{loaderData:b,errors:S}=i,j=x.route.loader&&!b.hasOwnProperty(x.route.id)&&(!S||S[x.route.id]===void 0);if(x.route.lazy||j){h=!0,m>=0?u=u.slice(0,m+1):u=[u[0]];break}}}let g=i&&r?(y,x)=>{var b,S;r(y,{location:i.location,params:((S=(b=i.matches)==null?void 0:b[0])==null?void 0:S.params)??{},unstable_pattern:Vo(i.matches),errorInfo:x})}:void 0;return u.reduceRight((y,x,b)=>{let S,j=!1,N=null,_=null;i&&(S=c&&x.route.id?c[x.route.id]:void 0,N=x.route.errorElement||jN,h&&(m<0&&b===0?(U1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,_=null):m===b&&(j=!0,_=x.route.hydrateFallbackElement||null)));let k=t.concat(u.slice(0,b+1)),R=()=>{let O;return S?O=N:j?O=_:x.route.Component?O=T.createElement(x.route.Component,null):x.route.element?O=x.route.element:O=y,T.createElement(NN,{match:x,routeContext:{outlet:y,matches:k,isDataRoute:i!=null},children:O})};return i&&(x.route.ErrorBoundary||x.route.errorElement||b===0)?T.createElement(D1,{location:i.location,revalidation:i.revalidation,component:N,error:S,children:R(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:g}):R()},null)}function Xh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function CN(e){let t=T.useContext(ur);return Re(t,Xh(e)),t}function AN(e){let t=T.useContext(Ho);return Re(t,Xh(e)),t}function _N(e){let t=T.useContext(ca);return Re(t,Xh(e)),t}function Ih(e){let t=_N(e),i=t.matches[t.matches.length-1];return Re(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function zN(){return Ih("useRouteId")}function MN(){var r;let e=T.useContext(Gh),t=AN("useRouteError"),i=Ih("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[i]}function RN(){let{router:e}=CN("useNavigate"),t=Ih("useNavigate"),i=T.useRef(!1);return O1(()=>{i.current=!0}),T.useCallback(async(o,u={})=>{Ut(i.current,k1),i.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...u}))},[e,t])}var i0={};function U1(e,t,i){!t&&!i0[e]&&(i0[e]=!0,Ut(!1,i))}var r0={};function s0(e,t){!e&&!r0[t]&&(r0[t]=!0,console.warn(t))}var kN="useOptimistic",o0=Qj[kN],ON=()=>{};function DN(e){return o0?o0(e):[e,ON]}function UN(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Ut(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:T.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Ut(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:T.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Ut(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:T.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var LN=["HydrateFallback","hydrateFallbackElement"],BN=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>
61{this.resolve=i=>{this.status==="pending"&&(this.status="resolved",e(i))},this.reject=i=>{this.status==="pending"&&(this.status="rejected",t(i))}})}};function VN({router:e,flushSync:t,onError:i,unstable_useTransitions:r}){r=cN()||r;let[u,c]=T.useState(e.state),[h,m]=DN(u),[g,y]=T.useState(),[x,b]=T.useState({isTransitioning:!1}),[S,j]=T.useState(),[N,_]=T.useState(),[k,R]=T.useState(),O=T.useRef(new Map),I=T.useCallback((G,{deletedFetchers:ee,newErrors:le,flushSync:ce,viewTransitionOpts:Ce})=>{le&&i&&Object.values(le).forEach(ze=>{var Be;return i(ze,{location:G.location,params:((Be=G.matches[0])==null?void 0:Be.params)??{},unstable_pattern:Vo(G.matches)})}),G.fetchers.forEach((ze,Be)=>{ze.data!==void 0&&O.current.set(Be,ze.data)}),ee.forEach(ze=>O.current.delete(ze)),s0(ce===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let tt=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(s0(Ce==null||tt,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!Ce||!tt){t&&ce?t(()=>c(G)):r===!1?c(G):T.startTransition(()=>{r===!0&&m(ze=>l0(ze,G)),c(G)});return}if(t&&ce){t(()=>{N&&(S==null||S.resolve(),N.skipTransition()),b({isTransitioning:!0,flushSync:!0,currentLocation:Ce.currentLocation,nextLocation:Ce.nextLocation})});let ze=e.window.document.startViewTransition(()=>{t(()=>c(G))});ze.finished.finally(()=>{t(()=>{j(void 0),_(void 0),y(void 0),b({isTransitioning:!1})})}),t(()=>_(ze));return}N?(S==null||S.resolve(),N.skipTransition(),R({state:G,currentLocation:Ce.currentLocation,nextLocation:Ce.nextLocation})):(y(G),b({isTransitioning:!0,flushSync:!1,currentLocation:Ce.currentLocation,nextLocation:Ce.nextLocation}))},[e.window,t,N,S,r,m,i]);T.useLayoutEffect(()=>e.subscribe(I),[e,I]),T.useEffect(()=>{x.isTransitioning&&!x.flushSync&&j(new BN)},[x]),T.useEffect(()=>{if(S&&g&&e.window){let G=g,ee=S.promise,le=e.window.document.startViewTransition(async()=>{r===!1?c(G):T.startTransition(()=>{r===!0&&m(ce=>l0(ce,G)),c(G)}),await ee});le.finished.finally(()=>{j(void 0),_(void 0),y(void 0),b({isTransitioning:!1})}),_(le)}},[g,S,e.window,r,m]),T.useEffect(()=>{S&&g&&h.location.key===g.location.key&&S.resolve()},[S,N,h.location,g]),T.useEffect(()=>{!x.isTransitioning&&k&&(y(k.state),b({isTransitioning:!0,flushSync:!1,currentLocation:k.currentLocation,nextLocation:k.nextLocation}),R(void 0))},[x.isTransitioning,k]);let L=T.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:G=>e.navigate(G),push:(G,ee,le)=>e.navigate(G,{state:ee,preventScrollReset:le==null?void 0:le.preventScrollReset}),replace:(G,ee,le)=>e.navigate(G,{replace:!0,state:ee,preventScrollReset:le==null?void 0:le.preventScrollReset})}),[e]),Y=e.basename||"/",z=T.useMemo(()=>({router:e,navigator:L,static:!1,basename:Y,onError:i}),[e,L,Y,i]);return T.createElement(T.Fragment,null,T.createElement(ur.Provider,{value:z},T.createElement(Ho.Provider,{value:h},T.createElement(M1.Provider,{value:O.current},T.createElement(Fh.Provider,{value:x},T.createElement(PN,{basename:Y,location:h.location,navigationType:h.historyAction,navigator:L,unstable_useTransitions:r},T.createElement(HN,{routes:e.routes,future:e.future,state:h,onError:i})))))),null)}function l0(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}var HN=T.memo($N);function $N({routes:e,future:t,state:i,onError:r}){return SN(e,void 0,i,r,t)}function ZN(e){return bN(e.context)}function PN({basename:e="/",children:t=null,location:i,navigationType:r="POP",navigator:o,static:u=!1,unstable_useTransitions:c}){Re(!$o(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=e.replace(/^\/*/,"/"),m=T.useMemo(()=>({basename:h,navigator:o,static:u,unstable_useTransitions:c,future:{}}),[h,o,u,c]);typeof i=="string"&&(i=wi(i));let{pathname:g="/",search:y="",hash:x="",state:b=null,key:S="default"}=i,j=T.useMemo(()=>{let N=Un(g,h);return N==null?null:{location:{pathname:N,search:y,hash:x,state:b,key:S},navigationType:r}},[h,g,y,x,b,S,r]);
61return Ut(j!=null,`<Router basename="${h}"> is not able to match the URL "${g}${y}${x}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:T.createElement(Ln.Provider,{value:m},T.createElement(Xu.Provider,{children:t,value:j}))}var Eu="get",Cu="application/x-www-form-urlencoded";function Iu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function qN(e){return Iu(e)&&e.tagName.toLowerCase()==="button"}function YN(e){return Iu(e)&&e.tagName.toLowerCase()==="form"}function FN(e){return Iu(e)&&e.tagName.toLowerCase()==="input"}function GN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function XN(e,t){return e.button===0&&(!t||t==="_self")&&!GN(e)}var hu=null;function IN(){if(hu===null)try{new FormData(document.createElement("form"),0),hu=!1}catch{hu=!0}return hu}var JN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zd(e){return e!=null&&!JN.has(e)?(Ut(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Cu}"`),null):e}function KN(e,t){let i,r,o,u,c;if(YN(e)){let h=e.getAttribute("action");r=h?Un(h,t):null,i=e.getAttribute("method")||Eu,o=zd(e.getAttribute("enctype"))||Cu,u=new FormData(e)}else if(qN(e)||FN(e)&&(e.type==="submit"||e.type==="image")){let h=e.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=e.getAttribute("formaction")||h.getAttribute("action");if(r=m?Un(m,t):null,i=e.getAttribute("formmethod")||h.getAttribute("method")||Eu,o=zd(e.getAttribute("formenctype"))||zd(h.getAttribute("enctype"))||Cu,u=new FormData(h,e),!IN()){let{name:g,type:y,value:x}=e;if(y==="image"){let b=g?`${g}.`:"";u.append(`${b}x`,"0"),u.append(`${b}y`,"0")}else g&&u.append(g,x)}}else{if(Iu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Eu,r=null,o=Cu,c=e}return u&&o==="text/plain"&&(c=u,u=void 0),{action:r,method:i.toLowerCase(),encType:o,formData:u,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Jh(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function QN(e,t,i,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&Un(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function WN(e,t){if(e.id in t)return t[e.id];try{let i=await import(e.module);return t[e.id]=i,i}catch(i){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function eE(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function tE(e,t,i){let r=await Promise.all(e.map(async o=>{let u=t.routes[o.route.id];if(u){let c=await WN(u,i);return c.links?c.links():[]}return[]}));return rE(r.flat(1).filter(eE).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function u0(e,t,i,r,o,u){let c=(m,g)=>i[g]?m.route.id!==i[g].route.id:!0,h=(m,g)=>{var y;return i[g].pathname!==m.pathname||((y=i[g].route.path)==null?void 0:y.endsWith("*"))&&i[g].params["*"]!==m.params["*"]};return u==="assets"?t.filter((m,g)=>c(m,g)||h(m,g)):u==="data"?t.filter((m,g)=>{var x;let y=r.routes[m.route.id];if(!y||!y.hasLoader)return!1;if(c(m,g)||h(m,g))return!0;if(m.route.shouldRevalidate){let b=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((x=i[0])==null?void 0:x.params)||{},nextUrl:new URL(e,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function nE(e,t,{includeHydrateFallback:i}={}){return aE(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let u=[o.module];return o.clientActionModule&&(u=u.concat(o.clientActionModule)),o.clientLoaderModule&&(u=u.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(u=u.concat(o.hydrateFallbackModule)),o.imports&&(u=u.concat(o.imports)),u}).flat(1))}function aE(e){return[...new Set(e)]}function iE(e){let t={},i=Object.keys(e).sort();for(let r of i)t[r]=e[r];return t}function rE(e,t){let i=new Set;return new Set(t),e.reduce((r,o)=>{let u=JSON.stringify(iE(o));return i.has(u)||(i.add(u),r.push({key:u,link:o})),r},[])}function L1(){let e=T.useContext(ur);return Jh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function sE(){let e=T.useContext(Ho);return Jh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Kh=T.createContext(void 0);Kh.displayName="FrameworkContext";function B1(){let e=T.useContext(Kh);return Jh(e,"You must render this element inside a <HydratedRouter> element"),e}function oE(e,t){let i=T.useContext(Kh),[r,o]=T.useState(!1),[u,c]=T.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:g,onMouseLeave:y,onTouchStart:x}=t,b=T.useRef(null);T.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let N=k=>
61{k.forEach(R=>{c(R.isIntersecting)})},_=new IntersectionObserver(N,{threshold:.5});return b.current&&_.observe(b.current),()=>{_.disconnect()}}},[e]),T.useEffect(()=>{if(r){let N=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(N)}}},[r]);let S=()=>{o(!0)},j=()=>{o(!1),c(!1)};return i?e!=="intent"?[u,b,{}]:[u,b,{onFocus:mo(h,S),onBlur:mo(m,j),onMouseEnter:mo(g,S),onMouseLeave:mo(y,j),onTouchStart:mo(x,S)}]:[!1,b,{}]}function mo(e,t){return i=>{e&&e(i),i.defaultPrevented||t(i)}}function lE({page:e,...t}){let{router:i}=L1(),r=T.useMemo(()=>pi(i.routes,e,i.basename),[i.routes,e,i.basename]);return r?T.createElement(cE,{page:e,matches:r,...t}):null}function uE(e){let{manifest:t,routeModules:i}=B1(),[r,o]=T.useState([]);return T.useEffect(()=>{let u=!1;return tE(e,t,i).then(c=>{u||o(c)}),()=>{u=!0}},[e,t,i]),r}function cE({page:e,matches:t,...i}){let r=Va(),{future:o,manifest:u,routeModules:c}=B1(),{basename:h}=L1(),{loaderData:m,matches:g}=sE(),y=T.useMemo(()=>u0(e,t,g,u,r,"data"),[e,t,g,u,r]),x=T.useMemo(()=>u0(e,t,g,u,r,"assets"),[e,t,g,u,r]),b=T.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let N=new Set,_=!1;if(t.forEach(R=>{var I;let O=u.routes[R.route.id];!O||!O.hasLoader||(!y.some(L=>L.route.id===R.route.id)&&R.route.id in m&&((I=c[R.route.id])!=null&&I.shouldRevalidate)||O.hasClientLoader?_=!0:N.add(R.route.id))}),N.size===0)return[];let k=QN(e,h,o.unstable_trailingSlashAwareDataRequests,"data");return _&&N.size>0&&k.searchParams.set("_routes",t.filter(R=>N.has(R.route.id)).map(R=>R.route.id).join(",")),[k.pathname+k.search]},[h,o.unstable_trailingSlashAwareDataRequests,m,r,u,y,t,e,c]),S=T.useMemo(()=>nE(x,u),[x,u]),j=uE(x);return T.createElement(T.Fragment,null,b.map(N=>T.createElement("link",{key:N,rel:"prefetch",as:"fetch",href:N,...i})),S.map(N=>T.createElement("link",{key:N,rel:"modulepreload",href:N,...i})),j.map(({key:N,link:_})=>T.createElement("link",{key:N,nonce:i.nonce,..._,crossOrigin:_.crossOrigin??i.crossOrigin})))}function fE(...e){return t=>{e.forEach(i=>{typeof i=="function"?i(t):i!=null&&(i.current=t)})}}var dE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{dE&&(window.__reactRouterVersion="7.13.0")}catch{}function hE(e,t){return VT({basename:t==null?void 0:t.basename,getContext:t==null?void 0:t.getContext,future:t==null?void 0:t.future,history:tT({window:t==null?void 0:t.window}),hydrationData:pE(),routes:e,mapRouteProperties:UN,hydrationRouteProperties:LN,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window,unstable_instrumentations:t==null?void 0:t.unstable_instrumentations}).initialize()}function pE(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:mE(e.errors)}),e}function mE(e){if(!e)return null;let t=Object.entries(e),i={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")i[r]=new Bo(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let u=window[o.__subType];if(typeof u=="function")try{let c=new u(o.message);c.stack="",i[r]=c}catch{}}if(i[r]==null){let u=new Error(o.message);u.stack="",i[r]=u}}else i[r]=o;return i}var V1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sn=T.forwardRef(function({onClick:t,discover:i="render",prefetch:r="none",relative:o,reloadDocument:u,replace:c,state:h,target:m,to:g,preventScrollReset:y,viewTransition:x,unstable_defaultShouldRevalidate:b,...S},j){let{basename:N,unstable_useTransitions:_}=T.useContext(Ln),k=typeof g=="string"&&V1.test(g),R=x1(g,N);g=R.to;let O=gN(g,{relative:o}),[I,L,Y]=oE(r,S),z=vE(g,{replace:c,state:h,target:m,preventScrollReset:y,relative:o,viewTransition:x,unstable_defaultShouldRevalidate:b,unstable_useTransitions:_});function G(le){t&&t(le),le.defaultPrevented||z(le)}let ee=T.createElement("a",{...S,...Y,href:R.absoluteURL||O,onClick:R.isExternal||u?t:G,ref:fE(j,L),target:m,"data-discover":!k&&i==="render"?"true":void 0});return I&&!k?T.createElement(T.Fragment,null,ee,T.createElement(lE,{page:O})):ee});Sn.displayName="Link";var gE=T.forwardRef(function({"aria-current":t="page",caseSensitive:i=!1,className:r="",end:o=!1,style:u,to:c,viewTransition:h,children:m,...g},y){let x=Zo(c,{relative:g.relative}),b=Va(),S=T.useContext(Ho),{navigator:j,basename:N}=T.useContext(Ln),_=S!=null&&TE(x)&&h===!0,k=j.encodeLocation?j.encodeLocation(x).pathname:x.pathname,R=b.pathname,O=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(R=R.toLowerCase(),O=O?O.toLowerCase():null,k=k.toLowerCase()),O&&N&&(O=Un(O,N)||O);const I=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let L=R===k||!o&&R.startsWith(k)&&R.charAt(I)==="/",Y=O!=null&&(O===k||!o&&O.startsWith(k)&&O.charAt(k.length)==="/"),z={isActive:L,isPending:Y,isTransitioning:_},G=L?t:void 0,ee;typeof r=="function"?ee=r(z):ee=[r,L?"active":null,Y?"pending":null,_?"transitioning":null].filter(
61Boolean).join(" ");let le=typeof u=="function"?u(z):u;return T.createElement(Sn,{...g,"aria-current":G,className:ee,ref:y,style:le,to:c,viewTransition:h},typeof m=="function"?m(z):m)});gE.displayName="NavLink";var yE=T.forwardRef(({discover:e="render",fetcherKey:t,navigate:i,reloadDocument:r,replace:o,state:u,method:c=Eu,action:h,onSubmit:m,relative:g,preventScrollReset:y,viewTransition:x,unstable_defaultShouldRevalidate:b,...S},j)=>{let{unstable_useTransitions:N}=T.useContext(Ln),_=wE(),k=jE(h,{relative:g}),R=c.toLowerCase()==="get"?"get":"post",O=typeof h=="string"&&V1.test(h),I=L=>{if(m&&m(L),L.defaultPrevented)return;L.preventDefault();let Y=L.nativeEvent.submitter,z=(Y==null?void 0:Y.getAttribute("formmethod"))||c,G=()=>_(Y||L.currentTarget,{fetcherKey:t,method:z,navigate:i,replace:o,state:u,relative:g,preventScrollReset:y,viewTransition:x,unstable_defaultShouldRevalidate:b});N&&i!==!1?T.startTransition(()=>G()):G()};return T.createElement("form",{ref:j,method:R,action:k,onSubmit:r?m:I,...S,"data-discover":!O&&e==="render"?"true":void 0})});yE.displayName="Form";function xE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function H1(e){let t=T.useContext(ur);return Re(t,xE(e)),t}function vE(e,{target:t,replace:i,state:r,preventScrollReset:o,relative:u,viewTransition:c,unstable_defaultShouldRevalidate:h,unstable_useTransitions:m}={}){let g=yN(),y=Va(),x=Zo(e,{relative:u});return T.useCallback(b=>{if(XN(b,t)){b.preventDefault();let S=i!==void 0?i:la(y)===la(x),j=()=>g(e,{replace:S,state:r,preventScrollReset:o,relative:u,viewTransition:c,unstable_defaultShouldRevalidate:h});m?T.startTransition(()=>j()):j()}},[y,g,x,i,r,t,e,o,u,c,h,m])}var bE=0,SE=()=>`__${String(++bE)}__`;function wE(){let{router:e}=H1("useSubmit"),{basename:t}=T.useContext(Ln),i=zN(),r=e.fetch,o=e.navigate;return T.useCallback(async(u,c={})=>{let{action:h,method:m,encType:g,formData:y,body:x}=KN(u,t);if(c.navigate===!1){let b=c.fetcherKey||SE();await r(b,i,c.action||h,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:x,formMethod:c.method||m,formEncType:c.encType||g,flushSync:c.flushSync})}else await o(c.action||h,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:x,formMethod:c.method||m,formEncType:c.encType||g,replace:c.replace,state:c.state,fromRouteId:i,flushSync:c.flushSync,viewTransition:c.viewTransition})},[r,o,t,i])}function jE(e,{relative:t}={}){let{basename:i}=T.useContext(Ln),r=T.useContext(ca);Re(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),u={...Zo(e||".",{relative:t})},c=Va();if(e==null){u.search=c.search;let h=new URLSearchParams(u.search),m=h.getAll("index");if(m.some(y=>y==="")){h.delete("index"),m.filter(x=>x).forEach(x=>h.append("index",x));let y=h.toString();u.search=y?`?${y}`:""}}return(!e||e===".")&&o.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(u.pathname=u.pathname==="/"?i:ra([i,u.pathname])),la(u)}function TE(e,{relative:t}={}){let i=T.useContext(Fh);Re(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=H1("useViewTransitionState"),o=Zo(e,{relative:t});if(!i.isTransitioning)return!1;let u=Un(i.currentLocation.pathname,r)||i.currentLocation.pathname,c=Un(i.nextLocation.pathname,r)||i.nextLocation.pathname;return Du(o.pathname,c)!=null||Du(o.pathname,u)!=null}function Qh({variant:e="wordmark",height:t=18,className:i}){if(e==="icon"){const o=t;return d.jsxs("svg",{className:i,width:o,height:o,viewBox:"0 0 24 24",fill:"none",children:[d.jsx("path",{d:"M8.41285 0H0V23.5682H8.41285L11.7835 11.7838L8.41285 0Z",fill:"currentColor"}),d.jsx("path",{d:"M11.7835 11.7838L23.5676 8.66668V0H15.1547L11.7835 11.7838Z",fill:"currentColor"}),d.jsx("path",{d:"M15.1547 23.5679H23.5676V14.9007L11.7835 11.7835L15.1547 23.5679Z",fill:"currentColor"})]})}const r=Math.round(t/24*103);return d.jsxs("svg",{className:i,width:r,height:t,viewBox:"0 0 103 24",fill:"none",children:[d.jsx("path",{d:"M8.41285 0H0V23.5682H8.41285L11.7835 11.7838L8.41285 0Z",fill:"currentColor"}),d.jsx("path",{d:"M11.7835 11.7838L23.5676 8.66668V0H15.1547L11.7835 11.7838Z",fill:"currentColor"}),d.jsx("path",{d:"M15.1547 23.5679H23.5676V14.9007L11.7835 11.7835L15.1547 23.5679Z",fill:"currentColor"}),d.jsx("path",{d:"M96.1613 5.76329C92.4462 5.76329 90.6226 8.19508 90.2846 9.71502V0.0214844H85.9614V23.6635H90.2846V13.6325C90.2846 10.7619 92.0068 9.34344 94.3713 9.34344C96.7358 9.34344 97.9514 10.7619 97.9514 13.6325V23.6635H102.274V12.6192C102.274 7.85712 99.6063 5.76329 96.1613 5.76329Z",fill:"currentColor"}),d.jsx("path",{d:"M76.3776 5.76246C71.1425 5.76246 68.8122 7.65398 68.8122 11.0649V11.8416H72.8647V11.4701C72.8647 9.54492 74.351 8.9032 76.2761 8.9032C78.2012 8.9032 79.451 9.54492 79.451 11.673V12.0445C79.451 12.9564 78.9443 13.2601 77.2216 13.4966L73.9458 13.9355C70.7373 14.3749 67.8662 15.4218 67.8662 19.0692C67.8662 22.7166 70.5344 24 73.5064 24C77.4244 24 79.1809 21.5004 79.5524 20.5213V23.6626H83.7064V11.5037C83.7064 7.61977 81.5448 5.76187 76.3776 5.76187V5.76246ZM79.451 17.5834C79.451 19.0019 77.6946 20.8598 74.9255 20.8598C73.1012 20.8598 72.1894 20.0494 72.1894 18.6982C72.1894 17.6513 72.7639 16.8067 74.6211 16.5365L77.3908 16.0977C78.3699 15.9626 79.2145 15.7598 79.451 15.3546V17.5834Z",fill:"currentColor"}),d.jsx("path",{d:"M58.0553 5.76187C53.6312 5.76187 49.3417 8.53162 49.3417 14.8809C49.3417 21.2302 53.6307 24 58.0553 24C62.48 24 66.7689 21.2302 66.7689 14.8809C66.7689 8.53162 62.4463 5.76187 58.0553 5.76187ZM58.0553 20.3862C55.4885 20.3862 53.3947 18.6976 53.3947 14.8809C53.3947 11.0643 55.4885 9.37564 58.0553 9.37564C60.6221 9.37564 62.6828 11.
610643 62.6828 14.8809C62.6828 18.6976 60.5885 20.3862 58.0553 20.3862Z",fill:"currentColor"}),d.jsx("path",{d:"M40.0482 11.7844L51.6117 0H45.5203L36.7553 9.37622V0.0206434H32.3307V23.6632H36.7553V17.6849V14.231L45.6147 23.6632H51.7061L40.0482 11.7844Z",fill:"currentColor"})]})}/** 62 * @license lucide-react v0.487.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const NE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),EE=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,i,r)=>r?r.toUpperCase():i.toLowerCase()),c0=e=>{const t=EE(e);return t.charAt(0).toUpperCase()+t.slice(1)},$1=(...e)=>e.filter((t,i,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===i).join(" ").trim();/** 67 * @license lucide-react v0.487.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */var CE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 72 * @license lucide-react v0.487.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */const AE=T.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:o="",children:u,iconNode:c,...h},m)=>T.createElement("svg",{ref:m,...CE,width:t,height:t,stroke:e,strokeWidth:r?Number(i)*24/Number(t):i,className:$1("lucide",o),...h},[...c.map(([g,y])=>T.createElement(g,y)),...Array.isArray(u)?u:[u]]));/** 77 * @license lucide-react v0.487.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */const Kt=(e,t)=>{const i=T.forwardRef(({className:r,...o},u)=>T.createElement(AE,{ref:u,iconNode:t,className:$1(`lucide-${NE(c0(e))}`,`lucide-${e}`,r),...o}));return i.displayName=c0(e),i};/** 82 * @license lucide-react v0.487.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */const _E=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Z1=Kt("arrow-right",_E);/** 87 * @license lucide-react v0.487.0 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */const zE=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],P1=Kt("chart-column",zE);/** 92 * @license lucide-react v0.487.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */const ME=[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1uwlt4"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z",key:"10291m"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z",key:"1tqoq1"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1x6lto"}]],RE=Kt("component",ME);/** 97 * @license lucide-react v0.487.0 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree. 101 */const kE=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],q1=Kt("credit-card",kE);/** 102 * @license lucide-react v0.487.0 - ISC 103 * 104 * This source code is licensed under the ISC license. 105 * See the LICENSE file in the root directory of this source tree. 106 */const OE=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],DE=Kt("ellipsis",OE);/** 107 * @license lucide-react v0.487.0 - ISC 108 * 109 * This source code is licensed under the ISC license. 110 * See the LICENSE file in the root directory of this source tree. 111 */const UE=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],LE=Kt("house",UE);/** 112 * @license lucide-react v0.487.0 - ISC 113 * 114 * This source code is licensed under the ISC license. 115 * See the LICENSE file in the root directory of this source tree. 116 */const BE=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Y1=Kt("layers",BE);/** 117 * @license lucide-react v0.487.0 - ISC 118 * 119 * This source code is licensed under the ISC license. 120 * See the LICENSE file in the root directory of this source tree. 121 */const VE=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],HE=Kt("menu",VE);/** 122 * @license lucide-react v0.487.0 - ISC 123 * 124 * This source code is licensed under the ISC license. 125 * See the LICENSE file in the root directory of this source tree. 126 */const $E=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],F1=Kt("message-square",$E);/** 127 * @license lucide-react v0.487.0 - ISC 128 * 129 * This source code is licensed under the ISC license. 130 * See the LICENSE file in the root directory of this source tree. 131 */const ZE=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],PE=Kt("monitor",ZE);/** 132 * @license lucide-react v0.487.0 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree. 136 */const qE=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],G1=Kt("play",qE);/** 137 * @license lucide-react v0.487.0 - ISC 138 * 139 * This source code is licensed under the ISC license. 140 * See the LICENSE file in the root directory of this source tree. 141 */const YE=[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]],X1=Kt("shopping-bag",YE);/** 142 * @license lucide-react v0.487.0 - ISC 143 * 144 * This source code is licensed under the ISC license. 145 * See the LICENSE file in the root directory of this source tree. 146 */const FE=[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]],GE=Kt("sliders-vertical",FE);/** 147 * @license lucide-react v0.487.0 - ISC 148 * 149 * This source code is licensed under the ISC license. 150 * See the LICENSE file in the root directory of this source tree. 151 */const XE=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],IE=Kt("smartphone",XE);/** 152 * @license lucide-react v0.487.0 - ISC 153 * 154 * This source code is licensed under the ISC license. 155 * See the LICENSE file in the root directory of this source tree. 156 */const JE=[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"16",cy:"12",r:"2",key:"4ma0v8"}]],KE=Kt("toggle-right",JE);/** 157 * @license lucide-react v0.487.0 - ISC 158 * 159 * This source code is licensed under the ISC license. 160 * See the LICENSE file in the root directory of this source tree. 161 */const QE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
161],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],WE=Kt("x",QE),I1={overview:"/",anatomy:"/anatomy",card:"/card","card-mobile":"/card/mobile","card-desktop":"/card/desktop",header:"/header",customization:"/customization",states:"/states",catalog:"/catalog",poll:"/poll",concierge:"/concierge",playground:"/playground"},e4=Object.fromEntries(Object.entries(I1).map(([e,t])=>[t,e])),t4=[{items:[{id:"overview",label:"Overview",icon:d.jsx(LE,{size:16})}]},{label:"Foundations",items:[{id:"header",label:"Header",icon:d.jsx(RE,{size:16})},{id:"customization",label:"Customization",icon:d.jsx(GE,{size:16})},{id:"states",label:"States",icon:d.jsx(KE,{size:16})}]},{label:"Formats",groups:[{label:"Conversational",items:[{id:"anatomy",label:"Anatomy",icon:d.jsx(Y1,{size:16})},{id:"card",label:"Card",icon:d.jsx(q1,{size:16})},{id:"card-mobile",label:"Mobile Web",icon:d.jsx(IE,{size:16}),indent:!0},{id:"card-desktop",label:"Desktop Web",icon:d.jsx(PE,{size:16}),indent:!0}]},{label:"Display",items:[]}]},{label:"Experiments",items:[{id:"catalog",label:"Catalog",icon:d.jsx(X1,{size:16})},{id:"poll",label:"Poll",icon:d.jsx(P1,{size:16})},{id:"concierge",label:"Concierge",icon:d.jsx(F1,{size:16})}]},{label:"Tools",items:[{id:"playground",label:"Playground",icon:d.jsx(G1,{size:16})}]}];function f0({items:e,activePage:t}){return d.jsx("div",{className:"flex flex-col gap-[1px]",children:e.map(i=>{const r=t===i.id;return d.jsxs(Sn,{to:I1[i.id],className:`flex items-center gap-[8px] ${i.indent?"pl-[28px] pr-[8px]":"px-[8px]"} py-[7px] rounded-[8px] text-left transition-colors w-full ${r?"bg-[#0d0d0d]/[0.04] text-[#0d0d0d]":"text-[#0d0d0d] hover:bg-[#0d0d0d]/[0.02]"}`,children:[d.jsx("span",{className:"text-[#0d0d0d]",children:i.icon}),d.jsx("span",{className:"text-[13px] leading-[18px]",children:i.label})]},i.id)})})}function n4({isOpen:e,onClose:t}){const i=Va(),r=e4[i.pathname]??"overview";return d.jsxs(d.Fragment,{children:[e&&d.jsx("div",{className:"fixed inset-0 bg-black/20 backdrop-blur-sm z-40 lg:hidden",onClick:t}),d.jsxs("aside",{className:`fixed top-0 left-0 z-50 h-full w-[252px] bg-white border-r border-[rgba(13,13,13,0.06)] flex flex-col transition-transform duration-200 lg:translate-x-0 ${e?"translate-x-0":"-translate-x-full"}`,children:[d.jsxs("div",{className:"flex items-center justify-between h-[56px] px-[20px] border-b border-[rgba(13,13,13,0.06)] shrink-0",children:[d.jsxs(Sn,{to:"/",className:"flex items-center gap-[8px]",children:[d.jsx(Qh,{height:16}),d.jsx("span",{className:"text-[10px] leading-[14px] text-koah-neutral-400 bg-[#fafafa] px-[5px] py-[1px] rounded",children:"v0.1"})]}),d.jsx("button",{onClick:t,className:"lg:hidden p-[4px] rounded-[6px] text-koah-neutral-400 hover:text-koah-neutral-600 hover:bg-[#fafafa] transition-colors",children:d.jsx(WE,{size:16})})]}),d.jsx("nav",{className:"flex-1 overflow-y-auto py-[12px] px-[12px]",children:t4.map((o,u)=>{var c;return d.jsxs("div",{className:u>0?"mt-[8px]":"",children:[u>0&&d.jsx("div",{className:"border-t border-[rgba(13,13,13,0.06)] mb-[8px] mx-[4px]"}),o.label&&d.jsx("span",{className:"text-[10px] leading-[14px] text-koah-neutral-400 uppercase tracking-[0.06em] px-[8px] mb-[4px] block",children:o.label}),o.items&&d.jsx(f0,{items:o.items,activePage:r}),(c=o.groups)==null?void 0:c.map((h,m)=>d.jsxs("div",{className:m>0?"mt-[10px]":"",children:[d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-300 px-[8px] mb-[3px] block",children:h.label}),h.items.length===0?d.jsx("span",{className:"text-[12px] leading-[16px] text-koah-neutral-200 italic px-[8px] py-[7px] block",children:"Coming soon"}):d.jsx(f0,{items:h.items,activePage:r})]},m))]},u)})})]})]})}function a4(e){return{"/":"Overview","/anatomy":"Anatomy","/card":"Card","/card/mobile":"Card / Mobile Web","/card/desktop":"Card / Desktop Web","/header":"Header","/customization":"Customization","/states":"States","/catalog":"Catalog","/poll":"Poll","/concierge":"Concierge","/playground":"Playground"}[e]??"Format Library"}function i4(){const[e,t]=T.useState(!1),i=Va();T.useEffect(()=>{window.scrollTo({top:0,behavior:"instant"})},[i.pathname]),T.useEffect(()=>{t(!1)},[i.pathname]);const r=a4(i.pathname);return d.jsxs("div",{className:"min-h-screen bg-[#F4F5F6]",children:[d.jsx(n4,{isOpen:e,onClose:()=>t(!1)}),d.jsxs("div",{className:"lg:ml-[252px]",children:[d.jsx("header",{className:"sticky top-0 z-30 bg-white/80 backdrop-blur-xl border-b border-[rgba(13,13,13,0.06)] lg:hidden",children:d.jsxs("div",{className:"flex items-center gap-[12px] h-[56px] px-[16px]",children:[d.jsx("button",{onClick:()=>t(!0),className:"p-[6px] rounded-[8px] text-koah-neutral-600 hover:text-[#0d0d0d] hover:bg-[#f3f3f3] transition-colors",children:d.jsx(HE,{size:20})}),d.jsx(Qh,{variant:"icon",height:18}),d.jsx("span",{className:"text-[13px] leading-[18px] text-koah-neutral-400",children:r})]})}),d.jsx("main",{className:"p-[24px] md:p-[40px]",children:d.jsx(ZN,{})})]})]})}function Bn({category:e,title:t,description:i,subtitle:r,children:o}){return d.jsx("div",{className:"bg-white rounded-[4px] shadow-sm min-h-[calc(100vh-80px)]",children:d.jsxs("div",{className:"p-[48px]",children:[d.jsxs("div",{className:"flex items-center gap-[10px] mb-[8px]",children:[d.jsx(Qh,{height:14}),d.jsx("span",{className:"text-koah-neutral-200",children:"|"}),d.jsx("span",{className:"text-[13px] leading-[18px] text-koah-neutral-400 tracking-[-0.01em]",children:Array.isArray(e)?e.map((u,c)=>d.jsxs(oa.Fragment,{children:[c>0&&d.jsx("span",{className:"mx-[6px] text-koah-neutral-200",children:"/"}),u]},c)):e})]}),d.jsx("div",{className:"border-b border-[#0d0d0d] mb-[40px]"}),d.jsx("h1",{className:"text-[40px] leading-[1.1] tracking-[-0.03em] text-[#0d0d0d] italic",style:{fontFamily:"'STK Bureau Serif', serif"},children:t}),r&&d.jsx(Sn,{to:r.href,className:"text-[14px] leading-[20px] text-koah-sky-400 hover:underline mt-[4px] inline-block",children:r.label}),i&&d.jsx("p",{className:"text-[15px] leading-[22px] text-koah-neutral-500 max-w-[720px] mt-[8px]",children:i}),d.jsx("div",{className:"mt-[56px]",children:o})]})})}function pu({name:e,description:t,href:i,icon:r,experiment:o}){return d.jsxs(Sn,{to:i,className:"group flex flex-col gap-[10px] p-[20px] rounded-[12px] border border-[rgba(13,13,13,0.06)] bg-[#fafafa] hover:bg-white hover:border-[rgba(13,13,13,0.12)] transition-all",children:[d.jsxs("div",{className:"flex items-center gap-[8px]",children:[d.jsx("span",{className:"text-koah-neutral-400 group-hover:text-[#0d0d0d] transition-colors",children:r}),d.jsx("span",{className:"text-[14px] leading-[20px] text-[#0d0d0d] tracking-[-0.01em]",children:e}),o&&d.jsx("span",{className:"text-[9px] leading-[12px] text-koah-orange-400 bg-koah-orange-400/10 px-[4px] py-[1px] rounded",children:"Experiment"})]}),d.jsx("span",{className:"text-[12px] leading-[17px] text-koah-neutral-400",children:t}
161),d.jsxs("span",{className:"text-[12px] leading-[16px] text-koah-sky-400 flex items-center gap-[4px] mt-auto opacity-0 group-hover:opacity-100 transition-opacity",children:["View format ",d.jsx(Z1,{size:12})]})]})}function d0(){return d.jsxs(Bn,{category:"Format Library",title:"Overview",description:"A format is a structured container for an ad experience â it defines how content is organized and how users interact with it.",children:[d.jsxs("div",{className:"mb-[56px]",children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] block mb-[16px]",children:"Format categories"}),d.jsxs("div",{className:"flex flex-col md:flex-row gap-[32px] md:gap-[48px]",children:[d.jsxs("div",{className:"flex-1",children:[d.jsx("div",{className:"mb-[6px]",children:d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] tracking-[-0.01em]",children:"Conversational"})}),d.jsx("p",{className:"text-[13px] leading-[19px] text-koah-neutral-400 mb-[8px]",children:"Formats designed for conversational AI surfaces. They share a common anatomy â a fixed header identifying the advertiser, plus a format-specific content area."}),d.jsxs(Sn,{to:"/anatomy",className:"text-[12px] leading-[16px] text-koah-sky-400 hover:underline inline-flex items-center gap-[4px]",children:["View shared anatomy ",d.jsx(Z1,{size:12})]})]}),d.jsxs("div",{className:"flex-1",children:[d.jsxs("div",{className:"flex items-center gap-[8px] mb-[6px]",children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] tracking-[-0.01em]",children:"Display"}),d.jsx("span",{className:"text-[10px] leading-[14px] text-koah-neutral-400 bg-[#fafafa] px-[5px] py-[1px] rounded",children:"Coming soon"})]}),d.jsx("p",{className:"text-[13px] leading-[19px] text-koah-neutral-200",children:"Standard display formats for non-conversational surfaces."})]})]})]}),d.jsxs("div",{className:"mb-[56px]",children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] block mb-[16px]",children:"Conversational formats"}),d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-[12px]",children:[d.jsx(pu,{name:"Card",description:"Single-destination click-through with optional media and CTA. The default conversational ad format.",href:"/card",icon:d.jsx(q1,{size:15})}),d.jsx(pu,{name:"Poll",description:"2â4 selectable choices. Selecting a choice reveals aggregated results in place.",href:"/poll",icon:d.jsx(P1,{size:15}),experiment:!0}),d.jsx(pu,{name:"Concierge",description:"Ranked recommendations that expand to reveal more detail on tap.",href:"/concierge",icon:d.jsx(F1,{size:15}),experiment:!0}),d.jsx(pu,{name:"Catalog",description:"Product browser where each item links to its own destination URL.",href:"/catalog",icon:d.jsx(X1,{size:15}),experiment:!0})]})]}),d.jsx("div",{className:"border-t border-[rgba(13,13,13,0.06)] pt-[24px]",children:d.jsxs("div",{className:"flex flex-col sm:flex-row gap-[16px] sm:gap-[32px]",children:[d.jsxs(Sn,{to:"/anatomy",className:"group flex items-center gap-[10px]",children:[d.jsx(Y1,{size:15,className:"text-koah-neutral-200 group-hover:text-[#0d0d0d] transition-colors"}),d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] group-hover:underline",children:"Anatomy"}),d.jsx("span",{className:"text-[12px] leading-[16px] text-koah-neutral-400 hidden sm:inline",children:"â shared structure across all conversational formats"})]}),d.jsxs(Sn,{to:"/playground",className:"group flex items-center gap-[10px]",children:[d.jsx(G1,{size:15,className:"text-koah-neutral-200 group-hover:text-[#0d0d0d] transition-colors"}),d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] group-hover:underline",children:"Playground"}),d.jsx("span",{className:"text-[12px] leading-[16px] text-koah-neutral-400 hidden sm:inline",children:"â dynamic format generation powered by AI"})]})]})})]})}function Et({children:e,label:t}){return d.jsxs("div",{className:"flex flex-col gap-[10px]",children:[d.jsx("div",{className:"rounded-[14px] p-[20px] border border-[rgba(13,13,13,0.06)] flex items-center justify-center flex-1",children:d.jsx("div",{className:"w-full max-w-[360px]",children:e})}),t&&d.jsx("div",{className:"ml-[2px]",children:t})]})}const r4="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODgiIGhlaWdodD0iODgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBvcGFjaXR5PSIuMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIzLjciPjxyZWN0IHg9IjE2IiB5PSIxNiIgd2lkdGg9IjU2IiBoZWlnaHQ9IjU2IiByeD0iNiIvPjxwYXRoIGQ9Im0xNiA1OCAxNi0xOCAzMiAzMiIvPjxjaXJjbGUgY3g9IjUzIiBjeT0iMzUiIHI9IjciLz48L3N2Zz4KCg==";function Wh(e){const[t,i]=T.useState(!1),r=()=>{i(!0)},{src:o,alt:u,style:c,className:h,...m}=e;return t?d.jsx("div",{className:`inline-block bg-gray-100 text-center align-middle ${h??""}`,style:c,children:d.jsx("div",{className:"flex items-center justify-center w-full h-full",children:d.jsx("img",{src:r4,alt:"Error loading image",...m,"data-original-url":o})})}):d.jsx("img",{src:o,alt:u,className:h,style:c,...m,onError:r})}function rr({advertiserName:e,avatarUrl:t,avatarColor:i="#0d0d0d",avatarShape:r="circle",showOverflowMenu:o=!0}){const u=r==="circle"?"rounded-full":"rounded-koah-avatar-square";return d.jsxs("div",{className:"flex gap-koah-header-gap items-center w-full",children:[d.jsxs("div",{className:`relative ${u} shrink-0 size-koah-avatar`,children:[d.jsx("div",{className:`flex items-center overflow-clip relative ${u} size-full`,children:t?d.jsx(Wh,{src:t,alt:e,className:`object-cover size-full ${u}`}):d.jsx("div",{className:`${u} shrink-0 size-koah-avatar`,style:{backgroundColor:i}})}),d.jsx("div",{"aria-hidden":"true",className:`absolute border-[0.5px] border-koah-border border-solid inset-0 pointer-events-none ${u}`})]}),d.jsxs("div",{className:"flex flex-1 flex-col gap-[1px] items-start min-w-0",children:[d.jsx("div",{className:"flex items-center gap-[6px] w-full",children:d.jsx("span",{className:"text-[length:var(--koah-font-name)] leading-[var(--koah-lh-name)] text-koah-primary tracking-[-0.01em] truncate",children:e})}),d.jsx("span",{className:"text-[length:var(--koah-font-sponsor)] leading-[var(--koah-lh-sponsor)] text-koah-tertiary",children:"Sponsored"})]}),o&&d.jsx("button",{className:"shrink-0 p-1 rounded-full hover:bg-gray-100 transition-colors text-koah-overflow",children:d.jsx(DE,{size:18})})]})}function xi({interactive:e=!0,children:t}){return d.jsxs("div",{className:`bg-white/0 max-w-[700px] relative rounded-koah-shell w-full ${e?"curs
161or-pointer transition-shadow hover:shadow-md":""}`,children:[d.jsx("div",{"aria-hidden":"true",className:"absolute border-[0.5px] border-koah-border border-solid inset-0 pointer-events-none rounded-koah-shell shadow-[0px_2px_8px_0px_rgba(0,0,0,0.04)]"}),d.jsx("div",{className:"flex flex-col max-w-[inherit] w-full",children:d.jsx("div",{className:"flex flex-col gap-koah-shell-gap items-start p-koah-shell w-full",children:t})})]})}function s4({children:e,interactive:t=!0}){return d.jsx(xi,{interactive:t,children:e})}function o4({name:e,avatar:t}){return d.jsx(rr,{advertiserName:e,avatarUrl:t==null?void 0:t.url,avatarColor:t==null?void 0:t.color,avatarShape:t==null?void 0:t.shape})}function l4({children:e}){return d.jsx("div",{className:"w-full",children:d.jsx("p",{className:"text-[length:var(--koah-font-body)] leading-[var(--koah-lh-body)] text-koah-primary",children:e})})}function u4({src:e,alt:t="Sponsored media"}){return d.jsx("div",{className:"w-full rounded-koah-media overflow-clip bg-koah-surface-muted",children:d.jsx(Wh,{src:e,alt:t,className:"w-full h-[160px] object-cover"})})}function c4({children:e="Learn more"}){return d.jsx("button",{className:"bg-koah-accent text-white text-[length:var(--koah-font-label)] leading-[var(--koah-lh-label)] font-medium px-[18px] py-[8px] rounded-full hover:bg-koah-cta-hover transition-colors",children:e})}const he=Object.assign(s4,{Header:o4,Body:l4,Media:u4,CTA:c4});function f4({children:e,accentColor:t="#0d0d0d",interactive:i=!0}){const r=[],o=[];return oa.Children.forEach(e,u=>{oa.isValidElement(u)&&u.type===J1?o.push(u.props):r.push(u)}),d.jsxs(xi,{interactive:i,children:[r,o.length>0&&d.jsx(p4,{choices:o,color:t})]})}function d4({name:e,avatar:t}){return d.jsx(rr,{advertiserName:e,avatarUrl:t==null?void 0:t.url,avatarColor:t==null?void 0:t.color,avatarShape:t==null?void 0:t.shape})}function h4({children:e}){return d.jsx("div",{className:"w-full",children:d.jsx("p",{className:"text-[length:var(--koah-font-body)] leading-[var(--koah-lh-body)] text-koah-primary",children:e})})}function J1(e){return null}function p4({choices:e,color:t}){const[i,r]=T.useState(null),o=u=>{i===null&&r(u)};return d.jsx("div",{className:"flex flex-col gap-[6px] w-full",children:e.map((u,c)=>{const h=i!==null,m=i===c,g=u.percentage??0;return d.jsxs("button",{onClick:()=>o(c),className:`relative w-full rounded-koah-choice overflow-clip transition-all ${h?"":"hover:bg-koah-surface-muted active:scale-[0.99]"}`,style:{cursor:h?"default":"pointer"},children:[d.jsx("div",{"aria-hidden":"true",className:"absolute inset-0 rounded-koah-choice pointer-events-none",style:{border:m?`1.5px solid ${t}`:"1px solid var(--color-koah-choice-border)"}}
161),h&&d.jsx("div",{className:"absolute inset-0 rounded-koah-choice transition-all duration-500 ease-out",style:{width:`${g}%`,backgroundColor:m?t:"var(--color-koah-primary)",opacity:m?.12:.06}}),d.jsxs("div",{className:"flex items-center justify-between px-[12px] py-[10px] relative z-10",children:[d.jsx("span",{className:"text-[length:var(--koah-font-choice)] leading-[var(--koah-lh-choice)] tracking-[-0.2px]",style:{color:m?t:"var(--color-koah-primary)",fontWeight:m?600:510},children:u.label}),h&&d.jsxs("span",{className:"text-[length:var(--koah-font-choice)] leading-[var(--koah-lh-choice)] tracking-[-0.2px]",style:{color:m?t:"var(--color-koah-secondary)",fontWeight:m?600:400},children:[g,"%"]})]})]},u.label)})})}const kt=Object.assign(f4,{Header:d4,Body:h4,Choice:J1});function m4({children:e,interactive:t=!0}){const i=[],r=[];return oa.Children.forEach(e,o=>{oa.isValidElement(o)&&o.type===K1?r.push(o.props):i.push(o)}),d.jsxs(xi,{interactive:t,children:[i,r.length>0&&d.jsx(x4,{items:r})]})}function g4({name:e,avatar:t}){return d.jsx(rr,{advertiserName:e,avatarUrl:t==null?void 0:t.url,avatarColor:t==null?void 0:t.color,avatarShape:t==null?void 0:t.shape})}function y4({children:e}){return d.jsx("div",{className:"w-full",children:d.jsx("p",{className:"text-[length:var(--koah-font-body)] leading-[var(--koah-lh-body)] text-koah-primary",children:e})})}function K1(e){return null}function x4({items:e}){return d.jsxs("div",{className:"w-full flex flex-col gap-[10px]",children:[d.jsxs("div",{className:"relative overflow-hidden",style:{maxHeight:"78px"},children:[d.jsx("div",{className:"flex flex-col gap-[4px] px-[4px]",children:e.map((t,i)=>d.jsxs("p",{className:"text-[length:var(--koah-font-concierge-item)] leading-[var(--koah-lh-concierge-item)] tracking-[-0.2px]",children:[d.jsx("span",{className:"text-koah-primary",style:{fontWeight:600},children:t.title}),d.jsxs("span",{className:"text-koah-secondary",style:{fontWeight:400},children:[" ","â ",t.detail]})]},i))}),d.jsx("div",{className:"absolute bottom-0 left-0 right-0 pointer-events-none",style:{height:"44px",background:"linear-gradient(to top, white 20%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%)"}})]}),d.jsx("div",{className:"flex justify-center",children:d.jsx("span",{className:"text-[12px] leading-[16px] font-semibold text-koah-primary bg-koah-surface-muted px-[14px] py-[6px] rounded-full",children:"Read more"})})]})}const Ot=Object.assign(m4,{Header:g4,Body:y4,Item:K1});function v4({children:e,interactive:t=!0}){const i=[],r=[];return oa.Children.forEach(e,o=>{oa.isValidElement(o)&&o.type===Q1?r.push(o.props):i.push(o)}),d.jsxs(xi,{interactive:t,children:[i,r.length>0&&d.jsx(w4,{products:r})]})}function b4({name:e,avatar:t}){return d.jsx(rr,{advertiserName:e,avatarUrl:t==null?void 0:t.url,avatarColor:t==null?void 0:t.color,avatarShape:t==null?void 0:t.shape})}function S4({children:e}){return d.jsx("div",{className:"w-full",children:d.jsx("p",{className:"text-[length:var(--koah-font-body)] leading-[var(--koah-lh-body)] text-koah-primary",children:e})})}function Q1(e){return null}function w4({products:e}){return d.jsx("div",{className:"w-full overflow-x-auto -mx-[2px] px-[2px]",children:d.jsx("div",{className:"flex gap-[10px]",style:{width:"max-content"},children:e.map((t,i)=>d.jsxs("div",{className:"flex items-center gap-[10px] bg-koah-surface-muted rounded-koah-product p-[12px] min-w-[220px] max-w-[260px]",children:[d.jsxs("div",{className:"flex flex-col flex-1 min-w-0 gap-[2px]",children:[d.jsx("span",{className:"text-[length:var(--koah-font-product-name)] leading-[var(--koah-lh-product-name)] text-koah-primary truncate",children:t.name}),d.jsx("span",{className:"text-[length:var(--koah-font-product-detail)] leading-[var(--koah-lh-product-detail)] text-koah-secondary",children:t.detail}),t.subDetail&&d.jsx("span",{className:"text-[length:var(--koah-font-caption)] leading-[var(--koah-lh-caption)] text-koah-tertiary",children:t.subDetail})]}),d.jsx("div",{className:"shrink-0 size-[56px] rounded-koah-product-image overflow-clip bg-koah-surface",children:d.jsx(Wh,{src:t.imageUrl,alt:t.name,className:"size-full object-cover"})})]},i))})})}const ut=Object.assign(v4,{Header:b4,Body:S4,Product:Q1});function W1({bodyText:e,ctaType:t="none",ctaLabel:i="Learn more",media:r,interactive:o=!0,advertiserName:u,avatarUrl:c,avatarColor:h,avatarShape:m}){return d.jsxs(he,{interactive:o,children:[d.jsx(he.Header,{name:u,avatar:{url:c,color:h,shape:m}}),e&&d.jsx(he.Body,{children:e}),r&&d.jsx(he.Media,{src:r.url}),t==="button"&&d.jsx(he.CTA,{children:i})]})}function eb({bodyText:e,products:t,interactive:i=!0,advertiserName:r,avatarUrl:o,avatarColor:u,avatarShape:c}){return d.jsxs(ut,{interactive:i,children:[d.jsx(ut.Header,{name:r,avatar:{url:o,color:u,shape:c}}),e&&d.jsx(ut.Body,{children:e}),t.map((h,m)=>
161d.jsx(ut.Product,{name:h.name,detail:h.detail,subDetail:h.subDetail,imageUrl:h.imageUrl},m))]})}function tb({bodyText:e,choices:t,accentColor:i="#0d0d0d",interactive:r=!0,advertiserName:o,avatarUrl:u,avatarColor:c,avatarShape:h}){return d.jsxs(kt,{accentColor:i,interactive:r,children:[d.jsx(kt.Header,{name:o,avatar:{url:u,color:c,shape:h}}),e&&d.jsx(kt.Body,{children:e}),t.map((m,g)=>d.jsx(kt.Choice,{label:m.label,percentage:m.percentage},g))]})}function nb({bodyText:e,items:t,interactive:i=!0,advertiserName:r,avatarUrl:o,avatarColor:u,avatarShape:c}){return d.jsxs(Ot,{interactive:i,children:[d.jsx(Ot.Header,{name:r,avatar:{url:o,color:u,shape:c}}),e&&d.jsx(Ot.Body,{children:e}),t.map((h,m)=>d.jsx(Ot.Item,{title:h.title,detail:h.detail},m))]})}const j4="https://images.unsplash.com/photo-1572503231294-d2e8c1a7310f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxzb3V0aHdlc3QlMjBkZXNlcnQlMjBsYW5kc2NhcGUlMjB0cmF2ZWx8ZW58MXx8fHwxNzcwODEyNjE4fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",T4=[{label:"Scenic routes",percentage:42},{label:"City breaks",percentage:31},{label:"Beach resorts",percentage:27}],N4="https://images.unsplash.com/photo-1757845082207-91cbc4d25f1a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxob3QlMjBzYXVjZSUyMGJvdHRsZSUyMHByb2R1Y3R8ZW58MXx8fHwxNzcwODExODY0fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",E4="https://images.unsplash.com/photo-1554223745-ad862492c213?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxvcmdhbmljJTIwdmVnZXRhYmxlcyUyMG1hcmtldHxlbnwxfHx8fDE3NzA3NDQ1ODN8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",C4=[{name:"Hot Sauce",detail:"In stock - $5.99",subDetail:"25-35 minutes",imageUrl:N4},{name:"Organic Veggies",detail:"In stock - $12.99",subDetail:"25-35 minutes",imageUrl:E4}],A4=[{title:"Amangiri",detail:"Luxury desert retreat in Canyon Point, Utah. Rates from $2,200/night."},{title:"Pueblo Bonito",detail:"All-inclusive beachfront resort in Cabo San Lucas."},{title:"Under Canvas",detail:"Glamping near national parks. Starts at $299/night."},{title:"Autocamp",detail:"Modern Airstream stays in Yosemite and Joshua Tree."}];function _4(){return d.jsxs(Bn,{category:["Formats","Conversational"],title:"Anatomy",subtitle:{label:"View Card format",href:"/card"},description:"Every conversational format shares the same structure â a fixed header and a format-specific content area. Choosing a format means choosing what fills the content area.",children:[d.jsxs("div",{className:"mb-[64px]",children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] block mb-[20px]",children:"Structure"}),d.jsx("div",{className:"bg-[#fafafa] rounded-[14px] p-[40px] border border-[rgba(13,13,13,0.04)] max-w-[480px]",children:d.jsxs("div",{className:"relative max-w-[340px] mx-auto",children:[d.jsxs("div",{className:"relative",children:[d.jsxs("div",{className:"flex gap-[12px] items-center p-[14px] rounded-t-[16px] border border-dashed border-[#0d0d0d]/20 bg-white/60",children:[d.jsx("div",{className:"size-[38px] rounded-full bg-gradient-to-br from-koah-sky-400 to-[#3B9AF5] shrink-0"}),d.jsxs("div",{className:"flex flex-col gap-[1px]",children:[d.jsx("span",{className:"text-[15px] leading-[20px] text-[#0d0d0d] tracking-[-0.01em]",children:"Brand Name"}),d.jsx("span",{className:"text-[13px] leading-[18px] text-koah-neutral-600",children:"Sponsored"})]})]}),d.jsx("div",{className:"absolute -right-[4px] top-[6px] translate-x-full",children:d.jsxs("div",{className:"flex items-center gap-[6px]",children:[d.jsx("div",{className:"w-[24px] h-[1px] bg-[#0d0d0d]/20"}),d.jsxs("div",{className:"flex items-center gap-[4px]",children:[d.jsx("span",{className:"bg-[#0d0d0d] text-white text-[9px] leading-[12px] px-[4px] py-[2px] rounded whitespace-nowrap",children:"FIXED"}),d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-neutral-600 whitespace-nowrap",children:"Header"})]})]})})]}),d.jsxs("div",{className:"relative",children:[d.jsx("div",{className:"px-[14px] py-[32px] rounded-b-[16
161px] border-x border-b border-dashed border-koah-orange-400/30 bg-koah-orange-400/[0.02] flex items-center justify-center",children:d.jsx("span",{className:"text-[14px] text-koah-orange-400/40",children:"Content Area"})}),d.jsx("div",{className:"absolute -right-[4px] top-[16px] translate-x-full",children:d.jsxs("div",{className:"flex items-center gap-[6px]",children:[d.jsx("div",{className:"w-[24px] h-[1px] bg-koah-orange-400/30"}),d.jsxs("div",{className:"flex items-center gap-[4px]",children:[d.jsx("span",{className:"bg-koah-orange-400/10 text-koah-orange-400 text-[9px] leading-[12px] px-[4px] py-[2px] rounded whitespace-nowrap",children:"FORMAT"}),d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-neutral-600 whitespace-nowrap",children:"Varies by type"})]})]})})]})]})})]}),d.jsxs("div",{children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] block mb-[20px]",children:"Examples"}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-[16px]",children:[d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsx(Sn,{to:"/card",className:"text-[12px] leading-[16px] text-[#0d0d0d] hover:underline block",children:"Card"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"Single-destination click-through with optional media and CTA."})]}),children:d.jsxs(he,{interactive:!1,children:[d.jsx(he.Header,{name:"Mesa & Sage",avatar:{color:"#8B4513"}}),d.jsx(he.Body,{children:"Discover desert getaways starting from $89/night"}),d.jsx(he.Media,{src:j4}),d.jsx(he.CTA,{children:"Book now"})]})}),d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"flex items-center gap-[6px]",children:[d.jsx(Sn,{to:"/catalog",className:"text-[12px] leading-[16px] text-[#0d0d0d] hover:underline",children:"Catalog"}),d.jsx("span",{className:"text-[9px] leading-[12px] text-koah-orange-400 bg-koah-orange-400/10 px-[4px] py-[1px] rounded",children:"Experiment"})]}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"Multi-destination product browser. Each product links to its own URL."})]}),children:d.jsxs(ut,{interactive:!1,children:[d.jsx(ut.Header,{name:"Greenleaf Market",avatar:{color:"#16a34a"}}),d.jsx(ut.Body,{children:"Fresh ingredients delivered to your door"}),C4.map((e,t)=>d.jsx(ut.Product,{name:e.name,detail:e.detail,subDetail:e.subDetail,imageUrl:e.imageUrl},t))]})}),d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"flex items-center gap-[6px]",children:[d.jsx(Sn,{to:"/poll",className:"text-[12px] leading-[16px] text-[#0d0d0d] hover:underline",children:"Poll"}),d.jsx("span",{className:"text-[9px] leading-[12px] text-koah-orange-400 bg-koah-orange-400/10 px-[4px] py-[1px] rounded",children:"Experiment"})]}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"2â4 selectable choices. Selecting a choice reveals results in place."})]}),children:d.jsxs(kt,{interactive:!1,children:[d.jsx(kt.Header,{name:"Mesa & Sage",avatar:{color:"#8B4513"}}),d.jsx(kt.Body,{children:"What type of getaway are you looking for?"}),T4.map((e,t)=>d.jsx(kt.Choice,{label:e.label,percentage:e.percentage},t))]})}),d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"flex items-center gap-[6px]",children:[d.jsx(Sn,{to:"/concierge",className:"text-[12px] leading-[16px] text-[#0d0d0d] hover:underline",children:"Concierge"}),d.jsx("span",{className:"text-[9px] leading-[12px] text-koah-orange-400 bg-koah-orange-400/10 px-[4px] py-[1px] rounded",children:"Experiment"})]}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"Ranked recommendations that expand to reveal more detail."})]}),children:d.jsxs(Ot,{interactive:!1,children:[d.jsx(Ot.Header,{name:"Mesa & Sage",avatar:{color:"#8B4513"}}),d.jsx(Ot.Body,{children:"Top-rated resorts for your trip"}),A4.map((e,t)=>d.jsx(Ot.Item,{title:e.title,detail:e.detail},t))]})})]})]})]})}function z4(){return d.jsxs(Bn,{category:"Components",title:"Header",subtitle:{label:"Anatomy",href:"/anatomy"},description:"Shared identity row present on every conversational format. Avatar, advertiser name, 'Sponsored' label, and overflow menu.",children:[d.jsxs("div",{className:"mb-[64px]",children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] block mb-[20px]",children:"Examples"}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-[16px]",children:[d.jsx(Et,{label:d.jsx("span",{className:"text-[12px] leading-[16
161px] text-koah-neutral-400",children:"Circle avatar"}),children:d.jsx(xi,{interactive:!1,children:d.jsx(rr,{advertiserName:"Greenleaf Market",avatarColor:"#16a34a",avatarShape:"circle",showOverflowMenu:!0})})}),d.jsx(Et,{label:d.jsx("span",{className:"text-[12px] leading-[16px] text-koah-neutral-400",children:"Square avatar"}),children:d.jsx(xi,{interactive:!1,children:d.jsx(rr,{advertiserName:"Uber",avatarColor:"#0d0d0d",avatarShape:"square",showOverflowMenu:!0})})}),d.jsx(Et,{label:d.jsx("span",{className:"text-[12px] leading-[16px] text-koah-neutral-400",children:"No overflow menu"}),children:d.jsx(xi,{interactive:!1,children:d.jsx(rr,{advertiserName:"Mesa & Sage",avatarColor:"#8B4513",avatarShape:"circle",showOverflowMenu:!1})})})]})]}),d.jsxs("div",{children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] block mb-[20px]",children:"Specification"}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-[16px]",children:[{prop:"Avatar",value:"38 à 38px",note:"Brand logo. Circle or rounded-square."},{prop:"Advertiser Name",value:"String, approx. 30 characters",note:"Truncated with ellipsis."},{prop:"Sponsored Label",value:'"Sponsored"',note:"Fixed. Required for compliance."},{prop:"Overflow Menu",value:"Optional",note:"Contains hide, report, and info actions."}].map(e=>d.jsxs("div",{className:"bg-[#fafafa] rounded-[10px] border border-[rgba(13,13,13,0.06)] p-[14px]",children:[d.jsx("span",{className:"text-[12px] leading-[16px] text-[#0d0d0d] block mb-[2px]",children:e.prop}),d.jsx("code",{className:"text-[11px] leading-[14px] text-koah-neutral-600 bg-white px-[4px] py-[1px] rounded border border-[rgba(13,13,13,0.06)]",children:e.value}),d.jsx("p",{className:"text-[11px] leading-[15px] text-koah-neutral-400 mt-[6px]",children:e.note})]},e.prop))})]})]})}function Ju({rows:e,rules:t,constants:i,draft:r,subType:o}){return d.jsxs("div",{className:"mt-[64px]",children:[d.jsxs("div",{className:"flex items-center gap-[8px] mb-[20px]",children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d]",children:"Format spec"}),r&&d.jsx("span",{className:"text-[9px] leading-[12px] text-koah-orange-400 bg-koah-orange-400/10 px-[4px] py-[1px] rounded font-medium",children:"Draft â subject to change"})]}),d.jsx("div",{className:"bg-[#fafafa] rounded-[14px] border border-[rgba(13,13,13,0.04)] overflow-hidden",children:d.jsx(h0,{rows:e})}),o&&d.jsxs("div",{className:"mt-[16px]",children:[d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-neutral-600 block mb-[8px]",children:o.label}),d.jsx("div",{className:"bg-[#fafafa] rounded-[14px] border border-[rgba(13,13,13,0.04)] overflow-hidden",children:d.jsx(h0,{rows:o.rows})})]}),d.jsxs("div",{className:"mt-[20px] grid grid-cols-1 lg:grid-cols-2 gap-[24px]",children:[d.jsxs("div",{children:[d.jsx("span",{className:"text-[11px] leading-[14px] text-[#0d0d0d] font-medium block mb-[8px]",children:"Composition rules"}),d.jsx("ul",{className:"flex flex-col gap-[6px]",children:t.map(u=>d.jsxs("li",{className:"text-[11px] leading-[15px] text-koah-neutral-600 flex gap-[6px]",children:[d.jsx("span",{className:"text-koah-neutral-200 shrink-0",children:"â¢"}),d.jsx("span",{children:u})]},u))})]}),i&&i.length>0&&d.jsxs("div",{children:[d.jsx("span",{className:"text-[11px] leading-[14px] text-[#0d0d0d] font-medium block mb-[8px]",children:"Design constants"}),d.jsx("ul",{className:"flex flex-col gap-[6px]",children:i.map(u=>d.jsxs("li",{className:"text-[11px] leading-[15px] text-koah-neutral-400 flex gap-[6px]",children:[d.jsx("span",{className:"text-koah-neutral-200 shrink-0",children:"â¢"}),d.jsx("span",{children:u})]},u))})]})]})]})}function h0({rows:e}){return d.jsxs("table",{className:"w-full text-left",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"border-b border-[rgba(13,13,13,0.06)]",children:[d.jsx("th",{className:"text-[10px] leading-[14px] text-koah-neutral-400 font-medium uppercase tracking-wider px-[14px] py-[8px]",children:"Property"}),d.jsx("th",{className:"text-[10px] leading-[14px] text-koah-neutral-400 font-medium uppercase tracking-wider px-[14px] py-[8px]",children:"Required"}),d.jsx("th",{className:"text-[10px] leading-[14px] text-koah-neutral-400 font-medium uppercase tracking-wider px-[14px] py-[8px]",children:"Type"}),d.jsx("th",{className:"text-[10px] leading-[14px] text-koah-neutral-400 font-medium uppercase tracking-wider px-[14px] py-[8px]",children:"Constraint"})]})}),d.jsx("tbody",{children:e.map(t=>d.jsxs("tr",{className:"border-b border-[rgba(13,13,13,0.04)] last:border-b-0",children:[d.jsx("td",{className:"px-[14px] py-[10px]",children:d.jsx("code",{className:"text-[11px] leading-[14px] text-[#0d0d0d] bg-[rgba(13,13,13,0.04)] px-[4px] py-[1px] rounded",children:t.prop})}),d.jsx("td",{className:"px-[14px] py-[10px]",children:t.required?d.jsx("span",{className:"text-[11px] leading-[14px] text-[#16a34a] font-medium",children:"Yes"}):d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-neutral-200",children:"â"})}),d.jsx("td",{className:"px-[14px] py-[10px]",children:d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-neutral-600",children:t.type})}),d.jsx("td",{className:"px-[14px] py-[10px]",children:d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-neutral-400",children:t.constraint})})]},t.prop))})]})}const M4=[{prop:"bodyText",required:!0,type:"String",constraint:"Min 1 character"},{prop:"ctaType",required:!1,type:'"button" | "none"',constraint:'Default: "none"'},{prop:"ctaLabel",required:!1,type:"String",constraint:'Default: "Learn more"'},{prop:"media",required:!1,type:"{ url: string }",constraint:"â"}],R4=["A Card without bodyText is not a valid ad unit.","Media and CTA are independent â any combination is valid.","The entire card is clickable and links to a single destination.","Opens in a new tab or in-app browser depending on the platform."],k4=["Shell border-radius: 19px · Media border-radius: 10px","Internal spacing: 12px gap, 12px padding","Media height: 160px, images fill the frame","Typography: inherits the host app's font family; sizes are fixed"],O4="https://images.unsplash.com/photo-1572503231294-d2e8c1a7310f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxzb3V0aHdlc3QlMjBkZXNlcnQlMjBsYW5kc2NhcGUlMjB0cmF2ZWx8ZW58MXx8fHwxNzcwODEyNjE4fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",D4="https://images.unsplash.com/photo-1619913387719-a43ee8859d9c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxlbGVjdHJpYyUyMHZlaGljbGUlMjBjaGFyZ2luZyUyMHN0YXRpb258ZW58MXx8fHwxNzcwODcyNjI2fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral";function U4(){return d.jsxs(Bn,{category:["Formats","Conversational"],title:"Card",subtitle:{label:"Anatomy",href:"/anatomy"},description:"A single-destination click-through. Opens a link in a new tab or in-app browser depending on the platform.",children:[d.jsx("div",{className:"grid grid-cols-2 xl:grid-cols-4 gap-[16px]",children:[{name:"Text",desc:"Header + body text.",render:()=>d.jsxs(he,{interactive:!1,children:[d.jsx(he.Header,{name:"Uber",avatar:{color:"#0d0d0d",shape:"square"}}),d.jsx(he.Body,{children:"Save on rides and eats with Uber One"})]})},{name:"Text + Button CTA",desc:"High-intent action.",render:()=>d.jsxs(he,{interactive:!1,children:[d.jsx(he.Header,{name:"Mesa & Sage",avatar:{color:"#8B4513"}}),d.jsx(he.Body,{children:"Discover desert getaways starting from $89/night"}),d.jsx(he.CTA,{children:"Book now"})]})},{name:"Text + Media",desc:"Body text + hero image.",render:()=>d.jsxs(he,{interactive:!1,children:[d.jsx(he.Header,{name:"Rivian",avatar:{color:"#0d0d0d",shape:"square"}}),d.jsx(he.Body,{children:"The new R2 SUV. Starting at $45,000."}),d.jsx(he.Media,{src:D4})]})},{name:"Text + Media + Button",desc:"Full card with hero image and CTA.",render:()=>d.jsxs(he,{interactive:!1,children:[d.jsx(he.Header,{name:"Mesa & Sage",avatar:{color:"#8B4513"}}),d.jsx(he.Body,{children:"Discover desert getaways starting from $89/night"}),d.jsx(he.Media,{src:O4}),d.jsx(he.CTA,{children:"Book now"})]})}].map(e=>d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[12px] leading-[16
161px] text-[#0d0d0d] block",children:e.name}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:e.desc})]}),children:e.render()},e.name))}),d.jsx(Ju,{rows:M4,rules:R4,constants:k4})]})}function Md({children:e,contextMessage:t="These options may help if you're stocking up on ingredients."}){return d.jsxs("div",{className:"relative bg-white rounded-[40px] w-[393px] h-[852px] overflow-clip border border-[rgba(13,13,13,0.12)]",children:[d.jsxs("div",{className:"flex items-center justify-between px-[22px] pt-[21px] h-[54px]",children:[d.jsx("span",{className:"text-[17px] tracking-[-0.01em] text-black",style:{fontWeight:590},children:"9:41"}),d.jsx("div",{className:"w-[124px] h-[37px] flex items-center justify-center",children:d.jsx("div",{className:"bg-black rounded-full w-[120px] h-[37px]"})}),d.jsxs("div",{className:"flex items-center gap-[5px]",children:[d.jsxs("svg",{width:"17",height:"12",viewBox:"0 0 17 12",fill:"none",children:[d.jsx("rect",{x:"0",y:"7",width:"3",height:"5",rx:"0.5",fill:"black"}),d.jsx("rect",{x:"4.5",y:"4.5",width:"3",height:"7.5",rx:"0.5",fill:"black"}),d.jsx("rect",{x:"9",y:"2",width:"3",height:"10",rx:"0.5",fill:"black"}),d.jsx("rect",{x:"13.5",y:"0",width:"3",height:"12",rx:"0.5",fill:"black"})]}),d.jsxs("svg",{width:"27",height:"13",viewBox:"0 0 27 13",fill:"none",children:[d.jsx("rect",{x:"0.5",y:"0.5",width:"22",height:"12",rx:"3.5",stroke:"black",strokeOpacity:"0.35"}),d.jsx("rect",{x:"2",y:"2",width:"19",height:"9",rx:"2",fill:"black"}),d.jsx("path",{d:"M24 4.5V8.5C24.8 8.2 25.3 7.4 25.3 6.5C25.3 5.6 24.8 4.8 24 4.5",fill:"black",fillOpacity:"0.4"})]})]})]}),d.jsxs("div",{className:"px-[20px] pt-[40px] pb-[120px] overflow-y-auto h-[calc(100%-54px-100px)]",children:[d.jsx("div",{className:"flex justify-end mb-[24px]",children:d.jsx("div",{className:"bg-[#f3f3f3] rounded-[24px] px-[20px] py-[10px] max-w-[280px]",children:d.jsx("p",{className:"text-[16px] leading-[24px] text-[#0d0d0d] tracking-[-0.32px]",children:"Yes, that would be helpful. Can you show me the differences?"})})}),d.jsxs("div",{className:"flex flex-col gap-[19px] items-start",children:[d.jsx("p",{className:"text-[16px] leading-[26px] text-[#0d0d0d] tracking-[-0.4px]",children:"Here are some popular membership programs worth considering. Each offers different perks depending on your usage patterns."}),d.jsxs("div",{className:"flex gap-[12px] items-center",children:[d.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#5d5d5d",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),d.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]}),d.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#5d5d5d",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("path",{d:"M14 9V5a3 3 0 00-3-3l-4 9v11h11.28a2 2 0 002-1.7l1.38-9a2 2 0 00-2-2.3H14z"}),d.jsx("path",{d:"M7 22H4a2 2 0 01-2-2v-7a2 2 0 012-2h3"})]}),d.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#5d5d5d",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("path",{d:"M10 15v4a3 3 0 003 3l4-9V2H5.72a2 2 0 00-2 1.7l-1.38 9a2 2 0 002 2.3H10z"}),d.jsx("path",{d:"M17 2h2.67A2.31 2.31 0 0122 4v7a2.31 2.31 0 01-2.33 2H17"})]}),d.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#5d5d5d",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("path",{d:"M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8"}),d.jsx("polyline",{points:"16 6 12 2 8 6"}),d.jsx("line",{x1:"12",y1:"2",x2:"12",y2:"15"})]}),d.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#5d5d5d",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("polyline",{points:"1 4 1 10 7 10"}),d.jsx("path",{d:"M3.51 15a9 9 0 102.13-9.36L1 10"})]})]}),d.jsx("div",{className:"w-full",children:e})]})]}),d.jsxs("div",{className:"absolute bottom-0 left-0 right-0 bg-white rounded-t-[24px]",children:[d.jsxs("div",{className:"flex items-end gap-[8px] px-[12px] pt-[12px] pb-[6px]",children:[d.jsx("div",{className:"bg-[#f3f3f3] rounded-full size-[44px] flex items-center justify-center shrink-0",children:d.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"#8f8f8f",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),d.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}),d.jsxs("div",{className:"flex-1 bg-[#f3f3f3] rounded-[22px] px-[16px] py-[10px] flex items-center justify-between",children:[d.jsx("span",{className:"text-[17px] text-[#8f8f8f] tracking-[-0.32px]",children:"Ask anything"}),d.jsx("div",{className:"bg-[#0d0d0d] rounded-full size-[32px] flex items-center justify-center",children:d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"5"}),d.jsx("polyline",{points:"5 12 12 5 19 12"})]})})]})]}),d.jsx("div",{className:"flex items-center justify-center pb-[8px] pt-[12px]",children:d.jsx("div",{className:"bg-black h-[5px] rounded-full w-[134px]"})})]})]})}const L4="https://images.unsplash.com/photo-1572503231294-d2e8c1a7310f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxzb3V0aHdlc3QlMjBkZXNlcnQlMjBsYW5kc2NhcGUlMjB0cmF2ZWx8ZW58MXx8fHwxNzcwODEyNjE4fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",B4="https://images.unsplash.com/photo-1619913387719-a43ee8859d9c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxlbGVjdHJpYyUyMHZlaGljbGUlMjBjaGFyZ2luZyUyMHN0YXRpb258ZW58MXx8fHwxNzcwODcyNjI2fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",V4="https://images.unsplash.com/photo-1691849233457-837d8e2f9da3?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHx0cm9waWNhbCUyMGJlYWNoJTIwcmVzb3J0JTIwYWVyaWFsfGVufDF8fHx8MTc3MDc4OTcxMnww&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral";function H4(){return d.jsx(Bn,{category:["Formats","Conversational"],title:"Card / Mobile Web",subtitle:{label:"Card format",href:"/card"},description:"Card format shown in a mobile chat context.",children:d.jsxs("div",{className:"flex justify-between gap-[16px]",children:[d.jsx(Md,{contextMessage:"I found some great desert getaway options for your dates.",children:d.jsxs(he,{interactive:!1,children:[d.jsx(he.Header,{name:"Mesa & Sage",avatar:{color:"#8B4513"}}),d.jsx(he.Body,{children:"Discover desert getaways starting from $89/night"}),d.jsx(he.Media,{src:L4}),d.jsx(he.CTA,{children:"Book now"})]})}),d.jsx(Md,{contextMessage:"Based on your interest in EVs, this might be worth a look.",children:d.jsxs(he,{interactive:!1,children:[d.jsx(he.Header,{name:"Rivian",avatar:{color:"#0d0d0d",shape:"square"}}),d.jsx(he.Body,{children:"The new R2 SUV. Starting at $45,000."}),d.jsx(he.Media,{src:B4})]})}),d.jsx(Md,{contextMessage:"This resort was highly rated for the experience you described.",children:d.jsxs(he,{interactive:!1,children:[d.jsx(he.Header,{name:"Amangiri",avatar:{color:"#a16207"}}),d.jsx(he.Body,{children:"Award-winning resorts handpicked for you"}),d.jsx(he.Media,{src:V4})]})})]})})}function Rd({children:e,contextMessage:t="Here are some popular membership programs worth considering."}){return d.jsxs("div",{className:"bg-white rounded-[12px] border border-[rgba(13,13,13,0.12)] overflow-clip w-[640px] h-[460px] flex flex-col",children:[d.jsxs("div",{className:"flex items-center gap-[8px] px-[12px] h-[36px] bg-[#f5f5f5] border-b border-[rgba(13,13,13,0.08)] shrink-0",children:[d.jsxs("div",{className:"flex gap-[6px]",children:[d.jsx("div",{className:"size-[10px] rounded-full bg-[#ff5f57]"}),d.jsx("div",{className:"size-[10px] rounded-full bg-[#febc2e]"}),d.jsx("div",{className:"size-[10px] rounded-full bg-[#28c840]"})]}),d.jsx("div",{className:"flex-1 flex items-center justify-center",children:d.jsx("div",{className:"bg-white rounded-[6px] border border-[rgba(13,13,13,0.08)] px-[12px] py-[3px] text-[11px] text-koah-neutral-400 w-[240px] text-center",children:"yourgenaiapp.com"})}),d.jsx("div",{className:"w-[54px]"})]}),d.jsxs("div",{className:"flex-1 overflow-y-auto px-[32px] py-[24px]",children:[d.jsx("div",{className:"flex justify-end mb-[20px]",children:d.jsx("div",{className:"bg-[#f3f3f3] rounded-[18px] px-[14px] py-[8px] max-w-[360px]",children:d.jsx("p",{className:"text-[13px] leading-[19px] text-[#0d0d0d]",children:"What's good there?"})})}),d.jsxs("div",{className:"flex flex-col gap-[12px] items-start",children:[d.jsx("p",{className:"text-[13px] leading-[20px] text-[#0d0d0d]",children:t}),d.jsx("div",{className:"w-full max-w-[420px]",children:e})]})]}),d.jsx("div",{className:"border-t border-[rgba(13,13,13,0.06)] px-[16px] py-[8px] shrink-0",children:d.jsx("div",{className:"bg-[#f3f3f3] rounded-[16px] px-[12px] py-[8px]",children:d.jsx("span",{className:"text-[12px] text-koah-neutral-400",children:"Ask anything"})})})]})}const $4="https://images.unsplash.com/photo-1572503231294-d2e8c1a7310f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxzb3V0aHdlc3QlMjBkZXNlcnQlMjBsYW5kc2NhcGUlMjB0cmF2ZWx8ZW58MXx8fHwxNzcwODEyNjE4fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",Z4="https://images.unsplash.com/photo-1760307256225-59037ef0eb83?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxjb2ZmZWUlMjBicmFuZCUyMHBhY2thZ2luZyUyMHByb2R1Y3R8ZW58MXx8fHwxNzcwODk0Nzg2fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",P4="https://images.unsplash.com/photo-1757845082207-91cbc4d25f1a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxob3QlMjBzYXVjZSUyMGJvdHRsZSUyMHByb2R1Y3R8ZW58MXx8fHwxNzcwODExODY0fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",q4=[{name:"Ethiopia Yirgacheffe",detail:"$18.99 / 12oz",subDetail:"Single origin",imageUrl:Z4}
161,{name:"Colombia Huila",detail:"$16.99 / 12oz",subDetail:"Medium roast",imageUrl:P4}];function Y4(){return d.jsx(Bn,{category:["Formats","Conversational"],title:"Card / Desktop Web",subtitle:{label:"Card format",href:"/card"},description:"Card and Catalog formats shown in a desktop chat context.",children:d.jsxs("div",{className:"flex justify-between gap-[16px]",children:[d.jsx(Rd,{contextMessage:"Here are some popular membership programs worth considering. Each offers different perks depending on your usage patterns.",children:d.jsxs(he,{interactive:!1,children:[d.jsx(he.Header,{name:"Uber",avatar:{color:"#0d0d0d",shape:"square"}}),d.jsx(he.Body,{children:"Save with Uber One"}),d.jsx(he.CTA,{children:"Try free"})]})}),d.jsx(Rd,{contextMessage:"I found some great options for a weekend trip. This one stood out for your budget.",children:d.jsxs(he,{interactive:!1,children:[d.jsx(he.Header,{name:"Mesa & Sage",avatar:{color:"#8B4513"}}),d.jsx(he.Body,{children:"Discover desert getaways starting from $89/night"}),d.jsx(he.Media,{src:$4}),d.jsx(he.CTA,{children:"Book now"})]})}),d.jsx(Rd,{contextMessage:"If you're looking for single-origin beans, these are highly recommended.",children:d.jsxs(ut,{interactive:!1,children:[d.jsx(ut.Header,{name:"Roast & Co",avatar:{color:"#78350f"}}),d.jsx(ut.Body,{children:"Your morning ritual, upgraded"}),q4.map((e,t)=>d.jsx(ut.Product,{name:e.name,detail:e.detail,subDetail:e.subDetail,imageUrl:e.imageUrl},t))]})})]})})}const F4="https://images.unsplash.com/photo-1572503231294-d2e8c1a7310f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxzb3V0aHdlc3QlMjBkZXNlcnQlMjBsYW5kc2NhcGUlMjB0cmF2ZWx8ZW58MXx8fHwxNzcwODEyNjE4fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",G4=[{token:"colorScheme",value:'"light" | "dark"',default:'"light"',note:"Adapts surface and text colors. Dark mode support is planned."},{token:"maxWidth",value:"px",default:"100%",note:"Constrains format width to fit the host layout."},{token:"fontFamily",value:"CSS font stack",default:"inherit",note:"Inherits from host app. All conversational formats use the same family."},{token:"presentationMode",value:'"card" | "borderless"',default:'"card"',note:"Card displays with border, shadow, and radius. Borderless sits flush with the surrounding content."}],X4=[{token:"accentColor",value:"Hex color",default:'"#0d0d0d"',note:"Applied to CTA buttons and poll result bars."},{token:"avatarShape",value:'"circle" | "square"',default:'"circle"',note:"Circle for social brands, square for app icons."},{token:"avatarColor",value:"Hex color",default:"â",note:"Solid background when no avatar image is provided."},{token:"avatarUrl",value:"URL",default:"â",note:"Brand logo. Takes priority over avatarColor."}],I4=[{token:"shell.radius",value:"px",default:"19",note:"Outer container corner radius."},{token:"media.radius",value:"px",default:"10",note:"Image and video corner radius."},{token:"shell.padding",value:"px",default:"14",note:"Inner padding on all sides."},{token:"shell.gap",value:"px",default:"14",note:"Vertical gap between content blocks."},{token:"font.body",value:"px / line-height",default:"15 / 22",note:"Body text and advertiser name."},{token:"font.label",value:"px / line-height",default:"13 / 18",note:"CTA labels, sponsored tag, poll choices."},{token:"font.caption",value:"px / line-height",default:"11 / 15",note:"Secondary text, product details."},{token:"color.text.primary",value:"Hex",default:"#0d0d0d",note:"Headings, body, interactive elements."},{token:"color.text.secondary",value:"Hex",default:"#6b7280",note:"Sponsored label, source URLs."},{token:"color.text.tertiary",value:"Hex",default:"#9ca3af",note:"Timestamps, sub-details."},{token:"color.border",value:"rgba",default:"rgba(13,13,13,0.15)",note:"Card outline. Consistent across themes."},{token:"color.surface",value:"Hex",default:"#ffffff",note:"Card background. Inverts in dark mode."}],J4=[{property:"advertiserName",value:"String",note:"Brand name displayed in the header."},{property:"avatarUrl",value:"URL",note:"Brand logo image. Falls back to solid color."},{property:"avatarColor",value:"Hex color",note:"Avatar background when no image is set."},{property:"avatarShape",value:'"circle" | "square"',note:"Circle for most brands, square for app icons."},{property:"bodyText",value:"String",note:"Ad copy. Required for all c
161onversational formats."},{property:"ctaLabel",value:"String",note:"Button text (e.g. 'Book now', 'Learn more')."},{property:"media.url",value:"URL",note:"Hero image for the card."}],K4=[{property:"Presentation mode",value:"Card | Borderless",note:"Card has border and shadow. Borderless sits flush with the surrounding content."},{property:"Max width",value:"px",note:"Constrains the format width to match the host layout."},{property:"CSS overrides",value:"koah-ad-* classes",note:"Apply custom styles to specific format elements."}],Q4=[{property:'"Sponsored" label',value:"Fixed",note:"Always present. Required for compliance."},{property:"Border radius",value:"19px (shell), 10px (media)",note:"Consistent across all conversational formats."},{property:"Typography",value:"System font stack",note:"Inherits from host app. Size and weight are fixed."},{property:"Spacing",value:"12px gap, 12px padding",note:"Internal layout is not configurable."},{property:"Overflow menu",value:"System-owned",note:"Contains hide, report, and info actions. Not customizable by the advertiser."}];function kd({rows:e,accent:t}){return d.jsx("div",{className:"bg-[#fafafa] rounded-[14px] border border-[rgba(13,13,13,0.04)] overflow-hidden",children:d.jsxs("table",{className:"w-full text-left",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"border-b border-[rgba(13,13,13,0.06)]",children:[d.jsx("th",{className:"text-[10px] leading-[14px] text-koah-neutral-400 font-medium uppercase tracking-wider px-[14px] py-[8px]",children:"Token"}),d.jsx("th",{className:"text-[10px] leading-[14px] text-koah-neutral-400 font-medium uppercase tracking-wider px-[14px] py-[8px]",children:"Type"}),d.jsx("th",{className:"text-[10px] leading-[14px] text-koah-neutral-400 font-medium uppercase tracking-wider px-[14px] py-[8px]",children:"Default"}),d.jsx("th",{className:"text-[10px] leading-[14px] text-koah-neutral-400 font-medium uppercase tracking-wider px-[14px] py-[8px]",children:"Note"})]})}),d.jsx("tbody",{children:e.map(i=>d.jsxs("tr",{className:"border-b border-[rgba(13,13,13,0.04)] last:border-b-0",children:[d.jsx("td",{className:"px-[14px] py-[10px]",children:d.jsx("code",{className:"text-[11px] leading-[14px] px-[4px] py-[1px] rounded",style:{color:t,backgroundColor:`${t}0a`},children:i.token})}),d.jsx("td",{className:"px-[14px] py-[10px]",children:d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-neutral-600",children:i.value})}),d.jsx("td",{className:"px-[14px] py-[10px]",children:d.jsx("code",{className:"text-[11px] leading-[14px] text-[#0d0d0d] bg-[rgba(13,13,13,0.04)] px-[4px] py-[1px] rounded",children:i.default})}),d.jsx("td",{className:"px-[14px] py-[10px]",children:d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-neutral-400",children:i.note})})]},i.token))})]})})}function Od({rows:e,accent:t}){return d.jsx("div",{className:"flex flex-col gap-[6px]",children:e.map(i=>d.jsxs("div",{className:"bg-[#fafafa] rounded-[10px] border border-[rgba(13,13,13,0.06)] p-[14px]",children:[d.jsxs("div",{className:"flex items-baseline gap-[8px] mb-[2px]",children:[d.jsx("code",{className:"text-[12px] leading-[16px] px-[4px] py-[1px] rounded border border-[rgba(13,13,13,0.06)]",style:{color:t,backgroundColor:`${t}08`},children:i.property}),d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-neutral-400",children:i.value})]}),d.jsx("p",{className:"text-[11px] leading-[15px] text-koah-neutral-600",children:i.note})]},i.property))})}function W4(){return d.jsxs(Bn,{category:"Foundations",title:"Customization",subtitle:{label:"Anatomy",href:"/anatomy"},description:"Defines what can be customized and by whom. Advertisers control content, publishers control presentation, and the system enforces fixed elements.",children:[d.jsxs("div",{className:"mb-[64px]",children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] block mb-[20px]",children:"Anatomy"}),d.jsxs("div",{className:"bg-[#fafafa] rounded-[14px] p-[40px] border border-[rgba(13,13,13,0.04)] max-w-[560px]",children:[d.jsxs("div",{className:"relative max-w-[360px] mx-auto",children:[d.jsxs(he,{interactive:!1,children:[d.jsx(he.Header,{name:"Mesa & Sage",avatar:{color:"#8B4513"}}),d.jsx(he.Body,{children:"Discover desert getaways starting from $89/night"}),d.jsx(he.Media,{src:F4}),d.jsx(he.CTA,{children:"Book now"})]}),d.jsx("div",{className:"absolute top-[8px] left-[8px]",children:d.jsx("span",{className:"bg-koah-sky-400 text-white text-[9px] leading-[12px] px-[4px] py-[2px] rounded",children:"avatarColor"})}),d.jsx("div",{className:"absolute top-[8px] right-[8px]",children:d.jsx("span",{className:"bg-koah-neutral-400 text-white text-[9px] leading-[12px] px-[4px] py-[2px] rounded",children:"Overflow menu"})}),d.jsx("div",{className:"absolute top-[52px] left-[62px]",children:d.jsx("span",{className:"bg-koah-sky-400 text-white text-[9px] leading-[12px] px-[4px] py-[2px] rounded",children:"advertiserName"})}),d.jsx("div",{className:"absolute top-[72px] left-[62px]",children:d.jsx("span",{className:"bg-koah-neutral-400 text-white text-[9px] leading-[12px] px-[4px] py-[2px] rounded",children:'"Sponsored"'})})]}),d.jsxs("div",{className:"flex gap-[16px] mt-[20px] pt-[16px] border-t border-[rgba(13,13,13,0.06)]",children:[d.jsxs("div",{className:"flex items-center gap-[6px]",children:[d.jsx("div",{className:"size-[8px] rounded-full bg-koah-sky-400"}),d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-neutral-600",children:"Advertiser-controlled"})]}),d.jsxs("div",{className:"flex items-center gap-[6px]",children:[d.jsx("div",{className:"size-[8px] rounded-full bg-koah-neutral-400"}),d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-neutral-600",children:"System-locked"})]})]})]})]}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-[32px]",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"mb-[16px]",children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] block",children:"Advertiser controls"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400 mt-[2px] block",children:"Set per campaign. Brand identity and ad copy."})]}),d.jsx(Od,{rows:J4,accent:"#0679EC"})]}),d.jsxs("div",{children:[d.jsxs("div",{className:"mb-[16px]",children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] block",children:"Publisher controls"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400 mt-[2px] block",children:"Platform-level settings. How the format fits the host app."})]}),d.jsx(Od,{rows:K4,accent:"#F2701F"})]}),d.jsxs("div",{children:[d.jsxs("div",{className:"mb-[16px]",children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] block",children:"System constants"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400 mt-[2px] block",children:"Locked by the design system. Ensures consistency across all ads."})]}),d.jsx(Od,{rows:Q4,accent:"#9ca3af"})]})]}),d.jsxs("div",{className:"mt-[64px]",children:[d.jsxs("div",{className:"mb-[20px]",children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] block",children:"Theme tokens"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400 mt-[2px] block",children:"The concrete values behind each control. Publishers set tokens at integration time, advertisers set tokens per
161campaign, system tokens are locked."})]}),d.jsxs("div",{className:"flex flex-col gap-[24px]",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-[8px] mb-[10px]",children:[d.jsx("div",{className:"size-[8px] rounded-full bg-koah-orange-400"}),d.jsx("span",{className:"text-[11px] leading-[14px] text-[#0d0d0d] font-medium",children:"Publisher tokens"}),d.jsx("span",{className:"text-[10px] leading-[14px] text-koah-neutral-400",children:"Set at integration time"})]}),d.jsx(kd,{rows:G4,accent:"#F2701F"})]}),d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-[8px] mb-[10px]",children:[d.jsx("div",{className:"size-[8px] rounded-full bg-koah-sky-400"}),d.jsx("span",{className:"text-[11px] leading-[14px] text-[#0d0d0d] font-medium",children:"Advertiser tokens"}),d.jsx("span",{className:"text-[10px] leading-[14px] text-koah-neutral-400",children:"Set per campaign"})]}),d.jsx(kd,{rows:X4,accent:"#0679EC"})]}),d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-[8px] mb-[10px]",children:[d.jsx("div",{className:"size-[8px] rounded-full bg-koah-neutral-400"}),d.jsx("span",{className:"text-[11px] leading-[14px] text-[#0d0d0d] font-medium",children:"System tokens"}),d.jsx("span",{className:"text-[10px] leading-[14px] text-koah-neutral-400",children:"Locked by the design system"})]}),d.jsx(kd,{rows:I4,accent:"#9ca3af"})]})]})]})]})}const p0="https://images.unsplash.com/photo-1572503231294-d2e8c1a7310f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxzb3V0aHdlc3QlMjBkZXNlcnQlMjBsYW5kc2NhcGUlMjB0cmF2ZWx8ZW58MXx8fHwxNzcwODEyNjE4fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral";function Qi({className:e}){return d.jsx("div",{className:`bg-[#e8e8e8] rounded-[6px] animate-pulse ${e??""}`})}function eC(){return d.jsxs(xi,{interactive:!1,children:[d.jsxs("div",{className:"flex gap-[12px] items-center w-full",children:[d.jsx(Qi,{className:"size-[38px] rounded-full shrink-0"}),d.jsxs("div",{className:"flex flex-col gap-[4px] flex-1",children:[d.jsx(Qi,{className:"h-[14px] w-[120px]"}),d.jsx(Qi,{className:"h-[12px] w-[70px]"})]})]}),d.jsxs("div",{className:"w-full flex flex-col gap-[4px]",children:[d.jsx(Qi,{className:"h-[14px] w-full"}),d.jsx(Qi,{className:"h-[14px] w-[80%]"})]}),d.jsx(Qi,{className:"w-full h-[160px] rounded-[10px]"}),d.jsx(Qi,{className:"h-[30px] w-[100px] rounded-full"})]})}function tC(){return d.jsxs("div",{className:"bg-white/0 max-w-[700px] relative rounded-[19px] w-full",children:[d.jsx("div",{"aria-hidden":"true",className:"absolute border border-dashed border-[rgba(13,13,13,0.1)] inset-0 pointer-events-none rounded-[19px]"}),d.jsxs("div",{className:"flex flex-col items-center justify-center py-[48px] px-[24px]",children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-koah-neutral-400",children:"No fill"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-200 mt-[2px]",children:"Format removed from view"})]})]})}function nC(){return d.jsx(Bn,{category:"Foundations",title:"States",subtitle:{label:"Anatomy",href:"/anatomy"},description:"Every conversational format can appear in one of four states. All states should be accounted for in each integration.",children:d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-[16px]",children:[d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[12px] leading-[16px] text-[#0d0d0d] block",children:"Default"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"Resting state. All content visible and ready for interaction."})]}),children:d.jsxs(he,{interactive:!1,children:[d.jsx(he.Header,{name:"Mesa & Sage",avatar:{color:"#8B4513"}}),d.jsx(he.Body,{children:"Discover desert getaways starting from $89/night"}),d.jsx(he.Media,{src:p0}),d.jsx(he.CTA,{children:"Book now"})]})}),d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[12px] leading-[16px] text-[#0d0d0d] block",children:"Hover"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"Elevated shadow on hover. Indicates the card is interactive."})]}),children:d.jsx("div",{className:"shadow-md rounded-[19px]",children:d.jsxs(he,{interactive:!1,children:[d.jsx(he.Header,{name:"Mesa & Sage",avatar:{color:"#8B4513"}}),d.jsx(he.Body,{children:"Discover desert getaways starting from $89/night"}),d.jsx(he.Media,{src:p0}),d.jsx(he.CTA,{children:"Book now"})]})})}),d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[12px] leading-[16
161px] text-[#0d0d0d] block",children:"Loading"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"Skeleton placeholder while the ad is loading."})]}),children:d.jsx(eC,{})}),d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[12px] leading-[16px] text-[#0d0d0d] block",children:"No fill"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"No ad available. The format is removed from the page."})]}),children:d.jsx(tC,{})})]})})}const aC=[{prop:"bodyText",required:!0,type:"String",constraint:"Min 1 character"},{prop:"products",required:!0,type:"ProductItem[]",constraint:"Min 1 item"}],iC=[{prop:"name",required:!0,type:"String",constraint:"â"},{prop:"detail",required:!0,type:"String",constraint:"Price or availability"},{prop:"subDetail",required:!1,type:"String",constraint:"Delivery time, shipping, etc."},{prop:"imageUrl",required:!0,type:"URL",constraint:"Product image"}],rC=["Each product is independently clickable and links to its own destination.","Products scroll horizontally when there are more than fit on screen.","What distinguishes Catalog from Card is the interaction â multiple destinations vs. one."],ab="https://images.unsplash.com/photo-1757845082207-91cbc4d25f1a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxob3QlMjBzYXVjZSUyMGJvdHRsZSUyMHByb2R1Y3R8ZW58MXx8fHwxNzcwODExODY0fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",sC="https://images.unsplash.com/photo-1554223745-ad862492c213?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxvcmdhbmljJTIwdmVnZXRhYmxlcyUyMG1hcmtldHxlbnwxfHx8fDE3NzA3NDQ1ODN8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",oC="https://images.unsplash.com/photo-1768647417374-5a31c61dc5d0?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxmaXRuZXNzJTIwcnVubmluZyUyMHNuZWFrZXJzJTIwcHJvZHVjdHxlbnwxfHx8fDE3NzA4OTQ3ODZ8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",lC="https://images.unsplash.com/photo-1760614034530-a0d34463e03d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxsdXh1cnklMjBza2luY2FyZSUyMGJvdHRsZXMlMjBwcm9kdWN0fGVufDF8fHx8MTc3MDg5NDc4N3ww&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",uC="https://images.unsplash.com/photo-1760307256225-59037ef0eb83?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxjb2ZmZWUlMjBicmFuZCUyMHBhY2thZ2luZyUyMHByb2R1Y3R8ZW58MXx8fHwxNzcwODk0Nzg2fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",cC=[{name:"Hot Sauce",detail:"In stock - $5.99",subDetail:"25-35 minutes",imageUrl:ab},{name:"Organic Veggies",detail:"In stock - $12.99",subDetail:"25-35 minutes",imageUrl:sC}],fC=[{name:"Air Zoom Tempo",detail:"$189.99",subDetail:"Free shipping",imageUrl:oC},{name:"Recovery Cream",detail:"$24.99",subDetail:"Subscribe & save",imageUrl:lC}],dC=[{name:"Ethiopia Yirgacheffe",detail:"$18.99 / 12oz",subDetail:"Single origin",imageUrl:uC},{name:"Colombia Huila",detail:"$16.99 / 12oz",subDetail:"Medium roast",imageUrl:ab}];function hC(){return d.jsx("div",{className:"mb-[40px]",children:d.jsxs("div",{className:"inline-flex items-center gap-[6px] bg-koah-orange-400/10 rounded-[8px] px-[10px] py-[6px]",children:[d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-orange-400",style:{fontWeight:600},children:"Experiment"}),d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-orange-400/70",children:"This format is in early exploration and not yet available in the SDK."})]})})}function pC(){return d.jsxs(Bn,{category:"Experiments",title:"Catalog",subtitle:{label:"Anatomy",href:"/anatomy"},description:"A multi-destination product browser. Each product links to its own URL, unlike Card which links to a single destination.",children:[d.jsx(hC,{}),d.jsxs("div",{children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] block mb-[20px]",children:"Examples"}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-[16px]",children:[d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[12px] leading-[16
161px] text-[#0d0d0d] block",children:"Grocery"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"Products with price and delivery time."})]}),children:d.jsxs(ut,{interactive:!1,children:[d.jsx(ut.Header,{name:"Greenleaf Market",avatar:{color:"#16a34a"}}),d.jsx(ut.Body,{children:"Fresh ingredients delivered to your door"}),cC.map((e,t)=>d.jsx(ut.Product,{name:e.name,detail:e.detail,subDetail:e.subDetail,imageUrl:e.imageUrl},t))]})}),d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[12px] leading-[16px] text-[#0d0d0d] block",children:"Fitness"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"Products with price and shipping info."})]}),children:d.jsxs(ut,{interactive:!1,children:[d.jsx(ut.Header,{name:"Nike",avatar:{color:"#0d0d0d",shape:"square"}}),d.jsx(ut.Body,{children:"New arrivals for your training"}),fC.map((e,t)=>d.jsx(ut.Product,{name:e.name,detail:e.detail,subDetail:e.subDetail,imageUrl:e.imageUrl},t))]})}),d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[12px] leading-[16px] text-[#0d0d0d] block",children:"Coffee"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"Specialty products with origin details."})]}),children:d.jsxs(ut,{interactive:!1,children:[d.jsx(ut.Header,{name:"Roast & Co",avatar:{color:"#78350f"}}),d.jsx(ut.Body,{children:"Your morning ritual, upgraded"}),dC.map((e,t)=>d.jsx(ut.Product,{name:e.name,detail:e.detail,subDetail:e.subDetail,imageUrl:e.imageUrl},t))]})})]})]}),d.jsx(Ju,{rows:aC,rules:rC,draft:!0,subType:{label:"ProductItem",rows:iC}})]})}const mC=[{prop:"bodyText",required:!1,type:"String",constraint:"â"},{prop:"choices",required:!0,type:"PollChoice[]",constraint:"2â4 items"},{prop:"accentColor",required:!1,type:"Hex color",constraint:'Default: "#0d0d0d"'}],gC=[{prop:"label",required:!0,type:"String",constraint:"â"},{prop:"percentage",required:!1,type:"Number (0â100)",constraint:"Server-provided results"}],yC=["Selecting a choice reveals percentage results in place.","Voting is final â users cannot change their selection.","Result percentages are calculated server-side."],xC=[{label:"Scenic routes",percentage:42},{label:"City breaks",percentage:31},{label:"Beach resorts",percentage:27}],vC=[{label:"Quick stir fry",percentage:38},{label:"One-pot meals",percentage:35},{label:"Sheet pan dinners",percentage:18},{label:"Salad bowls",percentage:9}],bC=[{label:"Range",percentage:45},{label:"Price",percentage:33},{label:"Charging speed",percentage:22}];function SC(){return d.jsx("div",{className:"mb-[40px]",children:d.jsxs("div",{className:"inline-flex items-center gap-[6px] bg-koah-orange-400/10 rounded-[8px] px-[10px] py-[6px]",children:[d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-orange-400",style:{fontWeight:600},children:"Experiment"}),d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-orange-400/70",children:"This format is in early exploration and not yet available in the SDK."})]})})}function wC(){return d.jsxs(Bn,{category:"Experiments",title:"Poll",subtitle:{label:"Anatomy",href:"/anatomy"},description:"An interactive voting format. 2â4 selectable choices; selecting a choice reveals results in place.",children:[d.jsx(SC,{}),d.jsxs("div",{children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] block mb-[20px]",children:"Examples"}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-[16px]",children:[d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[12px] leading-[16px] text-[#0d0d0d] block",children:"3 choices"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"Travel preferences with body text."})]}),children:d.jsxs(kt,{interactive:!0,children:[d.jsx(kt.Header,{name:"Mesa & Sage",avatar:{color:"#8B4513"}}),d.jsx(kt.Body,{children:"What type of getaway are you looking for?"}),xC.map((e,t)=>d.jsx(kt.Choice,{label:e.label,percentage:e.percentage},t))]})}),d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[12px] leading-[16
161px] text-[#0d0d0d] block",children:"4 choices"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"Maximum choice count with brand accent."})]}),children:d.jsxs(kt,{interactive:!0,children:[d.jsx(kt.Header,{name:"Greenleaf Market",avatar:{color:"#16a34a"}}),d.jsx(kt.Body,{children:"What's your go-to weeknight meal style?"}),vC.map((e,t)=>d.jsx(kt.Choice,{label:e.label,percentage:e.percentage},t))]})}),d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[12px] leading-[16px] text-[#0d0d0d] block",children:"Square avatar"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"Works with any header configuration."})]}),children:d.jsxs(kt,{interactive:!0,children:[d.jsx(kt.Header,{name:"Rivian",avatar:{color:"#0d0d0d",shape:"square"}}),d.jsx(kt.Body,{children:"What matters most when choosing an EV?"}),bC.map((e,t)=>d.jsx(kt.Choice,{label:e.label,percentage:e.percentage},t))]})})]})]}),d.jsx(Ju,{rows:mC,rules:yC,draft:!0,subType:{label:"PollChoice",rows:gC}})]})}const jC=[{prop:"bodyText",required:!1,type:"String",constraint:"â"},{prop:"items",required:!0,type:"ConciergeItem[]",constraint:"Min 1 item"}],TC=[{prop:"title",required:!0,type:"String",constraint:"â"},{prop:"detail",required:!0,type:"String",constraint:"â"}],NC=["Items are displayed in a truncated list that expands on interaction.","Items are not individually clickable (unlike Catalog)."],EC=[{title:"Amangiri",detail:"Luxury desert retreat in Canyon Point, Utah. Rates from $2,200/night."},{title:"Pueblo Bonito",detail:"All-inclusive beachfront resort in Cabo San Lucas."},{title:"Under Canvas",detail:"Glamping near national parks. Starts at $299/night."},{title:"Autocamp",detail:"Modern Airstream stays in Yosemite and Joshua Tree."}
161],CC=[{title:"Bestia",detail:"Italian. 45 min wait. $$$."},{title:"Guerrilla Tacos",detail:"Mexican street food. No wait. $$."},{title:"Republique",detail:"French-Californian. Reservations recommended. $$$."},{title:"Howlin' Ray's",detail:"Nashville hot chicken. 30 min wait. $$."}],AC=[{title:"Ethiopia Yirgacheffe",detail:"Bright, floral notes. Light roast. $18.99/12oz."},{title:"Colombia Huila",detail:"Caramel and chocolate. Medium roast. $16.99/12oz."},{title:"Guatemala Antigua",detail:"Smoky, full-bodied. Dark roast. $19.99/12oz."},{title:"Kenya AA",detail:"Citrus and berry. Light-medium roast. $22.99/12oz."}];function _C(){return d.jsx("div",{className:"mb-[40px]",children:d.jsxs("div",{className:"inline-flex items-center gap-[6px] bg-koah-orange-400/10 rounded-[8px] px-[10px] py-[6px]",children:[d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-orange-400",style:{fontWeight:600},children:"Experiment"}),d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-orange-400/70",children:"This format is in early exploration and not yet available in the SDK."})]})})}function zC(){return d.jsxs(Bn,{category:"Experiments",title:"Concierge",subtitle:{label:"Anatomy",href:"/anatomy"},description:"Ranked recommendations that expand to reveal more detail. Designed for curated lists like resorts, restaurants, or products.",children:[d.jsx(_C,{}),d.jsxs("div",{children:[d.jsx("span",{className:"text-[13px] leading-[18px] text-[#0d0d0d] block mb-[20px]",children:"Examples"}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-[16px]",children:[d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[12px] leading-[16px] text-[#0d0d0d] block",children:"Travel"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"Resort recommendations with source URL."})]}),children:d.jsxs(Ot,{interactive:!0,children:[d.jsx(Ot.Header,{name:"Mesa & Sage",avatar:{color:"#8B4513"}}),d.jsx(Ot.Body,{children:"Top-rated resorts for your trip"}),EC.map((e,t)=>d.jsx(Ot.Item,{title:e.title,detail:e.detail},t))]})}),d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[12px] leading-[16px] text-[#0d0d0d] block",children:"Restaurants"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"Local recommendations with square avatar."})]}),children:d.jsxs(Ot,{interactive:!0,children:[d.jsx(Ot.Header,{name:"Uber",avatar:{color:"#0d0d0d",shape:"square"}}),d.jsx(Ot.Body,{children:"Highly rated restaurants near you"}),CC.map((e,t)=>d.jsx(Ot.Item,{title:e.title,detail:e.detail},t))]})}),d.jsx(Et,{label:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[12px] leading-[16px] text-[#0d0d0d] block",children:"Products"}),d.jsx("span",{className:"text-[11px] leading-[15px] text-koah-neutral-400",children:"Product curation with detailed descriptions."})]}),children:d.jsxs(Ot,{interactive:!0,children:[d.jsx(Ot.Header,{name:"Roast & Co",avatar:{color:"#78350f"}}),d.jsx(Ot.Body,{children:"Best single-origin beans this month"}),AC.map((e,t)=>d.jsx(Ot.Item,{title:e.title,detail:e.detail},t))]})})]})]}),d.jsx(Ju,{rows:jC,rules:NC,draft:!0,subType:{label:"ConciergeItem",rows:TC}})]})}const ep=T.createContext({});function tp(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}const ib=typeof window<"u",rb=ib?T.useLayoutEffect:T.useEffect,Ku=T.createContext(null);function np(e,t){e.indexOf(t)===-1&&e.push(t)}function Uu(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const ua=(e,t,i)=>i>t?t:i<e?e:i;let ap=()=>{};const Ba={},sb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ob(e){return typeof e=="object"&&e!==null}const lb=e=>/^0[^.\s]+$/u.test(e);function ub(e){let t;return()=>(t===void 0&&(t=e()),t)}const Dn=e=>e,MC=(e,t)=>i=>t(e(i)),Po=(...e)=>e.reduce(MC),Ro=(e,t,i)=>{const r=t-e;return r===0?1:(i-e)/r};class ip{constructor(){this.subscriptions=[]}add(t){return np(this.subscriptions,t),()=>Uu(this.subscriptions,t)}notify(t,i,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,i,r);else for(let u=0;u<o;u++){const c=this.subscriptions[u];c&&c(t,i,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Kn=e=>e*1e3,On=e=>e/1e3;function cb(e,t){return t?e*(1e3/t):0}const fb=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e,RC=1e-7,kC=12;function OC(e,t,i,r,o){let u,c,h=0;do c=t+(i-t)/2,u=fb(c,r,o)-e,u>0?i=c:t=c;while(Math.abs(u)>RC&&++h<kC);return c}function qo(e,t,i,r){if(e===t&&i===r)return Dn;const o=u=>OC(u,0,1,e,i);return u=>u===0||u===1?u:fb(o(u),t,r)}const db=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hb=e=>t=>
vendor: 26,389 bytes, line 161
1611-e(1-t),pb=qo(.33,1.53,.69,.99),rp=hb(pb),mb=db(rp),gb=e=>(e*=2)<1?.5*rp(e):.5*(2-Math.pow(2,-10*(e-1))),sp=e=>1-Math.sin(Math.acos(e)),yb=hb(sp),xb=db(sp),DC=qo(.42,0,1,1),UC=qo(0,0,.58,1),vb=qo(.42,0,.58,1),LC=e=>Array.isArray(e)&&typeof e[0]!="number",bb=e=>Array.isArray(e)&&typeof e[0]=="number",BC={linear:Dn,easeIn:DC,easeInOut:vb,easeOut:UC,circIn:sp,circInOut:xb,circOut:yb,backIn:rp,backInOut:mb,backOut:pb,anticipate:gb},VC=e=>typeof e=="string",m0=e=>{if(bb(e)){ap(e.length===4);const[t,i,r,o]=e;return qo(t,i,r,o)}else if(VC(e))return BC[e];return e},mu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function HC(e,t){let i=new Set,r=new Set,o=!1,u=!1;const c=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(y){c.has(y)&&(g.schedule(y),e()),y(h)}const g={schedule:(y,x=!1,b=!1)=>{const j=b&&o?i:r;return x&&c.add(y),j.has(y)||j.add(y),y},cancel:y=>{r.delete(y),c.delete(y)},process:y=>{if(h=y,o){u=!0;return}o=!0,[i,r]=[r,i],i.forEach(m),i.clear(),o=!1,u&&(u=!1,g.process(y))}};return g}const $C=40;function Sb(e,t){let i=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},u=()=>i=!0,c=mu.reduce((O,I)=>(O[I]=HC(u),O),{}),{setup:h,read:m,resolveKeyframes:g,preUpdate:y,update:x,preRender:b,render:S,postRender:j}=c,N=()=>{const O=Ba.useManualTiming?o.timestamp:performance.now();i=!1,Ba.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(O-o.timestamp,$C),1)),o.timestamp=O,o.isProcessing=!0,h.process(o),m.process(o),g.process(o),y.process(o),x.process(o),b.process(o),S.process(o),j.process(o),o.isProcessing=!1,i&&t&&(r=!1,e(N))},_=()=>{i=!0,r=!0,o.isProcessing||e(N)};return{schedule:mu.reduce((O,I)=>{const L=c[I];return O[I]=(Y,z=!1,G=!1)=>(i||_(),L.schedule(Y,z,G)),O},{}),cancel:O=>{for(let I=0;I<mu.length;I++)c[mu[I]].cancel(O)},state:o,steps:c}}const{schedule:nt,cancel:vi,state:Ft,steps:Dd}=Sb(typeof requestAnimationFrame<"u"?requestAnimationFrame:Dn,!0);let Au;function ZC(){Au=void 0}const en={now:()=>(Au===void 0&&en.set(Ft.isProcessing||Ba.useManualTiming?Ft.timestamp:performance.now()),Au),set:e=>{Au=e,queueMicrotask(ZC)}},wb=e=>t=>typeof t=="string"&&t.startsWith(e),jb=wb("--"),PC=wb("var(--"),op=e=>PC(e)?qC.test(e.split("/*")[0].trim()):!1,qC=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function g0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const ds={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ko={...ds,transform:e=>ua(0,1,e)},gu={...ds,default:1},To=e=>Math.round(e*1e5)/1e5,lp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function YC(e){return e==null}const FC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,up=(e,t)=>i=>!!(typeof i=="string"&&FC.test(i)&&i.startsWith(e)||t&&!YC(i)&&Object.prototype.hasOwnProperty.call(i,t)),Tb=(e,t,i)=>r=>{if(typeof r!="string")return r;const[o,u,c,h]=r.match(lp);return{[e]:parseFloat(o),[t]:parseFloat(u),[i]:parseFloat(c),alpha:h!==void 0?parseFloat(h):1}},GC=e=>ua(0,255,e),Ud={...ds,transform:e=>Math.round(GC(e))},nr={test:up("rgb","red"),parse:Tb("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:r=1})=>"rgba("+Ud.transform(e)+", "+Ud.transform(t)+", "+Ud.transform(i)+", "+To(ko.transform(r))+")"};function XC(e){let t="",i="",r="",o="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,i+=i,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const oh={test:up("#"),parse:XC,transform:nr.transform},Yo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),di=Yo("deg"),sa=Yo("%"),de=Yo("px"),IC=Yo("vh"),JC=Yo("vw"),y0={...sa,parse:e=>sa.parse(e)/100,transform:e=>sa.transform(e*100)},Qr={test:up("hsl","hue"),parse:Tb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:r=1})=>"hsla("+Math.round(e)+", "+sa.transform(To(t))+", "+sa.transform(To(i))+", "+To(ko.transform(r))+")"},Dt={test:e=>nr.test(e)||oh.test(e)||Qr.test(e),parse:e=>nr.test(e)?nr.parse(e):Qr.test(e)?Qr.parse(e):oh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?nr.transform(e):Qr.transform(e),getAnimatableNone:e=>{const t=Dt.parse(e);return t.alpha=0,Dt.transform(t)}},KC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function QC(e){var t,i;return isNaN(e)&&typeof e=="string"&&(((t=e.match(lp))==null?void 0:t.length)||0)+(((i=e.match(KC))==null?void 0:i.length)||0)>0}const Nb="number",Eb="color",WC="var",e3="var(",x0="${}",t3=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Oo(e){const t=e.toString(),i=[],r={color:[],number:[],var:[]},o=[];let u=0;const h=t.replace(t3,m=>(Dt.test(m)?(r.color.push(u),o.push(Eb),i.push(Dt.parse(m))):m.startsWith(e3)?(r.var.push(u),o.push(WC),i.push(m)):(r.number.push(u),o.push(Nb),i.push(parseFloat(m))),++u,x0)).split(x0);return{values:i,split:h,indexes:r,types:o}}function Cb(e){return Oo(e).values}function Ab(e){const{split:t,types:i}=Oo(e),r=t.length;return o=>{let u="";for(let c=0;c<r;c++)if(u+=t[c],o[c]!==void 0){const h=i[c];h===Nb?u+=To(o[c]):h===Eb?u+=Dt.transform(o[c]):u+=o[c]}return u}}const n3=e=>typeof e=="number"?0:Dt.test(e)?Dt.getAnimatableNone(e):e;function a3(e){const t=Cb(e);return Ab(e)(t.map(n3))}const Qn={test:QC,parse:Cb,createTransformer:Ab,getAnimatableNone:a3};function Ld(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function i3({hue:e,saturation:t,lightness:i,alpha:r}){e/=360,t/=100,i/=100;let o=0,u=0,c=0;if(!t)o=u=c=i;else{const h=i<.5?i*(1+t):i+t-i*t,m=2*i-h;o=Ld(m,h,e+1/3),u=Ld(m,h,e),c=Ld(m,h,e-1/3)}return{red:Math.round(o*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:r}}function Lu(e,t){return i=>i>0?t:e}const mt=(e,t,i)=>e+(t-e)*i,Bd=(e,t,i)=>{const r=e*e,o=i*(t*t-r)+r;return o<0?0:Math.sqrt(o)},r3=[oh,nr,Qr],s3=e=>r3.find(t=>t.test(e));function v0(e){const t=s3(e);if(!t)return!1;let i=t.parse(e);return t===Qr&&(i=i3(i)),i}const b0=(e,t)=>{const i=v0(e),r=v0(t);if(!i||!r)return Lu(e,t);const o={...i};return u=>(o.red=Bd(i.red,r.red,u),o.green=Bd(i.green,r.green,u),o.blue=Bd(i.blue,r.blue,u),o.alpha=mt(i.alpha,r.alpha,u),nr.transform(o))},lh=new Set(["none","hidden"]);function o3(e,t){return lh.has(e)?i=>i<=0?e:t:i=>i>=1?t:e}function l3(e,t){return i=>mt(e,t,i)}function cp(e){return typeof e=="number"?l3:typeof e=="string"?op(e)?Lu:Dt.test(e)?b0:f3:Array.isArray(e)?_b:typeof e=="object"?Dt.test(e)?b0:u3:Lu}function _b(e,t){const i=[...e],r=i.length,o=e.map((u,c)=>cp(u)(u,t[c]));return u=>{for(let c=0;c<r;c++)i[c]=o[c](u);return i}}function u3(e,t){const i={...e,...t},r={};for(const o in i)e[o]!==void 0&&t[o]!==void 0&&(r[o]=cp(e[o])(e[o],t[o]));return o=>{for(const u in r)i[u]=r[u](o);return i}}function c3(e,t){const i=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const u=t.types[o],c=e.indexes[u][r[u]],h=e.values[c]??0;i[o]=h,r[u]++}return i}const f3=(e,t)=>{const i=Qn.createTransformer(t),r=Oo(e),o=Oo(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?lh.has(e)&&!o.values.length||lh.has(t)&&!r.values.length?o3(e,t):Po(_b(c3(r,o),o.values),i):Lu(e,t)};function zb(e,t,i){return typeof e=="number"&&typeof t=="number"&&typeof i=="number"?mt(e,t,i):cp(e)(e,t)}const d3=e=>{const t=({timestamp:i})=>e(i);return{start:(i=!0)=>nt.update(t,i),stop:()=>vi(t),now:()=>Ft.isProcessing?Ft.timestamp:en.now()}},Mb=(e,t,i=10)=>{let r="";const o=Math.max(Math.round(t/i),2);for(let u=0;u<o;u++)r+=Math.round(e(u/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Bu=2e4;function fp(e){let t=0;const i=50;let r=e.next(t);for(;!r.done&&t<Bu;)t+=i,r=e.next(t);return t>=Bu?1/0:t}function h3(e,t=100,i){const r=i({...e,keyframes:[0,t]}),o=Math.min(fp(r),Bu);return{type:"keyframes",ease:u=>r.next(o*u).value/t,duration:On(o)}}const p3=5;function Rb(e,t,i){const r=Math.max(t-p3,0);return cb(i-e(r),t-r)}const St={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Vd=.001;function m3({duration:e=St.duration,bounce:t=St.bounce,velocity:i=St.velocity,mass:r=St.mass}){let o,u,c=1-t;c=ua(St.minDamping,St.maxDamping,c),e=ua(St.minDuration,St.maxDuration,On(e)),c<1?(o=g=>{const y=g*c,x=y*e,b=y-i,S=uh(g,c),j=Math.exp(-x);return Vd-b/S*j},u=g=>{const x=g*c*e,b=x*i+i,S=Math.pow(c,2)*Math.pow(g,2)*e,j=Math.exp(-x),N=uh(Math.pow(g,2),c);return(-o(g)+Vd>0?-1:1)*((b-S)*j)/N}):(o=g=>{const y=Math.exp(-g*e),x=(g-i)*e+1;return-Vd+y*x},u=g=>{const y=Math.exp(-g*e),x=(i-g)*(e*e);return y*x});const h=5/e,m=y3(o,u,h);if(e=Kn(e),isNaN(m))return{stiffness:St.stiffness,damping:St.damping,duration:e};{const g=Math.pow(m,2)*r;return{stiffness:g,damping:c*2*Math.sqrt(r*g),duration:e}}}const g3=12;function y3(e,t,i){let r=i;for(let o=1;o<g3;o++)r=r-e(r)/t(r);return r}function uh(e,t){return e*Math.sqrt(1-t*t)}const x3=["duration","bounce"],v3=["stiffness","damping","mass"];function S0(e,t){return t.some(i=>e[i]!==void 0)}function b3(e){let t={velocity:St.velocity,stiffness:St.stiffness,damping:St.damping,mass:St.mass,isResolvedFromDuration:!1,...e};if(!S0(e,v3)&&S0(e,x3))if(e.visualDuration){const i=e.visualDuration,r=2*Math.PI/(i*1.2),o=r*r,u=2*ua(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:St.mass,stiffness:o,damping:u}}else{const i=m3(e);t={...t,...i,mass:St.mass},t.isResolvedFromDuration=!0}return t}function Vu(e=St.visualDuration,t=St.bounce){const i=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=i;const u=i.keyframes[0],c=i.keyframes[i.keyframes.length-1],h={done:!1,value:u},{stiffness:m,damping:g,mass:y,duration:x,velocity:b,isResolvedFromDuration:S}=b3({...i,velocity:-On(i.velocity||0)}),j=b||0,N=g/(2*Math.sqrt(m*y)),_=c-u,k=On(Math.sqrt(m/y)),R=Math.abs(_)<5;r||(r=R?St.restSpeed.granular:St.restSpeed.default),o||(o=R?St.restDelta.granular:St.restDelta.default);let O;if(N<1){const L=uh(k,N);O=Y=>{const z=Math.exp(-N*k*Y);return c-z*((j+N*k*_)/L*Math.sin(L*Y)+_*Math.cos(L*Y))}}else if(N===1)O=L=>c-Math.exp(-k*L)*(_+(j+k*_)*L);else{const L=k*Math.sqrt(N*N-1);O=Y=>{const z=Math.exp(-N*k*Y),G=Math.min(L*Y,300);return c-z*((j+N*k*_)*Math.sinh(G)+L*_*Math.cosh(G))/L}}const I={calculatedDuration:S&&x||null,next:L=>{const Y=O(L);if(S)h.done=L>=x;else{let z=L===0?j:0;N<1&&(z=L===0?Kn(j):Rb(O,L,Y));const G=Math.abs(z)<=r,ee=Math.abs(c-Y)<=o;h.done=G&&ee}return h.value=h.done?c:Y,h},toString:()=>{const L=Math.min(fp(I),Bu),Y=Mb(z=>I.next(L*z).value,L,30);return L+"ms "+Y},toTransition:()=>{}};return I}Vu.applyToOptions=e=>{const t=h3(e,100,Vu);return e.ease=t.ease,e.duration=Kn(t.duration),e.type="keyframes",e};function ch({keyframes:e,velocity:t=0,power:i=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:u=500,modifyTarget:c,min:h,max:m,restDelta:g=.5,restSpeed:y}){const x=e[0],b={done:!1,value:x},S=G=>h!==void 0&&G<h||m!==void 0&&G>m,j=G=>h===void 0?m:m===void 0||Math.abs(h-G)<Math.abs(m-G)?h:m;let N=i*t;const _=x+N,k=c===void 0?_:c(_);k!==_&&(N=k-x);const R=G=>-N*Math.exp(-G/r),O=G=>k+R(G),I=G=>{const ee=R(G),le=O(G);b.done=Math.abs(ee)<=g,b.value=b.done?k:le};let L,Y;const z=G=>{S(b.value)&&(L=G,Y=Vu({keyframes:[b.value,j(b.value)],velocity:Rb(O,G,b.value),damping:o,stiffness:u,restDelta:g,restSpeed:y}))};return z(0),{calculatedDuration:null,next:G=>{let ee=!1;return!Y&&L===void 0&&(ee=!0,I(G),z(G)),L!==void 0&&G>=L?Y.next(G-L):(!ee&&I(G),b)}}}function S3(e,t,i){const r=[],o=i||Ba.mix||zb,u=e.length-1;for(let c=0;c<u;c++){let h=o(e[c],e[c+1]);if(t){const m=Array.isArray(t)?t[c]||Dn:t;h=Po(m,h)}r.push(h)}return r}function w3(e,t,{clamp:i=!0,ease:r,mixer:o}={}){const u=e.length;if(ap(u===t.length),u===1)return()=>t[0];if(u===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),t=[...t].reverse());const h=S3(t,r,o),m=h.length,g=y=>{if(c&&y<e[0])return t[0];let x=0;if(m>1)for(;x<e.length-2&&!(y<e[x+1]);x++);const b=Ro(e[x],e[x+1],y);return h[x](b)};return i?y=>g(ua(e[0],e[u-1],y)):g}function j3(e,t){const i=e[e.length-1];for(let r=1;r<=t;r++){const o=Ro(0,t,r);e.push(mt(i,1,o))}}function T3(e){const t=[0];return j3(t,e.length-1),t}function N3(e,t){return e.map(i=>i*t)}function E3(e,t){return e.map(()=>t||vb).splice(0,e.length-1)}function No({duration:e=300,keyframes:t,times:i,ease:r="easeInOut"}){const o=LC(r)?r.map(m0):m0(r),u={done:!1,value:t[0]},c=N3(i&&i.length===t.length?i:T3(t),e),h=w3(c,t,{ease:Array.isArray(o)?o:E3(t,o)});return{calculatedDuration:e,next:m=>(u.value=h(m),u.done=m>=e,u)}}const C3=e=>e!==null;function dp(e,{repeat:t,repeatType:i="loop"},r,o=1){const u=e.filter(C3),h=o<0||t&&i!=="loop"&&t%2===1?0:u.length-1;return!h||r===void 0?u[h]:r}const A3={decay:ch,inertia:ch,tween:No,keyframes:No,spring:Vu};function kb(e){typeof e.type=="string"&&(e.type=A3[e.type])}class hp{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,i){return this.finished.then(t,i)}}const _3=e=>e/100;class pp extends hp{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:i}=this.options;i&&i.updatedAt!==en.now()&&this.tick(en.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;kb(t);const{type:i=No,repeat:r=0,repeatDelay:o=0,repeatType:u,velocity:c=0}=t;let{keyframes:h}=t;const m=i||No;m!==No&&typeof h[0]!="number"&&(this.mixKeyframes=Po(_3,zb(h[0],h[1])),h=[0,100]);const g=m({...t,keyframes:h});u==="mirror"&&(this.mirroredGenerator=m({...t,keyframes:[...h].reverse(),velocity:-c})),g.calculatedDuration===null&&(g.calculatedDuration=fp(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=g}updateTime(t){const i=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(t,i=!1){const{generator:r,totalDuration:o,mixKeyframes:u,mirroredGenerator:c,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return r.next(0);const{delay:g=0,keyframes:y,repeat:x,repeatType:b,repeatDelay:S,type:j,onUpdate:N,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),i?this.currentTime=t:this.updateTime(t);const k=this.currentTime-g*(this.playbackSpeed>=0?1:-1),R=this.playbackSpeed>=0?k<0:k>o;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let O=this.currentTime,I=r;if(x){const G=Math.min(this.currentTime,o)/h;let ee=Math.floor(G),le=G%1;!le&&G>=1&&(le=1),le===1&&ee--,ee=Math.min(ee,x+1),!!(ee%2)&&(b==="reverse"?(le=1-le,S&&(le-=S/h)):b==="mirror"&&(I=c)),O=ua(0,1,le)*h}const L=R?{done:!1,value:y[0]}:I.next(O);u&&(L.value=u(L.value));let{done:Y}=L;!R&&m!==null&&(Y=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Y);return z&&j!==ch&&(L.value=dp(y,this.options,_,this.speed)),N&&N(L.value),z&&this.finish(),L}then(t,i){return this.finished.then(t,i)}get duration(){return On(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+On(t)}get time(){return On(this.currentTime)}set time(t){var i;t=Kn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(i=this.driver)==null||i.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(en.now());const i=this.playbackSpeed!==t;this.playbackSpeed=t,i&&(this.time=On(this.currentTime))}play(){var o,u;if(this.isStopped)return;const{driver:t=d3,startTime:i}=this.options;this.driver||(this.driver=t(c=>this.tick(c))),(u=(o=this.options).onPlay)==null||u.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=i??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(en.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,i;this.notifyFinished(),this.teardown(),this.state="finished",(i=(t=this.options).onComplete)==null||i.call(t)}cancel(){var t,i;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(i=(t=this.options).onCancel)==null||i.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var i;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(i=this.driver)==null||i.stop(),t.observe(this)}}function z3(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ar=e=>e*180/Math.PI,fh=e=>{const t=ar(Math.atan2(e[1],e[0]));return dh(t)},M3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:fh,rotateZ:fh,skewX:e=>ar(Math.atan(e[1])),skewY:e=>ar(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},dh=e=>(e=e%360,e<0&&(e+=360),e),w0=fh,j0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),T0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),R3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:j0,scaleY:T0,scale:e=>(j0(e)+T0(e))/2,rotateX:e=>dh(ar(Math.atan2(e[6],e[5]))),rotateY:e=>dh(ar(Math.atan2(-e[2],e[0]))),rotateZ:w0,rotate:w0,skewX:e=>ar(Math.atan(e[4])),skewY:e=>ar(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function hh(e){return e.includes("scale")?1:0}function ph(e,t){if(!e||e==="none")return hh(t);const i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(i)r=R3,o=i;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=M3,o=h}if(!o)return hh(t);const u=r[t],c=o[1].split(",").map(O3);return typeof u=="function"?u(c):c[u]}const k3=(e,t)=>{const{transform:i="none"}=getComputedStyle(e);return ph(i,t)};function O3(e){return parseFloat(e.trim())}const hs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ps=new Set(hs),N0=e=>e===ds||e===de,D3=new Set(["x","y","z"]),U3=hs.filter(e=>!D3.has(e));function L3(e){const t=[];return U3.forEach(i=>{const r=e.getValue(i);r!==void 0&&(t.push([i,r.get()]),r.set(i.startsWith("scale")?1:0))}),t}const yi={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ph(t,"x"),y:(e,{transform:t})=>ph(t,"y")};yi.translateX=yi.x;yi.translateY=yi.y;const sr=new Set;let mh=!1,gh=!1,yh=!1;function Ob(){if(gh){const e=Array.from(sr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),i=new Map;t.forEach(r=>{const o=L3(r);o.length&&(i.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=i.get(r);o&&o.forEach(([u,c])=>{var h;(h=r.getValue(u))==null||h.set(c)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}gh=!1,mh=!1,sr.forEach(e=>e.complete(yh)),sr.clear()}function Db(){sr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(gh=!0)})}function B3(){yh=!0,Db(),Ob(),yh=!1}class mp{constructor(t,i,r,o,u,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=i,this.name=r,this.motionValue=o,this.element=u,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(sr.add(this),mh||(mh=!0,nt.read(Db),nt.resolveKeyframes(Ob))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:i,element:r,motionValue:o}=this;if(t[0]===null){const u=o==null?void 0:o.get(),c=t[t.length-1];if(u!==void 0)t[0]=u;else if(r&&i){const h=r.readValue(i,c);h!=null&&(t[0]=h)}t[0]===void 0&&(t[0]=c),o&&u===void 0&&o.set(t[0])}z3(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),sr.delete(this)}cancel(){this.state==="scheduled"&&(sr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const V3=e=>e.startsWith("--");function H3(e,t,i){V3(t)?e.style.setProperty(t,i):e.style[t]=i}const $3={};function Ub(e,t){const i=ub(e);return()=>$3[t]??i()}const Z3=Ub(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Lb=Ub(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),bo=([e,t,i,r])=>`cubic-bezier(${e}, ${t}, ${i}, ${r})`,E0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bo([0,.65,.55,1]),circOut:bo([.55,0,1,.45]),backIn:bo([.31,.01,.66,-.59]),backOut:bo([.33,1.53,.69,.99])};function Bb(e,t){if(e)return typeof e=="function"?Lb()?Mb(e,t):"ease-out":bb(e)?bo(e):Array.isArray(e)?e.map(i=>Bb(i,t)||E0.easeOut):E0[e]}function P3(e,t,i,{delay:r=0,duration:o=300,repeat:u=0,repeatType:c="loop",ease:h="easeOut",times:m}={},g=void 0){const y={[t]:i};m&&(y.offset=m);const x=Bb(h,o);Array.isArray(x)&&(y.easing=x);const b={delay:r,duration:o,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"};return g&&(b.pseudoElement=g),e.animate(y,b)}function Vb(e){return typeof e=="function"&&"applyToOptions"in e}function q3({type:e,...t}){return Vb(e)&&Lb()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Hb extends hp{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:i,name:r,keyframes:o,pseudoElement:u,allowFlatten:c=!1,finalKeyframe:h,onComplete:m}=t;this.isPseudoElement=!!u,this.allowFlatten=c,this.options=t,ap(typeof t.type!="string");const g=q3(t);this.animation=P3(i,r,o,g,u),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const y=dp(o,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(y):H3(i,r,y),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,i;(i=(t=this.animation).finish)==null||i.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var i,r,o;const t=(i=this.options)==null?void 0:i.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((o=(r=this.animation).commitStyles)==null||o.call(r))}get duration(){var i,r;const t=((r=(i=this.animation.effect)==null?void 0:i.getComputedTiming)==null?void 0:r.call(i).duration)||0;return On(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+On(t)}get time(){return On(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Kn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:i}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Z3()?(this.animation.timeline=t,Dn):i(this)}}const $b={anticipate:gb,backInOut:mb,circInOut:xb};function Y3(e){return e in $b}function F3(e){typeof e.ease=="string"&&Y3(e.ease)&&(e.ease=$b[e.ease])}const Hd=10;class G3 extends Hb{constructor(t){F3(t),kb(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:i,onUpdate:r,onComplete:o,element:u,...c}=this.options;if(!i)return;if(t!==void 0){i.set(t);return}const h=new pp({...c,autoplay:!1}),m=Math.max(Hd,en.now()-this.startTime),g=ua(0,Hd,m-Hd);i.setWithVelocity(h.sample(Math.max(0,m-g)).value,h.sample(m).value,g),h.stop()}}const C0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qn.test(e)||e==="0")&&!e.startsWith("url("));function X3(e){const t=e[0];if(e.length===1)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}function I3(e,t,i,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const u=e[e.length-1],c=C0(o,t),h=C0(u,t);return!c||!h?!1:X3(e)||(i==="spring"||Vb(i))&&r}function xh(e){e.duration=0,e.type="keyframes"}const J3=new Set(["opacity","clipPath","filter","transform"]),K3=ub(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Q3(e){var y;
161const{motionValue:t,name:i,repeatDelay:r,repeatType:o,damping:u,type:c}=e;if(!(((y=t==null?void 0:t.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:g}=t.owner.getProps();return K3()&&i&&J3.has(i)&&(i!=="transform"||!g)&&!m&&!r&&o!=="mirror"&&u!==0&&c!=="inertia"}const W3=40;class eA extends hp{constructor({autoplay:t=!0,delay:i=0,type:r="keyframes",repeat:o=0,repeatDelay:u=0,repeatType:c="loop",keyframes:h,name:m,motionValue:g,element:y,...x}){var j;super(),this.stop=()=>{var N,_;this._animation&&(this._animation.stop(),(N=this.stopTimeline)==null||N.call(this)),(_=this.keyframeResolver)==null||_.cancel()},this.createdAt=en.now();const b={autoplay:t,delay:i,type:r,repeat:o,repeatDelay:u,repeatType:c,name:m,motionValue:g,element:y,...x},S=(y==null?void 0:y.KeyframeResolver)||mp;this.keyframeResolver=new S(h,(N,_,k)=>this.onKeyframesResolved(N,_,b,!k),m,g,y),(j=this.keyframeResolver)==null||j.scheduleResolve()}onKeyframesResolved(t,i,r,o){var _,k;this.keyframeResolver=void 0;const{name:u,type:c,velocity:h,delay:m,isHandoff:g,onUpdate:y}=r;this.resolvedAt=en.now(),I3(t,u,c,h)||((Ba.instantAnimations||!m)&&(y==null||y(dp(t,r,i))),t[0]=t[t.length-1],xh(r),r.repeat=0);const b={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>W3?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...r,keyframes:t},S=!g&&Q3(b),j=(k=(_=b.motionValue)==null?void 0:_.owner)==null?void 0:k.current,N=S?new G3({...b,element:j}):new pp(b);N.finished.then(()=>{this.notifyFinished()}).catch(Dn),this.pendingTimeline&&(this.stopTimeline=N.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=N}get finished(){return this._animation?this.animation.finished:this._finished}then(t,i){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),B3()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function Zb(e,t,i,r=0,o=1){const u=Array.from(e).sort((g,y)=>g.sortNodePosition(y)).indexOf(t),c=e.size,h=(c-1)*r;return typeof i=="function"?i(u,c):o===1?u*r:h-u*r}const tA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nA(e){const t=tA.exec(e);if(!t)return[,];const[,i,r,o]=t;return[`--${i??r}`,o]}function Pb(e,t,i=1){const[r,o]=nA(e);if(!r)return;const u=window.getComputedStyle(t).getPropertyValue(r);if(u){const c=u.trim();return sb(c)?parseFloat(c):c}return op(o)?Pb(o,t,i+1):o}const aA={type:"spring",stiffness:500,damping:25,restSpeed:10},iA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),rA={type:"keyframes",duration:.8},sA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},oA=(e,{keyframes:t})=>t.length>2?rA:ps.has(e)?e.startsWith("scale")?iA(t[1]):aA:sA,lA=e=>e!==null;function uA(e,{repeat:t,repeatType:i="loop"},r){const o=e.filter(lA),u=t&&i!=="loop"&&t%2===1?0:o.length-1;return o[u]}function qb(e,t){if(e!=null&&e.inherit&&t){const{inherit:i,...r}=e;return{...t,...r}}return e}function gp(e,t){const i=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return i!==e?qb(i,e):i}function cA({when:e,delay:t,delayChildren:i,staggerChildren:r,staggerDirection:o,repeat:u,repeatType:c,repeatDelay:h,from:m,elapsed:g,...y}){return!!Object.keys(y).length}const yp=(e,t,i,r={},o,u)=>c=>
vendor: 20,288 bytes, line 161
161{const h=gp(r,e)||{},m=h.delay||r.delay||0;let{elapsed:g=0}=r;g=g-Kn(m);const y={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...h,delay:-g,onUpdate:b=>{t.set(b),h.onUpdate&&h.onUpdate(b)},onComplete:()=>{c(),h.onComplete&&h.onComplete()},name:e,motionValue:t,element:u?void 0:o};cA(h)||Object.assign(y,oA(e,y)),y.duration&&(y.duration=Kn(y.duration)),y.repeatDelay&&(y.repeatDelay=Kn(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let x=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(xh(y),y.delay===0&&(x=!0)),(Ba.instantAnimations||Ba.skipAnimations||o!=null&&o.shouldSkipAnimations)&&(x=!0,xh(y),y.delay=0),y.allowFlatten=!h.type&&!h.ease,x&&!u&&t.get()!==void 0){const b=uA(y.keyframes,h);if(b!==void 0){nt.update(()=>{y.onUpdate(b),y.onComplete()});return}}return h.isSync?new pp(y):new eA(y)};function A0(e){const t=[{},{}];return e==null||e.values.forEach((i,r)=>{t[0][r]=i.get(),t[1][r]=i.getVelocity()}),t}function xp(e,t,i,r){if(typeof t=="function"){const[o,u]=A0(r);t=t(i!==void 0?i:e.custom,o,u)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,u]=A0(r);t=t(i!==void 0?i:e.custom,o,u)}return t}function ss(e,t,i){const r=e.getProps();return xp(r,t,i!==void 0?i:r.custom,e)}const Yb=new Set(["width","height","top","left","right","bottom",...hs]),_0=30,fA=e=>!isNaN(parseFloat(e));class dA{constructor(t,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var u;const o=en.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((u=this.events.change)==null||u.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=i.owner}setCurrent(t){this.current=t,this.updatedAt=en.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=fA(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,i){this.events[t]||(this.events[t]=new ip);const r=this.events[t].add(i);return t==="change"?()=>{r(),nt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,i){this.passiveEffect=t,this.stopPassiveEffect=i}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,i,r){this.set(i),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,i=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=en.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_0)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,_0);return cb(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(t){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=t(i),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,i;(t=this.dependents)==null||t.clear(),(i=this.events.destroy)==null||i.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ls(e,t){return new dA(e,t)}const vh=e=>Array.isArray(e);function hA(e,t,i){e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,ls(i))}function pA(e){return vh(e)?e[e.length-1]||0:e}function mA(e,t){const i=ss(e,t);let{transitionEnd:r={},transition:o={},...u}=i||{};u={...u,...r};for(const c in u){const h=pA(u[c]);hA(e,c,h)}}const Jt=e=>!!(e&&e.getVelocity);function gA(e){return!!(Jt(e)&&e.add)}function bh(e,t){const i=e.getValue("willChange");if(gA(i))return i.add(t);if(!i&&Ba.WillChange){const r=new Ba.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function vp(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const yA="framerAppearId",Fb="data-"+vp(yA);function Gb(e){return e.props[Fb]}function xA({protectedKeys:e,needsAnimating:t},i){const r=e.hasOwnProperty(i)&&t[i]!==!0;return t[i]=!1,r}function Xb(e,t,{delay:i=0,transitionOverride:r,type:o}={}){let{transition:u,transitionEnd:c,...h}=t;const m=e.getDefaultTransition();u=u?qb(u,m):m;const g=u==null?void 0:u.reduceMotion;r&&(u=r);const y=[],x=o&&e.animationState&&e.animationState.getState()[o];for(const b in h){const S=e.getValue(b,e.latestValues[b]??null),j=h[b];if(j===void 0||x&&xA(x,b))continue;const N={delay:i,...gp(u||{},b)},_=S.get();if(_!==void 0&&!S.isAnimating&&!Array.isArray(j)&&j===_&&!N.velocity)continue;let k=!1;if(window.MotionHandoffAnimation){const I=Gb(e);if(I){const L=window.MotionHandoffAnimation(I,b,nt);L!==null&&(N.startTime=L,k=!0)}}bh(e,b);const R=g??e.shouldReduceMotion;S.start(yp(b,S,j,R&&Yb.has(b)?{type:!1}:N,e,k));const O=S.animation;O&&y.push(O)}if(c){const b=()=>nt.update(()=>{c&&mA(e,c)});y.length?Promise.all(y).then(b):b()}return y}function Sh(e,t,i={}){var m;const r=ss(e,t,i.type==="exit"?(m=e.presenceContext)==null?void 0:m.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(o=i.transitionOverride);const u=r?()=>Promise.all(Xb(e,r,i)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(g=0)=>{const{delayChildren:y=0,staggerChildren:x,staggerDirection:b}=o;return vA(e,t,g,y,x,b,i)}:()=>Promise.resolve(),{when:h}=o;if(h){const[g,y]=h==="beforeChildren"?[u,c]:[c,u];return g().then(()=>y())}else return Promise.all([u(),c(i.delay)])}function vA(e,t,i=0,r=0,o=0,u=1,c){const h=[];for(const m of e.variantChildren)m.notify("AnimationStart",t),h.push(Sh(m,t,{...c,delay:i+(typeof r=="function"?0:r)+Zb(e.variantChildren,m,r,o,u)}).then(()=>m.notify("AnimationComplete",t)));return Promise.all(h)}function bA(e,t,i={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(u=>Sh(e,u,i));r=Promise.all(o)}else if(typeof t=="string")r=Sh(e,t,i);else{const o=typeof t=="function"?ss(e,t,i.custom):t;r=Promise.all(Xb(e,o,i))}return r.then(()=>{e.notify("AnimationComplete",t)})}const SA={test:e=>e==="auto",parse:e=>e},Ib=e=>t=>t.test(e),Jb=[ds,de,sa,di,JC,IC,SA],z0=e=>Jb.find(Ib(e));function wA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||lb(e):!0}const jA=new Set(["brightness","contrast","saturate","opacity"]);function TA(e){const[t,i]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=i.match(lp)||[];if(!r)return e;const o=i.replace(r,"");let u=jA.has(t)?1:0;return r!==i&&(u*=100),t+"("+u+o+")"}const NA=/\b([a-z-]*)\(.*?\)/gu,wh={...Qn,getAnimatableNone:e=>{const t=e.match(NA);return t?t.map(TA).join(" "):e}},jh={...Qn,getAnimatableNone:e=>{const t=Qn.parse(e);return Qn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},M0={...ds,transform:Math.round},EA={rotate:di,rotateX:di,rotateY:di,rotateZ:di,scale:gu,scaleX:gu,scaleY:gu,scaleZ:gu,skew:di,skewX:di,skewY:di,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:ko,originX:y0,originY:y0,originZ:de},bp={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,top:de,right:de,bottom:de,left:de,inset:de,insetBlock:de,insetBlockStart:de,insetBlockEnd:de,insetInline:de,insetInlineStart:de,insetInlineEnd:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,paddingBlock:de,paddingBlockStart:de,paddingBlockEnd:de,paddingInline:de,paddingInlineStart:de,paddingInlineEnd:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,marginBlock:de,marginBlockStart:de,marginBlockEnd:de,marginInline:de,marginInlineStart:de,marginInlineEnd:de,fontSize:de,backgroundPositionX:de,backgroundPositionY:de,...EA,zIndex:M0,fillOpacity:ko,strokeOpacity:ko,numOctaves:M0},CA={...bp,color:Dt,backgroundColor:Dt,outlineColor:Dt,fill:Dt,stroke:Dt,borderColor:Dt,borderTopColor:Dt,borderRightColor:Dt,borderBottomColor:Dt,borderLeftColor:Dt,filter:wh,WebkitFilter:wh,mask:jh,WebkitMask:jh},Kb=e=>CA[e],AA=new Set([wh,jh]);function Qb(e,t){let i=Kb(e);return AA.has(i)||(i=Qn),i.getAnimatableNone?i.getAnimatableNone(t):void 0}const _A=new Set(["auto","none","0"]);function zA(e,t,i){let r=0,o;for(;r<e.length&&!o;){const u=e[r];typeof u=="string"&&!_A.has(u)&&Oo(u).values.length&&(o=e[r]),r++}if(o&&i)for(const u of t)e[u]=Qb(i,o)}class MA extends mp{constructor(t,i,r,o,u){super(t,i,r,o,u,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:i,name:r}=this;if(!i||!i.current)return;super.readKeyframes();for(let y=0;y<t.length;y++){let x=t[y];if(typeof x=="string"&&(x=x.trim(),op(x))){const b=Pb(x,i.current);b!==void 0&&(t[y]=b),y===t.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!Yb.has(r)||t.length!==2)return;const[o,u]=t,c=z0(o),h=z0(u),m=g0(o),g=g0(u);if(m!==g&&yi[r]){this.needsMeasurement=!0;return}if(c!==h)if(N0(c)&&N0(h))for(let y=0;y<t.length;y++){const x=t[y];typeof x=="string"&&(t[y]=parseFloat(x))}else yi[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:i}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||wA(t[o]))&&r.push(o);r.length&&zA(t,r,i)}measureInitialState(){const{element:t,unresolvedKeyframes:i,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=yi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),i[0]=this.measuredOrigin;const o=i[i.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var h;const{element:t,name:i,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(i);o&&o.jump(this.measuredOrigin,!1);const u=r.length-1,c=r[u];r[u]=yi[i](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([m,g])=>{t.getValue(m).set(g)}),this.resolveNoneKeyframes()}}const RA=new Set(["opacity","clipPath","filter","transform"]);function Wb(e,t,i){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=(i==null?void 0:i[e])??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const eS=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Th(e){return ob(e)&&"offsetHeight"in e}const{schedule:Sp}=Sb(queueMicrotask,!1),Jn={x:!1,y:!1};function tS(){return Jn.x||Jn.y}function kA(e){return e==="x"||e==="y"?Jn[e]?null:(Jn[e]=!0,()=>{Jn[e]=!1}):Jn.x||Jn.y?null:(Jn.x=Jn.y=!0,()=>{Jn.x=Jn.y=!1})}function nS(e,t){const i=Wb(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[i,o,()=>r.abort()]}function OA(e){return!(e.pointerType==="touch"||tS())}function DA(e,t,i={}){const[r,o,u]=nS(e,i);return r.forEach(c=>{let h=!1,m=!1,g;const y=()=>{c.removeEventListener("pointerleave",j)},x=_=>{g&&(g(_),g=void 0),y()},b=_=>{h=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),m&&(m=!1,x(_))},S=()=>{h=!0,window.addEventListener("pointerup",b,o),window.addEventListener("pointercancel",b,o)},j=_=>{if(_.pointerType!=="touch"){if(h){m=!0;return}x(_)}},N=_=>{if(!OA(_))return;m=!1;const k=t(c,_);typeof k=="function"&&(g=k,c.addEventListener("pointerleave",j,o))};c.addEventListener("pointerenter",N,o),c.addEventListener("pointerdown",S,o)}),u}const aS=(e,t)=>t?e===t?!0:aS(e,t.parentElement):!1,wp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,UA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function LA(e){return UA.has(e.tagName)||e.isContentEditable===!0}const BA=new Set(["INPUT","SELECT","TEXTAREA"]);function VA(e){return BA.has(e.tagName)||e.isContentEditable===!0}const _u=new WeakSet;function R0(e){return t=>{t.key==="Enter"&&e(t)}}function $d(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const HA=(e,t)=>{const i=e.currentTarget;if(!i)return;const r=R0(()=>{if(_u.has(i))return;$d(i,"down");const o=R0(()=>{$d(i,"up")}),u=()=>$d(i,"cancel");i.addEventListener("keyup",o,t),i.addEventListener("blur",u,t)});i.addEventListener("keydown",r,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),t)};function k0(e){return wp(e)&&!tS()}const O0=new WeakSet;function $A(e,t,i={}){const[r,o,u]=nS(e,i),c=h=>{const m=h.currentTarget;if(!k0(h)||O0.has(h))return;_u.add(m),i.stopPropagation&&O0.add(h);const g=t(m,h),y=(S,j)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",b),_u.has(m)&&_u.delete(m),k0(S)&&typeof g=="function"&&g(S,{success:j})},x=S=>{y(S,m===window||m===document||i.useGlobalTarget||aS(m,S.target))},b=S=>{y(S,!1)};window.addEventListener("pointerup",x,o),window.addEventListener("pointercancel",b,o)};return r.forEach(h=>{(i.useGlobalTarget?window:h).addEventListener("pointerdown",c,o),Th(h)&&(h.addEventListener("focus",g=>HA(g,o)),!LA(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),u}function jp(e){return ob(e)&&"ownerSVGElement"in e}const zu=new WeakMap;let hi;const iS=(e,t,i)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:jp(r)&&"getBBox"in r?r.getBBox()[t]:r[i],ZA=iS("inline","width","offsetWidth"),PA=iS("block","height","offsetHeight");function qA({target:e,borderBoxSize:t}){var i;(i=zu.get(e))==null||i.forEach(r=>{r(e,{get width(){return ZA(e,t)},get height(){return PA(e,t)}})})}function YA(e){e.forEach(qA)}function FA(){typeof ResizeObserver>"u"||(hi=new ResizeObserver(YA))}function GA(e,t){hi||FA();const i=Wb(e);return i.forEach(r=>{let o=zu.get(r);o||(o=new Set,zu.set(r,o)),o.add(t),hi==null||hi.observe(r)}),()=>{i.forEach(r=>{const o=zu.get(r);o==null||o.delete(t),o!=null&&o.size||hi==null||hi.unobserve(r)})}}const Mu=new Set;let Wr;function XA(){Wr=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Mu.forEach(t=>t(e))},window.addEventListener("resize",Wr)}function IA(e){return Mu.add(e),Wr||XA(),()=>{Mu.delete(e),!Mu.size&&typeof Wr=="function"&&(window.removeEventListener("resize",Wr),Wr=void 0)}}function D0(e,t){return typeof e=="function"?IA(e):GA(e,t)}function JA(e){return jp(e)&&e.tagName==="svg"}const KA=[...Jb,Dt,Qn],QA=e=>KA.find(Ib(e)),U0=()=>({translate:0,scale:1,origin:0,originPoint:0}),es=()=>({x:U0(),y:U0()}),L0=()=>({min:0,max:0}),Bt=()=>({x:L0(),y:L0()}),WA=new WeakMap;function Qu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Do(e){return typeof e=="string"||Array.isArray(e)}const Tp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Np=["initial",...Tp];function Wu(e){return Qu(e.animate)||Np.some(t=>Do(e[t]))}function rS(e){return!!(Wu(e)||e.variants)}function e_(e,t,i){for(const r in t){const o=t[r],u=i[r];if(Jt(o))e.addValue(r,o);else if(Jt(u))e.addValue(r,ls(o,{owner:e}));else if(u!==o)if(e.hasValue(r)){const c=e.getValue(r);c.liveStyle===!0?c.jump(o):c.hasAnimated||c.set(o)}else{const c=e.getStaticValue(r);e.addValue(r,ls(c!==void 0?c:o,{owner:e}))}}for(const r in i)t[r]===void 0&&e.removeValue(r);return t}const Nh={current:null},sS={current:!1},t_=typeof window<"u";function n_(){if(sS.current=!0,!!t_)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Nh.current=e.matches;e.addEventListener("change",t),t()}else Nh.current=!1}const B0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Hu={};function oS(e){Hu=e}function a_(){return Hu}class i_{scrapeMotionValuesFromProps(t,i,r){return{}}constructor({parent:t,props:i,presenceContext:r,reducedMotionConfig:o,skipAnimations:u,blockInitialAnimation:c,visualState:h},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=mp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const S=en.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,nt.render(this.render,!1,!0))};const{latestValues:g,renderState:y}=h;this.latestValues=g,this.baseTarget={...g},this.initialValues=i.initial?{...g}:{},this.renderState=y,this.parent=t,this.props=i,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=u,this.options=m,this.blockInitialAnimation=!!c,this.isControllingVariants=Wu(i),this.isVariantNode=rS(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:x,...b}=this.scrapeMotionValuesFromProps(i,{},this);for(const S in b){const j=b[S];g[S]!==void 0&&Jt(j)&&j.set(g[S])}}mount(t){var i,r;if(this.hasBeenMounted)for(const o in this.initialValues)(i=this.values.get(o))==null||i.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=t,WA.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,u)=>this.bindToMotionValue(u,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(sS.current||n_(),this.shouldReduceMotion=Nh.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),vi(this.notifyUpdate),vi(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const r=this.features[i];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,i){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),i.accelerate&&RA.has(t)&&this.current instanceof HTMLElement){const{factory:c,keyframes:h,times:m,ease:g,duration:y}=i.accelerate,x=new Hb({element:this.current,name:t,keyframes:h,times:m,ease:g,duration:Kn(y)}),b=c(x);this.valueSubscriptions.set(t,()=>{b(),x.cancel()});return}const r=ps.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=i.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&nt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;typeof window<"u"&&window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,i)),this.valueSubscriptions.set(t,()=>{o(),u&&u(),i.owner&&i.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Hu){const i=Hu[t];if(!i)continue;const{isEnabled:r,Feature:o}=i;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const u=this.features[t];
vendor: 24,334 bytes, line 161
161u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Bt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,i){this.latestValues[t]=i}update(t,i){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let r=0;r<B0.length;r++){const o=B0[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const u="on"+o,c=t[u];c&&(this.propEventSubscriptions[o]=this.on(o,c))}this.prevMotionValues=e_(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(t),()=>i.variantChildren.delete(t)}addValue(t,i){const r=this.values.get(t);i!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,i),this.values.set(t,i),this.latestValues[t]=i.get())}removeValue(t){this.values.delete(t);const i=this.valueSubscriptions.get(t);i&&(i(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,i){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&i!==void 0&&(r=ls(i===null?void 0:i,{owner:this}),this.addValue(t,r)),r}readValue(t,i){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(sb(r)||lb(r))?r=parseFloat(r):!QA(r)&&Qn.test(i)&&(r=Qb(t,i)),this.setBaseTarget(t,Jt(r)?r.get():r)),Jt(r)?r.get():r}setBaseTarget(t,i){this.baseTarget[t]=i}getBaseTarget(t){var u;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const c=xp(this.props,i,(u=this.presenceContext)==null?void 0:u.custom);c&&(r=c[t])}if(i&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Jt(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,i){return this.events[t]||(this.events[t]=new ip),this.events[t].add(i)}notify(t,...i){this.events[t]&&this.events[t].notify(...i)}scheduleRenderMicrotask(){Sp.render(this.render)}}class lS extends i_{constructor(){super(...arguments),this.KeyframeResolver=MA}sortInstanceNodePosition(t,i){return t.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(t,i){const r=t.style;return r?r[i]:void 0}removeValueFromRenderState(t,{vars:i,style:r}){delete i[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Jt(t)&&(this.childSubscription=t.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}class ji{constructor(t){this.isMounted=!1,this.node=t}update(){}}function uS({top:e,left:t,right:i,bottom:r}){return{x:{min:t,max:i},y:{min:e,max:r}}}function r_({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function s_(e,t){if(!t)return e;const i=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}function Zd(e){return e===void 0||e===1}function Eh({scale:e,scaleX:t,scaleY:i}){return!Zd(e)||!Zd(t)||!Zd(i)}function er(e){return Eh(e)||cS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function cS(e){return V0(e.x)||V0(e.y)}function V0(e){return e&&e!=="0%"}function $u(e,t,i){const r=e-i,o=t*r;return i+o}function H0(e,t,i,r,o){return o!==void 0&&(e=$u(e,o,r)),$u(e,i,r)+t}function Ch(e,t=0,i=1,r,o){e.min=H0(e.min,t,i,r,o),e.max=H0(e.max,t,i,r,o)}function fS(e,{x:t,y:i}){Ch(e.x,t.translate,t.scale,t.originPoint),Ch(e.y,i.translate,i.scale,i.originPoint)}const $0=.999999999999,Z0=1.0000000000001;function o_(e,t,i,r=!1){const o=i.length;if(!o)return;t.x=t.y=1;let u,c;for(let h=0;h<o;h++){u=i[h],c=u.projectionDelta;const{visualElement:m}=u.options;m&&m.props.style&&m.props.style.display==="contents"||(r&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ns(e,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,fS(e,c)),r&&er(u.latestValues)&&ns(e,u.latestValues))}t.x<Z0&&t.x>$0&&(t.x=1),t.y<Z0&&t.y>$0&&(t.y=1)}function ts(e,t){e.min=e.min+t,e.max=e.max+t}function P0(e,t,i,r,o=.5){const u=mt(e.min,e.max,o);Ch(e,t,i,u,r)}function ns(e,t){P0(e.x,t.x,t.scaleX,t.scale,t.originX),P0(e.y,t.y,t.scaleY,t.scale,t.originY)}function dS(e,t){return uS(s_(e.getBoundingClientRect(),t))}function l_(e,t,i){const r=dS(e,i),{scroll:o}=t;return o&&(ts(r.x,o.offset.x),ts(r.y,o.offset.y)),r}const u_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},c_=hs.length;function f_(e,t,i){let r="",o=!0;for(let u=0;u<c_;u++){const c=hs[u],h=e[c];if(h===void 0)continue;let m=!0;if(typeof h=="number")m=h===(c.startsWith("scale")?1:0);else{const g=parseFloat(h);m=c.startsWith("scale")?g===1:g===0}if(!m||i){const g=eS(h,bp[c]);if(!m){o=!1;const y=u_[c]||c;r+=`${y}(${g}) `}i&&(t[c]=g)}}return r=r.trim(),i?r=i(t,o?"":r):o&&(r="none"),r}function Ep(e,t,i){const{style:r,vars:o,transformOrigin:u}=e;let c=!1,h=!1;for(const m in t){const g=t[m];if(ps.has(m)){c=!0;continue}else if(jb(m)){o[m]=g;continue}else{const y=eS(g,bp[m]);m.startsWith("origin")?(h=!0,u[m]=y):r[m]=y}}if(t.transform||(c||i?r.transform=f_(t,e.transform,i):r.transform&&(r.transform="none")),h){const{originX:m="50%",originY:g="50%",originZ:y=0}=u;r.transformOrigin=`${m} ${g} ${y}`}}function hS(e,{style:t,vars:i},r,o){const u=e.style;let c;for(c in t)u[c]=t[c];o==null||o.applyProjectionStyles(u,r);for(c in i)u.setProperty(c,i[c])}function q0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const go={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(de.test(e))e=parseFloat(e);else return e;const i=q0(e,t.target.x),r=q0(e,t.target.y);return`${i}% ${r}%`}},d_={correct:(e,{treeScale:t,projectionDelta:i})=>{const r=e,o=Qn.parse(e);if(o.length>5)return r;const u=Qn.createTransformer(e),c=typeof o[0]!="number"?1:0,h=i.x.scale*t.x,m=i.y.scale*t.y;o[0+c]/=h,o[1+c]/=m;const g=mt(h,m,.5);return typeof o[2+c]=="number"&&(o[2+c]/=g),typeof o[3+c]=="number"&&(o[3+c]/=g),u(o)}},Ah={borderRadius:{...go,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:go,borderTopRightRadius:go,borderBottomLeftRadius:go,borderBottomRightRadius:go,boxShadow:d_};function pS(e,{layout:t,layoutId:i}){return ps.has(e)||e.startsWith("origin")||(t||i!==void 0)&&(!!Ah[e]||e==="opacity")}function Cp(e,t,i){var c;const r=e.style,o=t==null?void 0:t.style,u={};if(!r)return u;for(const h in r)(Jt(r[h])||o&&Jt(o[h])||pS(h,e)||((c=i==null?void 0:i.getValue(h))==null?void 0:c.liveStyle)!==void 0)&&(u[h]=r[h]);return u}function h_(e){return window.getComputedStyle(e)}class p_ extends lS{constructor(){super(...arguments),this.type="html",this.renderInstance=hS}readValueFromInstance(t,i){var r;if(ps.has(i))return(r=this.projection)!=null&&r.isProjecting?hh(i):k3(t,i);{const o=h_(t),u=(jb(i)?o.getPropertyValue(i):o[i])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(t,{transformPagePoint:i}){return dS(t,i)}build(t,i,r){Ep(t,i,r.transformTemplate)}scrapeMotionValuesFromProps(t,i,r){return Cp(t,i,r)}}const m_={offset:"stroke-dashoffset",array:"stroke-dasharray"},g_={offset:"strokeDashoffset",array:"strokeDasharray"};function y_(e,t,i=1,r=0,o=!0){e.pathLength=1;const u=o?m_:g_;e[u.offset]=`${-r}`,e[u.array]=`${t} ${i}`}const x_=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function mS(e,{attrX:t,attrY:i,attrScale:r,pathLength:o,pathSpacing:u=1,pathOffset:c=0,...h},m,g,y){if(Ep(e,h,g),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:x,style:b}=e;x.transform&&(b.transform=x.transform,delete x.transform),(b.transform||x.transformOrigin)&&(b.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),b.transform&&(b.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete x.transformBox);for(const S of x_)x[S]!==void 0&&(b[S]=x[S],delete x[S]);t!==void 0&&(x.x=t),i!==void 0&&(x.y=i),r!==void 0&&(x.scale=r),o!==void 0&&y_(x,o,u,c,!1)}const gS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),yS=e=>typeof e=="string"&&e.toLowerCase()==="svg";function v_(e,t,i,r){hS(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(gS.has(o)?o:vp(o),t.attrs[o])}function xS(e,t,i){const r=Cp(e,t,i);for(const o in e)if(Jt(e[o])||Jt(t[o])){const u=hs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[u]=e[o]}return r}class b_ extends lS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Bt}getBaseTargetFromProps(t,i){return t[i]}readValueFromInstance(t,i){if(ps.has(i)){const r=Kb(i);return r&&r.default||0}return i=gS.has(i)?i:vp(i),t.getAttribute(i)}scrapeMotionValuesFromProps(t,i,r){return xS(t,i,r)}build(t,i,r){mS(t,i,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,i,r,o){v_(t,i,r,o)}mount(t){this.isSVGTag=yS(t.tagName),super.mount(t)}}const S_=Np.length;function vS(e){if(!e)return;if(!e.isControllingVariants){const i=e.parent?vS(e.parent)||{}:{};return e.props.initial!==void 0&&(i.initial=e.props.initial),i}const t={};for(let i=0;i<S_;i++){const r=Np[i],o=e.props[r];(Do(o)||o===!1)&&(t[r]=o)}return t}function bS(e,t){if(!Array.isArray(t))return!1;const i=t.length;if(i!==e.length)return!1;for(let r=0;r<i;r++)if(t[r]!==e[r])return!1;return!0}const w_=[...Tp].reverse(),j_=Tp.length;function T_(e){return t=>Promise.all(t.map(({animation:i,options:r})=>bA(e,i,r)))}function N_(e){let t=T_(e),i=Y0(),r=!0;const o=m=>(g,y)=>{var b;const x=ss(e,y,m==="exit"?(b=e.presenceContext)==null?void 0:b.custom:void 0);if(x){const{transition:S,transitionEnd:j,...N}=x;g={...g,...N,...j}}return g};function u(m){t=m(e)}function c(m){const{props:g}=e,y=vS(e.parent)||{},x=[],b=new Set;let S={},j=1/0;for(let _=0;_<j_;_++){const k=w_[_],R=i[k],O=g[k]!==void 0?g[k]:y[k],I=Do(O),L=k===m?R.isActive:null;L===!1&&(j=_);let Y=O===y[k]&&O!==g[k]&&I;if(Y&&r&&e.manuallyAnimateOnMount&&(Y=!1),R.protectedKeys={...S},!R.isActive&&L===null||!O&&!R.prevProp||Qu(O)||typeof O=="boolean")continue;if(k==="exit"&&R.isActive&&L!==!0){R.prevResolvedValues&&(S={...S,...R.prevResolvedValues});continue}const z=E_(R.prevProp,O);let G=z||k===m&&R.isActive&&!Y&&I||_>j&&I,ee=!1;const le=Array.isArray(O)?O:[O];let ce=le.reduce(o(k),{});L===!1&&(ce={});const{prevResolvedValues:Ce={}}=R,tt={...Ce,...ce},ze=K=>{G=!0,b.has(K)&&(ee=!0,b.delete(K)),R.needsAnimating[K]=!0;const te=e.getValue(K);te&&(te.liveStyle=!1)};for(const K in tt){const te=ce[K],ne=Ce[K];if(S.hasOwnProperty(K))continue;let ae=!1;vh(te)&&vh(ne)?ae=!bS(te,ne):ae=te!==ne,ae?te!=null?ze(K):b.add(K):te!==void 0&&b.has(K)?ze(K):R.protectedKeys[K]=!0}R.prevProp=O,R.prevResolvedValues=ce,R.isActive&&(S={...S,...ce}),r&&e.blockInitialAnimation&&(G=!1);const Be=Y&&z;G&&(!Be||ee)&&x.push(...le.map(K=>{const te={type:k};if(typeof K=="string"&&r&&!Be&&e.manuallyAnimateOnMount&&e.parent){const{parent:ne}=e,ae=ss(ne,K);if(ne.enteringChildren&&ae){const{delayChildren:A}=ae.transition||{};te.delay=Zb(ne.enteringChildren,e,A)}}return{animation:K,options:te}}))}if(b.size){const _={};if(typeof g.initial!="boolean"){const k=ss(e,Array.isArray(g.initial)?g.initial[0]:g.initial);k&&k.transition&&(_.transition=k.transition)}b.forEach(k=>{const R=e.getBaseTarget(k),O=e.getValue(k);O&&(O.liveStyle=!0),_[k]=R??null}),x.push({animation:_})}let N=!!x.length;return r&&(g.initial===!1||g.initial===g.animate)&&!e.manuallyAnimateOnMount&&(N=!1),r=!1,N?t(x):Promise.resolve()}function h(m,g){var x;if(i[m].isActive===g)return Promise.resolve();(x=e.variantChildren)==null||x.forEach(b=>{var S;return(S=b.animationState)==null?void 0:S.setActive(m,g)}),i[m].isActive=g;const y=c(m);for(const b in i)i[b].protectedKeys={};return y}return{animateChanges:c,setActive:h,setAnimateFunction:u,getState:()=>i,reset:()=>{i=Y0()}}}function E_(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!bS(t,e):!1}function Wi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Y0(){return{animate:Wi(!0),whileInView:Wi(),whileHover:Wi(),whileTap:Wi(),whileDrag:Wi(),whileFocus:Wi(),exit:Wi()}}function F0(e,t){e.min=t.min,e.max=t.max}function In(e,t){F0(e.x,t.x),F0(e.y,t.y)}function G0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const SS=1e-4,C_=1-SS,A_=1+SS,wS=.01,__=0-wS,z_=0+wS;function tn(e){return e.max-e.min}function M_(e,t,i){return Math.abs(e-t)<=i}function X0(e,t,i,r=.5){e.origin=r,e.originPoint=mt(t.min,t.max,e.origin),e.scale=tn(i)/tn(t),e.translate=mt(i.min,i.max,e.origin)-e.originPoint,(e.scale>=C_&&e.scale<=A_||isNaN(e.scale))&&(e.scale=1),(e.translate>=__&&e.translate<=z_||isNaN(e.translate))&&(e.translate=0)}function Eo(e,t,i,r){X0(e.x,t.x,i.x,r?r.originX:void 0),X0(e.y,t.y,i.y,r?r.originY:void 0)}function I0(e,t,i){e.min=i.min+t.min,e.max=e.min+tn(t)}function R_(e,t,i){I0(e.x,t.x,i.x),I0(e.y,t.y,i.y)}function J0(e,t,i){e.min=t.min-i.min,e.max=e.min+tn(t)}function Zu(e,t,i){J0(e.x,t.x,i.x),J0(e.y,t.y,i.y)}function K0(e,t,i,r,o){return e-=t,e=$u(e,1/i,r),o!==void 0&&(e=$u(e,1/o,r)),e}function k_(e,t=0,i=1,r=.5,o,u=e,c=e){if(sa.test(t)&&(t=parseFloat(t),t=mt(c.min,c.max,t/100)-c.min),typeof t!="number")return;let h=mt(u.min,u.max,r);e===u&&(h-=t),e.min=K0(e.min,t,i,h,o),e.max=K0(e.max,t,i,h,o)}function Q0(e,t,[i,r,o],u,c){k_(e,t[i],t[r],t[o],t.scale,u,c)}const O_=["x","scaleX","originX"],D_=["y","scaleY","originY"];function W0(e,t,i,r){Q0(e.x,t,O_,i?i.x:void 0,r?r.x:void 0),Q0(e.y,t,D_,i?i.y:void 0,r?r.y:void 0)}function ev(e){return e.translate===0&&e.scale===1}function jS(e){return ev(e.x)&&ev(e.y)}function tv(e,t){return e.min===t.min&&e.max===t.max}function U_(e,t){return tv(e.x,t.x)&&tv(e.y,t.y)}function nv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function TS(e,t){return nv(e.x,t.x)&&nv(e.y,t.y)}function av(e){return tn(e.x)/tn(e.y)}function iv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function ia(e){return[e("x"),e("y")]}function L_(e,t,i){let r="";const o=e.x.translate/t.x,u=e.y.translate/t.y,c=(i==null?void 0:i.z)||0;if((o||u||c)&&(r=`translate3d(${o}px, ${u}px, ${c}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),i){const{transformPerspective:g,rotate:y,rotateX:x,rotateY:b,skewX:S,skewY:j}=i;g&&(r=`perspective(${g}px) ${r}`),y&&(r+=`rotate(${y}deg) `),x&&(r+=`rotateX(${x}deg) `),b&&(r+=`rotateY(${b}deg) `),S&&(r+=`skewX(${S}deg) `),j&&(r+=`skewY(${j}deg) `)}const h=e.x.scale*t.x,m=e.y.scale*t.y;return(h!==1||m!==1)&&(r+=`scale(${h}, ${m})`),r||"none"}const NS=["TopLeft","TopRight","BottomLeft","BottomRight"],B_=NS.length,rv=e=>typeof e=="string"?parseFloat(e):e,sv=e=>typeof e=="number"||de.test(e);function V_(e,t,i,r,o,u){o?(e.opacity=mt(0,i.opacity??1,H_(r)),e.opacityExit=mt(t.opacity??1,0,$_(r))):u&&(e.opacity=mt(t.opacity??1,i.opacity??1,r));for(let c=0;c<B_;c++){const h=`border${NS[c]}Radius`;let m=ov(t,h),g=ov(i,h);if(m===void 0&&g===void 0)continue;m||(m=0),g||(g=0),m===0||g===0||sv(m)===sv(g)?(e[h]=Math.max(mt(rv(m),rv(g),r),0),(sa.test(g)||sa.test(m))&&(e[h]+="%")):e[h]=g}(t.rotate||i.rotate)&&(e.rotate=mt(t.rotate||0,i.rotate||0,r))}function ov(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const H_=ES(0,.5,yb),$_=ES(.5,.95,Dn);function ES(e,t,i){return r=>r<e?0:r>t?1:i(Ro(e,t,r))}function Z_(e,t,i){const r=Jt(e)?e:ls(e);return r.start(yp("",r,t,i)),r.animation}function Uo(e,t,i,r={passive:!0}){return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i)}const P_=(e,t)=>e.depth-t.depth;class q_{constructor(){this.children=[],this.isDirty=!1}add(t){np(this.children,t),this.isDirty=!0}remove(t){Uu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(P_),this.isDirty=!1,this.children.forEach(t)}}function Y_(e,t){const i=en.now(),r=({timestamp:o})=>{const u=o-i;u>=t&&(vi(r),e(u-t))};return nt.setup(r,!0),()=>vi(r)}function Ru(e){return Jt(e)?e.get():e}class F_{constructor(){this.members=[]}add(t){np(this.members,t);for(let i=this.members.length-1;i>=0;i--){const r=this.members[i];if(r===t||r===this.lead||r===this.prevLead)continue;const o=r.instance;o&&o.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&Uu(this.members,r)}t.scheduleRender()}remove(t){if(Uu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(t){const i=this.members.findIndex(o=>t===o);if(i===0)return!1;let r;for(let o=i;o>=0;o--){const u=this.members[o],c=u.instance;if(u.isPresent!==!1&&(!c||c.isConnected!==!1)){r=u;break}}return r?(this.promote(r),!0):!1}promote(t,i){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();const o=r.options.layoutDependency,u=t.options.layoutDependency;if(!(o!==void 0&&u!==void 0&&o===u)){const m=r.instance;m&&m.isConnected===!1&&!r.snapshot||(t.resumeFrom=r,i&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:h}=t.options;h===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:i,resumingFrom:r}=t;i.onExitComplete&&i.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const ku={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Pd=["","X","Y","Z"],G_=1e3;let X_=0;function qd(e,t,i,r){const{latestValues:o}=t;o[e]&&(i[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function CS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const i=Gb(t);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:o,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",nt,!(o||u))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&CS(r)}function AS({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(c={},h=t==null?void 0:t()){this.id=X_++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(K_),this.nodes.forEach(tz),this.nodes.forEach(nz),this.nodes.forEach(Q_)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new q_)}addEventListener(c,h){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new ip),this.eventHandlers.get(c).add(h)}notifyListeners(c,...h){const m=this.eventHandlers.get(c);m&&m.notify(...h)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=jp(c)&&!JA(c),this.instance=c;const{layoutId:h,layout:m,visualElement:g}=this.options;if(g&&!g.current&&g.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),e){let y,x=0;const b=()=>this.root.updateBlockedByResize=!1;nt.read(()=>{x=window.innerWidth}),e(c,()=>{const S=window.innerWidth;S!==x&&(x=S,this.root.updateBlockedByResize=!0,y&&y(),y=Y_(b,250),ku.hasAnimatedSinceResize&&(ku.hasAnimatedSinceResize=!1,this.nodes.forEach(cv)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:x,hasRelativeLayoutChanged:b,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||g.getDefaultTransition()||oz,{onLayoutAnimationStart:N,onLayoutAnimationComplete:_}=g.getProps(),k=!this.targetLayout||!TS(this.targetLayout,S),R=!x&&b;if(this.options.layoutRoot||this.resumeFrom||R||x&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const O={...gp(j,"layout"),onPlay:N,onComplete:_};(g.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O),this.setAnimationOrigin(y,R)}else x||cv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(az),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&CS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const x=this.path[y];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(lv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(uv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ez),this.nodes.forEach(I_),this.nodes.forEach(J_)):this.nodes.forEach(uv),this.clearAllSnapshots();const h=en.now();Ft.delta=ua(0,1e3/60,h-Ft.timestamp),Ft.timestamp=h,Ft.isProcessing=!0,Dd.update.process(Ft),Dd.preRender.process(Ft),Dd.render.process(Ft),Ft.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sp.read(this.scheduleUpdate))}
vendor: 2,550 bytes, line 161
161clearAllSnapshots(){this.nodes.forEach(W_),this.sharedNodes.forEach(iz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,nt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){nt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!tn(this.snapshot.measuredBox.x)&&!tn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Bt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(h=!1),h&&this.instance){const m=r(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:m,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!o)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!jS(this.projectionDelta),m=this.getTransformTemplate(),g=m?m(this.latestValues,""):void 0,y=g!==this.prevTransformTemplateValue;c&&this.instance&&(h||er(this.latestValues)||y)&&(o(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return c&&(m=this.removeTransform(m)),lz(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var g;const{visualElement:c}=this.options;if(!c)return Bt();const h=c.measureViewportBox();if(!(((g=this.scroll)==null?void 0:g.wasRoot)||this.path.some(uz))){const{scroll:y}=this.root;y&&(ts(h.x,y.offset.x),ts(h.y,y.offset.y))}return h}removeElementScroll(c){var m;const h=Bt();if(In(h,c),(m=this.scroll)!=null&&m.wasRoot)return h;for(let g=0;g<this.path.length;g++){const y=this.path[g],{scroll:x,options:b}=y;y!==this.root&&x&&b.layoutScroll&&(x.wasRoot&&In(h,c),ts(h.x,x.offset.x),ts(h.y,x.offset.y))}return h}
vendor: 4,331 bytes, line 161
161applyTransform(c,h=!1){const m=Bt();In(m,c);for(let g=0;g<this.path.length;g++){const y=this.path[g];!h&&y.options.layoutScroll&&y.scroll&&y!==y.root&&ns(m,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),er(y.latestValues)&&ns(m,y.latestValues)}return er(this.latestValues)&&ns(m,this.latestValues),m}removeTransform(c){const h=Bt();In(h,c);for(let m=0;m<this.path.length;m++){const g=this.path[m];if(!g.instance||!er(g.latestValues))continue;Eh(g.latestValues)&&g.updateSnapshot();const y=Bt(),x=g.measurePageBox();In(y,x),W0(h,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,y)}return er(this.latestValues)&&W0(h,this.latestValues),h}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ft.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var S;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(c||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:x}=this.options;if(!this.layout||!(y||x))return;this.resolvedRelativeTargetAt=Ft.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Bt(),this.targetWithTransforms=Bt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),R_(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):In(this.target,this.layout.layoutBox),fS(this.target,this.targetDelta)):In(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Eh(this.parent.latestValues)||cS(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,h,m){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Bt(),this.relativeTargetOrigin=Bt(),Zu(this.relativeTargetOrigin,h,m),In(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var j;const c=this.getLead(),h=!!this.resumingFrom||this!==c;let m=!0;if((this.isProjectionDirty||(j=this.parent)!=null&&j.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===Ft.timestamp&&(m=!1),m)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;In(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,b=this.treeScale.y;o_(this.layoutCorrected,this.treeScale,this.path,h),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=Bt
vendor: 4,649 bytes, line 161
161());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(G0(this.prevProjectionDelta.x,this.projectionDelta.x),G0(this.prevProjectionDelta.y,this.projectionDelta.y)),Eo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==b||!iv(this.projectionDelta.x,this.prevProjectionDelta.x)||!iv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),c){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=es(),this.projectionDelta=es(),this.projectionDeltaWithTransform=es()}setAnimationOrigin(c,h=!1){const m=this.snapshot,g=m?m.latestValues:{},y={...this.latestValues},x=es();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const b=Bt(),S=m?m.source:void 0,j=this.layout?this.layout.source:void 0,N=S!==j,_=this.getStack(),k=!_||_.members.length<=1,R=!!(N&&!k&&this.options.crossfade===!0&&!this.path.some(sz));this.animationProgress=0;let O;this.mixTargetDelta=I=>{const L=I/1e3;fv(x.x,c.x,L),fv(x.y,c.y,L),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Zu(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rz(this.relativeTarget,this.relativeTargetOrigin,b,L),O&&U_(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=Bt()),In(O,this.relativeTarget)),N&&(this.animationValues=y,V_(y,g,this.latestValues,L,R,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){var h,m,g;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(g=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||g.stop(),this.pendingAnimation&&(vi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nt.update(()=>{ku.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ls(0)),this.motionValue.jump(0,!1),this.currentAnimation=Z_(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),c.onUpdate&&c.onUpdate(y)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(G_),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:h,target:m,layout:g,latestValues:y}=c;if(!(!h||!m||!g)){if(this!==c&&this.layout&&g&&_S(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||Bt();const x=tn(this.layout.layoutBox.x);m.x.min=c.target.x.min,m.x.max=m.x.min+x;const b=tn(this.layout.layoutBox.y);m.y.min=c.target.y.min,m.y.max=m.y.min+b}In(h,m),ns(h,y),Eo(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(c,h){this.sharedNodes.has(c)||this.sharedNodes.set(c,new F_),this.sharedNodes.get(c).add(h);const g=h.options.initialPromotionConfig;h.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(h):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var h;const{layoutId:c}=this.options;return c?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:c}=this.options;return c?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:h,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),c&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}
vendor: 13,066 bytes, lines 161-169
161resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let h=!1;const{latestValues:m}=c;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const g={};m.z&&qd("z",c,g,this.animationValues);for(let y=0;y<Pd.length;y++)qd(`rotate${Pd[y]}`,c,g,this.animationValues),qd(`skew${Pd[y]}`,c,g,this.animationValues);c.render();for(const y in g)c.setStaticValue(y,g[y]),this.animationValues&&(this.animationValues[y]=g[y]);c.scheduleRender()}applyProjectionStyles(c,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=Ru(h==null?void 0:h.pointerEvents)||"",c.transform=m?m(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=Ru(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!er(this.latestValues)&&(c.transform=m?m({},""):"none",this.hasProjected=!1);return}c.visibility="";const y=g.animationValues||g.latestValues;this.applyTransformsToTarget();let x=L_(this.projectionDeltaWithTransform,this.treeScale,y);m&&(x=m(y,x)),c.transform=x;const{x:b,y:S}=this.projectionDelta;c.transformOrigin=`${b.origin*100}% ${S.origin*100}% 0`,g.animationValues?c.opacity=g===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:c.opacity=g===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const j in Ah){if(y[j]===void 0)continue;const{correct:N,applyTo:_,isCSSVariable:k}=Ah[j],R=x==="none"?y[j]:N(y[j],g);if(_){const O=_.length;for(let I=0;I<O;I++)c[_[I]]=R}else k?this.options.visualElement.renderState.vars[j]=R:c[j]=R}this.options.layoutId&&(c.pointerEvents=g===this?Ru(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var h;return(h=c.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(lv),this.root.sharedNodes.clear()}}}function I_(e){e.updateLayout()}function J_(e){var i;const t=((i=e.resumeFrom)==null?void 0:i.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:u}=e.options,c=t.source!==e.layout.source;u==="size"?ia(x=>{const b=c?t.measuredBox[x]:t.layoutBox[x],S=tn(b);b.min=r[x].min,b.max=b.min+S}):_S(u,t.layoutBox,r)&&ia(x=>{const b=c?t.measuredBox[x]:t.layoutBox[x],S=tn(r[x]);b.max=b.min+S,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[x].max=e.relativeTarget[x].min+S)});const h=es();Eo(h,r,t.layoutBox);const m=es();c?Eo(m,e.applyTransform(o,!0),t.measuredBox):Eo(m,r,t.layoutBox);const g=!jS(h);let y=!1;if(!e.resumeFrom){const x=e.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:b,layout:S}=x;if(b&&S){const j=Bt();Zu(j,t.layoutBox,b.layoutBox);const N=Bt();Zu(N,r,S.layoutBox),TS(j,N)||(y=!0),x.options.layoutRoot&&(e.relativeTarget=N,e.relativeTargetOrigin=j,e.relativeParent=x)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:m,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:y})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function K_(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Q_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function W_(e){e.clearSnapshot()}function lv(e){e.clearMeasurements()}function uv(e){e.isLayoutDirty=!1}function ez(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function cv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function tz(e){e.resolveTargetDelta()}function nz(e){e.calcProjection()}function az(e){e.resetSkewAndRotation()}function iz(e){e.removeLeadSnapshot()}function fv(e,t,i){e.translate=mt(t.translate,0,i),e.scale=mt(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function dv(e,t,i,r){e.min=mt(t.min,i.min,r),e.max=mt(t.max,i.max,r)}function rz(e,t,i,r){dv(e.x,t.x,i.x,r),dv(e.y,t.y,i.y,r)}function sz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const oz={duration:.45,ease:[.4,0,.1,1]},hv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),pv=hv("applewebkit/")&&!hv("chrome/")?Math.round:Dn;function mv(e){e.min=pv(e.min),e.max=pv(e.max)}function lz(e){mv(e.x),mv(e.y)}function _S(e,t,i){return e==="position"||e==="preserve-aspect"&&!M_(av(t),av(i),.2)}function uz(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const cz=AS({attachResizeListener:(e,t)=>Uo(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Yd={current:void 0},zS=AS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Yd.current){const e=new cz({});e.mount(window),e.setOptions({layoutScroll:!0}),Yd.current=e}return Yd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ap=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function gv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fz(...e){return t=>{let i=!1;const r=e.map(o=>{const u=gv(o,t);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let o=0;o<r.length;o++){const u=r[o];typeof u=="function"?u():gv(e[o],null)}}}}function dz(...e){return T.useCallback(fz(...e),e)}class hz extends T.Component{getSnapshotBeforeUpdate(t){const i=this.props.childRef.current;if(i&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=i.offsetParent,o=Th(r)&&r.offsetWidth||0,u=Th(r)&&r.offsetHeight||0,c=this.props.sizeRef.current;c.height=i.offsetHeight||0,c.width=i.offsetWidth||0,c.top=i.offsetTop,c.left=i.offsetLeft,c.right=o-c.width-c.left,c.bottom=u-c.height-c.top}return null}componentDidUpdate(){}render(){return this.props.children}}function pz({children:e,isPresent:t,anchorX:i,anchorY:r,root:o,pop:u}){var b;const c=T.useId(),h=T.useRef(null),m=T.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=T.useContext(Ap),y=((b=e.props)==null?void 0:b.ref)??(e==null?void 0:e.ref),x=dz(h,y);return T.useInsertionEffect(()=>{const{width:S,height:j,top:N,left:_,right:k,bottom:R}=m.current;if(t||u===!1||!h.current||!S||!j)return;const O=i==="left"?`left: ${_}`:`right: ${k}`,I=r==="bottom"?`bottom: ${R}`:`top: ${N}`;h.current.dataset.motionPopId=c;const L=document.createElement("style");g&&(L.nonce=g);const Y=o??document.head;return Y.appendChild(L),L.sheet&&L.sheet.insertRule(` 162 [data-motion-pop-id="${c}"] { 163 position: absolute !important; 164 width: ${S}px !important; 165 height: ${j}px !important; 166 ${O}px !important; 167 ${I}px !important; 168 } 169 `),()=>{Y.contains(L)&&Y.removeChild(L)}},[t]),d.jsx(hz,{isPresent:t,childRef:h,sizeRef:m,pop:u,children:u===!1?e:T.cloneElement(e,{ref:x})})}const mz=({children:e,initial:t,isPresent:i,onExitComplete:r,custom:o,presenceAffectsLayout:u,mode:c,anchorX:h,anchorY:m,root:g})=>{const y=tp(gz),x=T.useId();let b=!0,S=T.useMemo(()=>(b=!1,{id:x,initial:t,isPresent:i,custom:o,onExitComplete:j=>{y.set(j,!0);for(const N of y.values())if(!N)return;r&&r()},register:j=>(y.set(j,!1),()=>y.delete(j))}),[i,y,r]);return u&&b&&(S={...S}),T.useMemo(()=>{y.forEach((j,N)=>y.set(N,!1))},[i]),T.useEffect(()=>{!i&&!y.size&&r&&r()},[i]),e=d.jsx(pz,{pop:c==="popLayout",isPresent:i,anchorX:h,anchorY:m,root:g,children:e}),d.jsx(Ku.Provider,{value:S,children:e})};function gz(){return new Map}function MS(e=!0){const t=T.useContext(Ku);if(t===null)return[!0,null];const{isPresent:i,onExitComplete:r,register:o}=t,u=T.useId();T.useEffect(()=>{if(e)return o(u)},[e]);const c=T.useCallback(()=>e&&r&&r(u),[u,r,e]);return!i&&r?[!1,c]:[!0]}const yu=e=>e.key||"";function yv(e){const t=[];return T.Children.forEach(e,i=>{T.isValidElement(i)&&t.push(i)}),t}const Fd=({children:e,custom:t,initial:i=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:u="sync",propagate:c=!1,anchorX:h="left",anchorY:m="top",root:g})=>{const[y,x]=MS(c),b=T.useMemo(()=>yv(e),[e]),S=c&&!y?[]:b.map(yu),j=T.useRef(!0),N=T.useRef(b),_=tp(()=>new Map),k=T.useRef(new Set),[R,O]=T.useState(b),[I,L]=T.useState(b);rb(()=>{j.current=!1,N.current=b;for(let G=0;G<I.length;G++){const ee=yu(I[G]);S.includes(ee)?(_.delete(ee),k.current.delete(ee)):_.get(ee)!==!0&&_.set(ee,!1)}},[I,S.length,S.join("-")]);const Y=[];if(b!==R){let G=[...b];for(let ee=0;ee<I.length;ee++){const le=I[ee],ce=yu(le);S.includes(ce)||(G.splice(ee,0,le),Y.push(le))}return u==="wait"&&Y.length&&(G=Y),L(yv(G)),O(b),null}const{forceRender:z}=T.useContext(ep);return d.jsx(d.Fragment,{children:I.map(G=>{const ee=yu(G),le=c&&!y?!1:b===I||S.includes(ee),ce=()=>{if(k.current.has(ee))return;if(k.current.add(ee),_.has(ee))_.set(ee,!0);else return;let Ce=!0;_.forEach(tt=>{tt||(Ce=!1)}),Ce&&(z==null||z(),L(N.current),c&&(x==null||x()),r&&r())};return d.jsx(mz,{isPresent:le,initial:!j.current||i?void 0:!1,custom:t,presenceAffectsLayout:o,mode:u,root:g,onExitComplete:le?void 0:ce,anchorX:h,anchorY:m,children:G},ee)})})},RS=T.createContext({strict:!1}),xv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let vv=!1;function yz(){if(vv)return;const e={};for(const t in xv)e[t]={isEnabled:i=>xv[t].some(r=>!!i[r])};oS(e),vv=!0}function kS(){return yz(),a_()}function xz(e){const t=kS();for(const i in e)t[i]={...t[i],...e[i]};oS(t)}const vz=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Pu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||vz.has(e)}let OS=e=>!Pu(e);function bz(e){typeof e=="function"&&(OS=t=>t.startsWith("on")?!Pu(t):e(t))}try{bz(require("@emotion/is-prop-valid").default)}catch{}function Sz(e,t,i){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(OS(o)||i===!0&&Pu(o)||!t&&!Pu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const ec=T.createContext({});function wz(e,t){if(Wu(e)){const{initial:i,animate:r}=e;return{initial:i===!1||Do(i)?i:void 0,animate:Do(r)?r:void 0}}return e.inherit!==!1?t:{}}function jz(e){const{initial:t,animate:i}=wz(e,T.useContext(ec));return T.useMemo(()=>({initial:t,animate:i}),[bv(t),bv(i)])}function bv(e){return Array.isArray(e)?e.join(" "):e}const _p=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function DS(e,t,i){for(const r in t)!Jt(t[r])&&!pS(r,i)&&(e[r]=t[r])}function Tz({transformTemplate:e},t){return T.useMemo(()=>{const i=_p();return Ep(i,t,e),Object.assign({},i.vars,i.style)},[t])}function Nz(e,t){const i=e.style||{},r={};return DS(r,i,e),Object.assign(r,Tz(e,t)),r}function Ez(e,t){const i={},r=Nz(e,t);return e.drag&&e.dragListener!==!1&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=r,i}const US=()=>({..._p(),attrs:{}});function Cz(e,t,i,r){const o=T.useMemo(()=>{const u=US();return mS(u,t,yS(r),e.transformTemplate,e.style),{...u.attrs,style:{...u.style}}},[t]);if(e.style){const u={};DS(u,e.style,e),o.style={...u,...o.style}}return o}const Az=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function zp(e){return typeof e!="string"||e.includes("-")?!1:!!(Az.indexOf(e)>-1||/[A-Z]/u.test(e))}function _z(e,t,i,{latestValues:r}
vendor: 20,926 bytes, line 169
169,o,u=!1,c){const m=(c??zp(e)?Cz:Ez)(t,r,o,e),g=Sz(t,typeof e=="string",u),y=e!==T.Fragment?{...g,...m,ref:i}:{},{children:x}=t,b=T.useMemo(()=>Jt(x)?x.get():x,[x]);return T.createElement(e,{...y,children:b})}function zz({scrapeMotionValuesFromProps:e,createRenderState:t},i,r,o){return{latestValues:Mz(i,r,o,e),renderState:t()}}function Mz(e,t,i,r){const o={},u=r(e,{});for(const b in u)o[b]=Ru(u[b]);let{initial:c,animate:h}=e;const m=Wu(e),g=rS(e);t&&g&&!m&&e.inherit!==!1&&(c===void 0&&(c=t.initial),h===void 0&&(h=t.animate));let y=i?i.initial===!1:!1;y=y||c===!1;const x=y?h:c;if(x&&typeof x!="boolean"&&!Qu(x)){const b=Array.isArray(x)?x:[x];for(let S=0;S<b.length;S++){const j=xp(e,b[S]);if(j){const{transitionEnd:N,transition:_,...k}=j;for(const R in k){let O=k[R];if(Array.isArray(O)){const I=y?O.length-1:0;O=O[I]}O!==null&&(o[R]=O)}for(const R in N)o[R]=N[R]}}}return o}const LS=e=>(t,i)=>{const r=T.useContext(ec),o=T.useContext(Ku),u=()=>zz(e,t,r,o);return i?u():tp(u)},Rz=LS({scrapeMotionValuesFromProps:Cp,createRenderState:_p}),kz=LS({scrapeMotionValuesFromProps:xS,createRenderState:US}),Oz=Symbol.for("motionComponentSymbol");function Dz(e,t,i){const r=T.useRef(i);T.useInsertionEffect(()=>{r.current=i});const o=T.useRef(null);return T.useCallback(u=>{var h;u&&((h=e.onMount)==null||h.call(e,u)),t&&(u?t.mount(u):t.unmount());const c=r.current;if(typeof c=="function")if(u){const m=c(u);typeof m=="function"&&(o.current=m)}else o.current?(o.current(),o.current=null):c(u);else c&&(c.current=u)},[t])}const BS=T.createContext({});function Ir(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Uz(e,t,i,r,o,u){var O,I;const{visualElement:c}=T.useContext(ec),h=T.useContext(RS),m=T.useContext(Ku),g=T.useContext(Ap),y=g.reducedMotion,x=g.skipAnimations,b=T.useRef(null),S=T.useRef(!1);r=r||h.renderer,!b.current&&r&&(b.current=r(e,{visualState:t,parent:c,props:i,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:y,skipAnimations:x,isSVG:u}),S.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const j=b.current,N=T.useContext(BS);j&&!j.projection&&o&&(j.type==="html"||j.type==="svg")&&Lz(b.current,i,o,N);const _=T.useRef(!1);T.useInsertionEffect(()=>{j&&_.current&&j.update(i,m)});const k=i[Fb],R=T.useRef(!!k&&!((O=window.MotionHandoffIsComplete)!=null&&O.call(window,k))&&((I=window.MotionHasOptimisedAnimation)==null?void 0:I.call(window,k)));return rb(()=>{S.current=!0,j&&(_.current=!0,window.MotionIsMounted=!0,j.updateFeatures(),j.scheduleRenderMicrotask(),R.current&&j.animationState&&j.animationState.animateChanges())}),T.useEffect(()=>{j&&(!R.current&&j.animationState&&j.animationState.animateChanges(),R.current&&(queueMicrotask(()=>{var L;(L=window.MotionHandoffMarkAsComplete)==null||L.call(window,k)}),R.current=!1),j.enteringChildren=void 0)}),j}function Lz(e,t,i,r){const{layoutId:o,layout:u,drag:c,dragConstraints:h,layoutScroll:m,layoutRoot:g,layoutCrossfade:y}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:VS(e.parent)),e.projection.setOptions({layoutId:o,layout:u,alwaysMeasureLayout:!!c||h&&Ir(h),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:r,crossfade:y,layoutScroll:m,layoutRoot:g})}function VS(e){if(e)return e.options.allowProjection!==!1?e.projection:VS(e.parent)}function Gd(e,{forwardMotionProps:t=!1,type:i}={},r,o){r&&xz(r);const u=i?i==="svg":zp(e),c=u?kz:Rz;function h(g,y){let x;const b={...T.useContext(Ap),...g,layoutId:Bz(g)},{isStatic:S}=b,j=jz(g),N=c(g,S);if(!S&&ib){Vz();const _=Hz(b);x=_.MeasureLayout,j.visualElement=Uz(e,N,b,o,_.ProjectionNode,u)}return d.jsxs(ec.Provider,{value:j,children:[x&&j.visualElement?d.jsx(x,{visualElement:j.visualElement,...b}):null,_z(e,g,Dz(N,j.visualElement,y),N,S,t,u)]})}h.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const m=T.forwardRef(h);return m[Oz]=e,m}function Bz({layoutId:e}){const t=T.useContext(ep).id;return t&&e!==void 0?t+"-"+e:e}function Vz(e,t){T.useContext(RS).strict}function Hz(e){const t=kS(),{drag:i,layout:r}=t;if(!i&&!r)return{};const o={...i,...r};return{MeasureLayout:i!=null&&i.isEnabled(e)||r!=null&&r.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function $z(e,t){if(typeof Proxy>"u")return Gd;const i=new Map,r=(u,c)=>Gd(u,c,e,t),o=(u,c)=>r(u,c);return new Proxy(o,{get:(u,c)=>c==="create"?r:(i.has(c)||i.set(c,Gd(c,void 0,e,t)),i.get(c))})}const Zz=(e,t)=>t.isSVG??zp(e)?new b_(t):new p_(t,{allowProjection:e!==T.Fragment});class Pz extends ji{constructor(t){super(t),t.animationState||(t.animationState=N_(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Qu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:i}=this.node.prevProps||{};t!==i&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let qz=0;class Yz extends ji{constructor(){super(...arguments),this.id=qz++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:i}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);i&&!t&&o.then(()=>{i(this.id)})}mount(){const{register:t,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Fz={animation:{Feature:Pz},exit:{Feature:Yz}};function Fo(e){return{point:{x:e.pageX,y:e.pageY}}}const Gz=e=>t=>wp(t)&&e(t,Fo(t));function Co(e,t,i,r){return Uo(e,t,Gz(i),r)}const HS=({current:e})=>e?e.ownerDocument.defaultView:null,Sv=(e,t)=>Math.abs(e-t);function Xz(e,t){const i=Sv(e.x,t.x),r=Sv(e.y,t.y);return Math.sqrt(i**2+r**2)}const wv=new Set(["auto","scroll"]);class $S{constructor(t,i,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:u=!1,distanceThreshold:c=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=S=>{this.handleScroll(S.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Id(this.lastMoveEventInfo,this.history),j=this.startEvent!==null,N=Xz(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!j&&!N)return;const{point:_}=S,{timestamp:k}=Ft;this.history.push({..._,timestamp:k});const{onStart:R,onMove:O}=this.handlers;j||(R&&R(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,S)},this.handlePointerMove=(S,j)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=Xd(j,this.transformPagePoint),nt.update(this.updatePoint,!0)},this.handlePointerUp=(S,j)=>{this.end();const{onEnd:N,onSessionEnd:_,resumeAnimation:k}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&k&&k(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const R=Id(S.type==="pointercancel"?this.lastMoveEventInfo:Xd(j,this.transformPagePoint),this.history);this.startEvent&&N&&N(S,R),_&&_(S,R)},!wp(t))return;this.dragSnapToOrigin=u,this.handlers=i,this.transformPagePoint=r,this.distanceThreshold=c,this.contextWindow=o||window;const m=Fo(t),g=Xd(m,this.transformPagePoint),{point:y}=g,{timestamp:x}=Ft;this.history=[{...y,timestamp:x}];const{onSessionStart:b}=i;b&&b(t,Id(g,this.history)),this.removeListeners=Po(Co(this.contextWindow,"pointermove",this.handlePointerMove),Co(this.contextWindow,"pointerup",this.handlePointerUp),Co(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(t){let i=t.parentElement;for(;i;){const r=getComputedStyle(i);(wv.has(r.overflowX)||wv.has(r.overflowY))&&this.scrollPositions.set(i,{x:i.scrollLeft,y:i.scrollTop}),i=i.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const i=this.scrollPositions.get(t);if(!i)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},u={x:o.x-i.x,y:o.y-i.y};u.x===0&&u.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=u.x,this.lastMoveEventInfo.point.y+=u.y):this.history.length>0&&(this.history[0].x-=u.x,this.history[0].y-=u.y),this.scrollPositions.set(t,o),nt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),vi(this.updatePoint)}}function Xd(e,t){return t?{point:t(e.point)}:e}function jv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Id({point:e},t){return{point:e,delta:jv(e,ZS(t)),offset:jv(e,Iz(t)),velocity:Jz(t,.1)}}function Iz(e){return e[0]}function ZS(e){return e[e.length-1]}function Jz(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,r=null;const o=ZS(e);for(;i>=0&&(r=e[i],!(o.timestamp-r.timestamp>Kn(t)));)i--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>Kn(t)*2&&(r=e[1]);const u=On(o.timestamp-r.timestamp);if(u===0)return{x:0,y:0};const c={x:(o.x-r.x)/u,y:(o.y-r.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function Kz(e,{min:t,max:i},r){return t!==void 0&&e<t?e=r?mt(t,e,r.min):Math.max(e,t):i!==void 0&&e>i&&(e=r?mt(i,e,r.max):Math.min(e,i)),e}function Tv(e,t,i){return{min:t!==void 0?e.min+t:void 0,max:i!==void 0?e.max+i-(e.max-e.min):void 0}}function Qz(e,{top:t,left:i,bottom:r,right:o}){return{x:Tv(e.x,i,o),y:Tv(e.y,t,r)}}function Nv(e,t){let i=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,r]=[r,i]),{min:i,max:r}}function Wz(e,t){return{x:Nv(e.x,t.x),y:Nv(e.y,t.y)}}function eM(e,t){let i=.5;const r=tn(e),o=tn(t);return o>r?i=Ro(t.min,t.max-r,e.min):r>o&&(i=Ro(e.min,e.max-o,t.min)),ua(0,1,i)}function tM(e,t){const i={};return t.min!==void 0&&(i.min=t.min-e.min),t.max!==void 0&&(i.max=t.max-e.min),i}const _h=.35;function nM(e=_h){return e===!1?e=0:e===!0&&(e=_h),{x:Ev(e,"left","right"),y:Ev(e,"top","bottom")}}function Ev(e,t,i){return{min:Cv(e,t),max:Cv(e,i)}}function Cv(e,t){return typeof e=="number"?e:e[t]||0}const aM=new WeakMap;class iM{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Bt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:i=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const u=x=>{i&&this.snapToCursor(Fo(x).point),this.stopAnimation()},c=(x,b)=>{const{drag:S,dragPropagation:j,onDragStart:N}=this.getProps();if(S&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=kA(S),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ia(k=>{let R=this.getAxisMotionValue(k).get()||0;if(sa.test(R)){const{projection:O}=this.visualElement;if(O&&O.layout){const I=O.layout.layoutBox[k];I&&(R=tn(I)*(parseFloat(R)/100))}}this.originPoint[k]=R}),N&&nt.update(()=>N(x,b),!1,!0),bh(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},h=(x,b)=>{this.latestPointerEvent=x,this.latestPanInfo=b;const{dragPropagation:S,dragDirectionLock:j,onDirectionLock:N,onDrag:_}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:k}=b;if(j&&this.currentDirection===null){this.currentDirection=sM(k),this.currentDirection!==null&&N&&N(this.currentDirection);return}this.updateAxis("x",b.point,k),this.updateAxis("y",b.point,k),this.visualElement.render(),_&&nt.update(()=>_(x,b),!1,!0)},m=(x,b)=>{this.latestPointerEvent=x,this.latestPanInfo=b,this.stop(x,b),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new $S(t,{onSessionStart:u,onStart:c,onMove:h,onSessionEnd:m,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:r,contextWindow:HS(this.visualElement),element:this.visualElement.current})}stop(t,i){const r=t||this.latestPointerEvent,o=i||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!o||!r)return;const{velocity:c}=o;this.startAnimation(c);const{onDragEnd:h}=this.getProps();h&&nt.postRender(()=>h(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:i}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,i,r){const{drag:o}=this.getProps();if(!r||!xu(t,o,this.currentDirection))return;const u=this.getAxisMotionValue(t);let c=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(c=Kz(c,this.constraints[t],this.elastic[t])),u.set(c)}resolveConstraints(){var u;const{dragConstraints:t,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(u=this.visualElement.projection)==null?void 0:u.layout,o=this.constraints;t&&Ir(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Qz(r.layoutBox,t):this.constraints=!1,this.elastic=nM(i),o!==this.constraints&&!Ir(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&ia(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=tM(r.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!Ir(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const u=l_(r,o.root,this.visualElement.getTransformPagePoint());let c=Wz(o.layout.layoutBox,u);if(i){const h=i(r_(c));this.hasMutatedConstraints=!!h,h&&(c=uS(h))}return c}startAnimation(t){const{drag:i,dragMomentum:r,dragElastic:o,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},g=ia(y=>{if(!xu(y,i,this.currentDirection))return;let x=m&&m[y]||{};c&&(x={min:0,max:0});const b=o?200:1e6,S=o?40:1e7,j={type:"inertia",velocity:r?t[y]:0,bounceStiffness:b,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...u,...x};return this.startAxisValueAnimation(y,j)});return Promise.all(g).then(h)}startAxisValueAnimation(t,i){const r=this.getAxisMotionValue(t);return bh(this.visualElement,t),r.start(yp(t,r,0,i,this.visualElement,!1))}stopAnimation(){ia(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const i=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[i];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ia(i=>{const{drag:r}=this.getProps();if(!xu(i,r,this.currentDirection))return;const{projection:o}=this.visualElement,u=this.getAxisMotionValue(i);if(o&&o.layout){const{min:c,max:h}=o.layout.layoutBox[i],m=u.get()||0;u.set(t[i]-mt(c,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:i}=this.getProps(),{projection:r}=this.visualElement;if(!Ir(i)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ia(c=>{const h=this.getAxisMotionValue(c);if(h&&this.constraints!==!1){const m=h.get();o[c]=eM({min:m,max:m},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),ia(c=>{if(!xu(c,t,null))return;const h=this.getAxisMotionValue(c),{min:m,max:g}=this.constraints[c];h.set(mt(m,g,o[c]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;aM.set(this.visualElement,this);const t=this.visualElement.current,i=Co(t,"pointerdown",g=>{const{drag:y,dragListener:x=!0}=this.getProps(),b=g.target,S=b!==t&&VA(b);y&&x&&!S&&this.start(g)});let r;const o=()=>{const{dragConstraints:g}=this.getProps();Ir(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),r||(r=rM(t,g.current,()=>this.scalePositionWithinConstraints())))},{projection:u}=this.visualElement,c=u.addEventListener("measure",o);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),nt.read(o);const h=Uo(window,"resize",()=>this.scalePositionWithinConstraints()),m=u.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:y})=>{this.isDragging&&y&&(ia(x=>{const b=this.getAxisMotionValue(x);b&&(this.originPoint[x]+=g[x].translate,b.set(b.get()+g[x].translate))}),this.visualElement.render())}));return()=>{h(),i(),c(),m&&m(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:u=!1,dragElastic:c=_h,dragMomentum:h=!0}=t;return{...t,drag:i,dragDirectionLock:r,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:h}}}function Av(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function rM(e,t,i){const r=D0(e,Av(i)),o=D0(t,Av(i));return()=>{r(),o()}}function xu(e,t,i){return(t===!0||t===e)&&(i===null||i===e)}function sM(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}class oM extends ji{constructor(t){super(t),this.removeGroupControls=Dn,this.removeListeners=Dn,this.controls=new iM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Dn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:i}=this.node.prevProps||{};t!==i&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Jd=e=>(t,i)=>{e&&nt.update(()=>e(t,i),!1,!0)};class lM extends ji{constructor(){super(...arguments),this.removePointerDownListener=Dn}onPointerDown(t){this.session=new $S(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:HS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:i,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Jd(t),onStart:Jd(i),onMove:Jd(r),onEnd:(u,c)=>{delete this.session,o&&nt.postRender(()=>o(u,c))}}}mount(){this.removePointerDownListener=Co(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Kd=!1;class uM extends T.Component{componentDidMount(){const{visualElement:t,layoutGroup:i,switchLayoutGroup:r,layoutId:o}=this.props,{projection:u}=t;u&&(i.group&&i.group.add(u),r&&r.register&&o&&r.register(u),Kd&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ku.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:i,visualElement:r,drag:o,isPresent:u}=this.props,{projection:c}=r;return c&&(c.isPresent=u,t.layoutDependency!==i&&c.setOptions({...c.options,layoutDependency:i}),Kd=!0,o||t.layoutDependency!==i||i===void 0||t.isPresent!==u?c.willUpdate():this.safeToRemove(),t.isPresent!==u&&(u?c.promote():c.relegate()||nt.postRender(()=>{const h=c.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Sp.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:i,switchLayoutGroup:r}=this.props,{projection:o}=t;Kd=!0,o&&(o.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function PS(e){const[t,i]=MS(),r=T.useContext(ep);return d.jsx(uM,{...e,layoutGroup:r,switchLayoutGroup:T.useContext(BS),isPresent:t,safeToRemove:i})}const cM={pan:{Feature:lM},drag:{Feature:oM,ProjectionNode:zS,MeasureLayout:PS}};function _v(e,t,i){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",i==="Start");
169const o="onHover"+i,u=r[o];u&&nt.postRender(()=>u(t,Fo(t)))}class fM extends ji{mount(){const{current:t}=this.node;t&&(this.unmount=DA(t,(i,r)=>(_v(this.node,r,"Start"),o=>_v(this.node,o,"End"))))}unmount(){}}class dM extends ji{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Po(Uo(this.node.current,"focus",()=>this.onFocus()),Uo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zv(e,t,i){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",i==="Start");const o="onTap"+(i==="End"?"":i),u=r[o];u&&nt.postRender(()=>u(t,Fo(t)))}class hM extends ji{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:i,propagate:r}=this.node.props;this.unmount=$A(t,(o,u)=>(zv(this.node,u,"Start"),(c,{success:h})=>zv(this.node,c,h?"End":"Cancel")),{useGlobalTarget:i,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const zh=new WeakMap,Qd=new WeakMap,pM=e=>{const t=zh.get(e.target);t&&t(e)},mM=e=>{e.forEach(pM)};function gM({root:e,...t}){const i=e||document;Qd.has(i)||Qd.set(i,{});const r=Qd.get(i),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(mM,{root:e,...t})),r[o]}function yM(e,t,i){const r=gM(t);return zh.set(e,i),r.observe(e),()=>{zh.delete(e),r.unobserve(e)}}const xM={some:0,all:1};class vM extends ji{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:i,margin:r,amount:o="some",once:u}=t,c={root:i?i.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:xM[o]},h=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,u&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:y,onViewportLeave:x}=this.node.getProps(),b=g?y:x;b&&b(m)};return yM(this.node.current,c,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:i}=this.node;["amount","margin","root"].some(bM(t,i))&&this.startObserver()}unmount(){}}function bM({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}const SM={inView:{Feature:vM},tap:{Feature:hM},focus:{Feature:dM},hover:{Feature:fM}},wM={layout:{ProjectionNode:zS,MeasureLayout:PS}},jM={...Fz,...SM,...cM,...wM},ka=$z(jM,Zz);function X(e,t,i){function r(h,m){if(h._zod||Object.defineProperty(h,"_zod",{value:{def:m,constr:c,traits:new Set},enumerable:!1}),h._zod.traits.has(e))return;h._zod.traits.add(e),t(h,m);const g=c.prototype,y=Object.keys(g);for(let x=0;x<y.length;x++){const b=y[x];b in h||(h[b]=g[b].bind(h))}}const o=(i==null?void 0:i.Parent)??Object;class u extends o{}Object.defineProperty(u,"name",{value:e});function c(h){var m;const g=i!=null&&i.Parent?new u:this;r(g,h),(m=g._zod).deferred??(m.deferred=[]);for(const y of g._zod.deferred)y();return g}return Object.defineProperty(c,"init",{value:r}),Object.defineProperty(c,Symbol.hasInstance,{value:h=>{var m,g;return i!=null&&i.Parent&&h instanceof i.Parent?!0:(g=(m=h==null?void 0:h._zod)==null?void 0:m.traits)==null?void 0:g.has(e)}}),Object.defineProperty(c,"name",{value:e}),c}class os extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class qS extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const YS={};function bi(e){return YS}function FS(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function Mh(e,t){return typeof t=="bigint"?t.toString():t}function Mp(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Rp(e){return e==null}function kp(e){const t=e.startsWith("^")?1:0,i=e.endsWith("$")?e.length-1:e.length;return e.slice(t,i)}function TM(e,t){const i=(e.toString().split(".")[1]||"").length,r=t.toString();let o=(r.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(r)){const m=r.match(/\d?e-(\d?)/);m!=null&&m[1]&&(o=Number.parseInt(m[1]))}const u=i>o?i:o,c=Number.parseInt(e.toFixed(u).replace(".","")),h=Number.parseInt(t.toFixed(u).replace(".",""));return c%h/10**u}const Mv=Symbol("evaluating");function qe(e,t,i){let r;
vendor: 65,922 bytes, lines 169-207
169Object.defineProperty(e,t,{get(){if(r!==Mv)return r===void 0&&(r=Mv,r=i()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function cr(e,t,i){Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0})}function Ti(...e){const t={};for(const i of e){const r=Object.getOwnPropertyDescriptors(i);Object.assign(t,r)}return Object.defineProperties({},t)}function Rv(e){return JSON.stringify(e)}function NM(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const GS="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function qu(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const EM=Mp(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function us(e){if(qu(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const i=t.prototype;return!(qu(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function XS(e){return us(e)?{...e}:Array.isArray(e)?[...e]:e}const CM=new Set(["string","number","symbol"]);function cs(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ni(e,t,i){const r=new e._zod.constr(t??e._zod.def);return(!t||i!=null&&i.parent)&&(r._zod.parent=e),r}function be(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function AM(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const _M={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function zM(e,t){const i=e._zod.def,r=i.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const u=Ti(e._zod.def,{get shape(){const c={};for(const h in t){if(!(h in i.shape))throw new Error(`Unrecognized key: "${h}"`);t[h]&&(c[h]=i.shape[h])}return cr(this,"shape",c),c},checks:[]});return Ni(e,u)}function MM(e,t){const i=e._zod.def,r=i.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const u=Ti(e._zod.def,{get shape(){const c={...e._zod.def.shape};for(const h in t){if(!(h in i.shape))throw new Error(`Unrecognized key: "${h}"`);t[h]&&delete c[h]}return cr(this,"shape",c),c},checks:[]});return Ni(e,u)}function RM(e,t){if(!us(t))throw new Error("Invalid input to extend: expected a plain object");const i=e._zod.def.checks;if(i&&i.length>0){const u=e._zod.def.shape;for(const c in t)if(Object.getOwnPropertyDescriptor(u,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=Ti(e._zod.def,{get shape(){const u={...e._zod.def.shape,...t};return cr(this,"shape",u),u}});return Ni(e,o)}function kM(e,t){if(!us(t))throw new Error("Invalid input to safeExtend: expected a plain object");const i=Ti(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return cr(this,"shape",r),r}});return Ni(e,i)}function OM(e,t){const i=Ti(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return cr(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Ni(e,i)}function DM(e,t,i){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=Ti(t._zod.def,{get shape(){const h=t._zod.def.shape,m={...h};if(i)for(const g in i){if(!(g in h))throw new Error(`Unrecognized key: "${g}"`);i[g]&&(m[g]=e?new e({type:"optional",innerType:h[g]}):h[g])}else for(const g in h)m[g]=e?new e({type:"optional",innerType:h[g]}):h[g];return cr(this,"shape",m),m},checks:[]});return Ni(t,c)}function UM(e,t,i){const r=Ti(t._zod.def,{get shape(){const o=t._zod.def.shape,u={...o};if(i)for(const c in i){if(!(c in u))throw new Error(`Unrecognized key: "${c}"`);i[c]&&(u[c]=new e({type:"nonoptional",innerType:o[c]}))}else for(const c in o)u[c]=new e({type:"nonoptional",innerType:o[c]});return cr(this,"shape",u),u}});return Ni(t,r)}function as(e,t=0){var i;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((i=e.issues[r])==null?void 0:i.continue)!==!0)return!0;return!1}function is(e,t){return t.map(i=>{var r;return(r=i).path??(r.path=[]),i.path.unshift(e),i})}function vu(e){return typeof e=="string"?e:e==null?void 0:e.message}function Si(e,t,i){var o,u,c,h,m,g;const r={...e,path:e.path??[]};if(!e.message){const y=vu((c=(u=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:u.error)==null?void 0:c.call(u,e))??vu((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??vu((m=i.customError)==null?void 0:m.call(i,e))??vu((g=i.localeError)==null?void 0:g.call(i,e))??"Invalid input";r.message=y}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function Op(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Lo(...e){const[t,i,r]=e;return typeof t=="string"?{message:t,code:"custom",input:i,inst:r}:{...t}}const IS=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Mh,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},JS=X("$ZodError",IS),KS=X("$ZodError",IS,{Parent:Error});function LM(e,t=i=>i.message){const i={},r=[];for(const o of e.issues)o.path.length>0?(i[o.path[0]]=i[o.path[0]]||[],i[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:i}}function BM(e,t=i=>i.message){const i={_errors:[]},r=o=>{for(const u of o.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>r({issues:c}));else if(u.code==="invalid_key")r({issues:u.issues});else if(u.code==="invalid_element")r({issues:u.issues});else if(u.path.length===0)i._errors.push(t(u));else{let c=i,h=0;for(;h<u.path.length;){const m=u.path[h];h===u.path.length-1?(c[m]=c[m]||{_errors:[]},c[m]._errors.push(t(u))):c[m]=c[m]||{_errors:[]},c=c[m],h++}}};return r(e),i}const Dp=e=>(t,i,r,o)=>{const u=r?Object.assign(r,{async:!1}):{async:!1},c=t._zod.run({value:i,issues:[]},u);if(c instanceof Promise)throw new os;if(c.issues.length){const h=new((o==null?void 0:o.Err)??e)(c.issues.map(m=>Si(m,u,bi())));throw GS(h,o==null?void 0:o.callee),h}return c.value},Up=e=>async(t,i,r,o)=>{const u=r?Object.assign(r,{async:!0}):{async:!0};let c=t._zod.run({value:i,issues:[]},u);if(c instanceof Promise&&(c=await c),c.issues.length){const h=new((o==null?void 0:o.Err)??e)(c.issues.map(m=>Si(m,u,bi())));throw GS(h,o==null?void 0:o.callee),h}return c.value},tc=e=>(t,i,r)=>{const o=r?{...r,async:!1}:{async:!1},u=t._zod.run({value:i,issues:[]},o);if(u instanceof Promise)throw new os;return u.issues.length?{success:!1,error:new(e??JS)(u.issues.map(c=>Si(c,o,bi())))}:{success:!0,data:u.value}},VM=tc(KS),nc=e=>async(t,i,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let u=t._zod.run({value:i,issues:[]},o);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new e(u.issues.map(c=>Si(c,o,bi())))}:{success:!0,data:u.value}},HM=nc(KS),$M=e=>(t,i,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Dp(e)(t,i,o)},ZM=e=>(t,i,r)=>Dp(e)(t,i,r),PM=e=>async(t,i,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Up(e)(t,i,o)},qM=e=>async(t,i,r)=>Up(e)(t,i,r),YM=e=>(t,i,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return tc(e)(t,i,o)},FM=e=>(t,i,r)=>tc(e)(t,i,r),GM=e=>async(t,i,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return nc(e)(t,i,o)},XM=e=>async(t,i,r)=>nc(e)(t,i,r),IM=/^[cC][^\s-]{8,}$/,JM=/^[0-9a-z]+$/,KM=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,QM=/^[0-9a-vA-V]{20}$/,WM=/^[A-Za-z0-9]{27}$/,eR=/^[a-zA-Z0-9_-]{21}$/,tR=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,nR=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,kv=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,aR=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,iR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function rR(){return new RegExp(iR,"u")}const sR=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,oR=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,lR=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,uR=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,cR=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,QS=/^[A-Za-z0-9_-]*$/,fR=/^\+[1-9]\d{6,14}$/,WS="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",dR=new RegExp(`^${WS}$`);function e2(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function hR(e){return new RegExp(`^${e2(e)}$`)}function pR(e){const t=e2({precision:e.precision}),i=["Z"];e.local&&i.push(""),e.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${i.join("|")})`;return new RegExp(`^${WS}T(?:${r})$`)}const mR=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},gR=/^-?\d+$/,t2=/^-?\d+(?:\.\d+)?$/,yR=/^(?:true|false)$/i,xR=/^null$/i,vR=/^[^A-Z]*$/,bR=/^[^a-z]*$/,fn=X("$ZodCheck",(e,t)=>{var i;e._zod??(e._zod={}),e._zod.def=t,(i=e._zod).onattach??(i.onattach=[])}),n2={number:"number",bigint:"bigint",object:"date"},a2=X("$ZodCheckLessThan",(e,t)=>{fn.init(e,t);const i=n2[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,u=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<u&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:i,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),i2=X("$ZodCheckGreaterThan",(e,t)=>{fn.init(e,t);const i=n2[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,u=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>u&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:i,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),SR=X("$ZodCheckMultipleOf",(e,t)=>{fn.init(e,t),e._zod.onattach.push(i=>{var r;(r=i._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=i=>{if(typeof i.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof i.value=="bigint"?i.value%t.value===BigInt(0):TM(i.value,t.value)===0)||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:t.value,input:i.value,inst:e,continue:!t.abort})}}),wR=X("$ZodCheckNumberFormat",(e,t)=>{var c;fn.init(e,t),t.format=t.format||"float64";const i=(c=t.format)==null?void 0:c.includes("int"),r=i?"int":"number",[o,u]=_M[t.format];e._zod.onattach.push(h=>{const m=h._zod.bag;m.format=t.format,m.minimum=o,m.maximum=u,i&&(m.pattern=gR)}),e._zod.check=h=>{const m=h.value;if(i){if(!Number.isInteger(m)){h.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:m,inst:e});return}if(!Number.isSafeInteger(m)){m>0?h.issues.push({input:m,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):h.issues.push({input:m,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}m<o&&h.issues.push({origin:"number",input:m,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),m>u&&h.issues.push({origin:"number",input:m,code:"too_big",maximum:u,inclusive:!0,inst:e,continue:!t.abort})}}),jR=X("$ZodCheckMaxLength",(e,t)=>{var i;fn.init(e,t),(i=e._zod.def).when??(i.when=r=>{const o=r.value;return!Rp(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const c=Op(o);r.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),TR=X("$ZodCheckMinLength",(e,t)=>{var i;fn.init(e,t),(i=e._zod.def).when??(i.when=r=>{const o=r.value;return!Rp(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const c=Op(o);r.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),NR=X("$ZodCheckLengthEquals",(e,t)=>{var i;fn.init(e,t),(i=e._zod.def).when??(i.when=r=>{const o=r.value;return!Rp(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,u=o.length;if(u===t.length)return;const c=Op(o),h=u>t.length;r.issues.push({origin:c,...h?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ac=X("$ZodCheckStringFormat",(e,t)=>{var i,r;fn.init(e,t),e._zod.onattach.push(o=>{const u=o._zod.bag;u.format=t.format,t.pattern&&(u.patterns??(u.patterns=new Set),u.patterns.add(t.pattern))}),t.pattern?(i=e._zod).check??(i.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),ER=X("$ZodCheckRegex",(e,t)=>{ac.init(e,t),e._zod.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),CR=X("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=vR),ac.init(e,t)}),AR=X("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=bR),ac.init(e,t)}),_R=X("$ZodCheckIncludes",(e,t)=>{fn.init(e,t);const i=cs(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${i}`:i);t.pattern=r,e._zod.onattach.push(o=>{const u=o._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),zR=X("$ZodCheckStartsWith",(e,t)=>{fn.init(e,t);const i=new RegExp(`^${cs(t.prefix)}.*`);t.pattern??(t.pattern=i),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),MR=X("$ZodCheckEndsWith",(e,t)=>{fn.init(e,t);const i=new RegExp(`.*${cs(t.suffix)}$`);t.pattern??(t.pattern=i),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),RR=X("$ZodCheckOverwrite",(e,t)=>{fn.init(e,t),e._zod.check=i=>{i.value=t.tx(i.value)}});class kR{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(` 170`).filter(c=>c),o=Math.min(...r.map(c=>c.length-c.trimStart().length)),u=r.map(c=>c.slice(o)).map(c=>" ".repeat(this.indent*2)+c);for(const c of u)this.content.push(c)}compile(){const t=Function,i=this==null?void 0:this.args,o=[...((this==null?void 0:this.content)??[""]).map(u=>` ${u}`)];return new t(...i,o.join(` 171`))}}const OR={major:4,minor:3,patch:6},at=X("$ZodType",(e,t)=>{var o;var i;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=OR;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const u of r)for(const c of u._zod.onattach)c(e);if(r.length===0)(i=e._zod).deferred??(i.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const u=(h,m,g)=>{let y=as(h),x;for(const b of m){if(b._zod.def.when){if(!b._zod.def.when(h))continue}else if(y)continue;const S=h.issues.length,j=b._zod.check(h);if(j instanceof Promise&&(g==null?void 0:g.async)===!1)throw new os;if(x||j instanceof Promise)x=(x??Promise.resolve()).then(async()=>{await j,h.issues.length!==S&&(y||(y=as(h,S)))});else{if(h.issues.length===S)continue;y||(y=as(h,S))}}return x?x.then(()=>h):h},c=(h,m,g)=>{if(as(h))return h.aborted=!0,h;const y=u(m,r,g);if(y instanceof Promise){if(g.async===!1)throw new os;return y.then(x=>e._zod.parse(x,g))}return e._zod.parse(y,g)};e._zod.run=(h,m)=>{if(m.skipChecks)return e._zod.parse(h,m);if(m.direction==="backward"){const y=e._zod.parse({value:h.value,issues:[]},{...m,skipChecks:!0});return y instanceof Promise?y.then(x=>c(x,h,m)):c(y,h,m)}const g=e._zod.parse(h,m);if(g instanceof Promise){if(m.async===!1)throw new os;return g.then(y=>u(y,r,m))}return u(g,r,m)}}qe(e,"~standard",()=>({validate:u=>{var c;try{const h=VM(e,u);return h.success?{value:h.data}:{issues:(c=h.error)==null?void 0:c.issues}}catch{return HM(e,u).then(m=>{var g;return m.success?{value:m.data}:{issues:(g=m.error)==null?void 0:g.issues}})}},vendor:"zod",version:1}))}),Lp=X("$ZodString",(e,t)=>{var i;at.init(e,t),e._zod.pattern=[...((i=e==null?void 0:e._zod.bag)==null?void 0:i.patterns)??[]].pop()??mR(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),ct=X("$ZodStringFormat",(e,t)=>{ac.init(e,t),Lp.init(e,t)}),DR=X("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=nR),ct.init(e,t)}),UR=X("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=kv(r))}else t.pattern??(t.pattern=kv());ct.init(e,t)}),LR=X("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=aR),ct.init(e,t)}),BR=X("$ZodURL",(e,t)=>{ct.init(e,t),e._zod.check=i=>{try{const r=i.value.trim(),o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:i.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:i.value,inst:e,continue:!t.abort})),t.normalize?i.value=o.href:i.value=r;return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:e,continue:!t.abort})}}}),VR=X("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=rR()),ct.init(e,t)}),HR=X("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=eR),ct.init(e,t)}),$R=X("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=IM),ct.init(e,t)}),ZR=X("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=JM),ct.init(e,t)}),PR=X("$ZodULID",(e,t)=>{t.pattern??(t.pattern=KM),ct.init(e,t)}),qR=X("$ZodXID",(e,t)=>{t.pattern??(t.pattern=QM),ct.init(e,t)}),YR=X("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=WM),ct.init(e,t)}),FR=X("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=pR(t)),ct.init(e,t)}),GR=X("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=dR),ct.init(e,t)}),XR=X("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=hR(t)),ct.init(e,t)}),IR=X("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=tR),ct.init(e,t)}),JR=X("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=sR),ct.init(e,t),e._zod.bag.format="ipv4"}),KR=X("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=oR),ct.init(e,t),e._zod.bag.format="ipv6",e._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!t.abort})}}}),QR=X("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=lR),ct.init(e,t)}),WR=X("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=uR),ct.init(e,t),e._zod.check=i=>{const r=i.value.split("/");try{if(r.length!==2)throw new Error;const[o,u]=r;if(!u)throw new Error;const c=Number(u);if(`${c}`!==u)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${o}]`)}catch{i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:e,continue:!t.abort})}}});function r2(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const ek=X("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=cR),ct.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=i=>{r2(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:e,continue:!t.abort})}});function tk(e){if(!QS.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),i=t.padEnd(Math.ceil(t.length/4)*4,"=");return r2(i)}const nk=X("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=QS),ct.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=i=>{tk(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:e,continue:!t.abort})}}),ak=X("$ZodE164",(e,t)=>{t.pattern??(t.pattern=fR),ct.init(e,t)});function ik(e,t=null){try{const i=e.split(".");if(i.length!==3)return!1;const[r]=i;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const rk=X("$ZodJWT",(e,t)=>{ct.init(e,t),e._zod.check=i=>{ik(i.value,t.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:e,continue:!t.abort})}}),s2=X("$ZodNumber",(e,t)=>{at.init(e,t),e._zod.pattern=e._zod.bag.pattern??t2,e._zod.parse=(i,r)=>{if(t.coerce)try{i.value=Number(i.value)}catch{}const o=i.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return i;const u=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...u?{received:u}:{}}),i}}),sk=X("$ZodNumberFormat",(e,t)=>{wR.init(e,t),s2.init(e,t)}),ok=X("$ZodBoolean",(e,t)=>{at.init(e,t),e._zod.pattern=yR,e._zod.parse=(i,r)=>{if(t.coerce)try{i.value=!!i.value}catch{}const o=i.value;return typeof o=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),i}}),lk=X("$ZodNull",(e,t)=>{at.init(e,t),e._zod.pattern=xR,e._zod.values=new Set([null]),e._zod.parse=(i,r)=>{const o=i.value;return o===null||i.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),i}}),uk=X("$ZodAny",(e,t)=>{at.init(e,t),e._zod.parse=i=>i}),ck=X("$ZodUnknown",(e,t)=>{at.init(e,t),e._zod.parse=i=>i}),fk=X("$ZodNever",(e,t)=>{at.init(e,t),e._zod.parse=(i,r)=>(i.issues.push({expected:"never",code:"invalid_type",input:i.value,inst:e}),i)});function Ov(e,t,i){e.issues.length&&t.issues.push(...is(i,e.issues)),t.value[i]=e.value}const dk=X("$ZodArray",(e,t)=>{at.init(e,t),e._zod.parse=(i,r)=>{const o=i.value;if(!Array.isArray(o))return i.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),i;i.value=Array(o.length);const u=[];for(let c=0;c<o.length;c++){const h=o[c],m=t.element._zod.run({value:h,issues:[]},r);m instanceof Promise?u.push(m.then(g=>Ov(g,i,c))):Ov(m,i,c)}return u.length?Promise.all(u).then(()=>i):i}});function Yu(e,t,i,r,o){if(e.issues.length){if(o&&!(i in r))return;t.issues.push(...is(i,e.issues))}e.value===void 0?i in r&&(t.value[i]=void 0):t.value[i]=e.value}function o2(e){var r,o,u,c;const t=Object.keys(e.shape);for(const h of t)if(!((c=(u=(o=(r=e.shape)==null?void 0:r[h])==null?void 0:o._zod)==null?void 0:u.traits)!=null&&c.has("$ZodType")))throw new Error(`Invalid element at key "${h}": expected a Zod schema`);const i=AM(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function l2(e,t,i,r,o,u){const c=[],h=o.keySet,m=o.catchall._zod,g=m.def.type,y=m.optout==="optional";for(const x in t){if(h.has(x))continue;if(g==="never"){c.push(x);continue}const b=m.run({value:t[x],issues:[]},r);b instanceof Promise?e.push(b.then(S=>Yu(S,i,x,t,y))):Yu(b,i,x,t,y)}return c.length&&i.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:u}),e.length?Promise.all(e).then(()=>i):i}const hk=X("$ZodObject",(e,t)=>{at.init(e,t);const i=Object.getOwnPropertyDescriptor(t,"shape");if(!(i!=null&&i.get)){const h=t.shape;Object.defineProperty(t,"shape",{get:()=>{const m={...h};return Object.defineProperty(t,"shape",{value:m}),m}})}const r=Mp(()=>o2(t));qe(e._zod,"propValues",()=>{const h=t.shape,m={};for(const g in h){const y=h[g]._zod;if(y.values){m[g]??(m[g]=new Set);for(const x of y.values)m[g].add(x)}}return m});const o=qu,u=t.catchall;let c;e._zod.parse=(h,m)=>{c??(c=r.value);const g=h.value;if(!o(g))return h.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),h;h.value={};const y=[],x=c.shape;for(const b of c.keys){const S=x[b],j=S._zod.optout==="optional",N=S._zod.run({value:g[b],issues:[]},m);N instanceof Promise?y.push(N.then(_=>Yu(_,h,b,g,j))):Yu(N,h,b,g,j)}return u?l2(y,g,h,m,r.value,e):y.length?Promise.all(y).then(()=>h):h}}),pk=X("$ZodObjectJIT",(e,t)=>{hk.init(e,t);const i=e._zod.parse,r=Mp(()=>o2(t)),o=b=>{var O;const S=new kR(["shape","payload","ctx"]),j=r.value,N=I=>{const L=Rv(I);return`shape[${L}]._zod.run({ value: input[${L}], issues: [] }, ctx)`};S.write("const input = payload.value;");const _=Object.create(null);let k=0;for(const I of j.keys)_[I]=`key_${k++}`;S.write("const newResult = {};");for(const I of j.keys){const L=_[I],Y=Rv(I),z=b[I],G=((O=z==null?void 0:z._zod)==null?void 0:O.optout)==="optional";S.write(`const ${L} = ${N(I)};`),G?S.write(` 172 if (${L}.issues.length) { 173 if (${Y} in input) { 174 payload.issues = payload.issues.concat(${L}.issues.map(iss => ({ 175 ...iss, 176 path: iss.path ? [${Y}, ...iss.path] : [${Y}] 177 }))); 178 } 179 } 180 181 if (${L}.value === undefined) { 182 if (${Y} in input) { 183 newResult[${Y}] = undefined; 184 } 185 } else { 186 newResult[${Y}] = ${L}.value; 187 } 188 189 `):S.write(` 190 if (${L}.issues.length) { 191 payload.issues = payload.issues.concat(${L}.issues.map(iss => ({ 192 ...iss, 193 path: iss.path ? [${Y}, ...iss.path] : [${Y}] 194 }))); 195 } 196 197 if (${L}.value === undefined) { 198 if (${Y} in input) { 199 newResult[${Y}] = undefined; 200 } 201 } else { 202 newResult[${Y}] = ${L}.value; 203 } 204 205 `)}S.write("payload.value = newResult;"),S.write("return payload;");const R=S.compile();return(I,L)=>R(b,I,L)};let u;const c=qu,h=!YS.jitless,g=h&&EM.value,y=t.catchall;let x;e._zod.parse=(b,S)=>{x??(x=r.value);const j=b.value;return c(j)?h&&g&&(S==null?void 0:S.async)===!1&&S.jitless!==!0?(u||(u=o(t.shape)),b=u(b,S),y?l2([],j,b,S,x,e):b):i(b,S):(b.issues.push({expected:"object",code:"invalid_type",input:j,inst:e}),b)}});function Dv(e,t,i,r){for(const u of e)if(u.issues.length===0)return t.value=u.value,t;const o=e.filter(u=>!as(u));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:e.map(u=>u.issues.map(c=>Si(c,r,bi())))}),t)}const mk=X("$ZodUnion",(e,t)=>{at.init(e,t),qe(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),qe(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),qe(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),qe(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(u=>u._zod.pattern);return new RegExp(`^(${o.map(u=>kp(u.source)).join("|")})$`)}});const i=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,u)=>{if(i)return r(o,u);let c=!1;const h=[];for(const m of t.options){const g=m._zod.run({value:o.value,issues:[]},u);if(g instanceof Promise)h.push(g),c=!0;else{if(g.issues.length===0)return g;h.push(g)}}return c?Promise.all(h).then(m=>Dv(m,o,e,u)):Dv(h,o,e,u)}}),gk=X("$ZodIntersection",(e,t)=>{at.init(e,t),e._zod.parse=(i,r)=>{const o=i.value,u=t.left._zod.run({value:o,issues:[]},r),c=t.right._zod.run({value:o,issues:[]},r);return u instanceof Promise||c instanceof Promise?Promise.all([u,c]).then(([m,g])=>Uv(i,m,g)):Uv(i,u,c)}});function Rh(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(us(e)&&us(t)){const i=Object.keys(t),r=Object.keys(e).filter(u=>i.indexOf(u)!==-1),o={...e,...t};for(const u of r){const c=Rh(e[u],t[u]);if(!c.valid)return{valid:!1,mergeErrorPath:[u,...c.mergeErrorPath]};o[u]=c.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const i=[];for(let r=0;r<e.length;r++){const o=e[r],u=t[r],c=Rh(o,u);if(!c.valid)return{valid:!1,mergeErrorPath:[r,...c.mergeErrorPath]};i.push(c.data)}return{valid:!0,data:i}}return{valid:!1,mergeErrorPath:[]}}function Uv(e,t,i){const r=new Map;let o;for(const h of t.issues)if(h.code==="unrecognized_keys"){o??(o=h);for(const m of h.keys)r.has(m)||r.set(m,{}),r.get(m).l=!0}else e.issues.push(h);for(const h of i.issues)if(h.code==="unrecognized_keys")for(const m of h.keys)r.has(m)||r.set(m,{}),r.get(m).r=!0;else e.issues.push(h);const u=[...r].filter(([,h])=>h.l&&h.r).map(([h])=>h);if(u.length&&o&&e.issues.push({...o,keys:u}),as(e))return e;const c=Rh(t.value,i.value);if(!c.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);return e.value=c.data,e}const yk=X("$ZodRecord",(e,t)=>{at.init(e,t),e._zod.parse=(i,r)=>{const o=i.value;if(!us(o))return i.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),i;const u=[],c=t.keyType._zod.values;if(c){i.value={};const h=new Set;for(const g of c)if(typeof g=="string"||typeof g=="number"||typeof g=="symbol"){h.add(typeof g=="number"?g.toString():g);const y=t.valueType._zod.run({value:o[g],issues:[]},r);y instanceof Promise?u.push(y.then(x=>{x.issues.length&&i.issues.push(...is(g,x.issues)),i.value[g]=x.value})):(y.issues.length&&i.issues.push(...is(g,y.issues)),i.value[g]=y.value)}let m;for(const g in o)h.has(g)||(m=m??[],m.push(g));m&&m.length>0&&i.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:m})}else{i.value={};for(const h of Reflect.ownKeys(o)){if(h==="__proto__")continue;let m=t.keyType._zod.run({value:h,issues:[]},r);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof h=="string"&&t2.test(h)&&m.issues.length){const x=t.keyType._zod.run({value:Number(h),issues:[]},r);if(x instanceof Promise)throw new Error("Async schemas not supported in object keys currently");x.issues.length===0&&(m=x)}if(m.issues.length){t.mode==="loose"?i.value[h]=o[h]:i.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map(x=>Si(x,r,bi())),input:h,path:[h],inst:e});continue}const y=t.valueType._zod.run({value:o[h],issues:[]},r);y instanceof Promise?u.push(y.then(x=>{x.issues.length&&i.issues.push(...is(h,x.issues)),i.value[m.value]=x.value})):(y.issues.length&&i.issues.push(...is(h,y.issues)),i.value[m.value]=y.value)}}return u.length?Promise.all(u).then(()=>i):i}}),xk=X("$ZodEnum",(e,t)=>{at.init(e,t);const i=FS(t.entries),r=new Set(i);e._zod.values=r,e._zod.pattern=new RegExp(`^(${i.filter(o=>CM.has(typeof o)).map(o=>typeof o=="string"?cs(o):o.toString()).join("|")})$`),e._zod.parse=(o,u)=>{const c=o.value;return r.has(c)||o.issues.push({code:"invalid_value",values:i,input:c,inst:e}),o}}),vk=X("$ZodLiteral",(e,t)=>{if(at.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const i=new Set(t.values);e._zod.values=i,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?cs(r):r?cs(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const u=r.value;return i.has(u)||r.issues.push({code:"invalid_value",values:t.values,input:u,inst:e}),r}}),bk=X("$ZodTransform",(e,t)=>{at.init(e,t),e._zod.parse=(i,r)=>{if(r.direction==="backward")throw new qS(e.constructor.name);const o=t.transform(i.value,i);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(c=>(i.value=c,i));if(o instanceof Promise)throw new os;return i.value=o,i}});function Lv(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const u2=X("$ZodOptional",(e,t)=>{at.init(e,t),e._zod.optin="optional",e._zod.optout="optional",qe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),qe(e._zod,"pattern",()=>{const i=t.innerType._zod.pattern;return i?new RegExp(`^(${kp(i.source)})?$`):void 0}),e._zod.parse=(i,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(i,r);return o instanceof Promise?o.then(u=>Lv(u,i.value)):Lv(o,i.value)}return i.value===void 0?i:t.innerType._zod.run(i,r)}}),Sk=X("$ZodExactOptional",(e,t)=>{u2.init(e,t),qe(e._zod,"values",()=>t.innerType._zod.values),qe(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(i,r)=>t.innerType._zod.run(i,r)}),wk=X("$ZodNullable",(e,t)=>{at.init(e,t),qe(e._zod,"optin",()=>t.innerType._zod.optin),qe(e._zod,"optout",()=>t.innerType._zod.optout),qe(e._zod,"pattern",()=>{const i=t.innerType._zod.pattern;return i?new RegExp(`^(${kp(i.source)}|null)$`):void 0}),qe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(i,r)=>i.value===null?i:t.innerType._zod.run(i,r)}),jk=X("$ZodDefault",(e,t)=>{at.init(e,t),e._zod.optin="optional",qe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(i,r)=>{if(r.direction==="backward")return t.innerType._zod.run(i,r);if(i.value===void 0)return i.value=t.defaultValue,i;const o=t.innerType._zod.run(i,r);return o instanceof Promise?o.then(u=>Bv(u,t)):Bv(o,t)}});function Bv(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Tk=X("$ZodPrefault",(e,t)=>{at.init(e,t),e._zod.optin="optional",qe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(i,r)=>(r.direction==="backward"||i.value===void 0&&(i.value=t.defaultValue),t.innerType._zod.run(i,r))}),Nk=X("$ZodNonOptional",(e,t)=>{at.init(e,t),qe(e._zod,"values",()=>{const i=t.innerType._zod.values;return i?new Set([...i].filter(r=>r!==void 0)):void 0}),e._zod.parse=(i,r)=>{const o=t.innerType._zod.run(i,r);return o instanceof Promise?o.then(u=>Vv(u,e)):Vv(o,e)}});function Vv(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Ek=X("$ZodCatch",(e,t)=>{at.init(e,t),qe(e._zod,"optin",()=>t.innerType._zod.optin),qe(e._zod,"optout",()=>t.innerType._zod.optout),qe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(i,r)=>{if(r.direction==="backward")return t.innerType._zod.run(i,r);const o=t.innerType._zod.run(i,r);return o instanceof Promise?o.then(u=>(i.value=u.value,u.issues.length&&(i.value=t.catchValue({...i,error:{issues:u.issues.map(c=>Si(c,r,bi()))},input:i.value}),i.issues=[]),i)):(i.value=o.value,o.issues.length&&(i.value=t.catchValue({...i,error:{issues:o.issues.map(u=>Si(u,r,bi()))},input:i.value}),i.issues=[]),i)}}),Ck=X("$ZodPipe",(e,t)=>{at.init(e,t),qe(e._zod,"values",()=>t.in._zod.values),qe(e._zod,"optin",()=>t.in._zod.optin),qe(e._zod,"optout",()=>t.out._zod.optout),qe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(i,r)=>{if(r.direction==="backward"){const u=t.out._zod.run(i,r);return u instanceof Promise?u.then(c=>bu(c,t.in,r)):bu(u,t.in,r)}const o=t.in._zod.run(i,r);return o instanceof Promise?o.then(u=>bu(u,t.out,r)):bu(o,t.out,r)}});function bu(e,t,i){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},i)}const Ak=X("$ZodReadonly",(e,t)=>{at.init(e,t),qe(e._zod,"propValues",()=>t.innerType._zod.propValues),qe(e._zod,"values",()=>t.innerType._zod.values),qe(e._zod,"optin",()=>{var i,r;return(r=(i=t.innerType)==null?void 0:i._zod)==null?void 0:r.optin}),qe(e._zod,"optout",()=>{var i,r;return(r=(i=t.innerType)==null?void 0:i._zod)==null?void 0:r.optout}),e._zod.parse=(i,r)=>{if(r.direction==="backward")return t.innerType._zod.run(i,r);const o=t.innerType._zod.run(i,r);return o instanceof Promise?o.then(Hv):Hv(o)}});function Hv(e){return e.value=Object.freeze(e.value),e}const _k=X("$ZodLazy",(e,t)=>{at.init(e,t),qe(e._zod,"innerType",()=>t.getter()),qe(e._zod,"pattern",()=>{var i,r;return(r=(i=e._zod.innerType)==null?void 0:i._zod)==null?void 0:r.pattern}),qe(e._zod,"propValues",()=>{var i,r;return(r=(i=e._zod.innerType)==null?void 0:i._zod)==null?void 0:r.propValues}),qe(e._zod,"optin",()=>{var i,r;return((r=(i=e._zod.innerType)==null?void 0:i._zod)==null?void 0:r.optin)??void 0}),qe(e._zod,"optout",()=>{var i,r;return((r=(i=e._zod.innerType)==null?void 0:i._zod)==null?void 0:r.optout)??void 0}),e._zod.parse=(i,r)=>e._zod.innerType._zod.run(i,r)}),zk=X("$ZodCustom",(e,t)=>{fn.init(e,t),at.init(e,t),e._zod.parse=(i,r)=>i,e._zod.check=i=>{const r=i.value,o=t.fn(r);if(o instanceof Promise)return o.then(u=>$v(u,i,r,e));$v(o,i,r,e)}});function $v(e,t,i,r){if(!e){const o={code:"custom",input:i,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Lo(o))}}var Zv;class Mk{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...i){const r=i[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const i=this._map.get(t);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(t),this}get(t){const i=t._zod.parent;if(i){const r={...this.get(i)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Rk(){return new Mk}(Zv=globalThis).__zod_globalRegistry??(Zv.__zod_globalRegistry=Rk());const So=globalThis.__zod_globalRegistry;function kk(e,t){return new e({type:"string",...be(t)})}function Ok(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...be(t)})}function Pv(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...be(t)})}function Dk(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...be(t)})}function Uk(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...be(t)})}function Lk(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...be(t)})}function Bk(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...be(t)})}function Vk(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...be(t)})}function Hk(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...be(t)})}function $k(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...be(t)})}function Zk(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...be(t)})}function Pk(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...be(t)})}function qk(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...be(t)})}function Yk(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...be(t)})}function Fk(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...be(t)})}function Gk(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...be(t)})}function Xk(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...be(t)})}function Ik(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...be(t)})}function Jk(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...be(t)})}function Kk(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...be(t)})}function Qk(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...be(t)})}function Wk(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...be(t)})}function eO(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...be(t)})}function tO(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...be(t)})}function nO(e,t){return new e({type:"string",format:"date",check:"string_format",...be(t)})}function aO(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...be(t)})}function iO(e,t){return new e({type:"string",format:"duration",check:"string_format",...be(t)})}function rO(e,t){return new e({type:"number",checks:[],...be(t)})}function sO(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...be(t)})}function oO(e,t){return new e({type:"boolean",...be(t)})}function lO(e,t){return new e({type:"null",...be(t)})}function uO(e){return new e({type:"any"})}function cO(e){return new e({type:"unknown"})}function fO(e,t){return new e({type:"never",...be(t)})}function qv(e,t){return new a2({check:"less_than",...be(t),value:e,inclusive:!1})}function Wd(e,t){return new a2({check:"less_than",...be(t),value:e,inclusive:!0})}function Yv(e,t){return new i2({check:"greater_than",...be(t),value:e,inclusive:!1})}function eh(e,t){return new i2({check:"greater_than",...be(t),value:e,inclusive:!0})}function Fv(e,t){return new SR({check:"multiple_of",...be(t),value:e})}function c2(e,t){return new jR({check:"max_length",...be(t),maximum:e})}function Fu(e,t){return new TR({check:"min_length",...be(t),minimum:e})}function f2(e,t){return new NR({check:"length_equals",...be(t),length:e})}function dO(e,t){return new ER({check:"string_format",format:"regex",...be(t),pattern:e})}function hO(e){return new CR({check:"string_format",format:"lowercase",...be(e)})}function pO(e){return new AR({check:"string_format",format:"uppercase",...be(e)})}function mO(e,t){return new _R({check:"string_format",format:"includes",...be(t),includes:e})}function gO(e,t){return new zR({check:"string_format",format:"starts_with",...be(t),prefix:e})}function yO(e,t){return new MR({check:"string_format",format:"ends_with",...be(t),suffix:e})}function ms(e){return new RR({check:"overwrite",tx:e})}function xO(e){return ms(t=>t.normalize(e))}function vO(){return ms(e=>e.trim())}function bO(){return ms(e=>e.toLowerCase())}function SO(){return ms(e=>e.toUpperCase())}function wO(){return ms(e=>NM(e))}function jO(e,t,i){return new e({type:"array",element:t,...be(i)})}function TO(e,t,i){return new e({type:"custom",check:"custom",fn:t,...be(i)})}function NO(e){const t=EO(i=>(i.addIssue=r=>{if(typeof r=="string")i.issues.push(Lo(r,i.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),i.issues.push(Lo(o))}},e(i.value,i)));return t}function EO(e,t){const i=new fn({check:"custom",...be(t)});return i._zod.check=e,i}function d2(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??So,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function Ct(e,t,i={path:[],schemaPath:[]}){var y,x;var r;const o=e._zod.def,u=t.seen.get(e);if(u)return u.count++,i.schemaPath.includes(e)&&(u.cycle=i.path),u.schema;const c={schema:{},count:1,cycle:void 0,path:i.path};t.seen.set(e,c);const h=(x=(y=e._zod).toJSONSchema)==null?void 0:x.call(y);if(h)c.schema=h;else{const b={...i,schemaPath:[...i.schemaPath,e],path:i.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,c.schema,b);else{const j=c.schema,N=t.processors[o.type];if(!N)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);N(e,t,j,b)}const S=e._zod.parent;S&&(c.ref||(c.ref=S),Ct(S,t,b),t.seen.get(S).isParent=!0)}const m=t.metadataRegistry.get(e);return m&&Object.assign(c.schema,m),t.io==="input"&&Wt(e)&&(delete c.schema.examples,delete c.schema.default),t.io==="input"&&c.schema._prefault&&((r=c.schema).default??(r.default=c.schema._prefault)),delete c.schema._prefault,t.seen.get(e).schema}function h2(e,t){var c,h,m,g;const i=e.seen.get(t);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const y of e.seen.entries()){const x=(c=e.metadataRegistry.get(y[0]))==null?void 0:c.id;if(x){const b=r.get(x);if(b&&b!==y[0])throw new Error(`Duplicate schema id "${x}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(x,y[0])}}const o=y=>{var N;const x=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const _=(N=e.external.registry.get(y[0]))==null?void 0:N.id,k=e.external.uri??(O=>O);if(_)return{ref:k(_)};const R=y[1].defId??y[1].schema.id??`schema${e.counter++}`;return y[1].defId=R,{defId:R,ref:`${k("__shared")}#/${x}/${R}`}}if(y[1]===i)return{ref:"#"};const S=`#/${x}/`,j=y[1].schema.id??`__schema${e.counter++}`;return{defId:j,ref:S+j}},u=y=>{if(y[1].schema.$ref)return;const x=y[1],{ref:b,defId:S}=o(y);x.def={...x.schema},S&&(x.defId=S);const j=x.schema;for(const N in j)delete j[N];j.$ref=b};if(e.cycles==="throw")for(const y of e.seen.entries()){const x=y[1];if(x.cycle)throw new Error(`Cycle detected: #/${(h=x.cycle)==null?void 0:h.join("/")}/<root> 206 207Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const y of e.seen.entries()){const x=y[1];if(t===y[0]){u(y);continue}if(e.external){const S=(m=e.external.registry.get(y[0]))==null?void 0:m.id;if(t!==y[0]&&S){u(y);continue}}if((g=e.metadataRegistry.get(y[0]))==null?void 0:g.id){u(y);continue}if(x.cycle){u(y);continue}if(x.count>1&&e.reused==="ref"){u(y);continue}}}function p2(e,t){var c,h,m;const i=e.seen.get(t);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=g=>{const y=e.seen.get(g);if(y.ref===null)return;const x=y.def??y.schema,b={...x},S=y.ref;if(y.ref=null,S){r(S);const N=e.seen.get(S),_=N.schema;if(_.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(x.allOf=x.allOf??[],x.allOf.push(_)):Object.assign(x,_),Object.assign(x,b),g._zod.parent===S)for(const R in x)R==="$ref"||R==="allOf"||R in b||delete x[R];if(_.$ref&&N.def)for(const R in x)R==="$ref"||R==="allOf"||R in N.def&&JSON.stringify(x[R])===JSON.stringify(N.def[R])&&delete x[R]}const j=g._zod.parent;if(j&&j!==S){r(j);const N=e.seen.get(j);if(N!=null&&N.schema.$ref&&(x.$ref=N.schema.$ref,N.def))for(const _ in x)_==="$ref"||_==="allOf"||_ in N.def&&JSON.stringify(x[_])===JSON.stringify(N.def[_])&&delete x[_]}e.override({zodSchema:g,jsonSchema:x,path:y.path??[]})};for(const g of[...e.seen.entries()].reverse())r(g[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(c=e.external)!=null&&c.uri){const g=(h=e.external.registry.get(t))==null?void 0:h.id;if(!g)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(g)}Object.assign(o,i.def??i.schema);const u=((m=e.external)==null?void 0:m.defs)??{};for(const g of e.seen.entries()){const y=g[1];y.def&&y.defId&&(u[y.defId]=y.def)}e.external||Object.keys(u).length>0&&(e.target==="draft-2020-12"?o.$defs=u:o.definitions=u);try{const g=JSON.parse(JSON.stringify(o));return Object.defineProperty(g,"~standard",{value:{...t["~standard"],jsonSchema:{input:Gu(t,"input",e.processors),output:Gu(t,"output",e.processors)}},enumerable:!1,writable:!1}),g}catch{throw new Error("Error converting schema to JSON.")}}function Wt(e,t){const i=t??{seen:new Set};if(i.seen.has(e))return!1;i.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Wt(r.element,i);if(r.type==="set")return Wt(r.valueType,i);if(r.type==="lazy")return Wt(r.getter(),i);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Wt(r.innerType,i);if(r.type==="intersection")return Wt(r.left,i)||Wt(r.right,i);if(r.type==="record"||r.type==="map")return Wt(r.keyType,i)||Wt(r.valueType,i);if(r.type==="pipe")return Wt(r.in,i)||Wt(r.out,i);if(r.type==="object"){for(const o in r.shape)if(Wt(r.shape[o],i))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(Wt(o,i))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(Wt(o,i))return!0;return!!(r.rest&&Wt(r.rest,i))}return!1}const CO=(e,t={})=>i=>{const r=d2({...i,processors:t});return Ct(e,r),h2(r,e),p2(r,e)},Gu=(e,t,i={})=>r=>{const{libraryOptions:o,target:u}=r??{},c=d2({...o??{},target:u,io:t,processors:i});return Ct(e,c),h2(c,e),p2(c,e)},AO={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},_O=(e,t,i,r)=>{const o=i;o.type="string";const{minimum:u,maximum:c,format:h,patterns:m,contentEncoding:g}=e._zod.bag;if(typeof u=="number"&&(o.minLength=u),typeof c=="number"&&(o.maxLength=c),h&&(o.format=AO[h]??h,o.format===""&&delete o.format,h==="time"&&delete o.format),g&&(o.contentEncoding=g),m&&m.size>0){const y=[...m];y.length===1?o.pattern=y[0].source:y.length>1&&(o.allOf=[...y.map(x=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:x.source}))])}},zO=(e,t,i,r)=>{const o=i,{minimum:u,maximum:c,format:h,multipleOf:m,exclusiveMaximum:g,exclusiveMinimum:y}=e._zod.bag;typeof h=="string"&&h.includes("int")?o.type="integer":o.type="number",typeof y=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=y,o.exclusiveMinimum=!0):o.exclusiveMinimum=y),typeof u=="number"&&(o.minimum=u,typeof y=="number"&&t.target!=="draft-04"&&(y>=u?delete o.minimum:delete o.exclusiveMinimum)),typeof g=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=g,o.exclusiveMaximum=!0):o.exclusiveMaximum=g),typeof c=="number"&&(o.maximum=c,typeof g=="number"&&t.target!=="draft-04"&&(g<=c?delete o.maximum:delete o.exclusiveMaximum)),typeof m=="number"&&(o.multipleOf=m)},MO=(e,t,i,r)=>{i.type="boolean"},RO=(e,t,i,r)=>{t.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},kO=(e,t,i,r)=>{i.not={}},OO=(e,t,i,r)=>{},DO=(e,t,i,r)=>{},UO=(e,t,i,r)=>{const o=e._zod.def,u=FS(o.entries);u.every(c=>typeof c=="number")&&(i.type="number"),u.every(c=>typeof c=="string")&&(i.type="string"),i.enum=u},LO=(e,t,i,r)=>{const o=e._zod.def,u=[];for(const c of o.values)if(c===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof c=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");u.push(Number(c))}else u.push(c);if(u.length!==0)if(u.length===1){const c=u[0];i.type=c===null?"null":typeof c,t.target==="draft-04"||t.target==="openapi-3.0"?i.enum=[c]:i.const=c}else u.every(c=>typeof c=="number")&&(i.type="number"),u.every(c=>typeof c=="string")&&(i.type="string"),u.every(c=>typeof c=="boolean")&&(i.type="boolean"),u.every(c=>c===null)&&(i.type="null"),i.enum=u},BO=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},VO=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},HO=(e,t,i,r)=>{const o=i,u=e._zod.def,{minimum:c,maximum:h}=e._zod.bag;typeof c=="number"&&(o.minItems=c),typeof h=="number"&&(o.maxItems=h),o.type="array",o.items=Ct(u.element,t,{...r,path:[...r.path,"items"]})},$O=(e,t,i,r)=>{var g;const o=i,u=e._zod.def;o.type="object",o.properties={};const c=u.shape;for(const y in c)o.properties[y]=Ct(c[y],t,{...r,path:[...r.path,"properties",y]});const h=new Set(Object.keys(c)),m=new Set([...h].filter(y=>{const x=u.shape[y]._zod;return t.io==="input"?x.optin===void 0:x.optout===void 0}));m.size>0&&(o.required=Array.from(m)),((g=u.catchall)==null?void 0:g._zod.def.type)==="never"?o.additionalProperties=!1:u.catchall?u.catchall&&(o.additionalProperties=Ct(u.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},ZO=(e,t,i,r)=>{const o=e._zod.def,u=o.inclusive===!1,c=o.options.map((h,m)=>Ct(h,t,{...r,path:[...r.path,u?"oneOf":"anyOf",m]}));u?i.oneOf=c:i.anyOf=c},PO=(e,t,i,r)=>{const o=e._zod.def,u=Ct(o.left,t,{...r,path:[...r.path,"allOf",0]}),c=Ct(o.right,t,{...r,path:[...r.path,"allOf",1]}),h=g=>"allOf"in g&&Object.keys(g).length===1,m=[...h(u)?u.allOf:[u],...h(c)?c.allOf:[c]];i.allOf=m},qO=(e,t,i,r)=>{const o=i,u=e._zod.def;o.type="object";const c=u.keyType,h=c._zod.bag,m=h==null?void 0:h.patterns;if(u.mode==="loose"&&m&&m.size>0){const y=Ct(u.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const x of m)o.patternProperties[x.source]=y}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Ct(u.keyType,t,{...r,path:[...r.path,"propertyNames"]})),o.additionalProperties=Ct(u.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const g=c._zod.values;if(g){const y=[...g].filter(x=>typeof x=="string"||typeof x=="number");y.length>0&&(o.required=y)}},YO=(e,t,i,r)=>{const o=e._zod.def,u=Ct(o.innerType,t,r),c=t.seen.get(e);t.target==="openapi-3.0"?(c.ref=o.innerType,i.nullable=!0):i.anyOf=[u,{type:"null"}]},FO=(e,t,i,r)=>{const o=e._zod.def;Ct(o.innerType,t,r);const u=t.seen.get(e);u.ref=o.innerType},GO=(e,t,i,r)=>{const o=e._zod.def;Ct(o.innerType,t,r);const u=t.seen.get(e);u.ref=o.innerType,i.default=JSON.parse(JSON.stringify(o.defaultValue))},XO=(e,t,i,r)=>{const o=e._zod.def;Ct(o.innerType,t,r);const u=t.seen.get(e);u.ref=o.innerType,t.io==="input"&&(i._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},IO=(e,t,i,r)=>{const o=e._zod.def;Ct(o.innerType,t,r);const u=t.seen.get(e);u.ref=o.innerType;let c;try{c=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}i.default=c},JO=(e,t,i,r)=>{const o=e._zod.def,u=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;Ct(u,t,r);const c=t.seen.get(e);c.ref=u},KO=(e,t,i,r)=>{const o=e._zod.def;Ct(o.innerType,t,r);const u=t.seen.get(e);u.ref=o.innerType,i.readOnly=!0},m2=(e,t,i,r)=>{const o=e._zod.def;Ct(o.innerType,t,r);const u=t.seen.get(e);u.ref=o.innerType},QO=(e,t,i,r)=>{const o=e._zod.innerType;Ct(o,t,r);const u=t.seen.get(e);u.ref=o},WO=X("ZodISODateTime",(e,t)=>{FR.init(e,t),gt.init(e,t)});function eD(e){return tO(WO,e)}const tD=X("ZodISODate",(e,t)=>{GR.init(e,t),gt.init(e,t)});function nD(e){return nO(tD,e)}const aD=X("ZodISOTime",(e,t)=>{XR.init(e,t),gt.init(e,t)});function iD(e){return aO(aD,e)}const rD=X("ZodISODuration",(e,t)=>{IR.init(e,t),gt.init(e,t)});function sD(e){return iO(rD,e)}const oD=(e,t)=>{JS.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:i=>BM(e,i)},flatten:{value:i=>LM(e,i)},addIssue:{value:i=>{e.issues.push(i),e.message=JSON.stringify(e.issues,Mh,2)}},addIssues:{value:i=>{e.issues.push(...i),e.message=JSON.stringify(e.issues,Mh,2)}},isEmpty:{get(){return e.issues.length===0}}})},Vn=X("ZodError",oD,{Parent:Error}),lD=Dp(Vn),uD=Up(Vn),cD=tc(Vn),fD=nc(Vn),dD=$M(Vn),hD=ZM(Vn),pD=PM(Vn),mD=qM(Vn),gD=YM(Vn),yD=FM(Vn),xD=GM(Vn),vD=XM(Vn),it=X("ZodType",(e,t)=>(at.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Gu(e,"input"),output:Gu(e,"output")}}),e.toJSONSchema=CO(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...i)=>e.clone(Ti(t,{checks:[...t.checks??[],...i.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(i,r)=>Ni(e,i,r),e.brand=()=>e,e.register=((i,r)=>(i.add(e,r),e)),e.parse=(i,r)=>lD(e,i,r,{callee:e.parse}),e.safeParse=(i,r)=>cD(e,i,r),e.parseAsync=async(i,r)=>uD(e,i,r,{callee:e.parseAsync}),e.safeParseAsync=async(i,r)=>fD(e,i,r),e.spa=e.safeParseAsync,e.encode=(i,r)=>dD(e,i,r),e.decode=(i,r)=>hD(e,i,r),e.encodeAsync=async(i,r)=>pD(e,i,r),e.decodeAsync=async(i,r)=>mD(e,i,r),e.safeEncode=(i,r)=>gD(e,i,r),e.safeDecode=(i,r)=>yD(e,i,r),e.safeEncodeAsync=async(i,r)=>xD(e,i,r),e.safeDecodeAsync=async(i,r)=>vD(e,i,r),e.refine=(i,r)=>e.check(x6(i,r)),e.superRefine=i=>e.check(v6(i)),e.overwrite=i=>e.check(ms(i)),e.optional=()=>Iv(e),e.exactOptional=()=>a6(e),e.nullable=()=>Jv(e),e.nullish=()=>Iv(Jv(e)),e.nonoptional=i=>u6(e,i),e.array=()=>La(e),e.or=i=>fa([e,i]),e.and=i=>KD(e,i),e.transform=i=>Kv(e,t6(i)),e.default=i=>s6(e,i),e.prefault=i=>l6(e,i),e.catch=i=>f6(e,i),e.pipe=i=>Kv(e,i),e.readonly=()=>p6(e),e.describe=i=>{const r=e.clone();return So.add(r,{description:i}),r},Object.defineProperty(e,"description",{get(){var i;return(i=So.get(e))==null?void 0:i.description},configurable:!0}),e.meta=(...i)=>{if(i.length===0)return So.get(e);const r=e.clone();return So.add(r,i[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=i=>i(e),e)),g2=X("_ZodString",(e,t)=>{Lp.init(e,t),it.init(e,t),e._zod.processJSONSchema=(r,o,u)=>_O(e,r,o);const i=e._zod.bag;e.format=i.format??null,e.minLength=i.minimum??null,e.maxLength=i.maximum??null,e.regex=(...r)=>e.check(dO(...r)),e.includes=(...r)=>e.check(mO(...r)),e.startsWith=(...r)=>e.check(gO(...r)),e.endsWith=(...r)=>e.check(yO(...r)),e.min=(...r)=>e.check(Fu(...r)),e.max=(...r)=>e.check(c2(...r)),e.length=(...r)=>e.check(f2(...r)),e.nonempty=(...r)=>e.check(Fu(1,...r)),e.lowercase=r=>e.check(hO(r)),e.uppercase=r=>e.check(pO(r)),e.trim=()=>e.check(vO()),e.normalize=(...r)=>e.check(xO(...r)),e.toLowerCase=()=>e.check(bO()),e.toUpperCase=()=>e.check(SO()),e.slugify=()=>e.check(wO())}),bD=X("ZodString",(e,t)=>{Lp.init(e,t),g2.init(e,t),e.email=i=>e.check(Ok(SD,i)),e.url=i=>e.check(Vk(wD,i)),e.jwt=i=>e.check(eO(LD,i)),e.emoji=i=>e.check(Hk(jD,i)),e.guid=i=>e.check(Pv(Gv,i)),e.uuid=i=>e.check(Dk(Su,i)),e.uuidv4=i=>e.check(Uk(Su,i)),e.uuidv6=i=>e.check(Lk(Su,i)),e.uuidv7=i=>e.check(Bk(Su,i)),e.nanoid=i=>e.check($k(TD,i)),e.guid=i=>e.check(Pv(Gv,i)),e.cuid=i=>e.check(Zk(ND,i)),e.cuid2=i=>e.check(Pk(ED,i)),e.ulid=i=>e.check(qk(CD,i)),e.base64=i=>e.check(Kk(OD,i)),e.base64url=i=>e.check(Qk(DD,i)),e.xid=i=>e.check(Yk(AD,i)),e.ksuid=i=>e.check(Fk(_D,i)),e.ipv4=i=>e.check(Gk(zD,i)),e.ipv6=i=>e.check(Xk(MD,i)),e.cidrv4=i=>e.check(Ik(RD,i)),e.cidrv6=i=>e.check(Jk(kD,i)),e.e164=i=>e.check(Wk(UD,i)),e.datetime=i=>e.check(eD(i)),e.date=i=>e.check(nD(i)),e.time=i=>e.check(iD(i)),e.duration=i=>e.check(sD(i))});function we(e){return kk(bD,e)}const gt=X("ZodStringFormat",(e,t)=>{ct.init(e,t),g2.init(e,t)}),SD=X("ZodEmail",(e,t)=>{LR.init(e,t),gt.init(e,t)}),Gv=X("ZodGUID",(e,t)=>{DR.init(e,t),gt.init(e,t)}),Su=X("ZodUUID",(e,t)=>{UR.init(e,t),gt.init(e,t)}),wD=X("ZodURL",(e,t)=>{BR.init(e,t),gt.init(e,t)}),jD=X("ZodEmoji",(e,t)=>{VR.init(e,t),gt.init(e,t)}),TD=X("ZodNanoID",(e,t)=>{HR.init(e,t),gt.init(e,t)}),ND=X("ZodCUID",(e,t)=>{$R.init(e,t),gt.init(e,t)}),ED=X("ZodCUID2",(e,t)=>{ZR.init(e,t),gt.init(e,t)}),CD=X("ZodULID",(e,t)=>{PR.init(e,t),gt.init(e,t)}),AD=X("ZodXID",(e,t)=>{qR.init(e,t),gt.init(e,t)}),_D=X("ZodKSUID",(e,t)=>{YR.init(e,t),gt.init(e,t)}),zD=X("ZodIPv4",(e,t)=>{JR.init(e,t),gt.init(e,t)}),MD=X("ZodIPv6",(e,t)=>{KR.init(e,t),gt.init(e,t)}),RD=X("ZodCIDRv4",(e,t)=>{QR.init(e,t),gt.init(e,t)}),kD=X("ZodCIDRv6",(e,t)=>{WR.init(e,t),gt.init(e,t)}),OD=X("ZodBase64",(e,t)=>{ek.init(e,t),gt.init(e,t)}),DD=X("ZodBase64URL",(e,t)=>{nk.init(e,t),gt.init(e,t)}),UD=X("ZodE164",(e,t)=>{ak.init(e,t),gt.init(e,t)}),LD=X("ZodJWT",(e,t)=>{rk.init(e,t),gt.init(e,t)}),y2=X("ZodNumber",(e,t)=>{s2.init(e,t),it.init(e,t),e._zod.processJSONSchema=(r,o,u)=>zO(e,r,o),e.gt=(r,o)=>e.check(Yv(r,o)),e.gte=(r,o)=>e.check(eh(r,o)),e.min=(r,o)=>e.check(eh(r,o)),e.lt=(r,o)=>e.check(qv(r,o)),e.lte=(r,o)=>e.check(Wd(r,o)),e.max=(r,o)=>e.check(Wd(r,o)),e.int=r=>e.check(Xv(r)),e.safe=r=>e.check(Xv(r)),e.positive=r=>e.check(Yv(0,r)),e.nonnegative=r=>e.check(eh(0,r)),e.negative=r=>e.check(qv(0,r)),e.nonpositive=r=>e.check(Wd(0,r)),e.multipleOf=(r,o)=>e.check(Fv(r,o)),e.step=(r,o)=>e.check(Fv(r,o)),e.finite=()=>e;const i=e._zod.bag;e.minValue=Math.max(i.minimum??Number.NEGATIVE_INFINITY,i.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(i.maximum??Number.POSITIVE_INFINITY,i.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),e.isFinite=!0,e.format=i.format??null});function Go(e){return rO(y2,e)}const BD=X("ZodNumberFormat",(e,t)=>{sk.init(e,t),y2.init(e,t)});function Xv(e){return sO(BD,e)}const VD=X("ZodBoolean",(e,t)=>{ok.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>MO(e,i,r)});function Xo(e){return oO(VD,e)}const HD=X("ZodNull",(e,t)=>{lk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>RO(e,i,r)});function $D(e){return lO(HD,e)}const ZD=X("ZodAny",(e,t)=>{uk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>OO()});function PD(){return uO(ZD)}const qD=X("ZodUnknown",(e,t)=>{ck.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>DO()});function Ua(){return cO(qD)}const YD=X("ZodNever",(e,t)=>{fk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>kO(e,i,r)});function FD(e){return fO(YD,e)}const GD=X("ZodArray",(e,t)=>{dk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>HO(e,i,r,o),e.element=t.element,e.min=(i,r)=>e.check(Fu(i,r)),e.nonempty=i=>e.check(Fu(1,i)),e.max=(i,r)=>e.check(c2(i,r)),e.length=(i,r)=>e.check(f2(i,r)),e.unwrap=()=>e.element});function La(e,t){return jO(GD,e,t)}const XD=X("ZodObject",(e,t)=>{pk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>$O(e,i,r,o),qe(e,"shape",()=>t.shape),e.keyof=()=>Da(Object.keys(e._zod.def.shape)),e.catchall=i=>e.clone({...e._zod.def,catchall:i}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ua()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ua()}),e.strict=()=>e.clone({...e._zod.def,catchall:FD()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=i=>RM(e,i),e.safeExtend=i=>kM(e,i),e.merge=i=>OM(e,i),e.pick=i=>zM(e,i),e.omit=i=>MM(e,i),e.partial=(...i)=>DM(x2,e,i[0]),e.required=(...i)=>UM(v2,e,i[0])});function et(e,t){const i={type:"object",shape:e??{},...be(t)};return new XD(i)}const ID=X("ZodUnion",(e,t)=>{mk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>ZO(e,i,r,o),e.options=t.options});function fa(e,t){return new ID({type:"union",options:e,...be(t)})}const JD=X("ZodIntersection",(e,t)=>{gk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>PO(e,i,r,o)});function KD(e,t){return new JD({type:"intersection",left:e,right:t})}const QD=X("ZodRecord",(e,t)=>{yk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>qO(e,i,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function or(e,t,i){return new QD({type:"record",keyType:e,valueType:t,...be(i)})}const kh=X("ZodEnum",(e,t)=>{xk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(r,o,u)=>UO(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const i=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const u={};for(const c of r)if(i.has(c))u[c]=t.entries[c];else throw new Error(`Key ${c} not found in enum`);return new kh({...t,checks:[],...be(o),entries:u})},e.exclude=(r,o)=>{const u={...t.entries};for(const c of r)if(i.has(c))delete u[c];else throw new Error(`Key ${c} not found in enum`);return new kh({...t,checks:[],...be(o),entries:u})}});function Da(e,t){const i=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new kh({type:"enum",entries:i,...be(t)})}const WD=X("ZodLiteral",(e,t)=>{vk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>LO(e,i,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
207(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Bp(e,t){return new WD({type:"literal",values:Array.isArray(e)?e:[e],...be(t)})}const e6=X("ZodTransform",(e,t)=>{bk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>VO(e,i),e._zod.parse=(i,r)=>{if(r.direction==="backward")throw new qS(e.constructor.name);i.addIssue=u=>{if(typeof u=="string")i.issues.push(Lo(u,i.value,t));else{const c=u;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=i.value),c.inst??(c.inst=e),i.issues.push(Lo(c))}};const o=t.transform(i.value,i);return o instanceof Promise?o.then(u=>(i.value=u,i)):(i.value=o,i)}});function t6(e){return new e6({type:"transform",transform:e})}const x2=X("ZodOptional",(e,t)=>{u2.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>m2(e,i,r,o),e.unwrap=()=>e._zod.def.innerType});function Iv(e){return new x2({type:"optional",innerType:e})}const n6=X("ZodExactOptional",(e,t)=>{Sk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>m2(e,i,r,o),e.unwrap=()=>e._zod.def.innerType});function a6(e){return new n6({type:"optional",innerType:e})}const i6=X("ZodNullable",(e,t)=>{wk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>YO(e,i,r,o),e.unwrap=()=>e._zod.def.innerType});function Jv(e){return new i6({type:"nullable",innerType:e})}const r6=X("ZodDefault",(e,t)=>{jk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>GO(e,i,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function s6(e,t){return new r6({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():XS(t)}})}const o6=X("ZodPrefault",(e,t)=>{Tk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>XO(e,i,r,o),e.unwrap=()=>e._zod.def.innerType});function l6(e,t){return new o6({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():XS(t)}})}const v2=X("ZodNonOptional",(e,t)=>{Nk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>FO(e,i,r,o),e.unwrap=()=>e._zod.def.innerType});function u6(e,t){return new v2({type:"nonoptional",innerType:e,...be(t)})}const c6=X("ZodCatch",(e,t)=>{Ek.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>IO(e,i,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function f6(e,t){return new c6({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const d6=X("ZodPipe",(e,t)=>{Ck.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>JO(e,i,r,o),e.in=t.in,e.out=t.out});function Kv(e,t){return new d6({type:"pipe",in:e,out:t})}const h6=X("ZodReadonly",(e,t)=>{Ak.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>KO(e,i,r,o),e.unwrap=()=>e._zod.def.innerType});function p6(e){return new h6({type:"readonly",innerType:e})}const m6=X("ZodLazy",(e,t)=>{_k.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>QO(e,i,r,o),e.unwrap=()=>e._zod.def.getter()});function g6(e){return new m6({type:"lazy",getter:e})}const y6=X("ZodCustom",(e,t)=>{zk.init(e,t),it.init(e,t),e._zod.processJSONSchema=(i,r,o)=>BO(e,i)});function x6(e,t={}){return TO(y6,e,t)}function v6(e){return NO(e)}var b2=fa([we(),Go(),Xo(),$D(),et({$state:we()})]);fa([we(),et({$state:we()})]);fa([Go(),et({$state:we()})]);fa([Xo(),et({$state:we()})]);function Vp(e,t){if(e!=null)return typeof e=="object"&&"$state"in e?wn(t,e.$state):e}function b6(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function ic(e){return(e.startsWith("/")?e.slice(1).split("/"):e.split("/")).map(b6)}function wn(e,t){if(!t||t==="/")return e;const i=ic(t);let r=e;for(const o of i){if(r==null)return;if(Array.isArray(r)){const u=parseInt(o,10);r=r[u]}else if(typeof r=="object")r=r[o];else return}return r}function S2(e){return/^\d+$/.test(e)}function Oh(e,t,i){const r=ic(t);if(r.length===0)return;let o=e;for(let c=0;c<r.length-1;c++){const h=r[c],m=r[c+1],g=m!==void 0&&(S2(m)||m==="-");if(Array.isArray(o)){const y=parseInt(h,10);(o[y]===void 0||typeof o[y]!="object")&&(o[y]=g?[]:{}),o=o[y]}else(!(h in o)||typeof o[h]!="object")&&(o[h]=g?[]:{}),o=o[h]}const u=r[r.length-1];if(Array.isArray(o))if(u==="-")o.push(i);else{const c=parseInt(u,10);o[c]=i}else o[u]=i}function th(e,t,i){const r=ic(t);
207if(r.length===0)return;let o=e;for(let c=0;c<r.length-1;c++){const h=r[c],m=r[c+1],g=m!==void 0&&(S2(m)||m==="-");if(Array.isArray(o)){const y=parseInt(h,10);(o[y]===void 0||typeof o[y]!="object")&&(o[y]=g?[]:{}),o=o[y]}else(!(h in o)||typeof o[h]!="object")&&(o[h]=g?[]:{}),o=o[h]}const u=r[r.length-1];if(Array.isArray(o))if(u==="-")o.push(i);else{const c=parseInt(u,10);o.splice(c,0,i)}else o[u]=i}function Qv(e,t){const i=ic(t);if(i.length===0)return;let r=e;for(let u=0;u<i.length-1;u++){const c=i[u];if(Array.isArray(r)){const h=parseInt(c,10);if(r[h]===void 0||typeof r[h]!="object")return;r=r[h]}else{if(!(c in r)||typeof r[c]!="object")return;r=r[c]}}const o=i[i.length-1];if(Array.isArray(r)){const u=parseInt(o,10);u>=0&&u<r.length&&r.splice(u,1)}else delete r[o]}function Dh(e,t){if(e===t)return!0;if(e===null||t===null||typeof e!=typeof t||typeof e!="object")return!1;if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:e.every((c,h)=>Dh(c,t[h]));const i=e,r=t,o=Object.keys(i),u=Object.keys(r);return o.length!==u.length?!1:o.every(c=>Dh(i[c],r[c]))}function S6(e,t){switch(t.op){case"add":th(e,t.path,t.value);break;case"replace":Oh(e,t.path,t.value);break;case"remove":Qv(e,t.path);break;case"move":{if(!t.from)break;const i=wn(e,t.from);Qv(e,t.from),th(e,t.path,i);break}case"copy":{if(!t.from)break;const i=wn(e,t.from);th(e,t.path,i);break}case"test":{const i=wn(e,t.path);if(!Dh(i,t.value))throw new Error(`Test operation failed: value at "${t.path}" does not match`);break}}return e}function Wv(e,t){return S6(e,t),e}var wu=fa([Go(),et({$state:we()})]),Hp={eq:Ua().optional(),neq:Ua().optional(),gt:wu.optional(),gte:wu.optional(),lt:wu.optional(),lte:wu.optional(),not:Bp(!0).optional()},w6=et({$state:we(),...Hp}),j6=et({$item:we(),...Hp}),T6=et({$index:Bp(!0),...Hp}),e1=fa([w6,j6,T6]),Uh=g6(()=>fa([Xo(),e1,La(e1),et({$and:La(Uh)}),et({$or:La(Uh)})]));function Gr(e,t){return typeof e=="object"&&e!==null&&"$state"in e&&typeof e.$state=="string"?wn(t.stateModel,e.$state):e}function N6(e){return"$item"in e}function E6(e){return"$index"in e}function C6(e,t){return E6(e)?t.repeatIndex:N6(e)?t.repeatItem===void 0?void 0:e.$item===""?t.repeatItem:wn(t.repeatItem,e.$item):wn(t.stateModel,e.$state)}function t1(e,t){const i=C6(e,t);let r;if(e.eq!==void 0){const o=Gr(e.eq,t);r=i===o}else if(e.neq!==void 0){const o=Gr(e.neq,t);r=i!==o}else if(e.gt!==void 0){const o=Gr(e.gt,t);r=typeof i=="number"&&typeof o=="number"?i>o:!1}else if(e.gte!==void 0){const o=Gr(e.gte,t);r=typeof i=="number"&&typeof o=="number"?i>=o:!1}else if(e.lt!==void 0){const o=Gr(e.lt,t);r=typeof i=="number"&&typeof o=="number"?i<o:!1}else if(e.lte!==void 0){const o=Gr(e.lte,t);r=typeof i=="number"&&typeof o=="number"?i<=o:!1}else r=!!i;return e.not===!0?!r:r}function A6(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&"$and"in e}function _6(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&"$or"in e}function fs(e,t){return e===void 0?!0:typeof e=="boolean"?e:Array.isArray(e)?e.every(i=>t1(i,t)):A6(e)?e.$and.every(i=>fs(i,t)):_6(e)?e.$or.some(i=>fs(i,t)):t1(e,t)}function z6(e){return typeof e=="object"&&e!==null&&"$state"in e&&typeof e.$state=="string"}function w2(e){return typeof e=="object"&&e!==null&&"$item"in e&&typeof e.$item=="string"}function j2(e){return typeof e=="object"&&e!==null&&"$index"in e&&e.$index===!0}function T2(e){return typeof e=="object"&&e!==null&&"$bindState"in e&&typeof e.$bindState=="string"}function N2(e){return typeof e=="object"&&e!==null&&"$bindItem"in e&&typeof e.$bindItem=="string"}function M6(e){return typeof e=="object"&&e!==null&&"$cond"in e&&"$then"in e&&"$else"in e}function $p(e,t){if(t.repeatBasePath==null){console.warn(`$bindItem used outside repeat scope: "${e}"`);return}return e===""?t.repeatBasePath:t.repeatBasePath+"/"+e}function Ao(e,t){if(e==null)return e;if(z6(e))return wn(t.stateModel,e.$state);if(w2(e))return t.repeatItem===void 0?void 0:e.$item===""?t.repeatItem:wn(t.repeatItem,e.$item);if(j2(e))return t.repeatIndex;if(T2(e))return wn(t.stateModel,e.$bindState);if(N2(e)){const i=$p(e.$bindItem,t);return i===void 0?void 0:wn(t.stateModel,i)}if(M6(e)){const i=fs(e.$cond,t);return Ao(i?e.$then:e.$else,t)}if(Array.isArray(e))return e.map(i=>Ao(i,t));if(typeof e=="object"){const i={};for(const[r,o]of Object.entries(e))i[r]=Ao(o,t);return i}return e}function R6(e,t){const i={};for(const[r,o]of Object.entries(e))i[r]=Ao(o,t);return i}function k6(e,t){let i;for(const[r,o]of Object.entries(e))if(T2(o))i||(i={}),i[r]=o.$bindState;else if(N2(o)){const u=$p(o.$bindItem,t);u!==void 0&&(i||(i={}),i[r]=u)}return i}function O6(e,t){return w2(e)?$p(e.$item,t):j2(e)?t.repeatIndex:Ao(e,t)}var D6=et({title:we(),message:we(),confirmLabel:we().optional(),cancelLabel:we().optional(),variant:Da(["default","danger"]).optional()}),U6=fa([et({navigate:we()}),et({set:or(we(),Ua())}),et({action:we()})]),L6=fa([et({set:or(we(),Ua())}),et({action:we()})]);et({action:we(),params:or(we(),b2).optional(),confirm:D6.optional(),onSuccess:U6.optional(),onError:L6.optional(),preventDefault:Xo().optional()});function B6(e,t){const i={};if(e.params)for(const[o,u]of Object.entries(e.params))i[o]=Vp(u,t);let r=e.confirm;return r&&(r={...r,message:n1(r.message,t),title:n1(r.title,t)}),{action:e.action,params:i,confirm:r,onSuccess:e.onSuccess,onError:e.onError}}function n1(e,t){return e.replace(/\$\{([^}]+)\}/g,(i,r)=>
207{const o=Vp({$state:r},t);return String(o??"")})}async function a1(e){const{action:t,handler:i,setState:r,navigate:o,executeAction:u}=e;try{if(await i(t.params),t.onSuccess)if("navigate"in t.onSuccess&&o)o(t.onSuccess.navigate);else if("set"in t.onSuccess)for(const[c,h]of Object.entries(t.onSuccess.set))r(c,h);else"action"in t.onSuccess&&u&&await u(t.onSuccess.action)}catch(c){if(t.onError)if("set"in t.onError)for(const[h,m]of Object.entries(t.onError.set)){const g=typeof m=="string"&&m==="$error.message"?c.message:m;r(h,g)}else"action"in t.onError&&u&&await u(t.onError.action);else throw c}}var V6=et({type:we(),args:or(we(),b2).optional(),message:we()});et({checks:La(V6).optional(),validateOn:Da(["change","blur","submit"]).optional(),enabled:Uh.optional()});var H6={required:e=>e==null?!1:typeof e=="string"?e.trim().length>0:Array.isArray(e)?e.length>0:!0,email:e=>typeof e!="string"?!1:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),minLength:(e,t)=>{if(typeof e!="string")return!1;const i=t==null?void 0:t.min;return typeof i!="number"?!1:e.length>=i},maxLength:(e,t)=>{if(typeof e!="string")return!1;const i=t==null?void 0:t.max;return typeof i!="number"?!1:e.length<=i},pattern:(e,t)=>{if(typeof e!="string")return!1;const i=t==null?void 0:t.pattern;if(typeof i!="string")return!1;try{return new RegExp(i).test(e)}catch{return!1}},min:(e,t)=>{if(typeof e!="number")return!1;const i=t==null?void 0:t.min;return typeof i!="number"?!1:e>=i},max:(e,t)=>{if(typeof e!="number")return!1;const i=t==null?void 0:t.max;return typeof i!="number"?!1:e<=i},numeric:e=>typeof e=="number"?!isNaN(e):typeof e=="string"?!isNaN(parseFloat(e)):!1,url:e=>{if(typeof e!="string")return!1;try{return new URL(e),!0}catch{return!1}},matches:(e,t)=>{const i=t==null?void 0:t.other;return e===i}};function $6(e,t){const{value:i,stateModel:r,customFunctions:o}=t,u={};if(e.args)for(const[m,g]of Object.entries(e.args))u[m]=Vp(g,r);const c=H6[e.type]??(o==null?void 0:o[e.type]);if(!c)return console.warn(`Unknown validation function: ${e.type}`),{type:e.type,valid:!0,message:e.message};const h=c(i,u);return{type:e.type,valid:h,message:e.message}}function Z6(e,t){const i=[],r=[];if(e.enabled&&!fs(e.enabled,{stateModel:t.stateModel}))return{valid:!0,errors:[],checks:[]};if(e.checks)for(const o of e.checks){const u=$6(o,t);i.push(u),u.valid||r.push(u.message)}return{valid:r.length===0,errors:r,checks:i}}function P6(){return{string:()=>({kind:"string"}),number:()=>({kind:"number"}),boolean:()=>({kind:"boolean"}),array:e=>({kind:"array",inner:e}),object:e=>({kind:"object",inner:e}),record:e=>({kind:"record",inner:e}),any:()=>({kind:"any"}),zod:()=>({kind:"zod"}),ref:e=>({kind:"ref",inner:e}),propsOf:e=>({kind:"propsOf",inner:e}),map:e=>({kind:"map",inner:e}),optional:()=>({optional:!0})}}function q6(e,t){const i=P6();return{definition:e(i),promptTemplate:t==null?void 0:t.promptTemplate,defaultRules:t==null?void 0:t.defaultRules,builtInActions:t==null?void 0:t.builtInActions,createCatalog(o){return Y6(this,o)}}}function Y6(e,t){const i=t.components,r=t.actions,o=i?Object.keys(i):[],u=r?Object.keys(r):[],c=F6(e.definition,t);return{schema:e,data:t,componentNames:o,actionNames:u,prompt(h={}){return I6(this,h)},jsonSchema(){return Jr(c)},validate(h){const m=c.safeParse(h);return m.success?{success:!0,data:m.data}:{success:!1,error:m.error}},zodSchema(){return c},get _specType(){throw new Error("_specType is only for type inference")}}}function F6(e,t){return Ou(e.spec,t)}function Ou(e,t){switch(e.kind){case"string":return we();case"number":return Go();case"boolean":return Xo();case"any":return PD();case"array":{const i=Ou(e.inner,t);return La(i)}case"object":{const i=e.inner,r={};for(const[o,u]of Object.entries(i)){let c=Ou(u,t);u.optional&&(c=c.optional()),r[o]=c}return et(r)}case"record":{const i=Ou(e.inner,t);return or(we(),i)}case"ref":{const i=e.inner,r=G6(i,t);return r.length===0?we():r.length===1?Bp(r[0]):Da(r)}case"propsOf":{const i=e.inner,r=X6(i,t);return r.length===0?or(we(),Ua()):r.length===1?r[0]:or(we(),Ua())}default:return Ua()}}function G6(e,t){const i=e.split(".");let r={catalog:t};for(const o of i)if(r&&typeof r=="object")r=r[o];else return[];return r&&typeof r=="object"?Object.keys(r):[]}function X6(e,t){const i=e.split(".");let r={catalog:t};for(const o of i)if(r&&typeof r=="object")r=r[o];else return[];return r&&typeof r=="object"?Object.values(r).map(o=>o.props).filter(o=>o!==void 0):[]}function I6(e,t){if(e.schema.promptTemplate){const le={catalog:e.data,componentNames:e.componentNames,actionNames:e.actionNames,options:t,formatZodType:ir};return e.schema.promptTemplate(le)}const{system:i="You are a UI generator that outputs JSON.",customRules:r=[],mode:o="generate"}=t,u=[];
207u.push(i),u.push(""),o==="chat"?(u.push("OUTPUT FORMAT (text + JSONL, RFC 6902 JSON Patch):"),u.push("You respond conversationally. When generating UI, first write a brief explanation (1-3 sentences), then output JSONL patch lines wrapped in a ```spec code fence."),u.push("The JSONL lines use RFC 6902 JSON Patch operations to build a UI tree. Always wrap them in a ```spec fence block:"),u.push(" ```spec"),u.push(' {"op":"add","path":"/root","value":"main"}'),u.push(' {"op":"add","path":"/elements/main","value":{"type":"Card","props":{"title":"Hello"},"children":[]}}'),u.push(" ```"),u.push("If the user's message does not require a UI (e.g. a greeting or clarifying question), respond with text only â no JSONL.")):(u.push("OUTPUT FORMAT (JSONL, RFC 6902 JSON Patch):"),u.push("Output JSONL (one JSON object per line) using RFC 6902 JSON Patch operations to build a UI tree.")),u.push("Each line is a JSON patch operation (add, remove, replace). Start with /root, then stream /elements and /state patches interleaved so the UI fills in progressively as it streams."),u.push(""),u.push("Example output (each line is a separate JSON object):"),u.push("");const c=e.data.components,h=e.componentNames,m=h[0]||"Component",g=h.length>1?h[1]:m,y=c==null?void 0:c[m],x=c==null?void 0:c[g],b=y?i1(y):{},S=x?i1(x):{},j=x!=null&&x.props?J6(x.props):null,N=j?{...S,[j]:{$item:"title"}}:S,_=[JSON.stringify({op:"add",path:"/root",value:"main"}),JSON.stringify({op:"add",path:"/elements/main",value:{type:m,props:b,children:["child-1","list"]}}),JSON.stringify({op:"add",path:"/elements/child-1",value:{type:g,props:S,children:[]}}),JSON.stringify({op:"add",path:"/elements/list",value:{type:m,props:b,repeat:{statePath:"/items",key:"id"},children:["item"]}}),JSON.stringify({op:"add",path:"/elements/item",value:{type:g,props:N,children:[]}}),JSON.stringify({op:"add",path:"/state/items",value:[]}),JSON.stringify({op:"add",path:"/state/items/0",value:{id:"1",title:"First Item"}}),JSON.stringify({op:"add",path:"/state/items/1",value:{id:"2",title:"Second Item"}})].join(` 208`);u.push(`${_} 209 210Note: state patches appear right after the elements that use them, so the UI fills in as it streams. ONLY use component types from the AVAILABLE COMPONENTS list below.`),u.push(""),u.push("INITIAL STATE:"),u.push("Specs include a /state field to seed the state model. Components with { $bindState } or { $bindItem } read from and write to this state, and $state expressions read from it."),u.push("CRITICAL: You MUST include state patches whenever your UI displays data via $state, $bindState, $bindItem, $item, or $index expressions, or uses repeat to iterate over arrays. Without state, these references resolve to nothing and repeat lists render zero items."),u.push("Output state patches right after the elements that reference them, so the UI fills in progressively as it streams."),u.push("Stream state progressively - output one patch per array item instead of one giant blob:"),u.push(' For arrays: {"op":"add","path":"/state/posts/0","value":{"id":"1","title":"First Post",...}} then /state/posts/1, /state/posts/2, etc.'),u.push(' For scalars: {"op":"add","path":"/state/newTodoText","value":""}'),u.push(' Initialize the array first if needed: {"op":"add","path":"/state/posts","value":[]}'),u.push('When content comes from the state model, use { "$state": "/some/path" } dynamic props to display it instead of hardcoding the same value in both state and props. The state model is the single source of truth.'),u.push("Include realistic sample data in state. For blogs: 3-4 posts with titles, excerpts, authors, dates. For product lists: 3-5 items with names, prices, descriptions. Never leave arrays empty."),u.push(""),u.push("DYNAMIC LISTS (repeat field):"),u.push('Any element can have a top-level "repeat" field to render its children once per item in a state array: { "repeat": { "statePath": "/arrayPath", "key": "id" } }.'),u.push('The element itself renders once (as the container), and its children are expanded once per array item. "statePath" is the state array path. "key" is an optional field name on each item for stable React keys.'),u.push(`Example: ${JSON.stringify({type:m,props:b,repeat:{statePath:"/todos",key:"id"},children:["todo-item"]})}`),u.push('Inside children of a repeated element, use { "$item": "field" } to read a field from the current item, and { "$index": true } to get the current array index. For two-way binding to an item field use { "$bindItem": "completed" } on the appropriate prop.'),u.push("ALWAYS use the repeat field for lists backed by state arrays. NEVER hardcode individual elements for each array item."),u.push('IMPORTANT: "repeat" is a top-level field on the element (sibling of type/props/children), NOT inside props.'),u.push(""),u.push("ARRAY STATE ACTIONS:"),u.push('Use action "pushState" to append items to arrays. Params: { statePath: "/arrayPath", value: { ...item }, clearStatePath: "/inputPath" }
210.'),u.push('Values inside pushState can contain { "$state": "/statePath" } references to read current state (e.g. the text from an input field).'),u.push('Use "$id" inside a pushState value to auto-generate a unique ID.'),u.push('Example: on: { "press": { "action": "pushState", "params": { "statePath": "/todos", "value": { "id": "$id", "title": { "$state": "/newTodoText" }, "completed": false }, "clearStatePath": "/newTodoText" } } }'),u.push(`Use action "removeState" to remove items from arrays by index. Params: { statePath: "/arrayPath", index: N }. Inside a repeated element's children, use { "$index": true } for the current item index. Action params support the same expressions as props: { "$item": "field" } resolves to the absolute state path, { "$index": true } resolves to the index number, and { "$state": "/path" } reads a value from state.`),u.push("For lists where users can add/remove items (todos, carts, etc.), use pushState and removeState instead of hardcoding with setState."),u.push(""),u.push('IMPORTANT: State paths use RFC 6901 JSON Pointer syntax (e.g. "/todos/0/title"). Do NOT use JavaScript-style dot notation (e.g. "/todos.length" is WRONG). To generate unique IDs for new items, use "$id" instead of trying to read array length.'),u.push("");const k=c;if(k){u.push(`AVAILABLE COMPONENTS (${e.componentNames.length}):`),u.push("");for(const[le,ce]of Object.entries(k)){const Ce=ce.props?ir(ce.props):"{}",ze=ce.slots&&ce.slots.length>0?" [accepts children]":"",Be=ce.events&&ce.events.length>0?` [events: ${ce.events.join(", ")}]`:"",H=ce.description?` - ${ce.description}`:"";u.push(`- ${le}: ${Ce}${H}${ze}${Be}`)}u.push("")}const R=e.data.actions,O=e.schema.builtInActions??[],I=R&&e.actionNames.length>0,L=O.length>0;if(I||L){u.push("AVAILABLE ACTIONS:"),u.push("");for(const le of O)u.push(`- ${le.name}: ${le.description} [built-in]`);if(I)for(const[le,ce]of Object.entries(R))u.push(`- ${le}${ce.description?`: ${ce.description}`:""}`);u.push("")}u.push("EVENTS (the `on` field):"),u.push("Elements can have an optional `on` field to bind events to actions. The `on` field is a top-level field on the element (sibling of type/props/children), NOT inside props."),u.push('Each key in `on` is an event name (from the component\'s supported events), and the value is an action binding: `{ "action": "<actionName>", "params": { ... } }`.'),u.push(""),u.push("Example:"),u.push(` ${JSON.stringify({type:m,props:b,on:{press:{action:"setState",params:{statePath:"/saved",value:!0}}},children:[]})}`),u.push(""),u.push('Action params can use dynamic references to read from state: { "$state": "/statePath" }.'),u.push("IMPORTANT: Do NOT put action/actionParams inside props. Always use the `on` field for event bindings."),u.push(""),u.push("VISIBILITY CONDITIONS:"),u.push("Elements can have an optional `visible` field to conditionally show/hide based on state. IMPORTANT: `visible` is a top-level field on the element object (sibling of type/props/children), NOT inside props."),u.push(`Correct: ${JSON.stringify({type:m,props:b,visible:{$state:"/activeTab",eq:"home"},children:["..."]})}`),u.push('- `{ "$state": "/path" }` - visible when state at path is truthy'),u.push('- `{ "$state": "/path", "not": true }` - visible when state at path is falsy'),u.push('- `{ "$state": "/path", "eq": "value" }` - visible when state equals value'),u.push('- `{ "$state": "/path", "neq": "value" }` - visible when state does not equal value'),u.push('- `{ "$state": "/path", "gt": N }` / `gte` / `lt` / `lte` - numeric comparisons'),u.push("- Use ONE operator per condition (eq, neq, gt, gte, lt, lte). Do not combine multiple operators."),u.push('- Any condition can add `"not": true` to invert its result'),u.push("- `[condition, condition]` - all conditions must be true (implicit AND)"),u.push('- `{ "$and": [condition, condition] }` - explicit AND (use when nesting inside $or)'),u.push('- `{ "$or": [condition, condition] }` - at least one must be true (OR)'),u.push("- `true` / `false` - always visible/hidden"),u.push(""),u.push("Use a component with on.press bound to setState to update state and drive visibility."),u.push(`Example: A ${m} with on: { "press": { "action": "setState", "params": { "statePath": "/activeTab", "value": "home" } } } sets state, then a container with visible: { "$state": "/activeTab", "eq": "home" } shows only when that tab is active.`),u.push(""),u.push('For tab patterns where the first/default tab should be visible when no tab is selected yet, use $or to handle both cases: visible: { "$or": [{ "$
210state": "/activeTab", "eq": "home" }, { "$state": "/activeTab", "not": true }] }. This ensures the first tab is visible both when explicitly selected AND when /activeTab is not yet set.'),u.push(""),u.push("DYNAMIC PROPS:"),u.push("Any prop value can be a dynamic expression that resolves based on state. Three forms are supported:"),u.push(""),u.push('1. Read-only state: `{ "$state": "/statePath" }` - resolves to the value at that state path (one-way read).'),u.push(' Example: `"color": { "$state": "/theme/primary" }` reads the color from state.'),u.push(""),u.push('2. Two-way binding: `{ "$bindState": "/statePath" }` - resolves to the value at the state path AND enables write-back. Use on form input props (value, checked, pressed, etc.).'),u.push(' Example: `"value": { "$bindState": "/form/email" }` binds the input value to /form/email.'),u.push(' Inside repeat scopes: `"checked": { "$bindItem": "completed" }` binds to the current item\'s completed field.'),u.push(""),u.push('3. Conditional: `{ "$cond": <condition>, "$then": <value>, "$else": <value> }` - evaluates the condition (same syntax as visibility conditions) and picks the matching value.'),u.push(' Example: `"color": { "$cond": { "$state": "/activeTab", "eq": "home" }, "$then": "#007AFF", "$else": "#8E8E93" }`'),u.push(""),u.push("Use $bindState for form inputs (text fields, checkboxes, selects, sliders, etc.) and $state for read-only data display. Inside repeat scopes, use $bindItem for form inputs bound to the current item. Use dynamic props instead of duplicating elements with opposing visible conditions when only prop values differ."),u.push(""),(c?Object.entries(c).some(([,le])=>le.props?ir(le.props).includes("checks"):!1):!1)&&(u.push("VALIDATION:"),u.push("Form components that accept a `checks` prop support client-side validation."),u.push('Each check is an object: { "type": "<name>", "message": "...", "args": { ... } }'),u.push(""),u.push("Built-in validation types:"),u.push(" - required â value must be non-empty"),u.push(" - email â valid email format"),u.push(' - minLength â minimum string length (args: { "min": N })'),u.push(' - maxLength â maximum string length (args: { "max": N })'),u.push(' - pattern â match a regex (args: { "pattern": "regex" })'),u.push(' - min â minimum numeric value (args: { "min": N })'),u.push(' - max â maximum numeric value (args: { "max": N })'),u.push(" - numeric â value must be a number"),u.push(" - url â valid URL format"),u.push(' - matches â must equal another field (args: { "other": "value" })'),u.push(""),u.push("Example:"),u.push(' "checks": [{ "type": "required", "message": "Email is required" }, { "type": "email", "message": "Invalid email" }]'),u.push(""),u.push("IMPORTANT: When using checks, the component must also have a { $bindState } or { $bindItem } on its value/checked prop for two-way binding."),u.push("Always include validation checks on form inputs for a good user experience (e.g. required, email, minLength)."),u.push("")),u.push("RULES:");const z=o==="chat"?["When generating UI, wrap all JSONL patches in a ```spec code fence - one JSON object per line inside the fence","Write a brief conversational response before any JSONL output",'First set root: {"op":"add","path":"/root","value":"<root-key>"}','Then add each element: {"op":"add","path":"/elements/<key>","value":{...}}',"Output /state patches right after the elements that use them, one per array item for progressive loading. REQUIRED whenever using $state, $bindState, $bindItem, $item, $index, or repeat.","ONLY use components listed above","Each element value needs: type, props, children (array of child keys)","Use unique keys for the element map entries (e.g., 'header', 'metric-1', 'chart-revenue')"]:["Output ONLY JSONL patches - one JSON object per line, no markdown, no code fences",'First set root: {"op":"add","path":"/root","value":"<root-key>"}','Then add each element: {"op":"add","path":"/elements/<key>","value":{...}}',"Output /state patches right after the elements that use them, one per array item for progressive loading. REQUIRED whenever using $state, $bindState, $bindItem, $item, $index, or repeat.","O
210NLY use components listed above","Each element value needs: type, props, children (array of child keys)","Use unique keys for the element map entries (e.g., 'header', 'metric-1', 'chart-revenue')"],G=e.schema.defaultRules??[];return[...z,...G,...r].forEach((le,ce)=>{u.push(`${ce+1}. ${le}`)}),u.join(` 211`)}function i1(e){return e.example&&Object.keys(e.example).length>0?e.example:e.props?E2(e.props):{}}function E2(e){if(!e||!e._def)return{};const t=e._def,i=lr(e);if(i!=="ZodObject"&&i!=="object")return{};const r=typeof t.shape=="function"?t.shape():t.shape;if(!r)return{};const o={};for(const[u,c]of Object.entries(r)){const h=lr(c);h==="ZodOptional"||h==="optional"||h==="ZodNullable"||h==="nullable"||(o[u]=Lh(c))}return o}function Lh(e){if(!e||!e._def)return"...";const t=e._def;switch(lr(e)){case"ZodString":case"string":return"example";case"ZodNumber":case"number":return 0;case"ZodBoolean":case"boolean":return!0;case"ZodLiteral":case"literal":return t.value;case"ZodEnum":case"enum":{if(Array.isArray(t.values)&&t.values.length>0)return t.values[0];if(t.entries&&typeof t.entries=="object"){const r=Object.values(t.entries);return r.length>0?r[0]:"example"}return"example"}case"ZodOptional":case"optional":case"ZodNullable":case"nullable":case"ZodDefault":case"default":{const r=t.innerType??t.wrapped;return r?Lh(r):null}case"ZodArray":case"array":return[];case"ZodObject":case"object":return E2(e);case"ZodUnion":case"union":{const r=t.options;return r&&r.length>0?Lh(r[0]):"..."}default:return"..."}}function J6(e){if(!e||!e._def)return null;const t=e._def,i=lr(e);if(i!=="ZodObject"&&i!=="object")return null;const r=typeof t.shape=="function"?t.shape():t.shape;if(!r)return null;for(const[o,u]of Object.entries(r)){const c=lr(u);if(!(c==="ZodOptional"||c==="optional"||c==="ZodNullable"||c==="nullable")&&(c==="ZodString"||c==="string"))return o}return null}function lr(e){if(!e||!e._def)return"";const t=e._def;return t.typeName??t.type??""}function ir(e){if(!e||!e._def)return"unknown";const t=e._def;switch(lr(e)){case"ZodString":case"string":return"string";case"ZodNumber":case"number":return"number";case"ZodBoolean":case"boolean":return"boolean";case"ZodLiteral":case"literal":return JSON.stringify(t.value);case"ZodEnum":case"enum":{let r;if(Array.isArray(t.values))r=t.values;else if(t.entries&&typeof t.entries=="object")r=Object.values(t.entries);else return"enum";return r.map(o=>`"${o}"`).join(" | ")}case"ZodArray":case"array":{const r=t.type??t.element;return r?`Array<${ir(r)}>`:"Array<unknown>"}case"ZodObject":case"object":{const r=typeof t.shape=="function"?t.shape():t.shape;return r?`{ ${Object.entries(r).map(([u,c])=>{const h=lr(c);return`${u}${h==="ZodOptional"||h==="ZodNullable"||h==="optional"||h==="nullable"?"?":""}: ${ir(c)}`}).join(", ")} }`:"object"}case"ZodOptional":case"optional":case"ZodNullable":case"nullable":{const r=t.innerType??t.wrapped;return r?ir(r):"unknown"}case"ZodUnion":case"union":{const r=t.options;return r?r.map(o=>ir(o)).join(" | "):"unknown"}default:return"unknown"}}function Jr(e){var r;const t=e._def;switch(t.typeName??""){case"ZodString":return{type:"string"};case"ZodNumber":return{type:"number"};case"ZodBoolean":return{type:"boolean"};case"ZodLiteral":return{const:t.value};case"ZodEnum":return{enum:t.values};case"ZodArray":{const o=t.type;return{type:"array",items:o?Jr(o):{}}}case"ZodObject":{const o=(r=t.shape)==null?void 0:r.call(t);if(!o)return{type:"object"};const u={},c=[];for(const[h,m]of Object.entries(o)){u[h]=Jr(m);const g=m._def;g.typeName!=="ZodOptional"&&g.typeName!=="ZodNullable"&&c.push(h)}return{type:"object",properties:u,required:c.length>0?c:void 0,additionalProperties:!1}}case"ZodRecord":{const o=t.valueType;return{type:"object",additionalProperties:o?Jr(o):!0}}case"ZodOptional":case"ZodNullable":{const o=t.innerType;return o?Jr(o):{}}case"ZodUnion":{const o=t.options;return o?{anyOf:o.map(Jr)}:{}}case"ZodAny":return{};default:return{}}}function K6(e,t){return e.createCatalog(t)}var Q6=q6(e=>({spec:e.object({root:e.string(),elements:e.record(e.object({type:e.ref("catalog.components"),props:e.propsOf("catalog.components"),children:e.array(e.string()),visible:e.any()}))}),catalog:e.object({components:e.map({props:e.zod(),slots:e.array(e.string()),description:e.string(),example:e.any()}),actions:e.map({params:e.zod(),description:e.string()})})}),{builtInActions:[{name:"setState",description:"Update a value in the state model at the given statePath. Params: { statePath: string, value: any }"},{name:"pushState",description:'Append an item to an array in state. Param
211s: { statePath: string, value: any, clearStatePath?: string }. Value can contain {"$state":"/path"} refs and "$id" for auto IDs.'},{name:"removeState",description:"Remove an item from an array in state by index. Params: { statePath: string, index: number }"}],defaultRules:["CRITICAL INTEGRITY CHECK: Before outputting ANY element that references children, you MUST have already output (or will output) each child as its own element. If an element has children: ['a', 'b'], then elements 'a' and 'b' MUST exist. A missing child element causes that entire branch of the UI to be invisible.","SELF-CHECK: After generating all elements, mentally walk the tree from root. Every key in every children array must resolve to a defined element. If you find a gap, output the missing element immediately.",'CRITICAL: The "visible" field goes on the ELEMENT object, NOT inside "props". Correct: {"type":"<ComponentName>","props":{},"visible":{"$state":"/tab","eq":"home"},"children":[...]}.','CRITICAL: The "on" field goes on the ELEMENT object, NOT inside "props". Use on.press, on.change, on.submit etc. NEVER put action/actionParams inside props.',"When the user asks for a UI that displays data (e.g. blog posts, products, users), ALWAYS include a state field with realistic sample data. The state field is a top-level field on the spec (sibling of root/elements).",'When building repeating content backed by a state array (e.g. posts, products, items), use the "repeat" field on a container element. Example: { "type": "<ContainerComponent>", "props": {}, "repeat": { "statePath": "/posts", "key": "id" }, "children": ["post-card"] }. Replace <ContainerComponent> with an appropriate component from the AVAILABLE COMPONENTS list. Inside repeated children, use { "$item": "field" } to read a field from the current item, and { "$index": true } for the current array index. For two-way binding to an item field use { "$bindItem": "completed" }. Do NOT hardcode individual elements for each array item.',"Design with visual hierarchy: use container components to group content, heading components for section titles, proper spacing, and status indicators. ONLY use components from the AVAILABLE COMPONENTS list.","For data-rich UIs, use multi-column layout components if available. For forms and single-column content, use vertical layout components. ONLY use components from the AVAILABLE COMPONENTS list.","Always include realistic, professional-looking sample data. For blogs include 3-4 posts with varied titles, authors, dates, categories. For products include names, prices, images. Never leave data empty."]}),C2=T.createContext(null);function W6({initialState:e={},onStateChange:t,children:i}){const[r,o]=T.useState(e),u=T.useRef(r);u.current=r;const c=T.useRef(JSON.stringify(e));T.useEffect(()=>{const x=JSON.stringify(e);x!==c.current&&(c.current=x,e&&Object.keys(e).length>0&&o(b=>({...b,...e})))},[e]);const h=T.useCallback(x=>wn(u.current,x),[]),m=T.useCallback((x,b)=>{o(S=>{const j={...S};return Oh(j,x,b),j}),t==null||t(x,b)},[t]),g=T.useCallback(x=>{const b=Object.entries(x);o(S=>{const j={...S};for(const[N,_]of b)Oh(j,N,_);return j});for(const[S,j]of b)t==null||t(S,j)},[t]),y=T.useMemo(()=>({state:r,get:h,set:m,update:g}),[r,h,m,g]);return d.jsx(C2.Provider,{value:y,children:i})}function rc(){const e=T.useContext(C2);if(!e)throw new Error("useStateStore must be used within a StateProvider");return e}var A2=T.createContext(null);function e8({children:e}){const{state:t}=rc(),i=T.useMemo(()=>({stateModel:t}),[t]),r=T.useMemo(()=>u=>fs(u,i),[i]),o=T.useMemo(()=>({isVisible:r,ctx:i}),[r,i]);return d.jsx(A2.Provider,{value:o,children:e})}function t8(){const e=T.useContext(A2);if(!e)throw new Error("useVisibility must be used within a VisibilityProvider");return e}var r1=0;function s1(){return r1+=1,`${Date.now()}-${r1}`}function Bh(e,t){if(e==null)return e;if(e==="$id")return s1();if(typeof e=="object"&&!Array.isArray(e)){const i=e,r=Object.keys(i);if(r.length===1&&typeof i.$state=="string")return t(i.$state);if(r.length===1&&"$id"in i)return s1()}if(Array.isArray(e))return e.map(i=>Bh(i,t));if(typeof e=="object"){const i={};for(const[r,o]of Object.entries(e))i[r]=Bh(o,t);return i}return e}var _2=T.createContext(null);function n8({handlers:e={},navigate:t,children:i}){const{state:r,get:o,set:u}=rc(),c=T.useRef(r);c.current=r;const[h,m]=T.useState(e),[g,y]=T.useState(new Set),[x,b]=T.useState(null),S=T.useCallback((R,O)=>{m(I=>({...I,[R]:O}))},[]),j=T.useCallback(async R=>{const O=B6(R,c.current);if(O.action==="setState"&&O.params){const L=O.params.statePath,Y=O.params.value;L&&u(L,Y);return}if(O.action==="pushState"&&O.params){const L=O.params.statePath,Y=O.params.value;if(L){const z=Bh(Y,o),G=o(L)??[];u(L,[...G,z]);const ee=O.params.clearStatePath;ee&&u(ee,"")}return}if(O.action==="removeState"&&O.params){const L=O.params.statePath,Y=O.params.index;if(L!==void 0&&Y!==void 0){const z=o(L)??[];u(L,z.filter((G,ee)=>ee!==Y))}return}if(O.action==="push"&&O.params){const L=O.params.screen;
211if(L){const Y=o("/currentScreen"),z=o("/navStack")??[];Y?u("/navStack",[...z,Y]):u("/navStack",[...z,""]),u("/currentScreen",L)}return}if(O.action==="pop"){const L=o("/navStack")??[];if(L.length>0){const Y=L[L.length-1];u("/navStack",L.slice(0,-1)),Y?u("/currentScreen",Y):u("/currentScreen",void 0)}return}const I=h[O.action];if(!I){console.warn(`No handler registered for action: ${O.action}`);return}if(O.confirm)return new Promise((L,Y)=>{b({action:O,handler:I,resolve:()=>{b(null),L()},reject:()=>{b(null),Y(new Error("Action cancelled"))}})}).then(async()=>{y(L=>new Set(L).add(O.action));try{await a1({action:O,handler:I,setState:u,navigate:t,executeAction:async L=>{await j({action:L})}})}finally{y(L=>{const Y=new Set(L);return Y.delete(O.action),Y})}});y(L=>new Set(L).add(O.action));try{await a1({action:O,handler:I,setState:u,navigate:t,executeAction:async L=>{await j({action:L})}})}finally{y(L=>{const Y=new Set(L);return Y.delete(O.action),Y})}},[h,o,u,t]),N=T.useCallback(()=>{x==null||x.resolve()},[x]),_=T.useCallback(()=>{x==null||x.reject()},[x]),k=T.useMemo(()=>({handlers:h,loadingActions:g,pendingConfirmation:x,execute:j,confirm:N,cancel:_,registerHandler:S}),[h,g,x,j,N,_,S]);return d.jsx(_2.Provider,{value:k,children:i})}function z2(){const e=T.useContext(_2);if(!e)throw new Error("useActions must be used within an ActionProvider");return e}function a8({confirm:e,onConfirm:t,onCancel:i}){const r=e.variant==="danger";return d.jsx("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:50},onClick:i,children:d.jsxs("div",{style:{backgroundColor:"white",borderRadius:"8px",padding:"24px",maxWidth:"400px",width:"100%",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1)"},onClick:o=>o.stopPropagation(),children:[d.jsx("h3",{style:{margin:"0 0 8px 0",fontSize:"18px",fontWeight:600},children:e.title}),d.jsx("p",{style:{margin:"0 0 24px 0",color:"#6b7280"},children:e.message}),d.jsxs("div",{style:{display:"flex",gap:"12px",justifyContent:"flex-end"},children:[d.jsx("button",{onClick:i,style:{padding:"8px 16px",borderRadius:"6px",border:"1px solid #d1d5db",backgroundColor:"white",cursor:"pointer"},children:e.cancelLabel??"Cancel"}),d.jsx("button",{onClick:t,style:{padding:"8px 16px",borderRadius:"6px",border:"none",backgroundColor:r?"#dc2626":"#3b82f6",color:"white",cursor:"pointer"},children:e.confirmLabel??"Confirm"})]})]})})}var i8=T.createContext(null);function r8(e,t){if(e===t)return!0;if(!e||!t)return!1;const i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(const o of i){const u=e[o],c=t[o];if(u!==c){if(typeof u=="object"&&u!==null&&typeof c=="object"&&c!==null){const h=u.$state,m=c.$state;if(typeof h=="string"&&h===m)continue}return!1}}return!0}function s8(e,t){if(e===t)return!0;if(e.validateOn!==t.validateOn)return!1;const i=e.checks??[],r=t.checks??[];if(i.length!==r.length)return!1;for(let o=0;o<i.length;o++){const u=i[o],c=r[o];if(u.type!==c.type||u.message!==c.message||!r8(u.args,c.args))return!1}return!0}function o8({customFunctions:e={},children:t}){const{state:i}=rc(),r=T.useRef(i);r.current=i;const[o,u]=T.useState({}),[c,h]=T.useState({}),m=T.useCallback((j,N)=>{h(_=>{const k=_[j];return k&&s8(k,N)?_:{..._,[j]:N}})},[]),g=T.useCallback((j,N)=>{const _=r.current,k=j.split("/").filter(Boolean);let R=_;for(const I of k)if(R!=null&&typeof R=="object")R=R[I];else{R=void 0;break}const O=Z6(N,{value:R,stateModel:_,customFunctions:e});return u(I=>{var L;return{...I,[j]:{touched:((L=I[j])==null?void 0:L.touched)??!0,validated:!0,result:O}}}),O},[e]),y=T.useCallback(j=>{u(N=>{var _,k;return{...N,[j]:{...N[j],touched:!0,validated:((_=N[j])==null?void 0:_.validated)??!1,result:((k=N[j])==null?void 0:k.result)??null}}})},[]),x=T.useCallback(j=>{u(N=>{const{[j]:_,...k}=N;return k})},[]),b=T.useCallback(()=>{let j=!0;for(const[N,_]of Object.entries(c))g(N,_).valid||(j=!1);return j},[c,g]),S=T.useMemo(()=>({customFunctions:e,fieldStates:o,validate:g,touch:y,clear:x,validateAll:b,registerField:m}),[e,o,g,y,x,b,m]);return d.jsx(i8.Provider,{value:S,children:t})}var M2=T.createContext(null);function l8({item:e,index:t,basePath:i,children:r}){return d.jsx(M2.Provider,{value:{item:e,index:t,basePath:i},children:r})}function u8(){return T.useContext(M2)}var c8=class extends oa.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(`[json-render] Rendering error in <${this.props.elementType}>:`,e,t.componentStack)}render(){return this.state.hasError?null:this.props.children}},R2=oa.memo(function e({element:t,spec:i,registry:r,loading:o,fallback:u}){var I;const c=u8(),{ctx:h}=t8(),{execute:m}=z2(),g=T.useMemo(()=>c?{...h,repeatItem:c.item,repeatIndex:c.index,repeatBasePath:c.basePath}:h,[h,c]),y=t.visible===void 0?!0:fs(t.visible,g),x=t.on,b=T.useCallback(L=>{const Y=x==null?void 0:x[L];if(!Y)return;const z=Array.isArray(Y)?Y:[Y];for(const G of z){if(!G.params){m(G);continue}const ee={};for(const[le,ce]of Object.entries(G.params))ee[le]=O6(ce,g);m({...G,params:ee})}},[x,m,g]),S=T.useCallback(L=>{const Y=x==null?void 0:x[L];if(!Y)return{emit:()=>{},shouldPreventDefault:!1,bound:!1};const G=(Array.isArray(Y)?Y:[Y]).some(ee=>ee.preventDefault);return{emit:()=>b(L),shouldPreventDefault:G,bound:!0}},[x,b]);if(!y)return null;const j=t.props,N=k6(j,g),_=R6(j,g),k=_!==t.props?{...t,props:_}:t,R=r[k.type]??u;if(!R)return console.warn(`No renderer for component type: ${k.type}`),null;const O=k.repeat?d.jsx(f8,{element:k,spec:i,registry:r,loading:o,fallback:u}):(I=k.children)==null?void 0:I.map(L=>{const Y=i.elements[L];return Y?d.jsx(e,{element:Y,spec:i,registry:r,loading:o,fallback:u},L):(o||console.warn(`[json-render] Missing element "${L}" referenced as child of "${k.type}". This element will not render.`),null)});return d.jsx(c8,{elementType:k.type,children:d.jsx(R,{element:k,emit:b,on:S,bindings:N,loading:o,children:O})})});function f8({element:e,spec:t,registry:i,loading:r,fallback:o}){const{state:u}=rc(),c=e.repeat,h=c.statePath,m=wn(u,h)??[];return d.jsx(d.Fragment,{children:m.map((g,y)=>{var b;const x=c.key&&typeof g=="object"&&g!==null?String(g[c.key]??y):String(y);return d.jsx(l8,{item:g,index:y,basePath:`${h}/${y}`,children:(b=e.children)==null?void 0:b.map(S=>{const j=t.elements[S];return j?d.jsx(R2,{element:j,spec:t,registry:i,loading:r,fallback:o},S):(r||console.warn(`[json-render] Missing element "${S}" referenced as child of "${e.type}" (repeat). This element will not render.`),null)})},x)})})}function d8({spec:e,registry:t,loading:i,fallback:r}
211){if(!e||!e.root)return null;const o=e.elements[e.root];return o?d.jsx(R2,{element:o,spec:e,registry:t,loading:i,fallback:r}):null}function h8({registry:e,initialState:t,handlers:i,navigate:r,validationFunctions:o,onStateChange:u,children:c}){return d.jsx(W6,{initialState:t,onStateChange:u,children:d.jsx(e8,{children:d.jsx(n8,{handlers:i,navigate:r,children:d.jsxs(o8,{customFunctions:o,children:[c,d.jsx(p8,{})]})})})})}function p8(){const{pendingConfirmation:e,confirm:t,cancel:i}=z2();return e!=null&&e.action.confirm?d.jsx(a8,{confirm:e.action.confirm,onConfirm:t,onCancel:i}):null}function m8(e,t){const i={};if(t.components)for(const[c,h]of Object.entries(t.components))i[c]=({element:m,children:g,emit:y,on:x,bindings:b,loading:S})=>h({props:m.props,children:g,emit:y,on:x,bindings:b,loading:S});const r=t.actions?Object.entries(t.actions):[];return{registry:i,handlers:(c,h)=>{const m={};for(const[g,y]of r)m[g]=async x=>{const b=c(),S=h();b&&await y(x,b,S)};return m},executeAction:async(c,h,m,g={})=>{const y=r.find(([x])=>x===c);y?await y[1](h,m,g):console.warn(`Unknown action: ${c}`)}}}function g8({json:e,interactive:t=!0}){const i={advertiserName:e.advertiserName,avatarUrl:e.avatarUrl,avatarColor:e.avatarColor,avatarShape:e.avatarShape};switch(e.format){case"card":return d.jsx(W1,{...i,bodyText:e.bodyText??"",ctaType:e.ctaType,ctaLabel:e.ctaLabel,media:e.media,interactive:t});case"catalog":return d.jsx(eb,{...i,bodyText:e.bodyText??"",products:e.products??[],interactive:t});case"poll":return d.jsx(tb,{...i,bodyText:e.bodyText,choices:e.choices??[],accentColor:e.accentColor,interactive:t});case"concierge":return d.jsx(nb,{...i,bodyText:e.bodyText,items:e.items??[],sourceUrl:e.sourceUrl,interactive:t});default:return d.jsx("div",{className:"bg-white rounded-[19px] border border-[rgba(13,13,13,0.15)] p-[24px]",children:d.jsxs("p",{className:"text-[13px] text-koah-neutral-400",children:['Unknown format: "',e.format,'"']})})}}const wo={card:{format:"card",advertiserName:"Mesa & Sage",avatarColor:"#8B4513",bodyText:"Discover desert getaways starting from $89/night",ctaType:"button",ctaLabel:"Book now",media:{url:"https://images.unsplash.com/photo-1572503231294-d2e8c1a7310f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxzb3V0aHdlc3QlMjBkZXNlcnQlMjBsYW5kc2NhcGUlMjB0cmF2ZWx8ZW58MXx8fHwxNzcwODEyNjE4fDA&ixlib=rb-4.1.0&q=80&w=1080"}},poll:{format:"poll",advertiserName:"Mesa & Sage",avatarColor:"#8B4513",bodyText:"What type of getaway are you looking for?",choices:[{label:"Scenic routes",percentage:42},{label:"City breaks",percentage:31},{label:"Beach resorts",percentage:27}]},concierge:{format:"concierge",advertiserName:"Mesa & Sage",avatarColor:"#8B4513",bodyText:"Top-rated resorts for your trip",items:[{title:"Amangiri",detail:"Luxury desert retreat in Canyon Point, Utah. Rates from $2,200/night."},{title:"Pueblo Bonito",detail:"All-inclusive beachfront resort in Cabo San Lucas."},{title:"Under Canvas",detail:"Glamping near national parks. Starts at $299/night."}],sourceUrl:"puebloandpine.com/resorts"},catalog:{format:"catalog",advertiserName:"Greenleaf Market",avatarColor:"#16a34a",bodyText:"Fresh ingredients delivered to your door",products:[{name:"Hot Sauce",detail:"In stock - $5.99",subDetail:"25-35 minutes",imageUrl:"https://images.unsplash.com/photo-1757845082207-91cbc4d25f1a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&w=200"},{name:"Organic Veggies",detail:"In stock - $12.99",subDetail:"25-35 minutes",imageUrl:"https://images.unsplash.com/photo-1554223745-ad862492c213?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&w=200"}]}},k2=K6(Q6,{components:{Card:{description:"Single-destination click-through ad. The entire card is one tap target. A Card without bodyText is not valid. Media and CTA are independent â any combination works. Use ctaType 'button' for high-intent actions (Book now, Shop now).",props:et({advertiserName:we().describe("Brand name shown in header"),avatarUrl:we().optional().describe("Brand logo image URL"),avatarColor:we().optional().describe("Hex color for avatar background (e.g. '#8B4513')"),avatarShape:Da(["circle","square"]).optional().describe("Avatar shape. Default: circle"),bodyText:we().min(1).describe("Ad copy text. Required."),ctaType:Da(["button","none"]).optional().describe("CTA style. Default: none"),ctaLabel:we().optional().describe("CTA button text. Default: 'Learn more'"),mediaUrl:we().optional().describe("Hero image URL")}),slots:[]},Poll:{description:"Interactive voting format with 2â4 choices. Tapping a choice reveals percentage results inline. Interaction is one-shot. bodyText should be phrased as a question.",props:et({advertiserName:we().describe("Brand name shown in header"),avatarUrl:we().optional().describe("Brand logo image URL"),avatarColor:we().optional().describe("Hex color for avatar background"),avatarShape:Da(["circle","square"]).optional().describe("Avatar shape. Default: circle"),bodyText:we().optional().describe("Question or prompt text"),choices:La(et({label:we().describe("Choice text"),percentage:Go().min(0).max(100).optional().describe("Result percentage (0â100)")})).min(2).max(4).describe("2â4 poll choices"),accentColor:we().optional().describe("Hex accent color. Default: '#0d0d0d'")}),slots:[]},Concierge:{description:"Ranked recommendations with source attribution. Items render in a clipped list with fade-to-expand. Items are NOT individually tappable (unlike Catalog).",props:et({advertiserName:we().describe("Brand name shown in header"),avatarUrl:we().optional().describe("Brand logo image URL"),avatarColor:we().optional().describe("Hex color for avatar background"),avatarShape:Da(["circle","square"]).optional().describe("Avatar shape. Default: circle"),bodyText:we().optional().describe("Intro text above the list"),items:La(et({title:we().describe("Item name or heading"),detail:we().describe("Description or secondary info")})).min(1).describe("Ranked list of recommendations"),sourceUrl:we().optional().describe("Attribution URL displayed below the list")}),slots:[]},Catalog:{description:"Multi-destination product browser. Each product is an independent tap target. Products scroll horizontally. This is what distinguishes Catalog from Card â interaction model, not layout.",props:et({advertiserName:we().describe("Brand name shown in header"),avatarUrl:we().optional().describe("Brand logo image URL"),avatarColor:we().optional().describe("Hex color for avatar background"),avatarShape:Da(["circle","square"]).optional().describe("Avatar shape. Default: circle"),bodyText:we().min(1).describe("Ad copy text. Required."),products:La(et({name:we().describe("Product name"),detail:we().describe("Price or availability"),subDetail:we().optional().describe("Delivery time, shipping info"),imageUrl:we().describe("Product image URL")})).min(1).describe("Product items")}),slots:[]}},actions:{}});function y8(){return k2.prompt({system:`You are a Koah MatchingAgent â an intelligent ad format selector and generator. 212 213Your job: given CONTEXT about a user, the app they're in, and what they're doing, you pick the ideal ad format and the most relevant advertiser, then generate it. 214 215You reason about: 2161. SURFACE â What app is this? (chat assistant, search, social feed, maps, delivery, etc.) This determines tone and format fit. 2172. CONVERSATION â What is the user doing or asking about? This determines advertiser relevance. 2183. FORMAT FIT â Which format serves this context best? 219 ⢠Card â best for single high-intent actions: book, shop, sign up. Use when there's one clear CTA. 220 ⢠Poll â best for engagement in conversational contexts. Use when the topic invites opinion or preference. 221 ⢠Concierge â best for recommendation/discovery moments. Use when the user is exploring options. 222 ⢠Catalog â best for shopping/comparison moments. Use when multiple products are relevant. 2234. ADVERTISER â Pick (or invent) a brand that's contextually relevant. A travel question â travel brand. A food chat â food brand. Match the moment. 224 225Each generation produces exactly ONE ad format â a single root element with children: [].`,customRules:["CRITICAL: Reason about context first, THEN pick the format. Never default to Card.","Each ad is a single root element with children: []. No nesting, no child elements.","The advertiser should feel like a natural fit for the conversation â not forced or random.","bodyText should feel native to the surface: conversational in chat apps, direct in search, editorial in feeds.","Use vivid avatarColor hex values that match the brand personality.","For mediaUrl and product imageUrl values, use descriptive Unsplash URLs like https://images.unsplash.com/photo-<id>?w=800","Keep bodyText concise â 1â2 sentences max.","Keep ctaLabel short â 2â3 words.","Poll choices should have realistic percentage values that sum close to 100."]})}function x8(e){return e.map(t=>({label:t.label??t.text??t.name??"",percentage:t.percentage??t.pct}))}function v8(e){return e.map(t=>({title:t.title??t.name??t.heading??"",detail:t.detail??t.description??t.subtitle??""}))}function b8(e){return e.map(t=>({name:t.name??t.title??"",detail:t.detail??t.price??t.description??"",subDetail:t.subDetail??t.subtitle??t.delivery,imageUrl:t.imageUrl??t.image??t.url??""}))}const{registry:o1}=m8(k2,{components:{Card:({props:e})=>d.jsx(W1,{advertiserName:e.advertiserName,avatarUrl:e.avatarUrl,avatarColor:e.avatarColor,avatarShape:e.avatarShape,bodyText:e.bodyText,ctaType:e.ctaType,ctaLabel:e.ctaLabel,media:e.mediaUrl?{url:e.mediaUrl}:void 0,interactive:!0}),Poll:({props:e})=>d.jsx(tb,{advertiserName:e.advertiserName,avatarUrl:e.avatarUrl,avatarColor:e.avatarColor,avatarShape:e.avatarShape,bodyText:e.bodyText,choices:x8(e.choices),accentColor:e.accentColor,interactive:!0}
225),Concierge:({props:e})=>d.jsx(nb,{advertiserName:e.advertiserName,avatarUrl:e.avatarUrl,avatarColor:e.avatarColor,avatarShape:e.avatarShape,bodyText:e.bodyText,items:v8(e.items),sourceUrl:e.sourceUrl,interactive:!0}),Catalog:({props:e})=>d.jsx(eb,{advertiserName:e.advertiserName,avatarUrl:e.avatarUrl,avatarColor:e.avatarColor,avatarShape:e.avatarShape,bodyText:e.bodyText,products:b8(e.products),interactive:!0})}});function S8(e,t,i){const r=y8(),o=new AbortController;return(async()=>{var u,c;try{const h=await fetch("/api/anthropic/v1/messages",{method:"POST",headers:{"Content-Type":"application/json","x-api-key":t,"anthropic-version":"2023-06-01","anthropic-dangerous-direct-browser-access":"true"},body:JSON.stringify({model:"claude-opus-4-20250514",max_tokens:1024,stream:!0,system:r,messages:[{role:"user",content:e}]}),signal:o.signal});if(!h.ok){const j=await h.text();throw new Error(`API error (${h.status}): ${j}`)}const m=(u=h.body)==null?void 0:u.getReader();if(!m)throw new Error("No response body");const g=new TextDecoder;let y="",x="",b={},S="";for(;;){const{done:j,value:N}=await m.read();if(j)break;y+=g.decode(N,{stream:!0});const _=y.split(` 226 227`);y=_.pop()??"";for(const k of _)for(const R of k.split(` 228`)){if(!R.startsWith("data: "))continue;const O=R.slice(6);if(O!=="[DONE]")try{const I=JSON.parse(O);if(I.type==="content_block_delta"&&((c=I.delta)==null?void 0:c.type)==="text_delta"){x+=I.delta.text;const L=x.split(` 229`);x=L.pop()??"";for(const Y of L){const z=Y.trim();if(z&&!z.startsWith("```"))try{const G=JSON.parse(z);b=Wv(b,G),S+=(S?` 230`:"")+z,b.root&&b.elements&&i.onPatch(b,S)}catch{}}}}catch{}}}if(x.trim()){const j=x.trim();if(!j.startsWith("```"))try{const N=JSON.parse(j);b=Wv(b,N),S+=(S?` 231`:"")+j}catch{}}if(!b.root||!b.elements)throw new Error("Invalid spec: missing root or elements");i.onComplete(b,S)}catch(h){if(h.name==="AbortError")return;i.onError(h)}})(),()=>o.abort()}const w8=Object.keys(wo),l1="koah-playground-api-key",j8=["User is chatting about the Milan Winter Olympics on Perplexity","Someone just searched 'best running shoes for marathon training' on Google","User is planning a weekend trip to Joshua Tree in a conversational AI app","A food blogger is browsing recipes on Instagram and asking about ingredients"],nh=[{name:"Card",description:"Single-destination click-through ad. The entire card is one tap target.",props:[{name:"advertiserName",type:"string",required:!0},{name:"bodyText",type:"string",required:!0},{name:"avatarUrl",type:"string",required:!1},{name:"avatarColor",type:"string",required:!1},{name:"avatarShape",type:"enum",required:!1},{name:"ctaType",type:"enum",required:!1},{name:"ctaLabel",type:"string",required:!1},{name:"mediaUrl",type:"string",required:!1}]},{name:"Poll",description:"Interactive voting format with 2â4 choices. One-shot interaction.",props:[{name:"advertiserName",type:"string",required:!0},{name:"bodyText",type:"string",required:!1},{name:"choices",type:"array",required:!0},{name:"accentColor",type:"string",required:!1},{name:"avatarUrl",type:"string",required:!1},{name:"avatarColor",type:"string",required:!1},{name:"avatarShape",type:"enum",required:!1}]},{name:"Concierge",description:"Ranked recommendations with source attribution. Non-tappable items.",props:[{name:"advertiserName",type:"string",required:!0},{name:"items",type:"array",required:!0},{name:"bodyText",type:"string",required:!1},{name:"sourceUrl",type:"string",required:!1},{name:"avatarUrl",type:"string",required:!1},{name:"avatarColor",type:"string",required:!1},{name:"avatarShape",type:"enum",required:!1}]},{name:"Catalog",description:"Multi-destination product browser. Each product is an independent tap target.",props:[{name:"advertiserName",type:"string",required:!0},{name:"bodyText",type:"string",required:!0},{name:"products",type:"array",required:!0},{name:"avatarUrl",type:"string",required:!1},{name:"avatarColor",type:"string",required:!1},{name:"avatarShape",type:"enum",required:!1}]}];function T8(e){var o;const i={card:"Card",poll:"Poll",concierge:"Concierge",catalog:"Catalog"}[e.format]??"Card",r={advertiserName:e.advertiserName,avatarUrl:e.avatarUrl,avatarColor:e.avatarColor,avatarShape:e.avatarShape,bodyText:e.bodyText};return e.format==="card"?(r.ctaType=e.ctaType,r.ctaLabel=e.ctaLabel,r.mediaUrl=(o=e.media)==null?void 0:o.url):e.format==="poll"?(r.choices=e.choices,r.accentColor=e.accentColor):e.format==="concierge"?(r.items=e.items,r.sourceUrl=e.sourceUrl):e.format==="catalog"&&(r.products=e.products),{root:"ad-1",elements:{"ad-1":{type:i,props:r,children:[]}}}}function N8(e){const t=e.elements,i=e.root;if(!t||!i||!t[i])return e;function r(o){const u=t[o];return u?{type:u.type,props:u.props,children:(u.children??[]).map(c=>r(c))}:o}return r(i)}function E8(e){const t=e.elements,i=e.root;if(!t||!i||!t[i])return"// No spec to export";const r=t[i],o=r.type,u=r.props??{},c=[];u.avatarUrl&&c.push(`url: "${u.avatarUrl}"`),u.avatarColor&&c.push(`color: "${u.avatarColor}"`),u.avatarShape&&u.avatarShape!=="circle"&&c.push(`shape: "${u.avatarShape}"`);const h=c.length>0?` avatar={{ ${c.join(", ")} }}
231`:"",m=[];if(m.push(` <${o}.Header name="${u.advertiserName??""}"${h} />`),u.bodyText&&m.push(` <${o}.Body>${u.bodyText}</${o}.Body>`),o==="Card")u.mediaUrl&&m.push(` <${o}.Media src="${u.mediaUrl}" />`),u.ctaType==="button"&&m.push(` <${o}.CTA>${u.ctaLabel??"Learn more"}</${o}.CTA>`);else if(o==="Poll"){const x=u.choices??[];for(const b of x){const S=b.percentage!==void 0?` percentage={${b.percentage}}`:"";m.push(` <${o}.Choice label="${b.label}"${S} />`)}}else if(o==="Concierge"){const x=u.items??[];for(const b of x)m.push(` <${o}.Item title="${b.title}" detail="${b.detail}" />`);u.sourceUrl&&m.push(` <${o}.Source url="${u.sourceUrl}" />`)}else if(o==="Catalog"){const x=u.products??[];for(const b of x){const S=b.subDetail?` subDetail="${b.subDetail}"`:"";m.push(` <${o}.Product name="${b.name}" detail="${b.detail}"${S} imageUrl="${b.imageUrl}" />`)}}const g=o==="Poll"&&u.accentColor?` accentColor="${u.accentColor}"`:"",y=m.join(` 232`);return`import { ${o} } from "@koah/formats"; 233 234export default function Ad() { 235 return ( 236 <${o}${g}> 237${y} 238 </${o}> 239 ); 240}`}function C8({name:e,type:t,required:i}){const o={string:"bg-[#dbeafe] text-[#1e40af]",enum:"bg-[#fae8ff] text-[#86198f]",array:"bg-[#dcfce7] text-[#166534]",number:"bg-[#fef9c3] text-[#854d0e]"}[t]??"bg-[#f3f4f6] text-[#374151]";return d.jsxs("span",{className:"inline-flex items-center gap-[4px]",children:[d.jsx("span",{className:"text-[11px] leading-[14px] font-mono text-[#374151]",children:e}),d.jsxs("span",{className:`text-[10px] leading-[13px] font-medium px-[5px] py-[1px] rounded-[4px] ${o}`,children:[t,!i&&"?"]})]})}function ju({label:e,active:t,onClick:i,count:r}){return d.jsxs("button",{onClick:i,className:`text-[11px] leading-[14px] font-medium px-[10px] py-[5px] rounded-[6px] transition-colors ${t?"bg-[#2a2a2a] text-[#e8e8e8]":"text-koah-neutral-600 hover:text-koah-neutral-200 hover:bg-[#2a2a2a]/50"}`,children:[e,r!==void 0&&d.jsx("span",{className:`ml-[4px] text-[10px] ${t?"text-koah-neutral-400":"text-[#4b5563]"}`,children:r})]})}function u1({label:e,active:t,onClick:i}){return d.jsx("button",{onClick:i,className:`text-[11px] leading-[14px] font-medium px-[2px] pb-[6px] border-b-[1.5px] transition-colors ${t?"text-[#0d0d0d] border-[#0d0d0d]":"text-koah-neutral-400 border-transparent hover:text-koah-neutral-600"}`,children:e})}function A8(){const[e,t]=T.useState("prompt"),[i,r]=T.useState("json"),[o,u]=T.useState("live"),[c,h]=T.useState(()=>{try{return localStorage.getItem(l1)??""}catch{return""}}),[m,g]=T.useState(""),[y,x]=T.useState(!1),[b,S]=T.useState(null),[j,N]=T.useState(0),[_,k]=T.useState(()=>T8(wo.card)),[R,O]=T.useState(""),[I,L]=T.useState("card"),[Y,z]=T.useState(JSON.stringify(wo.card,null,2)),[G,ee]=T.useState(wo.card),[le,ce]=T.useState(null);T.useEffect(()=>{try{c&&localStorage.setItem(l1,c)}catch{}},[c]);const Ce=T.useCallback(ne=>{z(ne);try{const ae=JSON.parse(ne);if(!ae.format||!ae.advertiserName){ce("Missing required fields: format, advertiserName");return}ee(ae),ce(null)}catch(ae){ce(ae.message)}},[]),tt=T.useCallback(ne=>{L(ne);const ae=wo[ne];z(JSON.stringify(ae,null,2)),ee(ae),ce(null)},[]),ze=T.useRef(null),Be=T.useRef(null),H=T.useCallback(()=>{var ne;if(!c.trim()){S("Enter your Anthropic API key above");return}if(!m.trim()){S("Enter a context to generate an ad for");return}(ne=ze.current)==null||ne.call(ze),x(!0),S(null),k(null),O(""),N(ae=>ae+1),r("stream"),u("live"),ze.current=S8(m,c.trim(),{onPatch:(ae,A)=>{k(ae),O(A),requestAnimationFrame(()=>{Be.current&&(Be.current.scrollTop=Be.current.scrollHeight)})},onComplete:(ae,A)=>{k(ae),O(A),x(!1),ze.current=null},onError:ae=>{S(ae.message),x(!1),ze.current=null}})},[c,m]),K=R?R.split(` 241`).filter(Boolean).length:0,te=_?E8(_):null;return d.jsxs(Bn,{category:"Tools",title:"Playground",subtitle:{label:"Anatomy",href:"/anatomy"},description:"Describe a context â the user, the app, the moment â and the MatchingAgent picks the right format and advertiser. Powered by json-render.",children:[d.jsxs("div",{className:"flex items-center gap-[6px] mb-[24px]",children:[d.jsx("button",{onClick:()=>
241t("prompt"),className:`text-[12px] leading-[16px] px-[10px] py-[5px] rounded-full transition-colors ${e==="prompt"?"bg-[#0d0d0d] text-white":"bg-[#f3f3f3] text-koah-neutral-600 hover:bg-[#e8e8e8]"}`,children:"Generate from context"}),d.jsx("button",{onClick:()=>t("json"),className:`text-[12px] leading-[16px] px-[10px] py-[5px] rounded-full transition-colors ${e==="json"?"bg-[#0d0d0d] text-white":"bg-[#f3f3f3] text-koah-neutral-600 hover:bg-[#e8e8e8]"}`,children:"Edit JSON"})]}),e==="prompt"?d.jsxs("div",{children:[d.jsxs("div",{className:"mb-[16px]",children:[d.jsx("label",{className:"text-[11px] leading-[14px] text-koah-neutral-400 uppercase tracking-wider font-medium block mb-[6px]",children:"Anthropic API Key"}),d.jsx("input",{type:"password",value:c,onChange:ne=>h(ne.target.value),placeholder:"sk-ant-...",className:"w-full max-w-[480px] bg-[#fafafa] text-[#0d0d0d] text-[12px] leading-[18px] font-mono px-[12px] py-[8px] rounded-[10px] border border-[rgba(13,13,13,0.08)] focus:outline-none focus:ring-1 focus:ring-koah-sky-400/40 placeholder:text-koah-neutral-200"}),d.jsx("span",{className:"text-[10px] leading-[14px] text-koah-neutral-200 mt-[4px] block",children:"Stored locally in your browser. Never sent anywhere except the Anthropic API."})]}),d.jsxs("div",{className:"mb-[12px]",children:[d.jsx("label",{className:"text-[11px] leading-[14px] text-koah-neutral-400 uppercase tracking-wider font-medium block mb-[6px]",children:"Describe the context"}),d.jsxs("div",{className:"flex gap-[8px]",children:[d.jsx("input",{type:"text",value:m,onChange:ne=>{g(ne.target.value),S(null)},onKeyDown:ne=>{ne.key==="Enter"&&!y&&H()},placeholder:"e.g. User is asking about weekend hikes near SF on Perplexity...",className:"flex-1 bg-white text-[#0d0d0d] text-[13px] leading-[18px] px-[14px] py-[10px] rounded-[10px] border border-[rgba(13,13,13,0.12)] focus:outline-none focus:ring-1 focus:ring-koah-sky-400/40 placeholder:text-koah-neutral-200"}),d.jsx("button",{onClick:H,disabled:y,className:`shrink-0 text-[13px] leading-[18px] px-[16px] py-[10px] rounded-[10px] font-medium transition-colors ${y?"bg-[#e8e8e8] text-koah-neutral-400 cursor-wait":"bg-[#0d0d0d] text-white hover:bg-[#333]"}`,children:y?d.jsxs("span",{className:"flex items-center gap-[6px]",children:[d.jsx("span",{className:"inline-block size-[12px] border-[1.5px] border-koah-neutral-400 border-t-transparent rounded-full animate-spin"}),"Matching..."]}):"Match & Generate"})]}),b&&d.jsx("span",{className:"text-[11px] leading-[14px] text-[#ef4444] mt-[6px] block",children:b})]}),d.jsx("div",{className:"mb-[28px] flex flex-wrap gap-[6px]",children:j8.map(ne=>d.jsx("button",{onClick:()=>g(ne),className:`text-[11px] leading-[16px] px-[10px] py-[4px] rounded-full border transition-colors ${m===ne?"border-koah-sky-400/30 bg-koah-sky-400/5 text-koah-sky-400":"border-[rgba(13,13,13,0.06)] bg-[#fafafa] text-koah-neutral-600 hover:bg-[#f0f0f0] hover:text-[#0d0d0d]"}`,children:ne},ne))}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-[20px]",children:[d.jsxs("div",{className:"flex flex-col gap-[0px]",children:[d.jsxs("div",{className:"bg-[#1a1a1a] rounded-t-[14px] border border-b-0 border-[rgba(13,13,13,0.1)] px-[8px] py-[6px] flex items-center gap-[2px]",children:[d.jsx(ju,{label:"json",active:i==="json",onClick:()=>r("json")}),d.jsx(ju,{label:"nested",active:i==="nested",onClick:()=>r("nested")}),d.jsx(ju,{label:"stream",active:i==="stream",onClick:()=>r("stream"),count:K||void 0}),d.jsx(ju,{label:"catalog",active:i==="catalog",onClick:()=>r("catalog"),count:nh.length}),y&&i==="stream"&&d.jsxs("span",{className:"ml-auto flex items-center gap-[5px] text-[10px] text-[#4ade80] font-medium pr-[4px]",children:[d.jsx("span",{className:"inline-block size-[6px] bg-[#4ade80] rounded-full animate-pulse"}),"streaming"]})]}),d.jsx("div",{className:"bg-[#1a1a1a] rounded-b-[14px] border border-t-0 border-[rgba(13,13,13,0.1)] min-h-[460px] max-h-[520px] overflow-hidden",children:d.jsxs(Fd,{mode:"wait",children:[i==="json"&&d.jsx(ka.pre,{initial:{opacity:0}
241,animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"text-[11px] leading-[18px] font-mono p-[16px] whitespace-pre-wrap overflow-auto min-h-[460px] max-h-[520px]",children:_?JSON.stringify(_,null,2).split(` 242`).map((ae,A)=>d.jsxs("div",{className:"flex",children:[d.jsx("span",{className:"select-none text-[#4b5563] w-[28px] shrink-0 text-right mr-[12px]",children:A+1}),d.jsx("span",{children:c1(ae)})]},A)):d.jsx("span",{className:"text-[#4b5563]",children:`// Flat json-render spec 243// { 244// "root": "ad-1", 245// "elements": { 246// "ad-1": { type, props, children } 247// } 248// }`})},"json"),i==="nested"&&d.jsx(ka.pre,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"text-[11px] leading-[18px] font-mono p-[16px] whitespace-pre-wrap overflow-auto min-h-[460px] max-h-[520px]",children:_?(()=>{const ne=N8(_);return JSON.stringify(ne,null,2).split(` 249`).map((A,q)=>d.jsxs("div",{className:"flex",children:[d.jsx("span",{className:"select-none text-[#4b5563] w-[28px] shrink-0 text-right mr-[12px]",children:q+1}),d.jsx("span",{children:c1(A)})]},q))})():d.jsx("span",{className:"text-[#4b5563]",children:`// Nested element tree 250// Children resolved inline instead of by ID 251// 252// { 253// "type": "Card", 254// "props": { ... }, 255// "children": [] 256// }`})},"nested"),i==="stream"&&d.jsx(ka.pre,{ref:Be,initial:{opacity:0}
256,animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"text-[11px] leading-[18px] font-mono p-[16px] whitespace-pre-wrap overflow-auto min-h-[460px] max-h-[520px]",children:R?R.split(` 257`).map((ne,ae)=>d.jsxs("div",{className:"flex",children:[d.jsx("span",{className:"select-none text-[#4b5563] w-[28px] shrink-0 text-right mr-[12px]",children:ae+1}),d.jsx("span",{className:"text-[#a5f3fc]",children:ne})]},ae)):d.jsxs("span",{className:"text-[#4b5563]",children:[`// JSONL patches stream here 258// Each line is an RFC 6902 JSON Patch op 259// 260`,d.jsx("span",{className:"text-koah-neutral-600",children:'{"op":"add","path":"/root","value":"ad-1"}'}),` 261`,d.jsx("span",{className:"text-koah-neutral-600",children:'{"op":"add","path":"/elements/ad-1","value":{...}}'})]})},"stream"),i==="catalog"&&d.jsxs(ka.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"p-[16px] min-h-[460px] max-h-[520px] overflow-auto",children:[d.jsxs("div",{className:"flex items-center gap-[16px] mb-[16px] pb-[12px] border-b border-[#2a2a2a]",children:[d.jsxs("span",{className:"text-[11px] text-koah-neutral-400 font-medium",children:["Components ",d.jsx("span",{className:"text-[#e8e8e8] ml-[4px]",children:nh.length})]}),d.jsxs("span",{className:"text-[11px] text-koah-neutral-400 font-medium",children:["Actions ",d.jsx("span",{className:"text-[#e8e8e8] ml-[4px]",children:"0"})]})]}),d.jsx("div",{className:"flex flex-col gap-[12px]",children:nh.map(ne=>d.jsxs("div",{className:"bg-[#222222] rounded-[10px] p-[14px] border border-[#2a2a2a]",children:[d.jsxs("div",{className:"flex items-start justify-between mb-[8px]",children:[d.jsx("span",{className:"text-[13px] leading-[18px] font-medium text-[#e8e8e8]",children:ne.name}),d.jsx("span",{className:"text-[10px] leading-[13px] text-koah-neutral-600 bg-[#2a2a2a] px-[6px] py-[2px] rounded-[4px] font-mono",children:"component"})]}),d.jsx("p",{className:"text-[11px] leading-[15px] text-koah-neutral-600 mb-[10px]",children:ne.description}),d.jsx("div",{className:"flex flex-wrap gap-x-[10px] gap-y-[6px]",children:ne.props.map(ae=>d.jsx(C8,{name:ae.name,type:ae.type,required:ae.required},ae.name))})]},ne.name))})]},"catalog")]})})]}),d.jsxs("div",{className:"flex flex-col gap-[0px]",children:[d.jsxs("div",{className:"px-[4px] py-[0px] flex items-center gap-[16px] border-b border-[rgba(13,13,13,0.06)] mb-[0px]",children:[d.jsx(u1,{label:"live render",active:o==="live",onClick:()=>u("live")}),d.jsx(u1,{label:"static code",active:o==="code",onClick:()=>u("code")}),o==="code"&&te&&d.jsxs("button",{onClick:()=>navigator.clipboard.writeText(te),className:"ml-auto text-[10px] leading-[14px] text-koah-neutral-400 hover:text-[#0d0d0d] font-mono transition-colors pb-[6px]",children:["export ","{}"]})]}),d.jsxs(Fd,{mode:"wait",children:[o==="live"&&d.jsx(ka.div,{initial:{opacity:0}
261,animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"bg-[#fafafa] rounded-[14px] border border-[rgba(13,13,13,0.04)] p-[32px] min-h-[460px] flex items-start justify-center mt-[8px]",children:d.jsx("div",{className:"w-full max-w-[360px]",children:d.jsx(Fd,{mode:"wait",children:_?d.jsx(ka.div,{initial:{opacity:0,y:12,scale:.97},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-8,scale:.97},transition:{duration:.35,ease:[.25,.46,.45,.94]},children:d.jsx(h8,{registry:o1,children:d.jsx(d8,{spec:_,registry:o1,loading:y})})},`spec-${j}`):y?d.jsxs(ka.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"flex flex-col items-center gap-[8px] py-[48px]",children:[d.jsx("div",{className:"size-[24px] border-2 border-[#0d0d0d] border-t-transparent rounded-full animate-spin"}),d.jsx("span",{className:"text-[12px] text-koah-neutral-400",children:"Waiting for first patch..."})]},"loading"):d.jsx(ka.div,{initial:{opacity:0},animate:{opacity:1},className:"bg-white rounded-[19px] border border-dashed border-[rgba(13,13,13,0.1)] p-[24px] flex items-center justify-center",children:d.jsx("span",{className:"text-[13px] text-koah-neutral-400",children:"Generate an ad to see it here"})},"empty")})})},"live"),o==="code"&&d.jsx(ka.div,{initial:{opacity:0}
261,animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"bg-[#1a1a1a] rounded-[14px] border border-[rgba(13,13,13,0.1)] min-h-[460px] overflow-auto mt-[8px]",children:d.jsx("pre",{className:"text-[11px] leading-[18px] font-mono p-[16px] whitespace-pre-wrap",children:te?te.split(` 262`).map((ne,ae)=>d.jsxs("div",{className:"flex",children:[d.jsx("span",{className:"select-none text-[#4b5563] w-[28px] shrink-0 text-right mr-[12px]",children:ae+1}),d.jsx("span",{children:_8(ne)})]},ae)):d.jsx("span",{className:"text-[#4b5563]",children:`// Generate an ad to see the static code export 263// Shows the React component with all props resolved`})})},"code")]})]})]})]}):d.jsxs("div",{children:[d.jsx("div",{className:"mb-[24px]",children:d.jsx("div",{className:"flex gap-[6px]",children:w8.map(ne=>d.jsx("button",{onClick:()=>tt(ne),className:`text-[12px] leading-[16px] px-[10px] py-[5px] rounded-full transition-colors ${I===ne?"bg-[#0d0d0d] text-white":"bg-[#f3f3f3] text-koah-neutral-600 hover:bg-[#e8e8e8] hover:text-[#0d0d0d]"}`,children:ne.charAt(0).toUpperCase()+ne.slice(1)},ne))})}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-[24px]",children:[d.jsxs("div",{className:"flex flex-col gap-[8px]",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-neutral-400 uppercase tracking-wider font-medium",children:"JSON Definition"}),le&&d.jsx("span",{className:"text-[10px] leading-[14px] text-[#ef4444] bg-[#ef4444]/10 px-[6px] py-[2px] rounded",children:le})]}),d.jsx("textarea",{value:Y,onChange:ne=>Ce(ne.target.value),spellCheck:!1,className:"w-full h-[480px] bg-[#1a1a1a] text-[#e8e8e8] text-[12px] leading-[18px] font-mono p-[16px] rounded-[14px] border border-[rgba(13,13,13,0.1)] resize-none focus:outline-none focus:ring-1 focus:ring-koah-sky-400/40"})]}),d.jsxs("div",{className:"flex flex-col gap-[8px]",children:[d.jsx("span",{className:"text-[11px] leading-[14px] text-koah-neutral-400 uppercase tracking-wider font-medium",children:"Live render"}),d.jsx("div",{className:"bg-[#fafafa] rounded-[14px] border border-[rgba(13,13,13,0.04)] p-[32px] min-h-[480px] flex items-start justify-center",children:d.jsx("div",{className:"w-full max-w-[360px]",children:le?d.jsx("div",{className:"bg-white rounded-[19px] border border-dashed border-[rgba(13,13,13,0.1)] p-[24px] flex items-center justify-center",children:d.jsx("span",{className:"text-[13px] text-koah-neutral-400",children:"Fix the JSON to see a preview"})}):d.jsx(g8,{json:G,interactive:!0})})})]})]})]}),d.jsxs("div",{className:"mt-[32px] bg-[#fafafa] rounded-[14px] border border-[rgba(13,13,13,0.04)] p-[20px]",children:[d.jsx("span",{className:"text-[11px] leading-[14px] text-[#0d0d0d] font-medium block mb-[10px]",children:"How it works"}),d.jsxs("div",{className:"flex items-center gap-[8px] flex-wrap",children:[d.jsx(yo,{label:"Context",detail:"user + surface + intent"}),d.jsx(Tu,{}),d.jsx(yo,{label:"defineCatalog()",detail:"Zod schemas â AI prompt",mono:!0}),d.jsx(Tu,{}),d.jsx(yo,{label:"MatchingAgent",detail:"picks format + advertiser"}),d.jsx(Tu,{}),d.jsx(yo,{label:"JSONL stream",detail:"RFC 6902 patches",mono:!0}),d.jsx(Tu,{}),d.jsx(yo,{label:"<Renderer />",detail:"spec â React components",mono:!0})]})]})]})}function yo({label:e,detail:t,mono:i}){return d.jsxs("div",{className:"flex flex-col items-center gap-[2px]",children:[d.jsx("span",{className:`text-[11px] leading-[14px] font-medium text-[#0d0d0d] ${i?"font-mono text-[10px]":""}`,children:e}),d.jsx("span",{className:"text-[10px] leading-[13px] text-koah-neutral-400",children:t})]})}function Tu(){return d.jsx("svg",{width:"16",height:"10",viewBox:"0 0 16 10",fill:"none",className:"shrink-0 text-koah-neutral-200",children:d.jsx("path",{d:"M1 5h12M10 1l4 4-4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function c1(e){const t=[];let i=e,r=0;const o=/^(\s*)"([^"]+)"(\s*:)/,u=i.match(o);u&&(t.push(d.jsx("span",{children:u[1]},r++)),t.push(d.jsxs("span",{className:"text-[#c4b5fd]",children:['"',u[2],'"']},r++)),t.push(d.jsx("span",{children:u[3]},r++)),i=i.slice(u[0].length));const c=/^(\s*)"([^"]*)"(,?)$/,h=i.match(c);if(h)return t.push(d.jsx("span",{children:h[1]},r++)),t.push(d.jsxs("span",{className:"text-[#86efac]",children:['"',h[2],'"']}
263,r++)),t.push(d.jsx("span",{children:h[3]},r++)),d.jsx(d.Fragment,{children:t});const m=/^(\s*)(\d+\.?\d*)(,?)$/,g=i.match(m);if(g)return t.push(d.jsx("span",{children:g[1]},r++)),t.push(d.jsx("span",{className:"text-[#fdba74]",children:g[2]},r++)),t.push(d.jsx("span",{children:g[3]},r++)),d.jsx(d.Fragment,{children:t});const y=/^(\s*)(true|false|null)(,?)$/,x=i.match(y);return x?(t.push(d.jsx("span",{children:x[1]},r++)),t.push(d.jsx("span",{className:"text-[#93c5fd]",children:x[2]},r++)),t.push(d.jsx("span",{children:x[3]},r++)),d.jsx(d.Fragment,{children:t})):(i&&t.push(d.jsx("span",{className:"text-[#e8e8e8]",children:i},r++)),t.length>0?d.jsx(d.Fragment,{children:t}):d.jsx("span",{className:"text-[#e8e8e8]",children:e}))}function _8(e){var t,i;if(/^\s*"use client"/.test(e))return d.jsx("span",{className:"text-[#86efac]",children:e});if(/^\s*(import|export|from|default|function)\b/.test(e))return d.jsx("span",{children:e.split(/\b(import|export|default|function|from|return)\b/).map((r,o)=>["import","export","default","function","from","return"].includes(r)?d.jsx("span",{className:"text-[#c4b5fd]",children:r},o):r.includes('"')?d.jsx("span",{children:r.split(/("[^"]*")/).map((u,c)=>u.startsWith('"')?d.jsx("span",{className:"text-[#86efac]",children:u},c):d.jsx("span",{className:"text-[#e8e8e8]",children:u},c))},o):d.jsx("span",{className:"text-[#e8e8e8]",children:r},o))});if(/^\s*<\/?/.test(e))return d.jsx("span",{children:e.split(/(<\/?[\w]+|>|\/>)/).map((r,o)=>/^<\/?[\w]+$/.test(r)?d.jsx("span",{className:"text-[#f472b6]",children:r},o):r===">"||r==="/>"?d.jsx("span",{className:"text-[#f472b6]",children:r},o):r.includes("=")?d.jsx("span",{children:r.split(/(="[^"]*"|\{[^}]*\})/).map((u,c)=>u.startsWith('="')?d.jsxs("span",{children:["=",d.jsx("span",{className:"text-[#86efac]",children:u.slice(1)})]},c):u.startsWith("{")?d.jsx("span",{className:"text-[#fdba74]",children:u},c):d.jsx("span",{className:"text-[#e8e8e8]",children:u},c))},o):d.jsx("span",{className:"text-[#e8e8e8]",children:r},o))});if(/^\s+\w+=/.test(e)){const r=e.match(/^(\s+)(\w+)(="[^"]*"|\={[\s\S]*})(.*)$/);if(r){const[,o,u,c,h]=r,m=c.startsWith('="');return d.jsxs("span",{children:[d.jsx("span",{children:o}),d.jsx("span",{className:"text-[#e8e8e8]",children:u}),m?d.jsxs("span",{children:["=",d.jsx("span",{className:"text-[#86efac]",children:c.slice(1)})]}):d.jsx("span",{className:"text-[#fdba74]",children:c}),d.jsx("span",{className:"text-[#e8e8e8]",children:h})]})}}return/^\s*return\s/.test(e)?d.jsx("span",{children:e.replace(/return/,"").split("").length>0?d.jsxs(d.Fragment,{children:[d.jsx("span",{children:(t=e.match(/^\s*/))==null?void 0:t[0]}),d.jsx("span",{className:"text-[#c4b5fd]",children:"return"}),d.jsx("span",{className:"text-[#e8e8e8]",children:e.slice((((i=e.match(/^\s*/))==null?void 0:i[0].length)??0)+6)})]}):d.jsx("span",{className:"text-[#e8e8e8]",children:e})}):d.jsx("span",{className:"text-[#e8e8e8]",children:e})}const z8=hE([{path:"/",Component:i4,children:[{index:!0,Component:d0},{path:"anatomy",Component:_4},{path:"header",Component:z4},{path:"customization",Component:W4},{path:"states",Component:nC},{path:"card",Component:U4},{path:"card/mobile",Component:H4},{path:"card/desktop",Component:Y4},{path:"catalog",Component:pC},{path:"poll",Component:wC},{path:"concierge",Component:zC},{path:"playground",Component:A8},{path:"*",Component:d0}]}]);function M8(){return d.jsx(VN,{router:z8})}Kj.createRoot(document.getElementById("root")).render(d.jsx(M8,{}));
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.