vendor: 4,855 bytes, line 1
1var zV=Object.create;var wp=Object.defineProperty;var XV=Object.getOwnPropertyDescriptor;var jV=Object.getOwnPropertyNames;var $V=Object.getPrototypeOf,ZV=Object.prototype.hasOwnProperty;var JV=(e,t,n)=>t in e?wp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qV=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var nn=(e,t)=>()=>(e&&(t=e(e=0)),t);var fr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),QV=(e,t)=>{for(var n in t)wp(e,n,{get:t[n],enumerable:!0})},eH=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of jV(t))!ZV.call(e,o)&&o!==n&&wp(e,o,{get:()=>t[o],enumerable:!(r=XV(t,o))||r.enumerable});return e};var x=(e,t,n)=>(n=e!=null?zV($V(e)):{},eH(t||!e||!e.__esModule?wp(n,"default",{value:e,enumerable:!0}):n,e));var Do=(e,t,n)=>(JV(e,typeof t!="symbol"?t+"":t,n),n);var hN=fr(he=>{"use strict";var Af=Symbol.for("react.element"),tH=Symbol.for("react.portal"),nH=Symbol.for("react.fragment"),rH=Symbol.for("react.strict_mode"),oH=Symbol.for("react.profiler"),iH=Symbol.for("react.provider"),sH=Symbol.for("react.context"),aH=Symbol.for("react.forward_ref"),lH=Symbol.for("react.suspense"),uH=Symbol.for("react.memo"),cH=Symbol.for("react.lazy"),aN=Symbol.iterator;function fH(e){return e===null||typeof e!="object"?null:(e=aN&&e[aN]||e["@@iterator"],typeof e=="function"?e:null)}var cN={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fN=Object.assign,dN={};function $l(e,t,n){this.props=e,this.context=t,this.refs=dN,this.updater=n||cN}$l.prototype.isReactComponent={};$l.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};$l.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pN(){}pN.prototype=$l.prototype;function AO(e,t,n){this.props=e,this.context=t,this.refs=dN,this.updater=n||cN}var yO=AO.prototype=new pN;yO.constructor=AO;fN(yO,$l.prototype);yO.isPureReactComponent=!0;var lN=Array.isArray,mN=Object.prototype.hasOwnProperty,NO={current:null},EN={key:!0,ref:!0,__self:!0,__source:!0};function _N(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)mN.call(t,r)&&!EN.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Af,type:e,key:i,ref:s,props:o,_owner:NO.current}}function dH(e,t){return{$$typeof:Af,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function bO(e){return typeof e=="object"&&e!==null&&e.$$typeof===Af}function pH(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var uN=/\/+/g;function RO(e,t){return typeof e=="object"&&e!==null&&e.key!=null?pH(""+e.key):t.toString(36)}function Up(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Af:case tH:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+RO(s,0):r,lN(o)?(n="",e!=null&&(n=e.replace(uN,"$&/")+"/"),Up(o,t,n,"",function(u){return u})):o!=null&&(bO(o)&&(o=dH(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(uN,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",lN(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+RO(i,a);s+=Up(i,t,n,l,o)}else if(l=fH(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+RO(i,a++),s+=Up(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Bp(e,t,n){if(e==null)return e;var r=[],o=0;return Up(e,r,"","",function(i){return t.call(n,i,o++)}),r}function mH(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pn={current:null},Vp={transition:null},EH={ReactCurrentDispatcher:Pn,ReactCurrentBatchConfig:Vp,ReactCurrentOwner:NO};function TN(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 8,927 bytes, line 1
1he.Children={map:Bp,forEach:function(e,t,n){Bp(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Bp(e,function(){t++}),t},toArray:function(e){return Bp(e,function(t){return t})||[]},only:function(e){if(!bO(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};he.Component=$l;he.Fragment=nH;he.Profiler=oH;he.PureComponent=AO;he.StrictMode=rH;he.Suspense=lH;he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=EH;he.act=TN;he.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=fN({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=NO.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)mN.call(t,l)&&!EN.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Af,type:e.type,key:o,ref:i,props:r,_owner:s}};he.createContext=function(e){return e={$$typeof:sH,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:iH,_context:e},e.Consumer=e};he.createElement=_N;he.createFactory=function(e){var t=_N.bind(null,e);return t.type=e,t};he.createRef=function(){return{current:null}};he.forwardRef=function(e){return{$$typeof:aH,render:e}};he.isValidElement=bO;he.lazy=function(e){return{$$typeof:cH,_payload:{_status:-1,_result:e},_init:mH}};he.memo=function(e,t){return{$$typeof:uH,type:e,compare:t===void 0?null:t}};he.startTransition=function(e){var t=Vp.transition;Vp.transition={};try{e()}finally{Vp.transition=t}};he.unstable_act=TN;he.useCallback=function(e,t){return Pn.current.useCallback(e,t)};he.useContext=function(e){return Pn.current.useContext(e)};he.useDebugValue=function(){};he.useDeferredValue=function(e){return Pn.current.useDeferredValue(e)};he.useEffect=function(e,t){return Pn.current.useEffect(e,t)};he.useId=function(){return Pn.current.useId()};he.useImperativeHandle=function(e,t,n){return Pn.current.useImperativeHandle(e,t,n)};he.useInsertionEffect=function(e,t){return Pn.current.useInsertionEffect(e,t)};he.useLayoutEffect=function(e,t){return Pn.current.useLayoutEffect(e,t)};he.useMemo=function(e,t){return Pn.current.useMemo(e,t)};he.useReducer=function(e,t,n){return Pn.current.useReducer(e,t,n)};he.useRef=function(e){return Pn.current.useRef(e)};he.useState=function(e){return Pn.current.useState(e)};he.useSyncExternalStore=function(e,t,n){return Pn.current.useSyncExternalStore(e,t,n)};he.useTransition=function(){return Pn.current.useTransition()};he.version="18.3.1"});var Y=fr((NZ,ON)=>{"use strict";ON.exports=hN()});var CN=fr(je=>{"use strict";function DO(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(0<Hp(o,t))e[r]=t,e[n]=o,n=r;else break e}}function oo(e){return e.length===0?null:e[0]}function Yp(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var s=2*(r+1)-1,a=e[s],l=s+1,u=e[l];if(0>Hp(a,n))l<o&&0>Hp(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[s]=n,r=s);else if(l<o&&0>Hp(u,n))e[r]=u,e[l]=n,r=l;else break e}}return t}function Hp(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(IN=performance,je.unstable_now=function(){return IN.now()}):(LO=Date,gN=LO.now(),je.unstable_now=function(){return LO.now()-gN});var IN,LO,gN,vo=[],Ji=[],_H=1,Mr=null,Tn=3,Kp=!1,ha=!1,Nf=!1,AN=typeof setTimeout=="function"?setTimeout:null,yN=typeof clearTimeout=="function"?clearTimeout:null,SN=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function vO(e){for(var t=oo(Ji);t!==null;){if(t.callback===null)Yp(Ji);else if(t.startTime<=e)Yp(Ji),t.sortIndex=t.expirationTime,DO(vo,t);else break;t=oo(Ji)}}function xO(e){if(Nf=!1,vO(e),!ha)if(oo(vo)!==null)ha=!0,FO(MO);else{var t=oo(Ji);t!==null&&GO(xO,t.startTime-e)}}function MO(e,t){ha=!1,Nf&&(Nf=!1,yN(bf),bf=-1),Kp=!0;var n=Tn;try{for(vO(t),Mr=oo(vo);Mr!==null&&(!(Mr.expirationTime>t)||e&&!LN());){var r=Mr.callback;if(typeof r=="function"){Mr.callback=null,Tn=Mr.priorityLevel;var o=r(Mr.expirationTime<=t);t=je.unstable_now(),typeof o=="function"?Mr.callback=o:Mr===oo(vo)&&Yp(vo),vO(t)}else Yp(vo);Mr=oo(vo)}if(Mr!==null)var i=!0;else{var s=oo(Ji);s!==null&&GO(xO,s.startTime-t),i=!1}return i}finally{Mr=null,Tn=n,Kp=!1}}var zp=!1,Wp=null,bf=-1,NN=5,bN=-1;function LN(){return!(je.unstable_now()-bN<NN)}function CO(){if(Wp!==null){var e=je.unstable_now();bN=e;var t=!0;try{t=Wp(!0,e)}finally{t?yf():(zp=!1,Wp=null)}}else zp=!1}var yf;typeof SN=="function"?yf=function(){SN(CO)}:typeof MessageChannel<"u"?(PO=new MessageChannel,RN=PO.port2,PO.port1.onmessage=CO,yf=function(){RN.postMessage(null)}):yf=function(){AN(CO,0)};var PO,RN;function FO(e){Wp=e,zp||(zp=!0,yf())}function GO(e,t){bf=AN(function(){e(je.unstable_now())},t)}je.unstable_IdlePriority=5;je.unstable_ImmediatePriority=1;je.unstable_LowPriority=4;je.unstable_NormalPriority=3;je.unstable_Profiling=null;je.unstable_UserBlockingPriority=2;je.unstable_cancelCallback=function(e){e.callback=null};je.unstable_continueExecution=function(){ha||Kp||(ha=!0,FO(MO))};je.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):NN=0<e?Math.floor(1e3/e):5};je.unstable_getCurrentPriorityLevel=function(){return Tn};je.unstable_getFirstCallbackNode=function(){return oo(vo)};je.unstable_next=function(e){switch(Tn){case 1:case 2:case 3:var t=3;break;default:t=Tn}var n=Tn;Tn=t;try{return e()}finally{Tn=n}};je.unstable_pauseExecution=function(){};je.unstable_requestPaint=function(){};je.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Tn;Tn=e;try{return t()}finally{Tn=n}};je.unstable_scheduleCallback=function(e,t,n){var r=je.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:_H++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>r?(e.sortIndex=n,DO(Ji,e),oo(vo)===null&&e===oo(Ji)&&(Nf?(yN(bf),bf=-1):Nf=!0,GO(xO,n-r))):(e.sortIndex=o,DO(vo,e),ha||Kp||(ha=!0,FO(MO))),e};je.unstable_shouldYield=LN;je.unstable_wrapCallback=function(e){var t=Tn;return function(){var n=Tn;Tn=t;try{return e.apply(this,arguments)}finally{Tn=n}}}});var DN=fr((LZ,PN)=>{"use strict";PN.exports=CN()});var FC=fr(Tr=>{"use strict";var TH=Y(),Er=DN();function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var wb=new Set,$f={};function Da(e,t){_u(e,t),_u(e+"Capture",t)}function _u(e,t){for($f[e]=t,e=0;e<t.length;e++)wb.add(t[e])}var fi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),iI=Object.prototype.hasOwnProperty,hH=/^[: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]*$/,vN={},xN={};function OH(e){return iI.call(xN,e)?!0:iI.call(vN,e)?!1:hH.test(e)?xN[e]=!0:(vN[e]=!0,!1)}function IH(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gH(e,t,n,r){if(t===null||typeof t>"u"||IH(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function xn(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var sn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){sn[e]=new xn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 4,692 bytes, lines 1-2
1h(function(e){var t=e[0];sn[t]=new xn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){sn[e]=new xn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){sn[e]=new xn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){sn[e]=new xn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){sn[e]=new xn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){sn[e]=new xn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){sn[e]=new xn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){sn[e]=new xn(e,5,!1,e.toLowerCase(),null,!1,!1)});var JI=/[\-:]([a-z])/g;function qI(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(JI,qI);sn[t]=new xn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(JI,qI);sn[t]=new xn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(JI,qI);sn[t]=new xn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){sn[e]=new xn(e,1,!1,e.toLowerCase(),null,!1,!1)});sn.xlinkHref=new xn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){sn[e]=new xn(e,1,!1,e.toLowerCase(),null,!0,!0)});function QI(e,t,n,r){var o=sn.hasOwnProperty(t)?sn[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(gH(t,n,o,r)&&(n=null),r||o===null?OH(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ei=TH.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xp=Symbol.for("react.element"),ql=Symbol.for("react.portal"),Ql=Symbol.for("react.fragment"),eg=Symbol.for("react.strict_mode"),sI=Symbol.for("react.profiler"),Bb=Symbol.for("react.provider"),Ub=Symbol.for("react.context"),tg=Symbol.for("react.forward_ref"),aI=Symbol.for("react.suspense"),lI=Symbol.for("react.suspense_list"),ng=Symbol.for("react.memo"),Qi=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var Vb=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var MN=Symbol.iterator;function Lf(e){return e===null||typeof e!="object"?null:(e=MN&&e[MN]||e["@@iterator"],typeof e=="function"?e:null)}var Et=Object.assign,kO;function Gf(e){if(kO===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);kO=t&&t[1]||""}return` 2`+kO+e}var wO=!1;function BO(e,t){if(!e||wO)return"";wO=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 4,643 bytes, lines 2-5
2catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(` 3`),i=r.stack.split(` 4`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=` 5`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{wO=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gf(e):""}function SH(e){switch(e.tag){case 5:return Gf(e.type);case 16:return Gf("Lazy");case 13:return Gf("Suspense");case 19:return Gf("SuspenseList");case 0:case 2:case 15:return e=BO(e.type,!1),e;case 11:return e=BO(e.type.render,!1),e;case 1:return e=BO(e.type,!0),e;default:return""}}function uI(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ql:return"Fragment";case ql:return"Portal";case sI:return"Profiler";case eg:return"StrictMode";case aI:return"Suspense";case lI:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ub:return(e.displayName||"Context")+".Consumer";case Bb:return(e._context.displayName||"Context")+".Provider";case tg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ng:return t=e.displayName||null,t!==null?t:uI(e.type)||"Memo";case Qi:t=e._payload,e=e._init;try{return uI(e(t))}catch{}}return null}function RH(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return uI(t);case 8:return t===eg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ps(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AH(e){var t=Hb(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jp(e){e._valueTracker||(e._valueTracker=AH(e))}function Wb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Hb(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Sm(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function cI(e,t){var n=t.checked;return Et({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function FN(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ps(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Yb(e,t){t=t.checked,t!=null&&QI(e,"checked",t,!1)}function fI(e,t){Yb(e,t);var n=ps(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?dI(e,t.type,n):t.hasOwnProperty("defaultValue")&&dI(e,t.type,ps(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function GN(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}
vendor: 4,392 bytes, line 5
5function dI(e,t,n){(t!=="number"||Sm(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var kf=Array.isArray;function cu(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ps(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function pI(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(V(91));return Et({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function kN(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(V(92));if(kf(n)){if(1<n.length)throw Error(V(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ps(n)}}function Kb(e,t){var n=ps(t.value),r=ps(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function wN(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zb(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mI(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zb(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var $p,Xb=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for($p=$p||document.createElement("div"),$p.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=$p.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Uf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yH=["Webkit","ms","Moz","O"];Object.keys(Uf).forEach(function(e){yH.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Uf[t]=Uf[e]})});function jb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Uf.hasOwnProperty(e)&&Uf[e]?(""+t).trim():t+"px"}function $b(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=jb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var NH=Et({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function EI(e,t){if(t){if(NH[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function _I(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 TI=null;function rg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hI=null,fu=null,du=null;function BN(e){if(e=md(e)){if(typeof hI!="function")throw Error(V(280));var t=e.stateNode;t&&(t=Zm(t),hI(e.stateNode,e.type,t))}}function Zb(e){fu?du?du.push(e):du=[e]:fu=e}
vendor: 5,058 bytes, line 5
5function Jb(){if(fu){var e=fu,t=du;if(du=fu=null,BN(e),t)for(e=0;e<t.length;e++)BN(t[e])}}function qb(e,t){return e(t)}function Qb(){}var UO=!1;function eL(e,t,n){if(UO)return e(t,n);UO=!0;try{return qb(e,t,n)}finally{UO=!1,(fu!==null||du!==null)&&(Qb(),Jb())}}function Jf(e,t){var n=e.stateNode;if(n===null)return null;var r=Zm(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(V(231,t,typeof n));return n}var OI=!1;if(fi)try{Zl={},Object.defineProperty(Zl,"passive",{get:function(){OI=!0}}),window.addEventListener("test",Zl,Zl),window.removeEventListener("test",Zl,Zl)}catch{OI=!1}var Zl;function bH(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Vf=!1,Rm=null,Am=!1,II=null,LH={onError:function(e){Vf=!0,Rm=e}};function CH(e,t,n,r,o,i,s,a,l){Vf=!1,Rm=null,bH.apply(LH,arguments)}function PH(e,t,n,r,o,i,s,a,l){if(CH.apply(this,arguments),Vf){if(Vf){var u=Rm;Vf=!1,Rm=null}else throw Error(V(198));Am||(Am=!0,II=u)}}function va(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function tL(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function UN(e){if(va(e)!==e)throw Error(V(188))}function DH(e){var t=e.alternate;if(!t){if(t=va(e),t===null)throw Error(V(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return UN(o),e;if(i===r)return UN(o),t;i=i.sibling}throw Error(V(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(V(189))}}if(n.alternate!==r)throw Error(V(190))}if(n.tag!==3)throw Error(V(188));return n.stateNode.current===n?e:t}function nL(e){return e=DH(e),e!==null?rL(e):null}function rL(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rL(e);if(t!==null)return t;e=e.sibling}return null}var oL=Er.unstable_scheduleCallback,VN=Er.unstable_cancelCallback,vH=Er.unstable_shouldYield,xH=Er.unstable_requestPaint,Rt=Er.unstable_now,MH=Er.unstable_getCurrentPriorityLevel,og=Er.unstable_ImmediatePriority,iL=Er.unstable_UserBlockingPriority,ym=Er.unstable_NormalPriority,FH=Er.unstable_LowPriority,sL=Er.unstable_IdlePriority,zm=null,Go=null;function GH(e){if(Go&&typeof Go.onCommitFiberRoot=="function")try{Go.onCommitFiberRoot(zm,e,void 0,(e.current.flags&128)===128)}catch{}}var uo=Math.clz32?Math.clz32:BH,kH=Math.log,wH=Math.LN2;function BH(e){return e>>>=0,e===0?32:31-(kH(e)/wH|0)|0}var Zp=64,Jp=4194304;function wf(e){switch(e&-e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Nm(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=wf(a):(i&=s,i!==0&&(r=wf(i)))}else s=n&~o,s!==0?r=wf(s):i!==0&&(r=wf(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-uo(t),o=1<<n,r|=e[n],t&=~o;return r}function UH(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function VH(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-uo(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=UH(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function gI(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function aL(){var e=Zp;return Zp<<=1,!(Zp&4194240)&&(Zp=64),e}function VO(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
vendor: 4,087 bytes, line 5
5function dd(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-uo(t),e[t]=n}function HH(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-uo(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function ig(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-uo(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Ve=0;function lL(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var uL,sg,cL,fL,dL,SI=!1,qp=[],is=null,ss=null,as=null,qf=new Map,Qf=new Map,ts=[],WH="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 submit".split(" ");function HN(e,t){switch(e){case"focusin":case"focusout":is=null;break;case"dragenter":case"dragleave":ss=null;break;case"mouseover":case"mouseout":as=null;break;case"pointerover":case"pointerout":qf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qf.delete(t.pointerId)}}function Cf(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=md(t),t!==null&&sg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function YH(e,t,n,r,o){switch(t){case"focusin":return is=Cf(is,e,t,n,r,o),!0;case"dragenter":return ss=Cf(ss,e,t,n,r,o),!0;case"mouseover":return as=Cf(as,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return qf.set(i,Cf(qf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Qf.set(i,Cf(Qf.get(i)||null,e,t,n,r,o)),!0}return!1}function pL(e){var t=ga(e.target);if(t!==null){var n=va(t);if(n!==null){if(t=n.tag,t===13){if(t=tL(n),t!==null){e.blockedOn=t,dL(e.priority,function(){cL(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function dm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=RI(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);TI=r,n.target.dispatchEvent(r),TI=null}else return t=md(n),t!==null&&sg(t),e.blockedOn=n,!1;t.shift()}return!0}function WN(e,t,n){dm(e)&&n.delete(t)}function KH(){SI=!1,is!==null&&dm(is)&&(is=null),ss!==null&&dm(ss)&&(ss=null),as!==null&&dm(as)&&(as=null),qf.forEach(WN),Qf.forEach(WN)}function Pf(e,t){e.blockedOn===t&&(e.blockedOn=null,SI||(SI=!0,Er.unstable_scheduleCallback(Er.unstable_NormalPriority,KH)))}function ed(e){function t(o){return Pf(o,e)}if(0<qp.length){Pf(qp[0],e);for(var n=1;n<qp.length;n++){var r=qp[n];r.blockedOn===e&&(r.blockedOn=null)}}for(is!==null&&Pf(is,e),ss!==null&&Pf(ss,e),as!==null&&Pf(as,e),qf.forEach(t),Qf.forEach(t),n=0;n<ts.length;n++)r=ts[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ts.length&&(n=ts[0],n.blockedOn===null);)pL(n),n.blockedOn===null&&ts.shift()}var pu=Ei.ReactCurrentBatchConfig,bm=!0;function zH(e,t,n,r){var o=Ve,i=pu.transition;pu.transition=null;try{Ve=1,ag(e,t,n,r)}finally{Ve=o,pu.transition=i}}function XH(e,t,n,r){var o=Ve,i=pu.transition;pu.transition=null;try{Ve=4,ag(e,t,n,r)}finally{Ve=o,pu.transition=i}}function ag(e,t,n,r){if(bm){var o=RI(e,t,n,r);if(o===null)jO(e,t,r,Lm,n),HN(e,r);else if(YH(o,e,t,n,r))r.stopPropagation();else if(HN(e,r),t&4&&-1<WH.indexOf(e)){for(;o!==null;){var i=md(o);if(i!==null&&uL(i),i=RI(e,t,n,r),i===null&&jO(e,t,r,Lm,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else jO(e,t,r,null,n)}}var Lm=null;function RI(e,t,n,r){if(Lm=null,e=rg(r),e=ga(e),e!==null)if(t=va(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tL(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Lm=e,null}
vendor: 4,373 bytes, line 5
5function mL(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(MH()){case og:return 1;case iL:return 4;case ym:case FH:return 16;case sL:return 536870912;default:return 16}default:return 16}}var rs=null,lg=null,pm=null;function EL(){if(pm)return pm;var e,t=lg,n=t.length,r,o="value"in rs?rs.value:rs.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return pm=o.slice(e,1<r?1-r:void 0)}function mm(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Qp(){return!0}function YN(){return!1}function _r(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Qp:YN,this.isPropagationStopped=YN,this}return Et(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Qp)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qp)},persist:function(){},isPersistent:Qp}),t}var Ru={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ug=_r(Ru),pd=Et({},Ru,{view:0,detail:0}),jH=_r(pd),HO,WO,Df,Xm=Et({},pd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Df&&(Df&&e.type==="mousemove"?(HO=e.screenX-Df.screenX,WO=e.screenY-Df.screenY):WO=HO=0,Df=e),HO)},movementY:function(e){return"movementY"in e?e.movementY:WO}}),KN=_r(Xm),$H=Et({},Xm,{dataTransfer:0}),ZH=_r($H),JH=Et({},pd,{relatedTarget:0}),YO=_r(JH),qH=Et({},Ru,{animationName:0,elapsedTime:0,pseudoElement:0}),QH=_r(qH),e2=Et({},Ru,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),t2=_r(e2),n2=Et({},Ru,{data:0}),zN=_r(n2),r2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},o2={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 s2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=i2[e])?!!t[e]:!1}function cg(){return s2}var a2=Et({},pd,{key:function(e){if(e.key){var t=r2[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 4,762 bytes, line 5
5return e.type==="keypress"?(e=mm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?o2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cg,charCode:function(e){return e.type==="keypress"?mm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?mm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),l2=_r(a2),u2=Et({},Xm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),XN=_r(u2),c2=Et({},pd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cg}),f2=_r(c2),d2=Et({},Ru,{propertyName:0,elapsedTime:0,pseudoElement:0}),p2=_r(d2),m2=Et({},Xm,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),E2=_r(m2),_2=[9,13,27,32],fg=fi&&"CompositionEvent"in window,Hf=null;fi&&"documentMode"in document&&(Hf=document.documentMode);var T2=fi&&"TextEvent"in window&&!Hf,_L=fi&&(!fg||Hf&&8<Hf&&11>=Hf),jN=String.fromCharCode(32),$N=!1;function TL(e,t){switch(e){case"keyup":return _2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hL(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var eu=!1;function h2(e,t){switch(e){case"compositionend":return hL(t);case"keypress":return t.which!==32?null:($N=!0,jN);case"textInput":return e=t.data,e===jN&&$N?null:e;default:return null}}function O2(e,t){if(eu)return e==="compositionend"||!fg&&TL(e,t)?(e=EL(),pm=lg=rs=null,eu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _L&&t.locale!=="ko"?null:t.data;default:return null}}var I2={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 ZN(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!I2[e.type]:t==="textarea"}function OL(e,t,n,r){Zb(r),t=Cm(t,"onChange"),0<t.length&&(n=new ug("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wf=null,td=null;function g2(e){PL(e,0)}function jm(e){var t=ru(e);if(Wb(t))return e}function S2(e,t){if(e==="change")return t}var IL=!1;fi&&(fi?(tm="oninput"in document,tm||(KO=document.createElement("div"),KO.setAttribute("oninput","return;"),tm=typeof KO.oninput=="function"),em=tm):em=!1,IL=em&&(!document.documentMode||9<document.documentMode));var em,tm,KO;function JN(){Wf&&(Wf.detachEvent("onpropertychange",gL),td=Wf=null)}function gL(e){if(e.propertyName==="value"&&jm(td)){var t=[];OL(t,td,e,rg(e)),eL(g2,t)}}function R2(e,t,n){e==="focusin"?(JN(),Wf=t,td=n,Wf.attachEvent("onpropertychange",gL)):e==="focusout"&&JN()}function A2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return jm(td)}function y2(e,t){if(e==="click")return jm(t)}function N2(e,t){if(e==="input"||e==="change")return jm(t)}function b2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fo=typeof Object.is=="function"?Object.is:b2;function nd(e,t){if(fo(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!iI.call(t,o)||!fo(e[o],t[o]))return!1}return!0}function qN(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function QN(e,t){var n=qN(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qN(n)}}function SL(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?SL(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function RL(){for(var e=window,t=Sm();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Sm(e.document)}return t}function dg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function L2(e){var t=RL(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&SL(n.ownerDocument.documentElement,n)){if(r!==null&&dg(n)){if
vendor: 4,431 bytes, line 5
5(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=QN(n,i);var s=QN(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var C2=fi&&"documentMode"in document&&11>=document.documentMode,tu=null,AI=null,Yf=null,yI=!1;function eb(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yI||tu==null||tu!==Sm(r)||(r=tu,"selectionStart"in r&&dg(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yf&&nd(Yf,r)||(Yf=r,r=Cm(AI,"onSelect"),0<r.length&&(t=new ug("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=tu)))}function nm(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nu={animationend:nm("Animation","AnimationEnd"),animationiteration:nm("Animation","AnimationIteration"),animationstart:nm("Animation","AnimationStart"),transitionend:nm("Transition","TransitionEnd")},zO={},AL={};fi&&(AL=document.createElement("div").style,"AnimationEvent"in window||(delete nu.animationend.animation,delete nu.animationiteration.animation,delete nu.animationstart.animation),"TransitionEvent"in window||delete nu.transitionend.transition);function $m(e){if(zO[e])return zO[e];if(!nu[e])return e;var t=nu[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in AL)return zO[e]=t[n];return e}var yL=$m("animationend"),NL=$m("animationiteration"),bL=$m("animationstart"),LL=$m("transitionend"),CL=new Map,tb="abort auxClick 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(" ");function Es(e,t){CL.set(e,t),Da(t,[e])}for(rm=0;rm<tb.length;rm++)om=tb[rm],nb=om.toLowerCase(),rb=om[0].toUpperCase()+om.slice(1),Es(nb,"on"+rb);var om,nb,rb,rm;Es(yL,"onAnimationEnd");Es(NL,"onAnimationIteration");Es(bL,"onAnimationStart");Es("dblclick","onDoubleClick");Es("focusin","onFocus");Es("focusout","onBlur");Es(LL,"onTransitionEnd");_u("onMouseEnter",["mouseout","mouseover"]);_u("onMouseLeave",["mouseout","mouseover"]);_u("onPointerEnter",["pointerout","pointerover"]);_u("onPointerLeave",["pointerout","pointerover"]);Da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Da("onBeforeInput",["compositionend","keypress","textInput","paste"]);Da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bf="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(" "),P2=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bf));function ob(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,PH(r,t,void 0,e),e.currentTarget=null}
vendor: 4,777 bytes, line 5
5function PL(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;ob(o,a,u),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;ob(o,a,u),i=l}}}if(Am)throw e=II,Am=!1,II=null,e}function nt(e,t){var n=t[PI];n===void 0&&(n=t[PI]=new Set);var r=e+"__bubble";n.has(r)||(DL(t,e,2,!1),n.add(r))}function XO(e,t,n){var r=0;t&&(r|=4),DL(n,e,r,t)}var im="_reactListening"+Math.random().toString(36).slice(2);function rd(e){if(!e[im]){e[im]=!0,wb.forEach(function(n){n!=="selectionchange"&&(P2.has(n)||XO(n,!1,e),XO(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[im]||(t[im]=!0,XO("selectionchange",!1,t))}}function DL(e,t,n,r){switch(mL(t)){case 1:var o=zH;break;case 4:o=XH;break;default:o=ag}n=o.bind(null,t,n,e),o=void 0,!OI||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function jO(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=ga(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}eL(function(){var u=i,c=rg(n),f=[];e:{var d=CL.get(e);if(d!==void 0){var p=ug,_=e;switch(e){case"keypress":if(mm(n)===0)break e;case"keydown":case"keyup":p=l2;break;case"focusin":_="focus",p=YO;break;case"focusout":_="blur",p=YO;break;case"beforeblur":case"afterblur":p=YO;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=KN;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=ZH;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=f2;break;case yL:case NL:case bL:p=QH;break;case LL:p=p2;break;case"scroll":p=jH;break;case"wheel":p=E2;break;case"copy":case"cut":case"paste":p=t2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=XN}var T=(t&4)!==0,h=!T&&e==="scroll",m=T?d!==null?d+"Capture":null:d;T=[];for(var E=u,O;E!==null;){O=E;var I=O.stateNode;if(O.tag===5&&I!==null&&(O=I,m!==null&&(I=Jf(E,m),I!=null&&T.push(od(E,I,O)))),h)break;E=E.return}0<T.length&&(d=new p(d,_,null,n,c),f.push({event:d,listeners:T}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==TI&&(_=n.relatedTarget||n.fromElement)&&(ga(_)||_[di]))break e;if((p||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,p?(_=n.relatedTarget||n.toElement,p=u,_=_?ga(_):null,_!==null&&(h=va(_),_!==h||_.tag!==5&&_.tag!==6)&&(_=null)):(p=null,_=u),p!==_)){if(T=KN,I="onMouseLeave",m="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(T=XN,I="onPointerLeave",m="onPointerEnter",E="pointer"),h=p==null?d:ru(p),O=_==null?d:ru(_),d=new T(I,E+"leave",p,n,c),d.target=h,d.relatedTarget=O,I=null,ga(c)===u&&(T=new T(m,E+"enter",_,n,c),T.target=O,T.relatedTarget=h,I=T),h=I,p&&_)t:{for(T=p,m=_,E=0,O=T;O;O=Jl(O))E++;for(O=0,I=m;I;I=Jl(I))O++;for(;0<E-O;)T=Jl(T),E--;for(;0<O-E;)m=Jl(m),O--;for(;E--;){if(T===m||m!==null&&T===m.alternate)break t;T=Jl(T),m=Jl(m)}T=null}else T=null;p!==null&&ib(f,d,p,T,!1),_!==null&&h!==null&&ib(f,h,_,T,!0)}}e:{if(d=u?ru(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var g=S2;else if(ZN(d))if(IL)g=N2;else{g=A2;var S=R2}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(g=y2);if(g&&(g=g(e,u))){OL(f,g,n,c);break e}S&&S(e,d,u),e==="focusout"&&(S=d._wrapperState)&&S.controlled&&d.type==="number"&&dI(d,"number",d.value)}switch(S=u?ru(u):window,e){case"focusin":(ZN(S)||S.contentEditable==="true")&&(tu=S,AI=u,Yf=null);break;case"focusout":Yf=AI=tu=null;break;case"mousedown":yI=!0;break;case"contextmenu":case"mouseup":case"dragend":yI=!1,eb(f,n,c);break;case"selectionchange":if(C2)break;case"keydown":case"keyup":eb(f,n,c)}var A;if(fg)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}
vendor: 5,235 bytes, lines 5-6
5else eu?TL(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(_L&&n.locale!=="ko"&&(eu||R!=="onCompositionStart"?R==="onCompositionEnd"&&eu&&(A=EL()):(rs=c,lg="value"in rs?rs.value:rs.textContent,eu=!0)),S=Cm(u,R),0<S.length&&(R=new zN(R,e,null,n,c),f.push({event:R,listeners:S}),A?R.data=A:(A=hL(n),A!==null&&(R.data=A)))),(A=T2?h2(e,n):O2(e,n))&&(u=Cm(u,"onBeforeInput"),0<u.length&&(c=new zN("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=A))}PL(f,t)})}function od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Cm(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Jf(e,n),i!=null&&r.unshift(od(e,i,o)),i=Jf(e,t),i!=null&&r.push(od(e,i,o))),e=e.return}return r}function Jl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ib(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=Jf(n,i),l!=null&&s.unshift(od(n,l,a))):o||(l=Jf(n,i),l!=null&&s.push(od(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var D2=/\r\n?/g,v2=/\u0000|\uFFFD/g;function sb(e){return(typeof e=="string"?e:""+e).replace(D2,` 6`).replace(v2,"")}function sm(e,t,n){if(t=sb(t),sb(e)!==t&&n)throw Error(V(425))}function Pm(){}var NI=null,bI=null;function LI(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var CI=typeof setTimeout=="function"?setTimeout:void 0,x2=typeof clearTimeout=="function"?clearTimeout:void 0,ab=typeof Promise=="function"?Promise:void 0,M2=typeof queueMicrotask=="function"?queueMicrotask:typeof ab<"u"?function(e){return ab.resolve(null).then(e).catch(F2)}:CI;function F2(e){setTimeout(function(){throw e})}function $O(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ed(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ed(t)}function ls(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function lb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Au=Math.random().toString(36).slice(2),Fo="__reactFiber$"+Au,id="__reactProps$"+Au,di="__reactContainer$"+Au,PI="__reactEvents$"+Au,G2="__reactListeners$"+Au,k2="__reactHandles$"+Au;function ga(e){var t=e[Fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[di]||n[Fo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=lb(e);e!==null;){if(n=e[Fo])return n;e=lb(e)}return t}e=n,n=e.parentNode}return null}function md(e){return e=e[Fo]||e[di],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ru(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(V(33))}function Zm(e){return e[id]||null}var DI=[],ou=-1;function _s(e){return{current:e}}function rt(e){0>ou||(e.current=DI[ou],DI[ou]=null,ou--)}function $e(e,t){ou++,DI[ou]=e.current,e.current=t}var ms={},gn=_s(ms),Kn=_s(!1),Na=ms;function Tu(e,t){var n=e.type.contextTypes;if(!n)return ms;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function zn(e){return e=e.childContextTypes,e!=null}function Dm(){rt(Kn),rt(gn)}function ub(e,t,n){if(gn.current!==ms)throw Error(V(168));$e(gn,t),$e(Kn,n)}function vL(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(V(108,RH(e)||"Unknown",o));return Et({},n,r)}function vm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ms,Na=gn.current,$e(gn,e),$e(Kn,Kn.current),!0}function cb(e,t,n){var r=e.stateNode;if(!r)throw Error(V(169));n?(e=vL(e,t,Na),r.__reactInternalMemoizedMergedChildContext=e,rt(Kn),rt(gn),$e(gn,e)):rt(Kn),$e(Kn,n)}var ai=null,Jm=!1,ZO=!1;function xL(e){ai===null?ai=[e]:ai.push(e)}function w2(e){Jm=!0,xL(e)}function Ts(){if(!ZO&&ai!==null){ZO=!0;var e=0,t=Ve;try{var n=ai;for(Ve=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ai=null,Jm=!1}catch(o){throw ai!==null&&(ai=ai.slice(e+1)),oL(og,Ts),o}finally{Ve=t,ZO=!1}}return null}var iu=[],su=0,xm=null,Mm=0,Fr=[],Gr=0,ba=null,li=1,ui="";function Oa(e,t){iu[su++]=Mm,iu[su++]=xm,xm=e,Mm=t}function ML(e,t,n){Fr[Gr++]=li,Fr[Gr++]=ui,Fr[Gr++]=ba,ba=e;var r=li;e=ui;var o=32-uo(r)-1;r&=~(1<<o),n+=1;var i=32-uo(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,li=1<<32-uo(t)+o|n<<o|r,ui=i+e}else li=1<<i|n<<o|r,ui=e}function pg(e){e.return!==null&&(Oa(e,1),ML(e,1,0))}function mg(e){for(;e===xm;)xm=iu[--su],iu[su]=null,Mm=iu[--su],iu[su]=null;for(;e===ba;)ba=Fr[--Gr],Fr[Gr]=null,ui=Fr[--Gr],Fr[Gr]=null,li=Fr[--Gr],Fr[Gr]=null}
vendor: 9,105 bytes, line 6
6var mr=null,pr=null,ut=!1,lo=null;function FL(e,t){var n=kr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function fb(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,mr=e,pr=ls(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,mr=e,pr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ba!==null?{id:li,overflow:ui}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=kr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,mr=e,pr=null,!0):!1;default:return!1}}function vI(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xI(e){if(ut){var t=pr;if(t){var n=t;if(!fb(e,t)){if(vI(e))throw Error(V(418));t=ls(n.nextSibling);var r=mr;t&&fb(e,t)?FL(r,n):(e.flags=e.flags&-4097|2,ut=!1,mr=e)}}else{if(vI(e))throw Error(V(418));e.flags=e.flags&-4097|2,ut=!1,mr=e}}}function db(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mr=e}function am(e){if(e!==mr)return!1;if(!ut)return db(e),ut=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!LI(e.type,e.memoizedProps)),t&&(t=pr)){if(vI(e))throw GL(),Error(V(418));for(;t;)FL(e,t),t=ls(t.nextSibling)}if(db(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(V(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){pr=ls(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}pr=null}}else pr=mr?ls(e.stateNode.nextSibling):null;return!0}function GL(){for(var e=pr;e;)e=ls(e.nextSibling)}function hu(){pr=mr=null,ut=!1}function Eg(e){lo===null?lo=[e]:lo.push(e)}var B2=Ei.ReactCurrentBatchConfig;function vf(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(V(309));var r=n.stateNode}if(!r)throw Error(V(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(V(284));if(!n._owner)throw Error(V(290,e))}return e}function lm(e,t){throw e=Object.prototype.toString.call(t),Error(V(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function pb(e){var t=e._init;return t(e._payload)}function kL(e){function t(m,E){if(e){var O=m.deletions;O===null?(m.deletions=[E],m.flags|=16):O.push(E)}}function n(m,E){if(!e)return null;for(;E!==null;)t(m,E),E=E.sibling;return null}function r(m,E){for(m=new Map;E!==null;)E.key!==null?m.set(E.key,E):m.set(E.index,E),E=E.sibling;return m}function o(m,E){return m=ds(m,E),m.index=0,m.sibling=null,m}function i(m,E,O){return m.index=O,e?(O=m.alternate,O!==null?(O=O.index,O<E?(m.flags|=2,E):O):(m.flags|=2,E)):(m.flags|=1048576,E)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,E,O,I){return E===null||E.tag!==6?(E=rI(O,m.mode,I),E.return=m,E):(E=o(E,O),E.return=m,E)}function l(m,E,O,I){var g=O.type;return g===Ql?c(m,E,O.props.children,I,O.key):E!==null&&(E.elementType===g||typeof g=="object"&&g!==null&&g.$$typeof===Qi&&pb(g)===E.type)?(I=o(E,O.props),I.ref=vf(m,E,O),I.return=m,I):(I=gm(O.type,O.key,O.props,null,m.mode,I),I.ref=vf(m,E,O),I.return=m,I)}function u(m,E,O,I){return E===null||E.tag!==4||E.stateNode.containerInfo!==O.containerInfo||E.stateNode.implementation!==O.implementation?(E=oI(O,m.mode,I),E.return=m,E):(E=o(E,O.children||[]),E.return=m,E)}function c(m,E,O,I,g){return E===null||E.tag!==7?(E=ya(O,m.mode,I,g),E.return=m,E):(E=o(E,O),E.return=m,E)}function f(m,E,O){if(typeof E=="string"&&E!==""||typeof E=="number")return E=rI(""+E,m.mode,O),E.return=m,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Xp:return O=gm(E.type,E.key,E.props,null,m.mode,O),O.ref=vf(m,null,E),O.return=m,O;case ql:return E=oI(E,m.mode,O),E.return=m,E;case Qi:var I=E._init;return f(m,I(E._payload),O)}if(kf(E)||Lf(E))return E=ya(E,m.mode,O,null),E.return=m,E;lm(m,E)}return null}function d(m,E,O,I){var g=E!==null?E.key:null;if(typeof O=="string"&&O!==""||typeof O=="number")return g!==null?null:a(m,E,""+O,I);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Xp:return O.key===g?l(m,E,O,I):null;case ql:return O.key===g?u(m,E,O,I):null;case Qi:return g=O._init,d(m,E,g(O._payload),I)}if(kf(O)||Lf(O))return g!==null?null:c(m,E,O,I,null);lm(m,O)}return null}function p(m,E,O,I,g){if(typeof I=="string"&&I!==""||typeof I=="number")return m=m.get(O)||null,a(E,m,""+I,g);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case Xp:return m=m.get(I.key===null?O:I.key)||null,l(E,m,I,g);case ql:return m=m.get(I.key===null?O:I.key)||null,u(E,m,I,g);case Qi:var S=I._init;return p(m,E,O,S(I._payload),g)}if(kf(I)||Lf(I))return m=m.get(O)||null,c(E,m,I,g,null);lm(E,I)}return null}function _(m,E,O,I){for(var g=null,S=null,A=E,R=E=0,N=null;A!==null&&R<O.length;R++){A.index>R?(N=A,A=null):N=A.sibling;var L=d(m,A,O[R],I);if(L===null){A===null&&(A=N);break}e&&A&&L.alternate===null&&t(m,A),E=i(L,E,R),S===null?g=L:S.sibling=L,S=L,A=N}if(R===O.length)return n(m,A),ut&&Oa(m,R),g;if(A===null){for(;R<O.length;R++)A=f(m,O[R],I),A!==null&&(E=i(A,E,R),S===null?g=A:S.sibling=A,S=A);return ut&&Oa(m,R),g}for(A=r(m,A);R<O.length;R++)N=p(A,m,R,O[R],I),N!==null&&(e&&N.alternate!==null&&A.delete(N.key===null?R:N.key),E=i(N,E,R),S===null?g=N:S.sibling=N,S=N);return e&&A.forEach(function(b){return t(m,b)}),ut&&Oa(m,R),g}function T(m,E,O,I){var g=Lf(O);if(typeof g!="function")throw Error(V(150));if(O=g.call(O),O==null)throw Error(V(151));for(var S=g=null,A=E,R=E=0,N=null,L=O.next();A!==null&&!L.done;R++,L=O.next()){A.index>R?(N=A,A=null):N=A.sibling;var b=d(m,A,L.value,I);if(b===null){A===null&&(A=N);break}e&&A&&b.alternate===null&&t(m,A),E=i(b,E,R),S===null?g=b:S.sibling=b,S=b,A=N}if(L.done)return n(m,A),ut&&Oa(m,R),g;if(A===null){for(;!L.done;R++,L=O.next())L=f(m,L.value,I),L!==null&&(E=i(L,E,R),S===null?g=L:S.sibling=L,S=L);return ut&&Oa(m,R),g}for(A=r(m,A);!L.done;R++,L=O.next())L=p(A,m,R,L.value,I),L!==null&&(e&&L.alternate!==null&&A.delete(L.key===null?R:L.key),E=i(L,E,R),S===null?g=L:S.sibling=L,S=L);return e&&A.forEach(function(M){return t(m,M)}),ut&&Oa(m,R),g}function h(m,E,O,I){if(typeof O=="object"&&O!==null&&O.type===Ql&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case Xp:e:{for(var g=O.key,S=E;S!==null;){if(S.key===g){if(g=O.type,g===Ql){if(S.tag===7){n(m,S.sibling),E=o(S,O.props.children),E.return=m,m=E;break e}}else if(S.elementType===g||typeof g=="object"&&g!==null&&g.$$typeof===Qi&&pb(g)===S.type){n(m,S.sibling),E=o(S,O.props),E.ref=vf(m,S,O),E.return=m,m=E;break e}n(m,S);break}else t(m,S);S=S.sibling}O.type===Ql?(E=ya(O.props.children,m.mode,I,O.key),E.return=m,m=E):(I=gm(O.type,O.key,O.props,null,m.mode,I),I.ref=vf(m,E,O),I.return=m,m=I)}return s(m);case ql:e:{for(S=O.key;E!==null;){if(E.key===S)if(E.tag===4&&E.stateNode.containerInfo===O.containerInfo&&E.stateNode.implementation===O.implementation){n(m,E.sibling),E=o(E,O.children||[]),E.return=m,m=E;break e}else{n(m,E);break}else t(m,E);E=E.sibling}E=oI(O,m.mode,I),E.return=m,m=E}return s(m);case Qi:return S=O._init,h(m,E,S(O._payload),I)}if(kf(O))return _(m,E,O,I);if(Lf(O))return T(m,E,O,I);lm(m,O)}return typeof O=="string"&&O!==""||typeof O=="number"?(O=""+O,E!==null&&E.tag===6?(n(m,E.sibling),E=o(E,O),E.return=m,m=E):(n(m,E),E=rI(O,m.mode,I),E.return=m,m=E),s(m)):n(m,E)}return h}var Ou=kL(!0),wL=kL(!1),Fm=_s(null),Gm=null,au=null,_g=null;function Tg(){_g=au=Gm=null}function hg(e){var t=Fm.current;rt(Fm),e._currentValue=t}function MI(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function mu(e,t){Gm=e,_g=au=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Yn=!0),e.firstContext=null)}function Br(e){var t=e._currentValue;if(_g!==e)if(e={context:e,memoizedValue:t,next:null},au===null){if(Gm===null)throw Error(V(308));au=e,Gm.dependencies={lanes:0,firstContext:e}}else au=au.next=e;return t}var Sa=null;function Og(e){Sa===null?Sa=[e]:Sa.push(e)}function BL(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Og(t)):(n.next=o.next,o.next=n),t.interleaved=n,pi(e,r)}function pi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var es=!1;function Ig(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function UL(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ci(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}
vendor: 4,057 bytes, line 6
6function us(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ye&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,pi(e,n)}return o=r.interleaved,o===null?(t.next=t,Og(r)):(t.next=o.next,o.next=t),r.interleaved=t,pi(e,n)}function Em(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ig(e,n)}}function mb(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function km(e,t,n,r){var o=e.updateQueue;es=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;s=0,c=u=l=null,a=i;do{var d=a.lane,p=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var _=e,T=a;switch(d=t,p=n,T.tag){case 1:if(_=T.payload,typeof _=="function"){f=_.call(p,f,d);break e}f=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=T.payload,d=typeof _=="function"?_.call(p,f,d):_,d==null)break e;f=Et({},f,d);break e;case 2:es=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else p={eventTime:p,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=f):c=c.next=p,s|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(1);if(c===null&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ca|=s,e.lanes=s,e.memoizedState=f}}function Eb(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(V(191,o));o.call(r)}}}var Ed={},ko=_s(Ed),sd=_s(Ed),ad=_s(Ed);function Ra(e){if(e===Ed)throw Error(V(174));return e}function gg(e,t){switch($e(ad,t),$e(sd,e),$e(ko,Ed),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mI(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mI(t,e)}rt(ko),$e(ko,t)}function Iu(){rt(ko),rt(sd),rt(ad)}function VL(e){Ra(ad.current);var t=Ra(ko.current),n=mI(t,e.type);t!==n&&($e(sd,e),$e(ko,n))}function Sg(e){sd.current===e&&(rt(ko),rt(sd))}var pt=_s(0);function wm(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var JO=[];function Rg(){for(var e=0;e<JO.length;e++)JO[e]._workInProgressVersionPrimary=null;JO.length=0}var _m=Ei.ReactCurrentDispatcher,qO=Ei.ReactCurrentBatchConfig,La=0,mt=null,Dt=null,Bt=null,Bm=!1,Kf=!1,ld=0,U2=0;function hn(){throw Error(V(321))}function Ag(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!fo(e[n],t[n]))return!1;return!0}function yg(e,t,n,r,o,i){if(La=i,mt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_m.current=e===null||e.memoizedState===null?Y2:K2,e=n(r,o),Kf){i=0;do{if(Kf=!1,ld=0,25<=i)throw Error(V(301));i+=1,Bt=Dt=null,t.updateQueue=null,_m.current=z2,e=n(r,o)}while(Kf)}
vendor: 4,554 bytes, line 6
6if(_m.current=Um,t=Dt!==null&&Dt.next!==null,La=0,Bt=Dt=mt=null,Bm=!1,t)throw Error(V(300));return e}function Ng(){var e=ld!==0;return ld=0,e}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bt===null?mt.memoizedState=Bt=e:Bt=Bt.next=e,Bt}function Ur(){if(Dt===null){var e=mt.alternate;e=e!==null?e.memoizedState:null}else e=Dt.next;var t=Bt===null?mt.memoizedState:Bt.next;if(t!==null)Bt=t,Dt=e;else{if(e===null)throw Error(V(310));Dt=e,e={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},Bt===null?mt.memoizedState=Bt=e:Bt=Bt.next=e}return Bt}function ud(e,t){return typeof t=="function"?t(e):t}function QO(e){var t=Ur(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var r=Dt,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,u=i;do{var c=u.lane;if((La&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,s=r):l=l.next=f,mt.lanes|=c,Ca|=c}u=u.next}while(u!==null&&u!==i);l===null?s=r:l.next=a,fo(r,t.memoizedState)||(Yn=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,mt.lanes|=i,Ca|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function eI(e){var t=Ur(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);fo(i,t.memoizedState)||(Yn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function HL(){}function WL(e,t){var n=mt,r=Ur(),o=t(),i=!fo(r.memoizedState,o);if(i&&(r.memoizedState=o,Yn=!0),r=r.queue,bg(zL.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Bt!==null&&Bt.memoizedState.tag&1){if(n.flags|=2048,cd(9,KL.bind(null,n,r,o,t),void 0,null),Ut===null)throw Error(V(349));La&30||YL(n,t,o)}return o}function YL(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=mt.updateQueue,t===null?(t={lastEffect:null,stores:null},mt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function KL(e,t,n,r){t.value=n,t.getSnapshot=r,XL(t)&&jL(e)}function zL(e,t,n){return n(function(){XL(t)&&jL(e)})}function XL(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!fo(e,n)}catch{return!0}}function jL(e){var t=pi(e,1);t!==null&&co(t,e,1,-1)}function _b(e){var t=Mo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ud,lastRenderedState:e},t.queue=e,e=e.dispatch=W2.bind(null,mt,e),[t.memoizedState,e]}function cd(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=mt.updateQueue,t===null?(t={lastEffect:null,stores:null},mt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function $L(){return Ur().memoizedState}function Tm(e,t,n,r){var o=Mo();mt.flags|=e,o.memoizedState=cd(1|t,n,void 0,r===void 0?null:r)}function qm(e,t,n,r){var o=Ur();r=r===void 0?null:r;var i=void 0;if(Dt!==null){var s=Dt.memoizedState;if(i=s.destroy,r!==null&&Ag(r,s.deps)){o.memoizedState=cd(t,n,i,r);return}}mt.flags|=e,o.memoizedState=cd(1|t,n,i,r)}function Tb(e,t){return Tm(8390656,8,e,t)}function bg(e,t){return qm(2048,8,e,t)}function ZL(e,t){return qm(4,2,e,t)}function JL(e,t){return qm(4,4,e,t)}function qL(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function QL(e,t,n){return n=n!=null?n.concat([e]):null,qm(4,4,qL.bind(null,t,e),n)}function Lg(){}function eC(e,t){var n=Ur();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ag(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function tC(e,t){var n=Ur();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ag(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function nC(e,t,n){return La&21?(fo(n,t)||(n=aL(),mt.lanes|=n,Ca|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Yn=!0),e.memoizedState=n)}function V2(e,t){var n=Ve;Ve=n!==0&&4>n?n:4,e(!0);var r=qO.transition;qO.transition={};try{e(!1),t()}finally{Ve=n,qO.transition=r}}
vendor: 8,660 bytes, lines 6-8
6function rC(){return Ur().memoizedState}function H2(e,t,n){var r=fs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},oC(e))iC(t,n);else if(n=BL(e,t,n,r),n!==null){var o=vn();co(n,e,r,o),sC(n,t,r)}}function W2(e,t,n){var r=fs(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(oC(e))iC(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,fo(a,s)){var l=t.interleaved;l===null?(o.next=o,Og(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=BL(e,t,o,r),n!==null&&(o=vn(),co(n,e,r,o),sC(n,t,r))}}function oC(e){var t=e.alternate;return e===mt||t!==null&&t===mt}function iC(e,t){Kf=Bm=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ig(e,n)}}var Um={readContext:Br,useCallback:hn,useContext:hn,useEffect:hn,useImperativeHandle:hn,useInsertionEffect:hn,useLayoutEffect:hn,useMemo:hn,useReducer:hn,useRef:hn,useState:hn,useDebugValue:hn,useDeferredValue:hn,useTransition:hn,useMutableSource:hn,useSyncExternalStore:hn,useId:hn,unstable_isNewReconciler:!1},Y2={readContext:Br,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:Br,useEffect:Tb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Tm(4194308,4,qL.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Tm(4,2,e,t)},useMemo:function(e,t){var n=Mo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=H2.bind(null,mt,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:_b,useDebugValue:Lg,useDeferredValue:function(e){return Mo().memoizedState=e},useTransition:function(){var e=_b(!1),t=e[0];return e=V2.bind(null,e[1]),Mo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mt,o=Mo();if(ut){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),Ut===null)throw Error(V(349));La&30||YL(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Tb(zL.bind(null,r,i,e),[e]),r.flags|=2048,cd(9,KL.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Mo(),t=Ut.identifierPrefix;if(ut){var n=ui,r=li;n=(r&~(1<<32-uo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ld++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=U2++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},K2={readContext:Br,useCallback:eC,useContext:Br,useEffect:bg,useImperativeHandle:QL,useInsertionEffect:ZL,useLayoutEffect:JL,useMemo:tC,useReducer:QO,useRef:$L,useState:function(){return QO(ud)},useDebugValue:Lg,useDeferredValue:function(e){var t=Ur();return nC(t,Dt.memoizedState,e)},useTransition:function(){var e=QO(ud)[0],t=Ur().memoizedState;return[e,t]},useMutableSource:HL,useSyncExternalStore:WL,useId:rC,unstable_isNewReconciler:!1},z2={readContext:Br,useCallback:eC,useContext:Br,useEffect:bg,useImperativeHandle:QL,useInsertionEffect:ZL,useLayoutEffect:JL,useMemo:tC,useReducer:eI,useRef:$L,useState:function(){return eI(ud)},useDebugValue:Lg,useDeferredValue:function(e){var t=Ur();return Dt===null?t.memoizedState=e:nC(t,Dt.memoizedState,e)},useTransition:function(){var e=eI(ud)[0],t=Ur().memoizedState;return[e,t]},useMutableSource:HL,useSyncExternalStore:WL,useId:rC,unstable_isNewReconciler:!1};function so(e,t){if(e&&e.defaultProps){t=Et({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function FI(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Et({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Qm={isMounted:function(e){return(e=e._reactInternals)?va(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vn(),o=fs(e),i=ci(r,o);i.payload=t,n!=null&&(i.callback=n),t=us(e,i,o),t!==null&&(co(t,e,o,r),Em(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vn(),o=fs(e),i=ci(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=us(e,i,o),t!==null&&(co(t,e,o,r),Em(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vn(),r=fs(e),o=ci(n,r);o.tag=2,t!=null&&(o.callback=t),t=us(e,o,r),t!==null&&(co(t,e,r,n),Em(t,e,r))}};function hb(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!nd(n,r)||!nd(o,i):!0}function aC(e,t,n){var r=!1,o=ms,i=t.contextType;return typeof i=="object"&&i!==null?i=Br(i):(o=zn(t)?Na:gn.current,r=t.contextTypes,i=(r=r!=null)?Tu(e,o):ms),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Qm,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ob(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Qm.enqueueReplaceState(t,t.state,null)}function GI(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ig(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Br(i):(i=zn(t)?Na:gn.current,o.context=Tu(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(FI(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Qm.enqueueReplaceState(o,o.state,null),km(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function gu(e,t){try{var n="",r=t;do n+=SH(r),r=r.return;while(r);var o=n}catch(i){o=` 7Error generating stack: `+i.message+` 8`+i.stack}return{value:e,source:t,stack:o,digest:null}}function tI(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function kI(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var X2=typeof WeakMap=="function"?WeakMap:Map;function lC(e,t,n){n=ci(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hm||(Hm=!0,XI=r),kI(e,t)},n}function uC(e,t,n){n=ci(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){kI(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){kI(e,t),typeof r!="function"&&(cs===null?cs=new Set([this]):cs.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Ib(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new X2;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=aW.bind(null,e,t,n),t.then(e,e))}function gb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Sb(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ci(-1,1),t.tag=2,us(n,t,1))),n.lanes|=1),e)}var j2=Ei.ReactCurrentOwner,Yn=!1;function Dn(e,t,n,r){t.child=e===null?wL(t,null,n,r):Ou(t,e.child,n,r)}function Rb(e,t,n,r,o){n=n.render;var i=t.ref;return mu(t,o),r=yg(e,t,n,r,i,o),n=Ng(),e!==null&&!Yn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,mi(e,t,o)):(ut&&n&&pg(t),t.flags|=1,Dn(e,t,r,o),t.child)}function Ab(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Gg(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,cC(e,t,i,r,o)):(e=gm(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:nd,n(s,r)&&e.ref===t.ref)return mi(e,t,o)}return t.flags|=1,e=ds(i,r),e.ref=t.ref,e.return=t,t.child=e}function cC(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(nd(i,r)&&e.ref===t.ref)if(Yn=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Yn=!0);else return t.lanes=e.lanes,mi(e,t,o)}return wI(e,t,n,r,o)}
vendor: 8,719 bytes, line 8
8function fC(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(uu,dr),dr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$e(uu,dr),dr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,$e(uu,dr),dr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,$e(uu,dr),dr|=r;return Dn(e,t,o,n),t.child}function dC(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function wI(e,t,n,r,o){var i=zn(n)?Na:gn.current;return i=Tu(t,i),mu(t,o),n=yg(e,t,n,r,i,o),r=Ng(),e!==null&&!Yn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,mi(e,t,o)):(ut&&r&&pg(t),t.flags|=1,Dn(e,t,n,o),t.child)}function yb(e,t,n,r,o){if(zn(n)){var i=!0;vm(t)}else i=!1;if(mu(t,o),t.stateNode===null)hm(e,t),aC(t,n,r),GI(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Br(u):(u=zn(n)?Na:gn.current,u=Tu(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Ob(t,s,r,u),es=!1;var d=t.memoizedState;s.state=d,km(t,r,s,o),l=t.memoizedState,a!==r||d!==l||Kn.current||es?(typeof c=="function"&&(FI(t,n,c,r),l=t.memoizedState),(a=es||hb(t,n,a,r,d,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,UL(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:so(t.type,a),s.props=u,f=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Br(l):(l=zn(n)?Na:gn.current,l=Tu(t,l));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==l)&&Ob(t,s,r,l),es=!1,d=t.memoizedState,s.state=d,km(t,r,s,o);var _=t.memoizedState;a!==f||d!==_||Kn.current||es?(typeof p=="function"&&(FI(t,n,p,r),_=t.memoizedState),(u=es||hb(t,n,u,r,d,_,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,_,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,_,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=_),s.props=r,s.state=_,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return BI(e,t,n,r,i,o)}function BI(e,t,n,r,o,i){dC(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&cb(t,n,!1),mi(e,t,i);r=t.stateNode,j2.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ou(t,e.child,null,i),t.child=Ou(t,null,a,i)):Dn(e,t,a,i),t.memoizedState=r.state,o&&cb(t,n,!0),t.child}function pC(e){var t=e.stateNode;t.pendingContext?ub(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ub(e,t.context,!1),gg(e,t.containerInfo)}function Nb(e,t,n,r,o){return hu(),Eg(o),t.flags|=256,Dn(e,t,n,r),t.child}var UI={dehydrated:null,treeContext:null,retryLane:0};function VI(e){return{baseLanes:e,cachePool:null,transitions:null}}function mC(e,t,n){var r=t.pendingProps,o=pt.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),$e(pt,o&1),e===null)return xI(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=nE(s,r,0,null),e=ya(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=VI(n),t.memoizedState=UI,e):Cg(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return $2(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ds(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=ds(a,i):(i=ya(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?VI(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=UI,r}return i=e.child,e=i.sibling,r=ds(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Cg(e,t){return t=nE({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function um(e,t,n,r){return r!==null&&Eg(r),Ou(t,e.child,null,n),e=Cg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $2(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=tI(Error(V(422))),um(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=nE({mode:"visible",children:r.children},o,0,null),i=ya(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ou(t,e.child,null,s),t.child.memoizedState=VI(s),t.memoizedState=UI,i);if(!(t.mode&1))return um(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(V(419)),r=tI(i,r,void 0),um(e,t,s,r)}if(a=(s&e.childLanes)!==0,Yn||a){if(r=Ut,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,pi(e,o),co(r,e,o,-1))}return Fg(),r=tI(Error(V(421))),um(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=lW.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,pr=ls(o.nextSibling),mr=t,ut=!0,lo=null,e!==null&&(Fr[Gr++]=li,Fr[Gr++]=ui,Fr[Gr++]=ba,li=e.id,ui=e.overflow,ba=t),t=Cg(t,r.children),t.flags|=4096,t)}function bb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),MI(e.return,t,n)}function nI(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function EC(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Dn(e,t,r.children,n),r=pt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bb(e,n,t);else if(e.tag===19)bb(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if($e(pt,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&wm(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),nI(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&wm(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}nI(t,!0,n,null,i);break;case"together":nI(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}
vendor: 4,890 bytes, line 8
8function mi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ca|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(V(153));if(t.child!==null){for(e=t.child,n=ds(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ds(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Z2(e,t,n){switch(t.tag){case 3:pC(t),hu();break;case 5:VL(t);break;case 1:zn(t.type)&&vm(t);break;case 4:gg(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;$e(Fm,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?($e(pt,pt.current&1),t.flags|=128,null):n&t.child.childLanes?mC(e,t,n):($e(pt,pt.current&1),e=mi(e,t,n),e!==null?e.sibling:null);$e(pt,pt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return EC(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),$e(pt,pt.current),r)break;return null;case 22:case 23:return t.lanes=0,fC(e,t,n)}return mi(e,t,n)}var _C,HI,TC,hC;_C=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};HI=function(){};TC=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ra(ko.current);var i=null;switch(n){case"input":o=cI(e,o),r=cI(e,r),i=[];break;case"select":o=Et({},o,{value:void 0}),r=Et({},r,{value:void 0}),i=[];break;case"textarea":o=pI(e,o),r=pI(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Pm)}EI(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&($f.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o?.[u],r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&($f.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&nt("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};hC=function(e,t,n,r){n!==r&&(t.flags|=4)};function xf(e,t){if(!ut)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function On(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function J2(e,t,n){var r=t.pendingProps;switch(mg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return On(t),null;case 1:return zn(t.type)&&Dm(),On(t),null;case 3:return r=t.stateNode,Iu(),rt(Kn),rt(gn),Rg(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(am(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,lo!==null&&(ZI(lo),lo=null))),HI(e,t),On(t),null;case 5:Sg(t);var o=Ra(ad.current);if(n=t.type,e!==null&&t.stateNode!=null)TC(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(V(166));return On(t),null}if(e=Ra(ko.current),am(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Fo]=t,r[id]=i,e=(t.mode&1)!==0,n){case"dialog":nt("cancel",r),nt("close",r);break;case"iframe":case"object":case"embed":nt("load",r);break;case"video":case"audio":for(o=0;o<Bf.length;o++)nt(Bf[o],r);break;case"source":nt("error",r);break;case"img":case"image":case"link":nt("error",r),nt("load",r);break;case"details":nt("toggle",r);break;case"input":FN(r,i),nt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},nt("invalid",r);break;case"textarea":kN(r,i),nt("invalid",r)}EI(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];
vendor: 9,430 bytes, line 8
8s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&sm(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&sm(r.textContent,a,e),o=["children",""+a]):$f.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&nt("scroll",r)}switch(n){case"input":jp(r),GN(r,i,!0);break;case"textarea":jp(r),wN(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Pm)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zb(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script></script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Fo]=t,e[id]=r,_C(e,t,!1,!1),t.stateNode=e;e:{switch(s=_I(n,r),n){case"dialog":nt("cancel",e),nt("close",e),o=r;break;case"iframe":case"object":case"embed":nt("load",e),o=r;break;case"video":case"audio":for(o=0;o<Bf.length;o++)nt(Bf[o],e);o=r;break;case"source":nt("error",e),o=r;break;case"img":case"image":case"link":nt("error",e),nt("load",e),o=r;break;case"details":nt("toggle",e),o=r;break;case"input":FN(e,r),o=cI(e,r),nt("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Et({},r,{value:void 0}),nt("invalid",e);break;case"textarea":kN(e,r),o=pI(e,r),nt("invalid",e);break;default:o=r}EI(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?$b(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Xb(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Zf(e,l):typeof l=="number"&&Zf(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&($f.hasOwnProperty(i)?l!=null&&i==="onScroll"&&nt("scroll",e):l!=null&&QI(e,i,l,s))}switch(n){case"input":jp(e),GN(e,r,!1);break;case"textarea":jp(e),wN(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ps(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?cu(e,!!r.multiple,i,!1):r.defaultValue!=null&&cu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Pm)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return On(t),null;case 6:if(e&&t.stateNode!=null)hC(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(V(166));if(n=Ra(ad.current),Ra(ko.current),am(t)){if(r=t.stateNode,n=t.memoizedProps,r[Fo]=t,(i=r.nodeValue!==n)&&(e=mr,e!==null))switch(e.tag){case 3:sm(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&sm(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Fo]=t,t.stateNode=r}return On(t),null;case 13:if(rt(pt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ut&&pr!==null&&t.mode&1&&!(t.flags&128))GL(),hu(),t.flags|=98560,i=!1;else if(i=am(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(V(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(V(317));i[Fo]=t}else hu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;On(t),i=!1}else lo!==null&&(ZI(lo),lo=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||pt.current&1?vt===0&&(vt=3):Fg())),t.updateQueue!==null&&(t.flags|=4),On(t),null);case 4:return Iu(),HI(e,t),e===null&&rd(t.stateNode.containerInfo),On(t),null;case 10:return hg(t.type._context),On(t),null;case 17:return zn(t.type)&&Dm(),On(t),null;case 19:if(rt(pt),i=t.memoizedState,i===null)return On(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)xf(i,!1);else{if(vt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=wm(e),s!==null){for(t.flags|=128,xf(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $e(pt,pt.current&1|2),t.child}e=e.sibling}i.tail!==null&&Rt()>Su&&(t.flags|=128,r=!0,xf(i,!1),t.lanes=4194304)}else{if(!r)if(e=wm(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xf(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ut)return On(t),null}else 2*Rt()-i.renderingStartTime>Su&&n!==1073741824&&(t.flags|=128,r=!0,xf(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Rt(),t.sibling=null,n=pt.current,$e(pt,r?n&1|2:n&1),t):(On(t),null);case 22:case 23:return Mg(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?dr&1073741824&&(On(t),t.subtreeFlags&6&&(t.flags|=8192)):On(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function q2(e,t){switch(mg(t),t.tag){case 1:return zn(t.type)&&Dm(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Iu(),rt(Kn),rt(gn),Rg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Sg(t),null;case 13:if(rt(pt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));hu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return rt(pt),null;case 4:return Iu(),null;case 10:return hg(t.type._context),null;case 22:case 23:return Mg(),null;case 24:return null;default:return null}}var cm=!1,In=!1,Q2=typeof WeakSet=="function"?WeakSet:Set,$=null;function lu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Tt(e,t,r)}else n.current=null}function WI(e,t,n){try{n()}catch(r){Tt(e,t,r)}}var Lb=!1;function eW(e,t){if(NI=bm,e=RL(),dg(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===o&&(a=s),d===i&&++c===r&&(l=s),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(bI={focusedElem:e,selectionRange:n},bm=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var T=_.memoizedProps,h=_.memoizedState,m=t.stateNode,E=m.getSnapshotBeforeUpdate(t.elementType===t.type?T:so(t.type,T),h);m.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var O=t.stateNode.containerInfo;O.nodeType===1?O.textContent="":O.nodeType===9&&O.documentElement&&O.removeChild(O.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(I){Tt(t,t.return,I)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return _=Lb,Lb=!1,_}function zf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&WI(t,n,i)}o=o.next}while(o!==r)}}function eE(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function YI(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function OC(e){var t=e.alternate;t!==null&&(e.alternate=null,OC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fo],delete t[id],delete t[PI],delete t[G2],delete t[k2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function IC(e){return e.tag===5||e.tag===3||e.tag===4}function Cb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||IC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function KI(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Pm));
vendor: 8,066 bytes, line 8
8else if(r!==4&&(e=e.child,e!==null))for(KI(e,t,n),e=e.sibling;e!==null;)KI(e,t,n),e=e.sibling}function zI(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(zI(e,t,n),e=e.sibling;e!==null;)zI(e,t,n),e=e.sibling}var rn=null,ao=!1;function qi(e,t,n){for(n=n.child;n!==null;)gC(e,t,n),n=n.sibling}function gC(e,t,n){if(Go&&typeof Go.onCommitFiberUnmount=="function")try{Go.onCommitFiberUnmount(zm,n)}catch{}switch(n.tag){case 5:In||lu(n,t);case 6:var r=rn,o=ao;rn=null,qi(e,t,n),rn=r,ao=o,rn!==null&&(ao?(e=rn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):rn.removeChild(n.stateNode));break;case 18:rn!==null&&(ao?(e=rn,n=n.stateNode,e.nodeType===8?$O(e.parentNode,n):e.nodeType===1&&$O(e,n),ed(e)):$O(rn,n.stateNode));break;case 4:r=rn,o=ao,rn=n.stateNode.containerInfo,ao=!0,qi(e,t,n),rn=r,ao=o;break;case 0:case 11:case 14:case 15:if(!In&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&WI(n,t,s),o=o.next}while(o!==r)}qi(e,t,n);break;case 1:if(!In&&(lu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Tt(n,t,a)}qi(e,t,n);break;case 21:qi(e,t,n);break;case 22:n.mode&1?(In=(r=In)||n.memoizedState!==null,qi(e,t,n),In=r):qi(e,t,n);break;default:qi(e,t,n)}}function Pb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Q2),t.forEach(function(r){var o=uW.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function io(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:rn=a.stateNode,ao=!1;break e;case 3:rn=a.stateNode.containerInfo,ao=!0;break e;case 4:rn=a.stateNode.containerInfo,ao=!0;break e}a=a.return}if(rn===null)throw Error(V(160));gC(i,s,o),rn=null,ao=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Tt(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)SC(t,e),t=t.sibling}function SC(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(io(t,e),xo(e),r&4){try{zf(3,e,e.return),eE(3,e)}catch(T){Tt(e,e.return,T)}try{zf(5,e,e.return)}catch(T){Tt(e,e.return,T)}}break;case 1:io(t,e),xo(e),r&512&&n!==null&&lu(n,n.return);break;case 5:if(io(t,e),xo(e),r&512&&n!==null&&lu(n,n.return),e.flags&32){var o=e.stateNode;try{Zf(o,"")}catch(T){Tt(e,e.return,T)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Yb(o,i),_I(a,s);var u=_I(a,i);for(s=0;s<l.length;s+=2){var c=l[s],f=l[s+1];c==="style"?$b(o,f):c==="dangerouslySetInnerHTML"?Xb(o,f):c==="children"?Zf(o,f):QI(o,c,f,u)}switch(a){case"input":fI(o,i);break;case"textarea":Kb(o,i);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?cu(o,!!i.multiple,p,!1):d!==!!i.multiple&&(i.defaultValue!=null?cu(o,!!i.multiple,i.defaultValue,!0):cu(o,!!i.multiple,i.multiple?[]:"",!1))}o[id]=i}catch(T){Tt(e,e.return,T)}}break;case 6:if(io(t,e),xo(e),r&4){if(e.stateNode===null)throw Error(V(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(T){Tt(e,e.return,T)}}break;case 3:if(io(t,e),xo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ed(t.containerInfo)}catch(T){Tt(e,e.return,T)}break;case 4:io(t,e),xo(e);break;case 13:io(t,e),xo(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(vg=Rt())),r&4&&Pb(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(In=(u=In)||c,io(t,e),In=u):io(t,e),xo(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for($=e,c=e.child;c!==null;){for(f=$=c;$!==null;){switch(d=$,p=d.child,d.tag){case 0:case 11:case 14:case 15:zf(4,d,d.return);break;case 1:lu(d,d.return);var _=d.stateNode;if(typeof _.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,_.props=t.memoizedProps,_.state=t.memoizedState,_.componentWillUnmount()}catch(T){Tt(r,n,T)}}break;case 5:lu(d,d.return);break;case 22:if(d.memoizedState!==null){vb(f);continue}}p!==null?(p.return=d,$=p):vb(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{o=f.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=jb("display",s))}catch(T){Tt(e,e.return,T)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(T){Tt(e,e.return,T)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:io(t,e),xo(e),r&4&&Pb(e);break;case 21:break;default:io(t,e),xo(e)}}function xo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(IC(n)){var r=n;break e}n=n.return}throw Error(V(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Zf(o,""),r.flags&=-33);var i=Cb(e);zI(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Cb(e);KI(e,a,s);break;default:throw Error(V(161))}}catch(l){Tt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tW(e,t,n){$=e,RC(e,t,n)}function RC(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var o=$,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||cm;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||In;a=cm;var u=In;if(cm=s,(In=l)&&!u)for($=o;$!==null;)s=$,l=s.child,s.tag===22&&s.memoizedState!==null?xb(o):l!==null?(l.return=s,$=l):xb(o);for(;i!==null;)$=i,RC(i,t,n),i=i.sibling;$=o,cm=a,In=u}Db(e,t,n)}else o.subtreeFlags&8772&&i!==null?(i.return=o,$=i):Db(e,t,n)}}function Db(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:In||eE(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!In)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:so(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Eb(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Eb(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&ed(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(V(163))}In||t.flags&512&&YI(t)}catch(d){Tt(t,t.return,d)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function vb(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function xb(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{eE(4,t)}catch(l){Tt(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Tt(t,o,l)}}var i=t.return;try{YI(t)}catch(l){Tt(t,i,l)}break;case 5:var s=t.return;try{YI(t)}catch(l){Tt(t,s,l)}}}catch(l){Tt(t,t.return,l)}if(t===e){$=null;break}var a=t.sibling;if(a!==null){a.return=t.return,$=a;break}$=t.return}}var nW=Math.ceil,Vm=Ei.ReactCurrentDispatcher,Pg=Ei.ReactCurrentOwner,wr=Ei.ReactCurrentBatchConfig,ye=0,Ut=null,yt=null,on=0,dr=0,uu=_s(0),vt=0,fd=null,Ca=0,tE=0,Dg=0,Xf=null,Wn=null,vg=0,Su=1/0,si=null,Hm
vendor: 6,672 bytes, line 8
8=!1,XI=null,cs=null,fm=!1,os=null,Wm=0,jf=0,jI=null,Om=-1,Im=0;function vn(){return ye&6?Rt():Om!==-1?Om:Om=Rt()}function fs(e){return e.mode&1?ye&2&&on!==0?on&-on:B2.transition!==null?(Im===0&&(Im=aL()),Im):(e=Ve,e!==0||(e=window.event,e=e===void 0?16:mL(e.type)),e):1}function co(e,t,n,r){if(50<jf)throw jf=0,jI=null,Error(V(185));dd(e,n,r),(!(ye&2)||e!==Ut)&&(e===Ut&&(!(ye&2)&&(tE|=n),vt===4&&ns(e,on)),Xn(e,r),n===1&&ye===0&&!(t.mode&1)&&(Su=Rt()+500,Jm&&Ts()))}function Xn(e,t){var n=e.callbackNode;VH(e,t);var r=Nm(e,e===Ut?on:0);if(r===0)n!==null&&VN(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&VN(n),t===1)e.tag===0?w2(Mb.bind(null,e)):xL(Mb.bind(null,e)),M2(function(){!(ye&6)&&Ts()}),n=null;else{switch(lL(r)){case 1:n=og;break;case 4:n=iL;break;case 16:n=ym;break;case 536870912:n=sL;break;default:n=ym}n=DC(n,AC.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function AC(e,t){if(Om=-1,Im=0,ye&6)throw Error(V(327));var n=e.callbackNode;if(Eu()&&e.callbackNode!==n)return null;var r=Nm(e,e===Ut?on:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ym(e,r);else{t=r;var o=ye;ye|=2;var i=NC();(Ut!==e||on!==t)&&(si=null,Su=Rt()+500,Aa(e,t));do try{iW();break}catch(a){yC(e,a)}while(1);Tg(),Vm.current=i,ye=o,yt!==null?t=0:(Ut=null,on=0,t=vt)}if(t!==0){if(t===2&&(o=gI(e),o!==0&&(r=o,t=$I(e,o))),t===1)throw n=fd,Aa(e,0),ns(e,r),Xn(e,Rt()),n;if(t===6)ns(e,r);else{if(o=e.current.alternate,!(r&30)&&!rW(o)&&(t=Ym(e,r),t===2&&(i=gI(e),i!==0&&(r=i,t=$I(e,i))),t===1))throw n=fd,Aa(e,0),ns(e,r),Xn(e,Rt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(V(345));case 2:Ia(e,Wn,si);break;case 3:if(ns(e,r),(r&130023424)===r&&(t=vg+500-Rt(),10<t)){if(Nm(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){vn(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=CI(Ia.bind(null,e,Wn,si),t);break}Ia(e,Wn,si);break;case 4:if(ns(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-uo(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Rt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nW(r/1960))-r,10<r){e.timeoutHandle=CI(Ia.bind(null,e,Wn,si),r);break}Ia(e,Wn,si);break;case 5:Ia(e,Wn,si);break;default:throw Error(V(329))}}}return Xn(e,Rt()),e.callbackNode===n?AC.bind(null,e):null}function $I(e,t){var n=Xf;return e.current.memoizedState.isDehydrated&&(Aa(e,t).flags|=256),e=Ym(e,t),e!==2&&(t=Wn,Wn=n,t!==null&&ZI(t)),e}function ZI(e){Wn===null?Wn=e:Wn.push.apply(Wn,e)}function rW(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!fo(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ns(e,t){for(t&=~Dg,t&=~tE,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-uo(t),r=1<<n;e[n]=-1,t&=~r}}function Mb(e){if(ye&6)throw Error(V(327));Eu();var t=Nm(e,0);if(!(t&1))return Xn(e,Rt()),null;var n=Ym(e,t);if(e.tag!==0&&n===2){var r=gI(e);r!==0&&(t=r,n=$I(e,r))}if(n===1)throw n=fd,Aa(e,0),ns(e,t),Xn(e,Rt()),n;if(n===6)throw Error(V(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ia(e,Wn,si),Xn(e,Rt()),null}function xg(e,t){var n=ye;ye|=1;try{return e(t)}finally{ye=n,ye===0&&(Su=Rt()+500,Jm&&Ts())}}function Pa(e){os!==null&&os.tag===0&&!(ye&6)&&Eu();var t=ye;ye|=1;var n=wr.transition,r=Ve;try{if(wr.transition=null,Ve=1,e)return e()}finally{Ve=r,wr.transition=n,ye=t,!(ye&6)&&Ts()}}function Mg(){dr=uu.current,rt(uu)}function Aa(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,x2(n)),yt!==null)for(n=yt.return;n!==null;){var r=n;switch(mg(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Dm();break;case 3:Iu(),rt(Kn),rt(gn),Rg();break;case 5:Sg(r);break;case 4:Iu();break;case 13:rt(pt);break;case 19:rt(pt);break;case 10:hg(r.type._context);break;case 22:case 23:Mg()}n=n.return}if(Ut=e,yt=e=ds(e.current,null),on=dr=t,vt=0,fd=null,Dg=tE=Ca=0,Wn=Xf=null,Sa!==null){for(t=0;t<Sa.length;t++)if(n=Sa[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Sa=null}return e}function yC(e,t){do{var n=yt;try{if(Tg(),_m.current=Um,Bm){for(var r=mt.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Bm=!1}if(La=0,Bt=Dt=mt=null,Kf=!1,ld=0,Pg.current=null,n===null||n.return===null){vt=1,fd=t,yt=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=on,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=gb(s);if(p!==null){p.flags&=-257,Sb(p,s,a,i,t),p.mode&1&&Ib(i,u,t),t=p,l=u;var _=t.updateQueue;if(_===null){var T=new Set;T.add(l),t.updateQueue=T}else _.add(l);break e}else{if(!(t&1)){Ib(i,u,t),Fg();break e}l=Error(V(426))}}else if(ut&&a.mode&1){var h=gb(s);if(h!==null){!(h.flags&65536)&&(h.flags|=256),Sb(h,s,a,i,t),Eg(gu(l,a));break e}}i=l=gu(l,a),vt!==4&&(vt=2),Xf===null?Xf=[i]:Xf.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=lC(i,l,t);mb(i,m);break e;case 1:a=l;var E=i.type,O=i.stateNode;if(!(i.flags&128)&&(typeof E.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(cs===null||!cs.has(O)))){i.flags|=65536,t&=-t,i.lanes|=t;var I=uC(i,a,t);mb(i,I);break e}}i=i.return}while(i!==null)}LC(n)}catch(g){t=g,yt===n&&n!==null&&(yt=n=n.return);continue}break}while(1)}function NC(){var e=Vm.current;return Vm.current=Um,e===null?Um:e}function Fg(){(vt===0||vt===3||vt===2)&&(vt=4),Ut===null||!(Ca&268435455)&&!(tE&268435455)||ns(Ut,on)}function Ym(e,t){var n=ye;ye|=2;var r=NC();(Ut!==e||on!==t)&&(si=null,Aa(e,t));do try{oW();break}catch(o){yC(e,o)}while(1);if(Tg(),ye=n,Vm.current=r,yt!==null)throw Error(V(261));return Ut=null,on=0,vt}function oW(){for(;yt!==null;)bC(yt)}function iW(){for(;yt!==null&&!vH();)bC(yt)}function bC(e){var t=PC(e.alternate,e,dr);e.memoizedProps=e.pendingProps,t===null?LC(e):yt=t,Pg.current=null}function LC(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=q2(n,t),n!==null){n.flags&=32767,yt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{vt=6,yt=null;return}}else if(n=J2(n,t,dr),n!==null){yt=n;return}if(t=t.sibling,t!==null){yt=t;return}yt=t=e}while(t!==null);vt===0&&(vt=5)}
vendor: 4,746 bytes, line 8
8function Ia(e,t,n){var r=Ve,o=wr.transition;try{wr.transition=null,Ve=1,sW(e,t,n,r)}finally{wr.transition=o,Ve=r}return null}function sW(e,t,n,r){do Eu();while(os!==null);if(ye&6)throw Error(V(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(V(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(HH(e,i),e===Ut&&(yt=Ut=null,on=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||fm||(fm=!0,DC(ym,function(){return Eu(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=wr.transition,wr.transition=null;var s=Ve;Ve=1;var a=ye;ye|=4,Pg.current=null,eW(e,n),SC(n,e),L2(bI),bm=!!NI,bI=NI=null,e.current=n,tW(n,e,o),xH(),ye=a,Ve=s,wr.transition=i}else e.current=n;if(fm&&(fm=!1,os=e,Wm=o),i=e.pendingLanes,i===0&&(cs=null),GH(n.stateNode,r),Xn(e,Rt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hm)throw Hm=!1,e=XI,XI=null,e;return Wm&1&&e.tag!==0&&Eu(),i=e.pendingLanes,i&1?e===jI?jf++:(jf=0,jI=e):jf=0,Ts(),null}function Eu(){if(os!==null){var e=lL(Wm),t=wr.transition,n=Ve;try{if(wr.transition=null,Ve=16>e?16:e,os===null)var r=!1;else{if(e=os,os=null,Wm=0,ye&6)throw Error(V(331));var o=ye;for(ye|=4,$=e.current;$!==null;){var i=$,s=i.child;if($.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for($=u;$!==null;){var c=$;switch(c.tag){case 0:case 11:case 15:zf(8,c,i)}var f=c.child;if(f!==null)f.return=c,$=f;else for(;$!==null;){c=$;var d=c.sibling,p=c.return;if(OC(c),c===u){$=null;break}if(d!==null){d.return=p,$=d;break}$=p}}}var _=i.alternate;if(_!==null){var T=_.child;if(T!==null){_.child=null;do{var h=T.sibling;T.sibling=null,T=h}while(T!==null)}}$=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,$=s;else e:for(;$!==null;){if(i=$,i.flags&2048)switch(i.tag){case 0:case 11:case 15:zf(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,$=m;break e}$=i.return}}var E=e.current;for($=E;$!==null;){s=$;var O=s.child;if(s.subtreeFlags&2064&&O!==null)O.return=s,$=O;else e:for(s=E;$!==null;){if(a=$,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:eE(9,a)}}catch(g){Tt(a,a.return,g)}if(a===s){$=null;break e}var I=a.sibling;if(I!==null){I.return=a.return,$=I;break e}$=a.return}}if(ye=o,Ts(),Go&&typeof Go.onPostCommitFiberRoot=="function")try{Go.onPostCommitFiberRoot(zm,e)}catch{}r=!0}return r}finally{Ve=n,wr.transition=t}}return!1}function Fb(e,t,n){t=gu(n,t),t=lC(e,t,1),e=us(e,t,1),t=vn(),e!==null&&(dd(e,1,t),Xn(e,t))}function Tt(e,t,n){if(e.tag===3)Fb(e,e,n);else for(;t!==null;){if(t.tag===3){Fb(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(cs===null||!cs.has(r))){e=gu(n,e),e=uC(t,e,1),t=us(t,e,1),e=vn(),t!==null&&(dd(t,1,e),Xn(t,e));break}}t=t.return}}function aW(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=vn(),e.pingedLanes|=e.suspendedLanes&n,Ut===e&&(on&n)===n&&(vt===4||vt===3&&(on&130023424)===on&&500>Rt()-vg?Aa(e,0):Dg|=n),Xn(e,t)}function CC(e,t){t===0&&(e.mode&1?(t=Jp,Jp<<=1,!(Jp&130023424)&&(Jp=4194304)):t=1);var n=vn();e=pi(e,t),e!==null&&(dd(e,t,n),Xn(e,n))}function lW(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),CC(e,n)}function uW(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(V(314))}r!==null&&r.delete(t),CC(e,n)}var PC;PC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Kn.current)Yn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Yn=!1,Z2(e,t,n);Yn=!!(e.flags&131072)}else Yn=!1,ut&&t.flags&1048576&&ML(t,Mm,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hm(e,t),e=t.pendingProps;var o=Tu(t,gn.current);mu(t,n),o=yg(null,t,r,e,o,n);var i=Ng();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zn(r)?(i=!0,vm(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ig(t),o.updater=Qm,t.stateNode=o,o._reactInternals=t,GI(t,r,e,n),t=BI(null,t,r,!0,i,n)):(t.tag=0,ut&&i&&pg(t),Dn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hm(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=fW(r),e=so(r,e),o){case 0:t=wI(null,t,r,e,n);break e;case 1:t=yb(null,t,r,e,n);break e;case 11:t=Rb(null,t,r,e,n);break e;case 14:t=Ab(null,t,r,so(r.type,e),n);break e}throw Error(V(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:so(r,o),wI(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:so(r,o),yb(e,t,r,o,n);case 3:e:{if(pC(t),e===null)throw Error(V(387));
vendor: 2,615 bytes, line 8
8r=t.pendingProps,i=t.memoizedState,o=i.element,UL(e,t),km(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=gu(Error(V(423)),t),t=Nb(e,t,r,n,o);break e}else if(r!==o){o=gu(Error(V(424)),t),t=Nb(e,t,r,n,o);break e}else for(pr=ls(t.stateNode.containerInfo.firstChild),mr=t,ut=!0,lo=null,n=wL(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hu(),r===o){t=mi(e,t,n);break e}Dn(e,t,r,n)}t=t.child}return t;case 5:return VL(t),e===null&&xI(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,LI(r,o)?s=null:i!==null&&LI(r,i)&&(t.flags|=32),dC(e,t),Dn(e,t,s,n),t.child;case 6:return e===null&&xI(t),null;case 13:return mC(e,t,n);case 4:return gg(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ou(t,null,r,n):Dn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:so(r,o),Rb(e,t,r,o,n);case 7:return Dn(e,t,t.pendingProps,n),t.child;case 8:return Dn(e,t,t.pendingProps.children,n),t.child;case 12:return Dn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,$e(Fm,r._currentValue),r._currentValue=s,i!==null)if(fo(i.value,s)){if(i.children===o.children&&!Kn.current){t=mi(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=ci(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),MI(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(V(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),MI(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Dn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,mu(t,n),o=Br(o),r=r(o),t.flags|=1,Dn(e,t,r,n),t.child;case 14:return r=t.type,o=so(r,t.pendingProps),o=so(r.type,o),Ab(e,t,r,o,n);case 15:return cC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:so(r,o),hm(e,t),t.tag=1,zn(r)?(e=!0,vm(t)):e=!1,mu(t,n),aC(t,r,o),GI(t,r,o,n),BI(null,t,r,!0,e,n);case 19:return EC(e,t,n);
vendor: 5,473 bytes, line 8
8case 22:return fC(e,t,n)}throw Error(V(156,t.tag))};function DC(e,t){return oL(e,t)}function cW(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kr(e,t,n,r){return new cW(e,t,n,r)}function Gg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fW(e){if(typeof e=="function")return Gg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tg)return 11;if(e===ng)return 14}return 2}function ds(e,t){var n=e.alternate;return n===null?(n=kr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function gm(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Gg(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ql:return ya(n.children,o,i,t);case eg:s=8,o|=8;break;case sI:return e=kr(12,n,t,o|2),e.elementType=sI,e.lanes=i,e;case aI:return e=kr(13,n,t,o),e.elementType=aI,e.lanes=i,e;case lI:return e=kr(19,n,t,o),e.elementType=lI,e.lanes=i,e;case Vb:return nE(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bb:s=10;break e;case Ub:s=9;break e;case tg:s=11;break e;case ng:s=14;break e;case Qi:s=16,r=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=kr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ya(e,t,n,r){return e=kr(7,e,r,t),e.lanes=n,e}function nE(e,t,n,r){return e=kr(22,e,r,t),e.elementType=Vb,e.lanes=n,e.stateNode={isHidden:!1},e}function rI(e,t,n){return e=kr(6,e,null,t),e.lanes=n,e}function oI(e,t,n){return t=kr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dW(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=VO(0),this.expirationTimes=VO(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=VO(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function kg(e,t,n,r,o,i,s,a,l){return e=new dW(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=kr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ig(i),e}function pW(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ql,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function vC(e){if(!e)return ms;e=e._reactInternals;e:{if(va(e)!==e||e.tag!==1)throw Error(V(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(zn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(V(171))}if(e.tag===1){var n=e.type;if(zn(n))return vL(e,n,t)}return t}function xC(e,t,n,r,o,i,s,a,l){return e=kg(n,r,!0,e,o,i,s,a,l),e.context=vC(null),n=e.current,r=vn(),o=fs(n),i=ci(r,o),i.callback=t??null,us(n,i,o),e.current.lanes=o,dd(e,o,r),Xn(e,r),e}function rE(e,t,n,r){var o=t.current,i=vn(),s=fs(o);return n=vC(n),t.context===null?t.context=n:t.pendingContext=n,t=ci(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=us(o,t,s),e!==null&&(co(e,o,s,i),Em(e,o,s)),s}function Km(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Gb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wg(e,t){Gb(e,t),(e=e.alternate)&&Gb(e,t)}function mW(){return null}var MC=typeof reportError=="function"?reportError:function(e){console.error(e)};function Bg(e){this._internalRoot=e}oE.prototype.render=Bg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(V(409));rE(e,t,null,null)};oE.prototype.unmount=Bg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pa(function(){rE(null,e,null,null)}),t[di]=null}};function oE(e){this._internalRoot=e}oE.prototype.unstable_scheduleHydration=function(e){if(e){var t=fL();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ts.length&&t!==0&&t<ts[n].priority;n++);ts.splice(n,0,e),n===0&&pL(e)}};function Ug(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function iE(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kb(){}function EW(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Km(s);i.call(u)}}var s=xC(t,r,e,0,null,!1,!1,"",kb);return e._reactRootContainer=s,e[di]=s.current,rd(e.nodeType===8?e.parentNode:e),Pa(),s}for(;
vendor: 4,911 bytes, line 8
8o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=Km(l);a.call(u)}}var l=kg(e,0,!1,null,null,!1,!1,"",kb);return e._reactRootContainer=l,e[di]=l.current,rd(e.nodeType===8?e.parentNode:e),Pa(function(){rE(t,l,n,r)}),l}function sE(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=Km(s);a.call(l)}}rE(t,s,e,o)}else s=EW(n,t,e,o,r);return Km(s)}uL=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=wf(t.pendingLanes);n!==0&&(ig(t,n|1),Xn(t,Rt()),!(ye&6)&&(Su=Rt()+500,Ts()))}break;case 13:Pa(function(){var r=pi(e,1);if(r!==null){var o=vn();co(r,e,1,o)}}),wg(e,1)}};sg=function(e){if(e.tag===13){var t=pi(e,134217728);if(t!==null){var n=vn();co(t,e,134217728,n)}wg(e,134217728)}};cL=function(e){if(e.tag===13){var t=fs(e),n=pi(e,t);if(n!==null){var r=vn();co(n,e,t,r)}wg(e,t)}};fL=function(){return Ve};dL=function(e,t){var n=Ve;try{return Ve=e,t()}finally{Ve=n}};hI=function(e,t,n){switch(t){case"input":if(fI(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Zm(r);if(!o)throw Error(V(90));Wb(r),fI(r,o)}}}break;case"textarea":Kb(e,n);break;case"select":t=n.value,t!=null&&cu(e,!!n.multiple,t,!1)}};qb=xg;Qb=Pa;var _W={usingClientEntryPoint:!1,Events:[md,ru,Zm,Zb,Jb,xg]},Mf={findFiberByHostInstance:ga,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},TW={bundleType:Mf.bundleType,version:Mf.version,rendererPackageName:Mf.rendererPackageName,rendererConfig:Mf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ei.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nL(e),e===null?null:e.stateNode},findFiberByHostInstance:Mf.findFiberByHostInstance||mW,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ff=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ff.isDisabled&&Ff.supportsFiber))try{zm=Ff.inject(TW),Go=Ff}catch{}var Ff;Tr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_W;Tr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ug(t))throw Error(V(200));return pW(e,t,null,n)};Tr.createRoot=function(e,t){if(!Ug(e))throw Error(V(299));var n=!1,r="",o=MC;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=kg(e,1,!1,null,null,n,!1,r,o),e[di]=t.current,rd(e.nodeType===8?e.parentNode:e),new Bg(t)};Tr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(V(188)):(e=Object.keys(e).join(","),Error(V(268,e)));return e=nL(t),e=e===null?null:e.stateNode,e};Tr.flushSync=function(e){return Pa(e)};Tr.hydrate=function(e,t,n){if(!iE(t))throw Error(V(200));return sE(null,e,t,!0,n)};Tr.hydrateRoot=function(e,t,n){if(!Ug(e))throw Error(V(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=MC;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=xC(t,null,e,1,n??null,o,!1,i,s),e[di]=t.current,rd(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new oE(t)};Tr.render=function(e,t,n){if(!iE(t))throw Error(V(200));return sE(null,e,t,!1,n)};Tr.unmountComponentAtNode=function(e){if(!iE(e))throw Error(V(40));return e._reactRootContainer?(Pa(function(){sE(null,null,e,!1,function(){e._reactRootContainer=null,e[di]=null})}),!0):!1};Tr.unstable_batchedUpdates=xg;Tr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!iE(n))throw Error(V(200));if(e==null||e._reactInternals===void 0)throw Error(V(38));return sE(e,t,n,!1,r)};Tr.version="18.3.1-next-f1338f8080-20240426"});var yu=fr((PZ,kC)=>{"use strict";function GC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(GC)}catch(e){console.error(e)}}GC(),kC.exports=FC()});var aE=fr(Vg=>{"use strict";var wC=yu();Vg.createRoot=wC.createRoot,Vg.hydrateRoot=wC.hydrateRoot;var DZ});var JC=fr(fE=>{"use strict";var PW=Y(),DW=Symbol.for("react.element"),vW=Symbol.for("react.fragment"),xW=Object.prototype.hasOwnProperty,MW=PW.__SECRET_INT
8ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,FW={key:!0,ref:!0,__self:!0,__source:!0};function ZC(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)xW.call(t,r)&&!FW.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:DW,type:e,key:i,ref:s,props:o,_owner:MW.current}}fE.Fragment=vW;fE.jsx=ZC;fE.jsxs=ZC});var Ee=fr((kZ,qC)=>{"use strict";qC.exports=JC()});var zg=fr((BZ,dE)=>{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=r(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)e.call(o,s)&&o[s]&&(i=r(i,s));return i}function r(o,i){return i?o?o+" "+i:o+i:o}typeof dE<"u"&&dE.exports?(t.default=t,dE.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var cS=fr((SP,OE)=>{(function(e,t,n){typeof OE<"u"&&OE.exports?OE.exports=n():typeof define=="function"&&define.amd?define(t,n):e[t]=n()})(SP,"bowser",function(){var e=!0;function t(l){function u(P){var X=l.match(P);return X&&X.length>1&&X[1]||""}function c(P){var X=l.match(P);return X&&X.length>1&&X[2]||""}var f=u(/(ipod|iphone|ipad)/i).toLowerCase(),d=/like android/i.test(l),p=!d&&/android/i.test(l),_=/nexus\s*[0-6]\s*/i.test(l),T=!_&&/nexus\s*[0-9]+/i.test(l),h=/CrOS/.test(l),m=/silk/i.test(l),E=/sailfish/i.test(l),O=/tizen/i.test(l),I=/(web|hpw)os/i.test(l),g=/windows phone/i.test(l),S=/SamsungBrowser/i.test(l),A=!g&&/windows/i.test(l),R=!f&&!m&&/macintosh/i.test(l),N=!p&&!E&&!O&&!I&&/linux/i.test(l),L=c(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),b=u(/version\/(\d+(\.\d+)?)/i),M=/tablet/i.test(l)&&!/tablet pc/i.test(l),w=!M&&/[^-]mobi/i.test(l),B=/xbox/i.test(l),y;/opera/i.test(l)?y={name:"Opera",opera:e,version:b||u(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(l)?y={name:"Opera",opera:e,version:u(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||b}:/SamsungBrowser/i.test(l)?y={name:"Samsung Internet for Android",samsungBrowser:e,version:b||u(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(l)?y={name:"Opera Coast",coast:e,version:b||u(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(l)?y={name:"Yandex Browser",yandexbrowser:e,version:b||u(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(l)?y={name:"UC Browser",ucbrowser:e,version:u(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(l)?y={name:"Maxthon",maxthon:e,version:u(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(l)?y={name:"Epiphany",epiphany:e,version:u(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(l)?y={name:"Puffin",puffin:e,version:u(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(l)?y={name:"Sleipnir",sleipnir:e,version:u(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(l)?y={name:"K-Meleon",kMeleon:e,version:u(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:g?(y={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},L?(y.msedge=e,y.version=L):(y.msie=e,y.version=u(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(l)?y={name:"Internet Explorer",msie:e,version:u(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:h?y={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:u(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(l)?y={name:"Microsoft Edge",msedge:e,version:L}:/vivaldi/i.test(l)?y={name:"Vivaldi",vivaldi:e,version:u(/vivaldi\/(\d+(\.\d+)?)/i)||b}:E?y={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:u(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(l)?y={name:"SeaMonkey",seamonkey:e,version:u(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(l)?(y={name:"Firefox",firefox:e,version:u(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(l)&&(y.firefoxos=e,y.osname="Firefox OS")):m?y={name:"Amazon Silk",silk:e,version:u(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(l)?y={name:"PhantomJS",phantom:e,version:u(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(l)?y={name:"SlimerJS",slimer:e,version:u(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(l)||/rim\stablet/i.test(l)?y={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:b||u(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:I?(y={name:"WebOS",osname:"WebOS",webos:e,version:b||u(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(l)&&(y.touchpad=e)):/bada/i.test(l)?y={name:"Bada",osname:"Bada",bada:e,version:u(/dolfin\/(\d+(\.\d+)?)/i)}:O?y={name:"Tizen",osname:"Tizen",tizen:e,version:u(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||b}:/qupzilla/i.test(l)?y={name:"QupZilla",qupzilla:e,version:u(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||b}:/chromium/i.test(l)?y={name:"Chromium",chromium:e,version:u(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||b}:/chrome|crios|crmo/i.test(l)?y={name:"Chrome",chrome:e,version:u(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:p?y={name:"Android",version:b}:/safari|applewebkit/i.test(l)?(y={name:"Safari",safari:e},b&&(y.version=b)):f?(y={name:f=="iphone"?"iPhone":f=="ipad"?"iPad":"iPod"},b&&(y.version=b)):/googlebot/i.test(l)?y={name:"Googlebot",googlebot:e,version:u(/googlebot\/(\d+(\.\d+))/i)||b}:y={name:u(/^(.*)\/(.*) /),version:c(/^(.*)\/(.*) /)},!y.msedge&&/(apple)?webkit/i.test(l)?(/(apple)?webkit\/537\.36/i.test(l)?(y.name=y.name||"Blink",y.blink=e):(y.name=y.name||"Webkit",y.webkit=e),!y.version&&b&&(y.version=b)):!y.opera&&/gecko\//i.test(l)&&(y.name=y.name||"Gecko",y.gecko=e,y.version=y.version||u(/gecko\/(\d+(\.\d+)?)/i)),!y.windowsphone&&(p||y.silk)?(y.android=e,y.osname="Android"):!y.windowsphone&&f?(y[f]=e,y.ios=e,y.osname="iOS"):R?(y.mac=e,y.osname="macOS"):B?(y.xbox=e,y.osname="Xbox"):A?(y.windows=e,y.osname="Windows"):N&&(y.linux=e,y.osname="Linux");function K(P){switch(P){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var C="";y.windows?C=K(u(/Windows ((NT|XP)( \d\d?.\d)?)/i)):y.windowsphone?C=u(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):y.mac?(C=u(/Mac OS X (\d+([_\.\s]\d+)*)/i),C=C.replace(/[_\s]/g,".")):f?(C=u(/os (\d+([_\s]\d+)*) like mac os x/i),C=C.replace(/[_\s]/g,".")):p?C=u(/android[ \/-](\d+(\.\d+)*)/i):y.webos?C=u(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):y.blackberry?C=u(/rim\stablet\sos\s(\d+(\.\d+)*)/i):y.bada?C=u(/bada\/(\d+(\.\d+)*)/i):y.tizen&&(C=u(/tizen[\/\s](\d+(\.\d+)*)/i)),C&&(y.osversion=C);var G=!y.windows&&C.split(".")[0];return M||T||f=="ipad"||p&&(G==3||G>=4&&!w)||y.silk?y.tablet=e:(w||f=="iphone"||f=="ipod"||p||_||y.blackberry||y.webos||y.bada)&&(y.mobile=e),y.msedge||y.msie&&y.version>=10||y.yandexbrowser&&y.version>=15||y.vivaldi&&y.version>=1||y.chrome&&y.version>=20||y.samsungBrowser&&y.version>=4||y.firefox&&y.version>=20||y.safari&&y.version>=6||y.opera&&y.version>=10||y.ios&&y.osversion&&y.osversion.split(".")[0]>=6||y.blackberry&&y.version>=10.1||y.chromium&&y.version>=20?y.a=e:y.msie&&y.version<10||y.chrome&&y.version<20||y.firefox&&y.version<20||y.safari&&y.version<6||y.opera&&y.version<10||y.ios&&y.osversion&&y.osversion.split(".")[0]<6||y.chromium&&y.version<20?y.c=e:y.x=e,y}var n=t(typeof navigator<"u"&&navigator.userAgent||"");
8n.test=function(l){for(var u=0;u<l.length;++u){var c=l[u];if(typeof c=="string"&&c in n)return!0}return!1};function r(l){return l.split(".").length}function o(l,u){var c=[],f;if(Array.prototype.map)return Array.prototype.map.call(l,u);for(f=0;f<l.length;f++)c.push(u(l[f]));return c}function i(l){for(var u=Math.max(r(l[0]),r(l[1])),c=o(l,function(f){var d=u-r(f);return f=f+new Array(d+1).join(".0"),o(f.split("."),function(p){return new Array(20-p.length).join("0")+p}).reverse()});--u>=0;){if(c[0][u]>c[1][u])return 1;if(c[0][u]===c[1][u]){if(u===0)return 0}else return-1}}function s(l,u,c){var f=n;typeof u=="string"&&(c=u,u=void 0),u===void 0&&(u=!1),c&&(f=t(c));var d=""+f.version;for(var p in l)if(l.hasOwnProperty(p)&&f[p]){if(typeof l[p]!="string")throw new Error("Browser version in the minVersion map should be a string: "+p+": "+String(l));return i([d,l[p]])<0}return u}function a(l,u,c){return!s(l,u,c)}return n.isUnsupportedBrowser=s,n.compareVersions=i,n.check=a,n._detect=t,n.detect=t,n})});var F,D,k,nx,rx,fc,Ci,ox,QE,rl,ke=nn(()=>{F=function(e){return e[e.FADE_DEPRECATED=0]="FADE_DEPRECATED",e[e.MOVE_DEPRECATED=1]="MOVE_DEPRECATED",e[e.ROTATE_DEPRECATED=2]="ROTATE_DEPRECATED",e[e.SCALE=3]="SCALE",e[e.RESIZE_DEPRECATED=4]="RESIZE_DEPRECATED",e[e.NEW=5]="NEW",e[e.TEXT_DATA=6]="TEXT_DATA",e[e.PATH_DRAW_DEPRECATED=7]="PATH_DRAW_DEPRECATED",e[e.PATH_TRAVEL_DEPRECATED=8]="PATH_TRAVEL_DEPRECATED",e[e.OPACITY=9]="OPACITY",e[e.CORNER_RADIUS=10]="CORNER_RADIUS",e[e.ROTATION=11]="ROTATION",e[e.PATH=12]="PATH",e[e.POSITION=13]="POSITION",e[e.SIZE=14]="SIZE",e[e.TEXT_STAGGER=15]="TEXT_STAGGER",e}({}),D=function(e){return e[e.NONE=0]="NONE",e[e.BOOL=1]="BOOL",e[e.TEXT=2]="TEXT",e[e.INSTANCE_SWAP=3]="INSTANCE_SWAP",e[e.VARIANT=4]="VARIANT",e[e.NUMBER=5]="NUMBER",e[e.IMAGE=6]="IMAGE",e[e.SLOT=7]="SLOT",e[e.EASING=8]="EASING",e[e.COLOR=9]="COLOR",e[e.VECTOR=10]="VECTOR",e[e.CIRCLE=11]="CIRCLE",e[e.COLOR_POINT=12]="COLOR_POINT",e[e.LINE=13]="LINE",e[e.CIRCLE_POINT=14]="CIRCLE_POINT",e[e.GRADIENT=15]="GRADIENT",e[e.PAINT=16]="PAINT",e[e.NODE=17]="NODE",e}({}),k=function(e){return e[e.IN_CUBIC=0]="IN_CUBIC",e[e.OUT_CUBIC=1]="OUT_CUBIC",e[e.INOUT_CUBIC=2]="INOUT_CUBIC",e[e.LINEAR=3]="LINEAR",e[e.IN_BACK_CUBIC=4]="IN_BACK_CUBIC",e[e.OUT_BACK_CUBIC=5]="OUT_BACK_CUBIC",e[e.INOUT_BACK_CUBIC=6]="INOUT_BACK_CUBIC",e[e.CUSTOM_CUBIC=7]="CUSTOM_CUBIC",e[e.SPRING=8]="SPRING",e[e.GENTLE_SPRING=9]="GENTLE_SPRING",e[e.CUSTOM_SPRING=10]="CUSTOM_SPRING",e[e.SPRING_PRESET_ONE=11]="SPRING_PRESET_ONE",e[e.SPRING_PRESET_TWO=12]="SPRING_PRESET_TWO",e[e.SPRING_PRESET_THREE=13]="SPRING_PRESET_THREE",e[e.HOLD=14]="HOLD",e[e.EASE_IN=15]="EASE_IN",e}({}),nx=function(e){return e[e.DESIGN_LAYOUT=0]="DESIGN_LAYOUT",e[e.WHITEBOARD_LAYOUT=1]="WHITEBOARD_LAYOUT",e[e.VECTOR=2]="VECTOR",e[e.TEXT=3]="TEXT",e[e.RASTER=4]="RASTER",e[e.GRADIENT=5]="GRADIENT",e[e.PLACE_IMAGE=6]="PLACE_IMAGE",e[e.HISTORY=7]="HISTORY",e[e.PREVIEW=8]="PREVIEW",e[e.COMMENTS=9]="COMMENTS",e[e.BRANCHING=10]="BRANCHING",e[e.DEV_HANDOFF=11]="DEV_HANDOFF",e[e.COMPARE_CHANGES=12]="COMPARE_CHANGES",e[e.LIBRARY=13]="LIBRARY",e[e.DEV_HANDOFF_HISTORY=14]="DEV_HANDOFF_HISTORY",e[e.SLIDE_LAYOUT=15]="SLIDE_LAYOUT",e[e.MAGIC_LINK=16]="MAGIC_LINK",e[e.BUZZ_LAYOUT=17]="BUZZ_LAYOUT",e[e.PROGRESSIVE_BLUR=18]="PROGRESSIVE_BLUR",e[e.COOPER_BULK_CREATE=19]="COOPER_BULK_CREATE",e[e.CMS_BINDING_CONSTRAINED=20]="CMS_BINDING_CONSTRAINED",e[e.SITES_LAYOUT=21]="SITES_LAYOUT",e[e.OFFSET_PATH=22]="OFFSET_PATH",e[e.GEN_EFFECT_CONTROLS=23]="GEN_EFFECT_CONTROLS",e}({}),rx=function(e){return e[e.DESIGN=0]="DESIGN",e[e.WHITEBOARD=1]="WHITEBOARD",e[e.SLIDES=2]="SLIDES",e[e.DEV_HANDOFF=3]="DEV_HANDOFF",e[e.SITES=4]="SITES",e[e.COOPER=5]="COOPER",e[e.ILLUSTRATION=6]="ILLUSTRATION",e[e.FIGMAKE=7]="FIGMAKE",e[e.FIGSPEC=8]="FIGSPEC",e}({}),fc=function(e){return e[e.NONE=0]="NONE",e[e.PRODUCT_COMPONENT=1]="PRODUCT_COMPONENT",e[e.TOP_LEVEL_FRAME_PARENT=2]="TOP_LEVEL_FRAME_PARENT",e[e.INSTANCE_SUBLAYER=3]="INSTANCE_SUBLAYER",e[e.UNSUPPORTED_NODE_TYPE=4]="UNSUPPORTED_NODE_TYPE",e}({}),Ci=function(e){return e[e.MISSING=0]="MISSING",e[e.CORNER_RADIUS=1]="CORNER_RADIUS",e[e.PARAGRAPH_SPACING=2]="PARAGRAPH_SPACING",e[e.PARAGRAPH_INDENT=3]="PARAGRAPH_INDENT",e[e.STROKE_WEIGHT=4]="STROKE_WEIGHT",e[e.STACK_SPACING=5]="STACK_SPACING",e[e.STACK_PADDING_LEFT=6]="STACK_PADDING_LEFT",e[e.STACK_PADDING_TOP=7]="STACK_PADDING_TOP",e[e.STACK_PADDING_RIGHT=8]="STACK_PADDING_RIGHT",e[e.STACK_PADDING_BOTTOM=9]="STACK_PADDING_BOTTOM",e[e.VISIBLE=10]="VISIBLE",e[e.TEXT_DATA=11]="TEXT_DATA",e[e.WIDTH=12]="WIDTH",e[e.HEIGHT=13]="HEIGHT",e[e.RECTANGLE_TOP_LEFT_CORNER_RADIUS=14]="RECTANGLE_TOP_LEFT_CORNER_RADIUS",e[e.RECTANGLE_TOP_RIGHT_CORNER_RADIUS=15]="RECTANGLE_TOP_RIGHT_CORNER_RADIUS",e[e.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS=16]="RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS",e[e.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS=17]="RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS",e[e.BORDER_TOP_WEIGHT=18]="BORDER_TOP_WEIGHT",e[e.BORDER_BOTTOM_WEIGHT=19]="BORDER_BOTTOM_WEIGHT",e[e.BORDER_LEFT_WEIGHT=20]="BORDER_LEFT_WEIGHT",e[e.BORDER_RIGHT_WEIGHT=21]="BORDER_RIGHT_WEIGHT",e[e.VARIANT_PROPERTIES=22]="VARIANT_PROPERTIES",e[e.STACK_COUNTER_SPACING=23]="STACK_COUNTER_SPACING",e[e.MIN_WIDTH=24]="MIN_WIDTH",e[e.MAX_WIDTH=25]="MAX_WIDTH",e[e.MIN_HEIGHT=26]="MIN_HEIGHT",e[e.MAX_HEIGHT=27]="MAX_HEIGHT",e[e.FONT_FAMILY=28]="FONT_FAMILY",e[e.FONT_STYLE=29]="FONT_STYLE",e[e.FONT_VARIATIONS=30]="FONT_VARIATIONS",e[e.OPACITY=31]="OPACITY",e[e.FONT_SIZE=32]="FONT_SIZE",e[e.LETTER_SPACING=34]="LETTER_SPACING",e[e.LINE_HEIGHT=36]="LINE_HEIGHT",e[e.OVERRIDDEN_SYMBOL_ID=37]="OVERRIDDEN_SYMBOL_ID",e[e.CMS_SERIALIZED_RICH_TEXT_DATA=38]="CMS_SERIALIZED_RICH_TEXT_DATA",e[e.HYPERLINK=39]="HYPERLINK",e[e.SLOT_CONTENT_ID=40]="SLOT_CONTENT_ID",e[e.GRID_ROW_GAP=41]="GRID_ROW_GAP",e[e.GRID_COLUMN_GAP=42]="GRID_COLUMN_GAP",e[e.RELATIVE_X_POSITION=43]="RELATIVE_X_POSITION",e[e.RELATIVE_Y_POSITION=44]="RELATIVE_Y_POSITION",e[e.RELATIVE_ROTATION=45]="RELATIVE_ROTATION",e[e.MOTION_TRANSLATION_X=46]="MOTION_TRANSLATION_X",e[e.MOTION_TRANSLATION_Y=47]="MOTION_TRANSLATION_Y",e[e.MOTION_ROTATION=48]="MOTION_ROTATION",e[e.MOTION_SCALE_X=49]="MOTION_SCALE_X",e[e.MOTION_SCALE_Y=50]="MOTION_SCALE_Y",e[e.MOTION_SHEAR=51]="MOTION_SHEAR",e[e.SCROLL_OFFSET_X=52]="SCROLL_OFFSET_X",e[e.SCROLL_OFFSET_Y=53]="SCROLL_OFFSET_Y",e[e.PATH_TRIM_START=54]="PATH_TRIM_START",e[e.PATH_TRIM_END=55]="PATH_TRIM_END",e[e.DISSOLVE_PROGRESS=56]="DISSOLVE_PROGRESS",e[e.EASING_DATA=57]="EASING_DATA",e[e.MEDIA_CURRENT_TIME=58]="MEDIA_CURRENT_TIME",e[e.TRANSFORM_3D_PERSPECTIVE=59]="TRANSFORM_3D_PERSPECTIVE",e[e.TRANSFORM_3D_TRANSLATION_Z=60]="TRANSFORM_3D_TRANSLATION_Z",e[e.TRANSFORM_3D_ROTATION_X=61]="TRANSFORM_3D_ROTATION_X",e[e.TRANSFORM_3D_ROTATION_Y=62]="TRANSFORM_3D_ROTATION_Y",e[e.TRANSFORM_3D_ROTATION_Z=63]="TRANSFORM_3D_ROTATION_Z",e[e.POLYGON_COUNT=64]="POLYGON_COUNT",e[e.ARC_DATA_STARTING_ANGLE=65]="ARC_DATA_STARTING_ANGLE",e[e.ARC_DATA_ENDING_ANGLE=66]="ARC_DATA_ENDING_ANGLE",e[e.ARC_DATA_INNER_RADIUS=67]="ARC_DATA_INNER_RADIUS",e[e.KEYFRAME_VALUE=68]="KEYFRAME_VALUE",e[e.MOTION_TRANSLATION_XY=69]="MOTION_TRANSLATION_XY",e[e.MOTION_SCALE_XY=70]="MOTION_SCALE_XY",e[e.SCENE_3D_PERSPECTIVE=71]="SCENE_3D_PERSPECTIVE",e[e.STAR_INNER_SCALE=72]="STAR_INNER_SCALE",e[e.MOTION_TRANSFORM_ORIGIN_XY=73]="MOTION_TRANSFORM_ORIGIN_XY",e[e.MOTION_TRANSFORM_ORIGIN_X=74]="MOTION_TRANSFORM_ORIGIN_X",e[e.MOTION_TRANSFORM_ORIGIN_Y=75]="MOTION_TRANSFORM_ORIGIN_Y",e[e.TRANSFORM_3D_ROTATION_XYZ=77]="TRANSFORM_3D_ROTATION_XYZ",e[e.STACK_CHILD_MARGIN_TOP=78]="STACK_CHILD_MARGIN_TOP",e[e.STACK_CHILD_MARGIN_RIGHT=79]="STACK_CHILD_MARGIN_RIGHT",e[e.STACK_CHILD_MARGIN_BOTTOM=80]="STACK_CHILD_MARGIN_BOTTOM",e[e.STACK_CHILD_MARGIN_LEFT=81]="STACK_CHILD_MARGIN_LEFT",e}({}),ox=function(e){return e[e.NONE=0]="NONE",e[e.SELECT=1]="SELECT",e[e.HAND=2]="HAND",e[e.COMMENTS=3]="COMMENTS",e[e.DROPPER_COLOR=4]="DROPPER_COLOR",e[e.FRAME=5]="FRAME",e[e.SLICE=6]="SLICE",e[e.STACK=7]="STACK",e[e.SHAPE_STAR=8]="SHAPE_STAR",e[e.SHAPE_LINE=9]="SHAPE_LINE",e[e.SHAPE_ARROW=10]="SHAPE_ARROW",e[e.SHAPE_ELLIPSE=11]="SHAPE_ELLIPSE",e[e.SHAPE_RECTANGLE=12]="SHAPE_RECTANGLE",e[e.SHAPE_REGULAR_POLYGON=13]="SHAPE_REGULAR_POLYGON",e[e.VECTOR_PEN=14]="VECTOR_PEN",e[e.VECTOR_PENCIL=15]="VECTOR_PENCIL",e[e.VECTOR_E
8RASER=16]="VECTOR_ERASER",e[e.VECTOR_BEND=17]="VECTOR_BEND",e[e.VECTOR_CUT=18]="VECTOR_CUT",e[e.VECTOR_PAINT_BUCKET=19]="VECTOR_PAINT_BUCKET",e[e.VECTOR_VAR_WIDTH_POINT=20]="VECTOR_VAR_WIDTH_POINT",e[e.SHAPE_BUILDER=21]="SHAPE_BUILDER",e[e.VECTOR_LASSO=22]="VECTOR_LASSO",e[e.IMAGE_LASSO=23]="IMAGE_LASSO",e[e.TYPE=24]="TYPE",e[e.TEXT_PATH=25]="TEXT_PATH",e[e.SCALE=26]="SCALE",e[e.STICKY=27]="STICKY",e[e.STAMP=28]="STAMP",e[e.SHAPE_WHITEBOARD_SQUARE=29]="SHAPE_WHITEBOARD_SQUARE",e[e.SHAPE_WHITEBOARD_ELLIPSE=30]="SHAPE_WHITEBOARD_ELLIPSE",e[e.SHAPE_WHITEBOARD_DIAMOND=31]="SHAPE_WHITEBOARD_DIAMOND",e[e.SHAPE_WHITEBOARD_TRIANGLE_UP=32]="SHAPE_WHITEBOARD_TRIANGLE_UP",e[e.SHAPE_WHITEBOARD_TRIANGLE_DOWN=33]="SHAPE_WHITEBOARD_TRIANGLE_DOWN",e[e.SHAPE_WHITEBOARD_ROUNDED_RECTANGLE=34]="SHAPE_WHITEBOARD_ROUNDED_RECTANGLE",e[e.SHAPE_WHITEBOARD_PARALLELOGRAM_RIGHT=35]="SHAPE_WHITEBOARD_PARALLELOGRAM_RIGHT",e[e.SHAPE_WHITEBOARD_PARALLELOGRAM_LEFT=36]="SHAPE_WHITEBOARD_PARALLELOGRAM_LEFT",e[e.CONNECTOR_ELBOWED=37]="CONNECTOR_ELBOWED",e[e.CONNECTOR_STRAIGHT=38]="CONNECTOR_STRAIGHT",e[e.CONNECTOR_CURVED=39]="CONNECTOR_CURVED",e[e.CODE_BLOCK=40]="CODE_BLOCK",e[e.SHAPE_WHITEBOARD_ENG_DATABASE=41]="SHAPE_WHITEBOARD_ENG_DATABASE",e[e.SHAPE_WHITEBOARD_ENG_QUEUE=42]="SHAPE_WHITEBOARD_ENG_QUEUE",e[e.SHAPE_WHITEBOARD_ENG_FILE=43]="SHAPE_WHITEBOARD_ENG_FILE",e[e.SHAPE_WHITEBOARD_ENG_FOLDER=44]="SHAPE_WHITEBOARD_ENG_FOLDER",e[e.ERASER=45]="ERASER",e[e.HIGHLIGHTER=46]="HIGHLIGHTER",e[e.SECTION=47]="SECTION",e[e.WASHI_TAPE=48]="WASHI_TAPE",e[e.TABLE=49]="TABLE",e[e.CHARTS=50]="CHARTS",e[e.SHAPE_WHITEBOARD_TRAPEZOID=51]="SHAPE_WHITEBOARD_TRAPEZOID",e[e.SHAPE_WHITEBOARD_STAR=52]="SHAPE_WHITEBOARD_STAR",e[e.SHAPE_WHITEBOARD_SHIELD=53]="SHAPE_WHITEBOARD_SHIELD",e[e.SHAPE_WHITEBOARD_HEXAGON=54]="SHAPE_WHITEBOARD_HEXAGON",e[e.SHAPE_WHITEBOARD_PENTAGON=55]="SHAPE_WHITEBOARD_PENTAGON",e[e.SHAPE_WHITEBOARD_OCTAGON=56]="SHAPE_WHITEBOARD_OCTAGON",e[e.SHAPE_WHITEBOARD_PLUS=57]="SHAPE_WHITEBOARD_PLUS",e[e.SHAPE_WHITEBOARD_PREDEFINED_PROCESS=58]="SHAPE_WHITEBOARD_PREDEFINED_PROCESS",e[e.SHAPE_WHITEBOARD_MANUAL_INPUT=59]="SHAPE_WHITEBOARD_MANUAL_INPUT",e[e.SHAPE_WHITEBOARD_CHEVRON=60]="SHAPE_WHITEBOARD_CHEVRON",e[e.SHAPE_WHITEBOARD_DOCUMENT_SINGLE=61]="SHAPE_WHITEBOARD_DOCUMENT_SINGLE",e[e.SHAPE_WHITEBOARD_DOCUMENT_MULTIPLE=62]="SHAPE_WHITEBOARD_DOCUMENT_MULTIPLE",e[e.SHAPE_WHITEBOARD_ARROW_LEFT=63]="SHAPE_WHITEBOARD_ARROW_LEFT",e[e.SHAPE_WHITEBOARD_ARROW_RIGHT=64]="SHAPE_WHITEBOARD_ARROW_RIGHT",e[e.SHAPE_WHITEBOARD_SUMMING_JUNCTION=65]="SHAPE_WHITEBOARD_SUMMING_JUNCTION",e[e.SHAPE_WHITEBOARD_OR=66]="SHAPE_WHITEBOARD_OR",e[e.SHAPE_WHITEBOARD_SPEECH_BUBBLE=67]="SHAPE_WHITEBOARD_SPEECH_BUBBLE",e[e.SHAPE_WHITEBOARD_INTERNAL_STORAGE=68]="SHAPE_WHITEBOARD_INTERNAL_STORAGE",e[e.SHAPE_WHITEBOARD_MINDMAP_TREE_NUCLEUS=69]="SHAPE_WHITEBOARD_MINDMAP_TREE_NUCLEUS",e[e.SHAPE_WHITEBOARD_PLATFORM=70]="SHAPE_WHITEBOARD_PLATFORM",e[e.ANNOTATE=71]="ANNOTATE",e[e.IMAGE_OR_VIDEO=72]="IMAGE_OR_VIDEO",e[e.MEASURE=73]="MEASURE",e[e.SLIDES_POLL=74]="SLIDES_POLL",e[e.SLIDES_EMBED=75]="SLIDES_EMBED",e[e.SLIDES_FACEPILE=76]="SLIDES_FACEPILE",e[e.SLIDES_ALIGNMENT_SCALE=77]="SLIDES_ALIGNMENT_SCALE",e[e.SLIDES_YOUTUBE=78]="SLIDES_YOUTUBE",e[e.SLIDE_NUMBER=79]="SLIDE_NUMBER",e[e.HAND_SELECT=80]="HAND_SELECT",e[e.MULTISELECT=81]="MULTISELECT",e[e.LASSO=82]="LASSO",e[e.SITES_RESPONSIVE_SET=83]="SITES_RESPONSIVE_SET",e[e.SITES_LINK=84]="SITES_LINK",e[e.CODE_COMPONENT=85]="CODE_COMPONENT",e[e.SITES_EMBED=86]="SITES_EMBED",e[e.PATTERN_SOURCE_SELECTOR=87]="PATTERN_SOURCE_SELECTOR",e[e.BRUSH=88]="BRUSH",e[e.KEYBOARD_SELECT=89]="KEYBOARD_SELECT",e[e.JSX=90]="JSX",e[e.OFFSET_PATH=91]="OFFSET_PATH",e[e.SIMPLIFY_VECTOR=92]="SIMPLIFY_VECTOR",e[e.RECOLOR=93]="RECOLOR",e[e.RECOLOR_DEBUG=94]="RECOLOR_DEBUG",e[e.SITES_WEBPAGE=95]="SITES_WEBPAGE",e[e.SPEC=96]="SPEC",e}({}),QE=function(e){return e[e.AUTO=0]="AUTO",e[e.PIXELS=1]="PIXELS",e[e.PERCENT=2]="PERCENT",e[e.REM=3]="REM",e}({}),rl=function(e){return e[e.BOOLEAN=0]="BOOLEAN",e[e.FLOAT=1]="FLOAT",e[e.STRING=2]="STRING",e[e.COLOR=3]="COLOR",e[e.MAP=4]="MAP",e[e.SYMBOL_ID=5]="SYMBOL_ID",e[e.FONT_STYLE=6]="FONT_STYLE",e[e.TEXT_DATA=7]="TEXT_DATA",e[e.IMAGE=8]="IMAGE",e[e.LINK=9]="LINK",e[e.JS_RUNTIME_ALIAS=10]="JS_RUNTIME_ALIAS",e[e.SLOT_CONTENT_ID=11]="SLOT_CONTENT_ID",e[e.KEYFRAME_TRACK_ID=12]="KEYFRAME_TRACK_ID",e[e.KEYFRAME_TRACK_PARAMETER_DATA=13]="KEYFRAME_TRACK_PARAMETER_DATA",e[e.EASING=14]="EASING",e[e.TIMING=15]="TIMING",e[e.VECTOR=16]="VECTOR",e[e.COLOR_ARRAY=17]="COLOR_ARRAY",e[e.LINE=18]="LINE",e[e.CIRCLE=19]="CIRCLE",e[e.ROTATION_3D=20]="ROTATION_3D",e[e.CIRCLE_POINT=21]="CIRCLE_POINT",e[e.GRADIENT=22]="GRADIENT",e[e.COLOR_POINT=23]="COLOR_POINT",e[e.GRADIENT_PAINT=24]="GRADIENT_PAINT",e[e.PAINT=25]="PAINT",e[e.LENGTH=26]="LENGTH",e[e.TRANSITION_PARAMETER_DATA=27]="TRANSITION_PARAMETER_DATA",e[e.UNIT_NUMBER=28]="UNIT_NUMBER",e}({})});var Qx,e0,t0=nn(()=>
8{Qx=`// Source-of-truth for the CORNER_RADIUS first-party animation preset. 9// 10// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 11// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 12// resolved, and emits both strings into \`../generated/corner_radius.generated.ts\`. 13// The generated module is what runtime code consumes \u2014 never import this file 14// directly from production code paths. 15// 16// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 17// only an input to the codegen tool, evaluated inside the QuickJS / iframe 18// sandbox at runtime. 19 20import { animate, defineProperties, EasingType, tween } from 'figma:motion' 21 22import type { PresetArgs } from './preset_types' 23 24// Field names must match the contract in 25// \`code-components-transpiler/shared/src/motion_constants.ts\` \u2014 any value not 26// recognized there causes \`animate()\` to throw "unknown or non-keyframeable 27// property" at materialization time. 28const CORNER_FIELD_MAP: Record<string, string> = { 29 all: 'cornerRadius', 30 topLeft: 'rectangleTopLeftCornerRadius', 31 topRight: 'rectangleTopRightCornerRadius', 32 bottomLeft: 'rectangleBottomLeftCornerRadius', 33 bottomRight: 'rectangleBottomRightCornerRadius', 34} 35 36const CORNER_KEYS = ['all', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] as const 37type CornerKey = (typeof CORNER_KEYS)[number] 38 39export default function preset({ 40 type, 41 corner, 42 amount, 43 allStartFrame, 44 allEndFrame, 45 topLeftStartFrame, 46 topLeftEndFrame, 47 topRightStartFrame, 48 topRightEndFrame, 49 bottomLeftStartFrame, 50 bottomLeftEndFrame, 51 bottomRightStartFrame, 52 bottomRightEndFrame, 53 duration, 54 easing, 55 target, 56}: PresetArgs) { 57 const selectedCorner: CornerKey = (corner as CornerKey) || 'all' 58 59 function getFromTo(cornerKey: CornerKey): [number, number] { 60 if (type === 'custom') { 61 switch (cornerKey) { 62 case 'topLeft': 63 return [topLeftStartFrame, topLeftEndFrame] 64 case 'topRight': 65 return [topRightStartFrame, topRightEndFrame] 66 case 'bottomLeft': 67 return [bottomLeftStartFrame, bottomLeftEndFrame] 68 case 'bottomRight': 69 return [bottomRightStartFrame, bottomRightEndFrame] 70 case 'all': 71 default: 72 return [allStartFrame, allEndFrame] 73 } 74 } 75 if (type === 'roundOut') return [amount, 0] 76 return [0, amount] 77 } 78 79 // Always emit all five corner tracks so their KEYFRAME_TRACK GUIDs survive \`corner\` toggles. The 80 // C++ side honors \`enabled=false\` by marking the track invisible. 81 const definition: Record<string, unknown> = {} 82 for (const cornerKey of CORNER_KEYS) { 83 const fieldName = CORNER_FIELD_MAP[cornerKey] 84 const enabled = cornerKey === selectedCorner 85 const [from, to] = getFromTo(cornerKey) 86 definition[fieldName] = tween({ 87 mode: 'offset', 88 timelinePosition: 0, 89 duration, 90 from, 91 to, 92 easing, 93 enabled, 94 }) 95 } 96 97 return [animate(target, definition)] 98} 99 100// KEEP_IN_SYNC(share/motion/src/presets/corner_radius_meta.ts) \u2014 the 101// property bounds (min/max/unit) must match \`PROP_DEFS[*].inputConfig\` so the 102// panel-side TS metadata and the bundled IIFE agree on every prop's contract. 103defineProperties(preset, { 104 type: { 105 label: 'motion.preset_flyout.type', 106 type: 'string', 107 defaultValue: 'roundIn', 108 control: 'select', 109 options: [ 110 { value: 'roundIn', label: 'motion.preset_flyout.corner_radius.type.round_in' }, 111 { value: 'roundOut', label: 'motion.preset_flyout.corner_radius.type.round_out' }, 112 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 113 ], 114 }, 115 corner: { 116 label: 'motion.preset_flyout.corner_radius.corner', 117 type: 'string', 118 defaultValue: 'all', 119 control: 'select', 120 options: [ 121 { value: 'all', label: 'motion.preset_flyout.corner_radius.corner.all' }, 122 { value: 'topLeft', label: 'motion.preset_flyout.corner_radius.corner.top_left' }, 123 { value: 'topRight', label: 'motion.preset_flyout.corner_radius.corner.top_right' }, 124 { value: 'bottomLeft', label: 'motion.preset_flyout.corner_radius.corner.bottom_left' }, 125 { value: 'bottomRight', label: 'motion.preset_flyout.corner_radius.corner.bottom_right' }, 126 ], 127 }, 128 amount: { 129 label: 'motion.preset_flyout.amount', 130 type: 'number', 131 defaultValue: 10, 132 control: 'input', 133 min: 0, 134 unit: 'px', 135 },
136 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 137 // are redundant \u2014 section dividers are now applied client-side in the preset 138 // flyout via \`forceShowDividerAboveTransform\` 139 allStartFrame: { 140 label: 'motion.preset_flyout.start_frame', 141 type: 'number', 142 defaultValue: 10, 143 control: 'input', 144 min: 0, 145 unit: 'px', 146 showDividerAbove: true, 147 icon: 'radius_all', 148 }, 149 allEndFrame: { 150 label: 'motion.preset_flyout.end_frame', 151 type: 'number', 152 defaultValue: 0, 153 control: 'input', 154 min: 0, 155 unit: 'px', 156 icon: 'radius_all', 157 }, 158 topLeftStartFrame: { 159 label: 'motion.preset_flyout.start_frame', 160 type: 'number', 161 defaultValue: 0, 162 control: 'input', 163 min: 0, 164 unit: 'px', 165 showDividerAbove: true, 166 icon: 'radius_top_left', 167 }, 168 topLeftEndFrame: { 169 label: 'motion.preset_flyout.end_frame', 170 type: 'number', 171 defaultValue: 20, 172 control: 'input', 173 min: 0, 174 unit: 'px', 175 icon: 'radius_top_left', 176 },
177 topRightStartFrame: { 178 label: 'motion.preset_flyout.start_frame', 179 type: 'number', 180 defaultValue: 0, 181 control: 'input', 182 min: 0, 183 unit: 'px', 184 showDividerAbove: true, 185 icon: 'radius_top_right', 186 }, 187 topRightEndFrame: { 188 label: 'motion.preset_flyout.end_frame', 189 type: 'number', 190 defaultValue: 20, 191 control: 'input', 192 min: 0, 193 unit: 'px', 194 icon: 'radius_top_right', 195 }, 196 bottomLeftStartFrame: { 197 label: 'motion.preset_flyout.start_frame', 198 type: 'number', 199 defaultValue: 0, 200 control: 'input', 201 min: 0, 202 unit: 'px', 203 showDividerAbove: true, 204 icon: 'radius_bottom_left', 205 }, 206 bottomLeftEndFrame: { 207 label: 'motion.preset_flyout.end_frame', 208 type: 'number', 209 defaultValue: 20, 210 control: 'input', 211 min: 0, 212 unit: 'px', 213 icon: 'radius_bottom_left', 214 }, 215 bottomRightStartFrame: { 216 label: 'motion.preset_flyout.start_frame', 217 type: 'number', 218 defaultValue: 0, 219 control: 'input', 220 min: 0, 221 unit: 'px', 222 showDividerAbove: true, 223 icon: 'radius_bottom_right', 224 }, 225 bottomRightEndFrame: { 226 label: 'motion.preset_flyout.end_frame', 227 type: 'number', 228 defaultValue: 20, 229 control: 'input', 230 min: 0, 231 unit: 'px', 232 icon: 'radius_bottom_right', 233 }, 234 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 235 delay: { 236 label: 'motion.preset_flyout.delay', 237 type: 'number', 238 defaultValue: 0, 239 control: 'input', 240 unit: 's', 241 showDividerAbove: true, 242 icon: 'delay', 243 }, 244 duration: { 245 label: 'motion.preset_flyout.duration', 246 type: 'number', 247 defaultValue: 0.5, 248 control: 'input', 249 min: 0.01, 250 unit: 's', 251 icon: 'time', 252 }, 253 easing: { 254 label: 'motion.preset_flyout.easing', 255 type: 'easing', 256 defaultValue: { easingType: EasingType.OUT_CUBIC }, 257 }, 258}) 259`,e0=`var __presetBundle = (() => { 260 var __defProp = Object.defineProperty; 261 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 262 var __getOwnPropNames = Object.getOwnPropertyNames; 263 var __hasOwnProp = Object.prototype.hasOwnProperty; 264 var __export = (target, all) => { 265 for (var name in all) 266 __defProp(target, name, { get: all[name], enumerable: true }); 267 }; 268 var __copyProps = (to, from, except, desc) => { 269 if (from && typeof from === "object" || typeof from === "function") { 270 for (let key of __getOwnPropNames(from)) 271 if (!__hasOwnProp.call(to, key) && key !== except) 272 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 273 } 274 return to; 275 }; 276 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 277 278
278// share/motion/src/presets/source/corner_radius.ts 279 var corner_radius_exports = {}; 280 __export(corner_radius_exports, { 281 default: () => preset 282 }); 283 284 // figma-motion:figma:motion 285 function defineProperties(component, spec) { 286 Object.assign(component, { 287 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 288 }); 289 } 290 var EasingType = { 291 IN_CUBIC: 0, 292 inCubic: 0, 293 OUT_CUBIC: 1, 294 outCubic: 1, 295 INOUT_CUBIC: 2, 296 inOutCubic: 2, 297 LINEAR: 3, 298 linear: 3, 299 IN_BACK_CUBIC: 4, 300 inBackCubic: 4, 301 OUT_BACK_CUBIC: 5, 302 outBackCubic: 5, 303 INOUT_BACK_CUBIC: 6, 304 inOutBackCubic: 6, 305 CUSTOM_CUBIC: 7, 306 customCubic: 7, 307 SPRING: 8, 308 spring: 8, 309 GENTLE_SPRING: 9, 310 gentleSpring: 9, 311 CUSTOM_SPRING: 10, 312 customSpring: 10, 313 SPRING_PRESET_ONE: 11, 314 springPresetOne: 11, 315 SPRING_PRESET_TWO: 12, 316 springPresetTwo: 12, 317 SPRING_PRESET_THREE: 13, 318 springPresetThree: 13, 319 // For backwards compat 320 bezier: 100, 321 BEZIER: 100 322 }; 323 var InterpolationType = { 324 HOLD: 0, 325 hold: 0, 326 BEZIER: 1, 327 bezier: 1 328 }; 329 var KeyframeOperation = { 330 SET: 0, 331 set: 0, 332 SCALE: 1, 333 scale: 1, 334 OFFSET: 2, 335 offset: 2 336 }; 337 var KeyframeBindingTopLevelField = { 338 MISSING: 0, 339 PARAMETER_CONSUMPTION_MAP: 1, 340 EFFECTS: 2, 341 effects: 2 342 }; 343 var TextElementGrouping = { 344 CHARACTER: 0, 345 CHARACTER_NO_WHITESPACE: 1, 346 WORD: 2, 347 LINE: 3, 348 PARAGRAPH: 4 349 }; 350 var TextElementDelayOrder = { 351 LEFT_RIGHT: 0, 352 RIGHT_LEFT: 1, 353 CENTER_OUT: 2, 354 RANDOM: 3 355 }; 356 var PresetGeneratedEffectType = { 357 LAYER_BLUR: 0 358 }; 359 var ParameterField = { 360 MISSING: 0, 361 missing: 0, 362 CORNER_RADIUS: 1, 363 cornerRadius: 1, 364 PARAGRAPH_SPACING: 2, 365 paragraphSpacing: 2, 366 PARAGRAPH_INDENT: 3, 367 paragraphIndent: 3, 368 STROKE_WEIGHT: 4, 369 strokeWeight: 4, 370 STACK_SPACING: 5, 371 stackSpacing: 5, 372 STACK_PADDING_LEFT: 6, 373 stackPaddingLeft: 6, 374 STACK_PADDING_TOP: 7, 375 stackPaddingTop: 7, 376 STACK_PADDING_RIGHT: 8, 377 stackPaddingRight: 8, 378 STACK_PADDING_BOTTOM: 9, 379 stackPaddingBottom: 9, 380 VISIBLE: 10, 381 visible: 10, 382 TEXT_DATA: 11, 383 textData: 11, 384 WIDTH: 12, 385 width: 12, 386 HEIGHT: 13, 387 height: 13, 388 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 389 rectangleTopLeftCornerRadius: 14, 390 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 391 rectangleTopRightCornerRadius: 15, 392 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 393 rectangleBottomLeftCornerRadius: 16, 394 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 395 rectangleBottomRightCornerRadius: 17, 396 BORDER_TOP_WEIGHT: 18, 397 borderTopWeight: 18, 398 BORDER_BOTTOM_WEIGHT: 19, 399 borderBottomWeight: 19, 400 BORDER_LEFT_WEIGHT: 20, 401 borderLeftWeight: 20, 402 BORDER_RIGHT_WEIGHT: 21, 403 borderRightWeight: 21, 404 VARIANT_PROPERTIES: 22, 405 variantProperties: 22, 406 STACK_COUNTER_SPACING: 23, 407 stackCounterSpacing: 23, 408 MIN_WIDTH: 24, 409 minWidth: 24, 410 MAX_WIDTH: 25, 411 maxWidth: 25, 412 MIN_HEIGHT: 26, 413 minHeight: 26, 414 MAX_HEIGHT: 27, 415 maxHeight: 27, 416 FONT_FAMILY: 28, 417 fontFamily: 28, 418 FONT_STYLE: 29, 419 fontStyle: 29, 420 FONT_VARIATIONS: 30, 421 fontVariations: 30, 422 OPACITY: 31, 423 opacity: 31, 424 FONT_SIZE: 32, 425 fontSize: 32, 426 LETTER_SPACING: 34, 427 letterSpacing: 34, 428 LINE_HEIGHT: 36, 429 lineHeight: 36, 430 OVERRIDDEN_SYMBOL_ID: 37, 431 overriddenSymbolId: 37, 432 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 433 cmsSerializedRichTextData: 38, 434 HYPERLINK: 39, 435 hyperlink: 39, 436 SLOT_CONTENT_ID: 40, 437 slotContentId: 40, 438 GRID_ROW_GAP: 41, 439 gridRowGap: 41, 440 GRID_COLUMN_GAP: 42, 441 gridColumnGap: 42, 442 RELATIVE_X_POSITION: 43, 443 xPosition: 43, 444 RELATIVE_Y_POSITION: 44, 445 relativeYPosition: 44, 446 RELATIVE_ROTATION: 45, 447 relativeRotation: 45, 448 MOTION_TRANSLATION_X: 46, 449 motionTranslationX: 46, 450 MOTION_TRANSLATION_Y: 47, 451 motionTranslationY: 47, 452 MOTION_ROTATION: 48, 453 motionRotation: 48, 454 MOTION_SCALE_X: 49, 455 motionScaleX: 49, 456 MOTION_SCALE_Y: 50, 457 motionScaleY: 50, 458 MOTION_SHEAR: 51, 459 motionShear: 51, 460 SCROLL_OFFSET_X: 52, 461 scrollOffsetX: 52, 462 SCROLL_OFFSET_Y: 53, 463 scrollOffsetY: 53, 464 PATH_TRIM_START: 54, 465 pathTrimStart: 54, 466 PATH_TRIM_END: 55, 467 pathTrimEnd: 55, 468 DISSOLVE_PROGRESS: 56, 469 dissolveProgress: 56 470 }; 471 var EffectParametrizedField = { 472 MISSING: 0, 473 missing: 0, 474 OFFSET_X: 1, 475 offsetX: 1, 476 OFFSET_Y: 2, 477 offsetY: 2, 478 RADIUS: 3, 479 radius: 3, 480 SPREAD: 4, 481 spread: 4, 482 COLOR: 5, 483 color: 5, 484 REFRACTION_RADIUS: 6, 485 refractionRadius: 6, 486 SPECULAR_ANGLE: 7, 487 specularAngle: 7, 488 SPECULAR_INTENSITY: 8, 489 specularIntensity: 8, 490 CHROMATIC_ABERRATION: 9, 491 chromaticAberration: 9, 492 SPLAY: 10, 493 splay: 10, 494 REFRACTION_INTENSITY: 11, 495 refractionIntensity: 11, 496 START_RADIUS: 12, 497 startRadius: 12, 498 START_OFFSET_X: 13, 499 startOffsetX: 13, 500 START_OFFSET_Y: 14, 501 startOffsetY: 14, 502 END_OFFSET_X: 15, 503 endOffsetX: 15, 504 END_OFFSET_Y: 16, 505 endOffsetY: 16, 506 NOISE_SIZE_X: 17, 507 noiseSizeX: 17, 508 NOISE_SIZE_Y: 18, 509 noiseSizeY: 18, 510 DENSITY: 19, 511 density: 19, 512 EFFECT_OPACITY: 20, 513 effectOpacity: 20, 514 SECONDARY_COLOR: 21, 515 secondaryColor: 21 516 }; 517 var Keyframe = class { 518 constructor(data) { 519 this.timelinePosition = Math.round(data.timelinePosition); 520 this.easing = data.easing; 521 this.value = data.value; 522 } 523 }; 524 var KeyframeTrack = class { 525 constructor(data) { 526 this.topLevelField = data.topLevelField; 527 this.parameterField = data.parameterField; 528 this.index = data.index; 529 this.effectParametrizedField = data.effectParametrizedField; 530 this.keyframeOperation = data.keyframeOperation; 531 this.keyframes = data.keyframes; 532 this.enabled = !!data.enabled; 533 } 534 }; 535 var AnimationPreset = class { 536 constructor(data) { 537 this.nodeId = data.nodeId; 538 this.keyframeTracks = data.keyframeTracks; 539 this.textElementDelayBehaviour = data.textElementDelayBehaviour; 540 this.effects = data.effects; 541 } 542 }; 543 var PARAMETER_FIELD_ALIAS_MAP = { 544 translateX: ParameterField.MOTION_TRANSLATION_X, 545 translateY: ParameterField.MOTION_TRANSLATION_Y, 546 rotate: ParameterField.MOTION_ROTATION, 547 scaleX: ParameterField.MOTION_SCALE_X, 548 scaleY: ParameterField.MOTION_SCALE_Y, 549 shear: ParameterField.MOTION_SHEAR 550 }; 551 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 552 var MODE_TO_OPERATION = { 553 set: KeyframeOperation.SET, 554 SET: KeyframeOperation.SET, 555 offset: KeyframeOperation.OFFSET, 556 OFFSET: KeyframeOperation.OFFSET, 557 scale: KeyframeOperation.SCALE, 558 SCALE: KeyframeOperation.SCALE 559 }; 560 var TEXT_ELEMENTS_TARGET = /* @__PURE__ */ Symbol("figma.motion.textElements"); 561 var LAYER_BLUR_EFFECT = /* @__PURE__ */ Symbol("figma.motion.layerBlur"); 562 function normalizeEasing(easing) { 563 if (easing === void 0) return void 0; 564 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 565 if (typeof easing === "string") { 566 const easingType = EasingType[easing]; 567 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 568 return { easingType }; 569 } 570 return easing; 571 } 572 function compileKeyframe({ timelinePosition, value, easing }) { 573 return new Keyframe({ 574 timelinePosition: timelinePosition * 1e6, 575 easing: normalizeEasing(easing), 576 value 577 }); 578 } 579 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 580 if (duration < 0) throw new Error("tween: duration must be non-negative"); 581 return { 582 mode, 583 enabled, 584 keyframes: [ 585 { timelinePosition, value: from, easing }, 586 { timelinePosition: timelinePosition + duration, value: to, easing } 587 ] 588 }; 589 } 590 function animate(target, definition) { 591 const isTextElementsTarget = target?.[TEXT_ELEMENTS_TARGET] === true; 592 const node = isTextElementsTarget ? target.node : target; 593 const nodeId = typeof node === "string" ? node : node.id;
594 const keyframeTracks = []; 595 const effects = []; 596 let textElementDelayBehaviour = isTextElementsTarget ? target.textElementDelayBehaviour : void 0; 597 for (const [key, trackDef] of Object.entries(definition)) { 598 if (key === "nodeFields") { 599 textElementDelayBehaviour = parseNodeFields(trackDef).textElementDelayBehaviour; 600 continue; 601 } 602 if (key === "effects") { 603 if (!Array.isArray(trackDef)) { 604 throw new Error('animate: "effects" must be an array'); 605 } 606 if (trackDef.length > 1) { 607 throw new Error("animate: at most one layer blur effect per preset is supported"); 608 } 609 for (const effect of trackDef) { 610 if (effect?.[LAYER_BLUR_EFFECT] !== true) { 611 throw new Error("animate: unsupported effect descriptor"); 612 } 613 const effectIndex = effects.length; 614 const radiusTrack = effect.radius; 615 const operation2 = MODE_TO_OPERATION[radiusTrack?.mode]; 616 if (operation2 === void 0) { 617 throw new Error("animate: layerBlur radius must be a track definition"); 618 } 619 const enabled = radiusTrack.enabled !== false; 620 const seen2 = /* @__PURE__ */ new Map(); 621 for (const kf of radiusTrack.keyframes) seen2.set(kf.timelinePosition, kf); 622 const sorted2 = [...seen2.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 623 effects.push({ 624 type: PresetGeneratedEffectType.LAYER_BLUR, 625 radius: enabled && operation2 === KeyframeOperation.SCALE ? 1 : 0 626 }); 627 keyframeTracks.push(new KeyframeTrack({ 628 topLevelField: KeyframeBindingTopLevelField.EFFECTS, 629 index: effectIndex, 630 effectParametrizedField: EffectParametrizedField.RADIUS, 631 keyframeOperation: operation2, 632 keyframes: sorted2.map(compileKeyframe), 633 enabled 634 })); 635 } 636 continue; 637 } 638 if (!KEYFRAMEABLE_FIELDS.has(key)) { 639 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 640 } 641 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 642 const operation = MODE_TO_OPERATION[trackDef.mode]; 643 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 644 const seen = /* @__PURE__ */ new Map(); 645 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 646 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 647 keyframeTracks.push(new KeyframeTrack({ 648 parameterField, 649 keyframeOperation: operation, 650 keyframes: sorted.map(compileKeyframe), 651 enabled: trackDef.enabled !== false 652 })); 653 } 654 return new AnimationPreset({ 655 nodeId, 656 keyframeTracks, 657 textElementDelayBehaviour, 658 effects: effects.length > 0 ? effects : void 0 659 }); 660 } 661 function parseTextElementDelayBehaviour(value) { 662 if (value === null || typeof value !== "object" || Array.isArray(value)) { 663 throw new Error('animate: "textElementDelayBehaviour" must be an object'); 664 } 665 if (typeof value.enabled !== "boolean") { 666 throw new Error('animate: "textElementDelayBehaviour.enabled" must be a boolean'); 667 } 668 const grouping = TextElementGrouping[value.grouping]; 669 if (!Object.values(TextElementGrouping).includes(grouping)) { 670 throw new Error('animate: unknown text element grouping "' + value.grouping + '"'); 671 } 672 if (typeof value.delayMs !== "number" || !Number.isFinite(value.delayMs) || value.delayMs < 0) { 673 throw new Error( 674 'animate: "textElementDelayBehaviour.delayMs" must be a non-negative finite number' 675 ); 676 } 677 const order = TextElementDelayOrder[value.order]; 678 if (!Object.values(TextElementDelayOrder).includes(order)) { 679 throw new Error('animate: unknown text element delay order "' + value.order + '"'); 680 } 681 const clipContent = value.clipContent === void 0 ? false : value.clipContent; 682 if (typeof clipContent !== "boolean") { 683 throw new Error('animate: "textElementDelayBehaviour.clipContent" must be a boolean'); 684 } 685 return { 686 enabled: value.enabled, 687 grouping, 688 delayMs: value.delayMs, 689 order, 690 clipContent 691 }; 692 } 693 function parseNodeFields(value) { 694 if (value === null || typeof value !== "object" || Array.isArray(value)) { 695 throw new Error('animate: "nodeFields" must be an object'); 696 } 697 const unsupported = Object.keys(value).find((key) => key !== "textElementDelayBehaviour"); 698 if (unsupported !== void 0) { 699 throw new Error('animate: unknown node field "' + unsupported + '"'); 700 } 701 return { 702 textElementDelayBehaviour: value.textElementDelayBehaviour === void 0 ? void 0 : parseTextElementDelayBehaviour(value.textElementDelayBehaviour) 703 }; 704 } 705 706
706// share/motion/src/presets/source/corner_radius.ts 707 var CORNER_FIELD_MAP = { 708 all: "cornerRadius", 709 topLeft: "rectangleTopLeftCornerRadius", 710 topRight: "rectangleTopRightCornerRadius", 711 bottomLeft: "rectangleBottomLeftCornerRadius", 712 bottomRight: "rectangleBottomRightCornerRadius" 713 }; 714 var CORNER_KEYS = ["all", "topLeft", "topRight", "bottomLeft", "bottomRight"]; 715 function preset({ 716 type, 717 corner, 718 amount, 719 allStartFrame, 720 allEndFrame, 721 topLeftStartFrame, 722 topLeftEndFrame, 723 topRightStartFrame, 724 topRightEndFrame, 725 bottomLeftStartFrame, 726 bottomLeftEndFrame, 727 bottomRightStartFrame, 728 bottomRightEndFrame, 729 duration, 730 easing, 731 target 732 }) { 733 const selectedCorner = corner || "all"; 734 function getFromTo(cornerKey) { 735 if (type === "custom") { 736 switch (cornerKey) { 737 case "topLeft": 738 return [topLeftStartFrame, topLeftEndFrame]; 739 case "topRight": 740 return [topRightStartFrame, topRightEndFrame]; 741 case "bottomLeft": 742 return [bottomLeftStartFrame, bottomLeftEndFrame]; 743 case "bottomRight": 744 return [bottomRightStartFrame, bottomRightEndFrame]; 745 case "all": 746 default: 747 return [allStartFrame, allEndFrame]; 748 } 749 } 750 if (type === "roundOut") return [amount, 0]; 751 return [0, amount]; 752 } 753 const definition = {}; 754 for (const cornerKey of CORNER_KEYS) { 755 const fieldName = CORNER_FIELD_MAP[cornerKey]; 756 const enabled = cornerKey === selectedCorner; 757 const [from, to] = getFromTo(cornerKey); 758 definition[fieldName] = tween({ 759 mode: "offset", 760 timelinePosition: 0, 761 duration, 762 from, 763 to, 764 easing, 765 enabled 766 }); 767 } 768 return [animate(target, definition)]; 769 } 770 defineProperties(preset, { 771 type: { 772 label: "motion.preset_flyout.type", 773 type: "string", 774 defaultValue: "roundIn", 775 control: "select", 776 options: [ 777 { value: "roundIn", label: "motion.preset_flyout.corner_radius.type.round_in" }, 778 { value: "roundOut", label: "motion.preset_flyout.corner_radius.type.round_out" }, 779 { value: "custom", label: "motion.preset_flyout.type.custom" } 780 ] 781 }, 782 corner: { 783 label: "motion.preset_flyout.corner_radius.corner", 784 type: "string", 785 defaultValue: "all", 786 control: "select", 787 options: [ 788 { value: "all", label: "motion.preset_flyout.corner_radius.corner.all" }, 789 { value: "topLeft", label: "motion.preset_flyout.corner_radius.corner.top_left" }, 790 { value: "topRight", label: "motion.preset_flyout.corner_radius.corner.top_right" }, 791 { value: "bottomLeft", label: "motion.preset_flyout.corner_radius.corner.bottom_left" }, 792 { value: "bottomRight", label: "motion.preset_flyout.corner_radius.corner.bottom_right" } 793 ] 794 }, 795 amount: { 796 label: "motion.preset_flyout.amount", 797 type: "number", 798 defaultValue: 10, 799 control: "input", 800 min: 0, 801 unit: "px" 802 }, 803 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 804 // are redundant \u2014 section dividers are now applied client-side in the preset 805 // flyout via \`forceShowDividerAboveTransform\` 806 allStartFrame: { 807 label: "motion.preset_flyout.start_frame", 808 type: "number", 809 defaultValue: 10, 810 control: "input", 811 min: 0, 812 unit: "px", 813 showDividerAbove: true, 814 icon: "radius_all" 815 }, 816 allEndFrame: { 817 label: "motion.preset_flyout.end_frame", 818 type: "number", 819 defaultValue: 0, 820 control: "input", 821 min: 0, 822 unit: "px", 823 icon: "radius_all" 824 }, 825 topLeftStartFrame: { 826 label: "motion.preset_flyout.start_frame", 827 type: "number", 828 defaultValue: 0, 829 control: "input", 830 min: 0, 831 unit: "px", 832 showDividerAbove: true, 833 icon: "radius_top_left" 834 }, 835 topLeftEndFrame: { 836 label: "motion.preset_flyout.end_frame", 837 type: "number", 838 defaultValue: 20, 839 control: "input", 840 min: 0, 841 unit: "px", 842 icon: "radius_top_left" 843 }, 844 topRightStartFrame: { 845 label: "motion.preset_flyout.start_frame", 846 type: "number", 847 defaultValue: 0, 848 control: "input", 849 min: 0, 850 unit: "px", 851 showDividerAbove: true, 852 icon: "radius_top_right" 853 }, 854 topRightEndFrame: { 855 label: "motion.preset_flyout.end_frame", 856 type: "number", 857 defaultValue: 20, 858 control: "input", 859 min: 0, 860 unit: "px", 861 icon: "radius_top_right" 862 }, 863 bottomLeftStartFrame: { 864 label: "motion.preset_flyout.start_frame", 865 type: "number", 866 defaultValue: 0, 867 control: "input", 868 min: 0, 869 unit: "px", 870 showDividerAbove: true, 871 icon: "radius_bottom_left" 872 }, 873 bottomLeftEndFrame: { 874 label: "motion.preset_flyout.end_frame", 875 type: "number", 876 defaultValue: 20, 877 control: "input", 878 min: 0, 879 unit: "px", 880 icon: "radius_bottom_left" 881 }, 882 bottomRightStartFrame: { 883 label: "motion.preset_flyout.start_frame", 884 type: "number", 885 defaultValue: 0, 886 control: "input", 887 min: 0, 888 unit: "px", 889 showDividerAbove: true, 890 icon: "radius_bottom_right" 891 }, 892 bottomRightEndFrame: { 893 label: "motion.preset_flyout.end_frame", 894 type: "number", 895 defaultValue: 20, 896 control: "input", 897 min: 0, 898 unit: "px", 899 icon: "radius_bottom_right" 900 }, 901 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 902 delay: { 903 label: "motion.preset_flyout.delay", 904 type: "number", 905 defaultValue: 0, 906 control: "input", 907 unit: "s", 908 showDividerAbove: true, 909 icon: "delay" 910 }, 911 duration: { 912 label: "motion.preset_flyout.duration", 913 type: "number", 914 defaultValue: 0.5, 915 control: "input", 916 min: 0.01, 917 unit: "s", 918 icon: "time" 919 }, 920 easing: { 921 label: "motion.preset_flyout.easing", 922 type: "easing", 923 defaultValue: { easingType: EasingType.OUT_CUBIC } 924 } 925 }); 926 return __toCommonJS(corner_radius_exports); 927})();`});var n0,r0,o0=nn(()=>{n0=`// Source-of-truth for the FADE first-party animation preset. 928// 929// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 930// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 931// resolved, and emits both strings into \`../generated/fade.generated.ts\`. The 932// generated module is what runtime code consumes \u2014 never import this file
933// directly from production code paths. 934// 935// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 936// only an input to the codegen tool, evaluated inside the QuickJS / iframe 937// sandbox at runtime. 938 939import { animate, defineProperties, EasingType, tween } from 'figma:motion' 940 941import type { PresetArgs } from './preset_types' 942 943export default function preset({ timing, duration, easing, node }: PresetArgs) { 944 const [from, to] = timing === 'in' ? [0, 1] : [1, 0] 945 return [ 946 animate(node, { 947 opacity: tween({ 948 mode: 'scale', 949 duration, 950 from, 951 to, 952 easing, 953 }), 954 }), 955 ] 956} 957 958defineProperties(preset, { 959 timing: { 960 label: 'Timing', 961 type: 'string', 962 defaultValue: 'in', 963 control: 'select', 964 options: [ 965 { value: 'in', label: 'Fade In' }, 966 { value: 'out', label: 'Fade Out' }, 967 ], 968 }, 969 duration: { 970 label: 'Duration', 971 type: 'number', 972 defaultValue: 0.5, 973 control: 'input', 974 min: 0.01, 975 unit: 's', 976 }, 977 easing: { 978 label: 'Easing', 979 type: 'easing', 980 defaultValue: { 981 easingType: EasingType.OUT_CUBIC, 982 }, 983 }, 984}) 985`,r0=`var __presetBundle = (() => { 986 var __defProp = Object.defineProperty; 987 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 988 var __getOwnPropNames = Object.getOwnPropertyNames; 989 var __hasOwnProp = Object.prototype.hasOwnProperty; 990 var __export = (target, all) => { 991 for (var name in all) 992 __defProp(target, name, { get: all[name], enumerable: true }); 993 }; 994 var __copyProps = (to, from, except, desc) => { 995 if (from && typeof from === "object" || typeof from === "function") { 996 for (let key of __getOwnPropNames(from)) 997 if (!__hasOwnProp.call(to, key) && key !== except) 998 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 999 } 1000 return to; 1001 }; 1002 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 1003 1004
1004// share/motion/src/presets/source/fade.ts 1005 var fade_exports = {}; 1006 __export(fade_exports, { 1007 default: () => preset 1008 }); 1009 1010 // figma-motion:figma:motion 1011 function defineProperties(component, spec) { 1012 Object.assign(component, { 1013 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 1014 }); 1015 } 1016 var EasingType = { 1017 IN_CUBIC: 0, 1018 inCubic: 0, 1019 OUT_CUBIC: 1, 1020 outCubic: 1, 1021 INOUT_CUBIC: 2, 1022 inOutCubic: 2, 1023 LINEAR: 3, 1024 linear: 3, 1025 IN_BACK_CUBIC: 4, 1026 inBackCubic: 4, 1027 OUT_BACK_CUBIC: 5, 1028 outBackCubic: 5, 1029 INOUT_BACK_CUBIC: 6, 1030 inOutBackCubic: 6, 1031 CUSTOM_CUBIC: 7, 1032 customCubic: 7, 1033 SPRING: 8, 1034 spring: 8, 1035 GENTLE_SPRING: 9, 1036 gentleSpring: 9, 1037 CUSTOM_SPRING: 10, 1038 customSpring: 10, 1039 SPRING_PRESET_ONE: 11, 1040 springPresetOne: 11, 1041 SPRING_PRESET_TWO: 12, 1042 springPresetTwo: 12, 1043 SPRING_PRESET_THREE: 13, 1044 springPresetThree: 13, 1045 // For backwards compat 1046 bezier: 100, 1047 BEZIER: 100 1048 }; 1049 var InterpolationType = { 1050 HOLD: 0, 1051 hold: 0, 1052 BEZIER: 1, 1053 bezier: 1 1054 }; 1055 var KeyframeOperation = { 1056 SET: 0, 1057 set: 0, 1058 SCALE: 1, 1059 scale: 1, 1060 OFFSET: 2, 1061 offset: 2 1062 }; 1063 var KeyframeBindingTopLevelField = { 1064 MISSING: 0, 1065 PARAMETER_CONSUMPTION_MAP: 1, 1066 EFFECTS: 2, 1067 effects: 2 1068 }; 1069 var TextElementGrouping = { 1070 CHARACTER: 0, 1071 CHARACTER_NO_WHITESPACE: 1, 1072 WORD: 2, 1073 LINE: 3, 1074 PARAGRAPH: 4 1075 }; 1076 var TextElementDelayOrder = { 1077 LEFT_RIGHT: 0, 1078 RIGHT_LEFT: 1, 1079 CENTER_OUT: 2, 1080 RANDOM: 3 1081 }; 1082 var PresetGeneratedEffectType = { 1083 LAYER_BLUR: 0 1084 }; 1085 var ParameterField = { 1086 MISSING: 0, 1087 missing: 0, 1088 CORNER_RADIUS: 1, 1089 cornerRadius: 1, 1090 PARAGRAPH_SPACING: 2, 1091 paragraphSpacing: 2, 1092 PARAGRAPH_INDENT: 3, 1093 paragraphIndent: 3, 1094 STROKE_WEIGHT: 4, 1095 strokeWeight: 4, 1096 STACK_SPACING: 5, 1097 stackSpacing: 5, 1098 STACK_PADDING_LEFT: 6, 1099 stackPaddingLeft: 6, 1100 STACK_PADDING_TOP: 7, 1101 stackPaddingTop: 7, 1102 STACK_PADDING_RIGHT: 8, 1103 stackPaddingRight: 8, 1104 STACK_PADDING_BOTTOM: 9, 1105 stackPaddingBottom: 9, 1106 VISIBLE: 10, 1107 visible: 10, 1108 TEXT_DATA: 11, 1109 textData: 11, 1110 WIDTH: 12, 1111 width: 12, 1112 HEIGHT: 13, 1113 height: 13, 1114 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 1115 rectangleTopLeftCornerRadius: 14, 1116 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 1117 rectangleTopRightCornerRadius: 15, 1118 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 1119 rectangleBottomLeftCornerRadius: 16, 1120 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 1121 rectangleBottomRightCornerRadius: 17, 1122 BORDER_TOP_WEIGHT: 18, 1123 borderTopWeight: 18, 1124 BORDER_BOTTOM_WEIGHT: 19, 1125 borderBottomWeight: 19, 1126 BORDER_LEFT_WEIGHT: 20, 1127 borderLeftWeight: 20, 1128 BORDER_RIGHT_WEIGHT: 21, 1129 borderRightWeight: 21, 1130 VARIANT_PROPERTIES: 22, 1131 variantProperties: 22, 1132 STACK_COUNTER_SPACING: 23, 1133 stackCounterSpacing: 23, 1134 MIN_WIDTH: 24, 1135 minWidth: 24, 1136 MAX_WIDTH: 25, 1137 maxWidth: 25, 1138 MIN_HEIGHT: 26, 1139 minHeight: 26, 1140 MAX_HEIGHT: 27, 1141 maxHeight: 27, 1142 FONT_FAMILY: 28, 1143 fontFamily: 28, 1144 FONT_STYLE: 29, 1145 fontStyle: 29, 1146 FONT_VARIATIONS: 30, 1147 fontVariations: 30, 1148 OPACITY: 31, 1149 opacity: 31, 1150 FONT_SIZE: 32, 1151 fontSize: 32, 1152 LETTER_SPACING: 34, 1153 letterSpacing: 34, 1154 LINE_HEIGHT: 36, 1155 lineHeight: 36, 1156 OVERRIDDEN_SYMBOL_ID: 37, 1157 overriddenSymbolId: 37, 1158 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 1159 cmsSerializedRichTextData: 38, 1160 HYPERLINK: 39, 1161 hyperlink: 39, 1162 SLOT_CONTENT_ID: 40, 1163 slotContentId: 40, 1164 GRID_ROW_GAP: 41, 1165 gridRowGap: 41, 1166 GRID_COLUMN_GAP: 42, 1167 gridColumnGap: 42, 1168 RELATIVE_X_POSITION: 43, 1169 xPosition: 43, 1170 RELATIVE_Y_POSITION: 44, 1171 relativeYPosition: 44, 1172 RELATIVE_ROTATION: 45, 1173 relativeRotation: 45, 1174 MOTION_TRANSLATION_X: 46, 1175 motionTranslationX: 46, 1176 MOTION_TRANSLATION_Y: 47, 1177 motionTranslationY: 47, 1178 MOTION_ROTATION: 48, 1179 motionRotation: 48, 1180 MOTION_SCALE_X: 49, 1181 motionScaleX: 49, 1182 MOTION_SCALE_Y: 50, 1183 motionScaleY: 50, 1184 MOTION_SHEAR: 51, 1185 motionShear: 51, 1186 SCROLL_OFFSET_X: 52, 1187 scrollOffsetX: 52, 1188 SCROLL_OFFSET_Y: 53, 1189 scrollOffsetY: 53, 1190 PATH_TRIM_START: 54, 1191 pathTrimStart: 54, 1192 PATH_TRIM_END: 55, 1193 pathTrimEnd: 55, 1194 DISSOLVE_PROGRESS: 56, 1195 dissolveProgress: 56 1196 }; 1197 var EffectParametrizedField = { 1198 MISSING: 0, 1199 missing: 0, 1200 OFFSET_X: 1, 1201 offsetX: 1, 1202 OFFSET_Y: 2, 1203 offsetY: 2, 1204 RADIUS: 3, 1205 radius: 3, 1206 SPREAD: 4, 1207 spread: 4, 1208 COLOR: 5, 1209 color: 5, 1210 REFRACTION_RADIUS: 6, 1211 refractionRadius: 6, 1212 SPECULAR_ANGLE: 7, 1213 specularAngle: 7, 1214 SPECULAR_INTENSITY: 8, 1215 specularIntensity: 8, 1216 CHROMATIC_ABERRATION: 9, 1217 chromaticAberration: 9, 1218 SPLAY: 10, 1219 splay: 10, 1220 REFRACTION_INTENSITY: 11, 1221 refractionIntensity: 11, 1222 START_RADIUS: 12, 1223 startRadius: 12, 1224 START_OFFSET_X: 13, 1225 startOffsetX: 13, 1226 START_OFFSET_Y: 14, 1227 startOffsetY: 14, 1228 END_OFFSET_X: 15, 1229 endOffsetX: 15, 1230 END_OFFSET_Y: 16, 1231 endOffsetY: 16, 1232 NOISE_SIZE_X: 17, 1233 noiseSizeX: 17, 1234 NOISE_SIZE_Y: 18, 1235 noiseSizeY: 18, 1236 DENSITY: 19, 1237 density: 19, 1238 EFFECT_OPACITY: 20, 1239 effectOpacity: 20, 1240 SECONDARY_COLOR: 21, 1241 secondaryColor: 21 1242 }; 1243 var Keyframe = class { 1244 constructor(data) { 1245 this.timelinePosition = Math.round(data.timelinePosition); 1246 this.easing = data.easing; 1247 this.value = data.value; 1248 } 1249 }; 1250 var KeyframeTrack = class { 1251 constructor(data) { 1252 this.topLevelField = data.topLevelField; 1253 this.parameterField = data.parameterField; 1254 this.index = data.index; 1255 this.effectParametrizedField = data.effectParametrizedField; 1256 this.keyframeOperation = data.keyframeOperation; 1257 this.keyframes = data.keyframes; 1258 this.enabled = !!data.enabled; 1259 } 1260 }; 1261 var AnimationPreset = class { 1262 constructor(data) { 1263 this.nodeId = data.nodeId; 1264 this.keyframeTracks = data.keyframeTracks; 1265 this.textElementDelayBehaviour = data.textElementDelayBehaviour; 1266 this.effects = data.effects; 1267 } 1268 }; 1269 var PARAMETER_FIELD_ALIAS_MAP = { 1270 translateX: ParameterField.MOTION_TRANSLATION_X, 1271 translateY: ParameterField.MOTION_TRANSLATION_Y, 1272 rotate: ParameterField.MOTION_ROTATION, 1273 scaleX: ParameterField.MOTION_SCALE_X, 1274 scaleY: ParameterField.MOTION_SCALE_Y, 1275 shear: ParameterField.MOTION_SHEAR 1276 }; 1277 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 1278 var MODE_TO_OPERATION = { 1279 set: KeyframeOperation.SET, 1280 SET: KeyframeOperation.SET, 1281 offset: KeyframeOperation.OFFSET, 1282 OFFSET: KeyframeOperation.OFFSET, 1283 scale: KeyframeOperation.SCALE, 1284 SCALE: KeyframeOperation.SCALE 1285 }; 1286 var TEXT_ELEMENTS_TARGET = /* @__PURE__ */ Symbol("figma.motion.textElements"); 1287 var LAYER_BLUR_EFFECT = /* @__PURE__ */ Symbol("figma.motion.layerBlur"); 1288 function normalizeEasing(easing) { 1289 if (easing === void 0) return void 0; 1290 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 1291 if (typeof easing === "string") { 1292 const easingType = EasingType[easing]; 1293 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 1294 return { easingType }; 1295 } 1296 return easing; 1297 } 1298 function compileKeyframe({ timelinePosition, value, easing }) { 1299 return new Keyframe({ 1300 timelinePosition: timelinePosition * 1e6, 1301 easing: normalizeEasing(easing), 1302 value 1303 }); 1304 } 1305 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 1306 if (duration < 0) throw new Error("tween: duration must be non-negative"); 1307 return { 1308 mode, 1309 enabled, 1310 keyframes: [ 1311 { timelinePosition, value: from, easing }, 1312 { timelinePosition: timelinePosition + duration, value: to, easing } 1313 ] 1314 }; 1315 } 1316 function animate(target, definition) { 1317 const isTextElementsTarget = target?.[TEXT_ELEMENTS_TARGET] === true; 1318 const node = isTextElementsTarget ? target.node : target; 1319 const nodeId = typeof node === "string" ? node : node.id;
1320 const keyframeTracks = []; 1321 const effects = []; 1322 let textElementDelayBehaviour = isTextElementsTarget ? target.textElementDelayBehaviour : void 0; 1323 for (const [key, trackDef] of Object.entries(definition)) { 1324 if (key === "nodeFields") { 1325 textElementDelayBehaviour = parseNodeFields(trackDef).textElementDelayBehaviour; 1326 continue; 1327 } 1328 if (key === "effects") { 1329 if (!Array.isArray(trackDef)) { 1330 throw new Error('animate: "effects" must be an array'); 1331 } 1332 if (trackDef.length > 1) { 1333 throw new Error("animate: at most one layer blur effect per preset is supported"); 1334 } 1335 for (const effect of trackDef) { 1336 if (effect?.[LAYER_BLUR_EFFECT] !== true) { 1337 throw new Error("animate: unsupported effect descriptor"); 1338 } 1339 const effectIndex = effects.length; 1340 const radiusTrack = effect.radius; 1341 const operation2 = MODE_TO_OPERATION[radiusTrack?.mode]; 1342 if (operation2 === void 0) { 1343 throw new Error("animate: layerBlur radius must be a track definition"); 1344 } 1345 const enabled = radiusTrack.enabled !== false; 1346 const seen2 = /* @__PURE__ */ new Map(); 1347 for (const kf of radiusTrack.keyframes) seen2.set(kf.timelinePosition, kf); 1348 const sorted2 = [...seen2.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 1349 effects.push({ 1350 type: PresetGeneratedEffectType.LAYER_BLUR, 1351 radius: enabled && operation2 === KeyframeOperation.SCALE ? 1 : 0 1352 }); 1353 keyframeTracks.push(new KeyframeTrack({ 1354 topLevelField: KeyframeBindingTopLevelField.EFFECTS, 1355 index: effectIndex, 1356 effectParametrizedField: EffectParametrizedField.RADIUS, 1357 keyframeOperation: operation2, 1358 keyframes: sorted2.map(compileKeyframe), 1359 enabled 1360 })); 1361 } 1362 continue; 1363 } 1364 if (!KEYFRAMEABLE_FIELDS.has(key)) { 1365 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 1366 } 1367 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 1368 const operation = MODE_TO_OPERATION[trackDef.mode]; 1369 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 1370 const seen = /* @__PURE__ */ new Map(); 1371 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 1372 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 1373 keyframeTracks.push(new KeyframeTrack({ 1374 parameterField, 1375 keyframeOperation: operation, 1376 keyframes: sorted.map(compileKeyframe), 1377 enabled: trackDef.enabled !== false 1378 })); 1379 } 1380 return new AnimationPreset({ 1381 nodeId, 1382 keyframeTracks, 1383 textElementDelayBehaviour, 1384 effects: effects.length > 0 ? effects : void 0 1385 }); 1386 } 1387 function parseTextElementDelayBehaviour(value) { 1388 if (value === null || typeof value !== "object" || Array.isArray(value)) { 1389 throw new Error('animate: "textElementDelayBehaviour" must be an object'); 1390 } 1391 if (typeof value.enabled !== "boolean") { 1392 throw new Error('animate: "textElementDelayBehaviour.enabled" must be a boolean'); 1393 } 1394 const grouping = TextElementGrouping[value.grouping]; 1395 if (!Object.values(TextElementGrouping).includes(grouping)) { 1396 throw new Error('animate: unknown text element grouping "' + value.grouping + '"'); 1397 } 1398 if (typeof value.delayMs !== "number" || !Number.isFinite(value.delayMs) || value.delayMs < 0) { 1399 throw new Error( 1400 'animate: "textElementDelayBehaviour.delayMs" must be a non-negative finite number' 1401 ); 1402 } 1403 const order = TextElementDelayOrder[value.order]; 1404 if (!Object.values(TextElementDelayOrder).includes(order)) { 1405 throw new Error('animate: unknown text element delay order "' + value.order + '"'); 1406 } 1407 const clipContent = value.clipContent === void 0 ? false : value.clipContent; 1408 if (typeof clipContent !== "boolean") { 1409 throw new Error('animate: "textElementDelayBehaviour.clipContent" must be a boolean'); 1410 } 1411 return { 1412 enabled: value.enabled, 1413 grouping, 1414 delayMs: value.delayMs, 1415 order, 1416 clipContent 1417 }; 1418 } 1419 function parseNodeFields(value) { 1420 if (value === null || typeof value !== "object" || Array.isArray(value)) { 1421 throw new Error('animate: "nodeFields" must be an object'); 1422 } 1423 const unsupported = Object.keys(value).find((key) => key !== "textElementDelayBehaviour"); 1424 if (unsupported !== void 0) { 1425 throw new Error('animate: unknown node field "' + unsupported + '"'); 1426 } 1427 return { 1428 textElementDelayBehaviour: value.textElementDelayBehaviour === void 0 ? void 0 : parseTextElementDelayBehaviour(value.textElementDelayBehaviour) 1429 }; 1430 } 1431 1432
1432// share/motion/src/presets/source/fade.ts 1433 function preset({ timing, duration, easing, node }) { 1434 const [from, to] = timing === "in" ? [0, 1] : [1, 0]; 1435 return [ 1436 animate(node, { 1437 opacity: tween({ 1438 mode: "scale", 1439 duration, 1440 from, 1441 to, 1442 easing 1443 }) 1444 }) 1445 ]; 1446 } 1447 defineProperties(preset, { 1448 timing: { 1449 label: "Timing", 1450 type: "string", 1451 defaultValue: "in", 1452 control: "select", 1453 options: [ 1454 { value: "in", label: "Fade In" }, 1455 { value: "out", label: "Fade Out" } 1456 ] 1457 }, 1458 duration: { 1459 label: "Duration", 1460 type: "number", 1461 defaultValue: 0.5, 1462 control: "input", 1463 min: 0.01, 1464 unit: "s" 1465 }, 1466 easing: { 1467 label: "Easing", 1468 type: "easing", 1469 defaultValue: { 1470 easingType: EasingType.OUT_CUBIC 1471 } 1472 } 1473 }); 1474 return __toCommonJS(fade_exports); 1475})();`});var i0,s0,a0=nn(()=>{i0=`// Source-of-truth for the MOVE first-party animation preset. 1476// 1477// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 1478// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 1479// resolved, and emits both strings into \`../generated/move.generated.ts\`. The 1480// generated module is what runtime code consumes \u2014 never import this file 1481// directly from production code paths. 1482// 1483// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 1484// only an input to the codegen tool, evaluated inside the QuickJS / iframe 1485// sandbox at runtime. 1486 1487import { animate, defineProperties, EasingType, tween } from 'figma:motion' 1488 1489import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 1490 1491export default function preset({ timing, moveX, moveY, duration, fade, easing, node }: PresetArgs) { 1492 const xFrom = timing === 'in' ? moveX : 0 1493 const xTo = timing === 'in' ? 0 : moveX 1494 const yFrom = timing === 'in' ? moveY : 0 1495 const yTo = timing === 'in' ? 0 : moveY 1496 const definition: PresetTrackDefinitions = { 1497 translateX: tween({ 1498 mode: 'offset', 1499 duration, 1500 from: xFrom, 1501 to: xTo, 1502 easing, 1503 }), 1504 translateY: tween({ 1505 mode: 'offset', 1506 duration, 1507 from: yFrom, 1508 to: yTo, 1509 easing, 1510 }), 1511 } 1512 1513 if (fade) { 1514 const opFrom = timing === 'in' ? 0 : 1 1515 const opTo = timing === 'in' ? 1 : 0 1516 definition.opacity = tween({ 1517 mode: 'scale', 1518 duration, 1519 from: opFrom, 1520 to: opTo, 1521 easing, 1522 }) 1523 } 1524 1525 return [animate(node, definition)] 1526} 1527 1528defineProperties(preset, { 1529 timing: { 1530 label: 'Timing', 1531 type: 'string', 1532 defaultValue: 'out', 1533 control: 'select', 1534 options: [ 1535 { value: 'in', label: 'Move In' }, 1536 { value: 'out', label: 'Move Out' }, 1537 ], 1538 }, 1539 moveX: { 1540 label: 'Move X', 1541 type: 'number', 1542 defaultValue: 100, 1543 control: 'input', 1544 }, 1545 moveY: { 1546 label: 'Move Y', 1547 type: 'number', 1548 defaultValue: 0, 1549 control: 'input', 1550 }, 1551 duration: { 1552 label: 'Duration', 1553 type: 'number', 1554 defaultValue: 0.5, 1555 control: 'input', 1556 min: 0.01, 1557 unit: 's', 1558 }, 1559 fade: { 1560 label: 'Fade', 1561 type: 'boolean', 1562 defaultValue: false, 1563 }, 1564 easing: { 1565 label: 'Easing', 1566 type: 'easing', 1567 defaultValue: { 1568 easingType: EasingType.OUT_CUBIC, 1569 }, 1570 }, 1571}) 1572`,s0=`var __presetBundle = (() => { 1573 var __defProp = Object.defineProperty; 1574 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 1575 var __getOwnPropNames = Object.getOwnPropertyNames; 1576 var __hasOwnProp = Object.prototype.hasOwnProperty; 1577 var __export = (target, all) => { 1578 for (var name in all) 1579 __defProp(target, name, { get: all[name], enumerable: true }); 1580 }; 1581 var __copyProps = (to, from, except, desc) => { 1582 if (from && typeof from === "object" || typeof from === "function") { 1583 for (let key of __getOwnPropNames(from)) 1584 if (!__hasOwnProp.call(to, key) && key !== except) 1585 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 1586 } 1587 return to; 1588 }; 1589 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 1590 1591
1591// share/motion/src/presets/source/move.ts 1592 var move_exports = {}; 1593 __export(move_exports, { 1594 default: () => preset 1595 }); 1596 1597 // figma-motion:figma:motion 1598 function defineProperties(component, spec) { 1599 Object.assign(component, { 1600 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 1601 }); 1602 } 1603 var EasingType = { 1604 IN_CUBIC: 0, 1605 inCubic: 0, 1606 OUT_CUBIC: 1, 1607 outCubic: 1, 1608 INOUT_CUBIC: 2, 1609 inOutCubic: 2, 1610 LINEAR: 3, 1611 linear: 3, 1612 IN_BACK_CUBIC: 4, 1613 inBackCubic: 4, 1614 OUT_BACK_CUBIC: 5, 1615 outBackCubic: 5, 1616 INOUT_BACK_CUBIC: 6, 1617 inOutBackCubic: 6, 1618 CUSTOM_CUBIC: 7, 1619 customCubic: 7, 1620 SPRING: 8, 1621 spring: 8, 1622 GENTLE_SPRING: 9, 1623 gentleSpring: 9, 1624 CUSTOM_SPRING: 10, 1625 customSpring: 10, 1626 SPRING_PRESET_ONE: 11, 1627 springPresetOne: 11, 1628 SPRING_PRESET_TWO: 12, 1629 springPresetTwo: 12, 1630 SPRING_PRESET_THREE: 13, 1631 springPresetThree: 13, 1632 // For backwards compat 1633 bezier: 100, 1634 BEZIER: 100 1635 }; 1636 var InterpolationType = { 1637 HOLD: 0, 1638 hold: 0, 1639 BEZIER: 1, 1640 bezier: 1 1641 }; 1642 var KeyframeOperation = { 1643 SET: 0, 1644 set: 0, 1645 SCALE: 1, 1646 scale: 1, 1647 OFFSET: 2, 1648 offset: 2 1649 }; 1650 var KeyframeBindingTopLevelField = { 1651 MISSING: 0, 1652 PARAMETER_CONSUMPTION_MAP: 1, 1653 EFFECTS: 2, 1654 effects: 2 1655 }; 1656 var TextElementGrouping = { 1657 CHARACTER: 0, 1658 CHARACTER_NO_WHITESPACE: 1, 1659 WORD: 2, 1660 LINE: 3, 1661 PARAGRAPH: 4 1662 }; 1663 var TextElementDelayOrder = { 1664 LEFT_RIGHT: 0, 1665 RIGHT_LEFT: 1, 1666 CENTER_OUT: 2, 1667 RANDOM: 3 1668 }; 1669 var PresetGeneratedEffectType = { 1670 LAYER_BLUR: 0 1671 }; 1672 var ParameterField = { 1673 MISSING: 0, 1674 missing: 0, 1675 CORNER_RADIUS: 1, 1676 cornerRadius: 1, 1677 PARAGRAPH_SPACING: 2, 1678 paragraphSpacing: 2, 1679 PARAGRAPH_INDENT: 3, 1680 paragraphIndent: 3, 1681 STROKE_WEIGHT: 4, 1682 strokeWeight: 4, 1683 STACK_SPACING: 5, 1684 stackSpacing: 5, 1685 STACK_PADDING_LEFT: 6, 1686 stackPaddingLeft: 6, 1687 STACK_PADDING_TOP: 7, 1688 stackPaddingTop: 7, 1689 STACK_PADDING_RIGHT: 8, 1690 stackPaddingRight: 8, 1691 STACK_PADDING_BOTTOM: 9, 1692 stackPaddingBottom: 9, 1693 VISIBLE: 10, 1694 visible: 10, 1695 TEXT_DATA: 11, 1696 textData: 11, 1697 WIDTH: 12, 1698 width: 12, 1699 HEIGHT: 13, 1700 height: 13, 1701 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 1702 rectangleTopLeftCornerRadius: 14, 1703 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 1704 rectangleTopRightCornerRadius: 15, 1705 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 1706 rectangleBottomLeftCornerRadius: 16, 1707 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 1708 rectangleBottomRightCornerRadius: 17, 1709 BORDER_TOP_WEIGHT: 18, 1710 borderTopWeight: 18, 1711 BORDER_BOTTOM_WEIGHT: 19, 1712 borderBottomWeight: 19, 1713 BORDER_LEFT_WEIGHT: 20, 1714 borderLeftWeight: 20, 1715 BORDER_RIGHT_WEIGHT: 21, 1716 borderRightWeight: 21, 1717 VARIANT_PROPERTIES: 22, 1718 variantProperties: 22, 1719 STACK_COUNTER_SPACING: 23, 1720 stackCounterSpacing: 23, 1721 MIN_WIDTH: 24, 1722 minWidth: 24, 1723 MAX_WIDTH: 25, 1724 maxWidth: 25, 1725 MIN_HEIGHT: 26, 1726 minHeight: 26, 1727 MAX_HEIGHT: 27, 1728 maxHeight: 27, 1729 FONT_FAMILY: 28, 1730 fontFamily: 28, 1731 FONT_STYLE: 29, 1732 fontStyle: 29, 1733 FONT_VARIATIONS: 30, 1734 fontVariations: 30, 1735 OPACITY: 31, 1736 opacity: 31, 1737 FONT_SIZE: 32, 1738 fontSize: 32, 1739 LETTER_SPACING: 34, 1740 letterSpacing: 34, 1741 LINE_HEIGHT: 36, 1742 lineHeight: 36, 1743 OVERRIDDEN_SYMBOL_ID: 37, 1744 overriddenSymbolId: 37, 1745 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 1746 cmsSerializedRichTextData: 38, 1747 HYPERLINK: 39, 1748 hyperlink: 39, 1749 SLOT_CONTENT_ID: 40, 1750 slotContentId: 40, 1751 GRID_ROW_GAP: 41, 1752 gridRowGap: 41, 1753 GRID_COLUMN_GAP: 42, 1754 gridColumnGap: 42, 1755 RELATIVE_X_POSITION: 43, 1756 xPosition: 43, 1757 RELATIVE_Y_POSITION: 44, 1758 relativeYPosition: 44, 1759 RELATIVE_ROTATION: 45, 1760 relativeRotation: 45, 1761 MOTION_TRANSLATION_X: 46, 1762 motionTranslationX: 46, 1763 MOTION_TRANSLATION_Y: 47, 1764 motionTranslationY: 47, 1765 MOTION_ROTATION: 48, 1766 motionRotation: 48, 1767 MOTION_SCALE_X: 49, 1768 motionScaleX: 49, 1769 MOTION_SCALE_Y: 50, 1770 motionScaleY: 50, 1771 MOTION_SHEAR: 51, 1772 motionShear: 51, 1773 SCROLL_OFFSET_X: 52, 1774 scrollOffsetX: 52, 1775 SCROLL_OFFSET_Y: 53, 1776 scrollOffsetY: 53, 1777 PATH_TRIM_START: 54, 1778 pathTrimStart: 54, 1779 PATH_TRIM_END: 55, 1780 pathTrimEnd: 55, 1781 DISSOLVE_PROGRESS: 56, 1782 dissolveProgress: 56 1783 }; 1784 var EffectParametrizedField = { 1785 MISSING: 0, 1786 missing: 0, 1787 OFFSET_X: 1, 1788 offsetX: 1, 1789 OFFSET_Y: 2, 1790 offsetY: 2, 1791 RADIUS: 3, 1792 radius: 3, 1793 SPREAD: 4, 1794 spread: 4, 1795 COLOR: 5, 1796 color: 5, 1797 REFRACTION_RADIUS: 6, 1798 refractionRadius: 6, 1799 SPECULAR_ANGLE: 7, 1800 specularAngle: 7, 1801 SPECULAR_INTENSITY: 8, 1802 specularIntensity: 8, 1803 CHROMATIC_ABERRATION: 9, 1804 chromaticAberration: 9, 1805 SPLAY: 10, 1806 splay: 10, 1807 REFRACTION_INTENSITY: 11, 1808 refractionIntensity: 11, 1809 START_RADIUS: 12, 1810 startRadius: 12, 1811 START_OFFSET_X: 13, 1812 startOffsetX: 13, 1813 START_OFFSET_Y: 14, 1814 startOffsetY: 14, 1815 END_OFFSET_X: 15, 1816 endOffsetX: 15, 1817 END_OFFSET_Y: 16, 1818 endOffsetY: 16, 1819 NOISE_SIZE_X: 17, 1820 noiseSizeX: 17, 1821 NOISE_SIZE_Y: 18, 1822 noiseSizeY: 18, 1823 DENSITY: 19, 1824 density: 19, 1825 EFFECT_OPACITY: 20, 1826 effectOpacity: 20, 1827 SECONDARY_COLOR: 21, 1828 secondaryColor: 21 1829 }; 1830 var Keyframe = class { 1831 constructor(data) { 1832 this.timelinePosition = Math.round(data.timelinePosition); 1833 this.easing = data.easing; 1834 this.value = data.value; 1835 } 1836 }; 1837 var KeyframeTrack = class { 1838 constructor(data) { 1839 this.topLevelField = data.topLevelField; 1840 this.parameterField = data.parameterField; 1841 this.index = data.index; 1842 this.effectParametrizedField = data.effectParametrizedField; 1843 this.keyframeOperation = data.keyframeOperation; 1844 this.keyframes = data.keyframes; 1845 this.enabled = !!data.enabled; 1846 } 1847 }; 1848 var AnimationPreset = class { 1849 constructor(data) { 1850 this.nodeId = data.nodeId; 1851 this.keyframeTracks = data.keyframeTracks; 1852 this.textElementDelayBehaviour = data.textElementDelayBehaviour; 1853 this.effects = data.effects; 1854 } 1855 }; 1856 var PARAMETER_FIELD_ALIAS_MAP = { 1857 translateX: ParameterField.MOTION_TRANSLATION_X, 1858 translateY: ParameterField.MOTION_TRANSLATION_Y, 1859 rotate: ParameterField.MOTION_ROTATION, 1860 scaleX: ParameterField.MOTION_SCALE_X, 1861 scaleY: ParameterField.MOTION_SCALE_Y, 1862 shear: ParameterField.MOTION_SHEAR 1863 }; 1864 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 1865 var MODE_TO_OPERATION = { 1866 set: KeyframeOperation.SET, 1867 SET: KeyframeOperation.SET, 1868 offset: KeyframeOperation.OFFSET, 1869 OFFSET: KeyframeOperation.OFFSET, 1870 scale: KeyframeOperation.SCALE, 1871 SCALE: KeyframeOperation.SCALE 1872 }; 1873 var TEXT_ELEMENTS_TARGET = /* @__PURE__ */ Symbol("figma.motion.textElements"); 1874 var LAYER_BLUR_EFFECT = /* @__PURE__ */ Symbol("figma.motion.layerBlur"); 1875 function normalizeEasing(easing) { 1876 if (easing === void 0) return void 0; 1877 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 1878 if (typeof easing === "string") { 1879 const easingType = EasingType[easing]; 1880 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 1881 return { easingType }; 1882 } 1883 return easing; 1884 } 1885 function compileKeyframe({ timelinePosition, value, easing }) { 1886 return new Keyframe({ 1887 timelinePosition: timelinePosition * 1e6, 1888 easing: normalizeEasing(easing), 1889 value 1890 }); 1891 } 1892 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 1893 if (duration < 0) throw new Error("tween: duration must be non-negative"); 1894 return { 1895 mode, 1896 enabled, 1897 keyframes: [ 1898 { timelinePosition, value: from, easing }, 1899 { timelinePosition: timelinePosition + duration, value: to, easing } 1900 ] 1901 }; 1902 } 1903 function animate(target, definition) { 1904 const isTextElementsTarget = target?.[TEXT_ELEMENTS_TARGET] === true; 1905 const node = isTextElementsTarget ? target.node : target; 1906 const nodeId = typeof node === "string" ? node : node.id;
1907 const keyframeTracks = []; 1908 const effects = []; 1909 let textElementDelayBehaviour = isTextElementsTarget ? target.textElementDelayBehaviour : void 0; 1910 for (const [key, trackDef] of Object.entries(definition)) { 1911 if (key === "nodeFields") { 1912 textElementDelayBehaviour = parseNodeFields(trackDef).textElementDelayBehaviour; 1913 continue; 1914 } 1915 if (key === "effects") { 1916 if (!Array.isArray(trackDef)) { 1917 throw new Error('animate: "effects" must be an array'); 1918 } 1919 if (trackDef.length > 1) { 1920 throw new Error("animate: at most one layer blur effect per preset is supported"); 1921 } 1922 for (const effect of trackDef) { 1923 if (effect?.[LAYER_BLUR_EFFECT] !== true) { 1924 throw new Error("animate: unsupported effect descriptor"); 1925 } 1926 const effectIndex = effects.length; 1927 const radiusTrack = effect.radius; 1928 const operation2 = MODE_TO_OPERATION[radiusTrack?.mode]; 1929 if (operation2 === void 0) { 1930 throw new Error("animate: layerBlur radius must be a track definition"); 1931 } 1932 const enabled = radiusTrack.enabled !== false; 1933 const seen2 = /* @__PURE__ */ new Map(); 1934 for (const kf of radiusTrack.keyframes) seen2.set(kf.timelinePosition, kf); 1935 const sorted2 = [...seen2.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 1936 effects.push({ 1937 type: PresetGeneratedEffectType.LAYER_BLUR, 1938 radius: enabled && operation2 === KeyframeOperation.SCALE ? 1 : 0 1939 }); 1940 keyframeTracks.push(new KeyframeTrack({ 1941 topLevelField: KeyframeBindingTopLevelField.EFFECTS, 1942 index: effectIndex, 1943 effectParametrizedField: EffectParametrizedField.RADIUS, 1944 keyframeOperation: operation2, 1945 keyframes: sorted2.map(compileKeyframe), 1946 enabled 1947 })); 1948 } 1949 continue; 1950 } 1951 if (!KEYFRAMEABLE_FIELDS.has(key)) { 1952 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 1953 } 1954 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 1955 const operation = MODE_TO_OPERATION[trackDef.mode]; 1956 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 1957 const seen = /* @__PURE__ */ new Map(); 1958 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 1959 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 1960 keyframeTracks.push(new KeyframeTrack({ 1961 parameterField, 1962 keyframeOperation: operation, 1963 keyframes: sorted.map(compileKeyframe), 1964 enabled: trackDef.enabled !== false 1965 })); 1966 } 1967 return new AnimationPreset({ 1968 nodeId, 1969 keyframeTracks, 1970 textElementDelayBehaviour, 1971 effects: effects.length > 0 ? effects : void 0 1972 }); 1973 } 1974 function parseTextElementDelayBehaviour(value) { 1975 if (value === null || typeof value !== "object" || Array.isArray(value)) { 1976 throw new Error('animate: "textElementDelayBehaviour" must be an object'); 1977 } 1978 if (typeof value.enabled !== "boolean") { 1979 throw new Error('animate: "textElementDelayBehaviour.enabled" must be a boolean'); 1980 } 1981 const grouping = TextElementGrouping[value.grouping]; 1982 if (!Object.values(TextElementGrouping).includes(grouping)) { 1983 throw new Error('animate: unknown text element grouping "' + value.grouping + '"'); 1984 } 1985 if (typeof value.delayMs !== "number" || !Number.isFinite(value.delayMs) || value.delayMs < 0) { 1986 throw new Error( 1987 'animate: "textElementDelayBehaviour.delayMs" must be a non-negative finite number' 1988 ); 1989 } 1990 const order = TextElementDelayOrder[value.order]; 1991 if (!Object.values(TextElementDelayOrder).includes(order)) { 1992 throw new Error('animate: unknown text element delay order "' + value.order + '"'); 1993 } 1994 const clipContent = value.clipContent === void 0 ? false : value.clipContent; 1995 if (typeof clipContent !== "boolean") { 1996 throw new Error('animate: "textElementDelayBehaviour.clipContent" must be a boolean'); 1997 } 1998 return { 1999 enabled: value.enabled, 2000 grouping, 2001 delayMs: value.delayMs, 2002 order, 2003 clipContent 2004 }; 2005 } 2006 function parseNodeFields(value) { 2007 if (value === null || typeof value !== "object" || Array.isArray(value)) { 2008 throw new Error('animate: "nodeFields" must be an object'); 2009 } 2010 const unsupported = Object.keys(value).find((key) => key !== "textElementDelayBehaviour"); 2011 if (unsupported !== void 0) { 2012 throw new Error('animate: unknown node field "' + unsupported + '"'); 2013 } 2014 return { 2015 textElementDelayBehaviour: value.textElementDelayBehaviour === void 0 ? void 0 : parseTextElementDelayBehaviour(value.textElementDelayBehaviour) 2016 }; 2017 } 2018 2019
2019// share/motion/src/presets/source/move.ts 2020 function preset({ timing, moveX, moveY, duration, fade, easing, node }) { 2021 const xFrom = timing === "in" ? moveX : 0; 2022 const xTo = timing === "in" ? 0 : moveX; 2023 const yFrom = timing === "in" ? moveY : 0; 2024 const yTo = timing === "in" ? 0 : moveY; 2025 const definition = { 2026 translateX: tween({ 2027 mode: "offset", 2028 duration, 2029 from: xFrom, 2030 to: xTo, 2031 easing 2032 }), 2033 translateY: tween({ 2034 mode: "offset", 2035 duration, 2036 from: yFrom, 2037 to: yTo, 2038 easing 2039 }) 2040 }; 2041 if (fade) { 2042 const opFrom = timing === "in" ? 0 : 1; 2043 const opTo = timing === "in" ? 1 : 0; 2044 definition.opacity = tween({ 2045 mode: "scale", 2046 duration, 2047 from: opFrom, 2048 to: opTo, 2049 easing 2050 }); 2051 } 2052 return [animate(node, definition)]; 2053 } 2054 defineProperties(preset, { 2055 timing: { 2056 label: "Timing", 2057 type: "string", 2058 defaultValue: "out", 2059 control: "select", 2060 options: [ 2061 { value: "in", label: "Move In" }, 2062 { value: "out", label: "Move Out" } 2063 ] 2064 }, 2065 moveX: { 2066 label: "Move X", 2067 type: "number", 2068 defaultValue: 100, 2069 control: "input" 2070 }, 2071 moveY: { 2072 label: "Move Y", 2073 type: "number", 2074 defaultValue: 0, 2075 control: "input" 2076 }, 2077 duration: { 2078 label: "Duration", 2079 type: "number", 2080 defaultValue: 0.5, 2081 control: "input", 2082 min: 0.01, 2083 unit: "s" 2084 }, 2085 fade: { 2086 label: "Fade", 2087 type: "boolean", 2088 defaultValue: false 2089 }, 2090 easing: { 2091 label: "Easing", 2092 type: "easing", 2093 defaultValue: { 2094 easingType: EasingType.OUT_CUBIC 2095 } 2096 } 2097 }); 2098 return __toCommonJS(move_exports); 2099})();`});var l0,u0,c0=nn(()=>{l0=`// Source-of-truth for the NEW first-party animation preset. 2100// 2101// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 2102// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 2103// resolved, and emits both strings into \`../generated/new.generated.ts\`. The 2104// generated module is what runtime code consumes \u2014 never import this file 2105// directly from production code paths. 2106// 2107// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 2108// only an input to the codegen tool, evaluated inside the QuickJS / iframe 2109// sandbox at runtime. 2110 2111import { animate, defineProperties, EasingType, tween } from 'figma:motion' 2112 2113import type { PresetArgs } from './preset_types' 2114 2115export default function preset({ duration, easing, node }: PresetArgs) { 2116 return [ 2117 animate(node, { 2118 opacity: tween({ 2119 mode: 'scale', 2120 duration, 2121 from: 0, 2122 to: 1, 2123 easing, 2124 }), 2125 }), 2126 ] 2127} 2128
2129defineProperties(preset, { 2130 duration: { 2131 label: 'Duration', 2132 type: 'number', 2133 defaultValue: 0.5, 2134 control: 'input', 2135 min: 0.01, 2136 unit: 's', 2137 }, 2138 easing: { 2139 label: 'Easing', 2140 type: 'easing', 2141 defaultValue: { 2142 easingType: EasingType.OUT_CUBIC, 2143 }, 2144 }, 2145}) 2146`,u0=`var __presetBundle = (() => { 2147 var __defProp = Object.defineProperty; 2148 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 2149 var __getOwnPropNames = Object.getOwnPropertyNames; 2150 var __hasOwnProp = Object.prototype.hasOwnProperty; 2151 var __export = (target, all) => { 2152 for (var name in all) 2153 __defProp(target, name, { get: all[name], enumerable: true }); 2154 }; 2155 var __copyProps = (to, from, except, desc) => { 2156 if (from && typeof from === "object" || typeof from === "function") { 2157 for (let key of __getOwnPropNames(from)) 2158 if (!__hasOwnProp.call(to, key) && key !== except) 2159 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 2160 } 2161 return to; 2162 }; 2163 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 2164 2165
2165// share/motion/src/presets/source/new.ts 2166 var new_exports = {}; 2167 __export(new_exports, { 2168 default: () => preset 2169 }); 2170 2171 // figma-motion:figma:motion 2172 function defineProperties(component, spec) { 2173 Object.assign(component, { 2174 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 2175 }); 2176 } 2177 var EasingType = { 2178 IN_CUBIC: 0, 2179 inCubic: 0, 2180 OUT_CUBIC: 1, 2181 outCubic: 1, 2182 INOUT_CUBIC: 2, 2183 inOutCubic: 2, 2184 LINEAR: 3, 2185 linear: 3, 2186 IN_BACK_CUBIC: 4, 2187 inBackCubic: 4, 2188 OUT_BACK_CUBIC: 5, 2189 outBackCubic: 5, 2190 INOUT_BACK_CUBIC: 6, 2191 inOutBackCubic: 6, 2192 CUSTOM_CUBIC: 7, 2193 customCubic: 7, 2194 SPRING: 8, 2195 spring: 8, 2196 GENTLE_SPRING: 9, 2197 gentleSpring: 9, 2198 CUSTOM_SPRING: 10, 2199 customSpring: 10, 2200 SPRING_PRESET_ONE: 11, 2201 springPresetOne: 11, 2202 SPRING_PRESET_TWO: 12, 2203 springPresetTwo: 12, 2204 SPRING_PRESET_THREE: 13, 2205 springPresetThree: 13, 2206 // For backwards compat 2207 bezier: 100, 2208 BEZIER: 100 2209 }; 2210 var InterpolationType = { 2211 HOLD: 0, 2212 hold: 0, 2213 BEZIER: 1, 2214 bezier: 1 2215 }; 2216 var KeyframeOperation = { 2217 SET: 0, 2218 set: 0, 2219 SCALE: 1, 2220 scale: 1, 2221 OFFSET: 2, 2222 offset: 2 2223 }; 2224 var KeyframeBindingTopLevelField = { 2225 MISSING: 0, 2226 PARAMETER_CONSUMPTION_MAP: 1, 2227 EFFECTS: 2, 2228 effects: 2 2229 }; 2230 var TextElementGrouping = { 2231 CHARACTER: 0, 2232 CHARACTER_NO_WHITESPACE: 1, 2233 WORD: 2, 2234 LINE: 3, 2235 PARAGRAPH: 4 2236 }; 2237 var TextElementDelayOrder = { 2238 LEFT_RIGHT: 0, 2239 RIGHT_LEFT: 1, 2240 CENTER_OUT: 2, 2241 RANDOM: 3 2242 }; 2243 var PresetGeneratedEffectType = { 2244 LAYER_BLUR: 0 2245 }; 2246 var ParameterField = { 2247 MISSING: 0, 2248 missing: 0, 2249 CORNER_RADIUS: 1, 2250 cornerRadius: 1, 2251 PARAGRAPH_SPACING: 2, 2252 paragraphSpacing: 2, 2253 PARAGRAPH_INDENT: 3, 2254 paragraphIndent: 3, 2255 STROKE_WEIGHT: 4, 2256 strokeWeight: 4, 2257 STACK_SPACING: 5, 2258 stackSpacing: 5, 2259 STACK_PADDING_LEFT: 6, 2260 stackPaddingLeft: 6, 2261 STACK_PADDING_TOP: 7, 2262 stackPaddingTop: 7, 2263 STACK_PADDING_RIGHT: 8, 2264 stackPaddingRight: 8, 2265 STACK_PADDING_BOTTOM: 9, 2266 stackPaddingBottom: 9, 2267 VISIBLE: 10, 2268 visible: 10, 2269 TEXT_DATA: 11, 2270 textData: 11, 2271 WIDTH: 12, 2272 width: 12, 2273 HEIGHT: 13, 2274 height: 13, 2275 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 2276 rectangleTopLeftCornerRadius: 14, 2277 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 2278 rectangleTopRightCornerRadius: 15, 2279 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 2280 rectangleBottomLeftCornerRadius: 16, 2281 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 2282 rectangleBottomRightCornerRadius: 17, 2283 BORDER_TOP_WEIGHT: 18, 2284 borderTopWeight: 18, 2285 BORDER_BOTTOM_WEIGHT: 19, 2286 borderBottomWeight: 19, 2287 BORDER_LEFT_WEIGHT: 20, 2288 borderLeftWeight: 20, 2289 BORDER_RIGHT_WEIGHT: 21, 2290 borderRightWeight: 21, 2291 VARIANT_PROPERTIES: 22, 2292 variantProperties: 22, 2293 STACK_COUNTER_SPACING: 23, 2294 stackCounterSpacing: 23, 2295 MIN_WIDTH: 24, 2296 minWidth: 24, 2297 MAX_WIDTH: 25, 2298 maxWidth: 25, 2299 MIN_HEIGHT: 26, 2300 minHeight: 26, 2301 MAX_HEIGHT: 27, 2302 maxHeight: 27, 2303 FONT_FAMILY: 28, 2304 fontFamily: 28, 2305 FONT_STYLE: 29, 2306 fontStyle: 29, 2307 FONT_VARIATIONS: 30, 2308 fontVariations: 30, 2309 OPACITY: 31, 2310 opacity: 31, 2311 FONT_SIZE: 32, 2312 fontSize: 32, 2313 LETTER_SPACING: 34, 2314 letterSpacing: 34, 2315 LINE_HEIGHT: 36, 2316 lineHeight: 36, 2317 OVERRIDDEN_SYMBOL_ID: 37, 2318 overriddenSymbolId: 37, 2319 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 2320 cmsSerializedRichTextData: 38, 2321 HYPERLINK: 39, 2322 hyperlink: 39, 2323 SLOT_CONTENT_ID: 40, 2324 slotContentId: 40, 2325 GRID_ROW_GAP: 41, 2326 gridRowGap: 41, 2327 GRID_COLUMN_GAP: 42, 2328 gridColumnGap: 42, 2329 RELATIVE_X_POSITION: 43, 2330 xPosition: 43, 2331 RELATIVE_Y_POSITION: 44, 2332 relativeYPosition: 44, 2333 RELATIVE_ROTATION: 45, 2334 relativeRotation: 45, 2335 MOTION_TRANSLATION_X: 46, 2336 motionTranslationX: 46, 2337 MOTION_TRANSLATION_Y: 47, 2338 motionTranslationY: 47, 2339 MOTION_ROTATION: 48, 2340 motionRotation: 48, 2341 MOTION_SCALE_X: 49, 2342 motionScaleX: 49, 2343 MOTION_SCALE_Y: 50, 2344 motionScaleY: 50, 2345 MOTION_SHEAR: 51, 2346 motionShear: 51, 2347 SCROLL_OFFSET_X: 52, 2348 scrollOffsetX: 52, 2349 SCROLL_OFFSET_Y: 53, 2350 scrollOffsetY: 53, 2351 PATH_TRIM_START: 54, 2352 pathTrimStart: 54, 2353 PATH_TRIM_END: 55, 2354 pathTrimEnd: 55, 2355 DISSOLVE_PROGRESS: 56, 2356 dissolveProgress: 56 2357 }; 2358 var EffectParametrizedField = { 2359 MISSING: 0, 2360 missing: 0, 2361 OFFSET_X: 1, 2362 offsetX: 1, 2363 OFFSET_Y: 2, 2364 offsetY: 2, 2365 RADIUS: 3, 2366 radius: 3, 2367 SPREAD: 4, 2368 spread: 4, 2369 COLOR: 5, 2370 color: 5, 2371 REFRACTION_RADIUS: 6, 2372 refractionRadius: 6, 2373 SPECULAR_ANGLE: 7, 2374 specularAngle: 7, 2375 SPECULAR_INTENSITY: 8, 2376 specularIntensity: 8, 2377 CHROMATIC_ABERRATION: 9, 2378 chromaticAberration: 9, 2379 SPLAY: 10, 2380 splay: 10, 2381 REFRACTION_INTENSITY: 11, 2382 refractionIntensity: 11, 2383 START_RADIUS: 12, 2384 startRadius: 12, 2385 START_OFFSET_X: 13, 2386 startOffsetX: 13, 2387 START_OFFSET_Y: 14, 2388 startOffsetY: 14, 2389 END_OFFSET_X: 15, 2390 endOffsetX: 15, 2391 END_OFFSET_Y: 16, 2392 endOffsetY: 16, 2393 NOISE_SIZE_X: 17, 2394 noiseSizeX: 17, 2395 NOISE_SIZE_Y: 18, 2396 noiseSizeY: 18, 2397 DENSITY: 19, 2398 density: 19, 2399 EFFECT_OPACITY: 20, 2400 effectOpacity: 20, 2401 SECONDARY_COLOR: 21, 2402 secondaryColor: 21 2403 }; 2404 var Keyframe = class { 2405 constructor(data) { 2406 this.timelinePosition = Math.round(data.timelinePosition); 2407 this.easing = data.easing; 2408 this.value = data.value; 2409 } 2410 }; 2411 var KeyframeTrack = class { 2412 constructor(data) { 2413 this.topLevelField = data.topLevelField; 2414 this.parameterField = data.parameterField; 2415 this.index = data.index; 2416 this.effectParametrizedField = data.effectParametrizedField; 2417 this.keyframeOperation = data.keyframeOperation; 2418 this.keyframes = data.keyframes; 2419 this.enabled = !!data.enabled; 2420 } 2421 }; 2422 var AnimationPreset = class { 2423 constructor(data) { 2424 this.nodeId = data.nodeId; 2425 this.keyframeTracks = data.keyframeTracks; 2426 this.textElementDelayBehaviour = data.textElementDelayBehaviour; 2427 this.effects = data.effects; 2428 } 2429 }; 2430 var PARAMETER_FIELD_ALIAS_MAP = { 2431 translateX: ParameterField.MOTION_TRANSLATION_X, 2432 translateY: ParameterField.MOTION_TRANSLATION_Y, 2433 rotate: ParameterField.MOTION_ROTATION, 2434 scaleX: ParameterField.MOTION_SCALE_X, 2435 scaleY: ParameterField.MOTION_SCALE_Y, 2436 shear: ParameterField.MOTION_SHEAR 2437 }; 2438 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 2439 var MODE_TO_OPERATION = { 2440 set: KeyframeOperation.SET, 2441 SET: KeyframeOperation.SET, 2442 offset: KeyframeOperation.OFFSET, 2443 OFFSET: KeyframeOperation.OFFSET, 2444 scale: KeyframeOperation.SCALE, 2445 SCALE: KeyframeOperation.SCALE 2446 }; 2447 var TEXT_ELEMENTS_TARGET = /* @__PURE__ */ Symbol("figma.motion.textElements"); 2448 var LAYER_BLUR_EFFECT = /* @__PURE__ */ Symbol("figma.motion.layerBlur"); 2449 function normalizeEasing(easing) { 2450 if (easing === void 0) return void 0; 2451 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 2452 if (typeof easing === "string") { 2453 const easingType = EasingType[easing]; 2454 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 2455 return { easingType }; 2456 } 2457 return easing; 2458 } 2459 function compileKeyframe({ timelinePosition, value, easing }) { 2460 return new Keyframe({ 2461 timelinePosition: timelinePosition * 1e6, 2462 easing: normalizeEasing(easing), 2463 value 2464 }); 2465 } 2466 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 2467 if (duration < 0) throw new Error("tween: duration must be non-negative"); 2468 return { 2469 mode, 2470 enabled, 2471 keyframes: [ 2472 { timelinePosition, value: from, easing }, 2473 { timelinePosition: timelinePosition + duration, value: to, easing } 2474 ] 2475 }; 2476 } 2477 function animate(target, definition) { 2478 const isTextElementsTarget = target?.[TEXT_ELEMENTS_TARGET] === true; 2479 const node = isTextElementsTarget ? target.node : target; 2480 const nodeId = typeof node === "string" ? node : node.id;
2481 const keyframeTracks = []; 2482 const effects = []; 2483 let textElementDelayBehaviour = isTextElementsTarget ? target.textElementDelayBehaviour : void 0; 2484 for (const [key, trackDef] of Object.entries(definition)) { 2485 if (key === "nodeFields") { 2486 textElementDelayBehaviour = parseNodeFields(trackDef).textElementDelayBehaviour; 2487 continue; 2488 } 2489 if (key === "effects") { 2490 if (!Array.isArray(trackDef)) { 2491 throw new Error('animate: "effects" must be an array'); 2492 } 2493 if (trackDef.length > 1) { 2494 throw new Error("animate: at most one layer blur effect per preset is supported"); 2495 } 2496 for (const effect of trackDef) { 2497 if (effect?.[LAYER_BLUR_EFFECT] !== true) { 2498 throw new Error("animate: unsupported effect descriptor"); 2499 } 2500 const effectIndex = effects.length; 2501 const radiusTrack = effect.radius; 2502 const operation2 = MODE_TO_OPERATION[radiusTrack?.mode]; 2503 if (operation2 === void 0) { 2504 throw new Error("animate: layerBlur radius must be a track definition"); 2505 } 2506 const enabled = radiusTrack.enabled !== false; 2507 const seen2 = /* @__PURE__ */ new Map(); 2508 for (const kf of radiusTrack.keyframes) seen2.set(kf.timelinePosition, kf); 2509 const sorted2 = [...seen2.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 2510 effects.push({ 2511 type: PresetGeneratedEffectType.LAYER_BLUR, 2512 radius: enabled && operation2 === KeyframeOperation.SCALE ? 1 : 0 2513 }); 2514 keyframeTracks.push(new KeyframeTrack({ 2515 topLevelField: KeyframeBindingTopLevelField.EFFECTS, 2516 index: effectIndex, 2517 effectParametrizedField: EffectParametrizedField.RADIUS, 2518 keyframeOperation: operation2, 2519 keyframes: sorted2.map(compileKeyframe), 2520 enabled 2521 })); 2522 } 2523 continue; 2524 } 2525 if (!KEYFRAMEABLE_FIELDS.has(key)) { 2526 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 2527 } 2528 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 2529 const operation = MODE_TO_OPERATION[trackDef.mode]; 2530 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 2531 const seen = /* @__PURE__ */ new Map(); 2532 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 2533 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 2534 keyframeTracks.push(new KeyframeTrack({ 2535 parameterField, 2536 keyframeOperation: operation, 2537 keyframes: sorted.map(compileKeyframe), 2538 enabled: trackDef.enabled !== false 2539 })); 2540 } 2541 return new AnimationPreset({ 2542 nodeId, 2543 keyframeTracks, 2544 textElementDelayBehaviour, 2545 effects: effects.length > 0 ? effects : void 0 2546 }); 2547 } 2548 function parseTextElementDelayBehaviour(value) { 2549 if (value === null || typeof value !== "object" || Array.isArray(value)) { 2550 throw new Error('animate: "textElementDelayBehaviour" must be an object'); 2551 } 2552 if (typeof value.enabled !== "boolean") { 2553 throw new Error('animate: "textElementDelayBehaviour.enabled" must be a boolean'); 2554 } 2555 const grouping = TextElementGrouping[value.grouping]; 2556 if (!Object.values(TextElementGrouping).includes(grouping)) { 2557 throw new Error('animate: unknown text element grouping "' + value.grouping + '"'); 2558 } 2559 if (typeof value.delayMs !== "number" || !Number.isFinite(value.delayMs) || value.delayMs < 0) { 2560 throw new Error( 2561 'animate: "textElementDelayBehaviour.delayMs" must be a non-negative finite number' 2562 ); 2563 } 2564 const order = TextElementDelayOrder[value.order]; 2565 if (!Object.values(TextElementDelayOrder).includes(order)) { 2566 throw new Error('animate: unknown text element delay order "' + value.order + '"'); 2567 } 2568 const clipContent = value.clipContent === void 0 ? false : value.clipContent; 2569 if (typeof clipContent !== "boolean") { 2570 throw new Error('animate: "textElementDelayBehaviour.clipContent" must be a boolean'); 2571 } 2572 return { 2573 enabled: value.enabled, 2574 grouping, 2575 delayMs: value.delayMs, 2576 order, 2577 clipContent 2578 }; 2579 } 2580 function parseNodeFields(value) { 2581 if (value === null || typeof value !== "object" || Array.isArray(value)) { 2582 throw new Error('animate: "nodeFields" must be an object'); 2583 } 2584 const unsupported = Object.keys(value).find((key) => key !== "textElementDelayBehaviour"); 2585 if (unsupported !== void 0) { 2586 throw new Error('animate: unknown node field "' + unsupported + '"'); 2587 } 2588 return { 2589 textElementDelayBehaviour: value.textElementDelayBehaviour === void 0 ? void 0 : parseTextElementDelayBehaviour(value.textElementDelayBehaviour) 2590 }; 2591 } 2592 2593
2593// share/motion/src/presets/source/new.ts 2594 function preset({ duration, easing, node }) { 2595 return [ 2596 animate(node, { 2597 opacity: tween({ 2598 mode: "scale", 2599 duration, 2600 from: 0, 2601 to: 1, 2602 easing 2603 }) 2604 }) 2605 ]; 2606 } 2607 defineProperties(preset, { 2608 duration: { 2609 label: "Duration", 2610 type: "number", 2611 defaultValue: 0.5, 2612 control: "input", 2613 min: 0.01, 2614 unit: "s" 2615 }, 2616 easing: { 2617 label: "Easing", 2618 type: "easing", 2619 defaultValue: { 2620 easingType: EasingType.OUT_CUBIC 2621 } 2622 } 2623 }); 2624 return __toCommonJS(new_exports); 2625})();`});var f0,d0,p0=nn(()=>{f0=`// Source-of-truth for the OPACITY first-party animation preset. 2626// 2627// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 2628// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 2629// resolved, and emits both strings into \`../generated/opacity.generated.ts\`. 2630// The generated module is what runtime code consumes \u2014 never import this file 2631// directly from production code paths. 2632// 2633// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 2634// only an input to the codegen tool, evaluated inside the QuickJS / iframe 2635// sandbox at runtime. 2636 2637import { animate, defineProperties, tween } from 'figma:motion' 2638 2639import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 2640 2641export default function preset({ 2642 type, 2643 amount, 2644 startFrame, 2645 endFrame, 2646 duration, 2647 easing, 2648 node, 2649}: PresetArgs) { 2650 const safeAmount = typeof amount === 'number' ? amount : 0 2651 const safeStartFrame = typeof startFrame === 'number' ? startFrame : 0 2652 const safeEndFrame = typeof endFrame === 'number' ? endFrame : 100 2653 const definition: PresetTrackDefinitions = {} 2654 let opacityFrom: number 2655 let opacityTo: number 2656 2657 switch (type) { 2658 case 'fadeOut': 2659 opacityFrom = 1 2660 opacityTo = safeAmount / 100 2661 break 2662 case 'custom': 2663 opacityFrom = safeStartFrame / 100 2664 opacityTo = safeEndFrame / 100 2665 break 2666 case 'fadeIn': 2667 default: 2668 opacityFrom = safeAmount / 100 2669 opacityTo = 1 2670 break 2671 } 2672 2673 // The runtime adds \`timelineOffset\` back in when placing keyframes on the parent timeline (\`keyframe_conversion.ts\`). 2674 // Do NOT add \`delay\` to \`timelinePosition\` below \u2014 that would double-count. 2675 definition.opacity = tween({ 2676 mode: 'scale', 2677 timelinePosition: 0, 2678 duration, 2679 from: opacityFrom, 2680 to: opacityTo, 2681 easing, 2682 }) 2683 2684 return [animate(node, definition)] 2685} 2686 2687defineProperties(preset, { 2688 type: { 2689 label: 'motion.preset_flyout.type', 2690 type: 'string', 2691 defaultValue: 'fadeIn', 2692 control: 'select', 2693 options: [ 2694 { value: 'fadeIn', label: 'motion.preset_flyout.opacity.type.fade_in' }, 2695 { value: 'fadeOut', label: 'motion.preset_flyout.opacity.type.fade_out' }, 2696 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 2697 ], 2698 }, 2699 amount: { 2700 label: 'motion.preset_flyout.amount', 2701 type: 'number', 2702 control: 'input', 2703 defaultValue: 0, 2704 unit: '%', 2705 icon: 'opacity', 2706 }, 2707 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 2708 // are redundant \u2014 section dividers are now applied client-side in the preset 2709 // flyout via \`forceShowDividerAboveTransform\` 2710 startFrame: { 2711 label: 'motion.preset_flyout.start', 2712 type: 'number', 2713 control: 'input', 2714 defaultValue: 0, 2715 unit: '%', 2716 showDividerAbove: true, 2717 icon: 'opacity', 2718 }, 2719 endFrame: { 2720 label: 'motion.preset_flyout.end', 2721 type: 'number', 2722 control: 'input', 2723 defaultValue: 100, 2724 unit: '%', 2725 icon: 'opacity', 2726 }, 2727 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 2728 delay: { 2729 label: 'motion.preset_flyout.delay', 2730 type: 'number', 2731 control: 'input', 2732 defaultValue: 0, 2733 unit: 's', 2734 showDividerAbove: true, 2735 icon: 'delay', 2736 }, 2737 duration: { 2738 label: 'motion.preset_flyout.duration', 2739 type: 'number', 2740 control: 'input', 2741 defaultValue: 0.5, 2742 unit: 's', 2743 icon: 'time', 2744 }, 2745 easing: { 2746 label: 'motion.preset_flyout.easing', 2747 type: 'easing', 2748 defaultValue: 'outCubic', 2749 }, 2750}) 2751`,d0=`var __presetBundle = (() => { 2752 var __defProp = Object.defineProperty; 2753 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 2754 var __getOwnPropNames = Object.getOwnPropertyNames; 2755 var __hasOwnProp = Object.prototype.hasOwnProperty; 2756 var __export = (target, all) => { 2757 for (var name in all) 2758 __defProp(target, name, { get: all[name], enumerable: true }); 2759 }; 2760 var __copyProps = (to, from, except, desc) => { 2761 if (from && typeof from === "object" || typeof from === "function") { 2762 for (let key of __getOwnPropNames(from)) 2763 if (!__hasOwnProp.call(to, key) && key !== except) 2764 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 2765 } 2766 return to; 2767 }; 2768 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 2769 2770
2770// share/motion/src/presets/source/opacity.ts 2771 var opacity_exports = {}; 2772 __export(opacity_exports, { 2773 default: () => preset 2774 }); 2775 2776 // figma-motion:figma:motion 2777 function defineProperties(component, spec) { 2778 Object.assign(component, { 2779 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 2780 }); 2781 } 2782 var EasingType = { 2783 IN_CUBIC: 0, 2784 inCubic: 0, 2785 OUT_CUBIC: 1, 2786 outCubic: 1, 2787 INOUT_CUBIC: 2, 2788 inOutCubic: 2, 2789 LINEAR: 3, 2790 linear: 3, 2791 IN_BACK_CUBIC: 4, 2792 inBackCubic: 4, 2793 OUT_BACK_CUBIC: 5, 2794 outBackCubic: 5, 2795 INOUT_BACK_CUBIC: 6, 2796 inOutBackCubic: 6, 2797 CUSTOM_CUBIC: 7, 2798 customCubic: 7, 2799 SPRING: 8, 2800 spring: 8, 2801 GENTLE_SPRING: 9, 2802 gentleSpring: 9, 2803 CUSTOM_SPRING: 10, 2804 customSpring: 10, 2805 SPRING_PRESET_ONE: 11, 2806 springPresetOne: 11, 2807 SPRING_PRESET_TWO: 12, 2808 springPresetTwo: 12, 2809 SPRING_PRESET_THREE: 13, 2810 springPresetThree: 13, 2811 // For backwards compat 2812 bezier: 100, 2813 BEZIER: 100 2814 }; 2815 var InterpolationType = { 2816 HOLD: 0, 2817 hold: 0, 2818 BEZIER: 1, 2819 bezier: 1 2820 }; 2821 var KeyframeOperation = { 2822 SET: 0, 2823 set: 0, 2824 SCALE: 1, 2825 scale: 1, 2826 OFFSET: 2, 2827 offset: 2 2828 }; 2829 var KeyframeBindingTopLevelField = { 2830 MISSING: 0, 2831 PARAMETER_CONSUMPTION_MAP: 1, 2832 EFFECTS: 2, 2833 effects: 2 2834 }; 2835 var TextElementGrouping = { 2836 CHARACTER: 0, 2837 CHARACTER_NO_WHITESPACE: 1, 2838 WORD: 2, 2839 LINE: 3, 2840 PARAGRAPH: 4 2841 }; 2842 var TextElementDelayOrder = { 2843 LEFT_RIGHT: 0, 2844 RIGHT_LEFT: 1, 2845 CENTER_OUT: 2, 2846 RANDOM: 3 2847 }; 2848 var PresetGeneratedEffectType = { 2849 LAYER_BLUR: 0 2850 }; 2851 var ParameterField = { 2852 MISSING: 0, 2853 missing: 0, 2854 CORNER_RADIUS: 1, 2855 cornerRadius: 1, 2856 PARAGRAPH_SPACING: 2, 2857 paragraphSpacing: 2, 2858 PARAGRAPH_INDENT: 3, 2859 paragraphIndent: 3, 2860 STROKE_WEIGHT: 4, 2861 strokeWeight: 4, 2862 STACK_SPACING: 5, 2863 stackSpacing: 5, 2864 STACK_PADDING_LEFT: 6, 2865 stackPaddingLeft: 6, 2866 STACK_PADDING_TOP: 7, 2867 stackPaddingTop: 7, 2868 STACK_PADDING_RIGHT: 8, 2869 stackPaddingRight: 8, 2870 STACK_PADDING_BOTTOM: 9, 2871 stackPaddingBottom: 9, 2872 VISIBLE: 10, 2873 visible: 10, 2874 TEXT_DATA: 11, 2875 textData: 11, 2876 WIDTH: 12, 2877 width: 12, 2878 HEIGHT: 13, 2879 height: 13, 2880 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 2881 rectangleTopLeftCornerRadius: 14, 2882 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 2883 rectangleTopRightCornerRadius: 15, 2884 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 2885 rectangleBottomLeftCornerRadius: 16, 2886 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 2887 rectangleBottomRightCornerRadius: 17, 2888 BORDER_TOP_WEIGHT: 18, 2889 borderTopWeight: 18, 2890 BORDER_BOTTOM_WEIGHT: 19, 2891 borderBottomWeight: 19, 2892 BORDER_LEFT_WEIGHT: 20, 2893 borderLeftWeight: 20, 2894 BORDER_RIGHT_WEIGHT: 21, 2895 borderRightWeight: 21, 2896 VARIANT_PROPERTIES: 22, 2897 variantProperties: 22, 2898 STACK_COUNTER_SPACING: 23, 2899 stackCounterSpacing: 23, 2900 MIN_WIDTH: 24, 2901 minWidth: 24, 2902 MAX_WIDTH: 25, 2903 maxWidth: 25, 2904 MIN_HEIGHT: 26, 2905 minHeight: 26, 2906 MAX_HEIGHT: 27, 2907 maxHeight: 27, 2908 FONT_FAMILY: 28, 2909 fontFamily: 28, 2910 FONT_STYLE: 29, 2911 fontStyle: 29, 2912 FONT_VARIATIONS: 30, 2913 fontVariations: 30, 2914 OPACITY: 31, 2915 opacity: 31, 2916 FONT_SIZE: 32, 2917 fontSize: 32, 2918 LETTER_SPACING: 34, 2919 letterSpacing: 34, 2920 LINE_HEIGHT: 36, 2921 lineHeight: 36, 2922 OVERRIDDEN_SYMBOL_ID: 37, 2923 overriddenSymbolId: 37, 2924 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 2925 cmsSerializedRichTextData: 38, 2926 HYPERLINK: 39, 2927 hyperlink: 39, 2928 SLOT_CONTENT_ID: 40, 2929 slotContentId: 40, 2930 GRID_ROW_GAP: 41, 2931 gridRowGap: 41, 2932 GRID_COLUMN_GAP: 42, 2933 gridColumnGap: 42, 2934 RELATIVE_X_POSITION: 43, 2935 xPosition: 43, 2936 RELATIVE_Y_POSITION: 44, 2937 relativeYPosition: 44, 2938 RELATIVE_ROTATION: 45, 2939 relativeRotation: 45, 2940 MOTION_TRANSLATION_X: 46, 2941 motionTranslationX: 46, 2942 MOTION_TRANSLATION_Y: 47, 2943 motionTranslationY: 47, 2944 MOTION_ROTATION: 48, 2945 motionRotation: 48, 2946 MOTION_SCALE_X: 49, 2947 motionScaleX: 49, 2948 MOTION_SCALE_Y: 50, 2949 motionScaleY: 50, 2950 MOTION_SHEAR: 51, 2951 motionShear: 51, 2952 SCROLL_OFFSET_X: 52, 2953 scrollOffsetX: 52, 2954 SCROLL_OFFSET_Y: 53, 2955 scrollOffsetY: 53, 2956 PATH_TRIM_START: 54, 2957 pathTrimStart: 54, 2958 PATH_TRIM_END: 55, 2959 pathTrimEnd: 55, 2960 DISSOLVE_PROGRESS: 56, 2961 dissolveProgress: 56 2962 }; 2963 var EffectParametrizedField = { 2964 MISSING: 0, 2965 missing: 0, 2966 OFFSET_X: 1, 2967 offsetX: 1, 2968 OFFSET_Y: 2, 2969 offsetY: 2, 2970 RADIUS: 3, 2971 radius: 3, 2972 SPREAD: 4, 2973 spread: 4, 2974 COLOR: 5, 2975 color: 5, 2976 REFRACTION_RADIUS: 6, 2977 refractionRadius: 6, 2978 SPECULAR_ANGLE: 7, 2979 specularAngle: 7, 2980 SPECULAR_INTENSITY: 8, 2981 specularIntensity: 8, 2982 CHROMATIC_ABERRATION: 9, 2983 chromaticAberration: 9, 2984 SPLAY: 10, 2985 splay: 10, 2986 REFRACTION_INTENSITY: 11, 2987 refractionIntensity: 11, 2988 START_RADIUS: 12, 2989 startRadius: 12, 2990 START_OFFSET_X: 13, 2991 startOffsetX: 13, 2992 START_OFFSET_Y: 14, 2993 startOffsetY: 14, 2994 END_OFFSET_X: 15, 2995 endOffsetX: 15, 2996 END_OFFSET_Y: 16, 2997 endOffsetY: 16, 2998 NOISE_SIZE_X: 17, 2999 noiseSizeX: 17, 3000 NOISE_SIZE_Y: 18, 3001 noiseSizeY: 18, 3002 DENSITY: 19, 3003 density: 19, 3004 EFFECT_OPACITY: 20, 3005 effectOpacity: 20, 3006 SECONDARY_COLOR: 21, 3007 secondaryColor: 21 3008 }; 3009 var Keyframe = class { 3010 constructor(data) { 3011 this.timelinePosition = Math.round(data.timelinePosition); 3012 this.easing = data.easing; 3013 this.value = data.value; 3014 } 3015 }; 3016 var KeyframeTrack = class { 3017 constructor(data) { 3018 this.topLevelField = data.topLevelField; 3019 this.parameterField = data.parameterField; 3020 this.index = data.index; 3021 this.effectParametrizedField = data.effectParametrizedField; 3022 this.keyframeOperation = data.keyframeOperation; 3023 this.keyframes = data.keyframes; 3024 this.enabled = !!data.enabled; 3025 } 3026 }; 3027 var AnimationPreset = class { 3028 constructor(data) { 3029 this.nodeId = data.nodeId; 3030 this.keyframeTracks = data.keyframeTracks; 3031 this.textElementDelayBehaviour = data.textElementDelayBehaviour; 3032 this.effects = data.effects; 3033 } 3034 }; 3035 var PARAMETER_FIELD_ALIAS_MAP = { 3036 translateX: ParameterField.MOTION_TRANSLATION_X, 3037 translateY: ParameterField.MOTION_TRANSLATION_Y, 3038 rotate: ParameterField.MOTION_ROTATION, 3039 scaleX: ParameterField.MOTION_SCALE_X, 3040 scaleY: ParameterField.MOTION_SCALE_Y, 3041 shear: ParameterField.MOTION_SHEAR 3042 }; 3043 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 3044 var MODE_TO_OPERATION = { 3045 set: KeyframeOperation.SET, 3046 SET: KeyframeOperation.SET, 3047 offset: KeyframeOperation.OFFSET, 3048 OFFSET: KeyframeOperation.OFFSET, 3049 scale: KeyframeOperation.SCALE, 3050 SCALE: KeyframeOperation.SCALE 3051 }; 3052 var TEXT_ELEMENTS_TARGET = /* @__PURE__ */ Symbol("figma.motion.textElements"); 3053 var LAYER_BLUR_EFFECT = /* @__PURE__ */ Symbol("figma.motion.layerBlur"); 3054 function normalizeEasing(easing) { 3055 if (easing === void 0) return void 0; 3056 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 3057 if (typeof easing === "string") { 3058 const easingType = EasingType[easing]; 3059 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 3060 return { easingType }; 3061 } 3062 return easing; 3063 } 3064 function compileKeyframe({ timelinePosition, value, easing }) { 3065 return new Keyframe({ 3066 timelinePosition: timelinePosition * 1e6, 3067 easing: normalizeEasing(easing), 3068 value 3069 }); 3070 } 3071 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 3072 if (duration < 0) throw new Error("tween: duration must be non-negative"); 3073 return { 3074 mode, 3075 enabled, 3076 keyframes: [ 3077 { timelinePosition, value: from, easing }, 3078 { timelinePosition: timelinePosition + duration, value: to, easing } 3079 ] 3080 }; 3081 } 3082 function animate(target, definition) { 3083 const isTextElementsTarget = target?.[TEXT_ELEMENTS_TARGET] === true; 3084 const node = isTextElementsTarget ? target.node : target; 3085 const nodeId = typeof node === "string" ? node : node.id;
3086 const keyframeTracks = []; 3087 const effects = []; 3088 let textElementDelayBehaviour = isTextElementsTarget ? target.textElementDelayBehaviour : void 0; 3089 for (const [key, trackDef] of Object.entries(definition)) { 3090 if (key === "nodeFields") { 3091 textElementDelayBehaviour = parseNodeFields(trackDef).textElementDelayBehaviour; 3092 continue; 3093 } 3094 if (key === "effects") { 3095 if (!Array.isArray(trackDef)) { 3096 throw new Error('animate: "effects" must be an array'); 3097 } 3098 if (trackDef.length > 1) { 3099 throw new Error("animate: at most one layer blur effect per preset is supported"); 3100 } 3101 for (const effect of trackDef) { 3102 if (effect?.[LAYER_BLUR_EFFECT] !== true) { 3103 throw new Error("animate: unsupported effect descriptor"); 3104 } 3105 const effectIndex = effects.length; 3106 const radiusTrack = effect.radius; 3107 const operation2 = MODE_TO_OPERATION[radiusTrack?.mode]; 3108 if (operation2 === void 0) { 3109 throw new Error("animate: layerBlur radius must be a track definition"); 3110 } 3111 const enabled = radiusTrack.enabled !== false; 3112 const seen2 = /* @__PURE__ */ new Map(); 3113 for (const kf of radiusTrack.keyframes) seen2.set(kf.timelinePosition, kf); 3114 const sorted2 = [...seen2.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 3115 effects.push({ 3116 type: PresetGeneratedEffectType.LAYER_BLUR, 3117 radius: enabled && operation2 === KeyframeOperation.SCALE ? 1 : 0 3118 }); 3119 keyframeTracks.push(new KeyframeTrack({ 3120 topLevelField: KeyframeBindingTopLevelField.EFFECTS, 3121 index: effectIndex, 3122 effectParametrizedField: EffectParametrizedField.RADIUS, 3123 keyframeOperation: operation2, 3124 keyframes: sorted2.map(compileKeyframe), 3125 enabled 3126 })); 3127 } 3128 continue; 3129 } 3130 if (!KEYFRAMEABLE_FIELDS.has(key)) { 3131 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 3132 } 3133 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 3134 const operation = MODE_TO_OPERATION[trackDef.mode]; 3135 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 3136 const seen = /* @__PURE__ */ new Map(); 3137 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 3138 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 3139 keyframeTracks.push(new KeyframeTrack({ 3140 parameterField, 3141 keyframeOperation: operation, 3142 keyframes: sorted.map(compileKeyframe), 3143 enabled: trackDef.enabled !== false 3144 })); 3145 } 3146 return new AnimationPreset({ 3147 nodeId, 3148 keyframeTracks, 3149 textElementDelayBehaviour, 3150 effects: effects.length > 0 ? effects : void 0 3151 }); 3152 } 3153 function parseTextElementDelayBehaviour(value) { 3154 if (value === null || typeof value !== "object" || Array.isArray(value)) { 3155 throw new Error('animate: "textElementDelayBehaviour" must be an object'); 3156 } 3157 if (typeof value.enabled !== "boolean") { 3158 throw new Error('animate: "textElementDelayBehaviour.enabled" must be a boolean'); 3159 } 3160 const grouping = TextElementGrouping[value.grouping]; 3161 if (!Object.values(TextElementGrouping).includes(grouping)) { 3162 throw new Error('animate: unknown text element grouping "' + value.grouping + '"'); 3163 } 3164 if (typeof value.delayMs !== "number" || !Number.isFinite(value.delayMs) || value.delayMs < 0) { 3165 throw new Error( 3166 'animate: "textElementDelayBehaviour.delayMs" must be a non-negative finite number' 3167 ); 3168 } 3169 const order = TextElementDelayOrder[value.order]; 3170 if (!Object.values(TextElementDelayOrder).includes(order)) { 3171 throw new Error('animate: unknown text element delay order "' + value.order + '"'); 3172 } 3173 const clipContent = value.clipContent === void 0 ? false : value.clipContent; 3174 if (typeof clipContent !== "boolean") { 3175 throw new Error('animate: "textElementDelayBehaviour.clipContent" must be a boolean'); 3176 } 3177 return { 3178 enabled: value.enabled, 3179 grouping, 3180 delayMs: value.delayMs, 3181 order, 3182 clipContent 3183 }; 3184 } 3185 function parseNodeFields(value) { 3186 if (value === null || typeof value !== "object" || Array.isArray(value)) { 3187 throw new Error('animate: "nodeFields" must be an object'); 3188 } 3189 const unsupported = Object.keys(value).find((key) => key !== "textElementDelayBehaviour"); 3190 if (unsupported !== void 0) { 3191 throw new Error('animate: unknown node field "' + unsupported + '"'); 3192 } 3193 return { 3194 textElementDelayBehaviour: value.textElementDelayBehaviour === void 0 ? void 0 : parseTextElementDelayBehaviour(value.textElementDelayBehaviour) 3195 }; 3196 } 3197 3198
3198// share/motion/src/presets/source/opacity.ts 3199 function preset({ 3200 type, 3201 amount, 3202 startFrame, 3203 endFrame, 3204 duration, 3205 easing, 3206 node 3207 }) { 3208 const safeAmount = typeof amount === "number" ? amount : 0; 3209 const safeStartFrame = typeof startFrame === "number" ? startFrame : 0; 3210 const safeEndFrame = typeof endFrame === "number" ? endFrame : 100; 3211 const definition = {}; 3212 let opacityFrom; 3213 let opacityTo; 3214 switch (type) { 3215 case "fadeOut": 3216 opacityFrom = 1; 3217 opacityTo = safeAmount / 100; 3218 break; 3219 case "custom": 3220 opacityFrom = safeStartFrame / 100; 3221 opacityTo = safeEndFrame / 100; 3222 break; 3223 case "fadeIn": 3224 default: 3225 opacityFrom = safeAmount / 100; 3226 opacityTo = 1; 3227 break; 3228 } 3229 definition.opacity = tween({ 3230 mode: "scale", 3231 timelinePosition: 0, 3232 duration, 3233 from: opacityFrom, 3234 to: opacityTo, 3235 easing 3236 }); 3237 return [animate(node, definition)]; 3238 } 3239 defineProperties(preset, { 3240 type: { 3241 label: "motion.preset_flyout.type", 3242 type: "string", 3243 defaultValue: "fadeIn", 3244 control: "select", 3245 options: [ 3246 { value: "fadeIn", label: "motion.preset_flyout.opacity.type.fade_in" }, 3247 { value: "fadeOut", label: "motion.preset_flyout.opacity.type.fade_out" }, 3248 { value: "custom", label: "motion.preset_flyout.type.custom" } 3249 ] 3250 }, 3251 amount: { 3252 label: "motion.preset_flyout.amount", 3253 type: "number", 3254 control: "input", 3255 defaultValue: 0, 3256 unit: "%", 3257 icon: "opacity" 3258 }, 3259 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 3260 // are redundant \u2014 section dividers are now applied client-side in the preset 3261 // flyout via \`forceShowDividerAboveTransform\` 3262 startFrame: { 3263 label: "motion.preset_flyout.start", 3264 type: "number", 3265 control: "input", 3266 defaultValue: 0, 3267 unit: "%", 3268 showDividerAbove: true, 3269 icon: "opacity" 3270 }, 3271 endFrame: { 3272 label: "motion.preset_flyout.end", 3273 type: "number", 3274 control: "input", 3275 defaultValue: 100, 3276 unit: "%", 3277 icon: "opacity" 3278 }, 3279 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 3280 delay: { 3281 label: "motion.preset_flyout.delay", 3282 type: "number", 3283 control: "input", 3284 defaultValue: 0, 3285 unit: "s", 3286 showDividerAbove: true, 3287 icon: "delay" 3288 }, 3289 duration: { 3290 label: "motion.preset_flyout.duration", 3291 type: "number", 3292 control: "input", 3293 defaultValue: 0.5, 3294 unit: "s", 3295 icon: "time" 3296 }, 3297 easing: { 3298 label: "motion.preset_flyout.easing", 3299 type: "easing", 3300 defaultValue: "outCubic" 3301 } 3302 }); 3303 return __toCommonJS(opacity_exports); 3304})();`});var m0,E0,_0=nn(()=>{m0=`// Source-of-truth for the PATH first-party animation preset. 3305// 3306// Unifies Path Draw, Path Travel, and a Custom mode that drives \`pathTrimStart\` 3307// and \`pathTrimEnd\` directly. The build-time preset-bundle codegen (see 3308// \`../scripts/generate_preset_bundles.ts\`) reads this file's raw text, esbuilds 3309// it into an IIFE with \`figma:motion\` resolved, and emits both strings into 3310// \`../generated/path.generated.ts\`. The generated module is what runtime code 3311// consumes \u2014 never import this file directly from production code paths. 3312// 3313// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 3314// only an input to the codegen tool, evaluated inside the QuickJS / iframe 3315// sandbox at runtime. 3316 3317import { animate, defineProperties, EasingType, tween } from 'figma:motion' 3318 3319import type { PresetArgs } from './preset_types' 3320 3321const TYPE_DRAW = 'draw' 3322const TYPE_ERASE = 'erase' 3323const TYPE_TRAVEL = 'travel' 3324 3325const DIRECTION_FORWARD = 'forward' 3326 3327const AXIS_PATH_TRIM_START = 'pathTrimStart' 3328const AXIS_PATH_TRIM_END = 'pathTrimEnd' 3329const AXIS_COMBINED = 'combined' 3330 3331// Convert the percent values surfaced in the panel (0..100) to the 0..1 3332// fractional range that \`pathTrimStart\` / \`pathTrimEnd\` expect. 3333function percentToDecimal(value: number): number { 3334 return value / 100 3335} 3336 3337export default function preset({ 3338 type, 3339 direction, 3340 segment, 3341 axis, 3342 pathStartStartFrame, 3343 pathStartEndWithoutDivider, 3344 pathEndStartWithDivider, 3345 pathEndEndFrame, 3346 pathEndStartWithoutDivider, 3347 pathStartEndWithDivider, 3348 duration, 3349 easing, 3350 target, 3351}: PresetArgs) { 3352 const isForward = direction === DIRECTION_FORWARD 3353 3354 // Always materialize BOTH the pathTrimStart and pathTrimEnd tracks so their KEYFRAME_TRACK 3355 // GUIDs survive \`type\` / \`axis\` toggles. This works arounds a DS components/instances bug related to the conditional rendering of keyframe tracks. 3356 let startFrom: number 3357 let startTo: number 3358 let endFrom: number 3359 let endTo: number 3360 let startEnabled = true 3361 let endEnabled = true 3362 3363 if (type === TYPE_DRAW || type === TYPE_ERASE) { 3364 const isDraw = type === TYPE_DRAW 3365 if (isDraw && isForward) { 3366 startFrom = 0 3367 startTo = 0 3368 endFrom = 0 3369 endTo = 1 3370 } else if (isDraw && !isForward) { 3371 startFrom = 1 3372 startTo = 0 3373 endFrom = 1 3374 endTo = 1 3375 } else if (!isDraw && isForward) { 3376 startFrom = 0 3377 startTo = 1 3378 endFrom = 1 3379 endTo = 1 3380 } else { 3381 startFrom = 0 3382 startTo = 0 3383 endFrom = 1 3384 endTo = 0 3385 } 3386 } else if (type === TYPE_TRAVEL) { 3387 // A fixed-length segment travels along the path and comes to rest at the end. The trim 3388 // values stay within [0, 1] (the segment never runs past either end) so the path doesn't 3389 // wrap / loop the segment back around to the start. 3390 // forward: segment moves [0, seg] \u2192 [1 - seg, 1] 3391 // reverse: segment moves [1 - seg, 1] \u2192 [0, seg] 3392 const segmentFraction = percentToDecimal(segment) 3393 startFrom = isForward ? 0 : 1 - segmentFraction 3394 startTo = isForward ? 1 - segmentFraction : 0 3395 endFrom = isForward ? segmentFraction : 1 3396 endTo = isForward ? 1 : segmentFraction 3397 } else { 3398 // type === 'custom' \u2014 \`axis\` toggles which trim(s) are enabled; all custom modes share 3399 // \`duration\` / \`easing\`. Combined groups both Starts then both Ends in the panel, so it 3400 // reads the combined-only variants for the inner pair (trimStart's End, trimEnd's Start). 3401 startEnabled = axis === AXIS_PATH_TRIM_START || axis === AXIS_COMBINED 3402 endEnabled = axis === AXIS_PATH_TRIM_END || axis === AXIS_COMBINED 3403 if (axis === AXIS_COMBINED) { 3404 const sFrom = percentToDecimal(pathStartStartFrame) 3405 const sTo = percentToDecimal(pathStartEndWithDivider) 3406 const eFrom = percentToDecimal(pathEndStartWithoutDivider) 3407 const eTo = percentToDecimal(pathEndEndFrame) 3408 startFrom = isForward ? sFrom : sTo 3409 startTo = isForward ? sTo : sFrom 3410 endFrom = isForward ? eFrom : eTo 3411 endTo = isForward ? eTo : eFrom 3412 } else { 3413 const sFrom = percentToDecimal(pathStartStartFrame) 3414 const sTo = percentToDecimal(pathStartEndWithoutDivider) 3415 const eFrom = percentToDecimal(pathEndStartWithDivider) 3416 const eTo = percentToDecimal(pathEndEndFrame) 3417 startFrom = isForward ? sFrom : sTo 3418 startTo = isForward ? sTo : sFrom 3419 endFrom = isForward ? eFrom : eTo 3420 endTo = isForward ? eTo : eFrom 3421 } 3422 } 3423 3424 return [ 3425 animate(target, { 3426 pathTrimStart: tween({
3427 mode: 'set', 3428 duration, 3429 from: startFrom, 3430 to: startTo, 3431 easing, 3432 enabled: startEnabled, 3433 }), 3434 pathTrimEnd: tween({ 3435 mode: 'set', 3436 duration, 3437 from: endFrom, 3438 to: endTo, 3439 easing, 3440 enabled: endEnabled, 3441 }), 3442 }), 3443 ] 3444} 3445 3446// KEEP_IN_SYNC(share/motion/src/presets/path_meta.ts) 3447defineProperties(preset, { 3448 type: { 3449 label: 'motion.preset_flyout.type', 3450 type: 'string', 3451 defaultValue: 'draw', 3452 control: 'select', 3453 options: [ 3454 { value: 'draw', label: 'motion.preset_flyout.path.type.draw' }, 3455 { value: 'erase', label: 'motion.preset_flyout.path.type.erase' }, 3456 { value: 'travel', label: 'motion.preset_flyout.path.type.travel' }, 3457 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 3458 ], 3459 }, 3460 direction: { 3461 label: 'motion.preset_flyout.direction', 3462 type: 'string', 3463 defaultValue: 'forward', 3464 control: 'select', 3465 options: [ 3466 { value: 'forward', label: 'motion.preset_flyout.path.direction.forward' }, 3467 { value: 'reverse', label: 'motion.preset_flyout.path.direction.reverse' }, 3468 ], 3469 }, 3470 axis: { 3471 label: 'motion.preset_flyout.path.trim', 3472 type: 'string', 3473 defaultValue: 'pathTrimStart', 3474 control: 'select', 3475 options: [ 3476 { value: 'pathTrimStart', label: 'motion.preset_flyout.path.axis.path_trim_start' }, 3477 { value: 'pathTrimEnd', label: 'motion.preset_flyout.path.axis.path_trim_end' }, 3478 { value: 'combined', label: 'motion.preset_flyout.path.axis.combined' }, 3479 ], 3480 }, 3481 segment: { 3482 label: 'motion.preset_flyout.path.segment', 3483 type: 'number', 3484 defaultValue: 10, 3485 control: 'input', 3486 min: 0, 3487 max: 100, 3488 unit: '%', 3489 }, 3490 // Frame order drives the panel layout. Single-axis (pathTrimStart / pathTrimEnd) groups 3491 // its own Start + End. Combined groups both Starts then both Ends, so its inner pair uses 3492 // dedicated *Combined variants laid out between the single-axis Start/End rows and only 3493 // shown for Combined. 3494 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 3495 // are redundant \u2014 section dividers are now applied client-side in the preset 3496 // flyout via \`forceShowDividerAboveTransform\` 3497 pathStartStartFrame: { 3498 label: 'motion.preset_flyout.start_frame', 3499 type: 'number', 3500 defaultValue: 100, 3501 control: 'input', 3502 unit: '%', 3503 showDividerAbove: true, 3504 icon: 'path_trim_start', 3505 }, 3506 pathStartEndWithoutDivider: { 3507 label: 'motion.preset_flyout.end_frame', 3508 type: 'number', 3509 defaultValue: 0, 3510 control: 'input', 3511 unit: '%', 3512 icon: 'path_trim_start', 3513 }, 3514 // Combined-only: trimEnd's Start (2nd Start, grouped under the Starts divider) and 3515 // trimStart's End (1st End, opens the Ends group with its own divider). 3516 pathEndStartWithoutDivider: { 3517 label: 'motion.preset_flyout.start_frame', 3518 type: 'number', 3519 defaultValue: 20, 3520 control: 'input', 3521 unit: '%', 3522 icon: 'path_trim_end', 3523 }, 3524 pathStartEndWithDivider: { 3525 label: 'motion.preset_flyout.end_frame', 3526 type: 'number', 3527 defaultValue: 80, 3528 control: 'input', 3529 unit: '%', 3530 showDividerAbove: true, 3531 icon: 'path_trim_start', 3532 }, 3533 pathEndStartWithDivider: { 3534 label: 'motion.preset_flyout.start_frame', 3535 type: 'number', 3536 defaultValue: 0, 3537 control: 'input', 3538 unit: '%', 3539 showDividerAbove: true, 3540 icon: 'path_trim_end', 3541 }, 3542 pathEndEndFrame: { 3543 label: 'motion.preset_flyout.end_frame', 3544 type: 'number', 3545 defaultValue: 100, 3546 control: 'input', 3547 unit: '%', 3548 icon: 'path_trim_end', 3549 }, 3550 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 3551 delay: { 3552 label: 'motion.preset_flyout.delay', 3553 type: 'number', 3554 defaultValue: 0, 3555 control: 'input', 3556 unit: 's', 3557 showDividerAbove: true, 3558 icon: 'delay', 3559 }, 3560 duration: { 3561 label: 'motion.preset_flyout.duration', 3562 type: 'number', 3563 defaultValue: 0.5, 3564 control: 'input', 3565 min: 0.01, 3566 unit: 's', 3567 icon: 'time', 3568 }, 3569 easing: { 3570 label: 'motion.preset_flyout.easing', 3571 type: 'easing', 3572 defaultValue: { easingType: EasingType.OUT_CUBIC }, 3573 }, 3574}) 3575`,E0=`var __presetBundle = (() => { 3576 var __defProp = Object.defineProperty; 3577 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 3578 var __getOwnPropNames = Object.getOwnPropertyNames; 3579 var __hasOwnProp = Object.prototype.hasOwnProperty; 3580 var __export = (target, all) => { 3581 for (var name in all) 3582 __defProp(target, name, { get: all[name], enumerable: true }); 3583 }; 3584 var __copyProps = (to, from, except, desc) => { 3585 if (from && typeof from === "object" || typeof from === "function") { 3586 for (let key of __getOwnPropNames(from)) 3587 if (!__hasOwnProp.call(to, key) && key !== except) 3588 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 3589 } 3590 return to; 3591 }; 3592 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 3593 3594
3594// share/motion/src/presets/source/path.ts 3595 var path_exports = {}; 3596 __export(path_exports, { 3597 default: () => preset 3598 }); 3599 3600 // figma-motion:figma:motion 3601 function defineProperties(component, spec) { 3602 Object.assign(component, { 3603 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 3604 }); 3605 } 3606 var EasingType = { 3607 IN_CUBIC: 0, 3608 inCubic: 0, 3609 OUT_CUBIC: 1, 3610 outCubic: 1, 3611 INOUT_CUBIC: 2, 3612 inOutCubic: 2, 3613 LINEAR: 3, 3614 linear: 3, 3615 IN_BACK_CUBIC: 4, 3616 inBackCubic: 4, 3617 OUT_BACK_CUBIC: 5, 3618 outBackCubic: 5, 3619 INOUT_BACK_CUBIC: 6, 3620 inOutBackCubic: 6, 3621 CUSTOM_CUBIC: 7, 3622 customCubic: 7, 3623 SPRING: 8, 3624 spring: 8, 3625 GENTLE_SPRING: 9, 3626 gentleSpring: 9, 3627 CUSTOM_SPRING: 10, 3628 customSpring: 10, 3629 SPRING_PRESET_ONE: 11, 3630 springPresetOne: 11, 3631 SPRING_PRESET_TWO: 12, 3632 springPresetTwo: 12, 3633 SPRING_PRESET_THREE: 13, 3634 springPresetThree: 13, 3635 // For backwards compat 3636 bezier: 100, 3637 BEZIER: 100 3638 }; 3639 var InterpolationType = { 3640 HOLD: 0, 3641 hold: 0, 3642 BEZIER: 1, 3643 bezier: 1 3644 }; 3645 var KeyframeOperation = { 3646 SET: 0, 3647 set: 0, 3648 SCALE: 1, 3649 scale: 1, 3650 OFFSET: 2, 3651 offset: 2 3652 }; 3653 var KeyframeBindingTopLevelField = { 3654 MISSING: 0, 3655 PARAMETER_CONSUMPTION_MAP: 1, 3656 EFFECTS: 2, 3657 effects: 2 3658 }; 3659 var TextElementGrouping = { 3660 CHARACTER: 0, 3661 CHARACTER_NO_WHITESPACE: 1, 3662 WORD: 2, 3663 LINE: 3, 3664 PARAGRAPH: 4 3665 }; 3666 var TextElementDelayOrder = { 3667 LEFT_RIGHT: 0, 3668 RIGHT_LEFT: 1, 3669 CENTER_OUT: 2, 3670 RANDOM: 3 3671 }; 3672 var PresetGeneratedEffectType = { 3673 LAYER_BLUR: 0 3674 }; 3675 var ParameterField = { 3676 MISSING: 0, 3677 missing: 0, 3678 CORNER_RADIUS: 1, 3679 cornerRadius: 1, 3680 PARAGRAPH_SPACING: 2, 3681 paragraphSpacing: 2, 3682 PARAGRAPH_INDENT: 3, 3683 paragraphIndent: 3, 3684 STROKE_WEIGHT: 4, 3685 strokeWeight: 4, 3686 STACK_SPACING: 5, 3687 stackSpacing: 5, 3688 STACK_PADDING_LEFT: 6, 3689 stackPaddingLeft: 6, 3690 STACK_PADDING_TOP: 7, 3691 stackPaddingTop: 7, 3692 STACK_PADDING_RIGHT: 8, 3693 stackPaddingRight: 8, 3694 STACK_PADDING_BOTTOM: 9, 3695 stackPaddingBottom: 9, 3696 VISIBLE: 10, 3697 visible: 10, 3698 TEXT_DATA: 11, 3699 textData: 11, 3700 WIDTH: 12, 3701 width: 12, 3702 HEIGHT: 13, 3703 height: 13, 3704 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 3705 rectangleTopLeftCornerRadius: 14, 3706 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 3707 rectangleTopRightCornerRadius: 15, 3708 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 3709 rectangleBottomLeftCornerRadius: 16, 3710 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 3711 rectangleBottomRightCornerRadius: 17, 3712 BORDER_TOP_WEIGHT: 18, 3713 borderTopWeight: 18, 3714 BORDER_BOTTOM_WEIGHT: 19, 3715 borderBottomWeight: 19, 3716 BORDER_LEFT_WEIGHT: 20, 3717 borderLeftWeight: 20, 3718 BORDER_RIGHT_WEIGHT: 21, 3719 borderRightWeight: 21, 3720 VARIANT_PROPERTIES: 22, 3721 variantProperties: 22, 3722 STACK_COUNTER_SPACING: 23, 3723 stackCounterSpacing: 23, 3724 MIN_WIDTH: 24, 3725 minWidth: 24, 3726 MAX_WIDTH: 25, 3727 maxWidth: 25, 3728 MIN_HEIGHT: 26, 3729 minHeight: 26, 3730 MAX_HEIGHT: 27, 3731 maxHeight: 27, 3732 FONT_FAMILY: 28, 3733 fontFamily: 28, 3734 FONT_STYLE: 29, 3735 fontStyle: 29, 3736 FONT_VARIATIONS: 30, 3737 fontVariations: 30, 3738 OPACITY: 31, 3739 opacity: 31, 3740 FONT_SIZE: 32, 3741 fontSize: 32, 3742 LETTER_SPACING: 34, 3743 letterSpacing: 34, 3744 LINE_HEIGHT: 36, 3745 lineHeight: 36, 3746 OVERRIDDEN_SYMBOL_ID: 37, 3747 overriddenSymbolId: 37, 3748 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 3749 cmsSerializedRichTextData: 38, 3750 HYPERLINK: 39, 3751 hyperlink: 39, 3752 SLOT_CONTENT_ID: 40, 3753 slotContentId: 40, 3754 GRID_ROW_GAP: 41, 3755 gridRowGap: 41, 3756 GRID_COLUMN_GAP: 42, 3757 gridColumnGap: 42, 3758 RELATIVE_X_POSITION: 43, 3759 xPosition: 43, 3760 RELATIVE_Y_POSITION: 44, 3761 relativeYPosition: 44, 3762 RELATIVE_ROTATION: 45, 3763 relativeRotation: 45, 3764 MOTION_TRANSLATION_X: 46, 3765 motionTranslationX: 46, 3766 MOTION_TRANSLATION_Y: 47, 3767 motionTranslationY: 47, 3768 MOTION_ROTATION: 48, 3769 motionRotation: 48, 3770 MOTION_SCALE_X: 49, 3771 motionScaleX: 49, 3772 MOTION_SCALE_Y: 50, 3773 motionScaleY: 50, 3774 MOTION_SHEAR: 51, 3775 motionShear: 51, 3776 SCROLL_OFFSET_X: 52, 3777 scrollOffsetX: 52, 3778 SCROLL_OFFSET_Y: 53, 3779 scrollOffsetY: 53, 3780 PATH_TRIM_START: 54, 3781 pathTrimStart: 54, 3782 PATH_TRIM_END: 55, 3783 pathTrimEnd: 55, 3784 DISSOLVE_PROGRESS: 56, 3785 dissolveProgress: 56 3786 }; 3787 var EffectParametrizedField = { 3788 MISSING: 0, 3789 missing: 0, 3790 OFFSET_X: 1, 3791 offsetX: 1, 3792 OFFSET_Y: 2, 3793 offsetY: 2, 3794 RADIUS: 3, 3795 radius: 3, 3796 SPREAD: 4, 3797 spread: 4, 3798 COLOR: 5, 3799 color: 5, 3800 REFRACTION_RADIUS: 6, 3801 refractionRadius: 6, 3802 SPECULAR_ANGLE: 7, 3803 specularAngle: 7, 3804 SPECULAR_INTENSITY: 8, 3805 specularIntensity: 8, 3806 CHROMATIC_ABERRATION: 9, 3807 chromaticAberration: 9, 3808 SPLAY: 10, 3809 splay: 10, 3810 REFRACTION_INTENSITY: 11, 3811 refractionIntensity: 11, 3812 START_RADIUS: 12, 3813 startRadius: 12, 3814 START_OFFSET_X: 13, 3815 startOffsetX: 13, 3816 START_OFFSET_Y: 14, 3817 startOffsetY: 14, 3818 END_OFFSET_X: 15, 3819 endOffsetX: 15, 3820 END_OFFSET_Y: 16, 3821 endOffsetY: 16, 3822 NOISE_SIZE_X: 17, 3823 noiseSizeX: 17, 3824 NOISE_SIZE_Y: 18, 3825 noiseSizeY: 18, 3826 DENSITY: 19, 3827 density: 19, 3828 EFFECT_OPACITY: 20, 3829 effectOpacity: 20, 3830 SECONDARY_COLOR: 21, 3831 secondaryColor: 21 3832 }; 3833 var Keyframe = class { 3834 constructor(data) { 3835 this.timelinePosition = Math.round(data.timelinePosition); 3836 this.easing = data.easing; 3837 this.value = data.value; 3838 } 3839 }; 3840 var KeyframeTrack = class { 3841 constructor(data) { 3842 this.topLevelField = data.topLevelField; 3843 this.parameterField = data.parameterField; 3844 this.index = data.index; 3845 this.effectParametrizedField = data.effectParametrizedField; 3846 this.keyframeOperation = data.keyframeOperation; 3847 this.keyframes = data.keyframes; 3848 this.enabled = !!data.enabled; 3849 } 3850 }; 3851 var AnimationPreset = class { 3852 constructor(data) { 3853 this.nodeId = data.nodeId; 3854 this.keyframeTracks = data.keyframeTracks; 3855 this.textElementDelayBehaviour = data.textElementDelayBehaviour; 3856 this.effects = data.effects; 3857 } 3858 }; 3859 var PARAMETER_FIELD_ALIAS_MAP = { 3860 translateX: ParameterField.MOTION_TRANSLATION_X, 3861 translateY: ParameterField.MOTION_TRANSLATION_Y, 3862 rotate: ParameterField.MOTION_ROTATION, 3863 scaleX: ParameterField.MOTION_SCALE_X, 3864 scaleY: ParameterField.MOTION_SCALE_Y, 3865 shear: ParameterField.MOTION_SHEAR 3866 }; 3867 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 3868 var MODE_TO_OPERATION = { 3869 set: KeyframeOperation.SET, 3870 SET: KeyframeOperation.SET, 3871 offset: KeyframeOperation.OFFSET, 3872 OFFSET: KeyframeOperation.OFFSET, 3873 scale: KeyframeOperation.SCALE, 3874 SCALE: KeyframeOperation.SCALE 3875 }; 3876 var TEXT_ELEMENTS_TARGET = /* @__PURE__ */ Symbol("figma.motion.textElements"); 3877 var LAYER_BLUR_EFFECT = /* @__PURE__ */ Symbol("figma.motion.layerBlur"); 3878 function normalizeEasing(easing) { 3879 if (easing === void 0) return void 0; 3880 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 3881 if (typeof easing === "string") { 3882 const easingType = EasingType[easing]; 3883 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 3884 return { easingType }; 3885 } 3886 return easing; 3887 } 3888 function compileKeyframe({ timelinePosition, value, easing }) { 3889 return new Keyframe({ 3890 timelinePosition: timelinePosition * 1e6, 3891 easing: normalizeEasing(easing), 3892 value 3893 }); 3894 } 3895 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 3896 if (duration < 0) throw new Error("tween: duration must be non-negative"); 3897 return { 3898 mode, 3899 enabled, 3900 keyframes: [ 3901 { timelinePosition, value: from, easing }, 3902 { timelinePosition: timelinePosition + duration, value: to, easing } 3903 ] 3904 }; 3905 } 3906 function animate(target, definition) { 3907 const isTextElementsTarget = target?.[TEXT_ELEMENTS_TARGET] === true; 3908 const node = isTextElementsTarget ? target.node : target; 3909 const nodeId = typeof node === "string" ? node : node.id;
3910 const keyframeTracks = []; 3911 const effects = []; 3912 let textElementDelayBehaviour = isTextElementsTarget ? target.textElementDelayBehaviour : void 0; 3913 for (const [key, trackDef] of Object.entries(definition)) { 3914 if (key === "nodeFields") { 3915 textElementDelayBehaviour = parseNodeFields(trackDef).textElementDelayBehaviour; 3916 continue; 3917 } 3918 if (key === "effects") { 3919 if (!Array.isArray(trackDef)) { 3920 throw new Error('animate: "effects" must be an array'); 3921 } 3922 if (trackDef.length > 1) { 3923 throw new Error("animate: at most one layer blur effect per preset is supported"); 3924 } 3925 for (const effect of trackDef) { 3926 if (effect?.[LAYER_BLUR_EFFECT] !== true) { 3927 throw new Error("animate: unsupported effect descriptor"); 3928 } 3929 const effectIndex = effects.length; 3930 const radiusTrack = effect.radius; 3931 const operation2 = MODE_TO_OPERATION[radiusTrack?.mode]; 3932 if (operation2 === void 0) { 3933 throw new Error("animate: layerBlur radius must be a track definition"); 3934 } 3935 const enabled = radiusTrack.enabled !== false; 3936 const seen2 = /* @__PURE__ */ new Map(); 3937 for (const kf of radiusTrack.keyframes) seen2.set(kf.timelinePosition, kf); 3938 const sorted2 = [...seen2.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 3939 effects.push({ 3940 type: PresetGeneratedEffectType.LAYER_BLUR, 3941 radius: enabled && operation2 === KeyframeOperation.SCALE ? 1 : 0 3942 }); 3943 keyframeTracks.push(new KeyframeTrack({ 3944 topLevelField: KeyframeBindingTopLevelField.EFFECTS, 3945 index: effectIndex, 3946 effectParametrizedField: EffectParametrizedField.RADIUS, 3947 keyframeOperation: operation2, 3948 keyframes: sorted2.map(compileKeyframe), 3949 enabled 3950 })); 3951 } 3952 continue; 3953 } 3954 if (!KEYFRAMEABLE_FIELDS.has(key)) { 3955 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 3956 } 3957 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 3958 const operation = MODE_TO_OPERATION[trackDef.mode]; 3959 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 3960 const seen = /* @__PURE__ */ new Map(); 3961 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 3962 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 3963 keyframeTracks.push(new KeyframeTrack({ 3964 parameterField, 3965 keyframeOperation: operation, 3966 keyframes: sorted.map(compileKeyframe), 3967 enabled: trackDef.enabled !== false 3968 })); 3969 } 3970 return new AnimationPreset({ 3971 nodeId, 3972 keyframeTracks, 3973 textElementDelayBehaviour, 3974 effects: effects.length > 0 ? effects : void 0 3975 }); 3976 } 3977 function parseTextElementDelayBehaviour(value) { 3978 if (value === null || typeof value !== "object" || Array.isArray(value)) { 3979 throw new Error('animate: "textElementDelayBehaviour" must be an object'); 3980 } 3981 if (typeof value.enabled !== "boolean") { 3982 throw new Error('animate: "textElementDelayBehaviour.enabled" must be a boolean'); 3983 } 3984 const grouping = TextElementGrouping[value.grouping]; 3985 if (!Object.values(TextElementGrouping).includes(grouping)) { 3986 throw new Error('animate: unknown text element grouping "' + value.grouping + '"'); 3987 } 3988 if (typeof value.delayMs !== "number" || !Number.isFinite(value.delayMs) || value.delayMs < 0) { 3989 throw new Error( 3990 'animate: "textElementDelayBehaviour.delayMs" must be a non-negative finite number' 3991 ); 3992 } 3993 const order = TextElementDelayOrder[value.order]; 3994 if (!Object.values(TextElementDelayOrder).includes(order)) { 3995 throw new Error('animate: unknown text element delay order "' + value.order + '"'); 3996 } 3997 const clipContent = value.clipContent === void 0 ? false : value.clipContent; 3998 if (typeof clipContent !== "boolean") { 3999 throw new Error('animate: "textElementDelayBehaviour.clipContent" must be a boolean'); 4000 } 4001 return { 4002 enabled: value.enabled, 4003 grouping, 4004 delayMs: value.delayMs, 4005 order, 4006 clipContent 4007 }; 4008 } 4009 function parseNodeFields(value) { 4010 if (value === null || typeof value !== "object" || Array.isArray(value)) { 4011 throw new Error('animate: "nodeFields" must be an object'); 4012 } 4013 const unsupported = Object.keys(value).find((key) => key !== "textElementDelayBehaviour"); 4014 if (unsupported !== void 0) { 4015 throw new Error('animate: unknown node field "' + unsupported + '"'); 4016 } 4017 return { 4018 textElementDelayBehaviour: value.textElementDelayBehaviour === void 0 ? void 0 : parseTextElementDelayBehaviour(value.textElementDelayBehaviour) 4019 }; 4020 } 4021 4022
4022// share/motion/src/presets/source/path.ts 4023 var TYPE_DRAW = "draw"; 4024 var TYPE_ERASE = "erase"; 4025 var TYPE_TRAVEL = "travel"; 4026 var DIRECTION_FORWARD = "forward"; 4027 var AXIS_PATH_TRIM_START = "pathTrimStart"; 4028 var AXIS_PATH_TRIM_END = "pathTrimEnd"; 4029 var AXIS_COMBINED = "combined"; 4030 function percentToDecimal(value) { 4031 return value / 100; 4032 } 4033 function preset({ 4034 type, 4035 direction, 4036 segment, 4037 axis, 4038 pathStartStartFrame, 4039 pathStartEndWithoutDivider, 4040 pathEndStartWithDivider, 4041 pathEndEndFrame, 4042 pathEndStartWithoutDivider, 4043 pathStartEndWithDivider, 4044 duration, 4045 easing, 4046 target 4047 }) { 4048 const isForward = direction === DIRECTION_FORWARD; 4049 let startFrom; 4050 let startTo; 4051 let endFrom; 4052 let endTo; 4053 let startEnabled = true; 4054 let endEnabled = true; 4055 if (type === TYPE_DRAW || type === TYPE_ERASE) { 4056 const isDraw = type === TYPE_DRAW; 4057 if (isDraw && isForward) { 4058 startFrom = 0; 4059 startTo = 0; 4060 endFrom = 0; 4061 endTo = 1; 4062 } else if (isDraw && !isForward) { 4063 startFrom = 1; 4064 startTo = 0; 4065 endFrom = 1; 4066 endTo = 1; 4067 } else if (!isDraw && isForward) { 4068 startFrom = 0; 4069 startTo = 1; 4070 endFrom = 1; 4071 endTo = 1; 4072 } else { 4073 startFrom = 0; 4074 startTo = 0; 4075 endFrom = 1; 4076 endTo = 0; 4077 } 4078 } else if (type === TYPE_TRAVEL) { 4079 const segmentFraction = percentToDecimal(segment); 4080 startFrom = isForward ? 0 : 1 - segmentFraction; 4081 startTo = isForward ? 1 - segmentFraction : 0; 4082 endFrom = isForward ? segmentFraction : 1; 4083 endTo = isForward ? 1 : segmentFraction; 4084 } else { 4085 startEnabled = axis === AXIS_PATH_TRIM_START || axis === AXIS_COMBINED; 4086 endEnabled = axis === AXIS_PATH_TRIM_END || axis === AXIS_COMBINED; 4087 if (axis === AXIS_COMBINED) { 4088 const sFrom = percentToDecimal(pathStartStartFrame); 4089 const sTo = percentToDecimal(pathStartEndWithDivider); 4090 const eFrom = percentToDecimal(pathEndStartWithoutDivider); 4091 const eTo = percentToDecimal(pathEndEndFrame); 4092 startFrom = isForward ? sFrom : sTo; 4093 startTo = isForward ? sTo : sFrom; 4094 endFrom = isForward ? eFrom : eTo; 4095 endTo = isForward ? eTo : eFrom; 4096 } else { 4097 const sFrom = percentToDecimal(pathStartStartFrame); 4098 const sTo = percentToDecimal(pathStartEndWithoutDivider); 4099 const eFrom = percentToDecimal(pathEndStartWithDivider); 4100 const eTo = percentToDecimal(pathEndEndFrame); 4101 startFrom = isForward ? sFrom : sTo; 4102 startTo = isForward ? sTo : sFrom; 4103 endFrom = isForward ? eFrom : eTo; 4104 endTo = isForward ? eTo : eFrom; 4105 } 4106 } 4107 return [ 4108 animate(target, { 4109 pathTrimStart: tween({ 4110 mode: "set", 4111 duration, 4112 from: startFrom, 4113 to: startTo, 4114 easing, 4115 enabled: startEnabled 4116 }), 4117 pathTrimEnd: tween({ 4118 mode: "set", 4119 duration, 4120 from: endFrom, 4121 to: endTo, 4122 easing, 4123 enabled: endEnabled 4124 }) 4125 }) 4126 ]; 4127 } 4128 defineProperties(preset, { 4129 type: { 4130 label: "motion.preset_flyout.type", 4131 type: "string", 4132 defaultValue: "draw", 4133 control: "select", 4134 options: [ 4135 { value: "draw", label: "motion.preset_flyout.path.type.draw" }, 4136 { value: "erase", label: "motion.preset_flyout.path.type.erase" }, 4137 { value: "travel", label: "motion.preset_flyout.path.type.travel" }, 4138 { value: "custom", label: "motion.preset_flyout.type.custom" } 4139 ] 4140 }, 4141 direction: { 4142 label: "motion.preset_flyout.direction", 4143 type: "string", 4144 defaultValue: "forward", 4145 control: "select", 4146 options: [ 4147 { value: "forward", label: "motion.preset_flyout.path.direction.forward" }, 4148 { value: "reverse", label: "motion.preset_flyout.path.direction.reverse" } 4149 ] 4150 }, 4151 axis: { 4152 label: "motion.preset_flyout.path.trim", 4153 type: "string", 4154 defaultValue: "pathTrimStart", 4155 control: "select", 4156 options: [ 4157 { value: "pathTrimStart", label: "motion.preset_flyout.path.axis.path_trim_start" }, 4158 { value: "pathTrimEnd", label: "motion.preset_flyout.path.axis.path_trim_end" }, 4159 { value: "combined", label: "motion.preset_flyout.path.axis.combined" } 4160 ] 4161 }, 4162 segment: { 4163 label: "motion.preset_flyout.path.segment", 4164 type: "number", 4165 defaultValue: 10, 4166 control: "input", 4167 min: 0, 4168 max: 100, 4169 unit: "%" 4170 }, 4171 // Frame order drives the panel layout. Single-axis (pathTrimStart / pathTrimEnd) groups 4172 // its own Start + End. Combined groups both Starts then both Ends, so its inner pair uses 4173 // dedicated *Combined variants laid out between the single-axis Start/End rows and only 4174 // shown for Combined.
4175 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 4176 // are redundant \u2014 section dividers are now applied client-side in the preset 4177 // flyout via \`forceShowDividerAboveTransform\` 4178 pathStartStartFrame: { 4179 label: "motion.preset_flyout.start_frame", 4180 type: "number", 4181 defaultValue: 100, 4182 control: "input", 4183 unit: "%", 4184 showDividerAbove: true, 4185 icon: "path_trim_start" 4186 }, 4187 pathStartEndWithoutDivider: { 4188 label: "motion.preset_flyout.end_frame", 4189 type: "number", 4190 defaultValue: 0, 4191 control: "input", 4192 unit: "%", 4193 icon: "path_trim_start" 4194 }, 4195 // Combined-only: trimEnd's Start (2nd Start, grouped under the Starts divider) and 4196 // trimStart's End (1st End, opens the Ends group with its own divider). 4197 pathEndStartWithoutDivider: { 4198 label: "motion.preset_flyout.start_frame", 4199 type: "number", 4200 defaultValue: 20, 4201 control: "input", 4202 unit: "%", 4203 icon: "path_trim_end" 4204 }, 4205 pathStartEndWithDivider: { 4206 label: "motion.preset_flyout.end_frame", 4207 type: "number", 4208 defaultValue: 80, 4209 control: "input", 4210 unit: "%", 4211 showDividerAbove: true, 4212 icon: "path_trim_start" 4213 }, 4214 pathEndStartWithDivider: { 4215 label: "motion.preset_flyout.start_frame", 4216 type: "number", 4217 defaultValue: 0, 4218 control: "input", 4219 unit: "%", 4220 showDividerAbove: true, 4221 icon: "path_trim_end" 4222 }, 4223 pathEndEndFrame: { 4224 label: "motion.preset_flyout.end_frame", 4225 type: "number", 4226 defaultValue: 100, 4227 control: "input", 4228 unit: "%", 4229 icon: "path_trim_end" 4230 }, 4231 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 4232 delay: { 4233 label: "motion.preset_flyout.delay", 4234 type: "number", 4235 defaultValue: 0, 4236 control: "input", 4237 unit: "s", 4238 showDividerAbove: true, 4239 icon: "delay" 4240 }, 4241 duration: { 4242 label: "motion.preset_flyout.duration", 4243 type: "number", 4244 defaultValue: 0.5, 4245 control: "input", 4246 min: 0.01, 4247 unit: "s", 4248 icon: "time" 4249 }, 4250 easing: { 4251 label: "motion.preset_flyout.easing", 4252 type: "easing", 4253 defaultValue: { easingType: EasingType.OUT_CUBIC } 4254 } 4255 }); 4256 return __toCommonJS(path_exports); 4257})();`});var T0,h0,O0=nn(()=>{T0=`// Source-of-truth for the PATH_DRAW first-party animation preset. 4258// 4259// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 4260// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 4261// resolved, and emits both strings into \`../generated/path_draw.generated.ts\`. 4262// The generated module is what runtime code consumes \u2014 never import this file 4263// directly from production code paths. 4264// 4265// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 4266// only an input to the codegen tool, evaluated inside the QuickJS / iframe 4267// sandbox at runtime. 4268 4269import { animate, defineProperties, EasingType, tween } from 'figma:motion' 4270 4271import type { PresetArgs } from './preset_types' 4272 4273export default function preset({ duration, mode, direction, target }: PresetArgs) { 4274 const easing = { easingType: EasingType.LINEAR } 4275 4276 if (mode === 'reveal') { 4277 if (direction === 'forward') { 4278 // Draw from start to end of path: trimStart stays at 0, trimEnd goes from 0 to 1 4279 return [ 4280 animate(target, { 4281 pathTrimStart: tween({ mode: 'set', duration, from: 0, to: 0, easing }), 4282 pathTrimEnd: tween({ mode: 'set', duration, from: 0, to: 1, easing }), 4283 }), 4284 ] 4285 } else { 4286 // Draw from end to start of path: trimStart goes from 1 to 0, trimEnd stays at 1 4287 return [ 4288 animate(target, { 4289 pathTrimStart: tween({ mode: 'set', duration, from: 1, to: 0, easing }), 4290 pathTrimEnd: tween({ mode: 'set', duration, from: 1, to: 1, easing }), 4291 }), 4292 ] 4293 } 4294 } else { 4295 if (direction === 'forward') { 4296 // Hide from start to end of path: trimStart goes from 0 to 1, trimEnd stays at 1 4297 return [ 4298 animate(target, {
4299 pathTrimStart: tween({ mode: 'set', duration, from: 0, to: 1, easing }), 4300 pathTrimEnd: tween({ mode: 'set', duration, from: 1, to: 1, easing }), 4301 }), 4302 ] 4303 } else { 4304 // Hide from end to start of path: trimStart stays at 0, trimEnd goes from 1 to 0 4305 return [ 4306 animate(target, { 4307 pathTrimStart: tween({ mode: 'set', duration, from: 0, to: 0, easing }), 4308 pathTrimEnd: tween({ mode: 'set', duration, from: 1, to: 0, easing }), 4309 }), 4310 ] 4311 } 4312 } 4313} 4314 4315// KEEP_IN_SYNC(share/motion/src/presets/path_draw_meta.ts) \u2014 these 4316// property bounds (min/max/unit) must match \`PROP_DEFS[*].inputConfig\` so the 4317// panel-side TS metadata and the bundled IIFE agree on every prop's contract. 4318defineProperties(preset, { 4319 duration: { 4320 label: 'Duration', 4321 type: 'number', 4322 defaultValue: 0.5, 4323 control: 'input', 4324 min: 0.01, 4325 unit: 's', 4326 }, 4327 mode: { 4328 label: 'Mode', 4329 type: 'string', 4330 defaultValue: 'reveal', 4331 control: 'select', 4332 options: [ 4333 { value: 'reveal', label: 'Reveal' }, 4334 { value: 'hide', label: 'Hide' }, 4335 ], 4336 }, 4337 direction: { 4338 label: 'Direction', 4339 type: 'string', 4340 defaultValue: 'forward', 4341 control: 'select', 4342 options: [ 4343 { value: 'forward', label: 'Forward' }, 4344 { value: 'reverse', label: 'Reverse' }, 4345 ], 4346 }, 4347}) 4348`,h0=`var __presetBundle = (() => { 4349 var __defProp = Object.defineProperty; 4350 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 4351 var __getOwnPropNames = Object.getOwnPropertyNames; 4352 var __hasOwnProp = Object.prototype.hasOwnProperty; 4353 var __export = (target, all) => { 4354 for (var name in all) 4355 __defProp(target, name, { get: all[name], enumerable: true }); 4356 }; 4357 var __copyProps = (to, from, except, desc) => { 4358 if (from && typeof from === "object" || typeof from === "function") { 4359 for (let key of __getOwnPropNames(from)) 4360 if (!__hasOwnProp.call(to, key) && key !== except) 4361 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 4362 } 4363 return to; 4364 }; 4365 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 4366 4367
4367// share/motion/src/presets/source/path_draw.ts 4368 var path_draw_exports = {}; 4369 __export(path_draw_exports, { 4370 default: () => preset 4371 }); 4372 4373 // figma-motion:figma:motion 4374 function defineProperties(component, spec) { 4375 Object.assign(component, { 4376 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 4377 }); 4378 } 4379 var EasingType = { 4380 IN_CUBIC: 0, 4381 inCubic: 0, 4382 OUT_CUBIC: 1, 4383 outCubic: 1, 4384 INOUT_CUBIC: 2, 4385 inOutCubic: 2, 4386 LINEAR: 3, 4387 linear: 3, 4388 IN_BACK_CUBIC: 4, 4389 inBackCubic: 4, 4390 OUT_BACK_CUBIC: 5, 4391 outBackCubic: 5, 4392 INOUT_BACK_CUBIC: 6, 4393 inOutBackCubic: 6, 4394 CUSTOM_CUBIC: 7, 4395 customCubic: 7, 4396 SPRING: 8, 4397 spring: 8, 4398 GENTLE_SPRING: 9, 4399 gentleSpring: 9, 4400 CUSTOM_SPRING: 10, 4401 customSpring: 10, 4402 SPRING_PRESET_ONE: 11, 4403 springPresetOne: 11, 4404 SPRING_PRESET_TWO: 12, 4405 springPresetTwo: 12, 4406 SPRING_PRESET_THREE: 13, 4407 springPresetThree: 13, 4408 // For backwards compat 4409 bezier: 100, 4410 BEZIER: 100 4411 }; 4412 var InterpolationType = { 4413 HOLD: 0, 4414 hold: 0, 4415 BEZIER: 1, 4416 bezier: 1 4417 }; 4418 var KeyframeOperation = { 4419 SET: 0, 4420 set: 0, 4421 SCALE: 1, 4422 scale: 1, 4423 OFFSET: 2, 4424 offset: 2 4425 }; 4426 var KeyframeBindingTopLevelField = { 4427 MISSING: 0, 4428 PARAMETER_CONSUMPTION_MAP: 1, 4429 EFFECTS: 2, 4430 effects: 2 4431 }; 4432 var TextElementGrouping = { 4433 CHARACTER: 0, 4434 CHARACTER_NO_WHITESPACE: 1, 4435 WORD: 2, 4436 LINE: 3, 4437 PARAGRAPH: 4 4438 }; 4439 var TextElementDelayOrder = { 4440 LEFT_RIGHT: 0, 4441 RIGHT_LEFT: 1, 4442 CENTER_OUT: 2, 4443 RANDOM: 3 4444 }; 4445 var PresetGeneratedEffectType = { 4446 LAYER_BLUR: 0 4447 }; 4448 var ParameterField = { 4449 MISSING: 0, 4450 missing: 0, 4451 CORNER_RADIUS: 1, 4452 cornerRadius: 1, 4453 PARAGRAPH_SPACING: 2, 4454 paragraphSpacing: 2, 4455 PARAGRAPH_INDENT: 3, 4456 paragraphIndent: 3, 4457 STROKE_WEIGHT: 4, 4458 strokeWeight: 4, 4459 STACK_SPACING: 5, 4460 stackSpacing: 5, 4461 STACK_PADDING_LEFT: 6, 4462 stackPaddingLeft: 6, 4463 STACK_PADDING_TOP: 7, 4464 stackPaddingTop: 7, 4465 STACK_PADDING_RIGHT: 8, 4466 stackPaddingRight: 8, 4467 STACK_PADDING_BOTTOM: 9, 4468 stackPaddingBottom: 9, 4469 VISIBLE: 10, 4470 visible: 10, 4471 TEXT_DATA: 11, 4472 textData: 11, 4473 WIDTH: 12, 4474 width: 12, 4475 HEIGHT: 13, 4476 height: 13, 4477 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 4478 rectangleTopLeftCornerRadius: 14, 4479 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 4480 rectangleTopRightCornerRadius: 15, 4481 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 4482 rectangleBottomLeftCornerRadius: 16, 4483 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 4484 rectangleBottomRightCornerRadius: 17, 4485 BORDER_TOP_WEIGHT: 18, 4486 borderTopWeight: 18, 4487 BORDER_BOTTOM_WEIGHT: 19, 4488 borderBottomWeight: 19, 4489 BORDER_LEFT_WEIGHT: 20, 4490 borderLeftWeight: 20, 4491 BORDER_RIGHT_WEIGHT: 21, 4492 borderRightWeight: 21, 4493 VARIANT_PROPERTIES: 22, 4494 variantProperties: 22, 4495 STACK_COUNTER_SPACING: 23, 4496 stackCounterSpacing: 23, 4497 MIN_WIDTH: 24, 4498 minWidth: 24, 4499 MAX_WIDTH: 25, 4500 maxWidth: 25, 4501 MIN_HEIGHT: 26, 4502 minHeight: 26, 4503 MAX_HEIGHT: 27, 4504 maxHeight: 27, 4505 FONT_FAMILY: 28, 4506 fontFamily: 28, 4507 FONT_STYLE: 29, 4508 fontStyle: 29, 4509 FONT_VARIATIONS: 30, 4510 fontVariations: 30, 4511 OPACITY: 31, 4512 opacity: 31, 4513 FONT_SIZE: 32, 4514 fontSize: 32, 4515 LETTER_SPACING: 34, 4516 letterSpacing: 34, 4517 LINE_HEIGHT: 36, 4518 lineHeight: 36, 4519 OVERRIDDEN_SYMBOL_ID: 37, 4520 overriddenSymbolId: 37, 4521 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 4522 cmsSerializedRichTextData: 38, 4523 HYPERLINK: 39, 4524 hyperlink: 39, 4525 SLOT_CONTENT_ID: 40, 4526 slotContentId: 40, 4527 GRID_ROW_GAP: 41, 4528 gridRowGap: 41, 4529 GRID_COLUMN_GAP: 42, 4530 gridColumnGap: 42, 4531 RELATIVE_X_POSITION: 43, 4532 xPosition: 43, 4533 RELATIVE_Y_POSITION: 44, 4534 relativeYPosition: 44, 4535 RELATIVE_ROTATION: 45, 4536 relativeRotation: 45, 4537 MOTION_TRANSLATION_X: 46, 4538 motionTranslationX: 46, 4539 MOTION_TRANSLATION_Y: 47, 4540 motionTranslationY: 47, 4541 MOTION_ROTATION: 48, 4542 motionRotation: 48, 4543 MOTION_SCALE_X: 49, 4544 motionScaleX: 49, 4545 MOTION_SCALE_Y: 50, 4546 motionScaleY: 50, 4547 MOTION_SHEAR: 51, 4548 motionShear: 51, 4549 SCROLL_OFFSET_X: 52, 4550 scrollOffsetX: 52, 4551 SCROLL_OFFSET_Y: 53, 4552 scrollOffsetY: 53, 4553 PATH_TRIM_START: 54, 4554 pathTrimStart: 54, 4555 PATH_TRIM_END: 55, 4556 pathTrimEnd: 55, 4557 DISSOLVE_PROGRESS: 56, 4558 dissolveProgress: 56 4559 }; 4560 var EffectParametrizedField = { 4561 MISSING: 0, 4562 missing: 0, 4563 OFFSET_X: 1, 4564 offsetX: 1, 4565 OFFSET_Y: 2, 4566 offsetY: 2, 4567 RADIUS: 3, 4568 radius: 3, 4569 SPREAD: 4, 4570 spread: 4, 4571 COLOR: 5, 4572 color: 5, 4573 REFRACTION_RADIUS: 6, 4574 refractionRadius: 6, 4575 SPECULAR_ANGLE: 7, 4576 specularAngle: 7, 4577 SPECULAR_INTENSITY: 8, 4578 specularIntensity: 8, 4579 CHROMATIC_ABERRATION: 9, 4580 chromaticAberration: 9, 4581 SPLAY: 10, 4582 splay: 10, 4583 REFRACTION_INTENSITY: 11, 4584 refractionIntensity: 11, 4585 START_RADIUS: 12, 4586 startRadius: 12, 4587 START_OFFSET_X: 13, 4588 startOffsetX: 13, 4589 START_OFFSET_Y: 14, 4590 startOffsetY: 14, 4591 END_OFFSET_X: 15, 4592 endOffsetX: 15, 4593 END_OFFSET_Y: 16, 4594 endOffsetY: 16, 4595 NOISE_SIZE_X: 17, 4596 noiseSizeX: 17, 4597 NOISE_SIZE_Y: 18, 4598 noiseSizeY: 18, 4599 DENSITY: 19, 4600 density: 19, 4601 EFFECT_OPACITY: 20, 4602 effectOpacity: 20, 4603 SECONDARY_COLOR: 21, 4604 secondaryColor: 21 4605 }; 4606 var Keyframe = class { 4607 constructor(data) { 4608 this.timelinePosition = Math.round(data.timelinePosition); 4609 this.easing = data.easing; 4610 this.value = data.value; 4611 } 4612 }; 4613 var KeyframeTrack = class { 4614 constructor(data) { 4615 this.topLevelField = data.topLevelField; 4616 this.parameterField = data.parameterField; 4617 this.index = data.index; 4618 this.effectParametrizedField = data.effectParametrizedField; 4619 this.keyframeOperation = data.keyframeOperation; 4620 this.keyframes = data.keyframes; 4621 this.enabled = !!data.enabled; 4622 } 4623 }; 4624 var AnimationPreset = class { 4625 constructor(data) { 4626 this.nodeId = data.nodeId; 4627 this.keyframeTracks = data.keyframeTracks; 4628 this.textElementDelayBehaviour = data.textElementDelayBehaviour; 4629 this.effects = data.effects; 4630 } 4631 }; 4632 var PARAMETER_FIELD_ALIAS_MAP = { 4633 translateX: ParameterField.MOTION_TRANSLATION_X, 4634 translateY: ParameterField.MOTION_TRANSLATION_Y, 4635 rotate: ParameterField.MOTION_ROTATION, 4636 scaleX: ParameterField.MOTION_SCALE_X, 4637 scaleY: ParameterField.MOTION_SCALE_Y, 4638 shear: ParameterField.MOTION_SHEAR 4639 }; 4640 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 4641 var MODE_TO_OPERATION = { 4642 set: KeyframeOperation.SET, 4643 SET: KeyframeOperation.SET, 4644 offset: KeyframeOperation.OFFSET, 4645 OFFSET: KeyframeOperation.OFFSET, 4646 scale: KeyframeOperation.SCALE, 4647 SCALE: KeyframeOperation.SCALE 4648 }; 4649 var TEXT_ELEMENTS_TARGET = /* @__PURE__ */ Symbol("figma.motion.textElements"); 4650 var LAYER_BLUR_EFFECT = /* @__PURE__ */ Symbol("figma.motion.layerBlur"); 4651 function normalizeEasing(easing) { 4652 if (easing === void 0) return void 0; 4653 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 4654 if (typeof easing === "string") { 4655 const easingType = EasingType[easing]; 4656 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 4657 return { easingType }; 4658 } 4659 return easing; 4660 } 4661 function compileKeyframe({ timelinePosition, value, easing }) { 4662 return new Keyframe({ 4663 timelinePosition: timelinePosition * 1e6, 4664 easing: normalizeEasing(easing), 4665 value 4666 }); 4667 } 4668 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 4669 if (duration < 0) throw new Error("tween: duration must be non-negative"); 4670 return { 4671 mode, 4672 enabled, 4673 keyframes: [ 4674 { timelinePosition, value: from, easing }, 4675 { timelinePosition: timelinePosition + duration, value: to, easing } 4676 ] 4677 }; 4678 } 4679 function animate(target, definition) { 4680 const isTextElementsTarget = target?.[TEXT_ELEMENTS_TARGET] === true; 4681 const node = isTextElementsTarget ? target.node : target; 4682 const nodeId = typeof node === "string" ? node : node.id;
4683 const keyframeTracks = []; 4684 const effects = []; 4685 let textElementDelayBehaviour = isTextElementsTarget ? target.textElementDelayBehaviour : void 0; 4686 for (const [key, trackDef] of Object.entries(definition)) { 4687 if (key === "nodeFields") { 4688 textElementDelayBehaviour = parseNodeFields(trackDef).textElementDelayBehaviour; 4689 continue; 4690 } 4691 if (key === "effects") { 4692 if (!Array.isArray(trackDef)) { 4693 throw new Error('animate: "effects" must be an array'); 4694 } 4695 if (trackDef.length > 1) { 4696 throw new Error("animate: at most one layer blur effect per preset is supported"); 4697 } 4698 for (const effect of trackDef) { 4699 if (effect?.[LAYER_BLUR_EFFECT] !== true) { 4700 throw new Error("animate: unsupported effect descriptor"); 4701 } 4702 const effectIndex = effects.length; 4703 const radiusTrack = effect.radius; 4704 const operation2 = MODE_TO_OPERATION[radiusTrack?.mode]; 4705 if (operation2 === void 0) { 4706 throw new Error("animate: layerBlur radius must be a track definition"); 4707 } 4708 const enabled = radiusTrack.enabled !== false; 4709 const seen2 = /* @__PURE__ */ new Map(); 4710 for (const kf of radiusTrack.keyframes) seen2.set(kf.timelinePosition, kf); 4711 const sorted2 = [...seen2.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 4712 effects.push({ 4713 type: PresetGeneratedEffectType.LAYER_BLUR, 4714 radius: enabled && operation2 === KeyframeOperation.SCALE ? 1 : 0 4715 }); 4716 keyframeTracks.push(new KeyframeTrack({ 4717 topLevelField: KeyframeBindingTopLevelField.EFFECTS, 4718 index: effectIndex, 4719 effectParametrizedField: EffectParametrizedField.RADIUS, 4720 keyframeOperation: operation2, 4721 keyframes: sorted2.map(compileKeyframe), 4722 enabled 4723 })); 4724 } 4725 continue; 4726 } 4727 if (!KEYFRAMEABLE_FIELDS.has(key)) { 4728 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 4729 } 4730 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 4731 const operation = MODE_TO_OPERATION[trackDef.mode]; 4732 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 4733 const seen = /* @__PURE__ */ new Map(); 4734 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 4735 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 4736 keyframeTracks.push(new KeyframeTrack({ 4737 parameterField, 4738 keyframeOperation: operation, 4739 keyframes: sorted.map(compileKeyframe), 4740 enabled: trackDef.enabled !== false 4741 })); 4742 } 4743 return new AnimationPreset({ 4744 nodeId, 4745 keyframeTracks, 4746 textElementDelayBehaviour, 4747 effects: effects.length > 0 ? effects : void 0 4748 }); 4749 } 4750 function parseTextElementDelayBehaviour(value) { 4751 if (value === null || typeof value !== "object" || Array.isArray(value)) { 4752 throw new Error('animate: "textElementDelayBehaviour" must be an object'); 4753 } 4754 if (typeof value.enabled !== "boolean") { 4755 throw new Error('animate: "textElementDelayBehaviour.enabled" must be a boolean'); 4756 } 4757 const grouping = TextElementGrouping[value.grouping]; 4758 if (!Object.values(TextElementGrouping).includes(grouping)) { 4759 throw new Error('animate: unknown text element grouping "' + value.grouping + '"'); 4760 } 4761 if (typeof value.delayMs !== "number" || !Number.isFinite(value.delayMs) || value.delayMs < 0) { 4762 throw new Error( 4763 'animate: "textElementDelayBehaviour.delayMs" must be a non-negative finite number' 4764 ); 4765 } 4766 const order = TextElementDelayOrder[value.order]; 4767 if (!Object.values(TextElementDelayOrder).includes(order)) { 4768 throw new Error('animate: unknown text element delay order "' + value.order + '"'); 4769 } 4770 const clipContent = value.clipContent === void 0 ? false : value.clipContent; 4771 if (typeof clipContent !== "boolean") { 4772 throw new Error('animate: "textElementDelayBehaviour.clipContent" must be a boolean'); 4773 } 4774 return { 4775 enabled: value.enabled, 4776 grouping, 4777 delayMs: value.delayMs, 4778 order, 4779 clipContent 4780 }; 4781 } 4782 function parseNodeFields(value) { 4783 if (value === null || typeof value !== "object" || Array.isArray(value)) { 4784 throw new Error('animate: "nodeFields" must be an object'); 4785 } 4786 const unsupported = Object.keys(value).find((key) => key !== "textElementDelayBehaviour"); 4787 if (unsupported !== void 0) { 4788 throw new Error('animate: unknown node field "' + unsupported + '"'); 4789 } 4790 return { 4791 textElementDelayBehaviour: value.textElementDelayBehaviour === void 0 ? void 0 : parseTextElementDelayBehaviour(value.textElementDelayBehaviour) 4792 }; 4793 } 4794 4795
4795// share/motion/src/presets/source/path_draw.ts 4796 function preset({ duration, mode, direction, target }) { 4797 const easing = { easingType: EasingType.LINEAR }; 4798 if (mode === "reveal") { 4799 if (direction === "forward") { 4800 return [ 4801 animate(target, { 4802 pathTrimStart: tween({ mode: "set", duration, from: 0, to: 0, easing }), 4803 pathTrimEnd: tween({ mode: "set", duration, from: 0, to: 1, easing }) 4804 }) 4805 ]; 4806 } else { 4807 return [ 4808 animate(target, { 4809 pathTrimStart: tween({ mode: "set", duration, from: 1, to: 0, easing }), 4810 pathTrimEnd: tween({ mode: "set", duration, from: 1, to: 1, easing }) 4811 }) 4812 ]; 4813 } 4814 } else { 4815 if (direction === "forward") { 4816 return [ 4817 animate(target, { 4818 pathTrimStart: tween({ mode: "set", duration, from: 0, to: 1, easing }), 4819 pathTrimEnd: tween({ mode: "set", duration, from: 1, to: 1, easing }) 4820 }) 4821 ]; 4822 } else { 4823 return [ 4824 animate(target, { 4825 pathTrimStart: tween({ mode: "set", duration, from: 0, to: 0, easing }), 4826 pathTrimEnd: tween({ mode: "set", duration, from: 1, to: 0, easing }) 4827 }) 4828 ]; 4829 } 4830 } 4831 } 4832 defineProperties(preset, { 4833 duration: { 4834 label: "Duration", 4835 type: "number", 4836 defaultValue: 0.5, 4837 control: "input", 4838 min: 0.01, 4839 unit: "s" 4840 }, 4841 mode: { 4842 label: "Mode", 4843 type: "string", 4844 defaultValue: "reveal", 4845 control: "select", 4846 options: [ 4847 { value: "reveal", label: "Reveal" }, 4848 { value: "hide", label: "Hide" } 4849 ] 4850 }, 4851 direction: { 4852 label: "Direction", 4853 type: "string", 4854 defaultValue: "forward", 4855 control: "select", 4856 options: [ 4857 { value: "forward", label: "Forward" }, 4858 { value: "reverse", label: "Reverse" } 4859 ] 4860 } 4861 }); 4862 return __toCommonJS(path_draw_exports); 4863})();`});var I0,g0,S0=nn(()=>{I0=`// Source-of-truth for the PATH_TRAVEL first-party animation preset. 4864// 4865// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 4866// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 4867// resolved, and emits both strings into \`../generated/path_travel.generated.ts\`. 4868// The generated module is what runtime code consumes \u2014 never import this file 4869// directly from production code paths. 4870// 4871// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 4872// only an input to the codegen tool, evaluated inside the QuickJS / iframe 4873// sandbox at runtime. 4874 4875import { animate, defineProperties, EasingType, tween } from 'figma:motion' 4876 4877import type { PresetArgs } from './preset_types' 4878 4879export default function preset({ 4880 duration, 4881 direction, 4882 segmentLength, 4883 loops, 4884 loopMode, 4885 target, 4886}: PresetArgs) { 4887 // Path Travel: A segment of the path travels along the entire path 4888 const segment = segmentLength / 100 // Convert percentage to 0-1 range 4889 const easing = { easingType: EasingType.LINEAR } 4890 4891 if (loopMode === 'circle') { 4892 // Circle mode: segment wraps around continuously 4893 if (direction === 'forward') { 4894 return [ 4895 animate(target, { 4896 pathTrimStart: tween({ mode: 'set', duration, from: 0, to: loops, easing }), 4897 pathTrimEnd: tween({ 4898 mode: 'set', 4899 duration, 4900 from: segment, 4901 to: segment + loops, 4902 easing, 4903 }), 4904 }), 4905 ] 4906 } else { 4907 return [ 4908 animate(target, { 4909 pathTrimStart: tween({ 4910 mode: 'set', 4911 duration, 4912 from: 1 - segment, 4913 to: 1 - segment - loops, 4914 easing, 4915 }), 4916 pathTrimEnd: tween({ mode: 'set', duration, from: 1, to: 1 - loops, easing }), 4917 }), 4918 ] 4919 } 4920 } 4921 4922 // Retrace mode: segment goes forward then backward for each loop 4923 const startKeyframes: Array<{ timelinePosition: number; value: number; easing: PresetArgs }> = [] 4924 const endKeyframes: Array<{ timelinePosition: number; value: number; easing: PresetArgs }> = [] 4925 const timePerLoop = duration / loops 4926 4927 if (direction === 'forward') { 4928 for (let i = 0; i < loops; i++) { 4929 const loopStartTime = i * timePerLoop 4930 const loopMidTime = loopStartTime + timePerLoop / 2 4931 const loopEndTime = loopStartTime + timePerLoop 4932 4933 // Forward phase 4934 startKeyframes.push({ timelinePosition: loopStartTime, value: 0, easing }) 4935 startKeyframes.push({ timelinePosition: loopMidTime, value: 1 - segment, easing }) 4936 // Backward phase 4937 startKeyframes.push({ timelinePosition: loopEndTime, value: 0, easing }) 4938 4939 endKeyframes.push({ timelinePosition: loopStartTime, value: segment, easing }) 4940 endKeyframes.push({ timelinePosition: loopMidTime, value: 1, easing }) 4941 endKeyframes.push({ timelinePosition: loopEndTime, value: segment, easing }) 4942 } 4943 } else { 4944 for (let i = 0; i < loops; i++) { 4945 const loopStartTime = i * timePerLoop 4946 const loopMidTime = loopStartTime + timePerLoop / 2 4947 const loopEndTime = loopStartTime + timePerLoop 4948 4949 // Backward phase 4950 startKeyframes.push({ timelinePosition: loopStartTime, value: 1 - segment, easing }) 4951 startKeyframes.push({ timelinePosition: loopMidTime, value: 0, easing }) 4952 // Forward phase 4953 startKeyframes.push({ timelinePosition: loopEndTime, value: 1 - segment, easing }) 4954 4955 endKeyframes.push({ timelinePosition: loopStartTime, value: 1, easing }) 4956 endKeyframes.push({ timelinePosition: loopMidTime, value: segment, easing }) 4957 endKeyframes.push({ timelinePosition: loopEndTime, value: 1, easing }) 4958 } 4959 } 4960 4961 return [ 4962 animate(target, {
4963 pathTrimStart: { mode: 'set', keyframes: startKeyframes }, 4964 pathTrimEnd: { mode: 'set', keyframes: endKeyframes }, 4965 }), 4966 ] 4967} 4968 4969// KEEP_IN_SYNC(share/motion/src/presets/path_travel_meta.ts) \u2014 these 4970// property bounds (min/max/unit) must match \`PROP_DEFS[*].inputConfig\` so the 4971// panel-side TS metadata and the bundled IIFE agree on every prop's contract. 4972defineProperties(preset, { 4973 duration: { 4974 label: 'Duration', 4975 type: 'number', 4976 defaultValue: 0.5, 4977 control: 'input', 4978 min: 0.01, 4979 unit: 's', 4980 }, 4981 direction: { 4982 label: 'Direction', 4983 type: 'string', 4984 defaultValue: 'forward', 4985 control: 'select', 4986 options: [ 4987 { value: 'forward', label: 'Forward' }, 4988 { value: 'reverse', label: 'Reverse' }, 4989 ], 4990 }, 4991 loopMode: { 4992 label: 'Loop Mode', 4993 type: 'string', 4994 defaultValue: 'circle', 4995 control: 'select', 4996 options: [ 4997 { value: 'circle', label: 'Circle Back' }, 4998 { value: 'retrace', label: 'Retrace Path' }, 4999 ], 5000 }, 5001 segmentLength: { 5002 label: 'Segment Length', 5003 type: 'number', 5004 defaultValue: 20, 5005 control: 'input', 5006 min: 0, 5007 max: 100, 5008 unit: '%', 5009 }, 5010 loops: { 5011 label: 'Loops', 5012 type: 'number', 5013 defaultValue: 1, 5014 control: 'input', 5015 min: 1, 5016 }, 5017}) 5018`,g0=`var __presetBundle = (() => { 5019 var __defProp = Object.defineProperty; 5020 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 5021 var __getOwnPropNames = Object.getOwnPropertyNames; 5022 var __hasOwnProp = Object.prototype.hasOwnProperty; 5023 var __export = (target, all) => { 5024 for (var name in all) 5025 __defProp(target, name, { get: all[name], enumerable: true }); 5026 }; 5027 var __copyProps = (to, from, except, desc) => { 5028 if (from && typeof from === "object" || typeof from === "function") { 5029 for (let key of __getOwnPropNames(from)) 5030 if (!__hasOwnProp.call(to, key) && key !== except) 5031 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 5032 } 5033 return to; 5034 }; 5035 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 5036 5037
5037// share/motion/src/presets/source/path_travel.ts 5038 var path_travel_exports = {}; 5039 __export(path_travel_exports, { 5040 default: () => preset 5041 }); 5042 5043 // figma-motion:figma:motion 5044 function defineProperties(component, spec) { 5045 Object.assign(component, { 5046 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 5047 }); 5048 } 5049 var EasingType = { 5050 IN_CUBIC: 0, 5051 inCubic: 0, 5052 OUT_CUBIC: 1, 5053 outCubic: 1, 5054 INOUT_CUBIC: 2, 5055 inOutCubic: 2, 5056 LINEAR: 3, 5057 linear: 3, 5058 IN_BACK_CUBIC: 4, 5059 inBackCubic: 4, 5060 OUT_BACK_CUBIC: 5, 5061 outBackCubic: 5, 5062 INOUT_BACK_CUBIC: 6, 5063 inOutBackCubic: 6, 5064 CUSTOM_CUBIC: 7, 5065 customCubic: 7, 5066 SPRING: 8, 5067 spring: 8, 5068 GENTLE_SPRING: 9, 5069 gentleSpring: 9, 5070 CUSTOM_SPRING: 10, 5071 customSpring: 10, 5072 SPRING_PRESET_ONE: 11, 5073 springPresetOne: 11, 5074 SPRING_PRESET_TWO: 12, 5075 springPresetTwo: 12, 5076 SPRING_PRESET_THREE: 13, 5077 springPresetThree: 13, 5078 // For backwards compat 5079 bezier: 100, 5080 BEZIER: 100 5081 }; 5082 var InterpolationType = { 5083 HOLD: 0, 5084 hold: 0, 5085 BEZIER: 1, 5086 bezier: 1 5087 }; 5088 var KeyframeOperation = { 5089 SET: 0, 5090 set: 0, 5091 SCALE: 1, 5092 scale: 1, 5093 OFFSET: 2, 5094 offset: 2 5095 }; 5096 var KeyframeBindingTopLevelField = { 5097 MISSING: 0, 5098 PARAMETER_CONSUMPTION_MAP: 1, 5099 EFFECTS: 2, 5100 effects: 2 5101 }; 5102 var TextElementGrouping = { 5103 CHARACTER: 0, 5104 CHARACTER_NO_WHITESPACE: 1, 5105 WORD: 2, 5106 LINE: 3, 5107 PARAGRAPH: 4 5108 }; 5109 var TextElementDelayOrder = { 5110 LEFT_RIGHT: 0, 5111 RIGHT_LEFT: 1, 5112 CENTER_OUT: 2, 5113 RANDOM: 3 5114 }; 5115 var PresetGeneratedEffectType = { 5116 LAYER_BLUR: 0 5117 }; 5118 var ParameterField = { 5119 MISSING: 0, 5120 missing: 0, 5121 CORNER_RADIUS: 1, 5122 cornerRadius: 1, 5123 PARAGRAPH_SPACING: 2, 5124 paragraphSpacing: 2, 5125 PARAGRAPH_INDENT: 3, 5126 paragraphIndent: 3, 5127 STROKE_WEIGHT: 4, 5128 strokeWeight: 4, 5129 STACK_SPACING: 5, 5130 stackSpacing: 5, 5131 STACK_PADDING_LEFT: 6, 5132 stackPaddingLeft: 6, 5133 STACK_PADDING_TOP: 7, 5134 stackPaddingTop: 7, 5135 STACK_PADDING_RIGHT: 8, 5136 stackPaddingRight: 8, 5137 STACK_PADDING_BOTTOM: 9, 5138 stackPaddingBottom: 9, 5139 VISIBLE: 10, 5140 visible: 10, 5141 TEXT_DATA: 11, 5142 textData: 11, 5143 WIDTH: 12, 5144 width: 12, 5145 HEIGHT: 13, 5146 height: 13, 5147 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 5148 rectangleTopLeftCornerRadius: 14, 5149 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 5150 rectangleTopRightCornerRadius: 15, 5151 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 5152 rectangleBottomLeftCornerRadius: 16, 5153 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 5154 rectangleBottomRightCornerRadius: 17, 5155 BORDER_TOP_WEIGHT: 18, 5156 borderTopWeight: 18, 5157 BORDER_BOTTOM_WEIGHT: 19, 5158 borderBottomWeight: 19, 5159 BORDER_LEFT_WEIGHT: 20, 5160 borderLeftWeight: 20, 5161 BORDER_RIGHT_WEIGHT: 21, 5162 borderRightWeight: 21, 5163 VARIANT_PROPERTIES: 22, 5164 variantProperties: 22, 5165 STACK_COUNTER_SPACING: 23, 5166 stackCounterSpacing: 23, 5167 MIN_WIDTH: 24, 5168 minWidth: 24, 5169 MAX_WIDTH: 25, 5170 maxWidth: 25, 5171 MIN_HEIGHT: 26, 5172 minHeight: 26, 5173 MAX_HEIGHT: 27, 5174 maxHeight: 27, 5175 FONT_FAMILY: 28, 5176 fontFamily: 28, 5177 FONT_STYLE: 29, 5178 fontStyle: 29, 5179 FONT_VARIATIONS: 30, 5180 fontVariations: 30, 5181 OPACITY: 31, 5182 opacity: 31, 5183 FONT_SIZE: 32, 5184 fontSize: 32, 5185 LETTER_SPACING: 34, 5186 letterSpacing: 34, 5187 LINE_HEIGHT: 36, 5188 lineHeight: 36, 5189 OVERRIDDEN_SYMBOL_ID: 37, 5190 overriddenSymbolId: 37, 5191 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 5192 cmsSerializedRichTextData: 38, 5193 HYPERLINK: 39, 5194 hyperlink: 39, 5195 SLOT_CONTENT_ID: 40, 5196 slotContentId: 40, 5197 GRID_ROW_GAP: 41, 5198 gridRowGap: 41, 5199 GRID_COLUMN_GAP: 42, 5200 gridColumnGap: 42, 5201 RELATIVE_X_POSITION: 43, 5202 xPosition: 43, 5203 RELATIVE_Y_POSITION: 44, 5204 relativeYPosition: 44, 5205 RELATIVE_ROTATION: 45, 5206 relativeRotation: 45, 5207 MOTION_TRANSLATION_X: 46, 5208 motionTranslationX: 46, 5209 MOTION_TRANSLATION_Y: 47, 5210 motionTranslationY: 47, 5211 MOTION_ROTATION: 48, 5212 motionRotation: 48, 5213 MOTION_SCALE_X: 49, 5214 motionScaleX: 49, 5215 MOTION_SCALE_Y: 50, 5216 motionScaleY: 50, 5217 MOTION_SHEAR: 51, 5218 motionShear: 51, 5219 SCROLL_OFFSET_X: 52, 5220 scrollOffsetX: 52, 5221 SCROLL_OFFSET_Y: 53, 5222 scrollOffsetY: 53, 5223 PATH_TRIM_START: 54, 5224 pathTrimStart: 54, 5225 PATH_TRIM_END: 55, 5226 pathTrimEnd: 55, 5227 DISSOLVE_PROGRESS: 56, 5228 dissolveProgress: 56 5229 }; 5230 var EffectParametrizedField = { 5231 MISSING: 0, 5232 missing: 0, 5233 OFFSET_X: 1, 5234 offsetX: 1, 5235 OFFSET_Y: 2, 5236 offsetY: 2, 5237 RADIUS: 3, 5238 radius: 3, 5239 SPREAD: 4, 5240 spread: 4, 5241 COLOR: 5, 5242 color: 5, 5243 REFRACTION_RADIUS: 6, 5244 refractionRadius: 6, 5245 SPECULAR_ANGLE: 7, 5246 specularAngle: 7, 5247 SPECULAR_INTENSITY: 8, 5248 specularIntensity: 8, 5249 CHROMATIC_ABERRATION: 9, 5250 chromaticAberration: 9, 5251 SPLAY: 10, 5252 splay: 10, 5253 REFRACTION_INTENSITY: 11, 5254 refractionIntensity: 11, 5255 START_RADIUS: 12, 5256 startRadius: 12, 5257 START_OFFSET_X: 13, 5258 startOffsetX: 13, 5259 START_OFFSET_Y: 14, 5260 startOffsetY: 14, 5261 END_OFFSET_X: 15, 5262 endOffsetX: 15, 5263 END_OFFSET_Y: 16, 5264 endOffsetY: 16, 5265 NOISE_SIZE_X: 17, 5266 noiseSizeX: 17, 5267 NOISE_SIZE_Y: 18, 5268 noiseSizeY: 18, 5269 DENSITY: 19, 5270 density: 19, 5271 EFFECT_OPACITY: 20, 5272 effectOpacity: 20, 5273 SECONDARY_COLOR: 21, 5274 secondaryColor: 21 5275 }; 5276 var Keyframe = class { 5277 constructor(data) { 5278 this.timelinePosition = Math.round(data.timelinePosition); 5279 this.easing = data.easing; 5280 this.value = data.value; 5281 } 5282 }; 5283 var KeyframeTrack = class { 5284 constructor(data) { 5285 this.topLevelField = data.topLevelField; 5286 this.parameterField = data.parameterField; 5287 this.index = data.index; 5288 this.effectParametrizedField = data.effectParametrizedField; 5289 this.keyframeOperation = data.keyframeOperation; 5290 this.keyframes = data.keyframes; 5291 this.enabled = !!data.enabled; 5292 } 5293 }; 5294 var AnimationPreset = class { 5295 constructor(data) { 5296 this.nodeId = data.nodeId; 5297 this.keyframeTracks = data.keyframeTracks; 5298 this.textElementDelayBehaviour = data.textElementDelayBehaviour; 5299 this.effects = data.effects; 5300 } 5301 }; 5302 var PARAMETER_FIELD_ALIAS_MAP = { 5303 translateX: ParameterField.MOTION_TRANSLATION_X, 5304 translateY: ParameterField.MOTION_TRANSLATION_Y, 5305 rotate: ParameterField.MOTION_ROTATION, 5306 scaleX: ParameterField.MOTION_SCALE_X, 5307 scaleY: ParameterField.MOTION_SCALE_Y, 5308 shear: ParameterField.MOTION_SHEAR 5309 }; 5310 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 5311 var MODE_TO_OPERATION = { 5312 set: KeyframeOperation.SET, 5313 SET: KeyframeOperation.SET, 5314 offset: KeyframeOperation.OFFSET, 5315 OFFSET: KeyframeOperation.OFFSET, 5316 scale: KeyframeOperation.SCALE, 5317 SCALE: KeyframeOperation.SCALE 5318 }; 5319 var TEXT_ELEMENTS_TARGET = /* @__PURE__ */ Symbol("figma.motion.textElements"); 5320 var LAYER_BLUR_EFFECT = /* @__PURE__ */ Symbol("figma.motion.layerBlur"); 5321 function normalizeEasing(easing) { 5322 if (easing === void 0) return void 0; 5323 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 5324 if (typeof easing === "string") { 5325 const easingType = EasingType[easing]; 5326 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 5327 return { easingType }; 5328 } 5329 return easing; 5330 } 5331 function compileKeyframe({ timelinePosition, value, easing }) { 5332 return new Keyframe({ 5333 timelinePosition: timelinePosition * 1e6, 5334 easing: normalizeEasing(easing), 5335 value 5336 }); 5337 } 5338 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 5339 if (duration < 0) throw new Error("tween: duration must be non-negative"); 5340 return { 5341 mode, 5342 enabled, 5343 keyframes: [ 5344 { timelinePosition, value: from, easing }, 5345 { timelinePosition: timelinePosition + duration, value: to, easing } 5346 ] 5347 }; 5348 } 5349 function animate(target, definition) { 5350 const isTextElementsTarget = target?.[TEXT_ELEMENTS_TARGET] === true; 5351 const node = isTextElementsTarget ? target.node : target; 5352 const nodeId = typeof node === "string" ? node : node.id;
5353 const keyframeTracks = []; 5354 const effects = []; 5355 let textElementDelayBehaviour = isTextElementsTarget ? target.textElementDelayBehaviour : void 0; 5356 for (const [key, trackDef] of Object.entries(definition)) { 5357 if (key === "nodeFields") { 5358 textElementDelayBehaviour = parseNodeFields(trackDef).textElementDelayBehaviour; 5359 continue; 5360 } 5361 if (key === "effects") { 5362 if (!Array.isArray(trackDef)) { 5363 throw new Error('animate: "effects" must be an array'); 5364 } 5365 if (trackDef.length > 1) { 5366 throw new Error("animate: at most one layer blur effect per preset is supported"); 5367 } 5368 for (const effect of trackDef) { 5369 if (effect?.[LAYER_BLUR_EFFECT] !== true) { 5370 throw new Error("animate: unsupported effect descriptor"); 5371 } 5372 const effectIndex = effects.length; 5373 const radiusTrack = effect.radius; 5374 const operation2 = MODE_TO_OPERATION[radiusTrack?.mode]; 5375 if (operation2 === void 0) { 5376 throw new Error("animate: layerBlur radius must be a track definition"); 5377 } 5378 const enabled = radiusTrack.enabled !== false; 5379 const seen2 = /* @__PURE__ */ new Map(); 5380 for (const kf of radiusTrack.keyframes) seen2.set(kf.timelinePosition, kf); 5381 const sorted2 = [...seen2.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 5382 effects.push({ 5383 type: PresetGeneratedEffectType.LAYER_BLUR, 5384 radius: enabled && operation2 === KeyframeOperation.SCALE ? 1 : 0 5385 }); 5386 keyframeTracks.push(new KeyframeTrack({ 5387 topLevelField: KeyframeBindingTopLevelField.EFFECTS, 5388 index: effectIndex, 5389 effectParametrizedField: EffectParametrizedField.RADIUS, 5390 keyframeOperation: operation2, 5391 keyframes: sorted2.map(compileKeyframe), 5392 enabled 5393 })); 5394 } 5395 continue; 5396 } 5397 if (!KEYFRAMEABLE_FIELDS.has(key)) { 5398 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 5399 } 5400 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 5401 const operation = MODE_TO_OPERATION[trackDef.mode]; 5402 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 5403 const seen = /* @__PURE__ */ new Map(); 5404 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 5405 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 5406 keyframeTracks.push(new KeyframeTrack({ 5407 parameterField, 5408 keyframeOperation: operation, 5409 keyframes: sorted.map(compileKeyframe), 5410 enabled: trackDef.enabled !== false 5411 })); 5412 } 5413 return new AnimationPreset({ 5414 nodeId, 5415 keyframeTracks, 5416 textElementDelayBehaviour, 5417 effects: effects.length > 0 ? effects : void 0 5418 }); 5419 } 5420 function parseTextElementDelayBehaviour(value) { 5421 if (value === null || typeof value !== "object" || Array.isArray(value)) { 5422 throw new Error('animate: "textElementDelayBehaviour" must be an object'); 5423 } 5424 if (typeof value.enabled !== "boolean") { 5425 throw new Error('animate: "textElementDelayBehaviour.enabled" must be a boolean'); 5426 } 5427 const grouping = TextElementGrouping[value.grouping]; 5428 if (!Object.values(TextElementGrouping).includes(grouping)) { 5429 throw new Error('animate: unknown text element grouping "' + value.grouping + '"'); 5430 } 5431 if (typeof value.delayMs !== "number" || !Number.isFinite(value.delayMs) || value.delayMs < 0) { 5432 throw new Error( 5433 'animate: "textElementDelayBehaviour.delayMs" must be a non-negative finite number' 5434 ); 5435 } 5436 const order = TextElementDelayOrder[value.order]; 5437 if (!Object.values(TextElementDelayOrder).includes(order)) { 5438 throw new Error('animate: unknown text element delay order "' + value.order + '"'); 5439 } 5440 const clipContent = value.clipContent === void 0 ? false : value.clipContent; 5441 if (typeof clipContent !== "boolean") { 5442 throw new Error('animate: "textElementDelayBehaviour.clipContent" must be a boolean'); 5443 } 5444 return { 5445 enabled: value.enabled, 5446 grouping, 5447 delayMs: value.delayMs, 5448 order, 5449 clipContent 5450 }; 5451 } 5452 function parseNodeFields(value) { 5453 if (value === null || typeof value !== "object" || Array.isArray(value)) { 5454 throw new Error('animate: "nodeFields" must be an object'); 5455 } 5456 const unsupported = Object.keys(value).find((key) => key !== "textElementDelayBehaviour"); 5457 if (unsupported !== void 0) { 5458 throw new Error('animate: unknown node field "' + unsupported + '"'); 5459 } 5460 return { 5461 textElementDelayBehaviour: value.textElementDelayBehaviour === void 0 ? void 0 : parseTextElementDelayBehaviour(value.textElementDelayBehaviour) 5462 }; 5463 } 5464 5465
5465// share/motion/src/presets/source/path_travel.ts 5466 function preset({ 5467 duration, 5468 direction, 5469 segmentLength, 5470 loops, 5471 loopMode, 5472 target 5473 }) { 5474 const segment = segmentLength / 100; 5475 const easing = { easingType: EasingType.LINEAR }; 5476 if (loopMode === "circle") { 5477 if (direction === "forward") { 5478 return [ 5479 animate(target, { 5480 pathTrimStart: tween({ mode: "set", duration, from: 0, to: loops, easing }), 5481 pathTrimEnd: tween({ 5482 mode: "set", 5483 duration, 5484 from: segment, 5485 to: segment + loops, 5486 easing 5487 }) 5488 }) 5489 ]; 5490 } else { 5491 return [ 5492 animate(target, { 5493 pathTrimStart: tween({ 5494 mode: "set", 5495 duration, 5496 from: 1 - segment, 5497 to: 1 - segment - loops, 5498 easing 5499 }), 5500 pathTrimEnd: tween({ mode: "set", duration, from: 1, to: 1 - loops, easing }) 5501 }) 5502 ]; 5503 } 5504 } 5505 const startKeyframes = []; 5506 const endKeyframes = []; 5507 const timePerLoop = duration / loops; 5508 if (direction === "forward") { 5509 for (let i = 0; i < loops; i++) { 5510 const loopStartTime = i * timePerLoop; 5511 const loopMidTime = loopStartTime + timePerLoop / 2; 5512 const loopEndTime = loopStartTime + timePerLoop; 5513 startKeyframes.push({ timelinePosition: loopStartTime, value: 0, easing }); 5514 startKeyframes.push({ timelinePosition: loopMidTime, value: 1 - segment, easing }); 5515 startKeyframes.push({ timelinePosition: loopEndTime, value: 0, easing }); 5516 endKeyframes.push({ timelinePosition: loopStartTime, value: segment, easing }); 5517 endKeyframes.push({ timelinePosition: loopMidTime, value: 1, easing }); 5518 endKeyframes.push({ timelinePosition: loopEndTime, value: segment, easing }); 5519 } 5520 } else { 5521 for (let i = 0; i < loops; i++) { 5522 const loopStartTime = i * timePerLoop; 5523 const loopMidTime = loopStartTime + timePerLoop / 2; 5524 const loopEndTime = loopStartTime + timePerLoop; 5525 startKeyframes.push({ timelinePosition: loopStartTime, value: 1 - segment, easing }); 5526 startKeyframes.push({ timelinePosition: loopMidTime, value: 0, easing }); 5527 startKeyframes.push({ timelinePosition: loopEndTime, value: 1 - segment, easing }); 5528 endKeyframes.push({ timelinePosition: loopStartTime, value: 1, easing }); 5529 endKeyframes.push({ timelinePosition: loopMidTime, value: segment, easing }); 5530 endKeyframes.push({ timelinePosition: loopEndTime, value: 1, easing }); 5531 } 5532 } 5533 return [ 5534 animate(target, { 5535 pathTrimStart: { mode: "set", keyframes: startKeyframes }, 5536 pathTrimEnd: { mode: "set", keyframes: endKeyframes } 5537 }) 5538 ]; 5539 } 5540 defineProperties(preset, { 5541 duration: { 5542 label: "Duration", 5543 type: "number", 5544 defaultValue: 0.5, 5545 control: "input", 5546 min: 0.01, 5547 unit: "s" 5548 }, 5549 direction: { 5550 label: "Direction", 5551 type: "string", 5552 defaultValue: "forward", 5553 control: "select", 5554 options: [ 5555 { value: "forward", label: "Forward" }, 5556 { value: "reverse", label: "Reverse" } 5557 ] 5558 }, 5559 loopMode: { 5560 label: "Loop Mode", 5561 type: "string", 5562 defaultValue: "circle", 5563 control: "select", 5564 options: [ 5565 { value: "circle", label: "Circle Back" }, 5566 { value: "retrace", label: "Retrace Path" } 5567 ] 5568 }, 5569 segmentLength: { 5570 label: "Segment Length", 5571 type: "number", 5572 defaultValue: 20, 5573 control: "input", 5574 min: 0, 5575 max: 100, 5576 unit: "%" 5577 }, 5578 loops: { 5579 label: "Loops", 5580 type: "number", 5581 defaultValue: 1, 5582 control: "input", 5583 min: 1 5584 } 5585 }); 5586 return __toCommonJS(path_travel_exports); 5587})();`});var R0,A0,y0=nn(()=>{R0=`// Source-of-truth for the POSITION first-party animation preset. 5588// 5589// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 5590// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 5591// resolved, and emits both strings into \`../generated/position.generated.ts\`. 5592// The generated module is what runtime code consumes \u2014 never import this file
5593// directly from production code paths. 5594// 5595// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 5596// only an input to the codegen tool, evaluated inside the QuickJS / iframe 5597// sandbox at runtime. 5598 5599import { animate, defineProperties, EasingType, tween } from 'figma:motion' 5600 5601import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 5602 5603function buildAxisTrack(from: number, to: number, duration: number, easing: unknown) { 5604 return tween({ 5605 mode: 'offset', 5606 timelinePosition: 0, 5607 duration, 5608 from, 5609 to, 5610 easing, 5611 }) 5612} 5613 5614export default function preset({ 5615 type, 5616 direction, 5617 distance, 5618 axis, 5619 startX, 5620 startY, 5621 endX, 5622 endY, 5623 duration, 5624 easing, 5625 node, 5626}: PresetArgs) { 5627 const safeDistance = typeof distance === 'number' ? distance : 0 5628 const safeStartX = typeof startX === 'number' ? startX : 200 5629 const safeStartY = typeof startY === 'number' ? startY : 200 5630 const safeEndX = typeof endX === 'number' ? endX : 0 5631 const safeEndY = typeof endY === 'number' ? endY : 0 5632 const safeDuration = typeof duration === 'number' ? duration : 0.5 5633 5634 const directionalOffsets: Record<string, [number, number]> = { 5635 left: [-safeDistance, 0], 5636 right: [safeDistance, 0], 5637 top: [0, -safeDistance], 5638 bottom: [0, safeDistance], 5639 top_left: [-safeDistance, -safeDistance], 5640 top_right: [safeDistance, -safeDistance], 5641 bottom_left: [-safeDistance, safeDistance], 5642 bottom_right: [safeDistance, safeDistance], 5643 } 5644 5645 const [offsetX, offsetY] = directionalOffsets[direction] ?? [0, 0] 5646 5647 let xTrack: [number, number] | null = null 5648 let yTrack: [number, number] | null = null 5649 5650 switch (type) { 5651 case 'slide_in': { 5652 xTrack = [offsetX, 0] 5653 yTrack = [offsetY, 0] 5654 break 5655 } 5656 case 'slide_out': { 5657 xTrack = [0, offsetX] 5658 yTrack = [0, offsetY] 5659 break 5660 } 5661 case 'custom': { 5662 switch (axis) { 5663 case 'x': { 5664 xTrack = [safeStartX, safeEndX] 5665 break 5666 } 5667 case 'y': { 5668 yTrack = [safeStartY, safeEndY] 5669 break 5670 } 5671 case 'xy': 5672 default: { 5673 xTrack = [safeStartX, safeEndX] 5674 yTrack = [safeStartY, safeEndY] 5675 break 5676 } 5677 } 5678 break 5679 } 5680 default: 5681 break 5682 } 5683 5684 const definition: PresetTrackDefinitions = {} 5685 if (xTrack) { 5686 definition.translateX = buildAxisTrack(xTrack[0], xTrack[1], safeDuration, easing) 5687 } 5688 if (yTrack) { 5689 definition.translateY = buildAxisTrack(yTrack[0], yTrack[1], safeDuration, easing) 5690 } 5691 5692 return [animate(node, definition)] 5693} 5694 5695defineProperties(preset, { 5696 type: { 5697 label: 'motion.preset_flyout.type', 5698 type: 'string', 5699 defaultValue: 'slide_in', 5700 control: 'select', 5701 options: [ 5702 { value: 'slide_in', label: 'motion.preset_flyout.position.type.slide_in' }, 5703 { value: 'slide_out', label: 'motion.preset_flyout.position.type.slide_out' }, 5704 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 5705 ], 5706 }, 5707 direction: { 5708 label: 'motion.preset_flyout.direction', 5709 type: 'string', 5710 defaultValue: 'left', 5711 control: 'select', 5712 options: [ 5713 { value: 'left', label: 'motion.preset_flyout.position.direction.left' }, 5714 { value: 'right', label: 'motion.preset_flyout.position.direction.right' }, 5715 { value: 'top', label: 'motion.preset_flyout.position.direction.top' }, 5716 { value: 'bottom', label: 'motion.preset_flyout.position.direction.bottom' }, 5717 { value: 'top_left', label: 'motion.preset_flyout.top_left' }, 5718 { value: 'top_right', label: 'motion.preset_flyout.top_right' }, 5719 { value: 'bottom_left', label: 'motion.preset_flyout.bottom_left' }, 5720 { value: 'bottom_right', label: 'motion.preset_flyout.bottom_right' }, 5721 ], 5722 }, 5723 distance: { 5724 label: 'motion.preset_flyout.position.distance', 5725 type: 'number', 5726 control: 'input', 5727 defaultValue: 200, 5728 unit: 'px', 5729 }, 5730 axis: { 5731 label: 'motion.preset_flyout.axis', 5732 type: 'string', 5733 defaultValue: 'xy', 5734 control: 'select', 5735 options: [ 5736 { value: 'x', label: 'motion.preset_flyout.x' }, 5737 { value: 'y', label: 'motion.preset_flyout.y' }, 5738 { value: 'xy', label: 'motion.preset_flyout.both' }, 5739 ], 5740 },
5741 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 5742 // are redundant \u2014 section dividers are now applied client-side in the preset 5743 // flyout via \`forceShowDividerAboveTransform\` 5744 startX: { 5745 label: 'motion.preset_flyout.start', 5746 type: 'number', 5747 control: 'input', 5748 defaultValue: 200, 5749 showDividerAbove: true, 5750 icon: 'x', 5751 }, 5752 startY: { 5753 label: 'motion.preset_flyout.start', 5754 type: 'number', 5755 control: 'input', 5756 defaultValue: 200, 5757 icon: 'y', 5758 }, 5759 endX: { 5760 label: 'motion.preset_flyout.end', 5761 type: 'number', 5762 control: 'input', 5763 defaultValue: 0, 5764 icon: 'x', 5765 }, 5766 endY: { 5767 label: 'motion.preset_flyout.end', 5768 type: 'number', 5769 control: 'input', 5770 defaultValue: 0, 5771 icon: 'y', 5772 }, 5773 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 5774 delay: { 5775 label: 'motion.preset_flyout.delay', 5776 type: 'number', 5777 control: 'input', 5778 defaultValue: 0, 5779 unit: 's', 5780 showDividerAbove: true, 5781 icon: 'delay', 5782 }, 5783 duration: { 5784 label: 'motion.preset_flyout.duration', 5785 type: 'number', 5786 control: 'input', 5787 defaultValue: 0.5, 5788 min: 0.01, 5789 unit: 's', 5790 icon: 'time', 5791 }, 5792 easing: { 5793 label: 'motion.preset_flyout.easing', 5794 type: 'easing', 5795 defaultValue: { 5796 easingType: EasingType.OUT_CUBIC, 5797 }, 5798 }, 5799}) 5800`,A0=`var __presetBundle = (() => { 5801 var __defProp = Object.defineProperty; 5802 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 5803 var __getOwnPropNames = Object.getOwnPropertyNames; 5804 var __hasOwnProp = Object.prototype.hasOwnProperty; 5805 var __export = (target, all) => { 5806 for (var name in all) 5807 __defProp(target, name, { get: all[name], enumerable: true }); 5808 }; 5809 var __copyProps = (to, from, except, desc) => { 5810 if (from && typeof from === "object" || typeof from === "function") { 5811 for (let key of __getOwnPropNames(from)) 5812 if (!__hasOwnProp.call(to, key) && key !== except) 5813 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 5814 } 5815 return to; 5816 }; 5817 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 5818 5819
5819// share/motion/src/presets/source/position.ts 5820 var position_exports = {}; 5821 __export(position_exports, { 5822 default: () => preset 5823 }); 5824 5825 // figma-motion:figma:motion 5826 function defineProperties(component, spec) { 5827 Object.assign(component, { 5828 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 5829 }); 5830 } 5831 var EasingType = { 5832 IN_CUBIC: 0, 5833 inCubic: 0, 5834 OUT_CUBIC: 1, 5835 outCubic: 1, 5836 INOUT_CUBIC: 2, 5837 inOutCubic: 2, 5838 LINEAR: 3, 5839 linear: 3, 5840 IN_BACK_CUBIC: 4, 5841 inBackCubic: 4, 5842 OUT_BACK_CUBIC: 5, 5843 outBackCubic: 5, 5844 INOUT_BACK_CUBIC: 6, 5845 inOutBackCubic: 6, 5846 CUSTOM_CUBIC: 7, 5847 customCubic: 7, 5848 SPRING: 8, 5849 spring: 8, 5850 GENTLE_SPRING: 9, 5851 gentleSpring: 9, 5852 CUSTOM_SPRING: 10, 5853 customSpring: 10, 5854 SPRING_PRESET_ONE: 11, 5855 springPresetOne: 11, 5856 SPRING_PRESET_TWO: 12, 5857 springPresetTwo: 12, 5858 SPRING_PRESET_THREE: 13, 5859 springPresetThree: 13, 5860 // For backwards compat 5861 bezier: 100, 5862 BEZIER: 100 5863 }; 5864 var InterpolationType = { 5865 HOLD: 0, 5866 hold: 0, 5867 BEZIER: 1, 5868 bezier: 1 5869 }; 5870 var KeyframeOperation = { 5871 SET: 0, 5872 set: 0, 5873 SCALE: 1, 5874 scale: 1, 5875 OFFSET: 2, 5876 offset: 2 5877 }; 5878 var KeyframeBindingTopLevelField = { 5879 MISSING: 0, 5880 PARAMETER_CONSUMPTION_MAP: 1, 5881 EFFECTS: 2, 5882 effects: 2 5883 }; 5884 var TextElementGrouping = { 5885 CHARACTER: 0, 5886 CHARACTER_NO_WHITESPACE: 1, 5887 WORD: 2, 5888 LINE: 3, 5889 PARAGRAPH: 4 5890 }; 5891 var TextElementDelayOrder = { 5892 LEFT_RIGHT: 0, 5893 RIGHT_LEFT: 1, 5894 CENTER_OUT: 2, 5895 RANDOM: 3 5896 }; 5897 var PresetGeneratedEffectType = { 5898 LAYER_BLUR: 0 5899 }; 5900 var ParameterField = { 5901 MISSING: 0, 5902 missing: 0, 5903 CORNER_RADIUS: 1, 5904 cornerRadius: 1, 5905 PARAGRAPH_SPACING: 2, 5906 paragraphSpacing: 2, 5907 PARAGRAPH_INDENT: 3, 5908 paragraphIndent: 3, 5909 STROKE_WEIGHT: 4, 5910 strokeWeight: 4, 5911 STACK_SPACING: 5, 5912 stackSpacing: 5, 5913 STACK_PADDING_LEFT: 6, 5914 stackPaddingLeft: 6, 5915 STACK_PADDING_TOP: 7, 5916 stackPaddingTop: 7, 5917 STACK_PADDING_RIGHT: 8, 5918 stackPaddingRight: 8, 5919 STACK_PADDING_BOTTOM: 9, 5920 stackPaddingBottom: 9, 5921 VISIBLE: 10, 5922 visible: 10, 5923 TEXT_DATA: 11, 5924 textData: 11, 5925 WIDTH: 12, 5926 width: 12, 5927 HEIGHT: 13, 5928 height: 13, 5929 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 5930 rectangleTopLeftCornerRadius: 14, 5931 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 5932 rectangleTopRightCornerRadius: 15, 5933 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 5934 rectangleBottomLeftCornerRadius: 16, 5935 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 5936 rectangleBottomRightCornerRadius: 17, 5937 BORDER_TOP_WEIGHT: 18, 5938 borderTopWeight: 18, 5939 BORDER_BOTTOM_WEIGHT: 19, 5940 borderBottomWeight: 19, 5941 BORDER_LEFT_WEIGHT: 20, 5942 borderLeftWeight: 20, 5943 BORDER_RIGHT_WEIGHT: 21, 5944 borderRightWeight: 21, 5945 VARIANT_PROPERTIES: 22, 5946 variantProperties: 22, 5947 STACK_COUNTER_SPACING: 23, 5948 stackCounterSpacing: 23, 5949 MIN_WIDTH: 24, 5950 minWidth: 24, 5951 MAX_WIDTH: 25, 5952 maxWidth: 25, 5953 MIN_HEIGHT: 26, 5954 minHeight: 26, 5955 MAX_HEIGHT: 27, 5956 maxHeight: 27, 5957 FONT_FAMILY: 28, 5958 fontFamily: 28, 5959 FONT_STYLE: 29, 5960 fontStyle: 29, 5961 FONT_VARIATIONS: 30, 5962 fontVariations: 30, 5963 OPACITY: 31, 5964 opacity: 31, 5965 FONT_SIZE: 32, 5966 fontSize: 32, 5967 LETTER_SPACING: 34, 5968 letterSpacing: 34, 5969 LINE_HEIGHT: 36, 5970 lineHeight: 36, 5971 OVERRIDDEN_SYMBOL_ID: 37, 5972 overriddenSymbolId: 37, 5973 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 5974 cmsSerializedRichTextData: 38, 5975 HYPERLINK: 39, 5976 hyperlink: 39, 5977 SLOT_CONTENT_ID: 40, 5978 slotContentId: 40, 5979 GRID_ROW_GAP: 41, 5980 gridRowGap: 41, 5981 GRID_COLUMN_GAP: 42, 5982 gridColumnGap: 42, 5983 RELATIVE_X_POSITION: 43, 5984 xPosition: 43, 5985 RELATIVE_Y_POSITION: 44, 5986 relativeYPosition: 44, 5987 RELATIVE_ROTATION: 45, 5988 relativeRotation: 45, 5989 MOTION_TRANSLATION_X: 46, 5990 motionTranslationX: 46, 5991 MOTION_TRANSLATION_Y: 47, 5992 motionTranslationY: 47, 5993 MOTION_ROTATION: 48, 5994 motionRotation: 48, 5995 MOTION_SCALE_X: 49, 5996 motionScaleX: 49, 5997 MOTION_SCALE_Y: 50, 5998 motionScaleY: 50, 5999 MOTION_SHEAR: 51, 6000 motionShear: 51, 6001 SCROLL_OFFSET_X: 52, 6002 scrollOffsetX: 52, 6003 SCROLL_OFFSET_Y: 53, 6004 scrollOffsetY: 53, 6005 PATH_TRIM_START: 54, 6006 pathTrimStart: 54, 6007 PATH_TRIM_END: 55, 6008 pathTrimEnd: 55, 6009 DISSOLVE_PROGRESS: 56, 6010 dissolveProgress: 56 6011 }; 6012 var EffectParametrizedField = { 6013 MISSING: 0, 6014 missing: 0, 6015 OFFSET_X: 1, 6016 offsetX: 1, 6017 OFFSET_Y: 2, 6018 offsetY: 2, 6019 RADIUS: 3, 6020 radius: 3, 6021 SPREAD: 4, 6022 spread: 4, 6023 COLOR: 5, 6024 color: 5, 6025 REFRACTION_RADIUS: 6, 6026 refractionRadius: 6, 6027 SPECULAR_ANGLE: 7, 6028 specularAngle: 7, 6029 SPECULAR_INTENSITY: 8, 6030 specularIntensity: 8, 6031 CHROMATIC_ABERRATION: 9, 6032 chromaticAberration: 9, 6033 SPLAY: 10, 6034 splay: 10, 6035 REFRACTION_INTENSITY: 11, 6036 refractionIntensity: 11, 6037 START_RADIUS: 12, 6038 startRadius: 12, 6039 START_OFFSET_X: 13, 6040 startOffsetX: 13, 6041 START_OFFSET_Y: 14, 6042 startOffsetY: 14, 6043 END_OFFSET_X: 15, 6044 endOffsetX: 15, 6045 END_OFFSET_Y: 16, 6046 endOffsetY: 16, 6047 NOISE_SIZE_X: 17, 6048 noiseSizeX: 17, 6049 NOISE_SIZE_Y: 18, 6050 noiseSizeY: 18, 6051 DENSITY: 19, 6052 density: 19, 6053 EFFECT_OPACITY: 20, 6054 effectOpacity: 20, 6055 SECONDARY_COLOR: 21, 6056 secondaryColor: 21 6057 }; 6058 var Keyframe = class { 6059 constructor(data) { 6060 this.timelinePosition = Math.round(data.timelinePosition); 6061 this.easing = data.easing; 6062 this.value = data.value; 6063 } 6064 }; 6065 var KeyframeTrack = class { 6066 constructor(data) { 6067 this.topLevelField = data.topLevelField; 6068 this.parameterField = data.parameterField; 6069 this.index = data.index; 6070 this.effectParametrizedField = data.effectParametrizedField; 6071 this.keyframeOperation = data.keyframeOperation; 6072 this.keyframes = data.keyframes; 6073 this.enabled = !!data.enabled; 6074 } 6075 }; 6076 var AnimationPreset = class { 6077 constructor(data) { 6078 this.nodeId = data.nodeId; 6079 this.keyframeTracks = data.keyframeTracks; 6080 this.textElementDelayBehaviour = data.textElementDelayBehaviour; 6081 this.effects = data.effects; 6082 } 6083 }; 6084 var PARAMETER_FIELD_ALIAS_MAP = { 6085 translateX: ParameterField.MOTION_TRANSLATION_X, 6086 translateY: ParameterField.MOTION_TRANSLATION_Y, 6087 rotate: ParameterField.MOTION_ROTATION, 6088 scaleX: ParameterField.MOTION_SCALE_X, 6089 scaleY: ParameterField.MOTION_SCALE_Y, 6090 shear: ParameterField.MOTION_SHEAR 6091 }; 6092 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 6093 var MODE_TO_OPERATION = { 6094 set: KeyframeOperation.SET, 6095 SET: KeyframeOperation.SET, 6096 offset: KeyframeOperation.OFFSET, 6097 OFFSET: KeyframeOperation.OFFSET, 6098 scale: KeyframeOperation.SCALE, 6099 SCALE: KeyframeOperation.SCALE 6100 }; 6101 var TEXT_ELEMENTS_TARGET = /* @__PURE__ */ Symbol("figma.motion.textElements"); 6102 var LAYER_BLUR_EFFECT = /* @__PURE__ */ Symbol("figma.motion.layerBlur"); 6103 function normalizeEasing(easing) { 6104 if (easing === void 0) return void 0; 6105 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 6106 if (typeof easing === "string") { 6107 const easingType = EasingType[easing]; 6108 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 6109 return { easingType }; 6110 } 6111 return easing; 6112 } 6113 function compileKeyframe({ timelinePosition, value, easing }) { 6114 return new Keyframe({ 6115 timelinePosition: timelinePosition * 1e6, 6116 easing: normalizeEasing(easing), 6117 value 6118 }); 6119 } 6120 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 6121 if (duration < 0) throw new Error("tween: duration must be non-negative"); 6122 return { 6123 mode, 6124 enabled, 6125 keyframes: [ 6126 { timelinePosition, value: from, easing }, 6127 { timelinePosition: timelinePosition + duration, value: to, easing } 6128 ] 6129 }; 6130 } 6131 function animate(target, definition) { 6132 const isTextElementsTarget = target?.[TEXT_ELEMENTS_TARGET] === true; 6133 const node = isTextElementsTarget ? target.node : target; 6134 const nodeId = typeof node === "string" ? node : node.id;
6135 const keyframeTracks = []; 6136 const effects = []; 6137 let textElementDelayBehaviour = isTextElementsTarget ? target.textElementDelayBehaviour : void 0; 6138 for (const [key, trackDef] of Object.entries(definition)) { 6139 if (key === "nodeFields") { 6140 textElementDelayBehaviour = parseNodeFields(trackDef).textElementDelayBehaviour; 6141 continue; 6142 } 6143 if (key === "effects") { 6144 if (!Array.isArray(trackDef)) { 6145 throw new Error('animate: "effects" must be an array'); 6146 } 6147 if (trackDef.length > 1) { 6148 throw new Error("animate: at most one layer blur effect per preset is supported"); 6149 } 6150 for (const effect of trackDef) { 6151 if (effect?.[LAYER_BLUR_EFFECT] !== true) { 6152 throw new Error("animate: unsupported effect descriptor"); 6153 } 6154 const effectIndex = effects.length; 6155 const radiusTrack = effect.radius; 6156 const operation2 = MODE_TO_OPERATION[radiusTrack?.mode]; 6157 if (operation2 === void 0) { 6158 throw new Error("animate: layerBlur radius must be a track definition"); 6159 } 6160 const enabled = radiusTrack.enabled !== false; 6161 const seen2 = /* @__PURE__ */ new Map(); 6162 for (const kf of radiusTrack.keyframes) seen2.set(kf.timelinePosition, kf); 6163 const sorted2 = [...seen2.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 6164 effects.push({ 6165 type: PresetGeneratedEffectType.LAYER_BLUR, 6166 radius: enabled && operation2 === KeyframeOperation.SCALE ? 1 : 0 6167 }); 6168 keyframeTracks.push(new KeyframeTrack({ 6169 topLevelField: KeyframeBindingTopLevelField.EFFECTS, 6170 index: effectIndex, 6171 effectParametrizedField: EffectParametrizedField.RADIUS, 6172 keyframeOperation: operation2, 6173 keyframes: sorted2.map(compileKeyframe), 6174 enabled 6175 })); 6176 } 6177 continue; 6178 } 6179 if (!KEYFRAMEABLE_FIELDS.has(key)) { 6180 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 6181 } 6182 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 6183 const operation = MODE_TO_OPERATION[trackDef.mode]; 6184 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 6185 const seen = /* @__PURE__ */ new Map(); 6186 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 6187 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 6188 keyframeTracks.push(new KeyframeTrack({ 6189 parameterField, 6190 keyframeOperation: operation, 6191 keyframes: sorted.map(compileKeyframe), 6192 enabled: trackDef.enabled !== false 6193 })); 6194 } 6195 return new AnimationPreset({ 6196 nodeId, 6197 keyframeTracks, 6198 textElementDelayBehaviour, 6199 effects: effects.length > 0 ? effects : void 0 6200 }); 6201 } 6202 function parseTextElementDelayBehaviour(value) { 6203 if (value === null || typeof value !== "object" || Array.isArray(value)) { 6204 throw new Error('animate: "textElementDelayBehaviour" must be an object'); 6205 } 6206 if (typeof value.enabled !== "boolean") { 6207 throw new Error('animate: "textElementDelayBehaviour.enabled" must be a boolean'); 6208 } 6209 const grouping = TextElementGrouping[value.grouping]; 6210 if (!Object.values(TextElementGrouping).includes(grouping)) { 6211 throw new Error('animate: unknown text element grouping "' + value.grouping + '"'); 6212 } 6213 if (typeof value.delayMs !== "number" || !Number.isFinite(value.delayMs) || value.delayMs < 0) { 6214 throw new Error( 6215 'animate: "textElementDelayBehaviour.delayMs" must be a non-negative finite number' 6216 ); 6217 } 6218 const order = TextElementDelayOrder[value.order]; 6219 if (!Object.values(TextElementDelayOrder).includes(order)) { 6220 throw new Error('animate: unknown text element delay order "' + value.order + '"'); 6221 } 6222 const clipContent = value.clipContent === void 0 ? false : value.clipContent; 6223 if (typeof clipContent !== "boolean") { 6224 throw new Error('animate: "textElementDelayBehaviour.clipContent" must be a boolean'); 6225 } 6226 return { 6227 enabled: value.enabled, 6228 grouping, 6229 delayMs: value.delayMs, 6230 order, 6231 clipContent 6232 }; 6233 } 6234 function parseNodeFields(value) { 6235 if (value === null || typeof value !== "object" || Array.isArray(value)) { 6236 throw new Error('animate: "nodeFields" must be an object'); 6237 } 6238 const unsupported = Object.keys(value).find((key) => key !== "textElementDelayBehaviour"); 6239 if (unsupported !== void 0) { 6240 throw new Error('animate: unknown node field "' + unsupported + '"'); 6241 } 6242 return { 6243 textElementDelayBehaviour: value.textElementDelayBehaviour === void 0 ? void 0 : parseTextElementDelayBehaviour(value.textElementDelayBehaviour) 6244 }; 6245 } 6246 6247
6247// share/motion/src/presets/source/position.ts 6248 function buildAxisTrack(from, to, duration, easing) { 6249 return tween({ 6250 mode: "offset", 6251 timelinePosition: 0, 6252 duration, 6253 from, 6254 to, 6255 easing 6256 }); 6257 } 6258 function preset({ 6259 type, 6260 direction, 6261 distance, 6262 axis, 6263 startX, 6264 startY, 6265 endX, 6266 endY, 6267 duration, 6268 easing, 6269 node 6270 }) { 6271 const safeDistance = typeof distance === "number" ? distance : 0; 6272 const safeStartX = typeof startX === "number" ? startX : 200; 6273 const safeStartY = typeof startY === "number" ? startY : 200; 6274 const safeEndX = typeof endX === "number" ? endX : 0; 6275 const safeEndY = typeof endY === "number" ? endY : 0; 6276 const safeDuration = typeof duration === "number" ? duration : 0.5; 6277 const directionalOffsets = { 6278 left: [-safeDistance, 0], 6279 right: [safeDistance, 0], 6280 top: [0, -safeDistance], 6281 bottom: [0, safeDistance], 6282 top_left: [-safeDistance, -safeDistance], 6283 top_right: [safeDistance, -safeDistance], 6284 bottom_left: [-safeDistance, safeDistance], 6285 bottom_right: [safeDistance, safeDistance] 6286 }; 6287 const [offsetX, offsetY] = directionalOffsets[direction] ?? [0, 0]; 6288 let xTrack = null; 6289 let yTrack = null; 6290 switch (type) { 6291 case "slide_in": { 6292 xTrack = [offsetX, 0]; 6293 yTrack = [offsetY, 0]; 6294 break; 6295 } 6296 case "slide_out": { 6297 xTrack = [0, offsetX]; 6298 yTrack = [0, offsetY]; 6299 break; 6300 } 6301 case "custom": { 6302 switch (axis) { 6303 case "x": { 6304 xTrack = [safeStartX, safeEndX]; 6305 break; 6306 } 6307 case "y": { 6308 yTrack = [safeStartY, safeEndY]; 6309 break; 6310 } 6311 case "xy": 6312 default: { 6313 xTrack = [safeStartX, safeEndX]; 6314 yTrack = [safeStartY, safeEndY]; 6315 break; 6316 } 6317 } 6318 break; 6319 } 6320 default: 6321 break; 6322 } 6323 const definition = {}; 6324 if (xTrack) { 6325 definition.translateX = buildAxisTrack(xTrack[0], xTrack[1], safeDuration, easing); 6326 } 6327 if (yTrack) { 6328 definition.translateY = buildAxisTrack(yTrack[0], yTrack[1], safeDuration, easing); 6329 } 6330 return [animate(node, definition)]; 6331 } 6332 defineProperties(preset, { 6333 type: { 6334 label: "motion.preset_flyout.type", 6335 type: "string", 6336 defaultValue: "slide_in", 6337 control: "select", 6338 options: [ 6339 { value: "slide_in", label: "motion.preset_flyout.position.type.slide_in" }, 6340 { value: "slide_out", label: "motion.preset_flyout.position.type.slide_out" }, 6341 { value: "custom", label: "motion.preset_flyout.type.custom" } 6342 ] 6343 }, 6344 direction: { 6345 label: "motion.preset_flyout.direction", 6346 type: "string", 6347 defaultValue: "left", 6348 control: "select", 6349 options: [ 6350 { value: "left", label: "motion.preset_flyout.position.direction.left" }, 6351 { value: "right", label: "motion.preset_flyout.position.direction.right" }, 6352 { value: "top", label: "motion.preset_flyout.position.direction.top" }, 6353 { value: "bottom", label: "motion.preset_flyout.position.direction.bottom" }, 6354 { value: "top_left", label: "motion.preset_flyout.top_left" }, 6355 { value: "top_right", label: "motion.preset_flyout.top_right" }, 6356 { value: "bottom_left", label: "motion.preset_flyout.bottom_left" }, 6357 { value: "bottom_right", label: "motion.preset_flyout.bottom_right" } 6358 ] 6359 }, 6360 distance: { 6361 label: "motion.preset_flyout.position.distance", 6362 type: "number", 6363 control: "input", 6364 defaultValue: 200, 6365 unit: "px" 6366 }, 6367 axis: { 6368 label: "motion.preset_flyout.axis", 6369 type: "string", 6370 defaultValue: "xy", 6371 control: "select", 6372 options: [ 6373 { value: "x", label: "motion.preset_flyout.x" }, 6374 { value: "y", label: "motion.preset_flyout.y" }, 6375 { value: "xy", label: "motion.preset_flyout.both" } 6376 ] 6377 }, 6378 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 6379 // are redundant \u2014 section dividers are now applied client-side in the preset 6380 // flyout via \`forceShowDividerAboveTransform\` 6381 startX: { 6382 label: "motion.preset_flyout.start", 6383 type: "number", 6384 control: "input", 6385 defaultValue: 200, 6386 showDividerAbove: true, 6387 icon: "x" 6388 }, 6389 startY: { 6390 label: "motion.preset_flyout.start", 6391 type: "number", 6392 control: "input", 6393 defaultValue: 200, 6394 icon: "y" 6395 }, 6396 endX: { 6397 label: "motion.preset_flyout.end", 6398 type: "number", 6399 control: "input", 6400 defaultValue: 0, 6401 icon: "x" 6402 }, 6403 endY: { 6404 label: "motion.preset_flyout.end", 6405 type: "number", 6406 control: "input", 6407 defaultValue: 0, 6408 icon: "y" 6409 }, 6410 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 6411 delay: { 6412 label: "motion.preset_flyout.delay", 6413 type: "number", 6414 control: "input", 6415 defaultValue: 0, 6416 unit: "s", 6417 showDividerAbove: true, 6418 icon: "delay" 6419 }, 6420 duration: { 6421 label: "motion.preset_flyout.duration", 6422 type: "number", 6423 control: "input", 6424 defaultValue: 0.5, 6425 min: 0.01, 6426 unit: "s", 6427 icon: "time" 6428 }, 6429 easing: { 6430 label: "motion.preset_flyout.easing", 6431 type: "easing", 6432 defaultValue: { 6433 easingType: EasingType.OUT_CUBIC 6434 } 6435 } 6436 }); 6437 return __toCommonJS(position_exports); 6438})();`});var N0,b0,L0=nn(()=>{N0=`// Source-of-truth for the RESIZE first-party animation preset. 6439// 6440// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 6441// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 6442// resolved, and emits both strings into \`../generated/resize.generated.ts\`. The 6443// generated module is what runtime code consumes \u2014 never import this file
6444// directly from production code paths. 6445// 6446// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 6447// only an input to the codegen tool, evaluated inside the QuickJS / iframe 6448// sandbox at runtime. 6449 6450import { animate, defineProperties, EasingType, tween } from 'figma:motion' 6451 6452import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 6453 6454export default function preset({ widthChange, heightChange, duration, easing, node }: PresetArgs) { 6455 const definition: PresetTrackDefinitions = {} 6456 6457 if (widthChange !== 0) 6458 definition.width = tween({ 6459 mode: 'offset', 6460 duration, 6461 from: 0, 6462 to: widthChange, 6463 easing, 6464 }) 6465 6466 if (heightChange !== 0) 6467 definition.height = tween({ 6468 mode: 'offset', 6469 duration, 6470 from: 0, 6471 to: heightChange, 6472 easing, 6473 }) 6474 6475 return [animate(node, definition)] 6476} 6477 6478defineProperties(preset, { 6479 widthChange: { 6480 label: 'Width Change', 6481 type: 'number', 6482 defaultValue: 100, 6483 control: 'input', 6484 }, 6485 heightChange: { 6486 label: 'Height Change', 6487 type: 'number', 6488 defaultValue: 0, 6489 control: 'input', 6490 }, 6491 duration: { 6492 label: 'Duration', 6493 type: 'number', 6494 defaultValue: 0.5, 6495 control: 'input', 6496 min: 0.01, 6497 unit: 's', 6498 }, 6499 easing: { 6500 label: 'Easing', 6501 type: 'easing', 6502 defaultValue: { 6503 easingType: EasingType.OUT_CUBIC, 6504 }, 6505 }, 6506}) 6507`,b0=`var __presetBundle = (() => { 6508 var __defProp = Object.defineProperty; 6509 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 6510 var __getOwnPropNames = Object.getOwnPropertyNames; 6511 var __hasOwnProp = Object.prototype.hasOwnProperty; 6512 var __export = (target, all) => { 6513 for (var name in all) 6514 __defProp(target, name, { get: all[name], enumerable: true }); 6515 }; 6516 var __copyProps = (to, from, except, desc) => { 6517 if (from && typeof from === "object" || typeof from === "function") { 6518 for (let key of __getOwnPropNames(from)) 6519 if (!__hasOwnProp.call(to, key) && key !== except) 6520 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 6521 } 6522 return to; 6523 }; 6524 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 6525 6526
6526// share/motion/src/presets/source/resize.ts 6527 var resize_exports = {}; 6528 __export(resize_exports, { 6529 default: () => preset 6530 }); 6531 6532 // figma-motion:figma:motion 6533 function defineProperties(component, spec) { 6534 Object.assign(component, { 6535 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 6536 }); 6537 } 6538 var EasingType = { 6539 IN_CUBIC: 0, 6540 inCubic: 0, 6541 OUT_CUBIC: 1, 6542 outCubic: 1, 6543 INOUT_CUBIC: 2, 6544 inOutCubic: 2, 6545 LINEAR: 3, 6546 linear: 3, 6547 IN_BACK_CUBIC: 4, 6548 inBackCubic: 4, 6549 OUT_BACK_CUBIC: 5, 6550 outBackCubic: 5, 6551 INOUT_BACK_CUBIC: 6, 6552 inOutBackCubic: 6, 6553 CUSTOM_CUBIC: 7, 6554 customCubic: 7, 6555 SPRING: 8, 6556 spring: 8, 6557 GENTLE_SPRING: 9, 6558 gentleSpring: 9, 6559 CUSTOM_SPRING: 10, 6560 customSpring: 10, 6561 SPRING_PRESET_ONE: 11, 6562 springPresetOne: 11, 6563 SPRING_PRESET_TWO: 12, 6564 springPresetTwo: 12, 6565 SPRING_PRESET_THREE: 13, 6566 springPresetThree: 13, 6567 // For backwards compat 6568 bezier: 100, 6569 BEZIER: 100 6570 }; 6571 var InterpolationType = { 6572 HOLD: 0, 6573 hold: 0, 6574 BEZIER: 1, 6575 bezier: 1 6576 }; 6577 var KeyframeOperation = { 6578 SET: 0, 6579 set: 0, 6580 SCALE: 1, 6581 scale: 1, 6582 OFFSET: 2, 6583 offset: 2 6584 }; 6585 var KeyframeBindingTopLevelField = { 6586 MISSING: 0, 6587 PARAMETER_CONSUMPTION_MAP: 1, 6588 EFFECTS: 2, 6589 effects: 2 6590 }; 6591 var TextElementGrouping = { 6592 CHARACTER: 0, 6593 CHARACTER_NO_WHITESPACE: 1, 6594 WORD: 2, 6595 LINE: 3, 6596 PARAGRAPH: 4 6597 }; 6598 var TextElementDelayOrder = { 6599 LEFT_RIGHT: 0, 6600 RIGHT_LEFT: 1, 6601 CENTER_OUT: 2, 6602 RANDOM: 3 6603 }; 6604 var PresetGeneratedEffectType = { 6605 LAYER_BLUR: 0 6606 }; 6607 var ParameterField = { 6608 MISSING: 0, 6609 missing: 0, 6610 CORNER_RADIUS: 1, 6611 cornerRadius: 1, 6612 PARAGRAPH_SPACING: 2, 6613 paragraphSpacing: 2, 6614 PARAGRAPH_INDENT: 3, 6615 paragraphIndent: 3, 6616 STROKE_WEIGHT: 4, 6617 strokeWeight: 4, 6618 STACK_SPACING: 5, 6619 stackSpacing: 5, 6620 STACK_PADDING_LEFT: 6, 6621 stackPaddingLeft: 6, 6622 STACK_PADDING_TOP: 7, 6623 stackPaddingTop: 7, 6624 STACK_PADDING_RIGHT: 8, 6625 stackPaddingRight: 8, 6626 STACK_PADDING_BOTTOM: 9, 6627 stackPaddingBottom: 9, 6628 VISIBLE: 10, 6629 visible: 10, 6630 TEXT_DATA: 11, 6631 textData: 11, 6632 WIDTH: 12, 6633 width: 12, 6634 HEIGHT: 13, 6635 height: 13, 6636 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 6637 rectangleTopLeftCornerRadius: 14, 6638 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 6639 rectangleTopRightCornerRadius: 15, 6640 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 6641 rectangleBottomLeftCornerRadius: 16, 6642 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 6643 rectangleBottomRightCornerRadius: 17, 6644 BORDER_TOP_WEIGHT: 18, 6645 borderTopWeight: 18, 6646 BORDER_BOTTOM_WEIGHT: 19, 6647 borderBottomWeight: 19, 6648 BORDER_LEFT_WEIGHT: 20, 6649 borderLeftWeight: 20, 6650 BORDER_RIGHT_WEIGHT: 21, 6651 borderRightWeight: 21, 6652 VARIANT_PROPERTIES: 22, 6653 variantProperties: 22, 6654 STACK_COUNTER_SPACING: 23, 6655 stackCounterSpacing: 23, 6656 MIN_WIDTH: 24, 6657 minWidth: 24, 6658 MAX_WIDTH: 25, 6659 maxWidth: 25, 6660 MIN_HEIGHT: 26, 6661 minHeight: 26, 6662 MAX_HEIGHT: 27, 6663 maxHeight: 27, 6664 FONT_FAMILY: 28, 6665 fontFamily: 28, 6666 FONT_STYLE: 29, 6667 fontStyle: 29, 6668 FONT_VARIATIONS: 30, 6669 fontVariations: 30, 6670 OPACITY: 31, 6671 opacity: 31, 6672 FONT_SIZE: 32, 6673 fontSize: 32, 6674 LETTER_SPACING: 34, 6675 letterSpacing: 34, 6676 LINE_HEIGHT: 36, 6677 lineHeight: 36, 6678 OVERRIDDEN_SYMBOL_ID: 37, 6679 overriddenSymbolId: 37, 6680 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 6681 cmsSerializedRichTextData: 38, 6682 HYPERLINK: 39, 6683 hyperlink: 39, 6684 SLOT_CONTENT_ID: 40, 6685 slotContentId: 40, 6686 GRID_ROW_GAP: 41, 6687 gridRowGap: 41, 6688 GRID_COLUMN_GAP: 42, 6689 gridColumnGap: 42, 6690 RELATIVE_X_POSITION: 43, 6691 xPosition: 43, 6692 RELATIVE_Y_POSITION: 44, 6693 relativeYPosition: 44, 6694 RELATIVE_ROTATION: 45, 6695 relativeRotation: 45, 6696 MOTION_TRANSLATION_X: 46, 6697 motionTranslationX: 46, 6698 MOTION_TRANSLATION_Y: 47, 6699 motionTranslationY: 47, 6700 MOTION_ROTATION: 48, 6701 motionRotation: 48, 6702 MOTION_SCALE_X: 49, 6703 motionScaleX: 49, 6704 MOTION_SCALE_Y: 50, 6705 motionScaleY: 50, 6706 MOTION_SHEAR: 51, 6707 motionShear: 51, 6708 SCROLL_OFFSET_X: 52, 6709 scrollOffsetX: 52, 6710 SCROLL_OFFSET_Y: 53, 6711 scrollOffsetY: 53, 6712 PATH_TRIM_START: 54, 6713 pathTrimStart: 54, 6714 PATH_TRIM_END: 55, 6715 pathTrimEnd: 55, 6716 DISSOLVE_PROGRESS: 56, 6717 dissolveProgress: 56 6718 }; 6719 var EffectParametrizedField = { 6720 MISSING: 0, 6721 missing: 0, 6722 OFFSET_X: 1, 6723 offsetX: 1, 6724 OFFSET_Y: 2, 6725 offsetY: 2, 6726 RADIUS: 3, 6727 radius: 3, 6728 SPREAD: 4, 6729 spread: 4, 6730 COLOR: 5, 6731 color: 5, 6732 REFRACTION_RADIUS: 6, 6733 refractionRadius: 6, 6734 SPECULAR_ANGLE: 7, 6735 specularAngle: 7, 6736 SPECULAR_INTENSITY: 8, 6737 specularIntensity: 8, 6738 CHROMATIC_ABERRATION: 9, 6739 chromaticAberration: 9, 6740 SPLAY: 10, 6741 splay: 10, 6742 REFRACTION_INTENSITY: 11, 6743 refractionIntensity: 11, 6744 START_RADIUS: 12, 6745 startRadius: 12, 6746 START_OFFSET_X: 13, 6747 startOffsetX: 13, 6748 START_OFFSET_Y: 14, 6749 startOffsetY: 14, 6750 END_OFFSET_X: 15, 6751 endOffsetX: 15, 6752 END_OFFSET_Y: 16, 6753 endOffsetY: 16, 6754 NOISE_SIZE_X: 17, 6755 noiseSizeX: 17, 6756 NOISE_SIZE_Y: 18, 6757 noiseSizeY: 18, 6758 DENSITY: 19, 6759 density: 19, 6760 EFFECT_OPACITY: 20, 6761 effectOpacity: 20, 6762 SECONDARY_COLOR: 21, 6763 secondaryColor: 21 6764 }; 6765 var Keyframe = class { 6766 constructor(data) { 6767 this.timelinePosition = Math.round(data.timelinePosition); 6768 this.easing = data.easing; 6769 this.value = data.value; 6770 } 6771 }; 6772 var KeyframeTrack = class { 6773 constructor(data) { 6774 this.topLevelField = data.topLevelField; 6775 this.parameterField = data.parameterField; 6776 this.index = data.index; 6777 this.effectParametrizedField = data.effectParametrizedField; 6778 this.keyframeOperation = data.keyframeOperation; 6779 this.keyframes = data.keyframes; 6780 this.enabled = !!data.enabled; 6781 } 6782 }; 6783 var AnimationPreset = class { 6784 constructor(data) { 6785 this.nodeId = data.nodeId; 6786 this.keyframeTracks = data.keyframeTracks; 6787 this.textElementDelayBehaviour = data.textElementDelayBehaviour; 6788 this.effects = data.effects; 6789 } 6790 }; 6791 var PARAMETER_FIELD_ALIAS_MAP = { 6792 translateX: ParameterField.MOTION_TRANSLATION_X, 6793 translateY: ParameterField.MOTION_TRANSLATION_Y, 6794 rotate: ParameterField.MOTION_ROTATION, 6795 scaleX: ParameterField.MOTION_SCALE_X, 6796 scaleY: ParameterField.MOTION_SCALE_Y, 6797 shear: ParameterField.MOTION_SHEAR 6798 }; 6799 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 6800 var MODE_TO_OPERATION = { 6801 set: KeyframeOperation.SET, 6802 SET: KeyframeOperation.SET, 6803 offset: KeyframeOperation.OFFSET, 6804 OFFSET: KeyframeOperation.OFFSET, 6805 scale: KeyframeOperation.SCALE, 6806 SCALE: KeyframeOperation.SCALE 6807 }; 6808 var TEXT_ELEMENTS_TARGET = /* @__PURE__ */ Symbol("figma.motion.textElements"); 6809 var LAYER_BLUR_EFFECT = /* @__PURE__ */ Symbol("figma.motion.layerBlur"); 6810 function normalizeEasing(easing) { 6811 if (easing === void 0) return void 0; 6812 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 6813 if (typeof easing === "string") { 6814 const easingType = EasingType[easing]; 6815 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 6816 return { easingType }; 6817 } 6818 return easing; 6819 } 6820 function compileKeyframe({ timelinePosition, value, easing }) { 6821 return new Keyframe({ 6822 timelinePosition: timelinePosition * 1e6, 6823 easing: normalizeEasing(easing), 6824 value 6825 }); 6826 } 6827 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 6828 if (duration < 0) throw new Error("tween: duration must be non-negative"); 6829 return { 6830 mode, 6831 enabled, 6832 keyframes: [ 6833 { timelinePosition, value: from, easing }, 6834 { timelinePosition: timelinePosition + duration, value: to, easing } 6835 ] 6836 }; 6837 } 6838 function animate(target, definition) { 6839 const isTextElementsTarget = target?.[TEXT_ELEMENTS_TARGET] === true; 6840 const node = isTextElementsTarget ? target.node : target; 6841 const nodeId = typeof node === "string" ? node : node.id;
6842 const keyframeTracks = []; 6843 const effects = []; 6844 let textElementDelayBehaviour = isTextElementsTarget ? target.textElementDelayBehaviour : void 0; 6845 for (const [key, trackDef] of Object.entries(definition)) { 6846 if (key === "nodeFields") { 6847 textElementDelayBehaviour = parseNodeFields(trackDef).textElementDelayBehaviour; 6848 continue; 6849 } 6850 if (key === "effects") { 6851 if (!Array.isArray(trackDef)) { 6852 throw new Error('animate: "effects" must be an array'); 6853 } 6854 if (trackDef.length > 1) { 6855 throw new Error("animate: at most one layer blur effect per preset is supported"); 6856 } 6857 for (const effect of trackDef) { 6858 if (effect?.[LAYER_BLUR_EFFECT] !== true) { 6859 throw new Error("animate: unsupported effect descriptor"); 6860 } 6861 const effectIndex = effects.length; 6862 const radiusTrack = effect.radius; 6863 const operation2 = MODE_TO_OPERATION[radiusTrack?.mode]; 6864 if (operation2 === void 0) { 6865 throw new Error("animate: layerBlur radius must be a track definition"); 6866 } 6867 const enabled = radiusTrack.enabled !== false; 6868 const seen2 = /* @__PURE__ */ new Map(); 6869 for (const kf of radiusTrack.keyframes) seen2.set(kf.timelinePosition, kf); 6870 const sorted2 = [...seen2.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 6871 effects.push({ 6872 type: PresetGeneratedEffectType.LAYER_BLUR, 6873 radius: enabled && operation2 === KeyframeOperation.SCALE ? 1 : 0 6874 }); 6875 keyframeTracks.push(new KeyframeTrack({ 6876 topLevelField: KeyframeBindingTopLevelField.EFFECTS, 6877 index: effectIndex, 6878 effectParametrizedField: EffectParametrizedField.RADIUS, 6879 keyframeOperation: operation2, 6880 keyframes: sorted2.map(compileKeyframe), 6881 enabled 6882 })); 6883 } 6884 continue; 6885 } 6886 if (!KEYFRAMEABLE_FIELDS.has(key)) { 6887 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 6888 } 6889 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 6890 const operation = MODE_TO_OPERATION[trackDef.mode]; 6891 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 6892 const seen = /* @__PURE__ */ new Map(); 6893 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 6894 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 6895 keyframeTracks.push(new KeyframeTrack({ 6896 parameterField, 6897 keyframeOperation: operation, 6898 keyframes: sorted.map(compileKeyframe), 6899 enabled: trackDef.enabled !== false 6900 })); 6901 } 6902 return new AnimationPreset({ 6903 nodeId, 6904 keyframeTracks, 6905 textElementDelayBehaviour, 6906 effects: effects.length > 0 ? effects : void 0 6907 }); 6908 } 6909 function parseTextElementDelayBehaviour(value) { 6910 if (value === null || typeof value !== "object" || Array.isArray(value)) { 6911 throw new Error('animate: "textElementDelayBehaviour" must be an object'); 6912 } 6913 if (typeof value.enabled !== "boolean") { 6914 throw new Error('animate: "textElementDelayBehaviour.enabled" must be a boolean'); 6915 } 6916 const grouping = TextElementGrouping[value.grouping]; 6917 if (!Object.values(TextElementGrouping).includes(grouping)) { 6918 throw new Error('animate: unknown text element grouping "' + value.grouping + '"'); 6919 } 6920 if (typeof value.delayMs !== "number" || !Number.isFinite(value.delayMs) || value.delayMs < 0) { 6921 throw new Error( 6922 'animate: "textElementDelayBehaviour.delayMs" must be a non-negative finite number' 6923 ); 6924 } 6925 const order = TextElementDelayOrder[value.order]; 6926 if (!Object.values(TextElementDelayOrder).includes(order)) { 6927 throw new Error('animate: unknown text element delay order "' + value.order + '"'); 6928 } 6929 const clipContent = value.clipContent === void 0 ? false : value.clipContent; 6930 if (typeof clipContent !== "boolean") { 6931 throw new Error('animate: "textElementDelayBehaviour.clipContent" must be a boolean'); 6932 } 6933 return { 6934 enabled: value.enabled, 6935 grouping, 6936 delayMs: value.delayMs, 6937 order, 6938 clipContent 6939 }; 6940 } 6941 function parseNodeFields(value) { 6942 if (value === null || typeof value !== "object" || Array.isArray(value)) { 6943 throw new Error('animate: "nodeFields" must be an object'); 6944 } 6945 const unsupported = Object.keys(value).find((key) => key !== "textElementDelayBehaviour"); 6946 if (unsupported !== void 0) { 6947 throw new Error('animate: unknown node field "' + unsupported + '"'); 6948 } 6949 return { 6950 textElementDelayBehaviour: value.textElementDelayBehaviour === void 0 ? void 0 : parseTextElementDelayBehaviour(value.textElementDelayBehaviour) 6951 }; 6952 } 6953 6954
6954// share/motion/src/presets/source/resize.ts 6955 function preset({ widthChange, heightChange, duration, easing, node }) { 6956 const definition = {}; 6957 if (widthChange !== 0) 6958 definition.width = tween({ 6959 mode: "offset", 6960 duration, 6961 from: 0, 6962 to: widthChange, 6963 easing 6964 }); 6965 if (heightChange !== 0) 6966 definition.height = tween({ 6967 mode: "offset", 6968 duration, 6969 from: 0, 6970 to: heightChange, 6971 easing 6972 }); 6973 return [animate(node, definition)]; 6974 } 6975 defineProperties(preset, { 6976 widthChange: { 6977 label: "Width Change", 6978 type: "number", 6979 defaultValue: 100, 6980 control: "input" 6981 }, 6982 heightChange: { 6983 label: "Height Change", 6984 type: "number", 6985 defaultValue: 0, 6986 control: "input" 6987 }, 6988 duration: { 6989 label: "Duration", 6990 type: "number", 6991 defaultValue: 0.5, 6992 control: "input", 6993 min: 0.01, 6994 unit: "s" 6995 }, 6996 easing: { 6997 label: "Easing", 6998 type: "easing", 6999 defaultValue: { 7000 easingType: EasingType.OUT_CUBIC 7001 } 7002 } 7003 }); 7004 return __toCommonJS(resize_exports); 7005})();`});var C0,P0,D0=nn(()=>{C0=`// Source-of-truth for the ROTATE first-party animation preset. 7006// 7007// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 7008// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 7009// resolved, and emits both strings into \`../generated/rotate.generated.ts\`. The 7010// generated module is what runtime code consumes \u2014 never import this file 7011// directly from production code paths. 7012// 7013// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 7014// only an input to the codegen tool, evaluated inside the QuickJS / iframe 7015// sandbox at runtime. 7016 7017import { animate, defineProperties, EasingType, tween } from 'figma:motion' 7018 7019import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 7020 7021export default function preset({ timing, rotation, duration, fade, easing, node }: PresetArgs) { 7022 const rotRad = rotation * (Math.PI / 180) 7023 const rFrom = timing === 'in' ? rotRad : 0 7024 const rTo = timing === 'in' ? 0 : rotRad 7025 const definition: PresetTrackDefinitions = { 7026 rotate: tween({ 7027 mode: 'offset', 7028 duration, 7029 from: rFrom, 7030 to: rTo, 7031 easing, 7032 }), 7033 } 7034 7035 if (fade) { 7036 const opFrom = timing === 'in' ? 0 : 1 7037 const opTo = timing === 'in' ? 1 : 0 7038 definition.opacity = tween({ 7039 mode: 'scale', 7040 duration, 7041 from: opFrom, 7042 to: opTo, 7043 easing, 7044 }) 7045 } 7046 7047 return [animate(node, definition)] 7048} 7049 7050defineProperties(preset, { 7051 timing: { 7052 label: 'Timing', 7053 type: 'string', 7054 defaultValue: 'out', 7055 control: 'select', 7056 options: [ 7057 { value: 'in', label: 'Rotate In' }, 7058 { value: 'out', label: 'Rotate Out' }, 7059 ], 7060 }, 7061 rotation: { 7062 label: 'Rotation', 7063 type: 'number', 7064 defaultValue: 180, 7065 control: 'input', 7066 }, 7067 duration: { 7068 label: 'Duration', 7069 type: 'number', 7070 defaultValue: 0.5, 7071 control: 'input', 7072 min: 0.01, 7073 unit: 's', 7074 }, 7075 fade: { 7076 label: 'Fade', 7077 type: 'boolean', 7078 defaultValue: false, 7079 }, 7080 easing: { 7081 label: 'Easing', 7082 type: 'easing', 7083 defaultValue: { 7084 easingType: EasingType.OUT_CUBIC, 7085 }, 7086 }, 7087}) 7088`,P0=`var __presetBundle = (() => { 7089 var __defProp = Object.defineProperty; 7090 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 7091 var __getOwnPropNames = Object.getOwnPropertyNames; 7092 var __hasOwnProp = Object.prototype.hasOwnProperty; 7093 var __export = (target, all) => { 7094 for (var name in all) 7095 __defProp(target, name, { get: all[name], enumerable: true }); 7096 }; 7097 var __copyProps = (to, from, except, desc) => { 7098 if (from && typeof from === "object" || typeof from === "function") { 7099 for (let key of __getOwnPropNames(from)) 7100 if (!__hasOwnProp.call(to, key) && key !== except) 7101 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 7102 } 7103 return to; 7104 }; 7105 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 7106 7107
7107// share/motion/src/presets/source/rotate.ts 7108 var rotate_exports = {}; 7109 __export(rotate_exports, { 7110 default: () => preset 7111 }); 7112 7113 // figma-motion:figma:motion 7114 function defineProperties(component, spec) { 7115 Object.assign(component, { 7116 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 7117 }); 7118 } 7119 var EasingType = { 7120 IN_CUBIC: 0, 7121 inCubic: 0, 7122 OUT_CUBIC: 1, 7123 outCubic: 1, 7124 INOUT_CUBIC: 2, 7125 inOutCubic: 2, 7126 LINEAR: 3, 7127 linear: 3, 7128 IN_BACK_CUBIC: 4, 7129 inBackCubic: 4, 7130 OUT_BACK_CUBIC: 5, 7131 outBackCubic: 5, 7132 INOUT_BACK_CUBIC: 6, 7133 inOutBackCubic: 6, 7134 CUSTOM_CUBIC: 7, 7135 customCubic: 7, 7136 SPRING: 8, 7137 spring: 8, 7138 GENTLE_SPRING: 9, 7139 gentleSpring: 9, 7140 CUSTOM_SPRING: 10, 7141 customSpring: 10, 7142 SPRING_PRESET_ONE: 11, 7143 springPresetOne: 11, 7144 SPRING_PRESET_TWO: 12, 7145 springPresetTwo: 12, 7146 SPRING_PRESET_THREE: 13, 7147 springPresetThree: 13, 7148 // For backwards compat 7149 bezier: 100, 7150 BEZIER: 100 7151 }; 7152 var InterpolationType = { 7153 HOLD: 0, 7154 hold: 0, 7155 BEZIER: 1, 7156 bezier: 1 7157 }; 7158 var KeyframeOperation = { 7159 SET: 0, 7160 set: 0, 7161 SCALE: 1, 7162 scale: 1, 7163 OFFSET: 2, 7164 offset: 2 7165 }; 7166 var KeyframeBindingTopLevelField = { 7167 MISSING: 0, 7168 PARAMETER_CONSUMPTION_MAP: 1, 7169 EFFECTS: 2, 7170 effects: 2 7171 }; 7172 var TextElementGrouping = { 7173 CHARACTER: 0, 7174 CHARACTER_NO_WHITESPACE: 1, 7175 WORD: 2, 7176 LINE: 3, 7177 PARAGRAPH: 4 7178 }; 7179 var TextElementDelayOrder = { 7180 LEFT_RIGHT: 0, 7181 RIGHT_LEFT: 1, 7182 CENTER_OUT: 2, 7183 RANDOM: 3 7184 }; 7185 var PresetGeneratedEffectType = { 7186 LAYER_BLUR: 0 7187 }; 7188 var ParameterField = { 7189 MISSING: 0, 7190 missing: 0, 7191 CORNER_RADIUS: 1, 7192 cornerRadius: 1, 7193 PARAGRAPH_SPACING: 2, 7194 paragraphSpacing: 2, 7195 PARAGRAPH_INDENT: 3, 7196 paragraphIndent: 3, 7197 STROKE_WEIGHT: 4, 7198 strokeWeight: 4, 7199 STACK_SPACING: 5, 7200 stackSpacing: 5, 7201 STACK_PADDING_LEFT: 6, 7202 stackPaddingLeft: 6, 7203 STACK_PADDING_TOP: 7, 7204 stackPaddingTop: 7, 7205 STACK_PADDING_RIGHT: 8, 7206 stackPaddingRight: 8, 7207 STACK_PADDING_BOTTOM: 9, 7208 stackPaddingBottom: 9, 7209 VISIBLE: 10, 7210 visible: 10, 7211 TEXT_DATA: 11, 7212 textData: 11, 7213 WIDTH: 12, 7214 width: 12, 7215 HEIGHT: 13, 7216 height: 13, 7217 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 7218 rectangleTopLeftCornerRadius: 14, 7219 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 7220 rectangleTopRightCornerRadius: 15, 7221 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 7222 rectangleBottomLeftCornerRadius: 16, 7223 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 7224 rectangleBottomRightCornerRadius: 17, 7225 BORDER_TOP_WEIGHT: 18, 7226 borderTopWeight: 18, 7227 BORDER_BOTTOM_WEIGHT: 19, 7228 borderBottomWeight: 19, 7229 BORDER_LEFT_WEIGHT: 20, 7230 borderLeftWeight: 20, 7231 BORDER_RIGHT_WEIGHT: 21, 7232 borderRightWeight: 21, 7233 VARIANT_PROPERTIES: 22, 7234 variantProperties: 22, 7235 STACK_COUNTER_SPACING: 23, 7236 stackCounterSpacing: 23, 7237 MIN_WIDTH: 24, 7238 minWidth: 24, 7239 MAX_WIDTH: 25, 7240 maxWidth: 25, 7241 MIN_HEIGHT: 26, 7242 minHeight: 26, 7243 MAX_HEIGHT: 27, 7244 maxHeight: 27, 7245 FONT_FAMILY: 28, 7246 fontFamily: 28, 7247 FONT_STYLE: 29, 7248 fontStyle: 29, 7249 FONT_VARIATIONS: 30, 7250 fontVariations: 30, 7251 OPACITY: 31, 7252 opacity: 31, 7253 FONT_SIZE: 32, 7254 fontSize: 32, 7255 LETTER_SPACING: 34, 7256 letterSpacing: 34, 7257 LINE_HEIGHT: 36, 7258 lineHeight: 36, 7259 OVERRIDDEN_SYMBOL_ID: 37, 7260 overriddenSymbolId: 37, 7261 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 7262 cmsSerializedRichTextData: 38, 7263 HYPERLINK: 39, 7264 hyperlink: 39, 7265 SLOT_CONTENT_ID: 40, 7266 slotContentId: 40, 7267 GRID_ROW_GAP: 41, 7268 gridRowGap: 41, 7269 GRID_COLUMN_GAP: 42, 7270 gridColumnGap: 42, 7271 RELATIVE_X_POSITION: 43, 7272 xPosition: 43, 7273 RELATIVE_Y_POSITION: 44, 7274 relativeYPosition: 44, 7275 RELATIVE_ROTATION: 45, 7276 relativeRotation: 45, 7277 MOTION_TRANSLATION_X: 46, 7278 motionTranslationX: 46, 7279 MOTION_TRANSLATION_Y: 47, 7280 motionTranslationY: 47, 7281 MOTION_ROTATION: 48, 7282 motionRotation: 48, 7283 MOTION_SCALE_X: 49, 7284 motionScaleX: 49, 7285 MOTION_SCALE_Y: 50, 7286 motionScaleY: 50, 7287 MOTION_SHEAR: 51, 7288 motionShear: 51, 7289 SCROLL_OFFSET_X: 52, 7290 scrollOffsetX: 52, 7291 SCROLL_OFFSET_Y: 53, 7292 scrollOffsetY: 53, 7293 PATH_TRIM_START: 54, 7294 pathTrimStart: 54, 7295 PATH_TRIM_END: 55, 7296 pathTrimEnd: 55, 7297 DISSOLVE_PROGRESS: 56, 7298 dissolveProgress: 56 7299 }; 7300 var EffectParametrizedField = { 7301 MISSING: 0, 7302 missing: 0, 7303 OFFSET_X: 1, 7304 offsetX: 1, 7305 OFFSET_Y: 2, 7306 offsetY: 2, 7307 RADIUS: 3, 7308 radius: 3, 7309 SPREAD: 4, 7310 spread: 4, 7311 COLOR: 5, 7312 color: 5, 7313 REFRACTION_RADIUS: 6, 7314 refractionRadius: 6, 7315 SPECULAR_ANGLE: 7, 7316 specularAngle: 7, 7317 SPECULAR_INTENSITY: 8, 7318 specularIntensity: 8, 7319 CHROMATIC_ABERRATION: 9, 7320 chromaticAberration: 9, 7321 SPLAY: 10, 7322 splay: 10, 7323 REFRACTION_INTENSITY: 11, 7324 refractionIntensity: 11, 7325 START_RADIUS: 12, 7326 startRadius: 12, 7327 START_OFFSET_X: 13, 7328 startOffsetX: 13, 7329 START_OFFSET_Y: 14, 7330 startOffsetY: 14, 7331 END_OFFSET_X: 15, 7332 endOffsetX: 15, 7333 END_OFFSET_Y: 16, 7334 endOffsetY: 16, 7335 NOISE_SIZE_X: 17, 7336 noiseSizeX: 17, 7337 NOISE_SIZE_Y: 18, 7338 noiseSizeY: 18, 7339 DENSITY: 19, 7340 density: 19, 7341 EFFECT_OPACITY: 20, 7342 effectOpacity: 20, 7343 SECONDARY_COLOR: 21, 7344 secondaryColor: 21 7345 }; 7346 var Keyframe = class { 7347 constructor(data) { 7348 this.timelinePosition = Math.round(data.timelinePosition); 7349 this.easing = data.easing; 7350 this.value = data.value; 7351 } 7352 }; 7353 var KeyframeTrack = class { 7354 constructor(data) { 7355 this.topLevelField = data.topLevelField; 7356 this.parameterField = data.parameterField; 7357 this.index = data.index; 7358 this.effectParametrizedField = data.effectParametrizedField; 7359 this.keyframeOperation = data.keyframeOperation; 7360 this.keyframes = data.keyframes; 7361 this.enabled = !!data.enabled; 7362 } 7363 }; 7364 var AnimationPreset = class { 7365 constructor(data) { 7366 this.nodeId = data.nodeId; 7367 this.keyframeTracks = data.keyframeTracks; 7368 this.textElementDelayBehaviour = data.textElementDelayBehaviour; 7369 this.effects = data.effects; 7370 } 7371 }; 7372 var PARAMETER_FIELD_ALIAS_MAP = { 7373 translateX: ParameterField.MOTION_TRANSLATION_X, 7374 translateY: ParameterField.MOTION_TRANSLATION_Y, 7375 rotate: ParameterField.MOTION_ROTATION, 7376 scaleX: ParameterField.MOTION_SCALE_X, 7377 scaleY: ParameterField.MOTION_SCALE_Y, 7378 shear: ParameterField.MOTION_SHEAR 7379 }; 7380 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 7381 var MODE_TO_OPERATION = { 7382 set: KeyframeOperation.SET, 7383 SET: KeyframeOperation.SET, 7384 offset: KeyframeOperation.OFFSET, 7385 OFFSET: KeyframeOperation.OFFSET, 7386 scale: KeyframeOperation.SCALE, 7387 SCALE: KeyframeOperation.SCALE 7388 }; 7389 var TEXT_ELEMENTS_TARGET = /* @__PURE__ */ Symbol("figma.motion.textElements"); 7390 var LAYER_BLUR_EFFECT = /* @__PURE__ */ Symbol("figma.motion.layerBlur"); 7391 function normalizeEasing(easing) { 7392 if (easing === void 0) return void 0; 7393 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 7394 if (typeof easing === "string") { 7395 const easingType = EasingType[easing]; 7396 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 7397 return { easingType }; 7398 } 7399 return easing; 7400 } 7401 function compileKeyframe({ timelinePosition, value, easing }) { 7402 return new Keyframe({ 7403 timelinePosition: timelinePosition * 1e6, 7404 easing: normalizeEasing(easing), 7405 value 7406 }); 7407 } 7408 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 7409 if (duration < 0) throw new Error("tween: duration must be non-negative"); 7410 return { 7411 mode, 7412 enabled, 7413 keyframes: [ 7414 { timelinePosition, value: from, easing }, 7415 { timelinePosition: timelinePosition + duration, value: to, easing } 7416 ] 7417 }; 7418 } 7419 function animate(target, definition) { 7420 const isTextElementsTarget = target?.[TEXT_ELEMENTS_TARGET] === true; 7421 const node = isTextElementsTarget ? target.node : target; 7422 const nodeId = typeof node === "string" ? node : node.id;
7423 const keyframeTracks = []; 7424 const effects = []; 7425 let textElementDelayBehaviour = isTextElementsTarget ? target.textElementDelayBehaviour : void 0; 7426 for (const [key, trackDef] of Object.entries(definition)) { 7427 if (key === "nodeFields") { 7428 textElementDelayBehaviour = parseNodeFields(trackDef).textElementDelayBehaviour; 7429 continue; 7430 } 7431 if (key === "effects") { 7432 if (!Array.isArray(trackDef)) { 7433 throw new Error('animate: "effects" must be an array'); 7434 } 7435 if (trackDef.length > 1) { 7436 throw new Error("animate: at most one layer blur effect per preset is supported"); 7437 } 7438 for (const effect of trackDef) { 7439 if (effect?.[LAYER_BLUR_EFFECT] !== true) { 7440 throw new Error("animate: unsupported effect descriptor"); 7441 } 7442 const effectIndex = effects.length; 7443 const radiusTrack = effect.radius; 7444 const operation2 = MODE_TO_OPERATION[radiusTrack?.mode]; 7445 if (operation2 === void 0) { 7446 throw new Error("animate: layerBlur radius must be a track definition"); 7447 } 7448 const enabled = radiusTrack.enabled !== false; 7449 const seen2 = /* @__PURE__ */ new Map(); 7450 for (const kf of radiusTrack.keyframes) seen2.set(kf.timelinePosition, kf); 7451 const sorted2 = [...seen2.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 7452 effects.push({ 7453 type: PresetGeneratedEffectType.LAYER_BLUR, 7454 radius: enabled && operation2 === KeyframeOperation.SCALE ? 1 : 0 7455 }); 7456 keyframeTracks.push(new KeyframeTrack({ 7457 topLevelField: KeyframeBindingTopLevelField.EFFECTS, 7458 index: effectIndex, 7459 effectParametrizedField: EffectParametrizedField.RADIUS, 7460 keyframeOperation: operation2, 7461 keyframes: sorted2.map(compileKeyframe), 7462 enabled 7463 })); 7464 } 7465 continue; 7466 } 7467 if (!KEYFRAMEABLE_FIELDS.has(key)) { 7468 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 7469 } 7470 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 7471 const operation = MODE_TO_OPERATION[trackDef.mode]; 7472 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 7473 const seen = /* @__PURE__ */ new Map(); 7474 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 7475 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 7476 keyframeTracks.push(new KeyframeTrack({ 7477 parameterField, 7478 keyframeOperation: operation, 7479 keyframes: sorted.map(compileKeyframe), 7480 enabled: trackDef.enabled !== false 7481 })); 7482 } 7483 return new AnimationPreset({ 7484 nodeId, 7485 keyframeTracks, 7486 textElementDelayBehaviour, 7487 effects: effects.length > 0 ? effects : void 0 7488 }); 7489 } 7490 function parseTextElementDelayBehaviour(value) { 7491 if (value === null || typeof value !== "object" || Array.isArray(value)) { 7492 throw new Error('animate: "textElementDelayBehaviour" must be an object'); 7493 } 7494 if (typeof value.enabled !== "boolean") { 7495 throw new Error('animate: "textElementDelayBehaviour.enabled" must be a boolean'); 7496 } 7497 const grouping = TextElementGrouping[value.grouping]; 7498 if (!Object.values(TextElementGrouping).includes(grouping)) { 7499 throw new Error('animate: unknown text element grouping "' + value.grouping + '"'); 7500 } 7501 if (typeof value.delayMs !== "number" || !Number.isFinite(value.delayMs) || value.delayMs < 0) { 7502 throw new Error( 7503 'animate: "textElementDelayBehaviour.delayMs" must be a non-negative finite number' 7504 ); 7505 } 7506 const order = TextElementDelayOrder[value.order]; 7507 if (!Object.values(TextElementDelayOrder).includes(order)) { 7508 throw new Error('animate: unknown text element delay order "' + value.order + '"'); 7509 } 7510 const clipContent = value.clipContent === void 0 ? false : value.clipContent; 7511 if (typeof clipContent !== "boolean") { 7512 throw new Error('animate: "textElementDelayBehaviour.clipContent" must be a boolean'); 7513 } 7514 return { 7515 enabled: value.enabled, 7516 grouping, 7517 delayMs: value.delayMs, 7518 order, 7519 clipContent 7520 }; 7521 } 7522 function parseNodeFields(value) { 7523 if (value === null || typeof value !== "object" || Array.isArray(value)) { 7524 throw new Error('animate: "nodeFields" must be an object'); 7525 } 7526 const unsupported = Object.keys(value).find((key) => key !== "textElementDelayBehaviour"); 7527 if (unsupported !== void 0) { 7528 throw new Error('animate: unknown node field "' + unsupported + '"'); 7529 } 7530 return { 7531 textElementDelayBehaviour: value.textElementDelayBehaviour === void 0 ? void 0 : parseTextElementDelayBehaviour(value.textElementDelayBehaviour) 7532 }; 7533 } 7534 7535
7535// share/motion/src/presets/source/rotate.ts 7536 function preset({ timing, rotation, duration, fade, easing, node }) { 7537 const rotRad = rotation * (Math.PI / 180); 7538 const rFrom = timing === "in" ? rotRad : 0; 7539 const rTo = timing === "in" ? 0 : rotRad; 7540 const definition = { 7541 rotate: tween({ 7542 mode: "offset", 7543 duration, 7544 from: rFrom, 7545 to: rTo, 7546 easing 7547 }) 7548 }; 7549 if (fade) { 7550 const opFrom = timing === "in" ? 0 : 1; 7551 const opTo = timing === "in" ? 1 : 0; 7552 definition.opacity = tween({ 7553 mode: "scale", 7554 duration, 7555 from: opFrom, 7556 to: opTo, 7557 easing 7558 }); 7559 } 7560 return [animate(node, definition)]; 7561 } 7562 defineProperties(preset, { 7563 timing: { 7564 label: "Timing", 7565 type: "string", 7566 defaultValue: "out", 7567 control: "select", 7568 options: [ 7569 { value: "in", label: "Rotate In" }, 7570 { value: "out", label: "Rotate Out" } 7571 ] 7572 }, 7573 rotation: { 7574 label: "Rotation", 7575 type: "number", 7576 defaultValue: 180, 7577 control: "input" 7578 }, 7579 duration: { 7580 label: "Duration", 7581 type: "number", 7582 defaultValue: 0.5, 7583 control: "input", 7584 min: 0.01, 7585 unit: "s" 7586 }, 7587 fade: { 7588 label: "Fade", 7589 type: "boolean", 7590 defaultValue: false 7591 }, 7592 easing: { 7593 label: "Easing", 7594 type: "easing", 7595 defaultValue: { 7596 easingType: EasingType.OUT_CUBIC 7597 } 7598 } 7599 }); 7600 return __toCommonJS(rotate_exports); 7601})();`});var v0,x0,M0=nn(()=>{v0=`// Source-of-truth for the NEW first-party animation preset. 7602// 7603// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 7604// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 7605// resolved, and emits both strings into \`../generated/new.generated.ts\`. The 7606// generated module is what runtime code consumes \u2014 never import this file 7607// directly from production code paths. 7608// 7609// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 7610// only an input to the codegen tool, evaluated inside the QuickJS / iframe 7611// sandbox at runtime. 7612 7613import { animate, defineProperties, EasingType, tween } from 'figma:motion' 7614 7615import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 7616 7617export default function preset({ 7618 type, 7619 direction, 7620 amount, 7621 start, 7622 end, 7623 duration, 7624 easing, 7625 node, 7626}: PresetArgs) { 7627 // Determine rotation values based on type 7628 let rotationStart: number 7629 let rotationEnd: number 7630 7631 if (type === 'custom') { 7632 // In custom mode, respect explicit start/end as entered by the user. 7633 rotationStart = start 7634 rotationEnd = end 7635 } else { 7636 // Direction/sign mapping (degrees): 7637 // - Clockwise: rotateIn -amount \u2192 0, rotateOut 0 \u2192 +amount 7638 // - Counter-clockwise: rotateIn +amount \u2192 0, rotateOut 0 \u2192 -amount 7639 const sign = direction === 'clockwise' ? -1 : 1 7640 if (type === 'rotateIn') { 7641 rotationStart = sign * amount 7642 rotationEnd = 0 7643 } else { 7644 // rotateOut 7645 rotationStart = 0 7646 rotationEnd = -sign * amount 7647 } 7648 } 7649 7650 // Convert degrees to radians 7651 const from = rotationStart * (Math.PI / 180) 7652 const to = rotationEnd * (Math.PI / 180) 7653 7654 const definition: PresetTrackDefinitions = {} 7655 definition.rotate = tween({ 7656 mode: 'offset', 7657 timelinePosition: 0, 7658 duration, 7659 from, 7660 to, 7661 easing, 7662 }) 7663 7664 return [animate(node, definition)] 7665} 7666 7667defineProperties(preset, { 7668 type: { 7669 label: 'motion.preset_flyout.type', 7670 type: 'string', 7671 defaultValue: 'rotateIn', 7672 control: 'select', 7673 options: [ 7674 { value: 'rotateIn', label: 'motion.preset_flyout.rotation.type.rotate_in' }, 7675 { value: 'rotateOut', label: 'motion.preset_flyout.rotation.type.rotate_out' }, 7676 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 7677 ], 7678 }, 7679 direction: { 7680 label: 'motion.preset_flyout.direction', 7681 type: 'string', 7682 defaultValue: 'clockwise', 7683 control: 'select', 7684 options: [ 7685 { value: 'clockwise', label: 'motion.preset_flyout.rotation.direction.clockwise' }, 7686 { 7687 value: 'counterClockwise', 7688 label: 'motion.preset_flyout.rotation.direction.counter_clockwise', 7689 }, 7690 ], 7691 }, 7692 amount: { 7693 label: 'motion.preset_flyout.amount', 7694 type: 'number', 7695 defaultValue: 180, 7696 control: 'input', 7697 unit: '\xB0', 7698 },
7699 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 7700 // are redundant \u2014 section dividers are now applied client-side in the preset 7701 // flyout via \`forceShowDividerAboveTransform\` 7702 start: { 7703 label: 'motion.preset_flyout.start', 7704 type: 'number', 7705 defaultValue: 180, 7706 control: 'input', 7707 unit: '\xB0', 7708 showDividerAbove: true, 7709 icon: 'rotation', 7710 }, 7711 end: { 7712 label: 'motion.preset_flyout.end', 7713 type: 'number', 7714 defaultValue: 0, 7715 control: 'input', 7716 unit: '\xB0', 7717 icon: 'rotation', 7718 }, 7719 delay: { 7720 label: 'motion.preset_flyout.delay', 7721 type: 'number', 7722 defaultValue: 0, 7723 control: 'input', 7724 unit: 's', 7725 showDividerAbove: true, 7726 icon: 'delay', 7727 }, 7728 duration: { 7729 label: 'motion.preset_flyout.duration', 7730 type: 'number', 7731 defaultValue: 0.5, 7732 control: 'input', 7733 min: 0.01, 7734 unit: 's', 7735 icon: 'time', 7736 }, 7737 easing: { 7738 label: 'motion.preset_flyout.easing', 7739 type: 'easing', 7740 defaultValue: { 7741 easingType: EasingType.OUT_CUBIC, 7742 }, 7743 }, 7744}) 7745`,x0=`var __presetBundle = (() => { 7746 var __defProp = Object.defineProperty; 7747 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 7748 var __getOwnPropNames = Object.getOwnPropertyNames; 7749 var __hasOwnProp = Object.prototype.hasOwnProperty; 7750 var __export = (target, all) => { 7751 for (var name in all) 7752 __defProp(target, name, { get: all[name], enumerable: true }); 7753 }; 7754 var __copyProps = (to, from, except, desc) => { 7755 if (from && typeof from === "object" || typeof from === "function") { 7756 for (let key of __getOwnPropNames(from)) 7757 if (!__hasOwnProp.call(to, key) && key !== except) 7758 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 7759 } 7760 return to; 7761 }; 7762 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 7763 7764
7764// share/motion/src/presets/source/rotation.ts 7765 var rotation_exports = {}; 7766 __export(rotation_exports, { 7767 default: () => preset 7768 }); 7769 7770 // figma-motion:figma:motion 7771 function defineProperties(component, spec) { 7772 Object.assign(component, { 7773 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 7774 }); 7775 } 7776 var EasingType = { 7777 IN_CUBIC: 0, 7778 inCubic: 0, 7779 OUT_CUBIC: 1, 7780 outCubic: 1, 7781 INOUT_CUBIC: 2, 7782 inOutCubic: 2, 7783 LINEAR: 3, 7784 linear: 3, 7785 IN_BACK_CUBIC: 4, 7786 inBackCubic: 4, 7787 OUT_BACK_CUBIC: 5, 7788 outBackCubic: 5, 7789 INOUT_BACK_CUBIC: 6, 7790 inOutBackCubic: 6, 7791 CUSTOM_CUBIC: 7, 7792 customCubic: 7, 7793 SPRING: 8, 7794 spring: 8, 7795 GENTLE_SPRING: 9, 7796 gentleSpring: 9, 7797 CUSTOM_SPRING: 10, 7798 customSpring: 10, 7799 SPRING_PRESET_ONE: 11, 7800 springPresetOne: 11, 7801 SPRING_PRESET_TWO: 12, 7802 springPresetTwo: 12, 7803 SPRING_PRESET_THREE: 13, 7804 springPresetThree: 13, 7805 // For backwards compat 7806 bezier: 100, 7807 BEZIER: 100 7808 }; 7809 var InterpolationType = { 7810 HOLD: 0, 7811 hold: 0, 7812 BEZIER: 1, 7813 bezier: 1 7814 }; 7815 var KeyframeOperation = { 7816 SET: 0, 7817 set: 0, 7818 SCALE: 1, 7819 scale: 1, 7820 OFFSET: 2, 7821 offset: 2 7822 }; 7823 var KeyframeBindingTopLevelField = { 7824 MISSING: 0, 7825 PARAMETER_CONSUMPTION_MAP: 1, 7826 EFFECTS: 2, 7827 effects: 2 7828 }; 7829 var TextElementGrouping = { 7830 CHARACTER: 0, 7831 CHARACTER_NO_WHITESPACE: 1, 7832 WORD: 2, 7833 LINE: 3, 7834 PARAGRAPH: 4 7835 }; 7836 var TextElementDelayOrder = { 7837 LEFT_RIGHT: 0, 7838 RIGHT_LEFT: 1, 7839 CENTER_OUT: 2, 7840 RANDOM: 3 7841 }; 7842 var PresetGeneratedEffectType = { 7843 LAYER_BLUR: 0 7844 }; 7845 var ParameterField = { 7846 MISSING: 0, 7847 missing: 0, 7848 CORNER_RADIUS: 1, 7849 cornerRadius: 1, 7850 PARAGRAPH_SPACING: 2, 7851 paragraphSpacing: 2, 7852 PARAGRAPH_INDENT: 3, 7853 paragraphIndent: 3, 7854 STROKE_WEIGHT: 4, 7855 strokeWeight: 4, 7856 STACK_SPACING: 5, 7857 stackSpacing: 5, 7858 STACK_PADDING_LEFT: 6, 7859 stackPaddingLeft: 6, 7860 STACK_PADDING_TOP: 7, 7861 stackPaddingTop: 7, 7862 STACK_PADDING_RIGHT: 8, 7863 stackPaddingRight: 8, 7864 STACK_PADDING_BOTTOM: 9, 7865 stackPaddingBottom: 9, 7866 VISIBLE: 10, 7867 visible: 10, 7868 TEXT_DATA: 11, 7869 textData: 11, 7870 WIDTH: 12, 7871 width: 12, 7872 HEIGHT: 13, 7873 height: 13, 7874 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 7875 rectangleTopLeftCornerRadius: 14, 7876 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 7877 rectangleTopRightCornerRadius: 15, 7878 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 7879 rectangleBottomLeftCornerRadius: 16, 7880 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 7881 rectangleBottomRightCornerRadius: 17, 7882 BORDER_TOP_WEIGHT: 18, 7883 borderTopWeight: 18, 7884 BORDER_BOTTOM_WEIGHT: 19, 7885 borderBottomWeight: 19, 7886 BORDER_LEFT_WEIGHT: 20, 7887 borderLeftWeight: 20, 7888 BORDER_RIGHT_WEIGHT: 21, 7889 borderRightWeight: 21, 7890 VARIANT_PROPERTIES: 22, 7891 variantProperties: 22, 7892 STACK_COUNTER_SPACING: 23, 7893 stackCounterSpacing: 23, 7894 MIN_WIDTH: 24, 7895 minWidth: 24, 7896 MAX_WIDTH: 25, 7897 maxWidth: 25, 7898 MIN_HEIGHT: 26, 7899 minHeight: 26, 7900 MAX_HEIGHT: 27, 7901 maxHeight: 27, 7902 FONT_FAMILY: 28, 7903 fontFamily: 28, 7904 FONT_STYLE: 29, 7905 fontStyle: 29, 7906 FONT_VARIATIONS: 30, 7907 fontVariations: 30, 7908 OPACITY: 31, 7909 opacity: 31, 7910 FONT_SIZE: 32, 7911 fontSize: 32, 7912 LETTER_SPACING: 34, 7913 letterSpacing: 34, 7914 LINE_HEIGHT: 36, 7915 lineHeight: 36, 7916 OVERRIDDEN_SYMBOL_ID: 37, 7917 overriddenSymbolId: 37, 7918 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 7919 cmsSerializedRichTextData: 38, 7920 HYPERLINK: 39, 7921 hyperlink: 39, 7922 SLOT_CONTENT_ID: 40, 7923 slotContentId: 40, 7924 GRID_ROW_GAP: 41, 7925 gridRowGap: 41, 7926 GRID_COLUMN_GAP: 42, 7927 gridColumnGap: 42, 7928 RELATIVE_X_POSITION: 43, 7929 xPosition: 43, 7930 RELATIVE_Y_POSITION: 44, 7931 relativeYPosition: 44, 7932 RELATIVE_ROTATION: 45, 7933 relativeRotation: 45, 7934 MOTION_TRANSLATION_X: 46, 7935 motionTranslationX: 46, 7936 MOTION_TRANSLATION_Y: 47, 7937 motionTranslationY: 47, 7938 MOTION_ROTATION: 48, 7939 motionRotation: 48, 7940 MOTION_SCALE_X: 49, 7941 motionScaleX: 49, 7942 MOTION_SCALE_Y: 50, 7943 motionScaleY: 50, 7944 MOTION_SHEAR: 51, 7945 motionShear: 51, 7946 SCROLL_OFFSET_X: 52, 7947 scrollOffsetX: 52, 7948 SCROLL_OFFSET_Y: 53, 7949 scrollOffsetY: 53, 7950 PATH_TRIM_START: 54, 7951 pathTrimStart: 54, 7952 PATH_TRIM_END: 55, 7953 pathTrimEnd: 55, 7954 DISSOLVE_PROGRESS: 56, 7955 dissolveProgress: 56 7956 }; 7957 var EffectParametrizedField = { 7958 MISSING: 0, 7959 missing: 0, 7960 OFFSET_X: 1, 7961 offsetX: 1, 7962 OFFSET_Y: 2, 7963 offsetY: 2, 7964 RADIUS: 3, 7965 radius: 3, 7966 SPREAD: 4, 7967 spread: 4, 7968 COLOR: 5, 7969 color: 5, 7970 REFRACTION_RADIUS: 6, 7971 refractionRadius: 6, 7972 SPECULAR_ANGLE: 7, 7973 specularAngle: 7, 7974 SPECULAR_INTENSITY: 8, 7975 specularIntensity: 8, 7976 CHROMATIC_ABERRATION: 9, 7977 chromaticAberration: 9, 7978 SPLAY: 10, 7979 splay: 10, 7980 REFRACTION_INTENSITY: 11, 7981 refractionIntensity: 11, 7982 START_RADIUS: 12, 7983 startRadius: 12, 7984 START_OFFSET_X: 13, 7985 startOffsetX: 13, 7986 START_OFFSET_Y: 14, 7987 startOffsetY: 14, 7988 END_OFFSET_X: 15, 7989 endOffsetX: 15, 7990 END_OFFSET_Y: 16, 7991 endOffsetY: 16, 7992 NOISE_SIZE_X: 17, 7993 noiseSizeX: 17, 7994 NOISE_SIZE_Y: 18, 7995 noiseSizeY: 18, 7996 DENSITY: 19, 7997 density: 19, 7998 EFFECT_OPACITY: 20, 7999 effectOpacity: 20, 8000 SECONDARY_COLOR: 21, 8001 secondaryColor: 21 8002 }; 8003 var Keyframe = class { 8004 constructor(data) { 8005 this.timelinePosition = Math.round(data.timelinePosition); 8006 this.easing = data.easing; 8007 this.value = data.value; 8008 } 8009 }; 8010 var KeyframeTrack = class { 8011 constructor(data) { 8012 this.topLevelField = data.topLevelField; 8013 this.parameterField = data.parameterField; 8014 this.index = data.index; 8015 this.effectParametrizedField = data.effectParametrizedField; 8016 this.keyframeOperation = data.keyframeOperation; 8017 this.keyframes = data.keyframes; 8018 this.enabled = !!data.enabled; 8019 } 8020 }; 8021 var AnimationPreset = class { 8022 constructor(data) { 8023 this.nodeId = data.nodeId; 8024 this.keyframeTracks = data.keyframeTracks; 8025 this.textElementDelayBehaviour = data.textElementDelayBehaviour; 8026 this.effects = data.effects; 8027 } 8028 }; 8029 var PARAMETER_FIELD_ALIAS_MAP = { 8030 translateX: ParameterField.MOTION_TRANSLATION_X, 8031 translateY: ParameterField.MOTION_TRANSLATION_Y, 8032 rotate: ParameterField.MOTION_ROTATION, 8033 scaleX: ParameterField.MOTION_SCALE_X, 8034 scaleY: ParameterField.MOTION_SCALE_Y, 8035 shear: ParameterField.MOTION_SHEAR 8036 }; 8037 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 8038 var MODE_TO_OPERATION = { 8039 set: KeyframeOperation.SET, 8040 SET: KeyframeOperation.SET, 8041 offset: KeyframeOperation.OFFSET, 8042 OFFSET: KeyframeOperation.OFFSET, 8043 scale: KeyframeOperation.SCALE, 8044 SCALE: KeyframeOperation.SCALE 8045 }; 8046 var TEXT_ELEMENTS_TARGET = /* @__PURE__ */ Symbol("figma.motion.textElements"); 8047 var LAYER_BLUR_EFFECT = /* @__PURE__ */ Symbol("figma.motion.layerBlur"); 8048 function normalizeEasing(easing) { 8049 if (easing === void 0) return void 0; 8050 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 8051 if (typeof easing === "string") { 8052 const easingType = EasingType[easing]; 8053 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 8054 return { easingType }; 8055 } 8056 return easing; 8057 } 8058 function compileKeyframe({ timelinePosition, value, easing }) { 8059 return new Keyframe({ 8060 timelinePosition: timelinePosition * 1e6, 8061 easing: normalizeEasing(easing), 8062 value 8063 }); 8064 } 8065 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 8066 if (duration < 0) throw new Error("tween: duration must be non-negative"); 8067 return { 8068 mode, 8069 enabled, 8070 keyframes: [ 8071 { timelinePosition, value: from, easing }, 8072 { timelinePosition: timelinePosition + duration, value: to, easing } 8073 ] 8074 }; 8075 } 8076 function animate(target, definition) { 8077 const isTextElementsTarget = target?.[TEXT_ELEMENTS_TARGET] === true; 8078 const node = isTextElementsTarget ? target.node : target; 8079 const nodeId = typeof node === "string" ? node : node.id;
8080 const keyframeTracks = []; 8081 const effects = []; 8082 let textElementDelayBehaviour = isTextElementsTarget ? target.textElementDelayBehaviour : void 0; 8083 for (const [key, trackDef] of Object.entries(definition)) { 8084 if (key === "nodeFields") { 8085 textElementDelayBehaviour = parseNodeFields(trackDef).textElementDelayBehaviour; 8086 continue; 8087 } 8088 if (key === "effects") { 8089 if (!Array.isArray(trackDef)) { 8090 throw new Error('animate: "effects" must be an array'); 8091 } 8092 if (trackDef.length > 1) { 8093 throw new Error("animate: at most one layer blur effect per preset is supported"); 8094 } 8095 for (const effect of trackDef) { 8096 if (effect?.[LAYER_BLUR_EFFECT] !== true) { 8097 throw new Error("animate: unsupported effect descriptor"); 8098 } 8099 const effectIndex = effects.length; 8100 const radiusTrack = effect.radius; 8101 const operation2 = MODE_TO_OPERATION[radiusTrack?.mode]; 8102 if (operation2 === void 0) { 8103 throw new Error("animate: layerBlur radius must be a track definition"); 8104 } 8105 const enabled = radiusTrack.enabled !== false; 8106 const seen2 = /* @__PURE__ */ new Map(); 8107 for (const kf of radiusTrack.keyframes) seen2.set(kf.timelinePosition, kf); 8108 const sorted2 = [...seen2.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 8109 effects.push({ 8110 type: PresetGeneratedEffectType.LAYER_BLUR, 8111 radius: enabled && operation2 === KeyframeOperation.SCALE ? 1 : 0 8112 }); 8113 keyframeTracks.push(new KeyframeTrack({ 8114 topLevelField: KeyframeBindingTopLevelField.EFFECTS, 8115 index: effectIndex, 8116 effectParametrizedField: EffectParametrizedField.RADIUS, 8117 keyframeOperation: operation2, 8118 keyframes: sorted2.map(compileKeyframe), 8119 enabled 8120 })); 8121 } 8122 continue; 8123 } 8124 if (!KEYFRAMEABLE_FIELDS.has(key)) { 8125 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 8126 } 8127 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 8128 const operation = MODE_TO_OPERATION[trackDef.mode]; 8129 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 8130 const seen = /* @__PURE__ */ new Map(); 8131 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 8132 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 8133 keyframeTracks.push(new KeyframeTrack({ 8134 parameterField, 8135 keyframeOperation: operation, 8136 keyframes: sorted.map(compileKeyframe), 8137 enabled: trackDef.enabled !== false 8138 })); 8139 } 8140 return new AnimationPreset({ 8141 nodeId, 8142 keyframeTracks, 8143 textElementDelayBehaviour, 8144 effects: effects.length > 0 ? effects : void 0 8145 }); 8146 } 8147 function parseTextElementDelayBehaviour(value) { 8148 if (value === null || typeof value !== "object" || Array.isArray(value)) { 8149 throw new Error('animate: "textElementDelayBehaviour" must be an object'); 8150 } 8151 if (typeof value.enabled !== "boolean") { 8152 throw new Error('animate: "textElementDelayBehaviour.enabled" must be a boolean'); 8153 } 8154 const grouping = TextElementGrouping[value.grouping]; 8155 if (!Object.values(TextElementGrouping).includes(grouping)) { 8156 throw new Error('animate: unknown text element grouping "' + value.grouping + '"'); 8157 } 8158 if (typeof value.delayMs !== "number" || !Number.isFinite(value.delayMs) || value.delayMs < 0) { 8159 throw new Error( 8160 'animate: "textElementDelayBehaviour.delayMs" must be a non-negative finite number' 8161 ); 8162 } 8163 const order = TextElementDelayOrder[value.order]; 8164 if (!Object.values(TextElementDelayOrder).includes(order)) { 8165 throw new Error('animate: unknown text element delay order "' + value.order + '"'); 8166 } 8167 const clipContent = value.clipContent === void 0 ? false : value.clipContent; 8168 if (typeof clipContent !== "boolean") { 8169 throw new Error('animate: "textElementDelayBehaviour.clipContent" must be a boolean'); 8170 } 8171 return { 8172 enabled: value.enabled, 8173 grouping, 8174 delayMs: value.delayMs, 8175 order, 8176 clipContent 8177 }; 8178 } 8179 function parseNodeFields(value) { 8180 if (value === null || typeof value !== "object" || Array.isArray(value)) { 8181 throw new Error('animate: "nodeFields" must be an object'); 8182 } 8183 const unsupported = Object.keys(value).find((key) => key !== "textElementDelayBehaviour"); 8184 if (unsupported !== void 0) { 8185 throw new Error('animate: unknown node field "' + unsupported + '"'); 8186 } 8187 return { 8188 textElementDelayBehaviour: value.textElementDelayBehaviour === void 0 ? void 0 : parseTextElementDelayBehaviour(value.textElementDelayBehaviour) 8189 }; 8190 } 8191 8192
8192// share/motion/src/presets/source/rotation.ts 8193 function preset({ 8194 type, 8195 direction, 8196 amount, 8197 start, 8198 end, 8199 duration, 8200 easing, 8201 node 8202 }) { 8203 let rotationStart; 8204 let rotationEnd; 8205 if (type === "custom") { 8206 rotationStart = start; 8207 rotationEnd = end; 8208 } else { 8209 const sign = direction === "clockwise" ? -1 : 1; 8210 if (type === "rotateIn") { 8211 rotationStart = sign * amount; 8212 rotationEnd = 0; 8213 } else { 8214 rotationStart = 0; 8215 rotationEnd = -sign * amount; 8216 } 8217 } 8218 const from = rotationStart * (Math.PI / 180); 8219 const to = rotationEnd * (Math.PI / 180); 8220 const definition = {}; 8221 definition.rotate = tween({ 8222 mode: "offset", 8223 timelinePosition: 0, 8224 duration, 8225 from, 8226 to, 8227 easing 8228 }); 8229 return [animate(node, definition)]; 8230 } 8231 defineProperties(preset, { 8232 type: { 8233 label: "motion.preset_flyout.type", 8234 type: "string", 8235 defaultValue: "rotateIn", 8236 control: "select", 8237 options: [ 8238 { value: "rotateIn", label: "motion.preset_flyout.rotation.type.rotate_in" }, 8239 { value: "rotateOut", label: "motion.preset_flyout.rotation.type.rotate_out" }, 8240 { value: "custom", label: "motion.preset_flyout.type.custom" } 8241 ] 8242 }, 8243 direction: { 8244 label: "motion.preset_flyout.direction", 8245 type: "string", 8246 defaultValue: "clockwise", 8247 control: "select", 8248 options: [ 8249 { value: "clockwise", label: "motion.preset_flyout.rotation.direction.clockwise" }, 8250 { 8251 value: "counterClockwise", 8252 label: "motion.preset_flyout.rotation.direction.counter_clockwise" 8253 } 8254 ] 8255 }, 8256 amount: { 8257 label: "motion.preset_flyout.amount", 8258 type: "number", 8259 defaultValue: 180, 8260 control: "input", 8261 unit: "\\xB0" 8262 }, 8263 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 8264 // are redundant \u2014 section dividers are now applied client-side in the preset 8265 // flyout via \`forceShowDividerAboveTransform\` 8266 start: { 8267 label: "motion.preset_flyout.start", 8268 type: "number", 8269 defaultValue: 180, 8270 control: "input", 8271 unit: "\\xB0", 8272 showDividerAbove: true, 8273 icon: "rotation" 8274 }, 8275 end: { 8276 label: "motion.preset_flyout.end", 8277 type: "number", 8278 defaultValue: 0, 8279 control: "input", 8280 unit: "\\xB0", 8281 icon: "rotation" 8282 }, 8283 delay: { 8284 label: "motion.preset_flyout.delay", 8285 type: "number", 8286 defaultValue: 0, 8287 control: "input", 8288 unit: "s", 8289 showDividerAbove: true, 8290 icon: "delay" 8291 }, 8292 duration: { 8293 label: "motion.preset_flyout.duration", 8294 type: "number", 8295 defaultValue: 0.5, 8296 control: "input", 8297 min: 0.01, 8298 unit: "s", 8299 icon: "time" 8300 }, 8301 easing: { 8302 label: "motion.preset_flyout.easing", 8303 type: "easing", 8304 defaultValue: { 8305 easingType: EasingType.OUT_CUBIC 8306 } 8307 } 8308 }); 8309 return __toCommonJS(rotation_exports); 8310})();`});var F0,G0,k0=nn(()=>{F0=`// Source-of-truth for the SCALE first-party animation preset. 8311// 8312// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 8313// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 8314// resolved, and emits both strings into \`../generated/scale.generated.ts\`. The 8315// generated module is what runtime code consumes \u2014 never import this file 8316// directly from production code paths. 8317// 8318// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 8319// only an input to the codegen tool, evaluated inside the QuickJS / iframe 8320// sandbox at runtime. 8321 8322import { animate, defineProperties, EasingType, tween } from 'figma:motion' 8323 8324import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 8325 8326export default function preset({ 8327 type, 8328 axis, 8329 amount, 8330 wStartWithDivider, 8331 wEndWithoutDivider, 8332 wEndWithDivider, 8333 hStartWithoutDivider, 8334 hStartWithDivider, 8335 hEndWithoutDivider, 8336 duration, 8337 easing, 8338 node, 8339}: PresetArgs) { 8340 const selectedType = type || 'scaleIn' 8341 const selectedAxis = axis || 'w' 8342 const safeAmount = (amount ?? 120) / 100 8343 8344 // Scale in should scale INTO the base size by growing/shrinking from amount -> base size 8345 // Scale out should scale OUT OF the base size by growing/shrinking from base size -> amount 8346 8347 function getWFromTo(): [number, number] { 8348 if (selectedType === 'custom') { 8349 if (selectedAxis === 'h') return [1, 1] 8350 if (selectedAxis === 'whCombined') { 8351 return [wStartWithDivider / 100, wEndWithDivider / 100] 8352 } 8353 return [wStartWithDivider / 100, wEndWithoutDivider / 100] 8354 } 8355 if (selectedType === 'scaleOut') return [1, safeAmount] 8356 return [safeAmount, 1] 8357 } 8358 function getHFromTo(): [number, number] { 8359 if (selectedType === 'custom') { 8360 if (selectedAxis === 'w') return [1, 1] 8361 if (selectedAxis === 'whCombined') { 8362 return [hStartWithoutDivider / 100, hEndWithoutDivider / 100] 8363 } 8364 return [hStartWithDivider / 100, hEndWithoutDivider / 100] 8365 } 8366 if (selectedType === 'scaleOut') return [1, safeAmount] 8367 return [safeAmount, 1] 8368 } 8369 8370 const [xFrom, xTo] = getWFromTo() 8371 const [yFrom, yTo] = getHFromTo() 8372 8373 // Both axes share the timing. The shared \`delay\` is synced to the preset's 8374 // \`timelineOffset\`, so it isn't baked into keyframe \`timelinePosition\`. 8375 const definition: PresetTrackDefinitions = {} 8376 definition.scaleX = tween({
8377 mode: 'scale', 8378 duration, 8379 from: xFrom, 8380 to: xTo, 8381 easing, 8382 }) 8383 definition.scaleY = tween({ 8384 mode: 'scale', 8385 duration, 8386 from: yFrom, 8387 to: yTo, 8388 easing, 8389 }) 8390 8391 return [animate(node, definition)] 8392} 8393 8394// KEEP_IN_SYNC(share/motion/src/presets/scale_meta.ts) \u2014 the 8395// property bounds (min/max/unit) must match \`PROP_DEFS[*].inputConfig\` so the 8396// panel-side TS metadata and the bundled IIFE agree on every prop's contract. 8397// 8398// Prop ORDER below drives the panel row order. 8399defineProperties(preset, { 8400 type: { 8401 label: 'motion.preset_flyout.type', 8402 type: 'string', 8403 defaultValue: 'scaleIn', 8404 control: 'select', 8405 options: [ 8406 { value: 'scaleIn', label: 'motion.preset_flyout.scale.type.scale_in' }, 8407 { value: 'scaleOut', label: 'motion.preset_flyout.scale.type.scale_out' }, 8408 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 8409 ], 8410 }, 8411 axis: { 8412 label: 'motion.preset_flyout.axis', 8413 type: 'string', 8414 defaultValue: 'whCombined', 8415 control: 'select', 8416 options: [ 8417 { value: 'w', label: 'motion.preset_flyout.w' }, 8418 { value: 'h', label: 'motion.preset_flyout.h' }, 8419 { value: 'whCombined', label: 'motion.preset_flyout.both' }, 8420 ], 8421 }, 8422 amount: { 8423 label: 'motion.preset_flyout.amount', 8424 type: 'number', 8425 defaultValue: 120, 8426 control: 'input', 8427 min: 0, 8428 unit: '%', 8429 }, 8430 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 8431 // are redundant \u2014 section dividers are now applied client-side in the preset 8432 // flyout via \`forceShowDividerAboveTransform\` 8433 wStartWithDivider: { 8434 label: 'motion.preset_flyout.start', 8435 type: 'number', 8436 defaultValue: 120, 8437 control: 'input', 8438 min: 0, 8439 unit: '%', 8440 showDividerAbove: true, 8441 icon: 'w', 8442 }, 8443 wEndWithoutDivider: { 8444 label: 'motion.preset_flyout.end', 8445 type: 'number', 8446 defaultValue: 100, 8447 control: 'input', 8448 min: 0, 8449 unit: '%', 8450 icon: 'w', 8451 }, 8452 // whCombined-only variants: hStartWithoutDivider groups under the Starts 8453 // divider (set by wStartWithDivider above), wEndWithDivider starts the Ends 8454 // group. Hidden for every other layout. 8455 hStartWithoutDivider: { 8456 label: 'motion.preset_flyout.start', 8457 type: 'number', 8458 defaultValue: 120, 8459 control: 'input', 8460 min: 0, 8461 unit: '%', 8462 icon: 'h', 8463 }, 8464 wEndWithDivider: { 8465 label: 'motion.preset_flyout.end', 8466 type: 'number', 8467 defaultValue: 100, 8468 control: 'input', 8469 min: 0, 8470 unit: '%', 8471 showDividerAbove: true, 8472 icon: 'w', 8473 }, 8474 hStartWithDivider: { 8475 label: 'motion.preset_flyout.start', 8476 type: 'number', 8477 defaultValue: 120, 8478 control: 'input', 8479 min: 0, 8480 unit: '%', 8481 showDividerAbove: true, 8482 icon: 'h', 8483 }, 8484 hEndWithoutDivider: { 8485 label: 'motion.preset_flyout.end', 8486 type: 'number', 8487 defaultValue: 100, 8488 control: 'input', 8489 min: 0, 8490 unit: '%', 8491 icon: 'h', 8492 }, 8493 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 8494 delay: { 8495 label: 'motion.preset_flyout.delay', 8496 type: 'number', 8497 defaultValue: 0, 8498 control: 'input', 8499 unit: 's', 8500 showDividerAbove: true, 8501 icon: 'delay', 8502 }, 8503 duration: { 8504 label: 'motion.preset_flyout.duration', 8505 type: 'number', 8506 defaultValue: 0.5, 8507 control: 'input', 8508 min: 0.01, 8509 unit: 's', 8510 icon: 'time', 8511 }, 8512 easing: { 8513 label: 'motion.preset_flyout.easing', 8514 type: 'easing', 8515 defaultValue: { easingType: EasingType.OUT_CUBIC }, 8516 }, 8517}) 8518`,G0=`var __presetBundle = (() => { 8519 var __defProp = Object.defineProperty; 8520 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 8521 var __getOwnPropNames = Object.getOwnPropertyNames; 8522 var __hasOwnProp = Object.prototype.hasOwnProperty; 8523 var __export = (target, all) => { 8524 for (var name in all) 8525 __defProp(target, name, { get: all[name], enumerable: true }); 8526 }; 8527 var __copyProps = (to, from, except, desc) => { 8528 if (from && typeof from === "object" || typeof from === "function") { 8529 for (let key of __getOwnPropNames(from)) 8530 if (!__hasOwnProp.call(to, key) && key !== except) 8531 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 8532 } 8533 return to; 8534 }; 8535 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 8536 8537
8537// share/motion/src/presets/source/scale.ts 8538 var scale_exports = {}; 8539 __export(scale_exports, { 8540 default: () => preset 8541 }); 8542 8543 // figma-motion:figma:motion 8544 function defineProperties(component, spec) { 8545 Object.assign(component, { 8546 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 8547 }); 8548 } 8549 var EasingType = { 8550 IN_CUBIC: 0, 8551 inCubic: 0, 8552 OUT_CUBIC: 1, 8553 outCubic: 1, 8554 INOUT_CUBIC: 2, 8555 inOutCubic: 2, 8556 LINEAR: 3, 8557 linear: 3, 8558 IN_BACK_CUBIC: 4, 8559 inBackCubic: 4, 8560 OUT_BACK_CUBIC: 5, 8561 outBackCubic: 5, 8562 INOUT_BACK_CUBIC: 6, 8563 inOutBackCubic: 6, 8564 CUSTOM_CUBIC: 7, 8565 customCubic: 7, 8566 SPRING: 8, 8567 spring: 8, 8568 GENTLE_SPRING: 9, 8569 gentleSpring: 9, 8570 CUSTOM_SPRING: 10, 8571 customSpring: 10, 8572 SPRING_PRESET_ONE: 11, 8573 springPresetOne: 11, 8574 SPRING_PRESET_TWO: 12, 8575 springPresetTwo: 12, 8576 SPRING_PRESET_THREE: 13, 8577 springPresetThree: 13, 8578 // For backwards compat 8579 bezier: 100, 8580 BEZIER: 100 8581 }; 8582 var InterpolationType = { 8583 HOLD: 0, 8584 hold: 0, 8585 BEZIER: 1, 8586 bezier: 1 8587 }; 8588 var KeyframeOperation = { 8589 SET: 0, 8590 set: 0, 8591 SCALE: 1, 8592 scale: 1, 8593 OFFSET: 2, 8594 offset: 2 8595 }; 8596 var KeyframeBindingTopLevelField = { 8597 MISSING: 0, 8598 PARAMETER_CONSUMPTION_MAP: 1, 8599 EFFECTS: 2, 8600 effects: 2 8601 }; 8602 var TextElementGrouping = { 8603 CHARACTER: 0, 8604 CHARACTER_NO_WHITESPACE: 1, 8605 WORD: 2, 8606 LINE: 3, 8607 PARAGRAPH: 4 8608 }; 8609 var TextElementDelayOrder = { 8610 LEFT_RIGHT: 0, 8611 RIGHT_LEFT: 1, 8612 CENTER_OUT: 2, 8613 RANDOM: 3 8614 }; 8615 var PresetGeneratedEffectType = { 8616 LAYER_BLUR: 0 8617 }; 8618 var ParameterField = { 8619 MISSING: 0, 8620 missing: 0, 8621 CORNER_RADIUS: 1, 8622 cornerRadius: 1, 8623 PARAGRAPH_SPACING: 2, 8624 paragraphSpacing: 2, 8625 PARAGRAPH_INDENT: 3, 8626 paragraphIndent: 3, 8627 STROKE_WEIGHT: 4, 8628 strokeWeight: 4, 8629 STACK_SPACING: 5, 8630 stackSpacing: 5, 8631 STACK_PADDING_LEFT: 6, 8632 stackPaddingLeft: 6, 8633 STACK_PADDING_TOP: 7, 8634 stackPaddingTop: 7, 8635 STACK_PADDING_RIGHT: 8, 8636 stackPaddingRight: 8, 8637 STACK_PADDING_BOTTOM: 9, 8638 stackPaddingBottom: 9, 8639 VISIBLE: 10, 8640 visible: 10, 8641 TEXT_DATA: 11, 8642 textData: 11, 8643 WIDTH: 12, 8644 width: 12, 8645 HEIGHT: 13, 8646 height: 13, 8647 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 8648 rectangleTopLeftCornerRadius: 14, 8649 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 8650 rectangleTopRightCornerRadius: 15, 8651 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 8652 rectangleBottomLeftCornerRadius: 16, 8653 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 8654 rectangleBottomRightCornerRadius: 17, 8655 BORDER_TOP_WEIGHT: 18, 8656 borderTopWeight: 18, 8657 BORDER_BOTTOM_WEIGHT: 19, 8658 borderBottomWeight: 19, 8659 BORDER_LEFT_WEIGHT: 20, 8660 borderLeftWeight: 20, 8661 BORDER_RIGHT_WEIGHT: 21, 8662 borderRightWeight: 21, 8663 VARIANT_PROPERTIES: 22, 8664 variantProperties: 22, 8665 STACK_COUNTER_SPACING: 23, 8666 stackCounterSpacing: 23, 8667 MIN_WIDTH: 24, 8668 minWidth: 24, 8669 MAX_WIDTH: 25, 8670 maxWidth: 25, 8671 MIN_HEIGHT: 26, 8672 minHeight: 26, 8673 MAX_HEIGHT: 27, 8674 maxHeight: 27, 8675 FONT_FAMILY: 28, 8676 fontFamily: 28, 8677 FONT_STYLE: 29, 8678 fontStyle: 29, 8679 FONT_VARIATIONS: 30, 8680 fontVariations: 30, 8681 OPACITY: 31, 8682 opacity: 31, 8683 FONT_SIZE: 32, 8684 fontSize: 32, 8685 LETTER_SPACING: 34, 8686 letterSpacing: 34, 8687 LINE_HEIGHT: 36, 8688 lineHeight: 36, 8689 OVERRIDDEN_SYMBOL_ID: 37, 8690 overriddenSymbolId: 37, 8691 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 8692 cmsSerializedRichTextData: 38, 8693 HYPERLINK: 39, 8694 hyperlink: 39, 8695 SLOT_CONTENT_ID: 40, 8696 slotContentId: 40, 8697 GRID_ROW_GAP: 41, 8698 gridRowGap: 41, 8699 GRID_COLUMN_GAP: 42, 8700 gridColumnGap: 42, 8701 RELATIVE_X_POSITION: 43, 8702 xPosition: 43, 8703 RELATIVE_Y_POSITION: 44, 8704 relativeYPosition: 44, 8705 RELATIVE_ROTATION: 45, 8706 relativeRotation: 45, 8707 MOTION_TRANSLATION_X: 46, 8708 motionTranslationX: 46, 8709 MOTION_TRANSLATION_Y: 47, 8710 motionTranslationY: 47, 8711 MOTION_ROTATION: 48, 8712 motionRotation: 48, 8713 MOTION_SCALE_X: 49, 8714 motionScaleX: 49, 8715 MOTION_SCALE_Y: 50, 8716 motionScaleY: 50, 8717 MOTION_SHEAR: 51, 8718 motionShear: 51, 8719 SCROLL_OFFSET_X: 52, 8720 scrollOffsetX: 52, 8721 SCROLL_OFFSET_Y: 53, 8722 scrollOffsetY: 53, 8723 PATH_TRIM_START: 54, 8724 pathTrimStart: 54, 8725 PATH_TRIM_END: 55, 8726 pathTrimEnd: 55, 8727 DISSOLVE_PROGRESS: 56, 8728 dissolveProgress: 56 8729 }; 8730 var EffectParametrizedField = { 8731 MISSING: 0, 8732 missing: 0, 8733 OFFSET_X: 1, 8734 offsetX: 1, 8735 OFFSET_Y: 2, 8736 offsetY: 2, 8737 RADIUS: 3, 8738 radius: 3, 8739 SPREAD: 4, 8740 spread: 4, 8741 COLOR: 5, 8742 color: 5, 8743 REFRACTION_RADIUS: 6, 8744 refractionRadius: 6, 8745 SPECULAR_ANGLE: 7, 8746 specularAngle: 7, 8747 SPECULAR_INTENSITY: 8, 8748 specularIntensity: 8, 8749 CHROMATIC_ABERRATION: 9, 8750 chromaticAberration: 9, 8751 SPLAY: 10, 8752 splay: 10, 8753 REFRACTION_INTENSITY: 11, 8754 refractionIntensity: 11, 8755 START_RADIUS: 12, 8756 startRadius: 12, 8757 START_OFFSET_X: 13, 8758 startOffsetX: 13, 8759 START_OFFSET_Y: 14, 8760 startOffsetY: 14, 8761 END_OFFSET_X: 15, 8762 endOffsetX: 15, 8763 END_OFFSET_Y: 16, 8764 endOffsetY: 16, 8765 NOISE_SIZE_X: 17, 8766 noiseSizeX: 17, 8767 NOISE_SIZE_Y: 18, 8768 noiseSizeY: 18, 8769 DENSITY: 19, 8770 density: 19, 8771 EFFECT_OPACITY: 20, 8772 effectOpacity: 20, 8773 SECONDARY_COLOR: 21, 8774 secondaryColor: 21 8775 }; 8776 var Keyframe = class { 8777 constructor(data) { 8778 this.timelinePosition = Math.round(data.timelinePosition); 8779 this.easing = data.easing; 8780 this.value = data.value; 8781 } 8782 }; 8783 var KeyframeTrack = class { 8784 constructor(data) { 8785 this.topLevelField = data.topLevelField; 8786 this.parameterField = data.parameterField; 8787 this.index = data.index; 8788 this.effectParametrizedField = data.effectParametrizedField; 8789 this.keyframeOperation = data.keyframeOperation; 8790 this.keyframes = data.keyframes; 8791 this.enabled = !!data.enabled; 8792 } 8793 }; 8794 var AnimationPreset = class { 8795 constructor(data) { 8796 this.nodeId = data.nodeId; 8797 this.keyframeTracks = data.keyframeTracks; 8798 this.textElementDelayBehaviour = data.textElementDelayBehaviour; 8799 this.effects = data.effects; 8800 } 8801 }; 8802 var PARAMETER_FIELD_ALIAS_MAP = { 8803 translateX: ParameterField.MOTION_TRANSLATION_X, 8804 translateY: ParameterField.MOTION_TRANSLATION_Y, 8805 rotate: ParameterField.MOTION_ROTATION, 8806 scaleX: ParameterField.MOTION_SCALE_X, 8807 scaleY: ParameterField.MOTION_SCALE_Y, 8808 shear: ParameterField.MOTION_SHEAR 8809 }; 8810 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 8811 var MODE_TO_OPERATION = { 8812 set: KeyframeOperation.SET, 8813 SET: KeyframeOperation.SET, 8814 offset: KeyframeOperation.OFFSET, 8815 OFFSET: KeyframeOperation.OFFSET, 8816 scale: KeyframeOperation.SCALE, 8817 SCALE: KeyframeOperation.SCALE 8818 }; 8819 var TEXT_ELEMENTS_TARGET = /* @__PURE__ */ Symbol("figma.motion.textElements"); 8820 var LAYER_BLUR_EFFECT = /* @__PURE__ */ Symbol("figma.motion.layerBlur"); 8821 function normalizeEasing(easing) { 8822 if (easing === void 0) return void 0; 8823 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 8824 if (typeof easing === "string") { 8825 const easingType = EasingType[easing]; 8826 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 8827 return { easingType }; 8828 } 8829 return easing; 8830 } 8831 function compileKeyframe({ timelinePosition, value, easing }) { 8832 return new Keyframe({ 8833 timelinePosition: timelinePosition * 1e6, 8834 easing: normalizeEasing(easing), 8835 value 8836 }); 8837 } 8838 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 8839 if (duration < 0) throw new Error("tween: duration must be non-negative"); 8840 return { 8841 mode, 8842 enabled, 8843 keyframes: [ 8844 { timelinePosition, value: from, easing }, 8845 { timelinePosition: timelinePosition + duration, value: to, easing } 8846 ] 8847 }; 8848 } 8849 function animate(target, definition) { 8850 const isTextElementsTarget = target?.[TEXT_ELEMENTS_TARGET] === true; 8851 const node = isTextElementsTarget ? target.node : target; 8852 const nodeId = typeof node === "string" ? node : node.id;
8853 const keyframeTracks = []; 8854 const effects = []; 8855 let textElementDelayBehaviour = isTextElementsTarget ? target.textElementDelayBehaviour : void 0; 8856 for (const [key, trackDef] of Object.entries(definition)) { 8857 if (key === "nodeFields") { 8858 textElementDelayBehaviour = parseNodeFields(trackDef).textElementDelayBehaviour; 8859 continue; 8860 } 8861 if (key === "effects") { 8862 if (!Array.isArray(trackDef)) { 8863 throw new Error('animate: "effects" must be an array'); 8864 } 8865 if (trackDef.length > 1) { 8866 throw new Error("animate: at most one layer blur effect per preset is supported"); 8867 } 8868 for (const effect of trackDef) { 8869 if (effect?.[LAYER_BLUR_EFFECT] !== true) { 8870 throw new Error("animate: unsupported effect descriptor"); 8871 } 8872 const effectIndex = effects.length; 8873 const radiusTrack = effect.radius; 8874 const operation2 = MODE_TO_OPERATION[radiusTrack?.mode]; 8875 if (operation2 === void 0) { 8876 throw new Error("animate: layerBlur radius must be a track definition"); 8877 } 8878 const enabled = radiusTrack.enabled !== false; 8879 const seen2 = /* @__PURE__ */ new Map(); 8880 for (const kf of radiusTrack.keyframes) seen2.set(kf.timelinePosition, kf); 8881 const sorted2 = [...seen2.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 8882 effects.push({ 8883 type: PresetGeneratedEffectType.LAYER_BLUR, 8884 radius: enabled && operation2 === KeyframeOperation.SCALE ? 1 : 0 8885 }); 8886 keyframeTracks.push(new KeyframeTrack({ 8887 topLevelField: KeyframeBindingTopLevelField.EFFECTS, 8888 index: effectIndex, 8889 effectParametrizedField: EffectParametrizedField.RADIUS, 8890 keyframeOperation: operation2, 8891 keyframes: sorted2.map(compileKeyframe), 8892 enabled 8893 })); 8894 } 8895 continue; 8896 } 8897 if (!KEYFRAMEABLE_FIELDS.has(key)) { 8898 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 8899 } 8900 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 8901 const operation = MODE_TO_OPERATION[trackDef.mode]; 8902 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 8903 const seen = /* @__PURE__ */ new Map(); 8904 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 8905 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 8906 keyframeTracks.push(new KeyframeTrack({ 8907 parameterField, 8908 keyframeOperation: operation, 8909 keyframes: sorted.map(compileKeyframe), 8910 enabled: trackDef.enabled !== false 8911 })); 8912 } 8913 return new AnimationPreset({ 8914 nodeId, 8915 keyframeTracks, 8916 textElementDelayBehaviour, 8917 effects: effects.length > 0 ? effects : void 0 8918 }); 8919 } 8920 function parseTextElementDelayBehaviour(value) { 8921 if (value === null || typeof value !== "object" || Array.isArray(value)) { 8922 throw new Error('animate: "textElementDelayBehaviour" must be an object'); 8923 } 8924 if (typeof value.enabled !== "boolean") { 8925 throw new Error('animate: "textElementDelayBehaviour.enabled" must be a boolean'); 8926 } 8927 const grouping = TextElementGrouping[value.grouping]; 8928 if (!Object.values(TextElementGrouping).includes(grouping)) { 8929 throw new Error('animate: unknown text element grouping "' + value.grouping + '"'); 8930 } 8931 if (typeof value.delayMs !== "number" || !Number.isFinite(value.delayMs) || value.delayMs < 0) { 8932 throw new Error( 8933 'animate: "textElementDelayBehaviour.delayMs" must be a non-negative finite number' 8934 ); 8935 } 8936 const order = TextElementDelayOrder[value.order]; 8937 if (!Object.values(TextElementDelayOrder).includes(order)) { 8938 throw new Error('animate: unknown text element delay order "' + value.order + '"'); 8939 } 8940 const clipContent = value.clipContent === void 0 ? false : value.clipContent; 8941 if (typeof clipContent !== "boolean") { 8942 throw new Error('animate: "textElementDelayBehaviour.clipContent" must be a boolean'); 8943 } 8944 return { 8945 enabled: value.enabled, 8946 grouping, 8947 delayMs: value.delayMs, 8948 order, 8949 clipContent 8950 }; 8951 } 8952 function parseNodeFields(value) { 8953 if (value === null || typeof value !== "object" || Array.isArray(value)) { 8954 throw new Error('animate: "nodeFields" must be an object'); 8955 } 8956 const unsupported = Object.keys(value).find((key) => key !== "textElementDelayBehaviour"); 8957 if (unsupported !== void 0) { 8958 throw new Error('animate: unknown node field "' + unsupported + '"'); 8959 } 8960 return { 8961 textElementDelayBehaviour: value.textElementDelayBehaviour === void 0 ? void 0 : parseTextElementDelayBehaviour(value.textElementDelayBehaviour) 8962 }; 8963 } 8964 8965
8965// share/motion/src/presets/source/scale.ts 8966 function preset({ 8967 type, 8968 axis, 8969 amount, 8970 wStartWithDivider, 8971 wEndWithoutDivider, 8972 wEndWithDivider, 8973 hStartWithoutDivider, 8974 hStartWithDivider, 8975 hEndWithoutDivider, 8976 duration, 8977 easing, 8978 node 8979 }) { 8980 const selectedType = type || "scaleIn"; 8981 const selectedAxis = axis || "w"; 8982 const safeAmount = (amount ?? 120) / 100; 8983 function getWFromTo() { 8984 if (selectedType === "custom") { 8985 if (selectedAxis === "h") return [1, 1]; 8986 if (selectedAxis === "whCombined") { 8987 return [wStartWithDivider / 100, wEndWithDivider / 100]; 8988 } 8989 return [wStartWithDivider / 100, wEndWithoutDivider / 100]; 8990 } 8991 if (selectedType === "scaleOut") return [1, safeAmount]; 8992 return [safeAmount, 1]; 8993 } 8994 function getHFromTo() { 8995 if (selectedType === "custom") { 8996 if (selectedAxis === "w") return [1, 1]; 8997 if (selectedAxis === "whCombined") { 8998 return [hStartWithoutDivider / 100, hEndWithoutDivider / 100]; 8999 } 9000 return [hStartWithDivider / 100, hEndWithoutDivider / 100]; 9001 } 9002 if (selectedType === "scaleOut") return [1, safeAmount]; 9003 return [safeAmount, 1]; 9004 } 9005 const [xFrom, xTo] = getWFromTo(); 9006 const [yFrom, yTo] = getHFromTo(); 9007 const definition = {}; 9008 definition.scaleX = tween({ 9009 mode: "scale", 9010 duration, 9011 from: xFrom, 9012 to: xTo, 9013 easing 9014 }); 9015 definition.scaleY = tween({ 9016 mode: "scale", 9017 duration, 9018 from: yFrom, 9019 to: yTo, 9020 easing 9021 }); 9022 return [animate(node, definition)]; 9023 } 9024 defineProperties(preset, { 9025 type: { 9026 label: "motion.preset_flyout.type", 9027 type: "string", 9028 defaultValue: "scaleIn", 9029 control: "select", 9030 options: [ 9031 { value: "scaleIn", label: "motion.preset_flyout.scale.type.scale_in" }, 9032 { value: "scaleOut", label: "motion.preset_flyout.scale.type.scale_out" }, 9033 { value: "custom", label: "motion.preset_flyout.type.custom" } 9034 ] 9035 }, 9036 axis: { 9037 label: "motion.preset_flyout.axis", 9038 type: "string", 9039 defaultValue: "whCombined", 9040 control: "select", 9041 options: [ 9042 { value: "w", label: "motion.preset_flyout.w" }, 9043 { value: "h", label: "motion.preset_flyout.h" }, 9044 { value: "whCombined", label: "motion.preset_flyout.both" } 9045 ] 9046 }, 9047 amount: { 9048 label: "motion.preset_flyout.amount", 9049 type: "number", 9050 defaultValue: 120, 9051 control: "input", 9052 min: 0, 9053 unit: "%" 9054 }, 9055 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 9056 // are redundant \u2014 section dividers are now applied client-side in the preset 9057 // flyout via \`forceShowDividerAboveTransform\` 9058 wStartWithDivider: { 9059 label: "motion.preset_flyout.start", 9060 type: "number", 9061 defaultValue: 120, 9062 control: "input", 9063 min: 0, 9064 unit: "%", 9065 showDividerAbove: true, 9066 icon: "w" 9067 }, 9068 wEndWithoutDivider: { 9069 label: "motion.preset_flyout.end", 9070 type: "number", 9071 defaultValue: 100, 9072 control: "input", 9073 min: 0, 9074 unit: "%", 9075 icon: "w" 9076 }, 9077 // whCombined-only variants: hStartWithoutDivider groups under the Starts 9078 // divider (set by wStartWithDivider above), wEndWithDivider starts the Ends 9079 // group. Hidden for every other layout. 9080 hStartWithoutDivider: { 9081 label: "motion.preset_flyout.start", 9082 type: "number", 9083 defaultValue: 120, 9084 control: "input", 9085 min: 0, 9086 unit: "%", 9087 icon: "h" 9088 }, 9089 wEndWithDivider: { 9090 label: "motion.preset_flyout.end", 9091 type: "number", 9092 defaultValue: 100, 9093 control: "input", 9094 min: 0, 9095 unit: "%", 9096 showDividerAbove: true, 9097 icon: "w" 9098 }, 9099 hStartWithDivider: { 9100 label: "motion.preset_flyout.start", 9101 type: "number", 9102 defaultValue: 120, 9103 control: "input", 9104 min: 0, 9105 unit: "%", 9106 showDividerAbove: true, 9107 icon: "h" 9108 }, 9109 hEndWithoutDivider: { 9110 label: "motion.preset_flyout.end", 9111 type: "number", 9112 defaultValue: 100, 9113 control: "input", 9114 min: 0, 9115 unit: "%", 9116 icon: "h" 9117 }, 9118 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 9119 delay: { 9120 label: "motion.preset_flyout.delay", 9121 type: "number", 9122 defaultValue: 0, 9123 control: "input", 9124 unit: "s", 9125 showDividerAbove: true, 9126 icon: "delay" 9127 }, 9128 duration: { 9129 label: "motion.preset_flyout.duration", 9130 type: "number", 9131 defaultValue: 0.5, 9132 control: "input", 9133 min: 0.01, 9134 unit: "s", 9135 icon: "time" 9136 }, 9137 easing: { 9138 label: "motion.preset_flyout.easing", 9139 type: "easing", 9140 defaultValue: { easingType: EasingType.OUT_CUBIC } 9141 } 9142 });
9143 return __toCommonJS(scale_exports); 9144})();`});var w0,B0,U0=nn(()=>{w0=`// Source-of-truth for the SIZE first-party animation preset. 9145// 9146// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 9147// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 9148// resolved, and emits both strings into \`../generated/size.generated.ts\`. 9149// The generated module is what runtime code consumes \u2014 never import this file 9150// directly from production code paths. 9151// 9152// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 9153// only an input to the codegen tool, evaluated inside the QuickJS / iframe 9154// sandbox at runtime. 9155 9156import { animate, defineProperties, EasingType, tween } from 'figma:motion' 9157 9158import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 9159 9160function buildAxisTrack( 9161 from: number, 9162 to: number, 9163 duration: number, 9164 easing: unknown, 9165 enabled: boolean, 9166) { 9167 // The runtime adds \`timelineOffset\` back in when placing keyframes on the parent timeline (\`keyframe_conversion.ts\`). 9168 // The \`delay\` prop is kept in sync with \`timelineOffset\`, so it must NOT be folded into \`timelinePosition\` here \u2014 that would double-count. 9169 return tween({ 9170 mode: 'offset', 9171 timelinePosition: 0, 9172 duration, 9173 from, 9174 to, 9175 easing, 9176 enabled, 9177 }) 9178} 9179 9180export default function preset({ 9181 type, 9182 amount, 9183 axis, 9184 startWidth, 9185 endWidth, 9186 startHeight, 9187 endHeight, 9188 duration, 9189 easing, 9190 node, 9191}: PresetArgs) { 9192 const safeAmount = typeof amount === 'number' ? amount : 0 9193 const safeStartWidth = typeof startWidth === 'number' ? startWidth : 50 9194 const safeEndWidth = typeof endWidth === 'number' ? endWidth : 100 9195 const safeStartHeight = typeof startHeight === 'number' ? startHeight : 50 9196 const safeEndHeight = typeof endHeight === 'number' ? endHeight : 100 9197 const safeDuration = typeof duration === 'number' ? duration : 0.5 9198 9199 let widthTrack: [number, number] | null = null 9200 let heightTrack: [number, number] | null = null 9201 let widthEnabled = true 9202 let heightEnabled = true 9203 9204 switch (type) { 9205 case 'resize_in': { 9206 // Resize INTO the base size by shrinking/growing from base + amount -> base 9207 widthTrack = [safeAmount, 0] 9208 heightTrack = [safeAmount, 0] 9209 break 9210 } 9211 case 'resize_out': { 9212 // Resize OUT OF the base size by shrinking/growing from base -> base + amount 9213 widthTrack = [0, safeAmount] 9214 heightTrack = [0, safeAmount] 9215 break 9216 } 9217 case 'custom': { 9218 widthEnabled = axis !== 'y' 9219 heightEnabled = axis !== 'x' 9220 widthTrack = [safeStartWidth, safeEndWidth] 9221 heightTrack = [safeStartHeight, safeEndHeight] 9222 break 9223 } 9224 default: 9225 break 9226 } 9227 9228 const definition: PresetTrackDefinitions = {} 9229 if (widthTrack) { 9230 definition.width = buildAxisTrack( 9231 widthTrack[0], 9232 widthTrack[1], 9233 safeDuration, 9234 easing, 9235 widthEnabled, 9236 ) 9237 } 9238 if (heightTrack) { 9239 definition.height = buildAxisTrack( 9240 heightTrack[0], 9241 heightTrack[1], 9242 safeDuration, 9243 easing, 9244 heightEnabled, 9245 ) 9246 } 9247 9248 return [animate(node, definition)] 9249} 9250 9251defineProperties(preset, { 9252 type: { 9253 label: 'motion.preset_flyout.type', 9254 type: 'string', 9255 defaultValue: 'resize_in', 9256 control: 'select', 9257 options: [ 9258 { value: 'resize_in', label: 'motion.preset_flyout.size.type.resize_in' }, 9259 { value: 'resize_out', label: 'motion.preset_flyout.size.type.resize_out' }, 9260 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 9261 ], 9262 }, 9263 amount: { 9264 label: 'motion.preset_flyout.amount', 9265 type: 'number', 9266 control: 'input', 9267 defaultValue: 50, 9268 unit: 'px', 9269 }, 9270 axis: { 9271 label: 'motion.preset_flyout.axis', 9272 type: 'string', 9273 defaultValue: 'xy', 9274 control: 'select', 9275 options: [ 9276 { value: 'x', label: 'motion.preset_flyout.x' }, 9277 { value: 'y', label: 'motion.preset_flyout.y' }, 9278 { value: 'xy', label: 'motion.preset_flyout.both' }, 9279 ], 9280 }, 9281 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 9282 // are redundant \u2014 section dividers are now applied client-side in the preset 9283 // flyout via \`forceShowDividerAboveTransform\`. 9284 // Order is start values then end values (startWidth, startHeight, endWidth, 9285 // endHeight) so the custom-xy flyout groups Starts then Ends, matching the
9286 // dividers in \`getSectionDividerProps\` (and the position preset's layout). 9287 startWidth: { 9288 label: 'motion.preset_flyout.start', 9289 type: 'number', 9290 control: 'input', 9291 defaultValue: 50, 9292 icon: 'w', 9293 showDividerAbove: true, 9294 }, 9295 startHeight: { 9296 label: 'motion.preset_flyout.start', 9297 type: 'number', 9298 control: 'input', 9299 defaultValue: 50, 9300 icon: 'h', 9301 }, 9302 endWidth: { 9303 label: 'motion.preset_flyout.end', 9304 type: 'number', 9305 control: 'input', 9306 defaultValue: 100, 9307 icon: 'w', 9308 }, 9309 endHeight: { 9310 label: 'motion.preset_flyout.end', 9311 type: 'number', 9312 control: 'input', 9313 defaultValue: 100, 9314 icon: 'h', 9315 }, 9316 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 9317 delay: { 9318 label: 'motion.preset_flyout.delay', 9319 type: 'number', 9320 control: 'input', 9321 defaultValue: 0, 9322 unit: 's', 9323 showDividerAbove: true, 9324 icon: 'delay', 9325 }, 9326 duration: { 9327 label: 'motion.preset_flyout.duration', 9328 type: 'number', 9329 control: 'input', 9330 defaultValue: 0.5, 9331 min: 0.01, 9332 unit: 's', 9333 icon: 'time', 9334 }, 9335 easing: { 9336 label: 'motion.preset_flyout.easing', 9337 type: 'easing', 9338 defaultValue: { 9339 easingType: EasingType.OUT_CUBIC, 9340 }, 9341 }, 9342}) 9343`,B0=`var __presetBundle = (() => { 9344 var __defProp = Object.defineProperty; 9345 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 9346 var __getOwnPropNames = Object.getOwnPropertyNames; 9347 var __hasOwnProp = Object.prototype.hasOwnProperty; 9348 var __export = (target, all) => { 9349 for (var name in all) 9350 __defProp(target, name, { get: all[name], enumerable: true }); 9351 }; 9352 var __copyProps = (to, from, except, desc) => { 9353 if (from && typeof from === "object" || typeof from === "function") { 9354 for (let key of __getOwnPropNames(from)) 9355 if (!__hasOwnProp.call(to, key) && key !== except) 9356 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 9357 } 9358 return to; 9359 }; 9360 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 9361 9362
9362// share/motion/src/presets/source/size.ts 9363 var size_exports = {}; 9364 __export(size_exports, { 9365 default: () => preset 9366 }); 9367 9368 // figma-motion:figma:motion 9369 function defineProperties(component, spec) { 9370 Object.assign(component, { 9371 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 9372 }); 9373 } 9374 var EasingType = { 9375 IN_CUBIC: 0, 9376 inCubic: 0, 9377 OUT_CUBIC: 1, 9378 outCubic: 1, 9379 INOUT_CUBIC: 2, 9380 inOutCubic: 2, 9381 LINEAR: 3, 9382 linear: 3, 9383 IN_BACK_CUBIC: 4, 9384 inBackCubic: 4, 9385 OUT_BACK_CUBIC: 5, 9386 outBackCubic: 5, 9387 INOUT_BACK_CUBIC: 6, 9388 inOutBackCubic: 6, 9389 CUSTOM_CUBIC: 7, 9390 customCubic: 7, 9391 SPRING: 8, 9392 spring: 8, 9393 GENTLE_SPRING: 9, 9394 gentleSpring: 9, 9395 CUSTOM_SPRING: 10, 9396 customSpring: 10, 9397 SPRING_PRESET_ONE: 11, 9398 springPresetOne: 11, 9399 SPRING_PRESET_TWO: 12, 9400 springPresetTwo: 12, 9401 SPRING_PRESET_THREE: 13, 9402 springPresetThree: 13, 9403 // For backwards compat 9404 bezier: 100, 9405 BEZIER: 100 9406 }; 9407 var InterpolationType = { 9408 HOLD: 0, 9409 hold: 0, 9410 BEZIER: 1, 9411 bezier: 1 9412 }; 9413 var KeyframeOperation = { 9414 SET: 0, 9415 set: 0, 9416 SCALE: 1, 9417 scale: 1, 9418 OFFSET: 2, 9419 offset: 2 9420 }; 9421 var KeyframeBindingTopLevelField = { 9422 MISSING: 0, 9423 PARAMETER_CONSUMPTION_MAP: 1, 9424 EFFECTS: 2, 9425 effects: 2 9426 }; 9427 var TextElementGrouping = { 9428 CHARACTER: 0, 9429 CHARACTER_NO_WHITESPACE: 1, 9430 WORD: 2, 9431 LINE: 3, 9432 PARAGRAPH: 4 9433 }; 9434 var TextElementDelayOrder = { 9435 LEFT_RIGHT: 0, 9436 RIGHT_LEFT: 1, 9437 CENTER_OUT: 2, 9438 RANDOM: 3 9439 }; 9440 var PresetGeneratedEffectType = { 9441 LAYER_BLUR: 0 9442 }; 9443 var ParameterField = { 9444 MISSING: 0, 9445 missing: 0, 9446 CORNER_RADIUS: 1, 9447 cornerRadius: 1, 9448 PARAGRAPH_SPACING: 2, 9449 paragraphSpacing: 2, 9450 PARAGRAPH_INDENT: 3, 9451 paragraphIndent: 3, 9452 STROKE_WEIGHT: 4, 9453 strokeWeight: 4, 9454 STACK_SPACING: 5, 9455 stackSpacing: 5, 9456 STACK_PADDING_LEFT: 6, 9457 stackPaddingLeft: 6, 9458 STACK_PADDING_TOP: 7, 9459 stackPaddingTop: 7, 9460 STACK_PADDING_RIGHT: 8, 9461 stackPaddingRight: 8, 9462 STACK_PADDING_BOTTOM: 9, 9463 stackPaddingBottom: 9, 9464 VISIBLE: 10, 9465 visible: 10, 9466 TEXT_DATA: 11, 9467 textData: 11, 9468 WIDTH: 12, 9469 width: 12, 9470 HEIGHT: 13, 9471 height: 13, 9472 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 9473 rectangleTopLeftCornerRadius: 14, 9474 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 9475 rectangleTopRightCornerRadius: 15, 9476 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 9477 rectangleBottomLeftCornerRadius: 16, 9478 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 9479 rectangleBottomRightCornerRadius: 17, 9480 BORDER_TOP_WEIGHT: 18, 9481 borderTopWeight: 18, 9482 BORDER_BOTTOM_WEIGHT: 19, 9483 borderBottomWeight: 19, 9484 BORDER_LEFT_WEIGHT: 20, 9485 borderLeftWeight: 20, 9486 BORDER_RIGHT_WEIGHT: 21, 9487 borderRightWeight: 21, 9488 VARIANT_PROPERTIES: 22, 9489 variantProperties: 22, 9490 STACK_COUNTER_SPACING: 23, 9491 stackCounterSpacing: 23, 9492 MIN_WIDTH: 24, 9493 minWidth: 24, 9494 MAX_WIDTH: 25, 9495 maxWidth: 25, 9496 MIN_HEIGHT: 26, 9497 minHeight: 26, 9498 MAX_HEIGHT: 27, 9499 maxHeight: 27, 9500 FONT_FAMILY: 28, 9501 fontFamily: 28, 9502 FONT_STYLE: 29, 9503 fontStyle: 29, 9504 FONT_VARIATIONS: 30, 9505 fontVariations: 30, 9506 OPACITY: 31, 9507 opacity: 31, 9508 FONT_SIZE: 32, 9509 fontSize: 32, 9510 LETTER_SPACING: 34, 9511 letterSpacing: 34, 9512 LINE_HEIGHT: 36, 9513 lineHeight: 36, 9514 OVERRIDDEN_SYMBOL_ID: 37, 9515 overriddenSymbolId: 37, 9516 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 9517 cmsSerializedRichTextData: 38, 9518 HYPERLINK: 39, 9519 hyperlink: 39, 9520 SLOT_CONTENT_ID: 40, 9521 slotContentId: 40, 9522 GRID_ROW_GAP: 41, 9523 gridRowGap: 41, 9524 GRID_COLUMN_GAP: 42, 9525 gridColumnGap: 42, 9526 RELATIVE_X_POSITION: 43, 9527 xPosition: 43, 9528 RELATIVE_Y_POSITION: 44, 9529 relativeYPosition: 44, 9530 RELATIVE_ROTATION: 45, 9531 relativeRotation: 45, 9532 MOTION_TRANSLATION_X: 46, 9533 motionTranslationX: 46, 9534 MOTION_TRANSLATION_Y: 47, 9535 motionTranslationY: 47, 9536 MOTION_ROTATION: 48, 9537 motionRotation: 48, 9538 MOTION_SCALE_X: 49, 9539 motionScaleX: 49, 9540 MOTION_SCALE_Y: 50, 9541 motionScaleY: 50, 9542 MOTION_SHEAR: 51, 9543 motionShear: 51, 9544 SCROLL_OFFSET_X: 52, 9545 scrollOffsetX: 52, 9546 SCROLL_OFFSET_Y: 53, 9547 scrollOffsetY: 53, 9548 PATH_TRIM_START: 54, 9549 pathTrimStart: 54, 9550 PATH_TRIM_END: 55, 9551 pathTrimEnd: 55, 9552 DISSOLVE_PROGRESS: 56, 9553 dissolveProgress: 56 9554 }; 9555 var EffectParametrizedField = { 9556 MISSING: 0, 9557 missing: 0, 9558 OFFSET_X: 1, 9559 offsetX: 1, 9560 OFFSET_Y: 2, 9561 offsetY: 2, 9562 RADIUS: 3, 9563 radius: 3, 9564 SPREAD: 4, 9565 spread: 4, 9566 COLOR: 5, 9567 color: 5, 9568 REFRACTION_RADIUS: 6, 9569 refractionRadius: 6, 9570 SPECULAR_ANGLE: 7, 9571 specularAngle: 7, 9572 SPECULAR_INTENSITY: 8, 9573 specularIntensity: 8, 9574 CHROMATIC_ABERRATION: 9, 9575 chromaticAberration: 9, 9576 SPLAY: 10, 9577 splay: 10, 9578 REFRACTION_INTENSITY: 11, 9579 refractionIntensity: 11, 9580 START_RADIUS: 12, 9581 startRadius: 12, 9582 START_OFFSET_X: 13, 9583 startOffsetX: 13, 9584 START_OFFSET_Y: 14, 9585 startOffsetY: 14, 9586 END_OFFSET_X: 15, 9587 endOffsetX: 15, 9588 END_OFFSET_Y: 16, 9589 endOffsetY: 16, 9590 NOISE_SIZE_X: 17, 9591 noiseSizeX: 17, 9592 NOISE_SIZE_Y: 18, 9593 noiseSizeY: 18, 9594 DENSITY: 19, 9595 density: 19, 9596 EFFECT_OPACITY: 20, 9597 effectOpacity: 20, 9598 SECONDARY_COLOR: 21, 9599 secondaryColor: 21 9600 }; 9601 var Keyframe = class { 9602 constructor(data) { 9603 this.timelinePosition = Math.round(data.timelinePosition); 9604 this.easing = data.easing; 9605 this.value = data.value; 9606 } 9607 }; 9608 var KeyframeTrack = class { 9609 constructor(data) { 9610 this.topLevelField = data.topLevelField; 9611 this.parameterField = data.parameterField; 9612 this.index = data.index; 9613 this.effectParametrizedField = data.effectParametrizedField; 9614 this.keyframeOperation = data.keyframeOperation; 9615 this.keyframes = data.keyframes; 9616 this.enabled = !!data.enabled; 9617 } 9618 }; 9619 var AnimationPreset = class { 9620 constructor(data) { 9621 this.nodeId = data.nodeId; 9622 this.keyframeTracks = data.keyframeTracks; 9623 this.textElementDelayBehaviour = data.textElementDelayBehaviour; 9624 this.effects = data.effects; 9625 } 9626 }; 9627 var PARAMETER_FIELD_ALIAS_MAP = { 9628 translateX: ParameterField.MOTION_TRANSLATION_X, 9629 translateY: ParameterField.MOTION_TRANSLATION_Y, 9630 rotate: ParameterField.MOTION_ROTATION, 9631 scaleX: ParameterField.MOTION_SCALE_X, 9632 scaleY: ParameterField.MOTION_SCALE_Y, 9633 shear: ParameterField.MOTION_SHEAR 9634 }; 9635 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 9636 var MODE_TO_OPERATION = { 9637 set: KeyframeOperation.SET, 9638 SET: KeyframeOperation.SET, 9639 offset: KeyframeOperation.OFFSET, 9640 OFFSET: KeyframeOperation.OFFSET, 9641 scale: KeyframeOperation.SCALE, 9642 SCALE: KeyframeOperation.SCALE 9643 }; 9644 var TEXT_ELEMENTS_TARGET = /* @__PURE__ */ Symbol("figma.motion.textElements"); 9645 var LAYER_BLUR_EFFECT = /* @__PURE__ */ Symbol("figma.motion.layerBlur"); 9646 function normalizeEasing(easing) { 9647 if (easing === void 0) return void 0; 9648 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 9649 if (typeof easing === "string") { 9650 const easingType = EasingType[easing]; 9651 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 9652 return { easingType }; 9653 } 9654 return easing; 9655 } 9656 function compileKeyframe({ timelinePosition, value, easing }) { 9657 return new Keyframe({ 9658 timelinePosition: timelinePosition * 1e6, 9659 easing: normalizeEasing(easing), 9660 value 9661 }); 9662 } 9663 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 9664 if (duration < 0) throw new Error("tween: duration must be non-negative"); 9665 return { 9666 mode, 9667 enabled, 9668 keyframes: [ 9669 { timelinePosition, value: from, easing }, 9670 { timelinePosition: timelinePosition + duration, value: to, easing } 9671 ] 9672 }; 9673 } 9674 function animate(target, definition) { 9675 const isTextElementsTarget = target?.[TEXT_ELEMENTS_TARGET] === true; 9676 const node = isTextElementsTarget ? target.node : target; 9677 const nodeId = typeof node === "string" ? node : node.id;
9678 const keyframeTracks = []; 9679 const effects = []; 9680 let textElementDelayBehaviour = isTextElementsTarget ? target.textElementDelayBehaviour : void 0; 9681 for (const [key, trackDef] of Object.entries(definition)) { 9682 if (key === "nodeFields") { 9683 textElementDelayBehaviour = parseNodeFields(trackDef).textElementDelayBehaviour; 9684 continue; 9685 } 9686 if (key === "effects") { 9687 if (!Array.isArray(trackDef)) { 9688 throw new Error('animate: "effects" must be an array'); 9689 } 9690 if (trackDef.length > 1) { 9691 throw new Error("animate: at most one layer blur effect per preset is supported"); 9692 } 9693 for (const effect of trackDef) { 9694 if (effect?.[LAYER_BLUR_EFFECT] !== true) { 9695 throw new Error("animate: unsupported effect descriptor"); 9696 } 9697 const effectIndex = effects.length; 9698 const radiusTrack = effect.radius; 9699 const operation2 = MODE_TO_OPERATION[radiusTrack?.mode]; 9700 if (operation2 === void 0) { 9701 throw new Error("animate: layerBlur radius must be a track definition"); 9702 } 9703 const enabled = radiusTrack.enabled !== false; 9704 const seen2 = /* @__PURE__ */ new Map(); 9705 for (const kf of radiusTrack.keyframes) seen2.set(kf.timelinePosition, kf); 9706 const sorted2 = [...seen2.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 9707 effects.push({ 9708 type: PresetGeneratedEffectType.LAYER_BLUR, 9709 radius: enabled && operation2 === KeyframeOperation.SCALE ? 1 : 0 9710 }); 9711 keyframeTracks.push(new KeyframeTrack({ 9712 topLevelField: KeyframeBindingTopLevelField.EFFECTS, 9713 index: effectIndex, 9714 effectParametrizedField: EffectParametrizedField.RADIUS, 9715 keyframeOperation: operation2, 9716 keyframes: sorted2.map(compileKeyframe), 9717 enabled 9718 })); 9719 } 9720 continue; 9721 } 9722 if (!KEYFRAMEABLE_FIELDS.has(key)) { 9723 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 9724 } 9725 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 9726 const operation = MODE_TO_OPERATION[trackDef.mode]; 9727 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 9728 const seen = /* @__PURE__ */ new Map(); 9729 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 9730 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 9731 keyframeTracks.push(new KeyframeTrack({ 9732 parameterField, 9733 keyframeOperation: operation, 9734 keyframes: sorted.map(compileKeyframe), 9735 enabled: trackDef.enabled !== false 9736 })); 9737 } 9738 return new AnimationPreset({ 9739 nodeId, 9740 keyframeTracks, 9741 textElementDelayBehaviour, 9742 effects: effects.length > 0 ? effects : void 0 9743 }); 9744 } 9745 function parseTextElementDelayBehaviour(value) { 9746 if (value === null || typeof value !== "object" || Array.isArray(value)) { 9747 throw new Error('animate: "textElementDelayBehaviour" must be an object'); 9748 } 9749 if (typeof value.enabled !== "boolean") { 9750 throw new Error('animate: "textElementDelayBehaviour.enabled" must be a boolean'); 9751 } 9752 const grouping = TextElementGrouping[value.grouping]; 9753 if (!Object.values(TextElementGrouping).includes(grouping)) { 9754 throw new Error('animate: unknown text element grouping "' + value.grouping + '"'); 9755 } 9756 if (typeof value.delayMs !== "number" || !Number.isFinite(value.delayMs) || value.delayMs < 0) { 9757 throw new Error( 9758 'animate: "textElementDelayBehaviour.delayMs" must be a non-negative finite number' 9759 ); 9760 } 9761 const order = TextElementDelayOrder[value.order]; 9762 if (!Object.values(TextElementDelayOrder).includes(order)) { 9763 throw new Error('animate: unknown text element delay order "' + value.order + '"'); 9764 } 9765 const clipContent = value.clipContent === void 0 ? false : value.clipContent; 9766 if (typeof clipContent !== "boolean") { 9767 throw new Error('animate: "textElementDelayBehaviour.clipContent" must be a boolean'); 9768 } 9769 return { 9770 enabled: value.enabled, 9771 grouping, 9772 delayMs: value.delayMs, 9773 order, 9774 clipContent 9775 }; 9776 } 9777 function parseNodeFields(value) { 9778 if (value === null || typeof value !== "object" || Array.isArray(value)) { 9779 throw new Error('animate: "nodeFields" must be an object'); 9780 } 9781 const unsupported = Object.keys(value).find((key) => key !== "textElementDelayBehaviour"); 9782 if (unsupported !== void 0) { 9783 throw new Error('animate: unknown node field "' + unsupported + '"'); 9784 } 9785 return { 9786 textElementDelayBehaviour: value.textElementDelayBehaviour === void 0 ? void 0 : parseTextElementDelayBehaviour(value.textElementDelayBehaviour) 9787 }; 9788 } 9789 9790
9790// share/motion/src/presets/source/size.ts 9791 function buildAxisTrack(from, to, duration, easing, enabled) { 9792 return tween({ 9793 mode: "offset", 9794 timelinePosition: 0, 9795 duration, 9796 from, 9797 to, 9798 easing, 9799 enabled 9800 }); 9801 } 9802 function preset({ 9803 type, 9804 amount, 9805 axis, 9806 startWidth, 9807 endWidth, 9808 startHeight, 9809 endHeight, 9810 duration, 9811 easing, 9812 node 9813 }) { 9814 const safeAmount = typeof amount === "number" ? amount : 0; 9815 const safeStartWidth = typeof startWidth === "number" ? startWidth : 50; 9816 const safeEndWidth = typeof endWidth === "number" ? endWidth : 100; 9817 const safeStartHeight = typeof startHeight === "number" ? startHeight : 50; 9818 const safeEndHeight = typeof endHeight === "number" ? endHeight : 100; 9819 const safeDuration = typeof duration === "number" ? duration : 0.5; 9820 let widthTrack = null; 9821 let heightTrack = null; 9822 let widthEnabled = true; 9823 let heightEnabled = true; 9824 switch (type) { 9825 case "resize_in": { 9826 widthTrack = [safeAmount, 0]; 9827 heightTrack = [safeAmount, 0]; 9828 break; 9829 } 9830 case "resize_out": { 9831 widthTrack = [0, safeAmount]; 9832 heightTrack = [0, safeAmount]; 9833 break; 9834 } 9835 case "custom": { 9836 widthEnabled = axis !== "y"; 9837 heightEnabled = axis !== "x"; 9838 widthTrack = [safeStartWidth, safeEndWidth]; 9839 heightTrack = [safeStartHeight, safeEndHeight]; 9840 break; 9841 } 9842 default: 9843 break; 9844 } 9845 const definition = {}; 9846 if (widthTrack) { 9847 definition.width = buildAxisTrack( 9848 widthTrack[0], 9849 widthTrack[1], 9850 safeDuration, 9851 easing, 9852 widthEnabled 9853 ); 9854 } 9855 if (heightTrack) { 9856 definition.height = buildAxisTrack( 9857 heightTrack[0], 9858 heightTrack[1], 9859 safeDuration, 9860 easing, 9861 heightEnabled 9862 ); 9863 } 9864 return [animate(node, definition)]; 9865 } 9866 defineProperties(preset, { 9867 type: { 9868 label: "motion.preset_flyout.type", 9869 type: "string", 9870 defaultValue: "resize_in", 9871 control: "select", 9872 options: [ 9873 { value: "resize_in", label: "motion.preset_flyout.size.type.resize_in" }, 9874 { value: "resize_out", label: "motion.preset_flyout.size.type.resize_out" }, 9875 { value: "custom", label: "motion.preset_flyout.type.custom" } 9876 ] 9877 }, 9878 amount: { 9879 label: "motion.preset_flyout.amount", 9880 type: "number", 9881 control: "input", 9882 defaultValue: 50, 9883 unit: "px" 9884 }, 9885 axis: { 9886 label: "motion.preset_flyout.axis", 9887 type: "string", 9888 defaultValue: "xy", 9889 control: "select", 9890 options: [ 9891 { value: "x", label: "motion.preset_flyout.x" }, 9892 { value: "y", label: "motion.preset_flyout.y" }, 9893 { value: "xy", label: "motion.preset_flyout.both" } 9894 ] 9895 }, 9896 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 9897 // are redundant \u2014 section dividers are now applied client-side in the preset 9898 // flyout via \`forceShowDividerAboveTransform\`. 9899 // Order is start values then end values (startWidth, startHeight, endWidth, 9900 // endHeight) so the custom-xy flyout groups Starts then Ends, matching the 9901 // dividers in \`getSectionDividerProps\` (and the position preset's layout). 9902 startWidth: { 9903 label: "motion.preset_flyout.start", 9904 type: "number", 9905 control: "input", 9906 defaultValue: 50, 9907 icon: "w", 9908 showDividerAbove: true 9909 }, 9910 startHeight: { 9911 label: "motion.preset_flyout.start", 9912 type: "number", 9913 control: "input", 9914 defaultValue: 50, 9915 icon: "h" 9916 }, 9917 endWidth: { 9918 label: "motion.preset_flyout.end", 9919 type: "number", 9920 control: "input", 9921 defaultValue: 100, 9922 icon: "w" 9923 }, 9924 endHeight: { 9925 label: "motion.preset_flyout.end", 9926 type: "number", 9927 control: "input", 9928 defaultValue: 100, 9929 icon: "h" 9930 }, 9931 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 9932 delay: { 9933 label: "motion.preset_flyout.delay", 9934 type: "number", 9935 control: "input", 9936 defaultValue: 0, 9937 unit: "s", 9938 showDividerAbove: true, 9939 icon: "delay" 9940 }, 9941 duration: { 9942 label: "motion.preset_flyout.duration", 9943 type: "number", 9944 control: "input", 9945 defaultValue: 0.5, 9946 min: 0.01, 9947 unit: "s", 9948 icon: "time" 9949 }, 9950 easing: { 9951 label: "motion.preset_flyout.easing", 9952 type: "easing", 9953 defaultValue: { 9954 easingType: EasingType.OUT_CUBIC 9955 } 9956 } 9957 });
9958 return __toCommonJS(size_exports); 9959})();`});var V0,H0,W0=nn(()=>{V0=`// Source-of-truth for the TEXT_DATA first-party animation preset. 9960// 9961// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 9962// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 9963// resolved, and emits both strings into \`../generated/text_data.generated.ts\`. 9964// The generated module is what runtime code consumes \u2014 never import this file 9965// directly from production code paths. 9966// 9967// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 9968// only an input to the codegen tool, evaluated inside the QuickJS / iframe 9969// sandbox at runtime. 9970 9971import { animate, defineProperties, EasingType } from 'figma:motion' 9972 9973import type { PresetArgs } from './preset_types' 9974 9975function revealTextKeyframes({ text, by, duration, linesStartIndices, easing }: PresetArgs) { 9976 const keyframes: Array<{ timelinePosition: number; value: string; easing: PresetArgs }> = [] 9977 const push = (value: string, i: number, n: number) => 9978 keyframes.push({ 9979 timelinePosition: n <= 1 ? 0 : (i / (n - 1)) * duration, 9980 value, 9981 easing, 9982 }) 9983 9984 if (by === 'character') { 9985 const chars = Array.from(text) 9986 for (let i = 0; i <= chars.length; i++) push(chars.slice(0, i).join(''), i, chars.length + 1) 9987 } else if (by === 'word') { 9988 const wordEndIndices = [0] 9989 const wordRegex = /\\S+/g 9990 for (const match of text.matchAll(wordRegex)) { 9991 wordEndIndices.push(match.index + match[0].length) 9992 } 9993 const n = wordEndIndices.length 9994 for (let i = 0; i < n; i++) push(text.slice(0, wordEndIndices[i]), i, n) 9995 } else if (by === 'line') { 9996 const starts = linesStartIndices ?? [] 9997 const cuts = [0, ...starts, text.length + 1] 9998 for (let i = 0; i < cuts.length; i++) 9999 push(text.slice(0, Math.max(0, cuts[i] - 1)), i, cuts.length) 10000 } 10001 10002 return { mode: 'set', keyframes } 10003} 10004 10005export default function preset({ revealBy, duration, target, baseNodeData }: PresetArgs) { 10006 const easing = { easingType: EasingType.OUT_CUBIC } 10007 return [ 10008 animate(target, { 10009 textData: revealTextKeyframes({ 10010 text: baseNodeData.text, 10011 by: revealBy, 10012 duration, 10013 linesStartIndices: baseNodeData.linesStartIndices, 10014 easing, 10015 }), 10016 }), 10017 ] 10018} 10019
10020defineProperties(preset, { 10021 revealBy: { 10022 label: 'Reveal By', 10023 type: 'string', 10024 defaultValue: 'character', 10025 control: 'select', 10026 options: [ 10027 { value: 'character', label: 'Character' }, 10028 { value: 'word', label: 'Word' }, 10029 { value: 'line', label: 'Line' }, 10030 ], 10031 }, 10032 duration: { 10033 label: 'Duration', 10034 type: 'number', 10035 defaultValue: 1.5, 10036 control: 'input', 10037 min: 0.01, 10038 unit: 's', 10039 }, 10040}) 10041`,H0=`var __presetBundle = (() => { 10042 var __defProp = Object.defineProperty; 10043 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 10044 var __getOwnPropNames = Object.getOwnPropertyNames; 10045 var __hasOwnProp = Object.prototype.hasOwnProperty; 10046 var __export = (target, all) => { 10047 for (var name in all) 10048 __defProp(target, name, { get: all[name], enumerable: true }); 10049 }; 10050 var __copyProps = (to, from, except, desc) => { 10051 if (from && typeof from === "object" || typeof from === "function") { 10052 for (let key of __getOwnPropNames(from)) 10053 if (!__hasOwnProp.call(to, key) && key !== except) 10054 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 10055 } 10056 return to; 10057 }; 10058 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 10059 10060
10060// share/motion/src/presets/source/text_data.ts 10061 var text_data_exports = {}; 10062 __export(text_data_exports, { 10063 default: () => preset 10064 }); 10065 10066 // figma-motion:figma:motion 10067 function defineProperties(component, spec) { 10068 Object.assign(component, { 10069 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 10070 }); 10071 } 10072 var EasingType = { 10073 IN_CUBIC: 0, 10074 inCubic: 0, 10075 OUT_CUBIC: 1, 10076 outCubic: 1, 10077 INOUT_CUBIC: 2, 10078 inOutCubic: 2, 10079 LINEAR: 3, 10080 linear: 3, 10081 IN_BACK_CUBIC: 4, 10082 inBackCubic: 4, 10083 OUT_BACK_CUBIC: 5, 10084 outBackCubic: 5, 10085 INOUT_BACK_CUBIC: 6, 10086 inOutBackCubic: 6, 10087 CUSTOM_CUBIC: 7, 10088 customCubic: 7, 10089 SPRING: 8, 10090 spring: 8, 10091 GENTLE_SPRING: 9, 10092 gentleSpring: 9, 10093 CUSTOM_SPRING: 10, 10094 customSpring: 10, 10095 SPRING_PRESET_ONE: 11, 10096 springPresetOne: 11, 10097 SPRING_PRESET_TWO: 12, 10098 springPresetTwo: 12, 10099 SPRING_PRESET_THREE: 13, 10100 springPresetThree: 13, 10101 // For backwards compat 10102 bezier: 100, 10103 BEZIER: 100 10104 }; 10105 var InterpolationType = { 10106 HOLD: 0, 10107 hold: 0, 10108 BEZIER: 1, 10109 bezier: 1 10110 }; 10111 var KeyframeOperation = { 10112 SET: 0, 10113 set: 0, 10114 SCALE: 1, 10115 scale: 1, 10116 OFFSET: 2, 10117 offset: 2 10118 }; 10119 var KeyframeBindingTopLevelField = { 10120 MISSING: 0, 10121 PARAMETER_CONSUMPTION_MAP: 1, 10122 EFFECTS: 2, 10123 effects: 2 10124 }; 10125 var TextElementGrouping = { 10126 CHARACTER: 0, 10127 CHARACTER_NO_WHITESPACE: 1, 10128 WORD: 2, 10129 LINE: 3, 10130 PARAGRAPH: 4 10131 }; 10132 var TextElementDelayOrder = { 10133 LEFT_RIGHT: 0, 10134 RIGHT_LEFT: 1, 10135 CENTER_OUT: 2, 10136 RANDOM: 3 10137 }; 10138 var PresetGeneratedEffectType = { 10139 LAYER_BLUR: 0 10140 }; 10141 var ParameterField = { 10142 MISSING: 0, 10143 missing: 0, 10144 CORNER_RADIUS: 1, 10145 cornerRadius: 1, 10146 PARAGRAPH_SPACING: 2, 10147 paragraphSpacing: 2, 10148 PARAGRAPH_INDENT: 3, 10149 paragraphIndent: 3, 10150 STROKE_WEIGHT: 4, 10151 strokeWeight: 4, 10152 STACK_SPACING: 5, 10153 stackSpacing: 5, 10154 STACK_PADDING_LEFT: 6, 10155 stackPaddingLeft: 6, 10156 STACK_PADDING_TOP: 7, 10157 stackPaddingTop: 7, 10158 STACK_PADDING_RIGHT: 8, 10159 stackPaddingRight: 8, 10160 STACK_PADDING_BOTTOM: 9, 10161 stackPaddingBottom: 9, 10162 VISIBLE: 10, 10163 visible: 10, 10164 TEXT_DATA: 11, 10165 textData: 11, 10166 WIDTH: 12, 10167 width: 12, 10168 HEIGHT: 13, 10169 height: 13, 10170 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 10171 rectangleTopLeftCornerRadius: 14, 10172 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 10173 rectangleTopRightCornerRadius: 15, 10174 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 10175 rectangleBottomLeftCornerRadius: 16, 10176 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 10177 rectangleBottomRightCornerRadius: 17, 10178 BORDER_TOP_WEIGHT: 18, 10179 borderTopWeight: 18, 10180 BORDER_BOTTOM_WEIGHT: 19, 10181 borderBottomWeight: 19, 10182 BORDER_LEFT_WEIGHT: 20, 10183 borderLeftWeight: 20, 10184 BORDER_RIGHT_WEIGHT: 21, 10185 borderRightWeight: 21, 10186 VARIANT_PROPERTIES: 22, 10187 variantProperties: 22, 10188 STACK_COUNTER_SPACING: 23, 10189 stackCounterSpacing: 23, 10190 MIN_WIDTH: 24, 10191 minWidth: 24, 10192 MAX_WIDTH: 25, 10193 maxWidth: 25, 10194 MIN_HEIGHT: 26, 10195 minHeight: 26, 10196 MAX_HEIGHT: 27, 10197 maxHeight: 27, 10198 FONT_FAMILY: 28, 10199 fontFamily: 28, 10200 FONT_STYLE: 29, 10201 fontStyle: 29, 10202 FONT_VARIATIONS: 30, 10203 fontVariations: 30, 10204 OPACITY: 31, 10205 opacity: 31, 10206 FONT_SIZE: 32, 10207 fontSize: 32, 10208 LETTER_SPACING: 34, 10209 letterSpacing: 34, 10210 LINE_HEIGHT: 36, 10211 lineHeight: 36, 10212 OVERRIDDEN_SYMBOL_ID: 37, 10213 overriddenSymbolId: 37, 10214 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 10215 cmsSerializedRichTextData: 38, 10216 HYPERLINK: 39, 10217 hyperlink: 39, 10218 SLOT_CONTENT_ID: 40, 10219 slotContentId: 40, 10220 GRID_ROW_GAP: 41, 10221 gridRowGap: 41, 10222 GRID_COLUMN_GAP: 42, 10223 gridColumnGap: 42, 10224 RELATIVE_X_POSITION: 43, 10225 xPosition: 43, 10226 RELATIVE_Y_POSITION: 44, 10227 relativeYPosition: 44, 10228 RELATIVE_ROTATION: 45, 10229 relativeRotation: 45, 10230 MOTION_TRANSLATION_X: 46, 10231 motionTranslationX: 46, 10232 MOTION_TRANSLATION_Y: 47, 10233 motionTranslationY: 47, 10234 MOTION_ROTATION: 48, 10235 motionRotation: 48, 10236 MOTION_SCALE_X: 49, 10237 motionScaleX: 49, 10238 MOTION_SCALE_Y: 50, 10239 motionScaleY: 50, 10240 MOTION_SHEAR: 51, 10241 motionShear: 51, 10242 SCROLL_OFFSET_X: 52, 10243 scrollOffsetX: 52, 10244 SCROLL_OFFSET_Y: 53, 10245 scrollOffsetY: 53, 10246 PATH_TRIM_START: 54, 10247 pathTrimStart: 54, 10248 PATH_TRIM_END: 55, 10249 pathTrimEnd: 55, 10250 DISSOLVE_PROGRESS: 56, 10251 dissolveProgress: 56 10252 }; 10253 var EffectParametrizedField = { 10254 MISSING: 0, 10255 missing: 0, 10256 OFFSET_X: 1, 10257 offsetX: 1, 10258 OFFSET_Y: 2, 10259 offsetY: 2, 10260 RADIUS: 3, 10261 radius: 3, 10262 SPREAD: 4, 10263 spread: 4, 10264 COLOR: 5, 10265 color: 5, 10266 REFRACTION_RADIUS: 6, 10267 refractionRadius: 6, 10268 SPECULAR_ANGLE: 7, 10269 specularAngle: 7, 10270 SPECULAR_INTENSITY: 8, 10271 specularIntensity: 8, 10272 CHROMATIC_ABERRATION: 9, 10273 chromaticAberration: 9, 10274 SPLAY: 10, 10275 splay: 10, 10276 REFRACTION_INTENSITY: 11, 10277 refractionIntensity: 11, 10278 START_RADIUS: 12, 10279 startRadius: 12, 10280 START_OFFSET_X: 13, 10281 startOffsetX: 13, 10282 START_OFFSET_Y: 14, 10283 startOffsetY: 14, 10284 END_OFFSET_X: 15, 10285 endOffsetX: 15, 10286 END_OFFSET_Y: 16, 10287 endOffsetY: 16, 10288 NOISE_SIZE_X: 17, 10289 noiseSizeX: 17, 10290 NOISE_SIZE_Y: 18, 10291 noiseSizeY: 18, 10292 DENSITY: 19, 10293 density: 19, 10294 EFFECT_OPACITY: 20, 10295 effectOpacity: 20, 10296 SECONDARY_COLOR: 21, 10297 secondaryColor: 21 10298 }; 10299 var Keyframe = class { 10300 constructor(data) { 10301 this.timelinePosition = Math.round(data.timelinePosition); 10302 this.easing = data.easing; 10303 this.value = data.value; 10304 } 10305 }; 10306 var KeyframeTrack = class { 10307 constructor(data) { 10308 this.topLevelField = data.topLevelField; 10309 this.parameterField = data.parameterField; 10310 this.index = data.index; 10311 this.effectParametrizedField = data.effectParametrizedField; 10312 this.keyframeOperation = data.keyframeOperation; 10313 this.keyframes = data.keyframes; 10314 this.enabled = !!data.enabled; 10315 } 10316 }; 10317 var AnimationPreset = class { 10318 constructor(data) { 10319 this.nodeId = data.nodeId; 10320 this.keyframeTracks = data.keyframeTracks; 10321 this.textElementDelayBehaviour = data.textElementDelayBehaviour; 10322 this.effects = data.effects; 10323 } 10324 }; 10325 var PARAMETER_FIELD_ALIAS_MAP = { 10326 translateX: ParameterField.MOTION_TRANSLATION_X, 10327 translateY: ParameterField.MOTION_TRANSLATION_Y, 10328 rotate: ParameterField.MOTION_ROTATION, 10329 scaleX: ParameterField.MOTION_SCALE_X, 10330 scaleY: ParameterField.MOTION_SCALE_Y, 10331 shear: ParameterField.MOTION_SHEAR 10332 }; 10333 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 10334 var MODE_TO_OPERATION = { 10335 set: KeyframeOperation.SET, 10336 SET: KeyframeOperation.SET, 10337 offset: KeyframeOperation.OFFSET, 10338 OFFSET: KeyframeOperation.OFFSET, 10339 scale: KeyframeOperation.SCALE, 10340 SCALE: KeyframeOperation.SCALE 10341 }; 10342 var TEXT_ELEMENTS_TARGET = /* @__PURE__ */ Symbol("figma.motion.textElements"); 10343 var LAYER_BLUR_EFFECT = /* @__PURE__ */ Symbol("figma.motion.layerBlur"); 10344 function normalizeEasing(easing) { 10345 if (easing === void 0) return void 0; 10346 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 10347 if (typeof easing === "string") { 10348 const easingType = EasingType[easing]; 10349 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 10350 return { easingType }; 10351 } 10352 return easing; 10353 } 10354 function compileKeyframe({ timelinePosition, value, easing }) { 10355 return new Keyframe({ 10356 timelinePosition: timelinePosition * 1e6, 10357 easing: normalizeEasing(easing), 10358 value 10359 }); 10360 } 10361 function animate(target, definition) { 10362 const isTextElementsTarget = target?.[TEXT_ELEMENTS_TARGET] === true; 10363 const node = isTextElementsTarget ? target.node : target; 10364 const nodeId = typeof node === "string" ? node : node.id;
10365 const keyframeTracks = []; 10366 const effects = []; 10367 let textElementDelayBehaviour = isTextElementsTarget ? target.textElementDelayBehaviour : void 0; 10368 for (const [key, trackDef] of Object.entries(definition)) { 10369 if (key === "nodeFields") { 10370 textElementDelayBehaviour = parseNodeFields(trackDef).textElementDelayBehaviour; 10371 continue; 10372 } 10373 if (key === "effects") { 10374 if (!Array.isArray(trackDef)) { 10375 throw new Error('animate: "effects" must be an array'); 10376 } 10377 if (trackDef.length > 1) { 10378 throw new Error("animate: at most one layer blur effect per preset is supported"); 10379 } 10380 for (const effect of trackDef) { 10381 if (effect?.[LAYER_BLUR_EFFECT] !== true) { 10382 throw new Error("animate: unsupported effect descriptor"); 10383 } 10384 const effectIndex = effects.length; 10385 const radiusTrack = effect.radius; 10386 const operation2 = MODE_TO_OPERATION[radiusTrack?.mode]; 10387 if (operation2 === void 0) { 10388 throw new Error("animate: layerBlur radius must be a track definition"); 10389 } 10390 const enabled = radiusTrack.enabled !== false; 10391 const seen2 = /* @__PURE__ */ new Map(); 10392 for (const kf of radiusTrack.keyframes) seen2.set(kf.timelinePosition, kf); 10393 const sorted2 = [...seen2.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 10394 effects.push({ 10395 type: PresetGeneratedEffectType.LAYER_BLUR, 10396 radius: enabled && operation2 === KeyframeOperation.SCALE ? 1 : 0 10397 }); 10398 keyframeTracks.push(new KeyframeTrack({ 10399 topLevelField: KeyframeBindingTopLevelField.EFFECTS, 10400 index: effectIndex, 10401 effectParametrizedField: EffectParametrizedField.RADIUS, 10402 keyframeOperation: operation2, 10403 keyframes: sorted2.map(compileKeyframe), 10404 enabled 10405 })); 10406 } 10407 continue; 10408 } 10409 if (!KEYFRAMEABLE_FIELDS.has(key)) { 10410 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 10411 } 10412 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 10413 const operation = MODE_TO_OPERATION[trackDef.mode]; 10414 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 10415 const seen = /* @__PURE__ */ new Map(); 10416 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 10417 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 10418 keyframeTracks.push(new KeyframeTrack({ 10419 parameterField, 10420 keyframeOperation: operation, 10421 keyframes: sorted.map(compileKeyframe), 10422 enabled: trackDef.enabled !== false 10423 })); 10424 } 10425 return new AnimationPreset({ 10426 nodeId, 10427 keyframeTracks, 10428 textElementDelayBehaviour, 10429 effects: effects.length > 0 ? effects : void 0 10430 }); 10431 } 10432 function parseTextElementDelayBehaviour(value) { 10433 if (value === null || typeof value !== "object" || Array.isArray(value)) { 10434 throw new Error('animate: "textElementDelayBehaviour" must be an object'); 10435 } 10436 if (typeof value.enabled !== "boolean") { 10437 throw new Error('animate: "textElementDelayBehaviour.enabled" must be a boolean'); 10438 } 10439 const grouping = TextElementGrouping[value.grouping]; 10440 if (!Object.values(TextElementGrouping).includes(grouping)) { 10441 throw new Error('animate: unknown text element grouping "' + value.grouping + '"'); 10442 } 10443 if (typeof value.delayMs !== "number" || !Number.isFinite(value.delayMs) || value.delayMs < 0) { 10444 throw new Error( 10445 'animate: "textElementDelayBehaviour.delayMs" must be a non-negative finite number' 10446 ); 10447 } 10448 const order = TextElementDelayOrder[value.order]; 10449 if (!Object.values(TextElementDelayOrder).includes(order)) { 10450 throw new Error('animate: unknown text element delay order "' + value.order + '"'); 10451 } 10452 const clipContent = value.clipContent === void 0 ? false : value.clipContent; 10453 if (typeof clipContent !== "boolean") { 10454 throw new Error('animate: "textElementDelayBehaviour.clipContent" must be a boolean'); 10455 } 10456 return { 10457 enabled: value.enabled, 10458 grouping, 10459 delayMs: value.delayMs, 10460 order, 10461 clipContent 10462 }; 10463 } 10464 function parseNodeFields(value) { 10465 if (value === null || typeof value !== "object" || Array.isArray(value)) { 10466 throw new Error('animate: "nodeFields" must be an object'); 10467 } 10468 const unsupported = Object.keys(value).find((key) => key !== "textElementDelayBehaviour"); 10469 if (unsupported !== void 0) { 10470 throw new Error('animate: unknown node field "' + unsupported + '"'); 10471 } 10472 return { 10473 textElementDelayBehaviour: value.textElementDelayBehaviour === void 0 ? void 0 : parseTextElementDelayBehaviour(value.textElementDelayBehaviour) 10474 }; 10475 } 10476 10477
10477// share/motion/src/presets/source/text_data.ts 10478 function revealTextKeyframes({ text, by, duration, linesStartIndices, easing }) { 10479 const keyframes = []; 10480 const push = (value, i, n) => keyframes.push({ 10481 timelinePosition: n <= 1 ? 0 : i / (n - 1) * duration, 10482 value, 10483 easing 10484 }); 10485 if (by === "character") { 10486 const chars = Array.from(text); 10487 for (let i = 0; i <= chars.length; i++) push(chars.slice(0, i).join(""), i, chars.length + 1); 10488 } else if (by === "word") { 10489 const wordEndIndices = [0]; 10490 const wordRegex = /\\S+/g; 10491 for (const match of text.matchAll(wordRegex)) { 10492 wordEndIndices.push(match.index + match[0].length); 10493 } 10494 const n = wordEndIndices.length; 10495 for (let i = 0; i < n; i++) push(text.slice(0, wordEndIndices[i]), i, n); 10496 } else if (by === "line") { 10497 const starts = linesStartIndices ?? []; 10498 const cuts = [0, ...starts, text.length + 1]; 10499 for (let i = 0; i < cuts.length; i++) 10500 push(text.slice(0, Math.max(0, cuts[i] - 1)), i, cuts.length); 10501 } 10502 return { mode: "set", keyframes }; 10503 } 10504 function preset({ revealBy, duration, target, baseNodeData }) { 10505 const easing = { easingType: EasingType.OUT_CUBIC }; 10506 return [ 10507 animate(target, { 10508 textData: revealTextKeyframes({ 10509 text: baseNodeData.text, 10510 by: revealBy, 10511 duration, 10512 linesStartIndices: baseNodeData.linesStartIndices, 10513 easing 10514 }) 10515 }) 10516 ]; 10517 } 10518 defineProperties(preset, { 10519 revealBy: { 10520 label: "Reveal By", 10521 type: "string", 10522 defaultValue: "character", 10523 control: "select", 10524 options: [ 10525 { value: "character", label: "Character" }, 10526 { value: "word", label: "Word" }, 10527 { value: "line", label: "Line" } 10528 ] 10529 }, 10530 duration: { 10531 label: "Duration", 10532 type: "number", 10533 defaultValue: 1.5, 10534 control: "input", 10535 min: 0.01, 10536 unit: "s" 10537 } 10538 }); 10539 return __toCommonJS(text_data_exports); 10540})();`});var yn,Y0=nn(()=>{ke();t0();o0();a0();c0();p0();_0();O0();S0();y0();L0();D0();M0();k0();U0();W0();yn={[F.FADE_DEPRECATED]:{source:n0,iife:r0},[F.MOVE_DEPRECATED]:{source:i0,iife:s0},[F.ROTATE_DEPRECATED]:{source:C0,iife:P0},[F.SCALE]:{source:F0,iife:G0},[F.RESIZE_DEPRECATED]:{source:N0,iife:b0},[F.NEW]:{source:l0,iife:u0},[F.TEXT_DATA]:{source:V0,iife:H0},[F.PATH_DRAW_DEPRECATED]:{source:T0,iife:h0},[F.PATH_TRAVEL_DEPRECATED]:{source:I0,iife:g0},[F.OPACITY]:{source:f0,iife:d0},[F.CORNER_RADIUS]:{source:Qx,iife:e0},[F.ROTATION]:{source:v0,iife:x0},[F.PATH]:{source:m0,iife:E0},[F.POSITION]:{source:R0,iife:A0},[F.SIZE]:{source:w0,iife:B0}}});var QB=fr(gy=>{"use strict";var E9=Symbol.for("react.fragment");gy.Fragment=E9;gy.jsxDEV=void 0});var Sy=fr((N0e,eU)=>{"use strict";eU.exports=QB()});var _O=x(Y()),TO=x(aE());var hW=0;function ce(e,t){let n=`atom${++hW}`,r={toString(){return(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?r.read=e:(r.init=e,r.read=OW,r.write=IW),t&&(r.write=t),r}function OW(e){return e(this)}function IW(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}var BC=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,Hg=e=>"init"in e,Wg=e=>!!e.write,Td=Symbol((import.meta.env?import.meta.env.MODE:void 0)!=="production"?"CONTINUE_PROMISE":""),Kg="pending",gW="fulfilled",SW="rejected",RW=e=>typeof e=="object"&&e!==null&&Td in e,lE=new WeakMap,AW=(e,t,n)=>{if(!lE.has(e)){let r,o=new Promise((i,s)=>{let a=e,l=c=>f=>{a===c&&(o.status=gW,o.value=f,i(f),n())},u=c=>f=>{a===c&&(o.status=SW,o.reason=f,s(f),n())};e.then(l(e),u(e)),r=(c,f)=>{c&&(lE.set(c,o),a=c,c.then(l(c),u(c)),t(),t=f)}});o.status=Kg,o[Td]=r,lE.set(e,o)}return lE.get(e)},yW=e=>typeof e?.then=="function",UC=e=>"v"in e||"e"in e,uE=e=>{if("e"in e)throw e.e;if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},cE=e=>{let t=e.v;return RW(t)&&t.status===Kg?t:null},WC=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},VC=(e,t,n,r,o)=>{var i;if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&r===t)throw new Error("[Bug] atom cannot depend on itself");n.d.set(r,o.n);let s=cE(n);s&&WC(t,s,o),(i=o.m)==null||i.t.add(t),e&&NW(e,r,t)},Nu=()=>[new Map,new Map,new Set],Yg=(e,t,n)=>{e[0].has(t)||e[0].set(t,new Set),e[1].set(t,n)}
10540,NW=(e,t,n)=>{let r=e[0].get(t);r&&r.add(n)},bW=(e,t)=>e[0].get(t),HC=(e,t)=>{e[2].add(t)},xa=e=>{for(;e[1].size||e[2].size;){e[0].clear();let t=new Set(e[1].values());e[1].clear();let n=new Set(e[2]);e[2].clear(),t.forEach(r=>{var o;return(o=r.m)==null?void 0:o.l.forEach(i=>i())}),n.forEach(r=>r())}},YC=e=>{let t;(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&(t=new Set);let n=(T,h,m,E=()=>{},O=()=>{})=>{let I="v"in h,g=h.v,S=cE(h);if(yW(m))if(S)S!==m&&(S[Td](m,E),++h.n);else{let A=AW(m,E,O);if(A.status===Kg)for(let R of h.d.keys())WC(T,A,e(R,h));h.v=A,delete h.e}else S&&S[Td](Promise.resolve(m),E),h.v=m,delete h.e;(!I||!Object.is(g,h.v))&&++h.n},r=(T,h,m,E)=>{if(!E?.(h)&&UC(m)&&(m.m||Array.from(m.d).every(([R,N])=>r(T,R,e(R,m),E).n===N)))return m;m.d.clear();let O=!0,I=R=>{if(BC(h,R)){let L=e(R,m);if(!UC(L))if(Hg(R))n(R,L,R.init);else throw new Error("no atom init");return uE(L)}let N=r(T,R,e(R,m),E);if(O)VC(T,h,m,R,N);else{let L=Nu();VC(L,h,m,R,N),u(L,h,m),xa(L)}return uE(N)},g,S,A={get signal(){return g||(g=new AbortController),g.signal},get setSelf(){return(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!Wg(h)&&console.warn("setSelf function cannot be used with read-only atom"),!S&&Wg(h)&&(S=(...R)=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&O&&console.warn("setSelf function cannot be called in sync"),!O)return l(h,...R)}),S}};try{let R=h.read(I,A);return n(h,m,R,()=>g?.abort(),()=>{if(m.m){let N=Nu();u(N,h,m),xa(N)}}),m}catch(R){return delete m.v,m.e=R,++m.n,m}finally{O=!1}},o=T=>uE(r(void 0,T,e(T))),i=(T,h,m)=>{var E,O;let I=new Map;for(let g of((E=m.m)==null?void 0:E.t)||[])I.set(g,e(g,m));for(let g of m.p)I.set(g,e(g,m));return(O=bW(T,h))==null||O.forEach(g=>{I.set(g,e(g,m))}),I},s=(T,h,m)=>{let E=[],O=new Set,I=(A,R)=>{if(!O.has(A)){O.add(A);for(let[N,L]of i(T,A,R))A!==N&&I(N,L);E.push([A,R,R.n])}};I(h,m);let g=new Set([h]),S=A=>O.has(A);for(let A=E.length-1;A>=0;--A){let[R,N,L]=E[A],b=!1;for(let M of N.d.keys())if(M!==R&&g.has(M)){b=!0;break}b&&(r(T,R,N,S),u(T,R,N),L!==N.n&&(Yg(T,R,N),g.add(R))),O.delete(R)}},a=(T,h,m,...E)=>{let O=S=>uE(r(T,S,e(S,m))),I=(S,...A)=>{let R=e(S,m),N;if(BC(h,S)){if(!Hg(S))throw new Error("atom not writable");let L="v"in R,b=R.v,M=A[0];n(S,R,M),u(T,S,R),(!L||!Object.is(b,R.v))&&(Yg(T,S,R),s(T,S,R))}else N=a(T,S,R,...A);return xa(T),N};return h.write(O,I,...E)},l=(T,...h)=>{let m=Nu(),E=a(m,T,e(T),...h);return xa(m),E},u=(T,h,m)=>{if(m.m&&!cE(m)){for(let E of m.d.keys())m.m.d.has(E)||(c(T,E,e(E,m)).t.add(h),m.m.d.add(E));for(let E of m.m.d||[])if(!m.d.has(E)){m.m.d.delete(E);let O=f(T,E,e(E,m));O?.t.delete(h)}}},c=(T,h,m)=>{if(!m.m){r(T,h,m);for(let E of m.d.keys())c(T,E,e(E,m)).t.add(h);if(m.m={l:new Set,d:new Set(m.d.keys()),t:new Set},(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&t.add(h),Wg(h)&&h.onMount){let E=m.m,{onMount:O}=h;HC(T,()=>{let I=O((...g)=>a(T,h,m,...g));I&&(E.u=I)})}}return m.m},f=(T,h,m)=>{if(m.m&&!m.m.l.size&&!Array.from(m.m.t).some(E=>{var O;return(O=e(E,m).m)==null?void 0:O.d.has(h)})){let E=m.m.u;E&&HC(T,E),delete m.m,(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&t.delete(h);for(let I of m.d.keys()){let g=f(T,I,e(I,m));g?.t.delete(h)}let O=cE(m);O&&O[Td](void 0,()=>{});return}return m.m},_={get:o,set:l,sub:(T,h)=>{let m=Nu(),E=e(T),O=c(m,T,E);xa(m);let I=O.l;return I.add(h),()=>{I.delete(h);let g=Nu();f(g,T,E),xa(g)}},unstable_derive:T=>YC(...T(e))};return(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&Object.assign(_,{dev4_get_internal_weak_map:()=>({get:h=>{let m=e(h);if(m.n!==0)return m}}),dev4_get_mounted_atoms:()=>t,dev4_restore_atoms:h=>{let m=Nu();for(let[E,O]of h)if(Hg(E)){let I=e(E),g="v"in I,S=I.v;n(E,I,O),u(m,E,I),(!g||!Object.is(S,I.v))&&(Yg(m,E,I),s(m,E,I))}xa(m)}}),_},hd=()=>{let e=new WeakMap;return YC(n=>{let r=e.get(n);return r||(r={d:new Map,p:new Set,n:0},e.set(n,r)),r})},_d,KC=()=>(_d||(_d=hd(),(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=_d),globalThis.__JOTAI_DEFAULT_STORE__!==_d&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),_d);var Vt=x(Y(),1);var zC=(0,Vt.createContext)(void 0),XC=e=>{let t=(0,Vt.useContext)(zC);return e?.store||t||KC()},jC=({children:e,store:t})=>{let n=(0,Vt.useRef)();return!t&&!n.current&&(n.current=hd()),(0,Vt.createElement)(zC.Provider,{value:t||n.current},e)},LW=e=>typeof e?.then=="function",CW=Vt.default.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function ge(e,t){let n=XC(t),[[r,o,i],s]=(0,Vt.useReducer)(u=>{let c=n.get(e);return Object.is(u[0],c)&&u[1]===n&&u[2]===e?u:[c,n,e]},void 0,()=>[n.get(e),n,e]),a=r;(o!==n||i!==e)&&(s(),a=n.get(e));let l=t?.delay;return(0,Vt.useEffect)(()=>{let u=n.sub(e,()=>{if(typeof l=="number"){setTimeout(s,l);return}s()});return s(),u},[n,e,l]),(0,Vt.useDebugValue)(a),LW(a)?CW(a):a}function $C(e,t){let n=XC(t);return(0,Vt.useCallback)((...o)=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...o)},[n,e])}var Cn=x(Ee()),_a=x(Y());function QC(e,t,n){return e.renderHiddenRootNodes&&!n&&!t.visible}var hP=x(Y()),OP=x(zg());
10540var q=class extends Error{severity="high";errorDetail;constructor(t,n){super(t),Object.setPrototypeOf(this,q.prototype),n&&n instanceof Error&&(this.cause=n)}},_t=class extends q{constructor(t,n){super(t,n),this.severity="low"}};var Xg="snapshot",jg="sandbox";function po(e,t){return`node-${e.replace(/:/g,"_").replace(/;/g,"-")}${t?`_${t}`:""}`}function $g(e,t){return e in t}function eP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H=class{static fromFigVector(t){return new H(t.x,t.y)}static toVectorD(t){return{x:t.x,y:t.y}}static fromVectorD(t){return new H(t.x,t.y)}clone(){return new H(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}toString(){return`(${this.x}, ${this.y})`}add(t){return new H(this.x+t.x,this.y+t.y)}static add(...t){return t.filter(o=>o!=null).reduce((o,i)=>(o.x+=i.x,o.y+=i.y,o),{x:0,y:0})}subtract(t){return new H(this.x-t.x,this.y-t.y)}static subtract(t,n){return{x:t.x-n.x,y:t.y-n.y}}plus(t){return new H(this.x+t.x,this.y+t.y)}incrementBy(t){this.x=this.x+t.x,this.y=this.y+t.y}minus(t){return new H(this.x-t.x,this.y-t.y)}component(t){return t===0?this.x:this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}static scale(t,n){return{x:t*n.x,y:t*n.y}}static abs(t){return{x:Math.abs(t.x),y:Math.abs(t.y)}}scale(t){return new H(this.x*t,this.y*t)}multiply(t){return new H(this.x*t.x,this.y*t.y)}divide(t){return new H(this.x/t.x,this.y/t.y)}dot(t){return H.dot(this,t)}toAngle(){return Math.atan2(this.y,this.x)}static bound(t,n){return n?{x:Math.max(Math.min(t.x,n.max.x),n.min.x),y:Math.max(Math.min(t.y,n.max.y),n.min.y)}:t}static dot(t,n){return t.x*n.x+t.y*n.y}static interpolate(t,n,r){return{x:t.x+(n.x-t.x)*r,y:t.y+(n.y-t.y)*r}}static rounded(t){return{x:Math.round(t.x),y:Math.round(t.y)}}static size(t){return Math.sqrt(H.dot(t,t))}size(){return H.size(this)}unit(){let t=this.size();return this.scale(t===0?0:1/t)}distanceTo(t){return H.size(this.subtract(t))}static distance(t,n){return H.size(H.subtract(t,n))}clamp(t){return new H(Math.max(t.x,Math.min(t.x+t.width,this.x)),Math.max(t.y,Math.min(t.y+t.height,this.y)))}clampX(t){return new H(Math.max(t.x,Math.min(t.x+t.width,this.x)),this.y)}clampY(t){return new H(this.x,Math.max(t.y,Math.min(t.y+t.height,this.y)))}rotate90(){return new H(-this.y,this.x)}hasNaN(){return Number.isNaN(this.x)||Number.isNaN(this.y)}isInvalid(){return this.hasNaN()}multiplyBy(t){return new H(this.x*t,this.y*t)}divideBy(t){return new H(this.x/t,this.y/t)}transpose(){return new H(this.y,this.x)}rounded(){return new H(Math.round(this.x),Math.round(this.y))}static max(t,n){return new H(Math.max(t.x,n.x),Math.max(t.y,n.y))}static min(t,n){return new H(Math.min(t.x,n.x),Math.min(t.y,n.y))}static infinity(){return new H(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY)}static invalid(){return new H(Number.NaN,Number.NaN)}constructor(t=0,n=0){eP(this,"x",void 0),eP(this,"y",void 0),this.x=t,this.y=n}};function tP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ke=class{static fromRectD(t){return new Ke(H.fromVectorD(t.origin),H.fromVectorD(t.size))}clone(){return new Ke(this.origin.clone(),this.size.clone())}equals(t){return this.origin.equals(t.origin)&&this.size.equals(t.size)}left(){return this.origin.x}top(){return this.origin.y}right(){return this.size.x===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:this.origin.x+this.width()}bottom(){return this.size.y===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:this.origin.y+this.height()}bottomRight(){return new H(this.right(),this.bottom())}bottomLeft(){return new H(this.left(),this.bottom())}topLeft(){return new H(this.left(),this.top())}topRight(){return new H(this.right(),this.top())}topCenter(){return new H(this.center().x,this.top())}bottomCenter(){return new H(this.center().x,this.bottom())}centerLeft(){return new H(this.left(),this.center().y)}centerRight(){return new H(this.right(),this.center().y)}center(){return new H(this.origin.x+this.size.x/2,this.origin.y+this.size.y/2)}width(){return this.size.x}height(){return this.size.y}transpose(){return new Ke(this.origin.transpose(),this.size.transpose())}offsetBy(t){return new Ke(this.origin.plus(t),this.size)}scaledBy(t){return new Ke(this.origin.multiplyBy(t),this.size.multiplyBy(t))}isInvalid(){return this.size.x<0||this.size.y<0||this.origin.hasNaN()||this.size.hasNaN()}isValid(){return!this.isInvalid()}isEmpty(){return this.isInvalid()?!0:this.size.x<=0||this.size.y<=0}isInfinite(){return this.origin.equals(H.infinity().multiplyBy(-1))&&this.size.equals(H.infinity())}unionWith(t){if(this.isInvalid())return t;if(t.isInvalid())return this;let n=H.min(this.origin,t.origin),r=H.max(this.bottomRight(),t.bottomRight());return n.equals(r)?this:new Ke(n,r.minus(n))}expandToInclude(t){if(this.isInvalid())return new Ke(t.clone(),new H(0,
105400));let n=H.min(this.origin,t),r=H.max(this.bottomRight(),t);return new Ke(n,r.minus(n))}containsIncludingBoundary(t){return!this.isEmpty()&&!t.isInvalid()&&this.left()<=t.left()&&this.right()>=t.right()&&this.top()<=t.top()&&this.bottom()>=t.bottom()}containsPointIncludingBoundary(t){return!this.isEmpty()&&this.left()<=t.x&&t.x<=this.right()&&this.top()<=t.y&&t.y<=this.bottom()}intersectWith(t){if(this.isInvalid()||t.isInvalid())return Ke.invalidRect();let n=H.max(this.origin,t.origin),r=H.min(this.bottomRight(),t.bottomRight()),o=new Ke(n,r.minus(n));if(o.origin.hasNaN()||o.size.hasNaN())throw new Error("Rect.intersectWith produced a result with NaN");return o.isInvalid()&&(o=Ke.invalidRect()),o}hasIntersectionWith(t){return!this.intersectWith(t).isEmpty()}expand(t){return this.isInvalid()?Ke.invalidRect():typeof t=="number"?Ke.fromOriginAndSize(this.origin.x-t,this.origin.y-t,this.size.x+2*t,this.size.y+2*t):new Ke(this.origin.minus(t),this.size.plus(t.multiplyBy(2)))}static invalidRect(){return new Ke(new H(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),new H(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY))}static infinite(){return new Ke(H.infinity().multiplyBy(-1),H.infinity())}static fromOriginAndSize(t,n,r,o){return new Ke(new H(t,n),new H(r,o))}static fromCenterSize(t,n){let r=n.divideBy(2);return new Ke(t.minus(r),n)}static fromFigRect(t){return new Ke(new H(t.x,t.y),new H(t.w,t.h))}static computeBounds(t,n){let r=H.min(t,n),o=H.max(t,n);return new Ke(r,o.minus(r))}static computeBoundsFromPointArray(t){let n=H.infinity(),r=H.infinity().multiplyBy(-1);for(let o of t)n=H.min(n,o),r=H.max(r,o);return new Ke(n,r.minus(n))}constructor(t=new H,n=new H){tP(this,"origin",void 0),tP(this,"size",void 0),this.origin=t,this.size=n}};function hs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var we=class{static identity(){return this.fromNumbers(1,0,0,0,1,0)}static fromNumbers(t,n,r,o,i,s){let a=new we;return a.m00=t,a.m01=n,a.m02=r,a.m10=o,a.m11=i,a.m12=s,a}static copy(t){let n=new we;return n.m00=t.m00,n.m01=t.m01,n.m02=t.m02,n.m10=t.m10,n.m11=t.m11,n.m12=t.m12,n}static fromArray(t){let n=new we;return n.m00=t[0][0],n.m01=t[0][1],n.m02=t[0][2],n.m10=t[1][0],n.m11=t[1][1],n.m12=t[1][2],n}static fromVectors(t,n,r){let o=new we;return o.m00=n.x,o.m01=r.x,o.m02=t.x,o.m10=n.y,o.m11=r.y,o.m12=t.y,o}static fromFigMatrix(t){let n=new we;return n.m00=t.m00,n.m01=t.m01,n.m02=t.m02,n.m10=t.m10,n.m11=t.m11,n.m12=t.m12,n}toFigMatrix(){return{m00:this.m00,m01:this.m01,m02:this.m02,m10:this.m10,m11:this.m11,m12:this.m12}}toMatrix(){return[[this.m00,this.m01,this.m02],[this.m10,this.m11,this.m12]]}axisX(){return new H(this.m00,this.m10)}axisY(){return new H(this.m01,this.m11)}offset(){return new H(this.m02,this.m12)}toRadians(){return Math.atan2(this.m10,this.m00)}toDegrees(){return Math.atan2(this.m10,this.m00)*180/Math.PI}toScale(){let{m00:t,m01:n,m10:r,m11:o}=this;return new H(Math.sqrt(t*t+r*r),Math.sqrt(n*n+o*o))}hasNaN(){return this.m00!==this.m00&&this.m01!==this.m01&&this.m02!==this.m02&&this.m10!==this.m10&&this.m11!==this.m11&&this.m12!==this.m12}translate(t,n){this.m02=t*this.m00+n*this.m01+this.m02,this.m12=t*this.m10+n*this.m11+this.m12}rotate(t){if(t===0)return;let n=Math.sin(t),r=Math.cos(t),o=r*this.m00+n*this.m01,i=r*this.m01-n*this.m00,s=r*this.m10+n*this.m11,a=r*this.m11-n*this.m10;this.m00=o,this.m01=i,this.m10=s,this.m11=a}scale(t,n){this.m00*=t,this.m01*=n,this.m10*=t,this.m11*=n}multiply(t){let n=this.m00*t.m00+this.m01*t.m10,r=this.m00*t.m01+this.m01*t.m11,o=this.m00*t.m02+this.m01*t.m12+this.m02,i=this.m10*t.m00+this.m11*t.m10,s=this.m10*t.m01+this.m11*t.m11,a=this.m10*t.m02+this.m11*t.m12+this.m12;this.m00=n,this.m01=r,this.m02=o,this.m10=i,this.m11=s,this.m12=a}determinant(){return this.m00*this.m11-this.m01*this.m10}invert(){let t=1/this.determinant();if(!isFinite(t))return!1;let n=we.fromNumbers(this.m11*t,-this.m01*t,(this.m01*this.m12-this.m11*this.m02)*t,-this.m10*t,this.m00*t,(this.m10*this.m02-this.m00*this.m12)*t);return n.hasNaN()?!1:(this.m00=n.m00,this.m01=n.m01,this.m02=n.m02,this.m10=n.m10,this.m11=n.m11,this.m12=n.m12,!0)}
10540transformRect(t){if(t.isInvalid())return t;if(this.axisX().y===0&&this.axisY().x===0)return Ke.computeBounds(this.transformPoint(t.topLeft()),this.transformPoint(t.bottomRight()));let n=[this.transformPoint(t.topLeft()),this.transformPoint(t.topRight()),this.transformPoint(t.bottomLeft()),this.transformPoint(t.bottomRight())];return Ke.computeBoundsFromPointArray(n)}transformPoint(t){return new H(this.m00*t.x+this.m01*t.y+this.m02,this.m10*t.x+this.m11*t.y+this.m12)}transformDirection(t){return new H(this.m00*t.x+this.m01*t.y,this.m10*t.x+this.m11*t.y)}inverseTransformPoint(t){let n=1/this.determinant();if(!isFinite(n))return H.invalid();let r=new H((this.m11*t.x-this.m01*t.y+this.m01*this.m12-this.m11*this.m02)*n,(this.m00*t.y-this.m10*t.x+this.m10*this.m02-this.m00*this.m12)*n);return r.hasNaN()?H.invalid():r}toTrss(){let t=this.m00*this.m00+this.m10*this.m10,n=this.m01*this.m01+this.m11*this.m11;if(t===0||n===0)return{translationX:this.m02,translationY:this.m12,rotation:0,scaleX:this.m00,scaleY:this.m11,shear:0};let r=this.m00*this.m11-this.m01*this.m10,o=Math.atan2(this.m10,this.m00),i,s,a;return Math.abs(Math.cos(o))>Math.abs(Math.sin(o))?(i=this.m00/Math.cos(o),s=r/i,a=(this.m01+s*Math.sin(o))/this.m00):(i=this.m10/Math.sin(o),s=r/i,a=(this.m11-s*Math.cos(o))/this.m10),{translationX:this.m02,translationY:this.m12,rotation:o,scaleX:i,scaleY:s,shear:a}}constructor(){hs(this,"m00",void 0),hs(this,"m01",void 0),hs(this,"m02",void 0),hs(this,"m10",void 0),hs(this,"m11",void 0),hs(this,"m12",void 0),this.m00=this.m01=this.m02=this.m10=this.m11=this.m12=0}};hs(we,"kEpsilon",1e-6);hs(we,"kEpsilonSqr",we.kEpsilon*we.kEpsilon);var Ma=function(e){return e[e.SVG=0]="SVG",e[e.CSS=1]="CSS",e}(Ma||{});var Ht={colorProfile:0,colorspaceConversion:0};function Me(e){return String(+e.toPrecision(5))}function Od(e){return we.fromNumbers(e[0][0],e[0][1],e[0][2],e[1][0],e[1][1],e[1][2])}function nP(e){let t=e.toFigMatrix();return[[t.m00,t.m01,t.m02],[t.m10,t.m11,t.m12]]}function Os(e){let t=e.toFigMatrix();return`matrix(${Me(t.m00)} ${Me(t.m10)} ${Me(t.m01)} ${Me(t.m11)} ${Me(t.m02)} ${Me(t.m12)})`}function v(e,t=3){return e===void 0?e:parseFloat(e.toFixed(t))}function ht(e,t=10**-3){return Math.abs(e)<t?0:e}function oP(e,t,n){return e+(t-e)*n}function rP(e){let{a:t,...n}=e;return{alpha:t,color:n}}function Qg(e,t,n){return Object.keys(e).reduce((r,o)=>(r[o]=oP(e[o],t[o],n),r),{})}function GW(e,t){return Math.sqrt(((e.r-t.r)**2+(e.b-t.b)**2+(e.g-t.g)**2)/3)}function Id(e,t){return Object.keys(e).reduce((n,r)=>(n[r]=e[r]*t,n),{})}function Zg(e){return e**2.2}function Jg(e){return e**(1/2.2)}function pE(e){return{r:Zg(e.r),g:Zg(e.g),b:Zg(e.b),a:e.a}}function iP(e){return{r:Jg(e.r),g:Jg(e.g),b:Jg(e.b),a:e.a}}function mE(e,t,n){let r=pE(e),o=pE(t),{alpha:i,color:s}=rP(r),{alpha:a,color:l}=rP(o),u=Id(s,i),c=Id(l,a),f=oP(i,a,n),d=Id(Qg(u,c,n),1/(f||1)),p={r:d.r,g:d.g,b:d.b,a:f};return iP(p)}function Lu(e,t,n){let r=pE(e),o=pE(t),i=Qg(r,o,n);return iP(i)}function _i(e,t,n){return Qg(e,t,n)}function qg(e){let{stop1:t,stop2:n,...r}=e,o=r.targetInterpolation(t.color,n.color,.5),{a:i,...s}=o,{a,...l}=r.actualInterpolation(t.color,n.color,.5);if(r.recursionLimit===0||GW(Id(s,i),Id(l,a))<=r.epsilon)return[t,n];let u=(t.position+n.position)/2,c={color:o,position:u},f=qg({...r,stop1:t,stop2:c,recursionLimit:r.recursionLimit-1}),d=qg({...r,stop1:c,stop2:n,recursionLimit:r.recursionLimit-1});return[...f,...d.slice(1)]}function Ti(e){let{stops:t,epsilon:n,recursionLimit:r,targetInterpolation:o,actualInterpolation:i}=e,s=[];for(let a=0;a<t.length-1;a++){let l=t[a],u=t[a+1],c=Math.abs(l.position-u.position)<1e-8?[l,u]:qg({stop1:l,stop2:u,epsilon:n,recursionLimit:r,targetInterpolation:o,actualInterpolation:i});a!==0&&c.shift(),s.push(...c)}return s}var kW=6,W=class{contents;constructor(t){this.contents=t}static px(t){return new W({type:"value",unit:"px",value:t})}static percent(t){return new W({type:"value",unit:"%",value:t})}static number(t){return new W({type:"value",unit:"",value:t})}static cqw(t){return new W({type:"value",unit:"cqw",value:t})}static cqh(t){return new W({type:"value",unit:"cqh",value:t})}
10540static cssLength(t){let n=t.match(/^([0-9.]+)(cqw|cqh|px|%)$/);if(!n||n[1]===void 0)throw new q(`Unsupported CSS length: ${t}`);return new W({type:"value",unit:n[2],value:parseFloat(n[1])})}static hypot(t,n){return new W({type:"fn",fn:"hypot",args:[t,n]})}static cos(t){return new W({type:"fn",fn:"cos",args:[t]})}static atan2(t,n){return new W({type:"fn",fn:"atan2",args:[t,n]})}static var(t,n){return new W({type:"variable",name:t,fallback:n})}add(t){return this.contents.type==="value"&&t.contents.type==="value"&&t.contents.value<0?this.subtract(new W({type:"value",unit:t.contents.unit,value:-t.contents.value})):new W({type:"operation",operation:"+",left:this,right:t})}subtract(t){return this.contents.type==="value"&&t.contents.type==="value"&&t.contents.value<0?this.add(new W({type:"value",unit:t.contents.unit,value:-t.contents.value})):new W({type:"operation",operation:"-",left:this,right:t})}multiply(t){return typeof t=="number"?this.multiply(W.number(t)):new W({type:"operation",operation:"*",left:this,right:t})}divide(t){return new W({type:"operation",operation:"/",left:this,right:t})}static applyConstantOperation(t,n,r){switch(t){case"+":return n+r;case"-":return n-r;case"*":return n*r;case"/":return n/r}}toStringInner(t,{topLevel:n}={}){switch(this.contents.type){case"value":return`${parseFloat(this.contents.value.toPrecision(kW))}${this.contents.unit}`;case"variable":return`var(${[this.contents.name,this.contents.fallback].filter(r=>r!==void 0).join(",")})`;case"fn":{let r=t.forTailwind?",":", ";return`${this.contents.fn}(${this.contents.args.map(o=>o.toStringInner(t)).join(r)})`}case"operation":{let{left:r,right:o,operation:i}=this.contents,s=!1,a=!1;(i==="*"||i==="/")&&(s=r.contents.type==="operation"&&r.contents.operation!=="*"&&r.contents.operation!=="/",a=o.contents.type==="operation"&&(i==="/"?!0:o.contents.operation!=="*"&&o.contents.operation!=="/"));let l=t.forTailwind?i:` ${i} `,u=`${s?`(${r.toStringInner(t)})`:r.toStringInner(t)}${l}${a?`(${o.toStringInner(t)})`:o.toStringInner(t)}`;return n?`calc(${u})`:u}}}simplify(){if(this.contents.type==="value"||this.contents.type==="variable")return this;if(this.contents.type==="fn"){let{fn:o,args:i}=this.contents,s=i.map(l=>l.simplify());return s.some((l,u)=>l!==i[u])?new W({type:"fn",fn:o,args:s}):this}let t=this.contents.left.simplify(),n=this.contents.right.simplify(),r=this.contents.operation;if(t.contents.type==="value"&&n.contents.type==="value"){let o=t.contents.unit,i=n.contents.unit;if(o===i||!o||!i){let s=o||i,a=W.applyConstantOperation(r,t.contents.value,n.contents.value);return new W({type:"value",unit:s,value:a})}}
10540return(r==="+"||r==="-")&&n.contents.type==="value"&&n.contents.value===0?t:r==="+"&&t.contents.type==="value"&&t.contents.value===0?n:this.contents.left!==t||this.contents.right!==n?new W({type:"operation",operation:this.contents.operation,left:t,right:n}):this}toStyleValue(t){let n=this.simplify();return n.contents.type==="value"&&n.contents.unit==="px"?n.contents.value:n.toStringInner(t,{topLevel:!0})}toString(t){return this.simplify().toStringInner(t,{topLevel:!0})}};function eS(e,t){let n;if(e){let r=e.match(/^var\((--[^),\s]+)\s*(?:,[^)]*)?\)$/);r?n=r[1]:n=`--${e.replaceAll(" ","")}`}else t&&(n=`--${BW(t)}`);return n}function jn(e,t,n){let r=eS(e,t);return r?`var(${r},${n})`:null}function EE(e,t,n){let r=eS(e,t);return r?W.var(r,n):null}function Is(e,t,n,r){let o=eS(e,t);return o?r.variableUnitsAtReference?W.var(o,n).multiply(W.px(1)):W.var(o,`${n}px`):null}function Pe(e,t,n,r){let o=Is(e,t,n,r);return o?o.toString({forTailwind:r.optimizeForTailwindConversion}):null}function wW(e){return e.split(" ").map(t=>t.toLowerCase()).join("-")}function tS(e,t=n=>"\\"+n){return e.replace(/./g,n=>{let r=n.charCodeAt(0);return/[a-zA-Z0-9_-]/.test(n)||r>=160?n:t(n)})}function BW(e){return e=wW(e),e=tS(e),e}var _E={"#000000":"black","#ffffff":"white","#ff0000":"red","#800080":"purple","#008000":"green","#ffff00":"yellow","#0000ff":"blue","#ffa500":"orange","#a52a2a":"brown","#ffc0cb":"pink"};function UW(e){return e!=null}function nS(e){return Math.round(e*255)}function VW(e){return+e.toFixed(2)}function HW(e){return`${Fa(e.r)}${Fa(e.g)}${Fa(e.b)}`}function WW(e,t=1){let{r:n,g:r,b:o,a:i=1}=e;return`${Fa(n)}${Fa(r)}${Fa(o)}${Fa(i*t)}`}function oS(e,t=1){let{r:n,g:r,b:o,a:i=1}=e;return`rgba(${nS(n)},${nS(r)},${nS(o)},${VW(i*t)})`}function sP(e){let t=e.a;return UW(t)&&t!==1}function Fa(e){return("00"+Math.round(e*255).toString(16)).slice(-2)}function iS(e,t,n=1){if(!sP(e)&&n===1){let{optimizeForTailwindConversion:r}=t,o=HW(e),i=r&&_E[`#${o}`];return i||(o[0]===o[1]&&o[2]===o[3]&&o[4]===o[5]?`#${o[0]}${o[2]}${o[4]}`:`#${o}`)}else{let r=WW(e,n);return r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]&&r[6]===r[7]?`#${r[0]}${r[2]}${r[4]}${r[6]}`:`#${r}`}}var xt=class rS{color;renderOptions;opacity;colorManagement;variableName;codeSyntax;constructor(t,n,r=1,o=Ht,i,s){if(this.color=t,this.renderOptions=n,this.opacity=r,this.colorManagement=o,this.variableName=i,this.codeSyntax=s,t.r>1||t.g>1||t.b>1)throw new q(`Expected normalised color values (between 0 and 1) but got (${t.r}, ${t.g}, ${t.b})`)}static fromRGBA(t,n,r,o){return new rS(t,n,1,Ht,r,o)}get rawColor(){return new rS(this.color,this.renderOptions,this.opacity,this.colorManagement,this.variableName,this.codeSyntax)}get value(){let{shouldOutputVariables:t}=this.renderOptions,n=sP(this.color)||this.opacity!==1?oS(this.color,this.opacity):iS(this.color,this.renderOptions);if(t){let r=jn(this.codeSyntax,this.variableName,n);if(r)return r}return n}equals(t){return this.value===t.value}};function gs(e){return`url("data:image/svg+xml;utf8,${e.replace(/#/g,"%23").replace(/"/g,"'").replace(/\n\s*/g," ").replace(/'[^']*'/g,n=>`'${n.slice(1,-1).trim()}'`).replace(/\(\s*/g,"(").replace(/\s*\)/g,")").replace(/\s*<\s*/g,"<").replace(/\s*\/?>\s*/g,n=>n.includes("/")?"/>":">")}")`}function Cu(e){return e.map(t=>{let{color:{r:n,g:r,b:o,a:i},position:s}=t,a=Math.round(n*255),l=Math.round(r*255),u=Math.round(o*255),c=Me(i),f=Me(s);return` 10541 <stop stop-color="rgba(${a},${l},${u},${c})" offset="${f}" /> 10542 `}).join("")}function aP(e,t){let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t,o=e.color.a===1?iS(e.color,t):oS(e.color);if(n){let i=jn(r&&e.boundVariables?.color?.resolvedCodeSyntax?.[r],e.boundVariables?.color?.resolvedName,o);if(i)return i}return o}function YW(e,t){let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t,{color:{r:o,g:i,b:s,a}}=e,l=Math.round(o*255),u=Math.round(i*255),c=Math.round(s*255),f=v(a),d=Me(e.position*100),p=f===1?`rgb(${l}, ${u}, ${c})`:`rgba(${l}, ${u}, ${c}, ${f})`,_=`${d}%`;if(n){let T=jn(r&&e.boundVariables?.color?.resolvedCodeSyntax?.[r],e.boundVariables?.color?.resolvedName,p);if(T)return`${T} ${_}`}return`${p} ${_}`}function TE(e,t){return e.map(n=>YW(n,t)).join(", ")}var Wt=10;function hi(e){let{size:t,gradientTransform:n}=e,r=we.identity();r.scale(Wt,Wt),r.scale(2,2),r.translate(-.5,-.5);let o=we.copy(r);o.invert();let i=we.fromArray(n);i.invert();let s=we.copy(i);s.multiply(o);let a=we.copy(s);a.invert();let l=we.identity();return l.scale(t.width,t.height),l.multiply(s),{uvToUnitGradient:a,unitGradientToShape:l}}
10542function hE(e){return[new H(0,0),new H(Wt,0),new H(Wt,Wt),new H(0,Wt)].map(r=>e.transformPoint(r)).reduce((r,o)=>(r.x=Math.max(r.x,Math.abs(o.x)),r.y=Math.max(r.y,Math.abs(o.y)),r),{x:-1/0,y:-1/0})}function lP(e,t){let n=t[1].minus(t[0]),r=e.minus(t[0]);return n.multiplyBy(r.dot(n)/n.dot(n)).plus(t[0])}var Oi=class uP{paint;size;serializationFormat;renderOptions;static fromColor({color:t,opacity:n},r){let o={r:t.r,g:t.g,b:t.b,a:n*("a"in t?t.a:1)};return new uP({gradientTransform:we.identity().toMatrix(),gradientStops:[{color:o,position:0},{color:o,position:1}]},Ht,{width:1,height:1},Ma.CSS,r)}constructor(t,n,r,o,i){this.paint=t,this.size=r,this.serializationFormat=o,this.renderOptions=i}get styleData(){let{preferCssGradients:t}=this.renderOptions,{unitGradientToShape:n}=hi({size:this.size,gradientTransform:this.paint.gradientTransform}),r={origin:n.transformPoint(new H(-Wt,0)),primary:n.transformPoint(new H(Wt,0)),secondary:n.transformPoint(new H(-Wt,Wt))},o=r.secondary.minus(r.origin),i=new H(-o.y,o.x);i.dot(r.primary.minus(r.origin))<0&&(i=i.multiplyBy(-1));let s={start:new H(0,0),end:i};if(s.end.x<0){let f=new H(this.size.width,0);s.start=s.start.plus(f),s.end=s.end.plus(f)}if(s.end.y<0){let f=new H(0,this.size.height);s.start=s.start.plus(f),s.end=s.end.plus(f)}let a=new H(i.x<0?0:this.size.width,i.y<0?0:this.size.height);s.end=lP(a,[s.start,s.end]);let l=s.end.minus(s.start).toAngle()*(180/Math.PI),u=this.paint.gradientStops.map(f=>{let d=r.origin.add(r.primary.minus(r.origin).multiplyBy(f.position)),_=lP(d,[s.start,s.end]).minus(s.start).size()/s.end.minus(s.start).size(),T={...f.color,a:f.color.a*(this.paint.opacity??1)};return{...f,color:T,position:ht(_)}}),c=u;return t||(c=Ti({stops:u.map(f=>({...f})),epsilon:.01,recursionLimit:5,targetInterpolation:_i,actualInterpolation:mE}).map(f=>({...f,position:ht(f.position)}))),{angle:l+90,colorStops:c}}get valueAsCss(){let{angle:t,colorStops:n}=this.styleData;return`linear-gradient(${t}deg, ${TE(n,this.renderOptions)})`}get valueAsSvg(){let{unitGradientToShape:t}=hi({size:this.size,gradientTransform:this.paint.gradientTransform}),n=Ti({stops:this.paint.gradientStops.map(o=>({...o})),epsilon:.01,recursionLimit:5,targetInterpolation:_i,actualInterpolation:Lu}).map(o=>({...o,position:ht(o.position)})),r=` 10543 <svg viewBox='0 0 ${Me(this.size.width)} ${Me(this.size.height)}' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'> 10544 <rect x='0' y='0' height='100%' width='100%' fill='url(#grad)' opacity='${this.paint.opacity??1}' /> 10545 <defs> 10546 <linearGradient id='grad' gradientUnits='userSpaceOnUse' x1='${-Wt}' x2='${Wt}' y1='0' y2='0' gradientTransform='${Os(t)}'> 10547 ${Cu(n)} 10548 </linearGradient> 10549 </defs> 10550 </svg> 10551 `;return gs(r)}get value(){return this.serializationFormat===Ma.SVG?this.valueAsSvg:this.valueAsCss}equals(t){return this.value===t.value}};function Fe(e,t){throw new q(t??`Uncaught type ${JSON.stringify(e)}`)}function Te(e,t){if(!e)throw new q(`Assertion failure${t?`: ${t}`:""}`)}var ee=class{functions;constructor(t){this.functions=t}static translateX(t){return new ee([{type:"translate",axis:"x",value:t}])}static translateY(t){return new ee([{type:"translate",axis:"y",value:t}])}static rotate(t){return new ee([{type:"rotate",value:t}])}static skewX(t){return new ee([{type:"skew",axis:"x",value:t}])}static skewY(t){return new ee([{type:"skew",axis:"y",value:t}])}static scaleX(t){return new ee([{type:"scale",axis:"x",value:t}])}static scaleY(t){return new ee([{type:"scale",axis:"y",value:t}])}static combineWithExplicitOrder(...t){return new ee(t.filter(n=>n!==void 0).flatMap(n=>n.functions))}static combineWithDefaultOrder(...t){let n=t.filter(r=>r!==void 0).flatMap(r=>r.functions);return n.sort((r,o)=>aS.indexOf(r.type)-aS.indexOf(o.type)),new ee(n)}toTailwindClasses(){return KW(this.functions)?this.functions.flatMap(t=>XW(t)):zW(this.functions)}get value(){return this.functions.map(t=>cP(t,!1)).join(" ")}},aS=["translate","rotate","skew","scale"];function KW(e){let t=-1;for(let n of e){if(n.value instanceof W)return!1;let r=aS.indexOf(n.type);if(r<t)return!1;t=r}return!0}function zW(e){return[`[transform:${e.map(n=>cP(n,!0)).join("_")}]`]}function XW(e){switch(Te(!(e.value instanceof W),"Calc values should use arbitrary transform syntax"),e.type){case"translate":return[$W(`${e.type}-${e.axis}`,e.value)];case"rotate":return Number.isInteger(e.value)?[sS("rotate",e.value)]:[`rotate-[${e.value}deg]`];case"skew":{let t=`skew-${e.axis}`;return Number.isInteger(e.value)?[sS(t,e.value)]:[`${t}-[${e.value}deg]`]}case"scale":{let t=e.value*100,n=`scale-${e.axis}`;return Number.isInteger(t)?[sS(n,t)]:[`${n}-[${t}%]`]}default:Fe(e)}}function jW(e,t){if(e.value instanceof W)return e.value.toString({forTailwind:t});switch(e.type){case"translate":return String(e.value);case"rotate":case"skew":return`${e.value}deg`;case"scale":return String(e.value);default:Fe(e)}}function cP(e,t){let n=jW(e,t);switch(e.type){case"translate":return`translate${e.axis.toUpperCase()}(${n})`;case"rotate":return`rotate(${n})`;case"skew":return`skew${e.axis.toUpperCase()}(${n})`;case"scale":return`scale${e.axis.toUpperCase()}(${n})`;default:Fe(e)}}var $W=(e,t)=>{let r={"50%":"1/2","100%":"full","0%":"0"}[t];if(r)return`${e}-${r}`;let i={"-50%":"1/2","-100%":"full"}[t];return i?`-${e}-${i}`:`${e}-[${t}]`},sS=(e,t)=>t<0?`-${e}-${-t}`:`${e}-${t}`;function gd(e){switch(e.units){case"PIXELS":return`${v(e.value)}px`;case"PERCENT":return`${v(e.value)}%`}}function fP(e){return`${gd(e.x)} ${gd(e.y)}`}function lS(e){return e.x.units==="PERCENT"&&e.x.value===50&&e.y.units==="PERCENT"&&e.y.value===50}function ZW(e){return`matrix3d(${[e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15]].map(n=>v(n)).join(",")})`}function JW(e){switch(e.type){case"PERSPECTIVE":return e.perspective>0?`perspective(${v(e.perspective)}px)`:"";case"TRANSLATE_Z":return`translateZ(${v(e.translateZ)}px)`;case"ROTATE_X":return`rotateX(${v(e.angle)}deg)`;case"ROTATE_Y":return`rotateY(${v(e.angle)}deg)`;case"ROTATE_Z":return`rotateZ(${v(e.angle)}deg)`;case"MATRIX_3D":return ZW(e.matrix3d);default:Fe(e)}}function dP(e){if(e.type==="FIXED_ORDER"){let t=[],n=v(e.perspective),r=v(e.translateZ),o=v(e.rotateX),i=v(e.rotateY),s=v(e.rotateZ);return n>0&&t.push(`perspective(${n}px)`),r!==0&&t.push(`translateZ(${r}px)`),o!==0&&t.push(`rotateX(${o}deg)`),i!==0&&t.push(`rotateY(${i}deg)`),s!==0&&t.push(`rotateZ(${s}deg)`),t.join(" ")}return e.transformFunctions.map(JW).filter(t=>t.length>0).join(" ")}var qW={white:"white",black:"black"};function Pu(e,t,n){let r=qW[t];if(r)return`${e}-${r}`;let o=n&&t.startsWith("var(")?"color:":"";return`${e}-[${o}${t}]`}var QW=e=>({0:"t",90:"r",180:"b",270:"l"})[v(e,2)],mP={0:"0","0%":"0","25%":"1/4","50%":"1/2","75%":"3/4","100%":"full",none:"none"};function eY(e,t){if(t===1&&!(e in{tracking:!0,rounded:!0,"rounded-tl":!0,"rounded-tr":!0,"rounded-br":!0,"rounded-bl":!0}))return"px"}function EP(e){return typeof e=="string"&&e.includes("var(")}function tY(e,t){let n={fontFamily:"family-name",fontSize:"length",backgroundPosition:"position"}[e];return n&&EP(t)?n:void 0}
10551var ze=(e,t,n)=>{let r=mP[t]||eY(e,t);if(r)return`${e}-${r}`;let o=typeof t=="number"?`${t}px`:t;return`${e}-[${n?`${n}:`:""}${o}]`},_P={minHeight:"min-h",minWidth:"min-w",maxHeight:"max-h",maxWidth:"max-w",gap:"gap",rowGap:"gap-y",columnGap:"gap-x",marginInlineStart:"ms",boxShadow:"shadow",textShadow:"text-shadow",letterSpacing:"tracking",maskPosition:"mask-position",maskSize:"mask-size",fontFamily:"font",fontSize:"text",objectPosition:"object",backgroundPosition:"bg",flex:"flex",gridTemplateColumns:"grid-cols",gridTemplateRows:"grid-rows",textIndent:"indent"};function Sd(e,t){let n=_P[e],r=typeof t=="string"?t.replaceAll(" ","_"):t,o=tY(e,t);return ze(n,r,o)}var nY={textDecorationStyle:"decoration",objectFit:"object",flexShrink:"shrink",borderStyle:"border",pointerEvents:"pointer-events",textAlign:"text",textOverflow:"text",cursor:"cursor",mixBlendMode:"mix-blend",whiteSpace:"whitespace",textWrap:"text"};function pP(e,t){return`${nY[e]}-${t}`}var rY={textBoxTrim:"text-box-trim",textBoxEdge:"text-box-edge",textUnderlinePosition:"text-underline-position",wordBreak:"word-break"};function oY(e,t){let n=rY[e],r=typeof t=="string"?t.replaceAll(" ","_"):t;return`[${n}:${r}]`}function iY(e){let{height:t,width:n}=e;return t!==void 0&&t===n?[ze("size",t)]:[t!==void 0?ze("h",t):null,n!==void 0?ze("w",n):null].filter(r=>r!=null)}function sY(e){let t={prefix:"m",base:e.margin,top:e.marginTop,right:e.marginRight instanceof W?e.marginRight.toStyleValue({forTailwind:!0}):e.marginRight,bottom:e.marginBottom instanceof W?e.marginBottom.toStyleValue({forTailwind:!0}):e.marginBottom,left:e.marginLeft},n={prefix:"p",base:e.padding,top:e.paddingTop,right:e.paddingRight,bottom:e.paddingBottom,left:e.paddingLeft},r=[];return[t,n].forEach(o=>{let{prefix:i,base:s,top:a,right:l,bottom:u,left:c}=o;if(s!==void 0){r.push(ze(i,s));return}if(a!==void 0&&a===l&&l===u&&u===c){r.push(ze(i,a));return}a!==void 0&&a===u?r.push(ze(i+"y",a)):(a!==void 0&&r.push(ze(i+"t",a)),u!==void 0&&r.push(ze(i+"b",u))),c!==void 0&&c===l?r.push(ze(i+"x",c)):(c!==void 0&&r.push(ze(i+"l",c)),l!==void 0&&r.push(ze(i+"r",l)))}),r}function aY(e){let{top:t,left:n,bottom:r,right:o,inset:i}=e;if(i!=null&&t==null&&r==null&&o==null&&n==null)return[ze("inset",i)];if(t!==void 0&&t===n&&t===r&&t===o)return[ze("inset",t)];let s=[t,n,r,o].some(a=>typeof a=="number"||a==="0"?!1:a&&mP[a]!==void 0);return t==null||r==null||o==null||n==null||s?[t!==void 0?ze("top",t):null,n!==void 0?ze("left",n):null,r!==void 0?ze("bottom",r):null,o!==void 0?ze("right",o):null].filter(a=>a!=null):t===r&&n===o?[`inset-[${[t,n].map(l=>l&&typeof l=="number"?`${l}px`:l).join("_")}
10551]`]:[`inset-[${[t,o,r,n].map(l=>l&&typeof l=="number"?`${l}px`:l).join("_")}]`]}function lY(e){return typeof e=="string"&&["cover","auto","contain"].includes(e)?`bg-${e}`:`bg-size-[${typeof e=="string"?e.replaceAll(" ","_"):e}]`}function uY(e,t){if(e instanceof Oi){let{angle:r,colorStops:o}=e.styleData,i=QW(r);if(i!==void 0&&o.length<=3){let a=[];return a.push(`bg-gradient-to-${i}`),o.map((l,u)=>{let c;u===0?c="from":u===o.length-1?c="to":c="via",a.push(Pu(c,aP(l,t)));let f=v(l.position*100,3);f!==0&&f!==100&&a.push(ze(c,`${Me(f)}%`))}),{classes:a}}}return{backgroundImage:typeof e=="string"?e:e.value}}function cY(e,t){let n=_P[e];switch(t){case"top":case"left":case"center":case"right":case"bottom":return`${n}-${t}`;case"top right":case"bottom left":case"top left":case"bottom right":return`${n}-${t.replace(" ","-")}`}return Sd(e,t)}function fY(e){switch(e){case"none":return"hidden";default:return e}}function dY(e,t){let n={alignContent:"content",alignItems:"items",justifyContent:"justify",placeItems:"place-items",alignSelf:"self",justifySelf:"justify-self"}[e];switch(t){case"flex-start":case"flex-end":case"space-between":return`${n}-${t.split("-")[1]}`;case"center":case"baseline":case"stretch":case"start":case"end":return`${n}-${t}`;default:throw new q(`Unsupported ${e}: ${t}`)}}function pY(e){let n=typeof e=="string"&&{"1/1":"square","16/9":"video"}[e];return n?`aspect-${n}`:`aspect-[${e}]`}function mY(e){switch(e){case"border-box":return"box-border";case"content-box":return"box-content";default:throw new q(`Unsupported boxSizing: ${e}`)}}function EY(e){switch(e){case"isolate":return"isolate";default:throw new q(`Unsupported isolation: ${e}`)}}function _Y(e){switch(e){case"0":case"10":case"20":case"30":case"40":case"50":case"auto":return`z-${e}`}return`z-[${e}]`}function TY(e){switch(e){case"1":return"leading-none";default:return`leading-[${e}]`}}function hY(e){switch(e){case"no-clip":return"mask-no-clip";default:throw new q(`Unsupported maskClip: ${e}`)}}function OY(e){switch(e){case"intersect":return"mask-intersect";default:throw new q(`Unsupported maskComposite: ${e}`)}}function IY(e){switch(e){case"no-repeat":return"mask-no-repeat";default:throw new q(`Unsupported maskRepeat: ${e}`)}}function gY(e){switch(e){case"alpha":return"mask-alpha";case"luminance":return"mask-luminance";default:throw new q(`Unsupported maskMode: ${e}`)}}function SY(e){switch(e){case"normal":return"not-italic";case"italic":return"italic";default:return`font-[${e}]`}}function RY({borderRadius:e,borderTopLeftRadius:t,borderTopRightRadius:n,borderBottomRightRadius:r,borderBottomLeftRadius:o}){return e!==void 0?[ze("rounded",e)]:t!==void 0&&t===n&&t===r&&t===o?[ze("rounded",t)]:[t!==void 0?ze("rounded-tl",t):null,n!==void 0?ze("rounded-tr",n):null,r!==void 0?ze("rounded-br",r):null,o!==void 0?ze("rounded-bl",o):null].filter(i=>i!=null)}function AY(e){switch(e){case"0 0 auto":return"flex-none";default:return Sd("flex",e)}}function yY(e){return typeof e=="number"?`opacity-${v(e*100,0)}`:`opacity-[${e}]`}function NY({borderWidth:e,borderTopWidth:t,borderRightWidth:n,borderBottomWidth:r,borderLeftWidth:o}){let i=(s,a)=>a===1?s:Number.isInteger(a)?`${s}-${a}`:EP(a)?ze(s,a,"length"):ze(s,a);return e!==void 0?[i("border",e)]:t!==void 0&&t===n&&t===r&&t===o?[i("border",t)]:[t?i("border-t",t):null,n?i("border-r",n):null,r?i("border-b",r):null,o?i("border-l",o):null].filter(s=>s!=null)}function bY(e){switch(e){case"column":return"flex-col";case"row":return"flex-row";case"column-reverse":return"flex-col-reverse";case"row-reverse":return"flex-row-reverse";default:throw new q(`Unsupported flexDirection: ${e}`)}}function LY(e){switch(e){case"wrap":return"flex-wrap";default:throw new q(`Unsupported flexWrap: ${e}`)}}function CY(e){switch(e){case"preserve-3d":return"transform-3d";case"flat":return"transform-flat";default:throw new q(`Unsupported transformStyle: ${e}`)}}function PY(e){switch(e){case"hidden":return"backface-hidden";case"visible":return"backface-visible";default:throw new q(`Unsupported backfaceVisibility: ${e}`)}}function DY(e){let n=typeof e=="number"&&{100:"thin",200:"extralight",300:"light",400:"normal",500:"medium",600:"semibold",700:"bold",800:"extrabold",900:"black"}[e];return n?`font-${n}`:`font-[${e}]`}function vY(e,t){let n=e==="backdropFilter"?"backdrop-":"",r=[],o=[];for(let[,i,s]of t.matchAll(/([\w-]+)\(((?:[^()]*|\((?:[^()]*|\([^()]
10551*\))*\))*)\)/g))switch(i){case"blur":r.push(`${n}blur-[${s}]`);break;case"drop-shadow":s&&o.push(s.replaceAll(" ","_"));break;default:throw new q(`Unsupported filter function: ${i}(${s})`)}return o.length>0&&r.push(`${n}drop-shadow-[${o.join(",")}]`),r}function xY(e){switch(e){case"padding-box":return"bg-clip-padding";case"border-box":return"bg-clip-border";case"content-box":return"bg-clip-content";case"text":return"bg-clip-text";default:throw new q(`Unsupported backgroundClip: ${e}`)}}function MY(e,t){let n={gridRow:"row",gridColumn:"col"}[e];return typeof t=="number"?`${n}-${t}`:`${n}-[${t.replaceAll(" ","_")}]`}function FY(e){switch(e){case"no-repeat":return{tailwindClass:"bg-no-repeat"};default:return{backgroundRepeat:e}}}function GY(e){return typeof e=="number"?`decoration-${e}`:e==="from-font"?"decoration-from-font":`decoration-[${e}]`}function kY({overflow:e,overflowX:t,overflowY:n}){return e!==void 0?[`overflow-${e}`]:t!==void 0&&t===n?[`overflow-${t}`]:[t!==void 0?`overflow-x-${t}`:null,n!==void 0?`overflow-y-${n}`:null].filter(r=>r!=null)}function uS(e){return String(e).replace(/ /g,"_")}function wY(e){return e instanceof ee?e.toTailwindClasses():[`transform-[${uS(e)}]`]}function BY(e){switch(e){case"none":return"list-none";case"disc":return"list-disc";case"decimal":return"list-decimal";default:return`list-[${e}]`}}function TP(e,t){let n={},{height:r,width:o,margin:i,marginTop:s,marginRight:a,marginBottom:l,marginLeft:u,padding:c,paddingTop:f,paddingRight:d,paddingBottom:p,paddingLeft:_,top:T,left:h,bottom:m,right:E,inset:O,borderRadius:I,borderTopLeftRadius:g,borderTopRightRadius:S,borderBottomRightRadius:A,borderBottomLeftRadius:R,borderWidth:N,borderTopWidth:L,borderRightWidth:b,borderBottomWidth:M,borderLeftWidth:w,overflow:B,overflowX:y,overflowY:K,...C}=e,G=[...iY({height:r,width:o}),...sY({margin:i,marginTop:s,marginRight:a,marginBottom:l,marginLeft:u,padding:c,paddingTop:f,paddingRight:d,paddingBottom:p,paddingLeft:_}),...aY({top:T,left:h,bottom:m,right:E,inset:O}),...RY({borderRadius:I,borderTopLeftRadius:g,borderTopRightRadius:S,borderBottomRightRadius:A,borderBottomLeftRadius:R}),...NY({borderWidth:N,borderTopWidth:L,borderRightWidth:b,borderBottomWidth:M,borderLeftWidth:w}),...kY({overflow:B,overflowX:y,overflowY:K})];for(let P in C)if($g(P,C)&&C[P]!==void 0){if(P.startsWith("--")){n[P]=C[P];continue}try{switch(P){case"minHeight":case"minWidth":case"maxHeight":case"maxWidth":case"gap":case"rowGap":case"columnGap":case"marginInlineStart":case"boxShadow":case"textShadow":case"maskPosition":case"maskSize":case"fontFamily":case"gridTemplateColumns":case"gridTemplateRows":case"textIndent":G.push(Sd(P,C[P]));break;case"letterSpacing":{let X=C[P];X!==0&&X!=="0px"&&X!=="0"&&G.push(Sd(P,X));break}case"fontSize":{let X=C[P];X===0&&(X="0px"),G.push(Sd(P,X));break}case"backgroundColor":G.push(Pu("bg",C[P]));break;case"color":G.push(Pu("text",C[P],!0));break;case"borderColor":G.push(Pu("border",C[P]));break;case"textDecorationColor":G.push(Pu("decoration",C[P]));break;case"textDecorationThickness":G.push(GY(C[P]));break;case"backgroundSize":G.push(lY(C[P]));break;case"backgroundImage":{let{classes:X,backgroundImage:oe}=uY(C[P],t);X&&G.push(...X),oe&&(n.backgroundImage=oe);break}case"backgroundRepeat":{let{tailwindClass:X,backgroundRepeat:oe}=FY(C[P]);X&&G.push(X),oe&&(n.backgroundRepeat=oe);break}case"backgroundClip":G.push(xY(C[P]));break;case"alignContent":case"alignItems":case"justifyContent":case"placeItems":case"alignSelf":case"justifySelf":G.push(dY(P,C[P]));break;case"aspectRatio":G.push(pY(C[P]));break;case"boxSizing":G.push(mY(C[P]));break;case"isolation":G.push(EY(C[P]));break;case"position":case"visibility":case"textDecorationLine":case"textTransform":G.push(C[P]);break;case"zIndex":G.push(_Y(C[P]));break;case"lineHeight":G.push(TY(C[P]));break;case"maskClip":G.push(hY(C[P]));break;case"maskComposite":G.push(OY(C[P]));break;case"maskRepeat":G.push(IY(C[P]));break;case"maskMode":G.push(gY(C[P]));break;case"textDecorationStyle":case"objectFit":case"flexShrink":case"borderStyle":case"pointerEvents":case"textAlign":case"textOverflow":case"cursor":case"mixBlendMode":case"textWrap":G.push(pP(P,C[P]));break;case"whiteSpace":{G.push(pP(P,C[P]));break}case"fontStyle":G.push(SY(C[P]));break;case"fontWeight":G.push(DY(C[P]));break;case"textBoxTrim":case"textBoxEdge":case"textUnderlinePosition":case"wordBreak":G.push(oY(P,C[P]));break;case"objectPosition":case"backgroundPosition":G.push(cY(P,C[P]));break;case"flex":G.push(AY(C[P]));break;case"display":G.push(fY(C[P]));break;case"flexDirection":G.push(bY(C[P]));break;case"opacity":G.push(yY(C[P]));break;case"flexWrap":G.push(LY(C[P]));break;case"backdropFilter":case"filter":G.push(...vY(P,C[P]));break;case"gridRow":case"gridColumn":G.push(MY(P,C[P]));break;case"textDecorationSkipInk":{let X={textDecorationSkipInk:"text-decoration-skip-ink"};G.push(`[${X[P]}:${C[P]}]`);break}case"transform":G.push(...wY(C[P]));break;case"transformOrigin":G.push(`origin-[${uS(C[P])}]`);break;case"transformStyle":G.push(CY(C[P]));break;case"perspective":G.push(`[perspective:${C[P]}]`);break;case"perspectiveOrigin":G.push(`perspective-origin-[${uS(C[P])}]`);break;case"backfaceVisibility":G.push(PY(C[P]));break;case"maskImage":n.maskImage=C[P];break;case"borderImage":n.borderImage=C[P];break;case"listStyleImage":n.listStyleImage=C[P];break;case"listStyleType":G.push(BY(C[P]));break;case"fontFeatureSettings":n.fontFeatureSettings=C[P];break;case"fontVariationSettings":{n.fontVariationSettings=C[P];break}case"containerType":n.containerType=C[P];break;default:console.warn(`Tailwind conversion is ignoring an unsupported style: ${P}`);break}}catch(X){console.warn(`Tailwind conversion is ignoring an unsupported style: ${P}`,X);continue}}return{tailwindClasses:G,inlineStyles:n}}function ne(e){return{kind:"element",...e}}function hr(e){return{kind:"fragment",...e}}function IP(e){return{kind:"raw_jsx",snippet:e}}function Ot(e){return{kind:"rendered",element:e}}function Se(e,t){if(e==null)return null;if(typeof e=="string")return e;if(Array.isArray(e))return t.renderFragment({children:e.map(n=>Se(n,t))});switch(e.kind){case"rendered":return e.element;case"raw_jsx":return e.snippet;case"element":{let{kind:n,children:r,...o}=e;return t.renderElement({...o,children:Se(r??null,t)})}case"fragment":{let{kind:n,children:r,...o}=e;return t.renderFragment({...o,children:Se(r??null,t)})}case"replaceable_reference":throw new q("replaceable_instance IR is only supported on the without-react path")}}function UY(e,t){let n=[],r=[],o={};for(let i of e){if(i==null)continue;
10551if(typeof i=="string"){r.push(...i.split(" "));continue}let s="styles"in i?i.styles:i,a=TP(s,t);n.push(...a.tailwindClasses),Object.assign(o,a.inlineStyles)}return{classes:[...n,...r],style:o}}function gP({Tag:e,children:t,style:n,styleSet:r,key:o,nodeId:i,idSuffix:s,attributes:a},l){let u=UY(Array.isArray(r)?r:[r],l);return(0,hP.createElement)(e,{id:i&&!s?po(i):void 0,...a,key:o,className:(0,OP.default)(u.classes),style:{...u.style,...n}},t)}var AP=x(Y()),yP=x(cS());var RP=x(cS());var VY="api/figment-proxy/monitor",HY="sites.runtime_error",WY="figweb",YY=100,KY=new Set(["preview","published"]),zY=async(e,t,n,r)=>{if(!e||e==="")return;let o=`${e}/${VY}`;try{await fetch(o,{method:"POST",body:JSON.stringify(t),priority:"low",keepalive:r?.sendAsBeacon,headers:{"Content-Type":"application/json",...n},credentials:"omit"})}catch(i){console.error(i)}},XY=()=>/iPad/.test(navigator.userAgent)||/Mac/.test(navigator.userAgent)&&!/iPhone/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||!1,IE;function fS(){if(IE===void 0)try{IE={...RP.default.detect(navigator.userAgent),isIpad:XY()}}catch{IE=null}return IE||null}var Du=class{env;rateLimiter;_shouldReportErrors;reportingDomain;analyticsHeaders;userId;bundleId;bundleCreationDate;_cachedInfo;constructor({env:t,reportingDomain:n,rateLimiter:r,analyticsHeaders:o,bundleId:i,bundleCreationDate:s,userId:a}){this.reportingDomain=n,this.env=t,this.rateLimiter=r,this.analyticsHeaders=o,this._shouldReportErrors=this.shouldReportErrors(),this.bundleId=i,this.bundleCreationDate=s,this.userId=a}shouldReportErrors=()=>{if(!KY.has(this.env))return!1;try{new URL(this.reportingDomain)}catch{return!1}return!0};getContext=()=>({page:{path:window.location.pathname,referrer:document.referrer,search:window.location.search,title:document.title,url:window.location.toString()},userAgent:window.navigator.userAgent,forwardToDatadog:!0});reportError=(t,n)=>{if(!this._shouldReportErrors||!(t instanceof q)||!this.rateLimiter.tryAdd(1))return;let r=new Date().toISOString(),o={event:HY,properties:{errorType:t.name,errorMessage:n?`[${n}]: ${t.message}`:t.message,stackTrace:t.stack||"",environment:this.env,bundleId:this.bundleId,bundleCreationDate:this.bundleCreationDate,severity:t.severity,errorDetail:t.errorDetail,...this.getBrowserInfoProps()},timestamp:r,sentAt:r,context:this.getContext()},i={namespace:WY,batched:"1"};this.userId&&(o.userId=this.userId);let s=[{data:o,figment_metadata:i}];zY(this.reportingDomain,s,this.analyticsHeaders)};getBrowserInfoProps=()=>{if(!this._cachedInfo)try{let t=fS();t&&(this._cachedInfo={browser_name:t.name,browser_version:+t.version,os_name:t?.isIpad?"iPadOS":t.osname,os_version:t?.isIpad?0:t.osversion})}catch{this._cachedInfo={}}return this._cachedInfo};static init(t){if(!this._ErrorReporter)for(this._ErrorReporter=new Du(t);this._errorQueue.length;)this.reportError(Du._errorQueue.pop())}static reset(){this._ErrorReporter=void 0,this._errorQueue=[]}static reportError(t,n){this._ErrorReporter?this.enabled&&this._ErrorReporter.reportError(t,n):this._errorQueue.length<YY&&this._errorQueue.push(t)}},De=Du;Do(De,"enabled",!0),Do(De,"_ErrorReporter"),Do(De,"_errorQueue",[]),Do(De,"enable",()=>Du.enabled=!0),Do(De,"disable",()=>Du.enabled=!1);var Ga=(e,t)=>n=>{try{e(n)}catch(r){throw De.reportError(r,t),r instanceof q?new Error(r.message,r):r}},vu=(e,t)=>n=>{try{e(n)}catch(r){throw De.reportError(r,t),r instanceof q?new Error(r.message,r):r}};var dS=ce(new Map),xu={SHIFT_CODE:16,CONTROL_CODE:17,ALT_CODE:18,META_CODE:91};function NP(e,t){let n=e.event?.keyTrigger?.triggerDevice==="KEYBOARD",r=e.event?.keyTrigger?.keyCodes;if(!r)return!1;let o=ZY(t),i=r.length===t.length;return n&&i&&r.every(o)}function jY(e){return e===void 0?!1:(e=e.toUpperCase(),e==="SHIFT"||e==="CONTROL"||e==="ALT"||e==="META")}function $Y(e){let t=[];return t.push(e.keyCode),e.shiftKey&&t.push(xu.SHIFT_CODE),e.ctrlKey&&t.push(xu.CONTROL_CODE),e.altKey&&t.push(xu.ALT_CODE),e.metaKey&&t.push(xu.META_CODE),t}function ZY(e){let t=yP.default.mac;return n=>(n=n===xu.META_CODE&&!t?xu.CONTROL_CODE:n,e.some(r=>r===n))}function bP(){let e=ge(dS);(0,AP.useEffect)(()=>{let t=vu(n=>{if(jY(n.key))return;let r=$Y(n);e.forEach(o=>{o.keyCallback?.(r)})},"handleKeypressInteractions");return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[e])}function mo(e){return e.some(t=>t.event?.interactionType==="ON_CLICK"&&t.actions?.some(n=>n.connectionType==="URL"||n.connectionType==="INTERNAL_NODE"&&n.navigationType==="NAVIGATE"))}function wo(e){return e.some(t=>t.event?.interactionType==="ON_CLICK")&&!mo(e)}
10551function Rd(e,t,n){t===void 0&&(t=!0);let r=n==="preview"||t?"_blank":"_self";try{return new URL(e),{url:e,target:r}}catch{return{url:"https://"+e,target:r}}}function LP(e,t){if(!e.startsWith("/"))return e;if(t==="published")return window.location.host+e}function Ad(e,t,n,r,o,i){let{env:s}=i,a=l=>{l.key==="Enter"&&e(l)};if((t==="INTERNAL_NODE"||t==="NODE")&&n){let l=()=>{i.preloadLocation(n)};return o||s==="preview"?{onClick:e,onKeyDown:a,onMouseDown:l,role:"link",tabIndex:0}:{href:n,target:r?"_blank":"_self",onMouseDown:l}}if(t==="URL"&&n){let{url:l,target:u}=Rd(n,r,s);return o?{role:"link",tabIndex:0,onClick:e,onKeyDown:a}:{href:l,target:u}}}var D1=x(Y());var CP={sessionID:-1,localID:-1},Ze="-1:-1";function yd(e){return e?(e.localID|0)>=0&&(e.sessionID|0)>=0:!1}function Je(e){return e?`${e.sessionID|0}:${e.localID|0}`:null}function Nd(e){if(!e)return null;let t=e.split(":");if(!t||t.length!==2)return null;let n,r;try{n=parseInt(t[0]),r=parseInt(t[1])}catch{return null}return!isFinite(n)||!isFinite(r)?null:{sessionID:n,localID:r}}var Nt=function(e){return e.Appear="appear",e.Hover="hover",e.Press="press",e.Focus="focus",e.ScrollParallax="scrollParallax",e.ScrollTransform="scrollTransform",e.Cursor="cursor",e.Marquee="marquee",e.Code="code",e}({}),Sn=function(e){return e.IN_CUBIC="IN_CUBIC",e.OUT_CUBIC="OUT_CUBIC",e.INOUT_CUBIC="INOUT_CUBIC",e.LINEAR="LINEAR",e.IN_BACK_CUBIC="IN_BACK_CUBIC",e.OUT_BACK_CUBIC="OUT_BACK_CUBIC",e.INOUT_BACK_CUBIC="INOUT_BACK_CUBIC",e.CUSTOM_CUBIC="CUSTOM_CUBIC",e.GENTLE_SPRING="GENTLE_SPRING",e.SPRING_PRESET_ONE="SPRING_PRESET_ONE",e.SPRING_PRESET_TWO="SPRING_PRESET_TWO",e.SPRING_PRESET_THREE="SPRING_PRESET_THREE",e.CUSTOM_SPRING="CUSTOM_SPRING",e.SPRING="SPRING",e}({}),Eo=function(e){return e.ALL="ALL",e.OPACITY="OPACITY",e.TRANSLATION="TRANSLATION",e.ROTATION="ROTATION",e.SCALE="SCALE",e}({}),It=function(e){return e.PASS_THROUGH="PASS_THROUGH",e.NORMAL="NORMAL",e.DARKEN="DARKEN",e.MULTIPLY="MULTIPLY",e.LINEAR_BURN="LINEAR_BURN",e.COLOR_BURN="COLOR_BURN",e.LIGHTEN="LIGHTEN",e.SCREEN="SCREEN",e.LINEAR_DODGE="LINEAR_DODGE",e.COLOR_DODGE="COLOR_DODGE",e.OVERLAY="OVERLAY",e.SOFT_LIGHT="SOFT_LIGHT",e.HARD_LIGHT="HARD_LIGHT",e.DIFFERENCE="DIFFERENCE",e.EXCLUSION="EXCLUSION",e.HUE="HUE",e.SATURATION="SATURATION",e.COLOR="COLOR",e.LUMINOSITY="LUMINOSITY",e}({}),$n=function(e){return e.LEFT="LEFT",e.RIGHT="RIGHT",e.CENTER="CENTER",e.LEFT_RIGHT="LEFT_RIGHT",e.SCALE="SCALE",e}({}),Or=function(e){return e.TOP="TOP",e.BOTTOM="BOTTOM",e.CENTER="CENTER",e.TOP_BOTTOM="TOP_BOTTOM",e.SCALE="SCALE",e}({}),eq=function(e){return e.SUPER="SUPER",e.SUB="SUB",e.NORMAL="NORMAL",e}({}),PP=function(e){return e.NONE="NONE",e.STRIKETHROUGH="STRIKETHROUGH",e.UNDERLINE="UNDERLINE",e}({}),ka=function(e){return e.ORDERED="ORDERED",e.UNORDERED="UNORDERED",e.NONE="NONE",e}({}),tq=function(e){return e.SET="SET",e.SCALE="SCALE",e.OFFSET="OFFSET",e}({}),nq=function(e){return e.FLOAT="FLOAT",e.COLOR="COLOR",e.VECTOR="VECTOR",e}({});var Mu={visible:!0,locked:!1,isFixed:!1,scrollBehavior:"SCROLLS"},bd={blendMode:It.NORMAL,opacity:1},gE={constraints:{vertical:Or.TOP,horizontal:$n.LEFT},layoutGrow:0,layoutAlign:"INHERIT",layoutPositioning:"AUTO",gridColumnAnchorIndex:0,gridRowAnchorIndex:0},SE={fills:[],strokes:[],strokeWeight:1},qY={effects:[]},vP={isMask:!1},DP={isBreakpointFrame:!1},iq={interactions:[]},QY={clipsContent:!1,overflowDirection:"NONE",layoutMode:"NONE",primaryAxisSizingMode:"AUTO",counterAxisSizingMode:"AUTO",primaryAxisAlignItems:"MIN",counterAxisAlignItems:"MIN",paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,itemSpacing:0,itemReverseZIndex:!1,strokesIncludedInLayout:!1,stackLayoutVersion:0,counterAxisAlignContent:"AUTO",layoutWrap:"NO_WRAP",counterAxisSpacing:0},pS={cornerRadius:0,rectangleCornerRadii:[0,0,0,0],rectangleCornerRadiiIndependent:!1},e3={isInAnimateTree:!1},Vr={...Mu,...bd,...gE,...QY,...pS,...SE,...qY,...vP,...DP,...DP,...e3},Ld={...Mu,...bd,...gE,...SE,...vP},sq={...Ld,...pS},xP={...Ld,...pS},MP={listSpacing:0,textAutoResize:"NONE",paragraphIndent:0,paragraphSpacing:0,textAlignHorizontal:"LEFT",textAlignVertical:"TOP"},Cd={code:void 0,sourceCodeHash:void 0,codeExportName:"default"};var FP={...Vr},GP={...Vr},kP={...Ld},wP={...Mu,...bd,...gE,...SE},BP={...Vr},UP={...Vr},VP={...Vr},HP={...Vr,type:"REPEATER"},WP={...Vr,type:"CMS_RICH_TEXT"},YP={...Vr},KP={...xP},zP={...Ld,...MP},XP={...Mu,...bd},jP={...Vr,type:"WEBPAGE"},$P={...Vr,type:"CODE_INSTANCE",...Cd,componentProperties:{}},ZP={...Vr,type:"CODE_LAYER",...Cd,componentProperties:{}},JP={...Mu,type:"CODE_COMPONENT",...Cd,componentProperties:{}},qP={type:"CODE_FILE",...Cd};function RE(e){switch(e.type){case"COMPONENT":return Object.assign(Object.create(FP),e);case"COMPONENT_SET":return Object.assign(Object.create(GP),e);case"FRAME":return Object.assign(Object.create(BP),e);case"SLOT":return Object.assign(Object.create(UP),e);case"GROUP":return Object.assign(Object.create(VP),e);case"IMAGE":return Object.assign(Object.create(wP),e);case"INSTANCE":return Object.assign(Object.create(YP),e);case"RECTANGLE":return Object.assign(Object.create(KP),e);case"SVG":return Object.assign(Object.create(kP),e);case"TEXT":return Object.assign(Object.create(zP),e);case"VARIABLE":return e;case"VARIABLE_COLLECTION":return e;case"STYLE":return e;case"WIDGET":return Object.assign(Object.create(XP),e);case"WEBPAGE":return Object.assign(Object.create(jP),e);case"CODE_INSTANCE":return Object.assign(Object.create($P),e);case"CODE_LAYER":return Object.assign(Object.create(ZP),e);case"CODE_COMPONENT":return Object.assign(Object.create(JP),e);case"CODE_FILE":return Object.assign(Object.create(qP),e);case"REPEATER":return Object.assign(Object.create(HP),e);case"CMS_RICH_TEXT":return Object.assign(Object.create(WP),e);case"KEYFRAME_TRACK":return e;case"KEYFRAME":return e;default:throw new Error("Unknown node type provided to applyDefaults")}}var qe=function(e){return e[e.ADDITION=0]="ADDITION",e[e.SUBTRACTION=1]="SUBTRACTION",e[e.RESOLVE_VARIANT=2]="RESOLVE_VARIANT",e[e.MULTIPLY=3]="MULTIPLY",e[e.DIVIDE=4]="DIVIDE",e[e.EQUALS=5]="EQUALS",e[e.NOT_EQUAL=6]="NOT_EQUAL",e[e.LESS_THAN=7]="LESS_THAN",e[e.LESS_THAN_OR_EQUAL=8]="LESS_THAN_OR_EQUAL",e[e.GREATER_THAN=9]="GREATER_THAN",e[e.GREATER_THAN_OR_EQUAL=10]="GREATER_THAN_OR_EQUAL",e[e.AND=11]="AND",e[e.OR=12]="OR",e[e.NOT=13]="NOT",e[e.STRINGIFY=14]="STRINGIFY",e[e.TERNARY=15]="TERNARY",e[e.VAR_MODE_LOOKUP=16]="VAR_MODE_LOOKUP",e[e.NEGATE=17]="NEGATE",e[e.IS_TRUTHY=18]="IS_TRUTHY",e}({});function Fu(e){return e.type==="GRADIENT_LINEAR"||e.type==="GRADIENT_RADIAL"||e.type==="GRADIENT_ANGULAR"||e.type==="GRADIENT_DIAMOND"}function mq(e,t,n){let r=e,o=t.safeParse(e);if(o.success&&(r=o.data),!o.success){t.description||console.info("Zod schema provided to parseData has no description. Add a description via .describe for better error messages.");let i=`${t.description||"Zod"} schema error issues`,s=n?`Debug info: 10552${JSON.stringify(n,null,2)} 10553`:"",a=typeof window>"u",l=!1;if(a||l){if(a)for(let u of o.error.issues)console.error(`[SchemaErrorIssue] ${JSON.stringify({sc
10553hemaDescription:t.description,issue:u})}`);if(l)throw new Error(`${i} 10554${s}Issues: ${JSON.stringify(o.error.issues,null,2)}`)}else console.error(i,{issues:o.error.issues,debugInfo:n,data:e})}return r}var it={};QV(it,{BRAND:()=>N3,DIRTY:()=>wa,EMPTY_PATH:()=>o3,INVALID:()=>ie,NEVER:()=>c4,OK:()=>An,ParseStatus:()=>Mt,Schema:()=>_e,ZodAny:()=>As,ZodArray:()=>gr,ZodBigInt:()=>Vo,ZodBoolean:()=>Ba,ZodBranded:()=>Dd,ZodCatch:()=>$a,ZodDate:()=>Ri,ZodDefault:()=>ja,ZodDiscriminatedUnion:()=>Vu,ZodEffects:()=>Kr,ZodEnum:()=>Ho,ZodError:()=>Rn,ZodFirstPartyTypeKind:()=>se,ZodFunction:()=>Rs,ZodIntersection:()=>Wa,ZodIssueCode:()=>U,ZodLazy:()=>Ka,ZodLiteral:()=>za,ZodMap:()=>Hu,ZodNaN:()=>Wu,ZodNativeEnum:()=>Xa,ZodNever:()=>_o,ZodNull:()=>Va,ZodNullable:()=>Wo,ZodNumber:()=>Uo,ZodObject:()=>ot,ZodOptional:()=>Hr,ZodParsedType:()=>j,ZodPipeline:()=>Za,ZodPromise:()=>ys,ZodReadonly:()=>Ja,ZodRecord:()=>Ya,ZodSchema:()=>_e,ZodSet:()=>Ai,ZodString:()=>Ir,ZodSymbol:()=>Bu,ZodTransformer:()=>Kr,ZodTuple:()=>Yr,ZodType:()=>_e,ZodUndefined:()=>Ua,ZodUnion:()=>Ha,ZodUnknown:()=>Si,ZodVoid:()=>Uu,addIssueToContext:()=>z,any:()=>F3,array:()=>B3,bigint:()=>P3,boolean:()=>uD,coerce:()=>u4,custom:()=>sD,date:()=>D3,datetimeRegex:()=>oD,defaultErrorMap:()=>Ii,discriminatedUnion:()=>W3,effect:()=>t4,enum:()=>q3,function:()=>$3,getErrorMap:()=>Gu,getParsedType:()=>Bo,instanceof:()=>L3,intersection:()=>Y3,isAborted:()=>AE,isAsync:()=>ku,isDirty:()=>yE,isValid:()=>Ss,late:()=>b3,lazy:()=>Z3,literal:()=>J3,makeIssue:()=>Pd,map:()=>X3,nan:()=>C3,nativeEnum:()=>Q3,never:()=>k3,null:()=>M3,nullable:()=>r4,number:()=>lD,object:()=>U3,objectUtil:()=>mS,oboolean:()=>l4,onumber:()=>a4,optional:()=>n4,ostring:()=>s4,pipeline:()=>i4,preprocess:()=>o4,promise:()=>e4,quotelessJson:()=>t3,record:()=>z3,set:()=>j3,setErrorMap:()=>r3,strictObject:()=>V3,string:()=>aD,symbol:()=>v3,transformer:()=>t4,tuple:()=>K3,undefined:()=>x3,union:()=>H3,unknown:()=>G3,util:()=>Oe,void:()=>w3});var Oe;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{let i={};for(let s of o)i[s]=s;return i},e.getValidEnumValues=o=>{let i=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),s={};for(let a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let i=[];for(let s in o)Object.prototype.hasOwnProperty.call(o,s)&&i.push(s);return i},e.find=(o,i)=>{for(let s of o)if(i(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,i=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(Oe||(Oe={}));var mS;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(mS||(mS={}));var j=Oe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Bo=e=>{switch(typeof e){case"undefined":return j.undefined;case"string":return j.string;case"number":return Number.isNaN(e)?j.nan:j.number;case"boolean":return j.boolean;case"function":return j.function;case"bigint":return j.bigint;case"symbol":return j.symbol;case"object":return Array.isArray(e)?j.array:e===null?j.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?j.promise:typeof Map<"u"&&e instanceof Map?j.map:typeof Set<"u"&&e instanceof Set?j.set:typeof Date<"u"&&e instanceof Date?j.date:j.object;default:return j.unknown}};
vendor: 51,245 bytes, line 10554
10554var U=Oe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),t3=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),Rn=class extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,l=0;for(;l<s.path.length;){let u=s.path[l];l===s.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(s))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return o(this),r}static assert(t){if(!(t instanceof Rn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Oe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},r=[];for(let o of this.issues)if(o.path.length>0){let i=o.path[0];n[i]=n[i]||[],n[i].push(t(o))}else r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};Rn.create=e=>new Rn(e);var n3=(e,t)=>{let n;switch(e.code){case U.invalid_type:e.received===j.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case U.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Oe.jsonStringifyReplacer)}`;break;case U.unrecognized_keys:n=`Unrecognized key(s) in object: ${Oe.joinValues(e.keys,", ")}`;break;case U.invalid_union:n="Invalid input";break;case U.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Oe.joinValues(e.options)}`;break;case U.invalid_enum_value:n=`Invalid enum value. Expected ${Oe.joinValues(e.options)}, received '${e.received}'`;break;case U.invalid_arguments:n="Invalid function arguments";break;case U.invalid_return_type:n="Invalid function return type";break;case U.invalid_date:n="Invalid date";break;case U.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Oe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case U.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case U.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case U.custom:n="Invalid input";break;case U.invalid_intersection_types:n="Intersection results could not be merged";break;case U.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case U.not_finite:n="Number must be finite";break;default:n=t.defaultError,Oe.assertNever(e)}return{message:n}},Ii=n3;var QP=Ii;function r3(e){QP=e}function Gu(){return QP}var Pd=e=>{let{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="",l=r.filter(u=>!!u).slice().reverse();for(let u of l)a=u(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},o3=[];function z(e,t){let n=Gu(),r=Pd({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ii?void 0:Ii].filter(o=>!!o)});e.common.issues.push(r)}var Mt=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let r=[];for(let o of n){if(o.status==="aborted")return ie;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){let r=[];for(let o of n){let i=await o.key,s=await o.value;r.push({key:i,value:s})}return Mt.mergeObjectSync(t,r)}static mergeObjectSync(t,n){let r={};for(let o of n){let{key:i,value:s}=o;if(i.status==="aborted"||s.status==="aborted")return ie;i.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[i.value]=s.value)}return{status:t.value,value:r}}},ie=Object.freeze({status:"aborted"}),wa=e=>({status:"dirty",value:e}),An=e=>({status:"valid",value:e}),AE=e=>e.status==="aborted",yE=e=>e.status==="dirty",Ss=e=>e.status==="valid",ku=e=>typeof Promise<"u"&&e instanceof Promise;var J;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(J||(J={}));var Wr=class{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},eD=(e,t)=>{if(Ss(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new Rn(e.common.issues);return this._error=n,this._error}}};function pe(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,a)=>{let{message:l}=e;return s.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??r??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:o}}var _e=class{get description(){return this._def.description}_getType(t){return Bo(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Bo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Mt,ctx:{common:t.parent.common,data:t.data,parsedType:Bo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(ku(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Bo(t)},o=this._parseSync({data:t,path:r.path,parent:r});return eD(r,o)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Bo(t)};if(!this["~standard"].async)try{let r=this._parseSync({data:t,path:[],parent:n});return Ss(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>Ss(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){let r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Bo(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(ku(o)?o:Promise.resolve(o));return eD(r,i)}refine(t,n){let r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,i)=>{let s=t(o),a=()=>i.addIssue({code:U.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new Kr({schema:this,typeName:se.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Hr.create(this,this._def)}nullable(){return Wo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return gr.create(this)}promise(){return ys.create(this,this._def)}or(t){return Ha.create([this,t],this._def)}and(t){return Wa.create(this,t,this._def)}transform(t){return new Kr({...pe(this._def),schema:this,typeName:se.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new ja({...pe(this._def),innerType:this,defaultValue:n,typeName:se.ZodDefault})}brand(){return new Dd({typeName:se.ZodBranded,type:this,...pe(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new $a({...pe(this._def),innerType:this,catchValue:n,typeName:se.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Za.create(this,t)}readonly(){return Ja.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},i3=/^c[^\s-]{8,}$/i,s3=/^[0-9a-z]+$/,a3=/^[0-9A-HJKMNP-TV-Z]{26}$/i,l3=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,u3=/^[a-z0-9_-]{21}$/i,c3=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,f3=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,d3=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,p3="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ES,m3=/^(?:(?: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])$/,E3=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,_3=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,T3=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,h3=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,O3=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nD="((\\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])))",I3=new RegExp(`^${nD}$`);function rD(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function g3(e){return new RegExp(`^${rD(e)}$`)}function oD(e){let t=`${nD}T${rD(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function S3(e,t){return!!((t==="v4"||!t)&&m3.test(e)||(t==="v6"||!t)&&_3.test(e))}function R3(e,t){if(!c3.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function A3(e,t){return!!((t==="v4"||!t)&&E3.test(e)||(t==="v6"||!t)&&T3.test(e))}var Ir=class extends _e{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==j.string){let i=this._getOrReturnCtx(t);return z(i,{code:U.invalid_type,expected:j.string,received:i.parsedType}),ie}let r=new Mt,o;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(o=this._getOrReturnCtx(t,o),z(o,{code:U.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(o=this._getOrReturnCtx(t,o),z(o,{code:U.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){let s=t.data.length>i.value,a=t.data.length<i.value;(s||a)&&(o=this._getOrReturnCtx(t,o),s?z(o,{code:U.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&z(o,{code:U.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")d3.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"email",code:U.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")ES||(ES=new RegExp(p3,"u")),ES.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"emoji",code:U.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")l3.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"uuid",code:U.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")u3.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"nanoid",code:U.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")i3.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"cuid",code:U.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")s3.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"cuid2",code:U.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")a3.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"ulid",code:U.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),z(o,{validation:"url",code:U.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"regex",code:U.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(t,o),z(o,{code:U.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(o=this._getOrReturnCtx(t,o),z(o,{code:U.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(o=this._getOrReturnCtx(t,o),z(o,{code:U.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?oD(i).test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{code:U.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?I3.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{code:U.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?g3(i).test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{code:U.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?f3.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"duration",code:U.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?S3(t.data,i.version)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"ip",code:U.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?R3(t.data,i.alg)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"jwt",code:U.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?A3(t.data,i.version)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"cidr",code:U.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?h3.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"base64",code:U.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?O3.test(t.data)||(o=this._getOrReturnCtx(t,o),z(o,{validation:"base64url",code:U.invalid_string,message:i.message}),r.dirty()):Oe.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:U.invalid_string,...J.errToObj(r)})}_addCheck(t){return new Ir({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...J.errToObj(t)})}url(t){return this._addCheck({kind:"url",...J.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...J.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...J.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...J.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...J.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...J.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...J.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...J.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...J.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...J.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...J.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...J.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...J.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...J.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...J.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...J.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...J.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...J.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...J.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...J.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...J.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...J.errToObj(n)})}nonempty(t){return this.min(1,J.errToObj(t))}trim(){return new Ir({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ir({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ir({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Ir.create=e=>new Ir({checks:[],typeName:se.ZodString,coerce:e?.coerce??!1,...pe(e)});function y3(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var Uo=class extends _e{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==j.number){let i=this._getOrReturnCtx(t);return z(i,{code:U.invalid_type,expected:j.number,received:i.parsedType}),ie}let r,o=new Mt;for(let i of this._def.checks)i.kind==="int"?Oe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{code:U.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),z(r,{code:U.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),z(r,{code:U.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?y3(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),z(r,{code:U.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{code:U.not_finite,message:i.message}),o.dirty()):Oe.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,J.toString(n))}gt(t,n){return this.setLimit("min",t,!1,J.toString(n))}lte(t,n){return this.setLimit("max",t,!0,J.toString(n))}lt(t,n){return this.setLimit("max",t,!1,J.toString(n))}setLimit(t,n,r,o){return new Uo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:J.toString(o)}]})}_addCheck(t){return new Uo({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:J.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:J.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:J.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:J.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:J.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:J.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:J.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:J.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:J.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Oe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}};Uo.create=e=>new Uo({checks:[],typeName:se.ZodNumber,coerce:e?.coerce||!1,...pe(e)});var Vo=class extends _e{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==j.bigint)return this._getInvalidInput(t);let r,o=new Mt;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),z(r,{code:U.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),z(r,{code:U.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),z(r,{code:U.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):Oe.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return z(n,{code:U.invalid_type,expected:j.bigint,received:n.parsedType}),ie}gte(t,n){return this.setLimit("min",t,!0,J.toString(n))}gt(t,n){return this.setLimit("min",t,!1,J.toString(n))}lte(t,n){return this.setLimit("max",t,!0,J.toString(n))}lt(t,n){return this.setLimit("max",t,!1,J.toString(n))}setLimit(t,n,r,o){return new Vo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:J.toString(o)}]})}_addCheck(t){return new Vo({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:J.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:J.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:J.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:J.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:J.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Vo.create=e=>new Vo({checks:[],typeName:se.ZodBigInt,coerce:e?.coerce??!1,...pe(e)});var Ba=class extends _e{_parse(t){if(this._def.coerce&&(t.data=Boolean(t.data)),this._getType(t)!==j.boolean){let r=this._getOrReturnCtx(t);return z(r,{code:U.invalid_type,expected:j.boolean,received:r.parsedType}),ie}return An(t.data)}};Ba.create=e=>new Ba({typeName:se.ZodBoolean,coerce:e?.coerce||!1,...pe(e)});var Ri=class extends _e{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==j.date){let i=this._getOrReturnCtx(t);return z(i,{code:U.invalid_type,expected:j.date,received:i.parsedType}),ie}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return z(i,{code:U.invalid_date}),ie}let r=new Mt,o;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(o=this._getOrReturnCtx(t,o),z(o,{code:U.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(o=this._getOrReturnCtx(t,o),z(o,{code:U.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Oe.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ri({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:J.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:J.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};Ri.create=e=>new Ri({checks:[],coerce:e?.coerce||!1,typeName:se.ZodDate,...pe(e)});var Bu=class extends _e{_parse(t){if(this._getType(t)!==j.symbol){let r=this._getOrReturnCtx(t);return z(r,{code:U.invalid_type,expected:j.symbol,received:r.parsedType}),ie}return An(t.data)}};Bu.create=e=>new Bu({typeName:se.ZodSymbol,...pe(e)});var Ua=class extends _e{_parse(t){if(this._getType(t)!==j.undefined){let r=this._getOrReturnCtx(t);return z(r,{code:U.invalid_type,expected:j.undefined,received:r.parsedType}),ie}return An(t.data)}};Ua.create=e=>new Ua({typeName:se.ZodUndefined,...pe(e)});var Va=class extends _e{_parse(t){if(this._getType(t)!==j.null){let r=this._getOrReturnCtx(t);return z(r,{code:U.invalid_type,expected:j.null,received:r.parsedType}),ie}return An(t.data)}};Va.create=e=>new Va({typeName:se.ZodNull,...pe(e)});var As=class extends _e{constructor(){super(...arguments),this._any=!0}_parse(t){return An(t.data)}};As.create=e=>new As({typeName:se.ZodAny,...pe(e)});var Si=class extends _e{constructor(){super(...arguments),this._unknown=!0}_parse(t){return An(t.data)}};Si.create=e=>new Si({typeName:se.ZodUnknown,...pe(e)});var _o=class extends _e{_parse(t){let n=this._getOrReturnCtx(t);return z(n,{code:U.invalid_type,expected:j.never,received:n.parsedType}),ie}};_o.create=e=>new _o({typeName:se.ZodNever,...pe(e)});var Uu=class extends _e{_parse(t){if(this._getType(t)!==j.undefined){let r=this._getOrReturnCtx(t);return z(r,{code:U.invalid_type,expected:j.void,received:r.parsedType}),ie}return An(t.data)}};Uu.create=e=>new Uu({typeName:se.ZodVoid,...pe(e)});var gr=class extends _e{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==j.array)return z(n,{code:U.invalid_type,expected:j.array,received:n.parsedType}),ie;if(o.exactLength!==null){let s=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(s||a)&&(z(n,{code:s?U.too_big:U.too_small,minimum:a?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(z(n,{code:U.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(z(n,{code:U.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>o.type._parseAsync(new Wr(n,s,n.path,a)))).then(s=>Mt.mergeArray(r,s));let i=[...n.data].map((s,a)=>o.type._parseSync(new Wr(n,s,n.path,a)));return Mt.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new gr({...this._def,minLength:{value:t,message:J.toString(n)}})}max(t,n){return new gr({...this._def,maxLength:{value:t,message:J.toString(n)}})}length(t,n){return new gr({...this._def,exactLength:{value:t,message:J.toString(n)}})}nonempty(t){return this.min(1,t)}};gr.create=(e,t)=>new gr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:se.ZodArray,...pe(t)});function wu(e){if(e instanceof ot){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Hr.create(wu(r))}return new ot({...e._def,shape:()=>t})}else return e instanceof gr?new gr({...e._def,type:wu(e.element)}):e instanceof Hr?Hr.create(wu(e.unwrap())):e instanceof Wo?Wo.create(wu(e.unwrap())):e instanceof Yr?Yr.create(e.items.map(t=>wu(t))):e}var ot=class extends _e{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=Oe.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==j.object){let u=this._getOrReturnCtx(t);return z(u,{code:U.invalid_type,expected:j.object,received:u.parsedType}),ie}let{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof _o&&this._def.unknownKeys==="strip"))for(let u in o.data)s.includes(u)||a.push(u);let l=[];for(let u of s){let c=i[u],f=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Wr(o,f,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof _o){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of a)l.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(u==="strict")a.length>0&&(z(o,{code:U.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of a){let f=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Wr(o,f,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let f=await c.key,d=await c.value;u.push({key:f,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>Mt.mergeObjectSync(r,u)):Mt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return J.errToObj,new ot({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{let o=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:J.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new ot({...this._def,unknownKeys:"strip"})}passthrough(){return new ot({...this._def,unknownKeys:"passthrough"})}extend(t){return new ot({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new ot({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:se.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new ot({...this._def,catchall:t})}pick(t){let n={};for(let r of Oe.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new ot({...this._def,shape:()=>n})}omit(t){let n={};for(let r of Oe.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new ot({...this._def,shape:()=>n})}deepPartial(){return wu(this)}partial(t){let n={};for(let r of Oe.objectKeys(this.shape)){let o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}return new ot({...this._def,shape:()=>n})}required(t){let n={};for(let r of Oe.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Hr;)i=i._def.innerType;n[r]=i}return new ot({...this._def,shape:()=>n})}keyof(){return iD(Oe.objectKeys(this.shape))}};ot.create=(e,t)=>new ot({shape:()=>e,unknownKeys:"strip",catchall:_o.create(),typeName:se.ZodObject,...pe(t)});ot.strictCreate=(e,t)=>new ot({shape:()=>e,unknownKeys:"strict",catchall:_o.create(),typeName:se.ZodObject,...pe(t)});ot.lazycreate=(e,t)=>new ot({shape:e,unknownKeys:"strip",catchall:_o.create(),typeName:se.ZodObject,...pe(t)});var Ha=class extends _e{_parse(t){let{ctx:n}=this._processInputParams(t),r=this._def.options;function o(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let s=i.map(a=>new Rn(a.ctx.common.issues));return z(n,{code:U.invalid_union,unionErrors:s}),ie}if(n.common.async)return Promise.all(r.map(async i=>{let s={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(o);{let i,s=[];for(let l of r){let u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let a=s.map(l=>new Rn(l));return z(n,{code:U.invalid_union,unionErrors:a}),ie}}get options(){return this._def.options}};Ha.create=(e,t)=>new Ha({options:e,typeName:se.ZodUnion,...pe(t)});var gi=e=>e instanceof Ka?gi(e.schema):e instanceof Kr?gi(e.innerType()):e instanceof za?[e.value]:e instanceof Ho?e.options:e instanceof Xa?Oe.objectValues(e.enum):e instanceof ja?gi(e._def.innerType):e instanceof Ua?[void 0]:e instanceof Va?[null]:e instanceof Hr?[void 0,...gi(e.unwrap())]:e instanceof Wo?[null,...gi(e.unwrap())]:e instanceof Dd||e instanceof Ja?gi(e.unwrap()):e instanceof $a?gi(e._def.innerType):[],Vu=class extends _e{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==j.object)return z(n,{code:U.invalid_type,expected:j.object,received:n.parsedType}),ie;let r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(z(n,{code:U.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ie)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let o=new Map;for(let i of n){let s=gi(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of s){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,i)}}return new Vu({typeName:se.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...pe(r)})}};function _S(e,t){let n=Bo(e),r=Bo(t);if(e===t)return{valid:!0,data:e};if(n===j.object&&r===j.object){let o=Oe.objectKeys(t),i=Oe.objectKeys(e).filter(a=>o.indexOf(a)!==-1),s={...e,...t};for(let a of i){let l=_S(e[a],t[a]);if(!l.valid)return{valid:!1};s[a]=l.data}return{valid:!0,data:s}}else if(n===j.array&&r===j.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i<e.length;i++){let s=e[i],a=t[i],l=_S(s,a);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return n===j.date&&r===j.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Wa=class extends _e{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=(i,s)=>{if(AE(i)||AE(s))return ie;let a=_S(i.value,s.value);return a.valid?((yE(i)||yE(s))&&n.dirty(),{status:n.value,value:a.data}):(z(r,{code:U.invalid_intersection_types}),ie)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};Wa.create=(e,t,n)=>new Wa({left:e,right:t,typeName:se.ZodIntersection,...pe(n)});var Yr=class extends _e{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==j.array)return z(r,{code:U.invalid_type,expected:j.array,received:r.parsedType}),ie;if(r.data.length<this._def.items.length)return z(r,{code:U.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ie;!this._def.rest&&r.data.length>this._def.items.length&&(z(r,{code:U.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let i=[...r.data].map((s,a)=>{let l=this._def.items[a]||this._def.rest;return l?l._parse(new Wr(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>Mt.mergeArray(n,s)):Mt.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Yr({...this._def,rest:t})}};Yr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Yr({items:e,typeName:se.ZodTuple,rest:null,...pe(t)})};var Ya=class extends _e{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==j.object)return z(r,{code:U.invalid_type,expected:j.object,received:r.parsedType}),ie;let o=[],i=this._def.keyType,s=this._def.valueType;for(let a in r.data)o.push({key:i._parse(new Wr(r,a,r.path,a)),value:s._parse(new Wr(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?Mt.mergeObjectAsync(n,o):Mt.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof _e?new Ya({keyType:t,valueType:n,typeName:se.ZodRecord,...pe(r)}):new Ya({keyType:Ir.create(),valueType:t,typeName:se.ZodRecord,...pe(n)})}},Hu=class extends _e{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==j.map)return z(r,{code:U.invalid_type,expected:j.map,received:r.parsedType}),ie;let o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,l],u)=>({key:o._parse(new Wr(r,a,r.path,[u,"key"])),value:i._parse(new Wr(r,l,r.path,[u,"value"]))}));if(r.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return ie;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let l of s){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return ie;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}}}};Hu.create=(e,t,n)=>new Hu({valueType:t,keyType:e,typeName:se.ZodMap,...pe(n)});var Ai=class extends _e{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==j.set)return z(r,{code:U.invalid_type,expected:j.set,received:r.parsedType}),ie;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(z(r,{code:U.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(z(r,{code:U.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());let i=this._def.valueType;function s(l){let u=new Set;for(let c of l){if(c.status==="aborted")return ie;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}let a=[...r.data.values()].map((l,u)=>i._parse(new Wr(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>s(l)):s(a)}min(t,n){return new Ai({...this._def,minSize:{value:t,message:J.toString(n)}})}max(t,n){return new Ai({...this._def,maxSize:{value:t,message:J.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};Ai.create=(e,t)=>new Ai({valueType:e,minSize:null,maxSize:null,typeName:se.ZodSet,...pe(t)});var Rs=class extends _e{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==j.function)return z(n,{code:U.invalid_type,expected:j.function,received:n.parsedType}),ie;function r(a,l){return Pd({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Gu(),Ii].filter(u=>!!u),issueData:{code:U.invalid_arguments,argumentsError:l}})}function o(a,l){return Pd({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Gu(),Ii].filter(u=>!!u),issueData:{code:U.invalid_return_type,returnTypeError:l}})}let i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof ys){let a=this;return An(async function(...l){let u=new Rn([]),c=await a._def.args.parseAsync(l,i).catch(p=>{throw u.addIssue(r(l,p)),u}),f=await Reflect.apply(s,this,c);return await a._def.returns._def.type.parseAsync(f,i).catch(p=>{throw u.addIssue(o(f,p)),u})})}else{let a=this;return An(function(...l){let u=a._def.args.safeParse(l,i);if(!u.success)throw new Rn([r(l,u.error)]);let c=Reflect.apply(s,this,u.data),f=a._def.returns.safeParse(c,i);if(!f.success)throw new Rn([o(c,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Rs({...this._def,args:Yr.create(t).rest(Si.create())})}returns(t){return new Rs({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Rs({args:t||Yr.create([]).rest(Si.create()),returns:n||Si.create(),typeName:se.ZodFunction,...pe(r)})}},Ka=class extends _e{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};Ka.create=(e,t)=>new Ka({getter:e,typeName:se.ZodLazy,...pe(t)});var za=class extends _e{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return z(n,{received:n.data,code:U.invalid_literal,expected:this._def.value}),ie}return{status:"valid",value:t.data}}get value(){return this._def.value}};za.create=(e,t)=>new za({value:e,typeName:se.ZodLiteral,...pe(t)});function iD(e,t){return new Ho({values:e,typeName:se.ZodEnum,...pe(t)})}var Ho=class extends _e{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return z(n,{expected:Oe.joinValues(r),received:n.parsedType,code:U.invalid_type}),ie}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),r=this._def.values;return z(n,{received:n.data,code:U.invalid_enum_value,options:r}),ie}return An(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Ho.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ho.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};Ho.create=iD;var Xa=class extends _e{_parse(t){let n=Oe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==j.string&&r.parsedType!==j.number){let o=Oe.objectValues(n);return z(r,{expected:Oe.joinValues(o),received:r.parsedType,code:U.invalid_type}),ie}if(this._cache||(this._cache=new Set(Oe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=Oe.objectValues(n);return z(r,{received:r.data,code:U.invalid_enum_value,options:o}),ie}return An(t.data)}get enum(){return this._def.values}};Xa.create=(e,t)=>new Xa({values:e,typeName:se.ZodNativeEnum,...pe(t)});var ys=class extends _e{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==j.promise&&n.common.async===!1)return z(n,{code:U.invalid_type,expected:j.promise,received:n.parsedType}),ie;let r=n.parsedType===j.promise?n.data:Promise.resolve(n.data);return An(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};ys.create=(e,t)=>new ys({type:e,typeName:se.ZodPromise,...pe(t)});var Kr=class extends _e{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:s=>{z(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){let s=o.transform(r.data,i);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return ie;let l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?ie:l.status==="dirty"?wa(l.value):n.value==="dirty"?wa(l.value):l});{if(n.value==="aborted")return ie;let a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?ie:a.status==="dirty"?wa(a.value):n.value==="dirty"?wa(a.value):a}}if(o.type==="refinement"){let s=a=>{let l=o.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ie:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?ie:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ss(s))return ie;let a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>Ss(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):ie);Oe.assertNever(o)}};
10554Kr.create=(e,t,n)=>new Kr({schema:e,typeName:se.ZodEffects,effect:t,...pe(n)});Kr.createWithPreprocess=(e,t,n)=>new Kr({schema:t,effect:{type:"preprocess",transform:e},typeName:se.ZodEffects,...pe(n)});var Hr=class extends _e{_parse(t){return this._getType(t)===j.undefined?An(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Hr.create=(e,t)=>new Hr({innerType:e,typeName:se.ZodOptional,...pe(t)});var Wo=class extends _e{_parse(t){return this._getType(t)===j.null?An(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Wo.create=(e,t)=>new Wo({innerType:e,typeName:se.ZodNullable,...pe(t)});var ja=class extends _e{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===j.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};ja.create=(e,t)=>new ja({innerType:e,typeName:se.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...pe(t)});var $a=class extends _e{_parse(t){let{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ku(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Rn(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Rn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};$a.create=(e,t)=>new $a({innerType:e,typeName:se.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...pe(t)});var Wu=class extends _e{_parse(t){if(this._getType(t)!==j.nan){let r=this._getOrReturnCtx(t);return z(r,{code:U.invalid_type,expected:j.nan,received:r.parsedType}),ie}return{status:"valid",value:t.data}}};Wu.create=e=>new Wu({typeName:se.ZodNaN,...pe(e)});var N3=Symbol("zod_brand"),Dd=class extends _e{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},Za=class extends _e{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?ie:i.status==="dirty"?(n.dirty(),wa(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ie:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new Za({in:t,out:n,typeName:se.ZodPipeline})}},Ja=class extends _e{_parse(t){let n=this._def.innerType._parse(t),r=o=>(Ss(o)&&(o.value=Object.freeze(o.value)),o);return ku(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};Ja.create=(e,t)=>new Ja({innerType:e,typeName:se.ZodReadonly,...pe(t)});function tD(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function sD(e,t={},n){return e?As.create().superRefine((r,o)=>{let i=e(r);if(i instanceof Promise)return i.then(s=>{if(!s){let a=tD(t,r),l=a.fatal??n??!0;o.addIssue({code:"custom",...a,fatal:l})}});if(!i){let s=tD(t,r),a=s.fatal??n??!0;o.addIssue({code:"custom",...s,fatal:a})}}):As.create()}var b3={object:ot.lazycreate},se;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(se||(se={}));var L3=(e,t={message:`Input not instance of ${e.name}`})=>sD(n=>n instanceof e,t),aD=Ir.create,lD=Uo.create,C3=Wu.create,P3=Vo.create,uD=Ba.create,D3=Ri.create,v3=Bu.create,x3=Ua.create,M3=Va.create,F3=As.create,G3=Si.create,k3=_o.create,w3=Uu.create,B3=gr.create,U3=ot.create,V3=ot.strictCreate,H3=Ha.create,W3=Vu.create,Y3=Wa.create,K3=Yr.create,z3=Ya.create,X3=Hu.create,j3=Ai.create,$3=Rs.create,Z3=Ka.create,J3=za.create,q3=Ho.create,Q3=Xa.create,e4=ys.create,t4=Kr.create,n4=Hr.create,r4=Wo.create,o4=Kr.createWithPreprocess,i4=Za.create,s4=()=>aD().optional(),a4=()=>lD().optional(),l4=()=>uD().optional(),u4={string:e=>Ir.create({...e,coerce:!0}),number:e=>Uo.create({...e,coerce:!0}),boolean:e=>Ba.create({...e,coerce:!0}),bigint:e=>Vo.create({...e,coerce:!0}),date:e=>Ri.create({...e,coerce:!0})};var c4=ie;function Ns(e){return e}var vd=Ns,cD=Ns,fD=Ns;var Zn=Ns,dD=Ns,NE=Ns;var TS=Ns,pD=Ns;var zr=function(e){return e[e.BOOLEAN=0]="BOOLEAN",e[e.FLOAT=1]="FLOAT",e[e.STRING=2]="STRING",e[e.ALIAS=3]="ALIAS",e[e.COLOR=4]="COLOR",e[e.EXPRESSION=5]="EXPRESSION",e[e.MAP=6]="MAP",e[e.SYMBOL_ID=7]="SYMBOL_ID",e}({}),hS=function(e){return e[e.BOOLEAN=0]="BOOLEAN",e[e.FLOAT=1]="FLOAT",e[e.STRING=2]="STRING",e[e.COLOR=3]="COLOR",e[e.MAP=4]="MAP",e[e.SYMBOL_ID=5]="SYMBOL_ID",e[e.FONT_STYLE=6]="FONT_STYLE",e[e.TEXT_DATA=7]="TEXT_DATA",e[e.IMAGE=8]="IMAGE",e[e.LINK=9]="LINK",e[e.JS_RUNTIME_ALIAS=10]="JS_RUNTIME_ALIAS",e[e.SLOT_CONTENT_ID=11]="SLOT_CONTENT_ID",e[e.KEYFRAME_TRACK_ID=12]="KEYFRAME_TRACK_ID",e[e.KEYFRAME_TRACK_PARAMETER_DATA=13]="KEYFRAME_TRACK_PARAMETER_DATA",e}({});function To(e,t){let n=null;return typeof t!="object"||"r"in t||"image"in t?n=t:t.type==="VARIABLE_ALIAS"?n=e.variableState.evaluateVariable(e.get,t.id,e.modeContext):t.type==="EXPRESSION"&&(n=f4(t,e)),n}function f4(e,t){let n=d4.find(({expressionFunction:r,resolvedType:o,argTypes:i})=>r===e.value.expressionFunction&&o===e.resolvedType&&e.value.expressionArguments.every((s,a)=>gS(s)===i[a]))?.implementation;return n?n(e.value.expressionArguments,t):(console.warn("expression type not implemented",e.value.expressionFunction),null)}function st(e,t,n,r){return{resolvedType:t,argTypes:n,implementation:r,expressionFunction:e}}var d4=[st(qe.ADDITION,"FLOAT",["FLOAT","FLOAT"],p4),st(qe.SUBTRACTION,"FLOAT",["FLOAT","FLOAT"],m4),st(qe.MULTIPLY,"FLOAT",["FLOAT","FLOAT"],E4),st(qe.DIVIDE,"FLOAT",["FLOAT","FLOAT"],_4),st(qe.AND,"BOOLEAN",["BOOLEAN","BOOLEAN"],T4),st(qe.OR,"BOOLEAN",["BOOLEAN","BOOLEAN"],h4),st(qe.NOT,"BOOLEAN",["BOOLEAN"],O4),st(qe.EQUALS,"BOOLEAN",["FLOAT","FLOAT"],I4),st(qe.NOT_EQUAL,"BOOLEAN",["FLOAT","FLOAT"],g4),st(qe.EQUALS,"BOOLEAN",["BOOLEAN","BOOLEAN"],S4),st(qe.NOT_EQUAL,"BOOLEAN",["BOOLEAN","BOOLEAN"],R4),st(qe.EQUALS,"BOOLEAN",["STRING","STRING"],A4),st(qe.NOT_EQUAL,"BOOLEAN",["STRING","STRING"],y4),st(qe.LESS_THAN,"BOOLEAN",["FLOAT","FLOAT"],N4),st(qe.LESS_THAN_OR_EQUAL,"BOOLEAN",["FLOAT","FLOAT"],b4),st(qe.GREATER_THAN,"BOOLEAN",["FLOAT","FLOAT"],L4),st(qe.GREATER_THAN_OR_EQUAL,"BOOLEAN",["FLOAT","FLOAT"],C4),st(qe.STRINGIFY,"STRING",["FLOAT"],P4),st(qe.STRINGIFY,"STRING",["BOOLEAN"],D4),st(qe.STRINGIFY,"STRING",["STRING"],v4),st(qe.ADDITION,"STRING",["STRING","STRING"],x4),st(qe.ADDITION,"STRING",["FLOAT","STRING"],M4),st(qe.ADDITION,"STRING",["STRING","FLOAT"],F4),st(qe.ADDITION,"STRING",["BOOLEAN","STRING"],G4),st(qe.ADDITION,"STRING",["STRING","BOOLEAN"],k4)];function p4(e,t){return At(e,t,(n,r)=>n+r,"number")}function m4(e,t){return At(e,t,(n,r)=>n-r,"number")}function E4(e,t){return At(e,t,(n,r)=>n*r,"number")}function _4(e,t){return At(e,t,(n,r)=>r===0?null:n/r,"number")}function T4(e,t){return At(e,t,(n,r)=>n&&r,"boolean")}function h4(e,t){return At(e,t,(n,r)=>n||r,"boolean")}function O4(e,t){let n=To(t,e[0]);return typeof n!="boolean"?bE(n,"boolean"):!n}function I4(e,t){return At(e,t,(n,r)=>n===r,"number")}function g4(e,t){return At(e,t,(n,r)=>n!==r,"number")}function S4(e,t){return At(e,t,(n,r)=>n===r,"boolean")}function R4(e,t){return At(e,t,(n,r)=>n!==r,"boolean")}function A4(e,t){return At(e,t,(n,r)=>n===r,"string")}function y4(e,t){return At(e,t,(n,r)=>n!==r,"string")}function N4(e,t){return At(e,t,(n,r)=>n<r,"number")}function b4(e,t){return At(e,t,(n,r)=>n<=r,"number")}function L4(e,t){return At(e,t,(n,r)=>n>r,"number")}function C4(e,t){return At(e,t,(n,r)=>n>=r,"number")}function OS(e){return Math.ceil(e)===e?String(e):e.toFixed(2)}function P4(e,t){return IS(e,t,n=>OS(n),"number")}function D4(e,t){return IS(e,t,n=>String(n),"boolean")}function v4(e,t){return IS(e,t,n=>n,"string")}function x4(e,t){return At(e,t,(n,r)=>n+r,"string")}function M4(e,t){return At(e,t,(n,r)=>OS(n)+r,"number","string")}
10554function F4(e,t){return At(e,t,(n,r)=>n+OS(r),"string","number")}function G4(e,t){return At(e,t,(n,r)=>String(n)+r,"boolean","string")}function k4(e,t){return At(e,t,(n,r)=>n+String(r),"string","boolean")}function IS(e,t,n,r){let o=To(t,e[0]);return typeof o!==r?bE(o,r):n(o)}function At(e,t,n,r,o){let i=To(t,e[0]),s=To(t,e[1]);return typeof i!==r?bE(i,r):typeof s!==(o??r)?bE(s,o??r):n(i,s)}function bE(e,t){return console.warn(`Expected variable of type ${t}, but got variable ${JSON.stringify(e)} of type ${typeof e}`),null}function gS(e){let t=typeof e;if(t==="boolean")return"BOOLEAN";if(t==="number")return"FLOAT";if(t==="string")return"STRING";if(typeof e=="object"){if("image"in e)return"IMAGE";if("r"in e)return"COLOR";if(e.type==="EXPRESSION"||e.type==="VARIABLE_ALIAS")return e.resolvedType||null}return null}function Yu(e){switch(e.type){case zr.BOOLEAN:case zr.FLOAT:case zr.STRING:case zr.COLOR:return e.value;case zr.ALIAS:return{type:"VARIABLE_ALIAS",id:e.value,resolvedType:mD(e.resolvedType)};case zr.EXPRESSION:return{type:"EXPRESSION",value:{expressionFunction:e.value.expressionFunction,expressionArguments:e.value.expressionArguments.map(t=>Yu(t))},resolvedType:mD(e.resolvedType)};default:return null}}function mD(e){return e===0?"BOOLEAN":e===1?"FLOAT":e===2?"STRING":e===3?"COLOR":null}var yi,w4=(yi=class{activeHoverRects=new Map;hoverRectCounter=0;constructor(){}static getInstance(){}showHoverTargetRectangle(t,n){let r=`hover-debug-rect-${this.hoverRectCounter++}`,o=document.createElement("div");o.style.position="fixed",o.style.left=`${t.left}px`,o.style.top=`${t.top}px`,o.style.width=`${t.width}px`,o.style.height=`${t.height}px`,o.style.border=`2px solid ${n||"red"}`,o.style.pointerEvents="none",o.style.zIndex="9999",o.style.opacity="0.5",o.style.transition="opacity 200ms ease-out",document.body.appendChild(o);let i=window.setTimeout(()=>{o.style.opacity="0",window.setTimeout(()=>{document.body.removeChild(o),this.activeHoverRects.delete(r)},200)},200);return this.activeHoverRects.set(r,{id:r,element:o,timeoutId:i}),r}},Do(yi,"instance"),yi),LE=()=>w4.getInstance();var SS=e=>!1,ho=e=>{if(!SS(e))return;let t=e.renderOptions.testFlags?.animationProgress??.5;return{ease:()=>t,onAnimationComplete:()=>{}}},B4=["transitionToVisible","transitionToExit","transitionToAndFromHover","transitionToAndFromPress","transitionToAndFromFocus","transitionBasedOnScrollDirection","scrollTransformTransition"],ED=(e,t)=>{let n=ho(e);if(!n)return;let r={ease:n.ease,duration:1e4};B4.forEach(o=>{o in t&&t[o]!==void 0&&(t[o]=r)})};var _D=new Set(["vectorNetworkBlob","version"]);function Ge(e,t,n=!1,r=!1,o=!1){if(e===t||r&&(Array.isArray(e)&&e.length===0&&t===void 0||Array.isArray(t)&&t.length===0&&e===void 0||!e&&!t))return!0;let i=typeof e;if(typeof t!==i)return!1;if(i==="number")return Number.isNaN(e)||Number.isNaN(t)?r:n?!0:r?e-t<.01&&e-t>-.01:e===t;if(i!=="object")return e===t;if(e===null!=(t===null))return!1;if(e===null)return!0;if(Array.isArray(e)!==Array.isArray(t))return!1;if(Array.isArray(e))return e.length===t.length&&e.every((l,u)=>Ge(l,t[u],n,r,o));let s=Object.keys(e),a=Object.keys(t);return o&&(s=s.filter(l=>e[l]!==void 0),a=a.filter(l=>t[l]!==void 0)),s.length!==a.length||(r&&(s=s.filter(l=>!_D.has(l)),a=a.filter(l=>!_D.has(l))),s.sort(),a.sort(),!s.every((l,u)=>l===a[u]))?!1:s.every(l=>Ge(e[l],t[l],n,r,o))}var xs=x(Y());var te=function(e){return e.LAYOUT="layout",e.INSTANCE_SUBTREE="instanceSubtree",e.NONE="none",e}({});function U4(e){let t=[...e];if(!e.length)return t;if(e[0].position!==0){let n={...e[e.length-1]};n.position-=1,t.unshift(n)}if(e[e.length-1].position!==1){let n={...e[0]};n.position+=1,t.push(n)}return t}function V4(e,t){let n=Ti({stops:U4(e.gradientStops),epsilon:.01,recursionLimit:5,targetInterpolation:_i,actualInterpolation:mE});return` 10555 <div 10556 xmlns='http://www.w3.org/1999/xhtml' 10557 style=' 10558 background-image: conic-gradient( 10559 from 90deg, 10560 ${TE(n,t)} 10561 ); 10562 opacity:${e.opacity??1}; 10563 height: 100%; 10564 width: 100%; 10565 '></div> 10566 `}function H4(e){let{size:t,paint:n,renderOptions:r}=e,{uvToUnitGradient:o,unitGradientToShape:i}=hi({size:t,gradientTransform:n.gradientTransform}),s=hE(o),a=Math.max(s.x,s.y);return` 10567 <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 ${Me(t.width)} ${Me(t.height)}' preserveAspectRatio='none'> 10568 <g transform='${Os(i)}'> 10569 <foreignObject x='${Me(-a)}' y='${Me(-a)}' width='${Me(2*a)}' height='${Me(2*a)}'> 10570 ${V4(n,r)} 10571 </foreignObject> 10572 </g> 10573 </svg> 10574 `}var Ku=class{renderOptions;paint;size;constructor(t,n=Ht,r,o){this.renderOptions=o,this.paint=t,this.size=r}get value(){let t=H4({size:this.size,paint:this.paint,renderOptions:this.renderOptions});return gs(t)}equals(t){return this.value===t.value}};function W4(e){let{size:t,paint:n}=e,r=Ti({stops:n.gradientStops.map(a=>({...a})),epsilon:.01,recursionLimit:5,targetInterpolation:_i,actualInterpolation:Lu}),{uvToUnitGradient:o,unitGradientToShape:i}=hi({size:t,gradientTransform:n.gradientTransform}),s=hE(o);return` 10575 <svg viewBox='0 0 ${Me(t.width)} ${Me(t.height)}' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'> 10576 <g transform='${Os(i)}' opacity='${n.opacity??1}'> 10577 <rect height='${Me(s.y)}' width='${Me(s.x)}' fill='url(#grad)' id='quad' shape-rendering='crispEdges' /> 10578 <use href='#quad' transform='scale(1 -1)' /> 10579 <use href='#quad' transform='scale(-1 1)' /> 10580 <use href='#quad' transform='scale(-1 -1)' /> 10581 </g> 10582 <defs> 10583 <linearGradient id='grad' gradientUnits='userSpaceOnUse' x2='${.5*Wt}' y2='${.5*Wt}'> 10584 ${Cu(r)} 10585 </linearGradient> 10586 </defs> 10587 </svg> 10588 `}var zu=class{paint;size;constructor(t,n=Ht,r){this.size=r,this.paint=t}get value(){let t=W4({size:this.size,paint:this.paint});return gs(t)}equals(t){return this.value===t.value}};var Xu=class{paint;size;constructor(t,n=Ht,r){this.paint=t,this.size=r}get value(){let t=Ti({stops:this.paint.gradientStops.map(o=>({...o})),epsilon:.01,recursionLimit:5,targetInterpolation:_i,actualInterpolation:Lu}),{unitGradientToShape:n}=hi({size:this.size,gradientTransform:this.paint.gradientTransform}),r=` 10589 <svg viewBox='0 0 ${Me(this.size.width)} ${Me(this.size.height)}' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'> 10590 <rect x='0' y='0' height='100%' width='100%' fill='url(#grad)' opacity='${this.paint.opacity??1}' /> 10591 <defs> 10592 <radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='${Wt}' gradientTransform='${Os(n)}'> 10593 ${Cu(t)} 10594 </radialGradient> 10595 </defs> 10596 </svg> 10597 `;return gs(r)}equals(t){return this.value===t.value}};function CE(e,t){return e instanceof Oi||e instanceof Xu||e instanceof Ku||e instanceof zu||e instanceof ee?e.value:e instanceof W?e.toStyleValue({forTailwind:t}):e}var an=1e-4;function Ni(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}function He(e,t,n=1e-6){return Math.abs(e-t)<n}function DE(e){return Object.freeze(e)}function RS(e){return e.type==="WEBPAGE"}function Yt(e,t){if(e===void 0)return t;let n=Od(t),r=Od(e);return r.multiply(n),Ft(nP(r))}function Ft(e){return[[ht(e[0][0]),ht(e[0][1]),ht(e[0][2])],[ht(e[1][0]),ht(e[1][1]),ht(e[1][2])]]}function Jn(e){return`${v(e*100,2)}%`}var PE=[[1,0,0],[0,1,0]];function Xr(e){if(e instanceof ee||!e)return PE;let n=/matrix\((.*)\)/.exec(e);if(!n)return PE;let r=n[1].split(",").map(o=>parseFloat(o));return r.length!==6?PE:[[r[0],r[2],r[4]],[r[1],r[3],r[5]]]}function xd(e){let t=e.unit==="PERCENT"?ht(e.value,.1):e.value,n=v(t,2);return n===0?"0":`${n}${e.unit==="PERCENT"?"%":"px"}`}function qa(){}var TD=()=>Promise.resolve();
10597function vE(e,t,n){let r=e(t.roots).map(i=>t.nodeById.get(i)),o=[];return n&&(o=r.filter(i=>i.name===n)),o.length>0?o:r}function hD(e){return"children"in e&&!!e.children&&e.children.length>0}function ju(e){return e.optimizeForTailwindConversion}function OD(e){let{background:t,backgroundColor:n,backgroundImage:r,backgroundPosition:o,backgroundSize:i,border:s,borderBottom:a,borderBottomColor:l,borderBottomLeftRadius:u,borderBottomRightRadius:c,borderBottomWidth:f,borderColor:d,borderEndEndRadius:p,borderEndStartRadius:_,borderLeft:T,borderLeftColor:h,borderLeftWidth:m,borderRadius:E,borderRight:O,borderRightColor:I,borderRightWidth:g,borderStartEndRadius:S,borderStartStartRadius:A,borderStyle:R,borderTop:N,borderTopColor:L,borderTopLeftRadius:b,borderTopRightRadius:M,borderTopWidth:w,borderWidth:B,boxShadow:y,caretColor:K,clipPath:C,color:G,filter:P,font:X,fontSize:oe,fontSizeAdjust:ve,fontStretch:be,fontWeight:Le,fontVariationSettings:Ce,letterSpacing:Ue,lineHeight:ae,opacity:le,outline:Re,outlineColor:Ye,outlineWidth:de,textDecoration:Pt,textDecorationColor:tt,textDecorationThickness:ft,textEmphasis:xe,textEmphasisColor:dt,textShadow:me,visibility:_n,wordSpacing:no,...Vn}=e;return{motionStyles:{background:t,backgroundColor:n,backgroundImage:r,backgroundPosition:o,backgroundSize:i,border:s,borderBottom:a,borderBottomColor:l,borderBottomLeftRadius:u,borderBottomRightRadius:c,borderBottomWidth:f,borderColor:d,borderEndEndRadius:p,borderEndStartRadius:_,borderLeft:T,borderLeftColor:h,borderLeftWidth:m,borderRadius:E,borderRight:O,borderRightColor:I,borderRightWidth:g,borderStartEndRadius:S,borderStartStartRadius:A,borderStyle:R,borderTop:N,borderTopColor:L,borderTopLeftRadius:b,borderTopRightRadius:M,borderTopWidth:w,borderWidth:B,boxShadow:y,caretColor:K,clipPath:C,color:G,filter:P,font:X,fontSize:oe,fontSizeAdjust:ve,fontStretch:be,fontWeight:Le,fontVariationSettings:Ce,letterSpacing:Ue,lineHeight:ae,opacity:le,outline:Re,outlineColor:Ye,outlineWidth:de,textDecoration:Pt,textDecorationColor:tt,textDecorationThickness:ft,textEmphasis:xe,textEmphasisColor:dt,textShadow:me,visibility:_n,wordSpacing:no},cssStyles:Vn}}var AS=-1,Zu=(e,t,n,r,o,i)=>{if(e===te.NONE)return{motionTransitionProps:void 0,cssStyles:n};let s=e===te.INSTANCE_SUBTREE,{motionStyles:a,cssStyles:l}=s?OD(n):{motionStyles:{},cssStyles:n},u=ID(a),{correctlyTypedStyles:c,incorrectlyTypedStyles:f}=gD(u),d=s?{[Ae.VISIBLE_SMART_ANIMATE]:_=>$u(c,t,_,o),[Ae.HIDDEN_SMART_ANIMATE]:_=>$u(c,0,_,o),...r}:r;return{motionTransitionProps:{...s?{animate:Ae.VISIBLE_SMART_ANIMATE,exit:Ae.HIDDEN_SMART_ANIMATE,variants:d}:{},...o?{...s?{initial:Ae.HIDDEN_SMART_ANIMATE,onAnimationComplete:i}:{},onLayoutAnimationComplete:i,transition:{duration:o.durationSeconds,...o.motionAnimationData}}:{transition:{layout:{duration:0}}}},cssStyles:{...l,...f}}};function $u(e,t,n,r){let o=n?.durationSeconds??r?.durationSeconds??0,i=n?.motionAnimationData??r?.motionAnimationData??{},s={};for(let[l,u]of Object.entries(e))s[l]=CE(u,!1);let a=n?.perPropertyTransitions??r?.perPropertyTransitions;return{...s,opacity:t,transition:a?{duration:o,...i,...a}:{duration:o,...i}}}function ID(e){let t,n={...e};for(t in n){let r=n[t];r==null&&delete n[t]}return n}function gD(e){let{mask:t,alignmentBaseline:n,fillRule:r,strokeLinecap:o,strokeLinejoin:i,...s}=e;return{correctlyTypedStyles:s,incorrectlyTypedStyles:{mask:t,alignmentBaseline:n,fillRule:r,strokeLinecap:o,strokeLinejoin:i}}}function bi(e,t,n,r){return e!==te.NONE?{layout:r?"position":!0,layoutDependency:t?.id??AS,transformTemplate:n?Ju(n):void 0}:void 0}function SD(e,t){return{mode:"popLayout",custom:e,onExitComplete:t}}function ln(e){return e?.onTransitionEnd??qa}function RD(e,t,n,r){if(n)return te.NONE;let o=r?.smartAnimateType??te.NONE;return e?te.INSTANCE_SUBTREE:o!==te.NONE?o:t?te.LAYOUT:te.NONE}var Yo=(e,t)=>Boolean(e===te.INSTANCE_SUBTREE&&t),AD=(e,t,n,r)=>{let o=ID(e),{correctlyTypedStyles:i}=gD(o),s={[Ae.VISIBLE_SMART_ANIMATE]:l=>$u(i,1,l,n),[Ae.HIDDEN_SMART_ANIMATE]:l=>$u({},0,l,n)};return{motionTransitionProps:{animate:t?Ae.VISIBLE_SMART_ANIMATE:"",exit:Ae.HIDDEN_SMART_ANIMATE,variants:s,...n?{initial:Ae.HIDDEN_SMART_ANIMATE,onAnimationComplete:r,onLayoutAnimationComplete:r,transition:{duration:n.durationSeconds,...n.motionAnimationData}}:{transition:{duration:0}}},cssStyles:{}}},yD=(e,t,n)=>{if(e===te.NONE)return{motionTransitionProps:void 0,cssStyles:{}};let r=e===te.INSTANCE_SUBTREE,o={[Ae.VISIBLE_SMART_ANIMATE]:s=>$u({},1,s,t),[Ae.HIDDEN_SMART_ANIMATE]:s=>$u({},0,s,t)};return{motionTransitionProps:{...r?{animate:Ae.VISIBLE_SMART_ANIMATE,exit:Ae.HIDDEN_SMART_ANIMATE,variants:o}:{},...t?{...r?{initial:Ae.HIDDEN_SMART_ANIMATE,onAnimationComplete:n}:{},onLayoutAnimationComplete:n,transition:{duration:t.durationSeconds,...t.motionAnimationData}}:{transition:{duration:0}}},cssStyles:{}}};var yS={[It.NORMAL]:void 0,[It.PASS_THROUGH]:void 0,[It.DARKEN]:"darken",[It.MULTIPLY]:"multiply",[It.LINEAR_BURN]:void 0,[It.COLOR_BURN]:"color-burn",[It.LIGHTEN]:"lighten",[It.SCREEN]:"screen",[It.LINEAR_DODGE]:"plus-lighter",[It.COLOR_DODGE]:"color-dodge",[It.OVERLAY]:"overlay",[It.SOFT_LIGHT]:"soft-light",[It.HARD_LIGHT]:"hard-light",[It.DIFFERENCE]:"difference",[It.EXCLUSION]:"exclusion",[It.HUE]:"hue",[It.SATURATION]:"saturation",[It.COLOR]:"color",[It.LUMINOSITY]:"luminosity"};function qu(e){if(e)return yS[e]}var NS=class{paint;constructor(t){this.paint=t}},Y4=e=>{let t=["backgroundSize","backgroundPosition","backgroundRepeat"],n={backgroundImage:"none",backgroundSize:"auto auto",backgroundPosition:"top left",backgroundRepeat:"repeat"},r={};t.forEach(s=>{let a=e.map(l=>l[s]);if(a.some(l=>l!==void 0)){let l=a.map(c=>c??n[s]),u=l.every(c=>c===l[0]);r[s]=u?l[0]:l.join(",")}});let o=e.map(s=>s.backgroundImage);if(o.some(s=>
10597s!==void 0)){let s=o.map(l=>l===void 0?n.backgroundImage:l instanceof Oi||l instanceof Xu||l instanceof Ku||l instanceof zu?l.value:l),a=s.every(l=>l===s[0]);r.backgroundImage=a?o[0]:s.join(", ")}let i=e.find(s=>s.backgroundColor)?.backgroundColor;return i!==void 0&&(r.backgroundColor=i),r},K4=(e,t)=>{if(e.hasBlendMode||t.hasBlendMode||e.useImageTag||t.useImageTag||e.isCustomFill||t.isCustomFill)return!1;let n=e.uniqueTypes.has("IMAGE"),r=t.uniqueTypes.has("IMAGE");if(n!==r&&(e.opacity!==void 0||t.opacity!==void 0))return!1;let o=e.uniqueTypes.size===1&&n,i=t.uniqueTypes.size===1&&r;return!(o&&i&&e.opacity!==t.opacity)};function xE(e=[],t,n,r,o){if(!e.length)return[];let i=[];return e.filter(a=>a.visible!==!1).forEach(a=>{let l=X4(a,t,n,r,o);if(!l)return;let u=a.blendMode&&yS[a.blendMode],c=z4(a),f={hasBlendMode:!!u,useImageTag:ND(l),isCustomFill:l instanceof NS,uniqueTypes:new Set([a.type]),opacity:c},d=i[i.length-1],p=d?.comparator;!!d&&p&&K4(p,f)?(d.backgrounds.push(l),p.uniqueTypes.add(a.type)):i.push({backgrounds:[l],blendMode:u,opacity:c,comparator:f})}),i.map(({backgrounds:a,blendMode:l,opacity:u})=>{if(a[0]instanceof NS)return{backgroundStyles:{},needsBackgroundDiv:!0,customFill:a[0].paint};let{optimizeForTailwindConversion:c}=o.renderOptions,f=a.length===1&&ND(a[0]),d,p,_,T=a.find(m=>m instanceof bD);if(T){a.length>1&&console.warn("Multiple video fills found in background group. Only the first video fill will be used.");let m=T.value;d=m.styles,_=m.videoProps}else if(f){let m=a[0].value;d=m.styles,p=m.imageProps}else{let m=a.reverse().map((E,O)=>{if(E instanceof xt&&a.length>1&&(c||O!==a.length-1)&&(E=Oi.fromColor(E,o.renderOptions)),E instanceof bS)return E.value.styles;if(E instanceof Oi||E instanceof Xu||E instanceof Ku||E instanceof zu)return{backgroundImage:E};if(E instanceof xt)return{backgroundColor:E.value};throw new q("Unsupported background type")});d=Y4(m)}let h=!!p||!!_||u!==void 0||l!==void 0&&Boolean(r.hasChildren);return l!==void 0&&(d.mixBlendMode=l),u!==void 0&&(d.opacity=u),{backgroundStyles:d,imageProps:p,videoProps:_,needsBackgroundDiv:h}})}function z4(e){if((e.type==="VIDEO"||e.type==="IMAGE")&&e.opacity!==void 0&&e.opacity!==1)return v(e.opacity)}function X4(e,t,n,r,o){let{type:i}=e,{renderOptions:s}=o,{shouldOutputVariables:a,codeSyntaxLanguage:l}=s,u=Ht;if(i==="PATTERN")return null;if(i==="CUSTOM")return!s.shouldOutputCustomEffects||!e.customEffectId||!e.visible?null:new NS(e);if(i==="SOLID")return e.color?new xt(e.color,s,e.opacity,u,e.boundVariables?.color?.resolvedName,l&&e.boundVariables?.color?.resolvedCodeSyntax?.[l]):null;if(i==="VIDEO")return $4(e,t,r);if(i==="IMAGE")return j4(e,t,r.disableImageTag,o);if(Fu(e)){let{gradientStops:c,transform:f,opacity:d}=e,p=c[0]?.color,_=c[0]?.boundVariables?.color?.resolvedName;if(p&&c.every(m=>new xt(m.color,s).equals(new xt(p,s)))&&(!a||c.every(m=>m.boundVariables?.color?.resolvedName===_)))return new xt(p,s,d,u,l&&c[0]?.boundVariables?.color?.resolvedCodeSyntax?.[l]);let T={gradientTransform:f,gradientStops:c,opacity:d},{preferCssGradients:h}=o.renderOptions;switch(i){case"GRADIENT_LINEAR":return new Oi(T,u,n,h?Ma.CSS:Ma.SVG,s);case"GRADIENT_RADIAL":return new Xu(T,u,n);case"GRADIENT_ANGULAR":return new Ku(T,u,n,s);case"GRADIENT_DIAMOND":return new zu(T,u,n);default:Fe(i)}}throw new q(`Unknown paint type: ${i}`)}var bS=class{paint;image;disableImageTag;websiteContext;constructor(t,n,r,o){this.paint=t,this.image=n,this.disableImageTag=r,this.websiteContext=o}useImageTag(){return this.paint.scaleMode!=="TILE"&&!this.disableImageTag}get value(){let{paint:t,image:n}=this,{disableImageOptimization:r}=this.websiteContext.renderOptions,o=this.websiteContext.getAssetURL,s={backgroundImage:`url("${o(n.url)}")`,backgroundRepeat:"no-repeat"},a;switch(t.scaleMode){case"FILL":s.backgroundSize="cover",s.backgroundPosition="center";break;case"FIT":s.backgroundSize="contain",s.backgroundPosition="center";break;case"STRETCH":{let{imageTransform:l}=t;if(!l)s.backgroundSize="100% 100%",s.backgroundPosition="bottom";else{let c=LD(l),{widthPercent:f,heightPercent:d}=c;if(this.useImageTag())a=c;else{s.backgroundSize=`${Jn(f)} ${Jn(d)}`;let p=l[0][0]===1?0:-l[0][2]/(l[0][0]-1),_=l[1][1]===1?0:-l[1][2]/(l[1][1]-1);s.backgroundPosition=`${Jn(p)} ${Jn(_)}`}}break}case"TILE":{let l=t.scalingFactor||1,u={width:n.size.x||100,height:n.size.y||100},c=u.width*l,f=u.height*l,d=`${c}px`,p=`${f}px`;if(!r){let _=Math.min(u.width,c*3),T=`url(${o(n.url,{width:c})}) 1x`;for(let h=2;c*h<=_;h++)T+=`, url(${o(n.url,{width:c*h})}) ${h}x`;s.backgroundImage=`image-set(${T})`}s.backgroundSize=t.rotation%360===0||t.rotation%360===180?`${d} ${p}`:`${p} ${d}`,s.backgroundPosition="top left",delete s.backgroundRepeat;break}default:Fe(t.scaleMode)}if(this.useImageTag()){let l={url:n.url,size:n.size,cropDivInfo:a},{backgroundImage:u,backgroundRepeat:c,backgroundSize:f,backgroundPosition:d,...p}=s,_={...p};return d!=="center"&&(_.objectPosition=d),f!=="100% 100%"&&(_.objectFit=f),{styles:_,imageProps:l}}return{styles:s}}};function ME(e){return e.gifRef||e.imageRef}var j4=(e,t,n,r)=>{let o=t?.[ME(e)];return o.type,new bS(e,o,n,r)},ND=e=>
10597e instanceof bS&&e.useImageTag(),bD=class{paint;video;isDecorative;constructor(t,n,r){this.paint=t,this.video=n,this.isDecorative=r.isDecorativeImage||!1}get value(){let{paint:t,video:n}=this,r={},o;switch(t.scaleMode){case"FIT":r.objectFit="contain";break;case"FILL":r.objectFit="cover";break;case"STRETCH":{let{imageTransform:s}=t;s?o=LD(s):r.objectFit="contain";break}case"TILE":break}let i={url:n.url,hash:t.videoRef,autoplay:t.autoplay??!1,mediaLoop:t.mediaLoop??!1,muted:t.muted??!1,showControls:t.showControls??!1,cropDivInfo:o,isDecorative:this.isDecorative};return{styles:r,videoProps:i}}},$4=(e,t,n)=>{let r=t?.[e.videoRef];return r.type,new bD(e,r,n)},LD=e=>{let t=1/(e[0][0]||1),n=1/(e[1][1]||1),r=-e[0][2]/(e[0][0]||1),o=-e[1][2]/(e[1][1]||1);return{widthPercent:t,heightPercent:n,leftPercent:r,topPercent:o}};function LS(e){let t="fills"in e?e.fills:void 0;return t!=null&&t.some(n=>n.visible!==!1&&n.opacity!==0&&(n.type!=="SOLID"||n.color.a!==0))}function DD(e,t){let n="effects"in e?e.effects??[]:[],r=t.length===0?n:[...t,...n];if(LS(e))return{ownEffects:r,childEffects:[]};let o=[],i=[];for(let s of r)s.type==="INNER_SHADOW"?i.push(s):o.push(s);return{ownEffects:o,childEffects:i}}function FE(e){return!("effects"in e)||!e.effects?[]:e.effects.filter(t=>t.type==="CUSTOM"&&t.visible!==!1&&!!t.customEffectId)}function Z4(e){return FE(e).length>0}var CD=new Set(["DROP_SHADOW","LAYER_BLUR","BACKGROUND_BLUR"]);function bs(e,t){let n="effects"in e?e.effects??[]:[];return Z4(e)?t?n.filter(r=>CD.has(r.type)):n.filter(r=>!CD.has(r.type)):(Te(!t,"custom effect wrapper only exists when custom effect exists"),n)}function CS(e,t){return DD(e,t??[]).ownEffects}function Md(e,t){let n=DD(e,t??[]).childEffects;return n.length>0?n:void 0}function GE(e,t=[],n){return{boxShadow:J4(e,t,n),filter:GD(t,n).filter,backdropFilter:xS(t,n).backdropFilter}}function J4(e,t,n){return[...t].reverse().map(o=>{if(o.type==="DROP_SHADOW")return vD(e,[o],n).boxShadow;if(o.type==="INNER_SHADOW")return DS(e,[o],n).boxShadow}).filter(o=>!!o).join(",")||void 0}function vD(e,t,n){let{codeSyntaxLanguage:r,shouldOutputVariables:o}=n;return{boxShadow:[...t].reverse().map(s=>{if(s.type!=="DROP_SHADOW")return;let a=v(s.offset.x),l=v(s.offset.y),u=v(s.radius),c=v(s.spread||0),f=`${a}px`,d=`${l}px`,p=`${u}px`,_=`${c}px`,T=xt.fromRGBA(s.color,n,s.boundVariables?.color?.resolvedName,r&&s.boundVariables?.color?.resolvedCodeSyntax?.[r]).value;return o&&(f=Pe(r&&s.boundVariables?.offsetX?.resolvedCodeSyntax?.[r],s.boundVariables?.offsetX?.resolvedName,a,n)??f,d=Pe(r&&s.boundVariables?.offsetY?.resolvedCodeSyntax?.[r],s.boundVariables?.offsetY?.resolvedName,l,n)??d,p=Pe(r&&s.boundVariables?.radius?.resolvedCodeSyntax?.[r],s.boundVariables?.radius?.resolvedName,u,n)??p,_=Pe(r&&s.boundVariables?.spread?.resolvedCodeSyntax?.[r],s.boundVariables?.spread?.resolvedName,c,n)??_),PS(e)||(_="0px"),`${f} ${d} ${p} ${_} ${T}`}).filter(s=>!!s).join(",")||void 0}}var xD=2;function q4(e){return e/xD}function Q4(e,t){let{codeSyntaxLanguage:n,shouldOutputVariables:r}=t;return{filter:[...e].reverse().map(s=>{if(s.type!=="DROP_SHADOW")return;let a=v(s.offset.x),l=v(s.offset.y),u=v(s.radius),c=`${a}px`,f=`${l}px`,d=`${v(q4(s.radius))}px`,p=xt.fromRGBA(s.color,t,s.boundVariables?.color?.resolvedName,n&&s.boundVariables?.color?.resolvedCodeSyntax?.[n]).value;return r&&(c=Pe(n&&s.boundVariables?.offsetX?.resolvedCodeSyntax?.[n],s.boundVariables?.offsetX?.resolvedName,a,t)??c,f=Pe(n&&s.boundVariables?.offsetY?.resolvedCodeSyntax?.[n],s.boundVariables?.offsetY?.resolvedName,l,t)??f,d=Is(n&&s.boundVariables?.radius?.resolvedCodeSyntax?.[n],s.boundVariables?.radius?.resolvedName,u,t)?.divide(W.number(xD)).toString({forTailwind:t.optimizeForTailwindConversion})??d),`drop-shadow(${c} ${f} ${d} ${p})`}).filter(s=>!!s).join(" ")||void 0}}function eK(e,t){let n=t.filter(p=>p.type==="DROP_SHADOW");if(n.length===0)return!1;let r=LS(e),o="fills"in e?e.fills:void 0,i=r&&o!=null&&!o.some(p=>p.visible!==!1&&p.opacity===1&&(p.type==="SOLID"&&p.color.a===1||Fu(p)&&p.gradientStops.every(_=>_.color.a===1))),s="strokes"in e?e.strokes:void 0,a=s!=null&&s.some(p=>p.visible!==!1&&p.opacity!==0&&(p.type!=="SOLID"||p.color.a!==0)),l=("clipsContent"in e?!e.clipsContent:!1)&&e.materializedChildNodeProps?.length,u=n.some(p=>p.spread!==0),c=n[0].color,f=!n.some(p=>!He(p.color.r,c.r)||!He(p.color.g,c.g)||!He(p.color.b,c.b)),d=n.every(p=>!p.showShadowBehindNode);return r&&!l||(!r&&a||i)&&d?!1:!!(!u&&f)}
10597function MD(e,t,n){let r=GD(t,n);if(eK(e,t)){let o=Q4(t,n).filter,i=[r?.filter,o].filter(Boolean);return{boxShadow:void 0,filter:i.length>0?i.join(" "):void 0}}else return{boxShadow:vD(e,t,n).boxShadow,filter:r?.filter}}function PS(e){return e.type==="RECTANGLE"?!0:e.type==="FRAME"||e.type==="SLOT"?e.clipsContent&&LS(e):!1}function tK(e){return e.some(t=>(t.type==="DROP_SHADOW"||t.type==="INNER_SHADOW")&&t.spread!==0)}function FD(e){"effects"in e&&e.effects&&tK(e.effects)&&!PS(e)&&(e.effects=e.effects.map(t=>t.type==="DROP_SHADOW"||t.type==="INNER_SHADOW"?{...t,spread:0}:t))}function DS(e,t,n){let{codeSyntaxLanguage:r,shouldOutputVariables:o}=n;return{boxShadow:[...t].reverse().map(s=>{if(s.type!=="INNER_SHADOW")return;let a=v(s.offset.x),l=v(s.offset.y),u=v(s.radius),c=v(s.spread||0),f=`${a}px`,d=`${l}px`,p=`${u}px`,_=`${c}px`,T=xt.fromRGBA(s.color,n,s.boundVariables?.color?.resolvedName,r&&s.boundVariables?.color?.resolvedCodeSyntax?.[r]).value;return o&&(f=Pe(r&&s.boundVariables?.offsetX?.resolvedCodeSyntax?.[r],s.boundVariables?.offsetX?.resolvedName,a,n)??f,d=Pe(r&&s.boundVariables?.offsetY?.resolvedCodeSyntax?.[r],s.boundVariables?.offsetY?.resolvedName,l,n)??d,p=Pe(r&&s.boundVariables?.radius?.resolvedCodeSyntax?.[r],s.boundVariables?.radius?.resolvedName,u,n)??p,_=Pe(r&&s.boundVariables?.spread?.resolvedCodeSyntax?.[r],s.boundVariables?.spread?.resolvedName,c,n)??_),PS(e)||(_="0px"),`inset ${f} ${d} ${p} ${_} ${T}`}).filter(s=>!!s).join(",")||void 0}}var PD=2;function vS(e,t,n){let{shouldOutputVariables:r,codeSyntaxLanguage:o,optimizeForTailwindConversion:i}=n,s=`${v(t/PD)}px`;return r?Is(o&&e?.radius?.resolvedCodeSyntax?.[o],e?.radius?.resolvedName,v(t),n)?.divide(W.number(PD)).toString({forTailwind:i})??s:s}function GD(e,t){let n=e.find(o=>o.type==="LAYER_BLUR");return n?{filter:`blur(${vS(n.boundVariables,n.radius,t)})`}:{filter:void 0}}function xS(e,t){let n=e.find(o=>o.type==="BACKGROUND_BLUR");return n?{backdropFilter:`blur(${vS(n.boundVariables,n.radius,t)})`}:{backdropFilter:void 0}}function kD(e=[],t){let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t;return e.reduce((o,i)=>{if(i.type==="INNER_SHADOW"||i.type==="BACKGROUND_BLUR")return o;if(i.type==="DROP_SHADOW"){let s=v(i.offset.x),a=v(i.offset.y),l=v(i.radius),u=`${s}px`,c=`${a}px`,f=`${l}px`,d=xt.fromRGBA(i.color,t,i.boundVariables?.color?.resolvedName,r&&i.boundVariables?.color?.resolvedCodeSyntax?.[r]).value;n&&(u=Pe(r&&i.boundVariables?.offsetX?.resolvedCodeSyntax?.[r],i.boundVariables?.offsetX?.resolvedName,s,t)??u,c=Pe(r&&i.boundVariables?.offsetY?.resolvedCodeSyntax?.[r],i.boundVariables?.offsetY?.resolvedName,a,t)??c,f=Pe(r&&i.boundVariables?.radius?.resolvedCodeSyntax?.[r],i.boundVariables?.radius?.resolvedName,l,t)??f),o.textShadow=`${o.textShadow?.length?`${o.textShadow},`:""}${u} ${c} ${f} ${d}`}else if(i.type==="LAYER_BLUR"){let s=vS(i.boundVariables,i.radius,t);o.filter=`blur(${s})`}return o},{})}function wD(e,t,n){let{collectionId:r,itemId:o}=n;Te(r!==void 0,"collectionId is required for CMS binding context"),Te(o!==void 0,"itemId is required for CMS binding context");let i=e.collectionById.get(r);Te(i!==void 0,`collection with id ${r} not found in CMS Data State`);let s=i.itemById[o];Te(s!==void 0,`item with id ${o} not found in CMS Collection ${i.id}`);let a=new Map;s.fields.forEach(u=>{a.set(u.fieldSchemaId,u)});let l=i.fieldSchemas.find(u=>u.role==="slug"||u.type==="slug")?.id;return Te(l!==void 0,`slug field for item id ${o} not found in CMS Collection ${i.id}`),{item:s,fieldsBySchemaId:a,slugFieldSchemaId:l,guidToUrl:t,fieldBindingProperties:n}}function Qu(e,t){let n=e.fieldsBySchemaId.get(t.fieldSchemaId);if(n!==void 0)return n.value}function BD(e,t){return e.slugFieldSchemaId===t.fieldSchemaId}function UD(e){let t=new Date(e);return e===""||isNaN(t.getTime())?{formattedValue:e,originalValue:e}:nK(t,e)}function nK(e,t){return{formattedValue:e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour12:!0,timeZone:"UTC"}),originalValue:t}}function rK(e,t){Te(e!==null,"GUID should not be null");let n=Je(e),r=t.get(n);return Te(r!==void 0,`url not in map for GUID ${n}`),Te(r?.length>0,`url empty for GUID ${n}`),r}function VD(e,t){let n=JSON.parse(e),r=n.guid?rK(n.guid,t):n.url;Te(r!==void 0,"url is undefined");let o=n.guid?"NODE":"URL";return{url:r,type:o}}function HD(e,t){let n=`/${e}`;return{url:t.endsWith(n)&&t!==n?t:`${t}${n}`,type:"NODE"}}function MS(e){let t={type:e.type};return e.type==="NODE"?t.nodeID=e.url:t.url=e.url,t}function WD(e){let t={connectionURL:e.url,connectionType:e.type==="NODE"?"INTERNAL_NODE":"URL"};return t.connectionType==="INTERNAL_NODE"&&(t.navigationType="NAVIGATE"),t}function FS(e,t,n){let r=Qu(e,t);if(r!==void 0)return BD(e,t)?(Te(n!==void 0,`baseUrl is undefined for slug field binding on item ${e.item.id}`),HD(r,n)):VD(r,e.guidToUrl)}function oK(e,t,n){if(n.characters){if(e.type==="TEXT")return e.characters=Qu(t,n.characters)??"",!0;console.warn(`text binding unsupported for ${e.type} node ${e.id}`)}return!1}function iK(e,t,n){if(n.date)if(e.type==="TEXT"){let r=Qu(t,n.date);if(r===void 0)return e.characters="",!0;let o=UD(r);return e.characters=o.formattedValue,!0}else console.warn(`date in text binding unsupported for ${e.type} node ${e.id}`);return!1}function sK(e,t,n){if(n.hyperlink)if(e.type==="TEXT"){let r=FS(t,n.hyperlink,e.style.hyperlink?.nodeID);return r===void 0?(e.style.hyperlink=void 0,!1):(e.style.hyperlink||(e.style.hyperlink={}),Object.assign(e.style.hyperlink,MS(r)),!0)}else console.warn(`hyperlink binding unsupported for ${e.type} node ${e.id}`);return!1}function aK(e,t,n){if(n.richText)if(e.type==="CMS_RICH_TEXT"){let r=Qu(t,n.richText);return e.richText=r===void 0?"":r,!0}else console.warn(`rich text binding unsupported for ${e.type} node ${e.id}`);return!1}function lK(e,t){let n=t.fieldBindingProperties.boundCmsVariables;if(!n)return!1;let r=[oK,iK,sK,aK],o=!1;for(let i of r)try{i(e,t,n)&&(o=!0)}catch(s){console.error(`Error applying binding function ${i.name} to node ${e.id}:`,s);continue}return o}function uK(e,t){let n=t.fieldBindingProperties.styleOverrideTableBoundCmsVariables;if(!n||Object.keys(n).length===0)return!1;if(e.type!=="TEXT")return console.warn(`styleOverrideTable hyperlink binding unsupported for ${e.type} node ${e.id}`),!1;let r=!1;for(let[o,i]of Object.entries(n)){let s=e.styleOverrideTable[o];if(i?.hyperlink&&s){let a=FS(t,i.hyperlink,s.hyperlink?.nodeID);if(a===void 0){s.hyperlink=void 0,r=!0;continue}s.hyperlink||(s.hyperlink={}),Object.assign(s.hyperlink,MS(a)),r=!0}}return r}function cK(e,t){let n=t.fieldBindingProperties.interactionsBoundCmsVariables;if(!n||Object.entries(n).length===0)return!1;if(!("interactions"in e))return console.warn(`interactions not defined for hyperlink prototype interaction binding on node ${e.id}`),!1;let r=!1,o=e.interactions??[];for(let i of o)for(let s of i.actions||[]){let a=s.linkParam?.value,l;if(a&&"fieldSchemaId"in a?l=a.fieldSchemaId:s.cmsTarget?.fieldSchemaId&&(l=s.cmsTarget?.fieldSchemaId),!!l){for(let u of n)if(l===u.hyperlink?.fieldSchemaId){let c=FS(t,u.hyperlink,s.c
10597onnectionURL);if(c===void 0){e.interactions?.splice(e.interactions.indexOf(i),1),r=!0;continue}Object.assign(s,WD(c)),r=!0}}}return r}function fK(e,t){let n=t.fieldBindingProperties.fillPaintsBoundCmsVariables;if(!n||Object.entries(n).length===0)return!1;if(!("fills"in e))return console.warn(`fills not defined for image fill binding on node ${e.id}`),!1;let r=!1;for(let o of n){if(!o.boundVariables.image)continue;let i=o.boundVariables.image.fieldSchemaId,s=-1;if(e.fills){for(let c=0;c<e.fills.length;c++)if(e.fills[c]?.imageVar?.value?.fieldSchemaId===i){s=c;break}}if(s===-1){console.warn(`No fill found with fieldSchemaId ${i} for node ${e.id}`);continue}let a=Qu(t,o.boundVariables.image);if(a===void 0){s!==-1&&(e.fills?.splice(s,1),r=!0);continue}let u=e.fills[s];if(u){let c=JSON.parse(a);u.imageRef=c.image,e.accessibleLabel=c.altText,r=!0}}return r}function dK(e){return["FRAME","INSTANCE","RECTANGLE","TEXT","CMS_RICH_TEXT"].includes(e)}function YD(e,t,n){if(!dK(e.type)||!t||!("cmsItemFieldBindingProperties"in e)||!e.cmsItemFieldBindingProperties)return!1;if(!e.cmsItemFieldBindingProperties.itemId)return console.error("Missing itemId for bound node",e.id),!1;let r=wD(t,n,e.cmsItemFieldBindingProperties),o=[lK,uK,cK,fK],i=!1;for(let s of o)try{s(e,r)&&(i=!0)}catch(a){console.error(`Error applying binding function ${s.name} to node ${e.id}:`,a);continue}return i}function pK(e){let t=Ni(e);return t.type="CMS_RICH_TEXT",t}function KD(e){return e.type==="TEXT"&&e.cmsItemFieldBindingProperties?.boundCmsVariables?.richText?pK(e):e}var XD=x(Ee()),Ko=x(Y());var GS=()=>Promise.resolve(),zD=e=>{GS=e},kE=(e,t)=>GS?GS(e,t):Promise.resolve();var Fd=(0,Ko.createContext)({reportError:qa,setMaterializationError:qa});function jD({children:e,reportError:t}){let n=(0,Ko.useRef)({map:new Map,updatedSinceLastRender:!1});(0,Ko.useEffect)(()=>{let i=setInterval(()=>{n.current.updatedSinceLastRender&&(kE("updateMaterializationErrors",{errors:Array.from(n.current.map.values())}),n.current.updatedSinceLastRender=!1)},100);return()=>clearInterval(i)},[n]);let r=(0,Ko.useCallback)((i,s)=>{let a=n.current;s&&s.errorMessage?(console.error(`New error in ${s.nodeName} (${s.nodeId})`,s.errorMessage),a.map.set(i,s),a.updatedSinceLastRender=!0):a.map.has(i)&&(a.map.delete(i),a.updatedSinceLastRender=!0)},[n]),o=(0,Ko.useMemo)(()=>({reportError:t,setMaterializationError:r}),[t,r]);return(0,XD.jsx)(Fd.Provider,{value:o,children:e})}var kS=x(Ee()),Ls=x(Y());var $D=(0,Ls.createContext)(null),fe=()=>(0,Ls.useContext)($D);function wS({websiteData:e,cmsBundleData:t,getCodeComponentURL:n,history:r,getAssetURL:o,getFontURL:i,getVideoURL:s,children:a,env:l,setLocation:u,preloadLocation:c,renderOptions:f,renderElement:d,renderFragment:p,withBaseStyles:_=!0,addHeadTag:T,addBodyScript:h,loadComponentsOverNetwork:m=!1,isFigmake:E=!1,enableMetaTags:O=!1,atomStore:I,globalVariableState:g,inheritedVariantPropertiesCache:S,processedNodesCache:A,computedVariantCache:R,sitesRenderers:N}){let L=ge(e.siteSettings,{store:I}).labs,b=(0,Ls.useMemo)(()=>new Map,[]),M=(0,Ls.useMemo)(()=>new Map,[]),w=(0,Ls.useMemo)(()=>({websiteData:e,cmsBundleData:t,history:r,getAssetURL:o,getFontURL:i,getVideoURL:s,getCodeComponentURL:n,env:l,setLocation:u,preloadLocation:c,withBaseStyles:_,addHeadTag:T,addBodyScript:h,loadComponentsOverNetwork:m,labs:L,isFigmake:E,enableMetaTags:O,renderOptions:f,atomStore:I,fontsByStyleElId:b,globalVariableState:g,inheritedVariantPropertiesCache:S,processedNodesCache:A,computedVariantCache:R,instanceSwapComponentCache:M,renderElement:d,renderFragment:p,sitesRenderers:N}),[e,t,r,o,i,s,n,l,u,c,_,T,h,m,O,L,E,f,I,b,g,S,A,R,M,d,p,N]);return(0,kS.jsx)(jC,{store:I,children:(0,kS.jsx)($D.Provider,{value:w,children:a})})}var el=x(Y());var JD=x(Y());var Sr=class{map;fallback;disableErrors;constructor(t,n){this.map=new Map,this.fallback=t,this.disableErrors=n??!1}get(t,n=!1){return this.map.has(t)?this.map.get(t):(n===!1&&this.disableErrors===!1&&(this.map.has(t),`${JSON.stringify(t)}`,void 0),this.fallback)}set(t,n){if(this.map.has(t)){this.disableErrors===!1&&(Ge(this.map.get(t),n),`${JSON.stringify(t)}`,void 0);return}this.map.set(t,n)}_has(t){return this.map.has(t)}};var qD={title:""},Gd=ce(!1),kd=ce(null),tc=ce(void 0),ZD=ce(void 0),wE=ce(e=>({width:e(tc),height:e(ZD)}),(e,t,n)=>{t(tc,n.width),t(ZD,n.height)}),EK={type:"GENERATED_ASSET",url:"",size:{x:0,y:0},format:"PNG",offsets:{top:{value:0,unit:"PERCENT"},right:{value:0,unit:"PERCENT"},bottom:{value:0,unit:"PERCENT"},left:{value:0,unit:"PERCENT"}}},wd=RE({type:"FRAME",id:"missing",name:"missing",visible:!1,absoluteBoundingBox:{x:0,y:0,width:0,height:0},size:{x:0,y:0},relativeTransform:[[1,0,1],[0,1,1]],children:[]});function QD(){let e={collectionById:new Sr(void 0),slugByItemId:new Sr(void 0)};return DE(e),e}function ev(e,t){Cs(e.collectionById,t.collectionById),Cs(e.slugByItemId,t.slugByItemId)}function BE(){let e={siteSettings:ce(qD),roots:ce([]),nodeById:new Sr(wd),fonts:new Sr(void 0,!0),assets:new Sr(ce(EK)),assetIdToGuid:new Sr(void 0),guidToUrl:new Sr(void 0),animateRootIds:new Set,stablePathToAssetInfo:new Sr(void 0,!0),stablePathToConstraints:new Sr(void 0,!0),stablePathToReplaceabilityInputs:new Sr(void 0,!0),compiledCode:ce(""),globalStyles:ce(""),sourceCodeHash:ce("")};return DE(e),DE(e.assets),e}function UE(e,t,n){ec(e.siteSettings,t.siteSettings??qD,n);for(let[r,o]of Object.entries(t.nodeById))e.nodeById.set(r,TS(o,{nodeId:o?.id}));ec(e.roots,t.roots,n),Cs(e.fonts,t.fonts),Cs(e.assetIdToGuid,t.assetIdToGuid),Cs(e.guidToUrl,t.guidToUrl),BS(e,t.assets,n),t.stablePathToAssetInfo&&Cs(e.stablePathToAssetInfo,t.stablePathToAssetInfo),t.stablePathToConstraints&&Cs(e.stablePathToConstraints,t.stablePathToConstraints),t.stablePathToReplaceabilityInputs&&Cs(e.stablePathToReplaceabilityInputs,t.stablePathToReplaceabilityInputs),_K(e.animateRootIds,t.animateRootIds),ec(e.compiledCode,t.compiledCode,n),ec(e.globalStyles,t.globalStyles,n),ec(e.sourceCodeHash,t.sourceCodeHash,n)}function BS(e,t,n){TK(e.assets,t,n)}function _K(e,t){e.clear(),t.forEach(n=>{e.add(n)})}function Cs(e,t){for(let[n,r]of Object.entries(t))e.set(n,r)}function TK(e,t,n,r){for(let[o,i]of Object.entries(t)){let s=e._has(o)?e.get(o):void 0,a=r?r(i):i;s===void 0?e.set(o,ce(a)):ec(s,a,n)}}function ec(e,t,n){Ge(n.get(e),t)||n.set(e,t)}function tv(e,t){let n=(0,JD.useMemo)(()=>ce(e),[e]);return ge(t||n)}var oc=x(Y());var Z=[""],nc={transparent:Z,...Object.fromEntries(Object.values(_E).map(e=>[e,Z]))},hK={"-webkit-text-fill-color":{partialSupportOk:!0,values:{...nc}},"-ms-overflow-style":{partialSupportOk:!0,values:{none:!0}},"-webkit-box-orient":{alternateName:"box-orient",partialSupportOk:!0,values:{vertical:Z}}},nv={properties:{"align-items":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],center:Z,baseline:["flex_context.baseline"],start:["grid_context.start_end"],end:["grid_context.start_end"]},except:["flex_context.last_baseline","flex_context.safe_unsafe","flex_context.start_end"]},"align-self":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],stretch:["flex_context.stretch","grid_context"],center:Z},except:["flex_context.last_baseline","flex_context.safe_unsafe","position_absolute_context"]},"align-content":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],center:Z,"space-between":["flex_context"],baseline:["flex_context.baseline"],stretch:["flex_context.stretch"]},except:["flex_context.last_baseline","flex_context.safe_unsafe","flex_context.start_end","multicol_context","block_context"]},animation:{values:{scroll:Z,linear:Z,none:Z},except:["animation-timeline_included"]},"animation-play-state":{values:{paused:!0}},"animation-delay":{},"animation-direction":{},"animation-timing-function":{},"aspect-ratio":{values:{auto:!0}},"backdrop-filter":{},"backface-visibility":{},background:{values:{none:Z}},"background-clip":{values:{"padding-box":!0,text:!0}},"background-color":{values:nc},"background-image":{values:{none:!0}},"background-position":{values:{bottom:!0,left:!0,right:!0,top:!0,center:!0}},"background-repeat":{values:{repeat:!0,"no-repeat":!0}},"background-size":{values:{auto:!0,contain:!0,cover:!0}},border:{values:{none:Z,solid:Z}},"border-bottom-left-radius":{},"border-bottom-right-radius":{},"border-bottom-width":{},"border-bottom-style":{values:{solid:Z,dashed:Z,none:Z}},"border-bottom-color":{},"border-color":{values:nc},"border-left-width":{},"border-radius":{},"border-right-width":{},"border-style":{values:{solid:!0,dashed:!0,none:!0}},"border-top-left-radius":{},"border-top-right-radius":{},"border-top-width":{},bottom:{values:{auto:!0}},"box-shadow":{values:{inset:!0,...nc}},"box-sizing":{values:{"border-box":!0}},color:{values:{revert:Z,...nc}},"column-gap":{},"container-type":{values:{size:!0}},content:{except:["none_applies_to_elements","alt_text"]},cursor:{values:{pointer:!0,none:!0},except:["url_positioning_syntax"]},direction:{values:{ltr:!0,rtl:!0},except:["vertical_slider_direction"]},display:{values:{block:!0,"inline-block":!0,grid:!0,flex:!0,contents:!0,none:!0,"inline-grid":!0,"-webkit-box":!0},except:["contents.contents_unusual","contents.focusable_elements","none.option_is_hidden","is_transitionable","keyframe_animatable","multi-keyword_values"]},filter:{},flex:{values:{auto:Z}},"flex-direction":{values:{column:!0,"column-reverse":!0,row:!0,"row-reverse":!0}},"flex-shrink":{},"flex-wrap":{values:{wrap:!0}},"font-family":{values:{serif:Z,"sans-serif":Z}},"font-feature-settings":{},"font-size":{},"font-style":{values:{italic:!0,normal:!0}},"font-synthesis":{values:{none:!0},partialSupportOk:!0},"font-variant-caps":{values:{normal:!0,"small-caps":!0,"all-small-caps":!0}},"font-variation-settings":{values:{normal:Z}},"font-weight":{values:{normal:!0,bold:!0}},gap:{},"grid-column":{values:{span:Z}},"grid-row":{values:{span:Z}},"grid-template-columns":{values:{"max-content":!0}},"grid-auto-flow":{values:{row:!0}},"grid-template-rows":{values:{"max-content":!0}},height:{values:{auto:!0},except:["fit-content_function"]},inset:{},isolation:{values:{isolate:Z}},"justify-content":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],center:Z,"space-between":["flex_context"],"space-around":["flex_context"],"space-evenly":["flex_context.space-evenly"]},except:["flex_context.safe_unsafe","flex_context.start_end"]},"justify-items":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],center:Z,baseline:["flex_context"],start:["grid_context","flex_context"],end:["grid_context","flex_context"]}},"place-items":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],center:Z,baseline:["flex_context"],start:["grid_context","flex_context"],end:["grid_context","flex_context"]}},"justify-self":{values:{"flex-start":["grid_context"],"flex-end":["grid_context"],center:Z,baseline:["grid_context"],start:["grid_context"],end:["grid_context"],stretch:["grid_context"]},except:["position_absolute_context"]}
10597,left:{values:{auto:!0}},"letter-spacing":{},"line-height":{values:{normal:!0}},"list-style":{values:{none:Z}},"list-style-position":{values:{inside:!0}},"list-style-type":{values:{"lower-alpha":!0,"lower-roman":!0,decimal:!0,circle:!0}},margin:{values:{auto:!0}},"margin-bottom":{values:{auto:!0}},"margin-inline-start":{},"margin-left":{values:{auto:!0}},"margin-right":{values:{auto:!0}},"margin-top":{values:{auto:!0}},"mask-image":{needsPrefix:"-webkit-"},"mask-mode":{values:{alpha:!0,luminance:!0}},"mask-size":{needsPrefix:"-webkit-"},"mask-position":{needsPrefix:"-webkit-",values:{auto:Z}},"mask-repeat":{needsPrefix:"-webkit-",values:{"no-repeat":Z}},"mask-clip":{needsPrefix:"-webkit-",values:{"no-clip":Z}},"mask-origin":{needsPrefix:"-webkit-"},"mask-composite":{values:{intersect:!0}},"mask-type":{values:{alpha:!0,luminance:!0}},"max-width":{values:{none:!0},except:["fit-content_function"]},"max-height":{except:["fit-content_function"]},"min-width":{values:{auto:!0},except:["fit-content_function"]},"min-height":{except:["fit-content_function"]},"mix-blend-mode":{values:{darken:Z,multiply:Z,"plus-lighter":!0,"color-burn":Z,lighten:Z,screen:Z,"color-dodge":Z,overlay:Z,"soft-light":Z,"hard-light":Z,difference:Z,exclusion:Z,huge:Z,saturation:Z,color:Z,luminosity:Z}},"object-fit":{values:{contain:!0,cover:!0}},"object-position":{values:{bottom:Z,left:Z,right:Z,top:Z,center:Z}},opacity:{},order:{},overflow:{values:{auto:!0,hidden:!0,clip:!0,scroll:!0,visible:!0}},"overflow-x":{values:{auto:!0,hidden:!0,clip:!0,scroll:!0,visible:!0}},"overflow-y":{values:{auto:!0,hidden:!0,clip:!0,scroll:!0,visible:!0}},padding:{},"padding-bottom":{},"padding-inline-start":{},"padding-left":{},"padding-top":{},"padding-right":{},perspective:{},"perspective-origin":{values:{center:!0,top:!0,bottom:!0,left:!0,right:!0}},"pointer-events":{values:{none:Z,auto:Z}},position:{values:{absolute:!0,sticky:!0,relative:!0,fixed:!0}},right:{values:{auto:!0}},"row-gap":{},"scrollbar-width":{values:{none:!0}},"text-align":{values:{left:!0,right:!0,center:!0,justify:!0,start:!0,end:!0}},"text-box-edge":{values:{cap:Z,alphabetic:Z}},"text-box-trim":{values:{"trim-both":Z}},"text-decoration":{except:["includes_thickness","includes_color-and-style"],values:{none:Z}},"text-decoration-color":{},"text-decoration-line":{values:{none:!0,underline:!0,"line-through":!0}},"text-decoration-skip-ink":{values:{none:!0}},"text-decoration-style":{values:{solid:Z,wavy:Z,dotted:Z}},"text-decoration-thickness":{values:{"from-font":!0}},"text-indent":{},"text-overflow":{values:{ellipsis:!0},except:["two_value_syntax"]},"text-shadow":{},"text-transform":{values:{none:!0,uppercase:!0,lowercase:!0,capitalize:!0},except:["greek_accented_characters","dutch_ij_digraph"]},"text-underline-offset":{},top:{values:{auto:!0}},"text-underline-position":{values:{"from-font":!0}},transform:{},"transform-origin":{values:{top:!0,left:!0}},"transform-style":{values:{"preserve-3d":!0}},"transition-duration":{},"transition-property":{values:{all:!0,transform:Z}},"transition-timing-function":{values:{"ease-in-out":Z}},"transition-delay":{},"vertical-align":{values:{super:!0}},"white-space":{values:{pre:!0,"pre-wrap":!0,nowrap:!0},except:["svg_elements","shorthand_values"]},width:{values:{auto:!0,"min-content":!0},except:["fit-content_function"]},"word-break":{values:{"break-word":!0}},"z-index":{},"-webkit-text-size-adjust":{alternateName:"text-size-adjust",partialSupportOk:!0},"-webkit-tap-highlight-color":{partialSupportOk:!0,values:{...nc}},"-webkit-font-smoothing":{alternateName:"font-smooth",partialSupportOk:!0,values:{antialiased:Z}},"-webkit-line-clamp":{alternateName:"line-clamp"},...hK},functionTypes:{calc:{key:"types.calc",except:["calc.color_component"]},var:{key:"types.var"},min:{key:"types.min"},max:{key:"types.max"},matrix:{key:"types.transform-function.matrix"},matrix3d:{key:"types.transform-function.matrix3d"},perspective:{key:"types.transform-function.perspective"},rotate:{key:"types.transform-function.rotate"},rotateX:{key:"types.transform-function.rotateX"},rotateY:{key:"types.transform-function.rotateY"},rotateZ:{key:"types.transform-function.rotateZ"},rotate3d:{key:"types.transform-function.rotate3d"},translate:{key:"types.transform-function.translate"},translateX:{key:"types.transform-function.translateX"},translateY:{key:"types.transform-function.translateY"},translateZ:{key:"types.transform-function.translateZ"},translate3d:{key:"types.transform-function.translate3d"},skew:{key:"types.transform-function.skew"}
10597,skewX:{key:"types.transform-function.skewX"},skewY:{key:"types.transform-function.skewY"},scale:{key:"types.transform-function.scale"},scaleX:{key:"types.transform-function.scaleX"},scaleY:{key:"types.transform-function.scaleY"},scale3d:{key:"types.transform-function.scale3d"},hypot:{key:"types.hypot"},cos:{key:"types.cos"},atan2:{key:"types.atan2"},rgb:{key:"types.color"},rgba:{key:"types.color"},clamp:{key:"types.clamp"},blur:{key:"types.filter-function.blur"},"drop-shadow":{key:"types.filter-function.drop-shadow"},"linear-gradient":{key:"types.gradient.linear-gradient",except:["gradient.linear-gradient.hue_interpolation_method","gradient.linear-gradient.interpolation_color_space","gradient.linear-gradient.single_color_stop"]},"image-set":{key:"types.image.image-set"},repeat:{key:"properties.grid-template-rows.repeat"},minmax:{key:"properties.grid-template-rows.minmax"},"fit-content":{key:"properties.grid-template-rows.fit-content"}},units:{px:{key:"types.length",except:["length.container_query_length_units","length.viewport_percentage_units_dynamic","length.viewport_percentage_units_large","length.viewport_percentage_units_small"]},em:{key:"types.length.em"},vw:{key:"types.length.vw"},vh:{key:"types.length.vh"},dvw:{key:"types.length.viewport_percentage_units_dynamic"},cqw:{key:"types.length.container_query_length_units"},cqh:{key:"types.length.container_query_length_units"},deg:{key:"types.angle.deg"},x:{key:"types.resolution.x"},fr:{key:"types.flex"},s:{key:"types.time"}}};var OK=new Map,IK=new Map;for(let[e,t]of Object.entries(nv.properties))if(t.needsPrefix){let n=`${t.needsPrefix}${e}`;OK.set(n,e),IK.set(e,n)}function Qa({str:e,hashPrefix:t,isUniqueKey:n}){let r=(l,u)=>{let c=`${t}${Math.abs(l).toString(36)}`;return u?`${c}_${u}`:c},o=0,i=0,s,a=0;for(;o<5;){i=0;for(let l=0;l<e.length;l++){let u=e.charCodeAt(l);i=(i<<5)-i+u+o,i=i&i}if(s=r(i),n(s))return s;o++}for(;;)if(a++,s=r(i,a),n(s))return s}var rv=typeof window<"u"&&window.requestIdleCallback?window.requestIdleCallback:function(e){let t=Date.now();return setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)};var ov=x(Y());function Ps(e,t){let n=(0,ov.useRef)(e);return t(n.current,e)||(n.current=e),n.current}var av="#container",gK="css-",US=new Set,VS=new Map,VE=0,HS=null,rc=new Map,Oo;var SK=1024,RK=new Set(["opacity","zIndex","fontWeight","flex","flexGrow","flexShrink","flexBasis","order","lineHeight","gridRow","gridColumn","gridRowStart","gridRowEnd","gridColumnStart","gridColumnEnd","WebkitLineClamp"]),AK=new Set(["font","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","letterSpacing","lineHeight","textAlign","textDecoration","textIndent","textOverflow","textTransform","whiteSpace","wordBreak","wordSpacing"]),yK=new Set(["top","right","bottom","left","width","height","maxWidth","maxHeight","minWidth","minHeight"]),NK=new Set(["alignItems","alignSelf","border","borderBottom","borderBottomColor","borderBottomStyle","borderBottomWidth","borderColor","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderStyle","borderTop","borderTopColor","borderTopStyle","borderTopWidth","borderWidth","boxSizing","display","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","gap","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridRow","gridTemplate","justifyContent","placeItems","justifySelf","margin","marginBottom","marginLeft","marginRight","marginTop","order","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","position"]);function bK(e){let t={...e};if("top"in e&&"right"in e&&"bottom"in e&&"left"in e){let n={top:e.top,right:e.right,bottom:e.bottom,left:e.left};Object.values(n).every(i=>i!==void 0)&&new Set(Object.values(n)).size===1&&(t={...t,inset:e.top,top:void 0,right:void 0,bottom:void 0,left:void 0})}if("borderTopStyle"in e&&"borderRightStyle"in e&&"borderBottomStyle"in e&&"borderLeftStyle"in e){let n={top:e.borderTopStyle,right:e.borderRightStyle,bottom:e.borderBottomStyle,left:e.borderLeftStyle};new Set(Object.values(n)).size===1&&n.top&&(t={...t,borderStyle:n.top,borderTopStyle:void 0,borderRightStyle:void 0,borderBottomStyle:void 0,borderLeftStyle:void 0})}if("borderTopLeftRadius"in e&&"borderTopRightRadius"in e&&"borderBottomRightRadius"in e&&"borderBottomLeftRadius"in e){let n={topLeft:e.borderTopLeftRadius,topRight:e.borderTopRightRadius,bottomRight:e.borderBottomRightRadius,bottomLeft:e.borderBottomLeftRadius};new Set(Object.values(n)).size===1&&n.topLeft!==void 0&&(t={...t,borderRadius:n.topLeft,borderTopLeftRadius:void 0,borderTopRightRadius:void 0,borderBottomRightRadius:void 0,borderBottomLeftRadius:void 0})}if("marginTop"in e&&"marginRight"in e&&"marginBottom"in e&&"marginLeft"in e){let n={top:e.marginTop,right:e.marginRight,bottom:e.marginBottom,left:e.marginLeft};new Set(Object.values(n)).size===1&&n.top!==void 0&&(t={...t,margin:n.top,marginTop:void 0,marginRight:void 0,marginBottom:void 0,marginLeft:void 0})}if("paddingTop"in e&&"paddingRight"in e&&"paddingBottom"in e&&"paddingLeft"in e){let n=typeof e.paddingTop=="number"?e.paddingTop+"px":e.paddingTop,r=typeof e.paddingRight=="number"?e.paddingRight+"px":e.paddingRight,o=typeof e.paddingBottom=="number"?e.paddingBottom+"px":e.paddingBottom,i=typeof e.paddingLeft=="number"?e.paddingLeft+"px":e.paddingLeft,s;new Set([n,r,o,i]).size===1&&n!==void 0?s=n:n===o&&n&&i===r&&r?s=`${n} ${i}`:n&&o&&i===r&&r&&(s=`${n} ${i} ${o}`),s!==void 0&&(t={...t,padding:s,paddingTop:void 0,paddingRight:void 0,paddingBottom:void 0,paddingLeft:void 0})}if("overflowX"in e&&"overflowY"in e){let n=e.overflowX,r=e.overflowY;n===r&&n!==void 0&&(t={...t,overflow:n,overflowX:void 0,overflowY:void 0})}return t}function iv(e){return AK.has(e)?"font":yK.has(e)?"dimension":NK.has(e)?"layout":"other"}function sv(e,t,n=av){let r=o=>{let i=bK(o);return Object.entries(i).filter(([s,a])=>a!==void 0).map(([s,a])=>{let l=s.replace(/([A-Z])/g,"-$1").toLowerCase(),u=a;return typeof a=="number"&&!RK.has(s)&&(u=`${a}px`),`${l}: ${u};`}).join(" ")};return`${n?`${n} `:""}.${e} {${r(t)}}`}var WS=new Map;LK();function LK(){typeof window<"u"&&"__serverRenderedCSSClassNames"in window&&typeof window.__serverRenderedCSSClassNames=="object"&&Object.entries(window.__serverRenderedCSSClassNames||{}
10597).forEach(([e,t])=>{WS.set(e,t)})}function CK(e){if(Object.keys(e).length===0)return"";let t=JSON.stringify(e);if(t==="{}")return"";let n=Qa({str:t,hashPrefix:gK,isUniqueKey:r=>{let o=VS.get(r);if(o)return o===t;if(WS.has(r)){let i=WS.get(r);return t===i}return!0}});return VS.set(n,t),n}var PK="font-faces-";function lv(e,t){let{fontsByStyleElId:n,env:r,addHeadTag:o}=t,i=Qa({str:e,hashPrefix:PK,isUniqueKey:s=>{let a=n.get(s),l=!a||a===e;if(r==="server")return l;let u=document.getElementById(s),c=!u||u?.textContent===e;return l&&c}});return r==="server"&&!n.has(i)&&(o({type:"global-style",styleElId:i,styleSheet:e}),n.set(i,e)),i}function uv(e,t){let{fontsByStyleElId:n}=fe();(0,oc.useInsertionEffect)(()=>{if(!e)return;let r=document.getElementById(t);if(r&&r.textContent===e)return;let o=document.createElement("style");return o.textContent=e,o.id=t,document.head.appendChild(o),n.set(t,e),()=>{document.head.removeChild(o),n.delete(t)}},[e])}function DK(e,t,n){return e.forEach(({className:r,styles:o,renderedByCode:i})=>{if(!r)return;let s=t||i?"":av,a=rc.get(r);a===0&&VE--,rc.set(r,(a??0)+1),US.has(r)||(US.add(r),MK(r,o,s).forEach(u=>{Oo||(Oo=new CSSStyleSheet,document.adoptedStyleSheets.push(Oo)),u.toString(),i?Oo.insertRule(`@layer figoverridable { ${u} }`,Oo.cssRules.length):Oo.insertRule(u,Oo.cssRules.length)}))}),()=>{e.forEach(({className:r})=>{if(!r)return;let i=(rc.get(r)||0)-1;rc.set(r,i),i===0&&(VE++,Oo&&VE>SK&&!HS&&(HS=rv(xK)))})}}function vK(e){let t={};for(let[r,o]of Object.entries(e))if(!(o===void 0||o===""))if(r==="media")for(let[i,s]of Object.entries(o))for(let[a,l]of Object.entries(s)){let u=iv(a);t[u]||(t[u]={}),t[u].media||(t[u].media={}),t[u].media[i]||(t[u].media[i]={}),t[u].media[i][a]=l}else{let i=iv(r);t[i]||(t[i]={}),t[i][r]=CE(o,!1)}let n=[];for(let r of Object.values(t))n.push({className:CK(r),styles:r});return n}function cv(e){let t=fe(),{disableHighSpecificityContainer:n}=t.renderOptions,r=Ps(e,Ge),o=(0,oc.useMemo)(()=>{let l=[],u=[];for(let c of r){if(c==null)continue;if(typeof c=="string"){u.push(c);continue}let{styles:f,renderedByCode:d}="styles"in c?{styles:c.styles,renderedByCode:c.renderedByCode}:{styles:c,renderedByCode:void 0};for(let{className:p,styles:_}of vK(f))l.push({className:p,styles:_,renderedByCode:d})}return{generated:l,passthroughClassNames:u}},[r]),{addHeadTag:i,env:s}=fe();return(0,oc.useInsertionEffect)(()=>DK(o.generated,n,s),[o]),s==="server"&&o.generated.forEach(({className:l,styles:u})=>{i({type:"class-style",className:l,cssProperties:u,classNameSourceStr:JSON.stringify(u)})}),[...o.generated.map(({className:l})=>l),...o.passthroughClassNames].filter(Boolean).join(" ")}function xK(){if(Oo){try{let t=Array.from(Oo.cssRules).filter(n=>{let r=n.selectorText.substring(1),o=rc.get(r)===0;return o&&(US.delete(r),rc.delete(r),VS.delete(r)),!o});Oo.replace(t.map(n=>n.cssText).join(` 10598`))}catch(e){De.reportError(new q("Error cleaning up styles",e)),console.error("Error cleaning CSS rules:",e)}VE=0,HS=null}}var YS="global-css-";function ic({cssString:e,styleElId:t,deleteElsWithPrefix:n,skipValidation:r,prepend:o}){let{addHeadTag:i,env:s}=fe();s==="server"&&e&&i({type:"global-style",styleElId:t,styleSheet:Ds(e)}),(0,oc.useInsertionEffect)(()=>{if(!e||(r||void 0,document.getElementById(t)))return;let l=[];n&&(l=Array.from(document.head.querySelectorAll(`style[id^="${n}"]`)));let u=document.createElement("style");return u.textContent=Ds(e),u.id=t,o?document.head.insertBefore(u,document.head.firstChild):document.head.appendChild(u),n&&l.forEach(c=>{c.remove()}),()=>{document.head.removeChild(u)}},[e,t,o])}function Ds(e){return e.replace(/\s+/g," ").replace(/\/\*.*?\*\//g,"").replace(/;\s*}/g,"}").replace(/\s*{\s*/g,"{").replace(/\s*:\s*/g,":").replace(/\s*;\s*/g,";").replace(/\s*,\s*/g,",").replace(/\s*}\s*/g,"}")}function MK(e,t,n){let{media:r,...o}=t,i=[sv(e,o,n)];if(r){let s=Object.entries(r).map(([a,l])=>`@media ${a} {${sv(e,l,n)}}`);i.push(...s)}return i}function un(e,...t){let n="";return e.forEach((r,o)=>{n+=r+(t[o]||"")}),n}var FK="custom-cursor",sc="customCursor";function fv(){let e=ge(kd)!==null;return ic({cssString:e?GK:"",styleElId:FK}),null}var GK=un` #container .${sc}a,#container .${sc}p,#container .${sc}div{cursor:none}`;function Io(e,t){let n=e?.[t];return Te(n!==void 0,`Node asset with hash ${t} not found in used assets`),n}function kK(){let e=fS();return e?e.mobile||e.tablet||e.isIpad:!1}var Ev=({ref:e,hasCursorBehavior:t,assets:n,behaviors:r})=>{let o=fe();kK()&&(t=!1);let i=(0,el.useMemo)(()=>wK(t),[t]),s=(0,el.useCallback)((a,l)=>{let{imageUrl:u,imageSize:c}=mv(r,n,o);a.style.backgroundImage=`url("${u}")`,c&&(a.style.width=`${c.x}px`,a.style.height=`${c.y}px`),a.style.visibility="visible",l.style.cursor="none",l.classList.add(sc)},[r,n,o]);(0,el.useEffect)(()=>{e.current&&dv(e.current.id,o)&&i&&s(i,e.current)},[e,i,s,o]),(0,el.useEffect)(()=>
10598{if(!e.current||!i||!t||!r?.cursor)return;let{imageUrl:a,imageSize:l}=mv(r,n,o);if(!a||!l)return;let u=e.current,c=r.cursor.hotspotX,f=r.cursor.hotspotY,d=vu(h=>{u&&(pv(u.id,o),s(i,u),i.style.transform=`translate(${h.clientX-c}px, ${h.clientY-f}px)`)},"showCursor"),p=vu(h=>{u&&(KS(o)===null&&d(h),dv(u.id,o)&&(i.style.transform=`translate(${h.clientX-c}px, ${h.clientY-f}px)`))},"moveCursor"),_=vu(()=>{i&&(pv(null,o),requestAnimationFrame(T))},"hideCursor"),T=()=>{i&&KS(o)===null&&(i.style.visibility="hidden",u.style.cursor="auto",u.classList.remove(sc))};return u.addEventListener("pointerenter",d),u.addEventListener("pointermove",p),u.addEventListener("pointerleave",_),()=>{u.removeEventListener("pointerenter",d),u.removeEventListener("pointermove",p),u.removeEventListener("pointerleave",_),_(new PointerEvent("pointerleave"))}},[t,r?.cursor,i,e,s,r,n,o])},_v="sites-cursor-element",wK=e=>{if(!e||typeof document>"u")return null;let t=document.getElementById(_v);return t||BK()},BK=()=>{let e=document.createElement("div");return document.body.appendChild(e),e.id=_v,e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.visibility="hidden",e.style.pointerEvents="none",e.style.willChange="transform",e.style.zIndex="9999",e.ariaHidden="true",e.style.backgroundRepeat="no-repeat",e.style.backgroundSize="contain",e},dv=(e,t)=>KS(t)===e,pv=(e,t)=>{t.atomStore.set(kd,e)},KS=e=>e.atomStore.get(kd);function mv(e,t,n){let r=zS(e);if(r){let o=Io(t,r);return{imageUrl:n.getAssetURL(o.url),imageSize:o.size}}return{imageUrl:void 0,imageSize:void 0}}function zS(e){return e?.cursor?.cursorFileName?.split(".")[0]}var Tv=e=>{let{interactionHandlers:t,materializedChildNodeProps:n,...r}=e;"variableState"in r&&delete r.variableState;try{kE("nodeDebugInformation",{materializedNode:r})}catch{}};function Ov(e,t,n,r,o){let i=t,s=!1,a=(f,d)=>(s=!0,n.evaluateVariable(e,f.id,r)??d),l=f=>{let d=n.getVariableName(f);return d!==void 0&&o.dashSeparatedVariableNames?tS(d,()=>"-"):d},u=f=>n.getVariableCodeSyntax(f);if(UK(i,a,l,u),!("boundVariables"in t&&t.boundVariables))return s;let c=t.boundVariables;if(c.opacity){let f=(i.opacity??1)*100;i.opacity=a(c.opacity,f)/100,c.opacity.resolvedName=l(c.opacity.id),c.opacity.resolvedCodeSyntax=u(c.opacity.id)}if(c.size&&i.size&&(c.size.x&&(i.size.x=a(c.size.x,i.size.x),c.size.x.resolvedName=l(c.size.x.id),c.size.x.resolvedCodeSyntax=u(c.size.x.id)),c.size.y&&(i.size.y=a(c.size.y,i.size.y),c.size.y.resolvedName=l(c.size.y.id),c.size.y.resolvedCodeSyntax=u(c.size.y.id))),c.visible&&(i.visible=a(c.visible,i.visible),c.visible.resolvedName=l(c.visible.id),c.visible.resolvedCodeSyntax=u(c.visible.id)),i.rectangleCornerRadii===void 0)if(i.rectangleCornerRadiiIndependent)i.rectangleCornerRadii=[0,0,0,0];else{let f=i.cornerRadius??0;i.rectangleCornerRadii=[f,f,f,f]}return c.rectangleCornerRadii&&(c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS&&(i.rectangleCornerRadii[0]=a(c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS,i.rectangleCornerRadii[0]),c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS.resolvedName=l(c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS.id),c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS.resolvedCodeSyntax=u(c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS.id)),c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS&&(i.rectangleCornerRadii[1]=a(c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS,i.rectangleCornerRadii[1]),c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS.resolvedName=l(c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS.id),c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS.resolvedCodeSyntax=u(c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS.id)),c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS&&(i.rectangleCornerRadii[2]=a(c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS,i.rectangleCornerRadii[2]),c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS.resolvedName=l(c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS.id)??void 0,c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS.resolvedCodeSyntax=u(c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS.id)),c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS&&(i.rectangleCornerRadii[3]=a(c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS,i.rectangleCornerRadii[3]),c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS.resolvedName=l(c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS.id),c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS.resolvedCodeSyntax=u(c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS.id))),c.minWidth&&(i.minWidth=a(c.minWidth,i.minWidth),c.minWidth.resolvedName=l(c.minWidth.id),c.minWidth.resolvedCodeSyntax=u(c.minWidth.id)),c.maxWidth&&(i.maxWidth=a(c.maxWidth,i.maxWidth),c.maxWidth.resolvedName=l(c.maxWidth.id),c.maxWidth.resolvedCodeSyntax=u(c.maxWidth.id)),c.minHeight&&(i.minHeight=a(c.minHeight,i.minHeight),c.minHeight.resolvedName=l(c.minHeight.id),c.minHeight.resolvedCodeSyntax=u(c.minHeight.id)),c.maxHeight&&(i.maxHeight=a(c.maxHeight,i.maxHeight),c.maxHeight.resolvedName=l(c.maxHeight.id),c.maxHeight.resolvedCodeSyntax=u(c.maxHeight.id)),c.itemSpacing&&(i.itemSpacing=a(c.itemSpacing,i.itemSpacing),c.itemSpacing.resolvedName=l(c.itemSpacing.id),c.itemSpacing.resolvedCodeSyntax=u(c.itemSpacing.id)),c.paddingLeft&&(i.paddingLeft=a(c.paddingLeft,i.paddingLeft),c.paddingLeft.resolvedName=l(c.paddingLeft.id),c.paddingLeft.resolvedCodeSyntax=u(c.paddingLeft.id)),c.paddingRight&&(i.paddingRight=a(c.paddingRight,i.paddingRight),c.paddingRight.resolvedName=l(c.paddingRight.id),c.paddingRight.resolvedCodeSyntax=u(c.paddingRight.id)),c.paddingTop&&(i.paddingTop=a(c.paddingTop,i.paddingTop),c.paddingTop.resolvedName=l(c.paddingTop.id),c.paddingTop.resolvedCodeSyntax=u(c.paddingTop.id)),c.paddingBottom&&(i.paddingBottom=a(c.paddingBottom,i.paddingBottom),c.paddingBottom.resolvedName=l(c.paddingBottom.id),c.paddingBottom.resolvedCodeSyntax=u(c.paddingBottom.id)),c.counterAxisSpacing&&(i.counterAxisSpacing=a(c.counterAxisSpacing,i.counterAxisSpacing),c.counterAxisSpacing.resolvedName=l(c.counterAxisSpacing.id),c.counterAxisSpacing.resolvedCodeSyntax=u(c.counterAxisSpacing.id)),c.characters&&(i.characters=a(c.characters,i.characters)?.toString(),c.characters.resolvedName=l(c.characters.id),c.characters.resolvedCodeSyntax=u(c.characters.id)),c.individualStrokeWeights&&(i.individualStrokeWeights===void 0&&(i.individualStrokeWeights={top:0,right:0,bottom:0,left:0}),c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT&&(i.individualStrokeWeights.bottom=a(c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT,i.individualStrokeWeights.bottom),c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT.resolvedName=l(c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT.id),c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT.resolvedCodeSyntax=u(c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT.id)),c.individualStrokeWeights.BORDER_LEFT_WEIGHT&&(i.individualStrokeWeights.left=a(c.individualStrokeWeights.BORDER_LEFT_WEIGHT,i.individualStrokeWeights.left),c.individualStrokeWeights.BORDER_LEFT_WEIGHT.resolvedName=l(c.individualStrokeWeights.BORDER_LEFT_WEIGHT.id),c.individualStrokeWeights.BORDER_LEFT_WEIGHT.resolvedCodeSyntax=u(c.individualStrokeWeights.BORDER_LEFT_WEIGHT.id)),c.individualStrokeWeights.BORDER_RIGHT_WEIGHT&&(i.individualStrokeWeights.right=a(c.individualStrokeWeights.BORDER_RIGHT_WEIGHT,i.individualStrokeWeights.right),c.individualStrokeWeights.BORDER_RIGHT_WEIGHT.resolvedName=l(c.individualStrokeWeights.BORDER_RIGHT_WEIGHT.id),c.individualStrokeWeights.BORDER_RIGHT_WEIGHT.resolvedCodeSyntax=u(c.individualStrokeWeights.BORDER_RIGHT_WEIGHT.id)),c.individualStrokeWeights.BORDER_TOP_WEIGHT&&(i.individualStrokeWeights.top=a(c.individualStrokeWeights.BORDER_TOP_WEIGHT,i.individualStrokeWeights.top),c.individualStrokeWeights.BORDER_TOP_WEIGHT.resolvedName=l(c.individualStrokeWeights.BORDER_TOP_WEIGHT.id),c.individualStrokeWeights.BORDER_TOP_WEIGHT.resolvedCodeSyntax=u(c.individualStrokeWeights.BORDER_TOP_WEIGHT.id))),s}function UK(e,t,n,r){if(e.fills)for(let o of e.fills)if(o.type==="SOLID"){if(o.boundVariables?.color){let i=t(o.boundVariables.color,o.color);o.color={r:i.r,g:i.g,b:i.b,a:1},o.opacity=i.a,o.boundVariables.color.resolvedName=n(o.boundVariables.color.id),o.boundVariables.color.resolvedCodeSyntax=r(o.boundVariables.color.id)}}else if(o.type==="GRADIENT_RADIAL"||o.type==="GRADIENT_LINEAR"||o.type==="GRADIENT_ANGULAR"||o.type==="GRADIENT_DIAMOND")for(let i of o.gradientStops)i.boundVariables?.color&&(i.color=t(i.boundVariables.color,i.color),i.boundVariables.color.resolvedName=n(i.boundVariables.color.id),i.boundVariables.color.resolvedCodeSyntax=r(i.boundVariables.color.id));else o.type==="CUSTOM"&&hv(o.componentPropAssignments,t);
10598if(e.strokes){for(let o of e.strokes)if(o.type==="SOLID"){if(o.boundVariables?.color){let i=t(o.boundVariables.color,o.color);o.color={r:i.r,g:i.g,b:i.b,a:1},o.opacity=i.a,o.boundVariables.color.resolvedName=n(o.boundVariables.color.id),o.boundVariables.color.resolvedCodeSyntax=r(o.boundVariables.color.id)}}else if(o.type==="GRADIENT_RADIAL"||o.type==="GRADIENT_LINEAR"||o.type==="GRADIENT_ANGULAR"||o.type==="GRADIENT_DIAMOND")for(let i of o.gradientStops)i.boundVariables?.color&&(i.color=t(i.boundVariables.color,i.color),i.boundVariables.color.resolvedName=n(i.boundVariables.color.id),i.boundVariables.color.resolvedCodeSyntax=r(i.boundVariables.color.id))}if(e.effects)for(let o of e.effects){if(o.type==="DROP_SHADOW"||o.type==="INNER_SHADOW"){o.boundVariables?.color&&(o.color=t(o.boundVariables.color,o.color),o.boundVariables.color.resolvedName=n(o.boundVariables.color.id),o.boundVariables.color.resolvedCodeSyntax=r(o.boundVariables.color.id)),o.boundVariables?.radius&&(o.radius=t(o.boundVariables.radius,o.radius),o.boundVariables.radius.resolvedName=n(o.boundVariables.radius.id),o.boundVariables.radius.resolvedCodeSyntax=r(o.boundVariables.radius.id)),o.boundVariables?.spread&&(o.spread=t(o.boundVariables.spread,o.spread),o.boundVariables.spread.resolvedName=n(o.boundVariables.spread.id),o.boundVariables.spread.resolvedCodeSyntax=r(o.boundVariables.spread.id));let i=o.offset.x,s=o.offset.y;o.boundVariables?.offsetX&&(i=t(o.boundVariables.offsetX,o.offset.x),o.boundVariables.offsetX.resolvedName=n(o.boundVariables.offsetX.id),o.boundVariables.offsetX.resolvedCodeSyntax=r(o.boundVariables.offsetX.id)),o.boundVariables?.offsetY&&(s=t(o.boundVariables.offsetY,o.offset.x),o.boundVariables.offsetY.resolvedName=n(o.boundVariables.offsetY.id),o.boundVariables.offsetY.resolvedCodeSyntax=r(o.boundVariables.offsetY.id)),o.offset={x:i,y:s}}(o.type==="LAYER_BLUR"||o.type==="BACKGROUND_BLUR")&&o.boundVariables?.radius&&(o.radius=t(o.boundVariables.radius,o.radius),o.boundVariables.radius.resolvedName=n(o.boundVariables.radius.id),o.boundVariables.radius.resolvedCodeSyntax=r(o.boundVariables.radius.id)),o.type==="CUSTOM"&&hv(o.componentPropAssignments,t)}if(e.boundVariables?.fontFamily&&e.boundVariables.fontFamily.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.fontSize&&e.boundVariables.fontSize.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.fontWeight&&e.boundVariables.fontWeight.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.fontStyle&&e.boundVariables.fontStyle.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.lineHeight&&e.boundVariables.lineHeight.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.letterSpacing&&e.boundVariables.letterSpacing.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.paragraphSpacing&&e.boundVariables.paragraphSpacing.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.paragraphIndent&&e.boundVariables.paragraphIndent.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.style?.boundVariables&&(e.style.boundVariables.fontFamily&&(e.style.fontFamily=t(e.style.boundVariables.fontFamily,e.style.fontFamily),e.style.boundVariables.fontFamily.resolvedName=n(e.style.boundVariables.fontFamily.id),e.style.boundVariables.fontFamily.resolvedCodeSyntax=r(e.style.boundVariables.fontFamily.id)),e.style.boundVariables.fontSize&&(e.style.fontSize=t(e.style.boundVariables.fontSize,e.style.fontSize),e.style.boundVariables.fontSize.resolvedName=n(e.style.boundVariables.fontSize.id),e.style.boundVariables.fontSize.resolvedCodeSyntax=r(e.style.boundVariables.fontSize.id)),e.style.boundVariables.fontWeight&&(e.style.fontVariations||(e.style.fontVariations={}),e.style.fontVariations.Weight=t(e.style.boundVariables.fontWeight,e.style.fontVariations.Weight),e.style.boundVariables.fontWeight.resolvedName=n(e.style.boundVariables.fontWeight.id),e.style.boundVariables.fontWeight.resolvedCodeSyntax=r(e.style.boun
10598dVariables.fontWeight.id)),e.style.boundVariables.fontStyle&&(e.style.fontStyle=t(e.style.boundVariables.fontStyle,e.style.fontStyle),e.style.boundVariables.fontStyle.resolvedName=n(e.style.boundVariables.fontStyle.id),e.style.boundVariables.fontStyle.resolvedCodeSyntax=r(e.style.boundVariables.fontStyle.id)),e.style.boundVariables.lineHeight&&(e.style.lineHeightPx=t(e.style.boundVariables.lineHeight,e.style.lineHeightPx),e.style.lineHeightUnit="PIXELS",e.style.boundVariables.lineHeight.resolvedName=n(e.style.boundVariables.lineHeight.id),e.style.boundVariables.lineHeight.resolvedCodeSyntax=r(e.style.boundVariables.lineHeight.id)),e.style.boundVariables.letterSpacing&&(e.style.letterSpacingValue=t(e.style.boundVariables.letterSpacing,e.style.letterSpacingValue),e.style.letterSpacingUnit="PIXELS",e.style.boundVariables.letterSpacing.resolvedName=n(e.style.boundVariables.letterSpacing.id),e.style.boundVariables.letterSpacing.resolvedCodeSyntax=r(e.style.boundVariables.letterSpacing.id)),e.style.boundVariables.paragraphSpacing&&(e.style.paragraphSpacing=t(e.style.boundVariables.paragraphSpacing,e.style.paragraphSpacing),e.style.boundVariables.paragraphSpacing.resolvedName=n(e.style.boundVariables.paragraphSpacing.id),e.style.boundVariables.paragraphSpacing.resolvedCodeSyntax=r(e.style.boundVariables.paragraphSpacing.id)),e.style.boundVariables.paragraphIndent&&(e.style.paragraphIndent=t(e.style.boundVariables.paragraphIndent,e.style.paragraphIndent),e.style.boundVariables.paragraphIndent.resolvedName=n(e.style.boundVariables.paragraphIndent.id),e.style.boundVariables.paragraphIndent.resolvedCodeSyntax=r(e.style.boundVariables.paragraphIndent.id))),e.style?.responsiveTextStyleVariants)for(let o of e.style.responsiveTextStyleVariants)o.boundVariables&&(o.boundVariables.fontSize&&(o.style.fontSize=t(o.boundVariables.fontSize,o.style.fontSize)),o.boundVariables.letterSpacing&&(o.style.letterSpacing=t(o.boundVariables.letterSpacing,o.style.letterSpacing)),o.boundVariables.lineHeight&&(o.style.lineHeightPx=t(o.boundVariables.lineHeight,o.style.lineHeightPx)),o.boundVariables.paragraphSpacing&&(o.style.paragraphSpacing=t(o.boundVariables.paragraphSpacing,o.style.paragraphSpacing)))}function hv(e,t){let{defs:n,assignments:r}=e;for(let[o,i]of Object.entries(r))i&&typeof i=="object"&&"type"in i&&i.type===zr.ALIAS&&"value"in i&&typeof i.value=="string"&&(r[o]=t({type:"VARIABLE_ALIAS",id:i.value},n[o].defaultValue))}function Bd(e,t){return e.length===1?e[0]:e.reduceRight((n,r)=>{let o=r.color,i=n.color,s=r.opacity,a=n.opacity,l=s*(1-a),u=l+a,c=l/u,f=a/u;return new xt({r:o.r*c+i.r*f,g:o.g*c+i.g*f,b:o.b*c+i.b*f},t,u)})}function jr(e){return"stackLayoutVersion"in e&&e.stackLayoutVersion>=1}function $r(e){return e.strokes!==void 0&&e.strokes.length>0}function Iv(e){return $r(e)&&e.strokeAlign!==void 0&&e.strokeAlign!=="INSIDE"}function tl(e){return!e||!("strokesIncludedInLayout"in e)||!e.strokesIncludedInLayout?!1:!jr(e)}function gv(e,t){if(!tl(t))return{};let{top:n,right:r,bottom:o,left:i}=ac(e);return{borderLeftWidth:v(i),borderRightWidth:v(r),borderTopWidth:v(n),borderBottomWidth:v(o),borderColor:"transparent",borderStyle:"solid",backgroundClip:"padding-box"}}function HE(e,t){if(!(e.type==="FRAME"||e.type==="SLOT"||e.type==="RECTANGLE")||!tl(t))return 0;let r=ac(e);return v(r.left+r.right)}function WE(e,t){if(!(e.type==="FRAME"||e.type==="SLOT"||e.type==="RECTANGLE")||!tl(t))return 0;let r=ac(e);return v(r.top+r.bottom)}function ac(e){let t={top:0,right:0,bottom:0,left:0},n=Ud(e);if(!$r(e))return t;switch(e.strokeAlign){case"CENTER":return{top:v(n.top/2),right:v(n.right/2),bottom:v(n.bottom/2),left:v(n.left/2)};case"OUTSIDE":return n;case"INSIDE":default:return t}}function YE(e){let t={top:0,right:0,bottom:0,left:0};if(!$r(e))return t;let n=Ud(e);switch(e.strokeAlign){case"CENTER":return{top:n.top/2,right:n.right/2,bottom:n.bottom/2,left:n.left/2};case"OUTSIDE":return t;case"INSIDE":default:return n}}function KE(e,t){let{codeSyntaxLanguage:n}=t,r=e.map(o=>{if(o.visible!==!1&&o.type!=="IMAGE"&&o.type!=="VIDEO"&&o.type!=="PATTERN"){if(o.type==="SOLID")return o;if(Fu(o)&&o.gradientStops[0])return o.gradientStops[0]}}
10598).filter(Boolean);if(r.length!==0)return Bd(r.map(o=>new xt("color"in o?o.color:o,t,"opacity"in o?o.opacity:1,Ht,"boundVariables"in o?o.boundVariables?.color?.resolvedName:void 0,n&&("boundVariables"in o?o.boundVariables?.color?.resolvedCodeSyntax?.[n]:void 0))),t).value}function XS(e){if(e.rectangleCornerRadiiIndependent)return{topLeft:e.rectangleCornerRadii[0]?v(e.rectangleCornerRadii[0]):void 0,topRight:e.rectangleCornerRadii[1]?v(e.rectangleCornerRadii[1]):void 0,bottomRight:e.rectangleCornerRadii[2]?v(e.rectangleCornerRadii[2]):void 0,bottomLeft:e.rectangleCornerRadii[3]?v(e.rectangleCornerRadii[3]):void 0};let t=e.cornerRadius?v(e.cornerRadius):void 0;return{topLeft:t,topRight:t,bottomRight:t,bottomLeft:t}}function jS(e,t,n){let{codeSyntaxLanguage:r}=n,o={...e};return e.borderTopLeftRadius&&(o.borderTopLeftRadius=Pe(r&&t.boundVariables?.rectangleCornerRadii?.RECTANGLE_TOP_LEFT_CORNER_RADIUS?.resolvedCodeSyntax?.[r],t.boundVariables?.rectangleCornerRadii?.RECTANGLE_TOP_LEFT_CORNER_RADIUS?.resolvedName,e.borderTopLeftRadius,n)??e.borderTopLeftRadius),e.borderTopRightRadius&&(o.borderTopRightRadius=Pe(r&&t.boundVariables?.rectangleCornerRadii?.RECTANGLE_TOP_RIGHT_CORNER_RADIUS?.resolvedCodeSyntax?.[r],t.boundVariables?.rectangleCornerRadii?.RECTANGLE_TOP_RIGHT_CORNER_RADIUS?.resolvedName,e.borderTopRightRadius,n)??e.borderTopRightRadius),e.borderBottomRightRadius&&(o.borderBottomRightRadius=Pe(r&&t.boundVariables?.rectangleCornerRadii?.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS?.resolvedCodeSyntax?.[r],t.boundVariables?.rectangleCornerRadii?.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS?.resolvedName,e.borderBottomRightRadius,n)??e.borderBottomRightRadius),e.borderBottomLeftRadius&&(o.borderBottomLeftRadius=Pe(r&&t.boundVariables?.rectangleCornerRadii?.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS?.resolvedCodeSyntax?.[r],t.boundVariables?.rectangleCornerRadii?.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS?.resolvedName,e.borderBottomLeftRadius,n)??e.borderBottomLeftRadius),o}function Sv(e,t,n,r){let{shouldOutputVariables:o}=r,i=XS(e),s=t?ac(e):{top:0,right:0,bottom:0,left:0},a={borderTopLeftRadius:i.topLeft?i.topLeft+Math.min(s.top,s.left):void 0,borderTopRightRadius:i.topRight?i.topRight+Math.min(s.top,s.right):void 0,borderBottomRightRadius:i.bottomRight?i.bottomRight+Math.min(s.bottom,s.right):void 0,borderBottomLeftRadius:i.bottomLeft?i.bottomLeft+Math.min(s.bottom,s.left):void 0},l=o?jS(a,e,r):a,u=KE(e.strokes,r),c=VK(e,r);return{...l,borderStyle:e.strokeDashes?"dashed":"solid",borderColor:n&&u===void 0?"rgba(0, 0, 0, 0)":u,borderTopWidth:c.top,borderBottomWidth:c.bottom,borderLeftWidth:c.left,borderRightWidth:c.right}}var zE=(e,t)=>{if(tl(t))return{top:0,left:0,right:0,bottom:0};let r=ac(e);return{top:-r.top,left:-r.left,right:-r.right,bottom:-r.bottom}};function VK(e,t){let{codeSyntaxLanguage:n,shouldOutputVariables:r}=t;if(e.individualStrokeWeights){let i=v(e.individualStrokeWeights.top),s=v(e.individualStrokeWeights.right),a=v(e.individualStrokeWeights.bottom),l=v(e.individualStrokeWeights.left);if(r){let u=Pe(n&&e.boundVariables?.individualStrokeWeights?.BORDER_TOP_WEIGHT?.resolvedCodeSyntax?.[n],e.boundVariables?.individualStrokeWeights?.BORDER_TOP_WEIGHT?.resolvedName,i,t),c=Pe(n&&e.boundVariables?.individualStrokeWeights?.BORDER_RIGHT_WEIGHT?.resolvedCodeSyntax?.[n],e.boundVariables?.individualStrokeWeights?.BORDER_RIGHT_WEIGHT?.resolvedName,s,t),f=Pe(n&&e.boundVariables?.individualStrokeWeights?.BORDER_BOTTOM_WEIGHT?.resolvedCodeSyntax?.[n],e.boundVariables?.individualStrokeWeights?.BORDER_BOTTOM_WEIGHT?.resolvedName,a,t),d=Pe(n&&e.boundVariables?.individualStrokeWeights?.BORDER_LEFT_WEIGHT?.resolvedCodeSyntax?.[n],e.boundVariables?.individualStrokeWeights?.BORDER_LEFT_WEIGHT?.resolvedName,l,t);return{top:u??i,right:c??s,bottom:f??a,left:d??l}}return{top:i,right:s,bottom:a,left:l}}let o=v(e.strokeWeight);return{top:o,right:o,bottom:o,left:o}}function Ud(e){if(e.individualStrokeWeights)return{top:v(e.individualStrokeWeights.top),right:v(e.individualStrokeWeights.right),bottom:v(e.individualStrokeWeights.bottom),left:v(e.individualStrokeWeights.left)};let t=v(e.strokeWeight);return{top:t,right:t,bottom:t,left:t}}var HK=["ON_CLICK","ON_PRESS","MOUSE_DOWN","MOUSE_UP"];function Li(e){let t=e.interactions??[];for(let n of t)if(HK.find(r=>r===n.event?.interactionType))return{cursor:"pointer"};return{}}var XE=e=>e.position==="absolute"&&["top","left","right","bottom"].every(n=>{let r=e[n];return r===0||r==="0"})?Object.entries(e).every(([n,r])=>r===void 0||["top","left","right","bottom","position"].includes(n)?!0:n==="display"?r==="block":!1):!1;function WK(e,t){return e.map(n=>
10598t.get(n)).filter(Boolean).filter(n=>n&&n.visible!==!1)}function Rv(e,t){return e.filter(n=>{let r=t.get(n);return r?r.type!=="RECTANGLE":!0})}function Av(e,t,n,r){let o=e(tc),i=WK(t,n),{renderOptions:s}=r,a=i.filter(f=>f.type==="FRAME");if(r.env==="server")return a.sort((f,d)=>f.size.x-d.size.x).map(f=>f.id);let u=$S(a,s),c=YK(u,o);return c?[c.nodeId]:[]}function $S(e,t){let n={breakpoints:[]};for(let r of e){let o="white";r.fills.every(a=>a.type==="SOLID")&&(o=KE(r.fills,t)??o);let s=r.name;n.breakpoints.push({nodeId:r.id,pageId:"",name:s,width:r.size.x,background:o})}return n.breakpoints.sort((r,o)=>o.width-r.width),n}function YK(e,t){let{breakpoints:n}=e;return t?n.find(r=>r.width<=t)??n[n.length-1]:n[0]}function yv(e,t,n,r){let o={...Ni(t),type:"INSTANCE",id:e.id,name:n?.name??t.name,mainComponentId:t.id,componentProperties:e.componentProperties,componentPropertyReferences:e.componentPropertyReferences,componentSetId:e.componentSetId,overrides:[]};for(let i of KK)i==="visible"&&r||(i in e?o[i]=e[i]:delete o[i]);return o}var KK=["constraints","constraintValues","layoutAlign","layoutGrow","gridColumnAnchorIndex","gridRowAnchorIndex","gridColumnSpan","gridRowSpan","layoutPositioning","relativeTransform","overrides","absoluteBoundingBox","isolatedAbsoluteRenderBounds","visible","scrollBehavior","maybeAnimateRotation"];function Nv(e,t,n){if(t?.value?.mainComponentId)return!0;let r=e.componentPropertyReferences?.mainComponent;if(r){let o=n?.[r];if(o&&!("isDefault"in o&&o.isDefault))return!0}return!1}function bv(e,t,n,r,o,i,s){let a=t.mainComponentId,l,u=t.componentPropertyReferences?.mainComponent;if(u&&i?.[u])s?a=s:a=i[u].value;else if(t.componentSetId){l=n.get(t.componentSetId);let d=o.instanceState.backingComponentId.get(e,r);if(d)a=d;else if(t.componentProperties&&l.type==="COMPONENT_SET"){let p=l.children.map(h=>n.get(h)),_=Object.entries(l.componentPropertyDefinitions??{}).map(([h,m])=>{if(m.type!=="VARIANT")return;let E=t.componentProperties[h];if(!E){console.warn(`missing component property on instance for node ${t.id}`);return}if(E.type==="SLOT")return;let O=E.type==="TEXT"?E.value.characters:E.value,I="boundVariables"in E?E.boundVariables:void 0,g=O;if(I?.value&&(g=o.variableState.evaluateVariable(e,I.value.id,r)),typeof g=="boolean"&&m.variantOptions){let S=m.variantOptions.map(A=>A.toLowerCase());if(g===!0){let A=m.variantOptions.find((R,N)=>S[N]==="true");A&&(g=A)}else if(g===!1){let A=m.variantOptions.find((R,N)=>S[N]==="false");A&&(g=A)}}return g=m.variantOptions?.includes(String(g))?g:m.defaultValue,`${h}=${String(g)}`}).filter(Boolean).join(", "),T=p.find(h=>h.name===_);T&&(a=T.id)}}let c=n.get(a);return{componentSet:l,component:c}}function Lv(e,t,n){if(e.type==="TEXT"&&"styleIdForText"in e.style&&e.style.styleIdForText){let r=e.style.styleIdForText,o=n.get(r);if(o){let i=t.get(o);i.type==="STYLE"&&i.styleType==="TEXT"&&Object.assign(e.style,Ni(i.style))}}}function ZS(e,t){if(!t||!("componentPropertyReferences"in e)||!e.componentPropertyReferences)return;let n=e.componentPropertyReferences;for(let[r,o]of Object.entries(n)){if(t[o]===void 0){let a=zK(o);for(let[l,u]of Object.entries(t))if(l.startsWith(a)){e[r]=u.value;break}continue}let i=t[o],s="boundVariables"in i?i.boundVariables?.value:void 0;if(s){let a=e;a.boundVariables||(a.boundVariables={}),a.boundVariables[r]=s}if(i.type==="IMAGE"){console.warn(`Attempted to apply image prop on node ${e.id}`);continue}if(r==="characters")if(i.type==="TEXT")for(let[a,l]of Object.entries(i.value))e[a]=l;else e[r]=String(i.value);else e[r]=i.value}}function zK(e){let t=e.lastIndexOf("#");return e.slice(0,t+1)}function Vd(e){let t={},n=e.split(",").map(r=>r.trim());for(let r of n){let o=r.indexOf("=");if(o>0){let i=r.slice(0,o).trim(),s=r.slice(o+1).trim();t[i]=s}}return t}function JS(e){if(e.startsWith("I")&&e.includes(";")){let t=e.split(";");if(t.length===2&&t[1])return t[1]}return e}function XK(e,t){let n=new Map;if(!e.mainComponentId)return n;for(let r of e.overrides)if("componentProperties"in r.value&&"mainComponentId"in r.value){let i=t.get(r.value.mainComponentId).componentSetId;if(i)for(let[s,a]of go(r.value.componentProperties)){let l=n.get(i);l?l.set(s,a.value):n.set(i,new Map([[s,a.value]]))}}return n}function jK(e){return"componentProperties"in e&&e.componentProperties!==void 0&&"componentSetId"in e&&e.componentSetId!==void 0}function $K(e,t,n,r){for(let o of n){let i=r.get(o)||new Map;i.set(e,t),r.set(o,i)}}function ZK(e,t,n,r){let o=t.get(e.componentSetId);if(o)for(let[i,s]of go(e.componentProperties))for(let[a,l]of o)Ge(s.value,l)&&Ge(i,a)&&$K(i,s.value,n,r)}function JK(e,t,n,r){if(!("children"in e)||!e.children||!t.size)return;let o=new Set,i=a=>
10598{if(a.type==="INSTANCE"&&a.componentSetId&&t.has(a.componentSetId)){o.add(a.id);return}if("children"in a&&a.children)for(let l of a.children){let u=JS(l);i(n.get(u))}};e.componentSetId&&i(n.get(e.componentSetId));function s(a){if(jK(a)&&ZK(a,t,o,r),"children"in a&&a.children)for(let l of a.children){let u=JS(l),c=n.get(u);s(c)}}for(let a of e.children){let l=JS(a),u=n.get(l);s(u)}}function qK(e,t,n,r,o){if(!("children"in e)||!o.has(t.id))return;let i=o.get(t.id),s=new Map;for(let[u,c]of go(t.componentProperties))i?.has(u)||s.set(u,c.value);let a=Vd(n.name);for(let[u,c]of go(a))s?.has(u)||s.set(u,c);let l=e.children||[];for(let u of l){let c=r.get(u),f=Vd(c.name),d=Object.fromEntries(s);if(Ge(d,f)&&o.has(t.id))return c}}function Cv(e,t){let{nodeById:n,websiteContext:{inheritedVariantPropertiesCache:r,processedNodesCache:o}}=t,i=n.get(e),s=n.get(i.mainComponentId);if(!o.has(i.id)){let a=XK(i,n);JK(s,a,n,r),o.add(i.id)}}function Pv(e,t,n,r,o){let{component:i}=t,{componentSet:s}=t;if(!s||!("children"in s))return i;let a=o.get(e.id);if(a)return n.get(a);let l=n.get(e.mainComponentId),u=qK(s,e,l,n,r);return u&&(i=u),i}function qS(e,t,n,r){let o={...e(r.modeContextState),...t};if(!("explicitVariableModes"in n)||!n.explicitVariableModes)return o;let i={};for(let[s,a]of Object.entries(n.explicitVariableModes)){let l=Dv(s,r)||s,u=r.variableState.getAssetKeyOrLocalGuid(l);i[l]=a,i[u]=a}for(let[s,a]of Object.entries(o)){let l=Dv(s,r)||s;if(!l)continue;i[l]===void 0&&(i[l]=a);let u=r.variableState.getAssetKeyOrLocalGuid(l);i[u]===void 0&&(i[u]=a)}return i}function Dv(e,t){try{if(!t.variableState.hasAssetId(e))return;let n=t.variableState.getCollectionInfo(e);return n?n.baseCollectionId:void 0}catch{return}}var jE={internalNames:new Set(["name","size","min-size","max-size","is-frame-clipping-disabled","opacity","rectangle-top-left-corner-radius","rectangle-top-right-corner-radius","rectangle-bottom-left-corner-radius","rectangle-bottom-right-corner-radius","corner-radius","stack-counter-sizing","stack-primary-sizing","prototype-interactions","behaviors"]),bundleNames:new Set(["name","size","minWidth","minHeight","maxWidth","maxHeight","clipsContent","opacity","topLeftRadius","topRightRadius","bottomLeftRadius","bottomRightRadius","cornerRadius","counterAxisSizingMode","primaryAxisSizingMode","interactions","behaviors"])};function vv(e,t){let{isVisible:n,hasNonUnitScaleFactor:r,hasInstanceSwap:o,hasSublayerOverride:i,dependsOnNonDefaultMode:s,overriddenFields:a}=e,l=[];o&&l.push("instance_swap"),n||l.push("not_visible"),r&&l.push("scale_factor"),s&&l.push("non_default_variable_mode");let u=a.some(_=>!jE.internalNames.has(_));(i||u)&&l.push("unsupported_overrides");let c=!n||r,f=l.includes("non_default_variable_mode")||l.includes("unsupported_overrides"),d=o&&!(t.allowUnsupportedOverrides&&t.allowLossyInstanceSwaps);return{isReplaceable:!c&&!d&&(!f||t.allowUnsupportedOverrides),reasons:l}}function $E(e,t,n){let r=n.get(t);return r||(e!==null&&typeof e=="object"&&"replaceabilityInputs"in e?e.replaceabilityInputs??void 0:void 0)}function xv(e){let{node:t,nodeId:n,resultNode:r,overridesFromParent:o,inheritedSublayerOverridePaths:i,currentPathInParent:s,stablePathToReplaceabilityInputs:a}=e,l=$E(t,n,a);if(!l)return;let u=l.isVisible??!0,c="uniformScaleFactor"in r?r.uniformScaleFactor:void 0,f=c!=null?c!==1:l.hasBakedNonUnitScaleFactor??!1,d="componentProperties"in r?r.componentProperties:void 0,p=Object.values(d??{}).some(S=>S.type==="INSTANCE_SWAP"),_=vs(s,o),h=((_?.value?.overrides?Zn(_.value.overrides,{nodePath:s??[]}):void 0)??[]).some(S=>S.key.length>0||Object.keys(S.value??{}).some(A=>!jE.bundleNames.has(A))),m=s!=null&&o!=null&&(h||o.some(S=>S.key.length>s.length&&s.every((A,R)=>S.key[R]===A))),E=s!=null&&(i??[]).some(S=>S.length>s.length&&s.every((A,R)=>S[R]===A)),O=l.definitionHasSublayerOverride||m||E,I=l.dependsOnInheritedNonDefaultMode,g={};for(let S of l.overrides??[]){let A="overrideValues"in S?S.overrideValues:void 0,R=("overrideValues"in S?Object.keys(S.overrideValues):S.overriddenFields).filter(N=>!jE.internalNames.has(N));R.length>0&&(g[S.nodeId]=Object.fromEntries(R.map(N=>[N,A?A[N]:"unknown"])))}return{unsupportedOverrides:g,isVisible:u,hasNonUnitScaleFactor:f,hasInstanceSwap:p,hasSublayerOverride:O,dependsOnNonDefaultMode:I,overriddenFields:l.overriddenFields}}function QK(e,t){let n=t.get(e);if(!("componentSetId"in n)||n.componentSetId==null||typeof n.name!="string")return{};let r={};for(let[o,i]of Object.entries(Vd(n.name)))r[o]={type:"VARIANT",value:i,boundVariables:{}};return r}function QS({websiteContext:e,node:t,resultNode:n,resolvedComponentId:r,props:o,suppressComponentize:i,currentPathInParent:s}){if(i||!e.renderOptions.componentize)return{info:void 0,suppressSubtree:!0};let a=e.renderOptions.componentize,l=xv({node:t,nodeId:o.nodeId,resultNode:n,overridesFromParent:o.overrides,inheritedSublayerOverridePaths:o.sublayerOverridePaths,currentPathInParent:s,stablePathToReplaceabilityInputs:o.stablePathToReplaceabilityInputs});if(!l)return{info:void 0,suppressSubtree:!1};let u=!l.isVisible||l.hasNonUnitScaleFactor;if(!(a.isPermittedForNode?.(o.nodeId)??!0))return{info:void 0,suppressSubtree:u};let f=vv(l,a),d=e.componentizeDecisions;
10598if(d&&f.reasons.length>0){let p=o.nodeById.get(r),_="componentSetId"in p&&p.componentSetId||r,T=o.nodeById.get(_,!0),h={...f,nodeId:o.nodeId,symbolId:_,componentName:T.id!==wd.id&&"name"in T?T.name:void 0,unsupportedOverrides:l.unsupportedOverrides};d.some(m=>m.nodeId===h.nodeId&&Ge(m,h))||d.push(h)}return f.isReplaceable?{info:{subtype:"instance",mainComponentId:r,props:{...n.componentProperties,...QK(r,o.nodeById)}},suppressSubtree:!0}:{info:void 0,suppressSubtree:u}}var e5=["minWidth","maxWidth","minHeight","maxHeight","itemSpacing","paddingLeft","paddingTop","paddingRight","paddingBottom","counterAxisSpacing","strokeWeight"];function ZE(e,t=1,n=1){if(t===1)return;let r=e;for(let o of e5)r[o]!==void 0&&(r[o]*=t);if(r.size){let{x:o,y:i}=r.size;r.size={x:o*t,y:i*t}}if(r.rectangleCornerRadii&&(r.rectangleCornerRadii=r.rectangleCornerRadii.map(o=>o*t)),r.individualStrokeWeights&&(r.individualStrokeWeights=Object.fromEntries(Object.entries(r.individualStrokeWeights).map(([o,i])=>[o,i*t]))),r.effects)for(let o of r.effects)"radius"in o&&o.radius&&(o.radius*=t),(o.type==="DROP_SHADOW"||o.type==="INNER_SHADOW")&&(o.offset.x*=t,o.offset.y*=t);if(r.constraintValues){let o=t/n;r.constraintValues=Object.fromEntries(Object.entries(r.constraintValues).map(([i,s])=>[i,{...s,pixelOffset:s.pixelOffset*o}]))}r.style?.fontSize&&(r.style.fontSize=Math.round(r.style.fontSize*t*100)/100),r.style?.lineHeightPx&&(r.style.lineHeightPx*=t),r.absoluteBoundingBox&&(r.absoluteBoundingBox.width*=t,r.absoluteBoundingBox.height*=t)}function Mv(e,t,n){let r=e.componentPropertyReferences?.slotContentId;if(!r)return null;let o=n[r];if(!o||o.type!=="SLOT")return De.reportError("Slot content node not found or not a slot"),null;if(!yd(o.value.guid))return De.reportError("Invalid slot content node ID"),null;let i=t.get(Je(o.value.guid));return i.type!=="FRAME"?(De.reportError("Expected slot content node to be a frame"),null):i}function Fv(e,t){return{...e,size:t.size,relativeTransform:t.relativeTransform,children:t.children,isAssignedSlot:!0}}var Gv="I";function t5(e){return e.startsWith(Gv)}function lc(e){return t5(e)?e:`${Gv}${e}`}function JE(e){let t=fe(),n=(0,xs.useContext)(Fd),r=(0,xs.useRef)(),o=r.current,i=new Map,s=e.map(f=>{let d=f.keyWithOverrides??f.key,p=o?o.get(d):void 0;return(!p||!Ge(p.args,f))&&(p={args:f,value:n5(f,n,t)}),i.set(d,p),p.value}),a=Ps(s,Ge),l=(0,xs.useMemo)(()=>ce(f=>{let d=a.map(f),p=[],_=[];return d.forEach(T=>{"errorMessage"in T?_.push(T):p.push(T)}),{nodes:p,errors:_}}),[a]),{nodes:u,errors:c}=ge(l);return(0,xs.useEffect)(()=>(c.forEach(f=>{n.setMaterializationError(f.nodeId,f)}),()=>{c.forEach(f=>{n.setMaterializationError(f.nodeId)})}),[c,n]),r.current=i,u}function n5(e,t,n){return ce(r=>{try{let o=kv(e,r,n);return r(Gd)&&Tv(o),o}catch(o){return o instanceof Error?(t.reportError(o,{"error-boundary-name":e.keyWithOverrides??e.key}),{nodeName:e.keyWithOverrides??e.key,nodeId:e.nodeId,errorMessage:o.message+` 10599`+o.stack}):{nodeName:e.keyWithOverrides??e.key,nodeId:e.nodeId,errorMessage:String(o)}}})}var r5={mainComponentId:!0,overrides:!0,componentProperties:!0,componentPropertyDefinitions:!0,componentSetId:!0,mainComponent:!0,overrideKey:!0};function nl(e,t,n){return kv(t,e,n)}var o5=600;function kv(e,t,n){let{key:r,parentState:o,nodeById:i,animateRootIds:s,animateProps:a,assetIdToGuid:l,guidToUrl:u}=e,{autoLayoutTransitionAtom:c,transitionProps:f}=a??{},d=e.overrides,p=i.get(e.backingLayerId??e.nodeId),_=p,T=_.timelineOffset,h=_.outerTimelineDuration,m=T??e.ancestorTimelineOffsetSec,E=T!=null?h:e.ancestorOuterTimelineDurationSec;if(p.type==="SLOT"){let me=Mv(p,i,e.componentProperties??{});me&&(p=Fv(p,me))}let O=s.has(e.backingLayerId??e.nodeId),I=Ni(p),g,S,A=!1,R=e.suppressComponentize??!1,N,L=!1;"isInAnimateTree"in I&&I.isInAnimateTree&&(L=!0),e.parentPath?(S=[...e.parentPath,r],I.type==="INSTANCE"?g=[]:g=S):I.type==="INSTANCE"&&(g=[],S=[]),n.renderOptions.useFigmaComponents&&"componentPropertyReferences"in I&&I.componentPropertyReferences&&I.componentPropertyReferences.visible&&(I.visible=!0),ZS(I,e.componentProperties);let b=I.type==="INSTANCE"?I.mainComponentId:void 0;if(A=eR(I,S,d,void 0,"uniformScaleFactor"in I?I.uniformScaleFactor:void 0,e.componentProperties)||A,I.type==="INSTANCE"&&I.mainComponentId&&I.mainComponentId!==b){let me=i.get(I.mainComponentId);me.type==="COMPONENT"&&me.componentSetId&&(I.componentSetId=me.componentSetId)}if(I.type==="INSTANCE"){let me=I.overrides?.find(_n=>_n.key.length===0);me&&Bv(I,me)}let M=o.getChildState(r,I,i,n.atomStore),w=M.instanceState.backingComponentId,{parentStates:B}=e;I.type==="INSTANCE"&&(B===null&&(B=new Map),"componentSetId"in I&&I.componentSetId&&(B=new Map(B),B.set(I.componentSetId,{backingComponentIdState:w,transitionAtom:M.transitionAtom,parentAutoLayoutTransitionAtom:c,stateResetHandlers:M.stateResetHandlers})));let y,K,C=!1;try{if(I.type==="INSTANCE"){p.type;let me=qS(t,e.modeContext,I,M),_n=vs(S,d),no=_n?.value?.mainComponentId??void 0,Vn=bv(t,I,i,me,M,e.componentProperties,no);if(K=Vn.component,K.isUnreachable){let Po=new _t("Component node was incorrectly marked for pruning");Po.errorDetail=`instanceId: ${I.id}, componentId: ${K.id}`,De.reportError(Po)}
10599I.componentSetId&&s.has(I.componentSetId)&&(C=!0),K=Pv(I,{component:Vn.component,componentSet:Vn.componentSet},i,n.inheritedVariantPropertiesCache,n.computedVariantCache);let Xi=Nv(I,_n,e.componentProperties),Hn=QS({websiteContext:n,node:p,resultNode:I,resolvedComponentId:K.id,props:e,currentPathInParent:S,suppressComponentize:R});R=Hn.suppressSubtree,N=Hn.info,I=yv(I,K,Vn.componentSet?.type==="COMPONENT_SET"?Vn.componentSet:void 0,Xi),ZS(I,e.componentProperties),Xi&&b!==I.mainComponentId&&(Vv(I,p),Hv(I,p,_n)),A=eR(I,g,Zn(I.overrides,{nodeId:I.id}),{backingComponent:K,nodeById:i},"uniformScaleFactor"in p?p.uniformScaleFactor:void 0,I.componentProperties)||A}else if(I.type==="COMPONENT"&&!I.componentSetId&&!e.isRoot&&!R&&n.renderOptions.componentize!=null&&(n.renderOptions.componentize.isPermittedForNode?.(e.nodeId)??!0))N={subtype:"symbol",mainComponentId:I.id,props:{}},R=!0;else if((I.type==="SVG"||I.type==="IMAGE")&&(p.type==="SVG"||p.type==="IMAGE")&&I.flattenedFromComponentId!=null){let me=QS({websiteContext:n,node:p,resultNode:I,resolvedComponentId:I.flattenedFromComponentId,props:e,currentPathInParent:S,suppressComponentize:R});R=me.suppressSubtree,N=me.info}I=KD(I),Lv(I,i,l),y=qS(t,e.modeContext,I,M),A=Ov(t,I,M.variableState,y,n.renderOptions)||A,a5(t,I,e.nodeId,e.stablePathToAssetInfo,e.stablePathToConstraints,n.websiteData.assets),YD(I,M.cmsDataState,u),A&&I.type==="SVG"&&(I.isDynamic=!0)}catch(me){throw console.error("Materialization error",me),new q("Materialization error",me)}Kv(I);let G={websiteContext:n,node:I,sourceStablePath:u5(I),variableState:M.variableState,backingComponentIdState:w,parentStates:B,transitionAtom:M.transitionAtom,nodeById:i,modeContext:y},P=nR(G),X=P?.length?Wv(t,G,P):void 0,oe=Yv(t,M.transitionAtom,M.autoLayoutTransitionAtom),{disableBehaviors:ve,disableImageOptimization:be,renderComponentSetNodes:Le}=n.renderOptions,Ce=I;Ce.timelineOffset==null&&m!=null&&(Ce.timelineOffset=m,Ce.outerTimelineDuration=E);let Ue=tR(I,me=>i.get(me)),ae=RD(C,O,!!ve,f),le={transitionData:oe??f?.transitionData,smartAnimateType:ae},Re=O||L?c??M.autoLayoutTransitionAtom:void 0,Ye=e.rootOffset??("absoluteBoundingBox"in I?{x:I.absoluteBoundingBox.x,y:I.absoluteBoundingBox.y}:void 0),de=[];if("children"in I&&Array.isArray(I.children)){let me=I.children,_n,{isFigmake:no}=n;RS(p)&&(me=Av(t,me,i,n),_n=me);let Vn=I.type==="FRAME"&&e.breakpointWidth!==void 0&&"size"in I&&Math.abs(I.size.x-e.breakpointWidth)<1;no&&Vn&&(me=Rv(me,i));let Xi=I.type==="INSTANCE"?wv(I,{backingComponent:K,nodeById:i},Zn(I.overrides,{nodeId:I.id})):d,Hn=I.type==="INSTANCE"?s5(i5(e.sublayerOverridePaths,S),$E(p,e.nodeId,e.stablePathToReplaceabilityInputs)?.unappliedSublayerOverridePaths):e.sublayerOverridePaths,Po=Xi?.filter(ii=>ii.value.name!==void 0),ri=l5(e.stablePathPrefix,I),Of=new Map,oi=new Map,If=[];for(let ii=0;ii<me.length;ii++){let ji=me[ii],hO=_n?_n[ii]:void 0,tn=i.get(ji),$i=tn.name,OO=tn.overrideKey,IO=RS(p)&&tn.type==="FRAME",gO=IO?tn.size.x:void 0,Ta=Ye;if(IO)Ta={x:tn.absoluteBoundingBox.x,y:tn.absoluteBoundingBox.y};else if(I.type==="INSTANCE"){let Rf={x:Ye.x-I.absoluteBoundingBox.x,y:Ye.y-I.absoluteBoundingBox.y};Ta={x:K.absoluteBoundingBox.x+Rf.x,y:K.absoluteBoundingBox.y+Rf.y}}let jl=Of.get($i)??0;Of.set($i,jl+1);let kp=uc($i,jl,I),gf=Po?Uv([...g??[],kp],Po)??$i:$i,Sf=oi.get(gf)??0;oi.set(gf,Sf+1);let Zi=ri?ri.concat(";",OO??ji):ji;If.push(Zi||ji);let SO=(e.uniformScaleFactor||1)*("uniformScaleFactor"in tn&&tn.uniformScaleFactor?tn.uniformScaleFactor:1);de.push({key:kp,keyWithOverrides:uc(gf,Sf,I),parentState:M,nodeId:Zi,stablePathPrefix:ri,backingLayerId:ji,modeContext:y,parentPath:g,preexpandedNodeId:hO,nodeById:i,assets:e.assets,assetIdToGuid:l,guidToUrl:u,animateRootIds:s,stablePathToAssetInfo:e.stablePathToAssetInfo,stablePathToConstraints:e.stablePathToConstraints,stablePathToReplaceabilityInputs:e.stablePathToReplaceabilityInputs,overrides:Xi,sublayerOverridePaths:Hn,componentProperties:I.type==="INSTANCE"||I.type==="CODE_INSTANCE"||I.type==="CODE_LAYER"?I.componentProperties:e.componentProperties,parentStates:B,animateProps:{transitionProps:le,autoLayoutTransitionAtom:Re},uniformScaleFactor:SO,breakpointWidth:gO??e.breakpointWidth,rootOffset:Ta,ancestorTimelineOffsetSec:m,ancestorOuterTimelineDurationSec:E,suppressComponentize:R})}I.children=If}let Pt=f5(t,e.assets,I),tt=c5(I,r5),ft=tt.type==="COMPONENT"||tt.type==="INSTANCE"?tt.type:void 0;ft&&(tt.type="FRAME");let xe=RE(tt);N&&(xe.replaceableReferenceInfo=N);let dt=xe.type;return`${dt}`,Object.assign(xe,{materializedChildNodeProps:de,transitionProps:le,interactions:P,interactionHandlers:X,key:e.keyWithOverrides??e.key,variableState:M.variableState,modeContext:y,keyframeData:Ue,transitionOverrides:I.transitionOverrides,assets:Pt}),(I.type==="CODE_INSTANCE"||I.type==="CODE_LAYER")&&Object.assign(xe,{componentProperties:I.componentProperties}),(xe.type==="RECTANGLE"||xe.type==="IMAGE"||xe.type==="FRAME"||xe.type==="SVG")&&!be&&Pt&&Object.values(Pt).length&&(e.breakpointWidth,xe.lazyLoad=xe.absoluteBoundingBox.x>Ye.x+e.breakpointWidth||xe.absoluteBoundingBox.y>Ye.y+o5),ft&&Object.assign(xe,{originalType:ft}),FD(xe),ZE(xe,e.uniformScaleFactor,"uniformScaleFactor"in p?p.uniformScaleFactor:void 0),xe}function uc(e,t,n){return n?.type==="WEBPAGE"?"":e+t}function i5(e,t){if(!e||e.length===0)return;if(!t||t.length===0)return e;let n=e.filter(r=>r.length>t.length&&t.every((o,i)=>r[i]===o)).map(r=>r.slice(t.length));return n.length>0?n:void 0}function s5(e,t){return!e||e.length===0?t&&t.length>0?t:void 0:!t||t.length===0?e:[...e,...t]}
10599function a5(e,t,n,r,o,i){if(!n.includes("I"))return;t.id=n;let s=o.get(n);if(s&&"constraintValues"in t&&(t.constraintValues=s),t.type==="SVG"||t.type==="IMAGE"){let a=r.get(n),l=a?.hash;if(l){let u=i.get(l);if(u){let c=e(u);c&&c.type==="GENERATED_ASSET"&&(t.hash=l,t.type=c?.format==="SVG"?"SVG":"IMAGE")}}a?.constraintValues&&(t.constraintValues=a.constraintValues)}}function l5(e,t){if(e)return t.type==="INSTANCE"||t.type==="SLOT"&&t.isAssignedSlot?lc(t.id):e;if(t.type==="INSTANCE")return lc(t.id)}function u5(e){return e.type==="INSTANCE"?lc(e.id):e.id}function c5(e,t){let n={...e};for(let r in t)delete n[r];return n}function f5(e,t,n){let r,o=i=>{let s=t.get(i),a=e(s);r=r??{},r[i]=a};if("fills"in n)for(let i of n.fills)i.visible!==!1&&(i.type==="IMAGE"&&o(ME(i)),i.type==="VIDEO"&&o(i.videoRef));if("hash"in n&&o(n.hash),"behaviors"in n){let i=zS(n.behaviors);if(i&&o(i),n?.behaviors?.code!==void 0)for(let s of n.behaviors.code)for(let[a,l]of Object.entries(s.assignments))typeof l=="object"&&l.image!==null&&(o(l.image),l.animatedImage!==null&&o(l.animatedImage))}if("componentProperties"in n)for(let i of Object.values(n.componentProperties??{}))i.type==="IMAGE"&&i.value.image&&(o(i.value.image),i.value.animatedImage!==null&&o(i.value.animatedImage));if("styleOverrideTable"in n){for(let i of Object.values(n.styleOverrideTable))if(i.fills)for(let s of i.fills)s.visible!==!1&&s.type==="IMAGE"&&o(ME(s))}return"effectSvgFileName"in n&&typeof n.effectSvgFileName=="string"&&o(n.effectSvgFileName.replace(".svg","")),r}function wv(e,t,n){if(!n)return;let r=$v(e,t),o=[];for(let i of n){if(i.key.length===0)continue;let s=zv(i.key,e,t.nodeById),a=i.key,l=!1;if(!s){let f=i.key[i.key.length-1];let d=p5(f,e,t.nodeById);d&&(s=d.node,a=d.key,l=!0)}if(!s)continue;let u={key:a,value:i.value,componentId:i.componentId};if(r){u.value={};let f=zv(i.key,r,t.nodeById);if(f===void 0){let d=new _t("No node in variant for override");d.errorDetail=JSON.stringify({overrideKey:i.key,nodeId:e.id,nodeName:e.name,variantId:r.id,variantName:r.name}),De.reportError(d);continue}for(let[d,p]of go(i.value)){let _=iR(d,p,s,f);_!==void 0&&(u.value[d]=_)}}let c=o.findIndex(f=>Ge(f.key,a));if(c>-1){let f=o[c];l?u.value=rR(u,f):u.value=rR(f,u),o[c]=u}else o.push(u)}return o}function vs(e,t){if(!(!t||!e))return t.find(n=>Ge(n.key,e))}var go=e=>Object.entries(e);function jv(e,t){let n=e.filter(o=>Je(o.id)!==Ze),r=t.filter(o=>o.isDeleted).map(o=>Je(o.id));return n=n.filter(o=>!r.includes(Je(o.id))),t.forEach(o=>{if(o.isDeleted)return;let i=n.findIndex(s=>Je(s.id)===Je(o.id));i===-1?n.push(o):n[i]=o}),n}function eR(e,t,n,r,o=1,i){if(!t||!n)return!1;let s=vs(t,n);if(s?.value===void 0)return!1;if((e.type==="SVG"||e.type==="IMAGE")&&s.value.overrides){let c=vs([],Zn(s.value.overrides,{nodePath:t}));c?.value?.overrides,s={...s,value:{...s.value,...c?.value??{}}},delete s.value.overrides}let l=o!==0?1/o:1;ZE(s.value,l,l);let u=$v(e,r);for(let[c,f]of go(s.value))m5(c,e,i)||(e.type==="INSTANCE"&&c==="overrides"?f=oR(Zn(e.overrides,{nodeId:e.id}),Zn(f,{nodePath:t})):c==="interactions"&&"interactions"in e&&(f=jv(e.interactions??[],f)),!(e.type==="INSTANCE"&&u&&(f=iR(c,f,r.backingComponent,u),f===void 0))&&(f===null?delete e[c]:e[c]=f));return!0}function Bv(e,t){if(t.value.explicitVariableModes===null?delete e.explicitVariableModes:e.explicitVariableModes=t.value.explicitVariableModes,t.value.boundVariables===null||t.value.boundVariables?.componentProperties===null)for(let n in e.componentProperties){let r=e.componentProperties[n];r&&"boundVariables"in r&&r?.boundVariables&&delete r.boundVariables}else if(t.value.boundVariables?.componentProperties)for(let n in e.componentProperties){let r=e.componentProperties[n];let i=t.value.boundVariables.componentProperties[n];i&&"boundVariables"in r&&(r.boundVariables={value:i})}}function rR(e,t){let n=e.value,r=t?.value||{},o={...n,...r};return"overrides"in n&&"overrides"in r&&(o.overrides=oR(Zn(n.overrides,{overrideId:n.id,overrideKey:n.overrideKey}),Zn(r.overrides,{overrideId:r.id,overrideKey:r.overrideKey}))),"interactions"in n&&"interactions"in r&&(o.interactions=jv(n.interactions??[],r.interactions??[])),o}function oR(e,t){if(!e)return t;if(!t)return e;if(e&&t){let n=[];for(let r of e){let o=vs(r.key,t);n.push({key:r.key,componentId:o?.componentId??r.componentId,value:rR(r,o)})}for(let r of t)vs(r.key,n)||n.push(r);return n}}var d5=new Set(["characters","characterStyleOverrides","styleOverrideTable","lineTypes","lineIndentations","fontSize","letterSpacing","lineHeight","fontStyle","fontVariations","inheritTextStyleId","lineStyleOverrides","resolvedParagraphValues"]);function iR(e,t,n,r){if(e==="name")return t;if(e==="interactions"){let o=e in r?r.interactions??[]:[],i=new Set(o.map(a=>Je(a.id)??Ze));return i.add(Ze),t.filter(a=>!i.has(Je(a.id)??Ze))}else if(e==="size"&&e in n&&e in r){let o=t;return{x:n.size.x===r.size.x?o.x:n.size.x,y:n.size.y===r.size.y?o.y:n.size.y}}else{if(e==="componentProperties")return t;if(e==="overrides"&&e in n&&e in r){let o=[];for(let i of Zn(t,{newNodeId:n.id,origNodeId:r.id})){let s=n.overrides.find(c=>Ge(c.key,i.key)),a=r.overrides.find(c=>Ge(c.key,i.key));if(!s||!a){o.push(i);continue}let l={key:i.key,value:{},componentId:i.componentId},u=!1;for(let[c,f]of go(i.value))f=iR(c,f,s.value,a.value),f!==void 0&&(l.value[c]=f,u=!0);u&&o.push(l)}return o}else if(d5.has(e))return t}if(Ge(n[e],r[e]))return t}function $v(e,t){if(!(e.type==="INSTANCE"&&t&&e.componentSetId&&e.componentProperties))return;let n=e.componentProperties;if(!n){let i=new _t("Variant instance is missing componentProperties");i.errorDetail=JSON.stringify({nodeId:e.id,componentSetId:e.componentSetId,wasNull:n===null}),De.reportError(i);return}let r=t.nodeById.get(e.componentSetId);r!==void 0&&r.type;let o=go(n).map(([i,s])=>s.type!=="VARIANT"?void 0:`${i}=${String(s.value)}
10599`).filter(Boolean).join(", ");if(o&&t.backingComponent.name!==o){for(let i of r.children){let s=t.nodeById.get(i);if(s.name===o)return s}console.warn("Could not find initial variant for instance",e.id)}}function Zv(e,t){return e.type==="FRAME"||e.type==="SLOT"||e.type==="GROUP"||e.type==="INSTANCE"&&t.id===e.id||e.type==="COMPONENT"&&t.id===e.id||e.type==="REPEATER"}function zv(e,t,n){let r=t;for(let o of e){if(!r||!Zv(r,t))return;let i=r.children.map(a=>n.get(a));r=void 0;let s=new Map;for(let a=0;a<i.length;++a){let l=i[a];let u=s.get(l.name)??0;s.set(l.name,u+1);let c=uc(l.name,u);if(o===c){r=l;break}}}return r}function p5(e,t,n){let r=[{key:[],node:t}],o=new Map;for(;r.length>0;){let i=r.pop();let s=o.get(i.node.name)??0;if(uc(i.node.name,s)===e)return i;if(o.set(i.node.name,s+1),!Zv(i.node,t))continue;let a=i.node.children.map(c=>n.get(c)),l=new Map,u=[];a.forEach(c=>{let f=l.get(c.name)??0;l.set(c.name,f+1),u.push({key:[...i.key,uc(c.name,f)],node:c})}),r.push(...u.reverse())}}function Uv(e,t){for(let n of t)if(n.value.name!==void 0&&n.value.name!==null&&Ge(n.key,e))return n.value.name}function Vv(e,t){let n=e.overrides?.find(r=>r.key.length===0);if(n&&n.value.size){let r=n.value.size,o="uniformScaleFactor"in t?t.uniformScaleFactor:void 0,i=o?{x:r.x/o,y:r.y/o}:r;e.size=i}}function Xv(e,t){return e?.filter(n=>n.componentId===t)??[]}function Hv(e,t,n){let r=Xv(Zn(t.overrides),e.mainComponentId),o=n?.value?.overrides?Xv(Zn(n.value.overrides),e.mainComponentId):void 0;e.overrides=oR(r,o)??[]}function m5(e,t,n){if(!n||!("componentPropertyReferences"in t))return!1;let r=t.componentPropertyReferences?.[e];if(!r)return!1;let o=n[r];return o===void 0?!1:!("isDefault"in o&&o.isDefault)}var E5={E5FBBA911B2B7A09E649D4BE6CDF8591EAEFC881:!1};function qE(e){return e&&e.E5FBBA911B2B7A09E649D4BE6CDF8591EAEFC881!==void 0?e.E5FBBA911B2B7A09E649D4BE6CDF8591EAEFC881:E5.E5FBBA911B2B7A09E649D4BE6CDF8591EAEFC881}function cc(e,t){throw new Error(t??`Uncaught type ${JSON.stringify(e)}`)}function Jv(e,t,...n){typeof FIGBUILD_PROD=="boolean"&&!FIGBUILD_PROD&&!e&&console.error(`Failed assertion: ${t}`,...n)}var _5={"size.x":"WIDTH","size.y":"HEIGHT",minWidth:"MIN_WIDTH",maxWidth:"MAX_WIDTH",minHeight:"MIN_HEIGHT",maxHeight:"MAX_HEIGHT",opacity:"OPACITY",visible:"VISIBLE",cornerRadius:"CORNER_RADIUS",topLeftRadius:"RECTANGLE_TOP_LEFT_CORNER_RADIUS",topRightRadius:"RECTANGLE_TOP_RIGHT_CORNER_RADIUS",bottomLeftRadius:"RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS",bottomRightRadius:"RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS","rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS":"RECTANGLE_TOP_LEFT_CORNER_RADIUS","rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS":"RECTANGLE_TOP_RIGHT_CORNER_RADIUS","rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS":"RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS","rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS":"RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS","individualStrokeWeights.BORDER_TOP_WEIGHT":"BORDER_TOP_WEIGHT","individualStrokeWeights.BORDER_RIGHT_WEIGHT":"BORDER_RIGHT_WEIGHT","individualStrokeWeights.BORDER_BOTTOM_WEIGHT":"BORDER_BOTTOM_WEIGHT","individualStrokeWeights.BORDER_LEFT_WEIGHT":"BORDER_LEFT_WEIGHT",paddingLeft:"STACK_PADDING_LEFT",paddingRight:"STACK_PADDING_RIGHT",paddingTop:"STACK_PADDING_TOP",paddingBottom:"STACK_PADDING_BOTTOM",itemSpacing:"STACK_SPACING",counterAxisSpacing:"STACK_COUNTER_SPACING",rotation:"MOTION_ROTATION",translationX:"MOTION_TRANSLATION_X",translationY:"MOTION_TRANSLATION_Y",translationXY:"MOTION_TRANSLATION_XY",scaleX:"MOTION_SCALE_X",scaleY:"MOTION_SCALE_Y",scaleXY:"MOTION_SCALE_XY",shear:"MOTION_SHEAR",fontSize:"FONT_SIZE",letterSpacing:"LETTER_SPACING",lineHeight:"LINE_HEIGHT",paragraphSpacing:"PARAGRAPH_SPACING",paragraphIndent:"PARAGRAPH_INDENT",characters:"TEXT_DATA",fills:"fills",strokes:"strokes"};function T5(e){let t=[];if(!e.boundKeyframes)return[];for(let[n,r]of Object.entries(e.boundKeyframes))if(!(!r||typeof r!="object"))if("type"in r&&r.type==="EXPRESSION")t.push([n,r]);else if(Array.isArray(r)){let o=r[0];o&&typeof o=="object"&&"type"in o&&o.type==="EXPRESSION"&&t.push([n,o]
10599)}else for(let[o,i]of Object.entries(r))i&&typeof i=="object"&&i.type==="EXPRESSION"&&t.push([`${n}.${o}`,i]);return t}function h5(e,t){let n=t(e);if(!n||n.type!=="KEYFRAME_TRACK")return null;let r=n.children??[],o=[];for(let i of r){let s=t(i);!s||s.type!=="KEYFRAME"||o.push(s)}return{id:n.id,keyframes:o,keyframeOperation:n.keyframeOperation}}function tR(e,t){let n={},r=T5(e);if(r.length===0)return{};if(!e.timelineDuration)return{};let o=Math.round(e.timelineDuration*1e6),i=e,s=i.timelineOffset?Math.round(i.timelineOffset*1e6):0,a=i.outerTimelineDuration?Math.round(i.outerTimelineDuration*1e6):o;for(let[l,u]of r){let c=_5[l];if(!c)continue;let f=u.expressionArguments[0],d=u.expressionArguments[1],p=[];for(let _ of d.value.parameters){let T=h5(_.keyframeTrack,t);if(!T)continue;let h=T.keyframes.map(m=>{let E,O=m.easing,{type:I}=O;switch(I){case"CUSTOM_BEZIER":case"CUSTOM_CUBIC":E={type:"BEZIER",value:O.value};break;case"CUSTOM_SPRING":E={type:"SPRING",value:O.value};break;case"EASE_IN":E={type:"BEZIER",value:{p1x:.42,p1y:0,p2x:1,p2y:1}};break;case"EASE_OUT":E={type:"BEZIER",value:{p1x:0,p1y:0,p2x:.58,p2y:1}};break;case"EASE_IN_AND_OUT":E={type:"BEZIER",value:{p1x:.42,p1y:0,p2x:.58,p2y:1}};break;case"LINEAR":E={type:"LINEAR"};break;case"EASE_IN_BACK":E={type:"BEZIER",value:{p1x:.3,p1y:-.05,p2x:.7,p2y:-.5}};break;case"EASE_OUT_BACK":E={type:"BEZIER",value:{p1x:.45,p1y:1.45,p2x:.8,p2y:1}};break;case"EASE_IN_AND_OUT_BACK":E={type:"BEZIER",value:{p1x:.7,p1y:-.4,p2x:.4,p2y:1.4}};break;case"GENTLE":E={type:"SPRING",value:{mass:1,stiffness:100,damping:15}};break;case"QUICK":E={type:"SPRING",value:{mass:1,stiffness:300,damping:20}};break;case"BOUNCY":E={type:"SPRING",value:{mass:1,stiffness:600,damping:15}};break;case"SLOW":E={type:"SPRING",value:{mass:1,stiffness:80,damping:20}};break;case"SPRING":E={type:"SPRING",value:{mass:1,stiffness:100,damping:15}};break;case"HOLD":E={type:"HOLD"};break;default:cc(I)}return{...m,easing:E,timelinePosition:Math.round(m.timelinePosition*1e6)}});p.push({...T,keyframes:h})}if(p.length>0){let _={baseValue:f,tracks:p,timelineDuration:a,...s!==0?{accumulatedAncestorOffsetMicros:s}:{}};c==="fills"||c==="strokes"?n[c]={0:_}:n[c]=_}}return O5(n),n}function qv(e,t){let n=e.baseValue;return{...e,baseValue:{type:"FLOAT",value:n.type==="VECTOR"?n.value[t]:0},tracks:e.tracks.map(r=>({...r,keyframes:r.keyframes.map(o=>({...o,value:{type:"FLOAT",value:o.value.type==="VECTOR"?o.value.value[t]:0}}))}))}}function O5(e){let t=e,n=[{vec:"MOTION_TRANSLATION_XY",x:"MOTION_TRANSLATION_X",y:"MOTION_TRANSLATION_Y"},{vec:"MOTION_SCALE_XY",x:"MOTION_SCALE_X",y:"MOTION_SCALE_Y"}];for(let r of n){let o=t[r.vec];o&&o.baseValue.type==="VECTOR"&&(t[r.x]||(t[r.x]=qv(o,"x")),t[r.y]||(t[r.y]=qv(o,"y")),delete t[r.vec])}}var I5={motion:"easeInOut",css:"ease-in-out"},g5=[1,100,15],S5=Sn.OUT_CUBIC,Qv=.3;function ex(e,t){let n=ho(t);if(n)return{ease:n.ease};let r=e.easingType??S5,[o,i,s]=e.easingFunction&&e.easingFunction.length>=3?e.easingFunction:g5;switch(r){case Sn.LINEAR:return{ease:"linear"};case Sn.IN_CUBIC:return{ease:"easeIn"};case Sn.OUT_CUBIC:return{ease:"easeOut"};case Sn.INOUT_CUBIC:return{ease:"easeInOut"};case Sn.IN_BACK_CUBIC:return{ease:"backIn"};case Sn.OUT_BACK_CUBIC:return{ease:"backOut"};case Sn.INOUT_BACK_CUBIC:return{ease:"backInOut"};case Sn.CUSTOM_CUBIC:return{ease:e.easingFunction?e.easingFunction:I5.motion};case Sn.SPRING:case Sn.CUSTOM_SPRING:case Sn.GENTLE_SPRING:case Sn.SPRING_PRESET_ONE:case Sn.SPRING_PRESET_TWO:case Sn.SPRING_PRESET_THREE:return{type:"spring",stiffness:i,damping:s,mass:o}}}var Ae=function(e){return e.VISIBLE="visible",e.INITIAL="initial",e.EXIT="exit",e.SCROLL_DIRECTION="scrollDirection",e.HOVER="hover",e.PRESS="press",e.FOCUS="focus",e.VISIBLE_SMART_ANIMATE="visibleSmartAnimate",e.HIDDEN_SMART_ANIMATE="hiddenSmartAnimate",e}({});function Ju(e){return(t,n)=>e?`${e instanceof ee?e.value:e} ${n}`:n}var R5=new Set(Object.values(Ae));function A5(e){let t=[],n=e.filter(o=>o!==void 0),r=n.reduce((o,i)=>({...o,...i}));for(let o of n)for(let[i,s]of go(o))if(i==="variants")for(let a in s)R5.has(a)?Ge(r.variants?.[a],s[a])||t.pu
10599sh(`variants: ${a} has been overwritten`):t.push(`variants: ${a} is not a valid variant`);else Ge(r[i],s)||t.push(`prop "${i}" has been overwritten`);return t}function tx(e,t){if(qE(t.labs))return;let n=A5(e);n.length,`${n.join(", ")}`}ke();var Ire={allowImageLasso:!1,allowsPDFImport:!1,canCreateCodeLayerFromDesign:!1,editorType:rx.DESIGN,enabledDakota:!1,enabledFigmake:!1,enabledMakeInDesign:!1,enabledSites:!1,hasTextSuggestionsPermission:!1,isCooper:!1,isSlides:!1,supportsPrintMarks:!1,supportsRulerUnitChange:!1,toggleTimelineKeyframe:!1},gre={canHideUI:!0,canRedo:!1,canUndo:!1,collabToolsInDesign:!1,currentTool:ox.NONE,editMode:nx.DESIGN_LAYOUT,fileKeyIsValid:!1,hasActiveCanvas:!1,hasActiveDocument:!1,inBranchFile:!1,interopToolMode:0,isAiDisabled:!1,isAiDisabledFigJam:!1,isFocusModeActive:!1,isLayoutEditMode:!0,isReadOnly:!1,isRecording:!1,isRunningInteractionTests:!1,isSelectionMode:!0,isSelectionValidForSelectAllMatching:!1,isShapeEditMode:!0,isUndoRedoAllowed:!1,isUserLoggedIn:!1,toolsV2Enabled:!1,topLevelMode:0};ke();function sR(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(sR||(sR={}));function ix(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(ix||(ix={}));function sx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(sx||(sx={}));function ax(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(ax||(ax={}));function lx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(lx||(lx={}));function ux(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(ux||(ux={}));function cx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(cx||(cx={}));function fx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(fx||(fx={}));function dx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(dx||(dx={}));function px(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(px||(px={}));function mx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(mx||(mx={}));function Ex(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Ex||(Ex={}));function _x(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(_x||(_x={}));function Tx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Tx||(Tx={}));function hx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(hx||(hx={}));function Ox(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Ox||(Ox={}));function Ix(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Ix||(Ix={}));function gx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(gx||(gx={}));function aR(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(aR||(aR={}));function Sx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Sx||(Sx={}));function Rx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Rx||(Rx={}));function Ax(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Ax||(Ax={}));function yx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(yx||(yx={}));function Nx(e){return e}(function(e){e.INVALID=e(""),e.DUMMY=e("-1:-1");function t(n){return n}e.toString=t})(Nx||(Nx={}));function bx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(bx||(bx={}));function Lx(e){return e}(function(e){e.INVALID=e(""),e.DUMMY=e("-1:-1");function t(n){return n}e.toString=t})(Lx||(Lx={}));function Cx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Cx||(Cx={}));function Px(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Px||(Px={}));function Dx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Dx||(Dx={}));function vx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(vx||(vx={}));function xx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(xx||(xx={}));function Mx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Mx||(Mx={}));function Fx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Fx||(Fx={}));function Gx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Gx||(Gx={}));function kx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(kx||(kx={}));function wx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(wx||(wx={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(Bx||(Bx={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(Ux||(Ux={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(e_||(e_={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(t_||(t_={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(n_||(n_={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(r_||(r_={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(o_||(o_={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(Hd||(Hd={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(i_||(i_={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(s_||(s_={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(a_||(a_={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(l_||(l_={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(u_||(u_={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(c_||(c_={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(f_||(f_={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(d_||(d_={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(p_||(p_={}));(function(e){e.toString=Kt,e.fromString=zt,e.fromKiwi=Xt,e.isEqual=jt,e.isValid=$t})(m_||(m_={}));function Kt({key:e,version:t}){return`${sR.toString(e)}/${aR.toString(t)}`}function zt(e){let t=e.split("/");if(t.length!==2)return null;let[n,r]=t;return n&&r?{key:n,version:r}:null}function Xt({key:e,version:t}){return!e||!t?null:{key:e,version:t}}function jt(e,t){return!e||!t?e===t:e.key===t.key&&e.version===t.version}function $t({key:e,version:t}){return Boolean(e&&t)}var Bx,Ux,e_,t_,n_,r_,o_,Hd,i_,s_,a_,l_,u_,c_,f_,d_,p_,m_;(function(e){let n=cn("CodeLibraryId:",a_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Vx||(Vx={}));(function(e){let n=cn("CodeFileId:",l_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Hx||(Hx={}));(function(e){let n=cn("CodeComponentId:",u_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(lR||(lR={}));(function(e){let n=cn("ManagedStringId:",c_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Wx||(Wx={}));(function(e){let n=cn("ResponsiveSetId:",s_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Yx||(Yx={}));(function(e){let n=cn("SymbolId:",e_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(ol||(ol={}));(function(e){let n=cn("StateGroupId:",t_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(il||(il={}));(function(e){let n=cn("StyleId:",n_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid;function r(o){return o.guid&&o.guid!==Ze?e.fromLocalNodeIdStr(o.guid):e.fromRef(o.ref)}e.fromBindingsObj=r})(Kx||(Kx={}));(function(e){let n=cn("VariableID:",r_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(uR||(uR={}));(function(e){let n=cn("KeyframeTrackId:",f_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(cR||(cR={}));(function(e){let n=cn("AnimationPresetId:",d_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(E_||(E_={}));(function(e){let n=cn("ToolId:",p_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(zx||(zx={}));(function(e){let n=cn("CustomEffectId:",m_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Xx||(Xx={}));(function(e){let n=cn("VariableOverrideId:",o_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(jx||(jx={}));(function(e){let t="VariableCollectionId:",n="VariableSetID:",r=cn(t,Hd),o=cn(n,Hd);e.INVALID=r.fromLocalNodeIdStr(Ze),e.toString=r.toString,e.toKiwi=i({current:r.toKiwi,deprecated:o.toKiwi}),e.toGuidObjIfLocal=i({current:r.toGuidObjIfLocal,deprecated:o.toGuidObjIfLocal}),e.toGuidStrIfLocal=i({current:r.toGuidStrIfLocal,deprecated:o.toGuidStrIfLocal}),e.toRefIfSubscribed=i({current:r.toRefIfSubscribed,deprecated:o.toRefIfSubscribed}),e.fromString=i({current:r.fromString,deprecated:o.fromString}),e.fromLocalNodeIdObj=r.fromLocalNodeIdObj,e.fromLocalNodeIdStr=r.fromLocalNodeIdStr,e.fromRef=r.fromRef,e.fromKiwi=r.fromKiwi,e.isValid=i({current:r.isValid,deprecated:o.isValid});function i({current:s,deprecated:a}){return l=>l.startsWith(n)?a(l):s(l)}})($x||($x={}));(function(e){let n=cn("ModuleId:",i_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Zx||(Zx={}));(function(e){e.fromKiwi=t=>{if(t.guid)return{type:"guid",guid:Je(t.guid)};if(t.stateGroupId){let n=il.fromKiwi(t.stateGroupId);if(n)return{type:"stateGroup",stateGroupId:n}}if(t.symbolId){let n=ol.fromKiwi(t.symbolId);if(n)return{type:"symbol",symbolId:n}}Jv(!1,"Unhandled CanvasNodeId type")},e.toGuidStrIfLocal=t=>{switch(t.type){case"guid":return t.guid;case"symbol":return ol.toGuidStrIfLocal(t.symbolId);case"stateGroup":return il.toGuidStrIfLocal(t.stateGroupId)}},e.toRefIfSubscribed=t=>{switch(t.type){case"guid":return null;case"symbol":return ol.toRefIfSubscribed(t.symbolId);case"stateGroup":return il.toRefIfSubscribed(t.stateGroupId)}},e.toString=t=>{switch(t.type){case"guid":return t.guid;case"symbol":return ol.toString(t.symbolId);case"stateGroup":return il.toString(t.stateGroupId)}},e.fromString=t=>{let n=ol.fromString(t);if(n)return{type:"symbol",symbolId:n};let r=il.fromString(t);return r?{type:"stateGroup",stateGroupId:r}:Nd(t)?{type:"guid",guid:t}:null}})(Jx||(Jx={}));function cn(e,t){function n(h){return h}function r(h,m){return h.startsWith(e)?m(h.slice(e.length)):null}function o(h){return Nd(h)}function i(h){return t.fromString(h)}function s(h){return r(h,E=>{let O=i(E);if(O)return{assetRef:O};let I=o(E);if(I)return{guid:I}})??{guid:CP}}function a(h){return r(h,m=>i(m)?null:o(m))}function l(h){return r(h,m=>i(m)?null:m)}function u(h){return r(h,m=>i(m))}function c(h){return r(h,m=>o(m)||i(m)?h:null)}function f(h){return e+Je(h)}function d(h){return Nd(h)?e+h:null}function p(h){return e+t.toString(h)}function _(h){if(!h)return null;let{guid:m,assetRef:E}=h;if(m&&!E)return f(m);if(!m&&E){let O=t.fromKiwi(E);if(O)return p(O)}return null}function T(h){let m=a(h);if(m)return yd(m);let E=u(h);return E?t.isValid(E):!1}return{toString:n,toKiwi:s,toGuidObjIfLocal:a,toGuidStrIfLocal:l,toRefIfSubscribed:u,fromString:c,fromLocalNodeIdObj:f,fromLocalNodeIdStr:d,fromRef:p,fromKiwi:_,isValid:T}}var Vx,Hx,lR,Wx,Yx,ol,il,Kx,uR,cR,E_,zx,Xx,jx,$x,Zx,Jx;var xre=new Intl.Collator("en",{numeric:!0,sensitivity:"base"});ke();var Wre={[QE.AUTO]:"",[QE.PERCENT]:"%",[QE.PIXELS]:"px"};var Yre=[rl.COLOR,rl.FLOAT,rl.STRING,rl.BOOLEAN];ke();Y0();ke();ke();var K0
10599="Fade",z0=`Animates the opacity of an element to fade it in or out. Use this preset for entrance or exit animations, revealing content, or smooth visibility transitions. 10600 10601Properties: 10602- timing: Select "Fade In" to animate from transparent to opaque, or "Fade Out" to animate from opaque to transparent. 10603- duration: The length of the animation in seconds. 10604- easing: The easing curve that controls the acceleration of the fade.`,X0=[{name:"timing",type:D.TEXT,label:"Timing",defaultText:"in",selectConfig:{options:[{value:"in",label:"In"},{value:"out",label:"Out"}]}},{name:"duration",type:D.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"easing",type:D.EASING,label:"Easing",defaultEasing:{easingType:k.OUT_CUBIC}}];ke();var j0="Move",$0=`Translates an element along the X and Y axes to slide it in or out of position. Use this preset for slide-in or slide-out transitions, off-screen entrances, or directional movement effects. 10605 10606Properties: 10607- timing: Select "Move In" to slide from the offset position to the original position, or "Move Out" to slide from the original position to the offset. 10608- moveX: The horizontal translation offset in pixels. 10609- moveY: The vertical translation offset in pixels. 10610- duration: The length of the animation in seconds. 10611- fade: Enable to simultaneously fade the element's opacity during the move. 10612- easing: The easing curve that controls the acceleration of the movement.`,Z0=[{name:"timing",type:D.TEXT,label:"Timing",defaultText:"out",selectConfig:{options:[{value:"in",label:"In"},{value:"out",label:"Out"}]}},{name:"moveX",type:D.NUMBER,label:"Move X",defaultNumber:100},{name:"moveY",type:D.NUMBER,label:"Move Y",defaultNumber:0},{name:"duration",type:D.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"fade",type:D.BOOL,label:"Fade",defaultBool:!1},{name:"easing",type:D.EASING,label:"Easing",defaultEasing:{easingType:k.OUT_CUBIC}}];ke();var J0="motion.preset_name.corner_radius",q0='Animates the corner radius of a node, either uniformly or per-corner. Use this preset for "round in / round out" reveal effects, or pick the Custom type for explicit start / end radius values per corner.\n\nProperties:\n- type: "Round in" animates 0 \u2192 amount; "Round out" animates amount \u2192 0; "Custom" lets each corner specify explicit start / end values.\n- corner: "All" drives the shared `cornerRadius` field; the four specific corner values drive only that corner. Toggling between "All" and a specific corner relies on the C++ preset bind path to flip `rectangleCornerRadiiIndependent` (see `_bindKeyframeExpressionToParameterField`).\n- amount: For type=roundIn/roundOut, the target radius in px.\n- *StartFrame / *EndFrame: For type=custom, the per-corner start/end radii. Only the pair matching the current `corner` selection is animated.\n- delay / duration / easing: Shared timing for the animation.',Q0=[{name:"type",type:D.TEXT,label:"motion.preset_flyout.type",defaultText:"roundIn",selectConfig:{options:[{value:"roundIn",label:"motion.preset_flyout.corner_radius.type.round_in"},{value:"roundOut",label:"motion.preset_flyout.corner_radius.type.round_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"corner",type:D.TEXT,label:"motion.preset_flyout.corner_radius.corner",defaultText:"all",selectConfig:{options:[{value:"all",label:"motion.preset_flyout.corner_radius.corner.all"},{value:"topLeft",label:"motion.preset_flyout.corner_radius.corner.top_left"},{value:"topRight",label:"motion.preset_flyout.corner_radius.corner.top_right"},{value:"bottomLeft",label:"motion.preset_flyout.corner_radius.corner.bottom_left"},{value:"bottomRight",label:"motion.preset_flyout.corner_radius.corner.bottom_right"}]}},{name:"amount",type:D.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:10,inputConfig:{min:0,unit:"px"}},{name:"allStartFrame",type:D.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:10,inputConfig:{min:0,unit:"px",icon:"radius_all"}},{name:"allEndFrame",type:D.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:0,inputConfig:{min:0,unit:"px",icon:"radius_all"}},{name:"topLeftStartFrame",type:D.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:0,inputConfig:{min:0,unit:"px",icon:"radius_top_left"}},{name:"topLeftEndFrame",type:D.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:20,inputConfig:{min:0,unit:"px",icon:"radius_top_left"}}
10612,{name:"topRightStartFrame",type:D.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:0,inputConfig:{min:0,unit:"px",icon:"radius_top_right"}},{name:"topRightEndFrame",type:D.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:20,inputConfig:{min:0,unit:"px",icon:"radius_top_right"}},{name:"bottomLeftStartFrame",type:D.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:0,inputConfig:{min:0,unit:"px",icon:"radius_bottom_left"}},{name:"bottomLeftEndFrame",type:D.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:20,inputConfig:{min:0,unit:"px",icon:"radius_bottom_left"}},{name:"bottomRightStartFrame",type:D.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:0,inputConfig:{min:0,unit:"px",icon:"radius_bottom_right"}},{name:"bottomRightEndFrame",type:D.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:20,inputConfig:{min:0,unit:"px",icon:"radius_bottom_right"}},{name:"delay",type:D.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:D.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:D.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:k.OUT_CUBIC}}];ke();var eM="motion.preset_name.new",tM=`A minimal starter preset that fades an element in from transparent to opaque. Use this as a starting point for building custom animation presets \u2014 edit the generated code to add your own keyframe tracks and logic. 10613 10614Properties: 10615- duration: The length of the animation in seconds. 10616- easing: The easing curve that controls the acceleration of the animation.`,nM=[{name:"duration",type:D.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"easing",type:D.EASING,label:"Easing",defaultEasing:{easingType:k.OUT_CUBIC}}];ke();var rM="motion.preset_name.opacity",oM=`Animates the opacity of an element. Use this preset for entrance / exit animations or emphasis effects. 10617 10618Properties: 10619- type: "Fade In" animates 0\u21921, "Fade Out" animates 1\u21920, "Custom" lets you specify start and end opacity via Start Frame / End Frame. 10620- startFrame / endFrame: Start and end opacity as percentages (only used when type is "Custom"). 10621- delay: How long to wait before the animation starts, in seconds. 10622- duration: The length of the animation, in seconds. 10623- easing: The easing curve that controls the acceleration of the animation.`,__=[{name:"type",type:D.TEXT,label:"motion.preset_flyout.type",defaultText:"fadeIn",selectConfig:{options:[{value:"fadeIn",label:"motion.preset_flyout.opacity.type.fade_in"},{value:"fadeOut",label:"motion.preset_flyout.opacity.type.fade_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"amount",type:D.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:0,inputConfig:{unit:"%",icon:"opacity"}},{name:"startFrame",type:D.NUMBER,label:"motion.preset_flyout.start",defaultNumber:0,inputConfig:{unit:"%",icon:"opacity"}},{name:"endFrame",type:D.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{unit:"%",icon:"opacity"}},{name:"delay",type:D.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:D.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:D.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:k.OUT_CUBIC}}];ke();var iM="Path Draw",sM=`Animates the path trim of a stroke to draw it in or erase it over time. Use this preset for line drawing effects, signature animations, or progressive reveal of vector paths. 10624 10625Properties: 10626- duration: The length of the animation in seconds. 10627- direction: Select "Forward" to draw from the start of the path to the end, or "Reverse" to draw from the end of the path to the start.`,aM=[{name:"duration",type:D.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"mode",type:D.TEXT,label:"Mode",defaultText:"reveal",selectConfig:{options:[{value:"reveal",label:"Reveal"},{value:"hide",label:"Hide"}]}},{name:"direction",type:D.TEXT,label:"Direction",defaultText:"forward",selectConfig:{options:[{value:"forward",label:"Forward"},{value:"reverse",label:"Reverse"}]}}];ke();var lM="motion.preset_name.path",uM='Animates the trim of a vector path. Replaces and subsumes Path Draw and Path Travel under a single preset; pick a `type` to drive the behaviour.\n\nProperties:\n- type: "Draw" reveals the path from start to end; "Erase" hides it; "Travel" runs a short segment along the path; "Custom" exposes raw `pathTrimStart` / `pathTrimEnd` control via the `axis` prop.\n- direction: "Forward" or "Reverse"; reverses the animation direction.\n- segment: For type=travel, length of the moving segment as a percentage of the path.\n- axis: For type=custom, picks which trim field(s) to animate. "Path trim start" and "Path trim end" each drive one field. "Combined" drives both with shared timing but distinct initial values (`pathStartStartFrame`, `pathEndStartWithDivider`).\n- pathStart{StartFrame,EndFrame} / pathEnd{StartFrame,EndFrame}: For type=custom, the per-trim frame values. The bespoke component shows only the subset relevant to the current axis selection.\n- delay / duration / easing: Shared timing for every type (Draw / Erase / Travel and Custom).',cM=[{name:"type",type:D.TEXT,label:"motion.preset_flyout.type",defaultText:"draw",selectConfig:{options:[{value:"draw",label:"motion.preset_flyout.path.type.draw"},{value:"erase",label:"motion.preset_flyout.path.type.erase"},{value:"travel",label:"motion.preset_flyout.path.type.travel"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"direction",type:D.TEXT,label:"motion.preset_flyout.direction",defaultText:"forward",selectConfig:{options:[{value:"forward",label:"motion.preset_flyout.path.direction.forward"},{value:"reverse",label:"motion.preset_flyout.path.direction.reverse"}]}},{name:"axis",type:D.TEXT,label:"motion.preset_flyout.path.trim",defaultText:"pathTrimStart",selectConfig:{options:[{value:"pathTrimStart",label:"motion.preset_flyout.path.axis.path_trim_start"},{value:"pathTrimEnd",label:"motion.preset_flyout.path.axis.path_trim_end"},{value:"combined",label:"motion.preset_flyout.path.axis.combined"}]}},{name:"segment",type:D.NUMBER,label:"motion.preset_flyout.path.segment",defaultNumber:10,inputConfig:{unit:"%"}},{name:"pathStartStartFrame",type:D.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:100,inputConfig:{unit:"%",icon:"path_trim_start"}},{name:"pathStartEndWithoutDivider",type:D.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:0,inputConfig:{unit:"%",icon:"path_trim_start"}},{name:"pathEndStartWithoutDivider",type:D.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:20,inputConfig:{unit:"%",icon:"path_trim_end"}},{name:"pathStartEndWithDivider",type:D.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:80,inputConfig:{unit:"%",icon:"path_trim_start"}},{name:"pathEndStartWithDivider",type:D.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:0,inputConfig:{unit:"%",icon:"path_trim_end"}},{name:"pathEndEndFrame",type:D.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:100,inputConfig:{unit:"%",icon:"path_trim_end"}},{name:"delay",type:D.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:D.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:D.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:k.OUT_CUBIC}}];ke();var fM="Path Travel",dM=`Animates a segment of a stroke that travels along the entire path. Use this preset for moving highlight effects or traveling dash animations on vector paths. 10628 10629Properties: 10630- segmentLength: The length of the traveling segment as a percentage of the total path.
10631- loops: The number of times the segment travels along the path. 10632- loopMode: Select "Circle Back" to wrap continuously around the path, or "Retrace Path" to bounce forward then backward each loop. 10633- direction: Select "Forward" to travel from the start to the end of the path, or "Reverse" to travel from the end to the start. 10634- duration: The length of the animation in seconds.`,pM=[{name:"duration",type:D.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"direction",type:D.TEXT,label:"Direction",defaultText:"forward",selectConfig:{options:[{value:"forward",label:"Forward"},{value:"reverse",label:"Reverse"}]}},{name:"loopMode",type:D.TEXT,label:"Loop Mode",defaultText:"circle",selectConfig:{options:[{value:"circle",label:"Circle Back"},{value:"retrace",label:"Retrace Path"}]}},{name:"segmentLength",type:D.NUMBER,label:"Segment Length",defaultNumber:20,inputConfig:{min:0,max:100,unit:"%"}},{name:"loops",type:D.NUMBER,label:"Loops",defaultNumber:1,inputConfig:{min:1}}];ke();var mM="motion.preset_name.position",EM=`Animates a node along the X and/or Y axes. Use this preset for slide-in / slide-out entrances and exits, or fully custom translate animations. 10635 10636Properties: 10637- type: "Slide In" animates from an offset back to the resting position, "Slide Out" animates from the resting position to an offset, "Custom" lets you specify Start / End values explicitly. 10638- direction: For Slide In / Slide Out, the side the element slides from / to (only used when type is "Slide In" or "Slide Out"). 10639- distance: Slide distance in pixels (only used when type is "Slide In" or "Slide Out"). 10640- axis: For Custom, which axes to animate \u2014 "X" / "Y" animate one axis only, "XY" animates both (each axis keeps its own start/end and they share the timing). 10641- startX / endX: X-axis start and end translation in pixels (used when type is "Custom" and axis is "X" or "XY"). 10642- startY / endY: Y-axis start and end translation in pixels (used when type is "Custom" and axis is "Y" or "XY"). 10643- delay: How long to wait before the animation starts, in seconds. 10644- duration: The length of a single playthrough, in seconds. 10645- easing: The easing curve that controls the acceleration of the animation.`,T_=[{name:"type",type:D.TEXT,label:"motion.preset_flyout.type",defaultText:"slide_in",selectConfig:{options:[{value:"slide_in",label:"motion.preset_flyout.position.type.slide_in"},{value:"slide_out",label:"motion.preset_flyout.position.type.slide_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"direction",type:D.TEXT,label:"motion.preset_flyout.direction",defaultText:"left",selectConfig:{options:[{value:"left",label:"motion.preset_flyout.position.direction.left"},{value:"right",label:"motion.preset_flyout.position.direction.right"},{value:"top",label:"motion.preset_flyout.position.direction.top"},{value:"bottom",label:"motion.preset_flyout.position.direction.bottom"},{value:"top_left",label:"motion.preset_flyout.top_left"},{value:"top_right",label:"motion.preset_flyout.top_right"},{value:"bottom_left",label:"motion.preset_flyout.bottom_left"},{value:"bottom_right",label:"motion.preset_flyout.bottom_right"}]}},{name:"distance",type:D.NUMBER,label:"motion.preset_flyout.position.distance",defaultNumber:200,inputConfig:{unit:"px"}},{name:"axis",type:D.TEXT,label:"motion.preset_flyout.axis",defaultText:"xy",selectConfig:{options:[{value:"x",label:"motion.preset_flyout.x"},{value:"y",label:"motion.preset_flyout.y"},{value:"xy",label:"motion.preset_flyout.both"}]}},{name:"startX",type:D.NUMBER,label:"motion.preset_flyout.start",defaultNumber:200,inputConfig:{icon:"x"}},{name:"startY",type:D.NUMBER,label:"motion.preset_flyout.start",defaultNumber:200,inputConfig:{icon:"y"}},{name:"endX",type:D.NUMBER,label:"motion.preset_flyout.end",defaultNumber:0,inputConfig:{icon:"x"}},{name:"endY",type:D.NUMBER,label:"motion.preset_flyout.end",defaultNumber:0,inputConfig:{icon:"y"}},{name:"delay",type:D.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:D.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:D.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:k.OUT_CUBIC}}];ke();var _M="Resize",TM=`Changes the width and/or height of an element by a pixel offset over time. Use this preset for expanding panels, progress bar animations, or dynamic layout transitions. 10646 10647Properties: 10648- widthChange: The amount to change the element's width in pixels (0 for no width change). 10649- heightChange: The amount to change the element's height in pixels (0 for no height change). 10650- duration: The length of the animation in seconds. 10651- easing: The easing curve that controls the acceleration of the resize.`,hM=[{name:"widthChange",type:D.NUMBER,label:"Width Change",defaultNumber:100},{name:"heightChange",type:D.NUMBER,label:"Height Change",defaultNumber:0},{name:"duration",type:D.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"easing",type:D.EASING,label:"Easing",defaultEasing:{easingType:k.OUT_CUBIC}}];ke();var OM="Rotate",IM=`Rotates an element by a specified angle to spin it in or out. Use this preset for spinning entrance or exit effects, turning animations, or attention-grabbing rotations. 10652 10653Properties: 10654- timing: Select "Rotate In" to rotate from the specified angle back to the original orientation, or "Rotate Out" to rotate from the original orientation to the specified angle. 10655- rotation: The rotation amount in degrees. 10656- duration: The length of the animation in seconds. 10657- fade: Enable to simultaneously fade the element's opacity during the rotation. 10658- easing: The easing curve that controls the acceleration of the rotation.`,gM=[{name:"timing",type:D.TEXT,label:"Timing",defaultText:"out",selectConfig:{options:[{value:"in",label:"In"},{value:"out",label:"Out"}]}},{name:"rotation",type:D.NUMBER,label:"Rotation",defaultNumber:180},{name:"duration",type:D.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"fade",type:D.BOOL,label:"Fade",defaultBool:!1},{name:"easing",type:D.EASING,label:"Easing",defaultEasing:{easingType:k.OUT_CUBIC}}];ke();var SM="motion.preset_name.rotation",RM=`Animates the rotation of a node about its center. Use this preset for spin-in / spin-out reveal effects, or pick the Custom type for explicit start / end angles. 10659 10660Properties: 10661- type: "Rotate in" animates signed amount \u2192 0; "Rotate out" animates 0 \u2192 signed amount; "Custom" lets you specify explicit start / end angles in degrees. The signed amount is derived from Direction (see below). 10662- direction: "Clockwise" or "Counter-clockwise". Underlying \`rotate\` is in radians and uses screen Y-down coordinates. For "Rotate in", Clockwise yields a negative angle and Counter-clockwise yields a positive angle. For "Rotate out", Clockwise yields a positive angle and Counter-clockwise yields a negative angle \u2014 matching the visible spin labels in both types. 10663- amount: For type=rotateIn/rotateOut, the rotation magnitude in degrees. 10664- start / end: For type=custom, the explicit start / end angles in degrees. 10665- delay / duration / easing: Shared timing for the animation.`,h_=[{name:"type",type:D.TEXT,label:"motion.preset_flyout.type",defaultText:"rotateIn",selectConfig:{options:[{value:"rotateIn",label:"motion.preset_flyout.rotation.type.rotate_in"},{value:"rotateOut",label:"motion.preset_flyout.rotation.type.rotate_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"direction",type:D.TEXT,label:"motion.preset_flyout.direction",defaultText:"clockwise",selectConfig:{options:[{value:"clockwise",label:"motion.preset_flyout.rotation.direction.clockwise"},{value:"counterClockwise",label:"motion.preset_flyout.rotation.direction.counter_clockwise"}]}},{name:"amount",type:D.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:180,inputConfig:{unit:"\xB0"}},{name:"start",type:D.NUMBER,label:"motion.preset_flyout.start",defaultNumber:180,inputConfig:{unit:"\xB0",icon:"rotation"}},{name:"end",type:D.NUMBER,label:"motion.preset_flyout.end",defaultNumber:0,inputConfig:{unit:"\xB0",icon:"rotation"}},{name:"delay",type:D.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{min:0,unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:D.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:D.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:k.OUT_CUBIC}}];ke();var AM="motion.preset_name.scale",yM=`Animates a node by scaling it along the width and/or height axis. Use this preset for scale-in / scale-out reveal effects, or pick the Custom type for explicit start / end percentages on either axis. 10666 10667Properties: 10668- type: "Scale in" animates amount \u2192 100%; "Scale out" animates 100% \u2192 amount; "Custom" lets you specify explicit start / end percentages per axis. 10669- axis: For type=custom, picks which axis (W, H, or both combined) is animated. Ignored when type=scaleIn/scaleOut (both axes animate together). 10670- amount: For type=scaleIn/scaleOut, the scale magnitude in percent (e.g. 120%). 10671- {w,h}{Start,End}* / *WithDivider / *WithoutDivider: For type=custom, the explicit start / end percentages per axis. Single-axis groups each axis as Start+End; WH-combined groups both Starts together and both Ends together, using the alternate divider variants. Only the set visible in the current layout is editable. 10672- delay / duration / easing: Shared timing.`,NM=[{name:"type",type:D.TEXT,label:"motion.preset_flyout.type",defaultText:"scaleIn",selectConfig:{options:[{value:"scaleIn",label:"motion.preset_flyout.scale.type.scale_in"},{value:"scaleOut",label:"motion.preset_flyout.scale.type.scale_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"axis",type:D.TEXT,label:"motion.preset_flyout.axis",defaultText:"whCombined",selectConfig:{options:[{value:"w",label:"motion.preset_flyout.w"},{value:"h",label:"motion.preset_flyout.h"},{value:"whCombined",label:"motion.preset_flyout.both"}]}},{name:"amount",type:D.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:120,inputConfig:{min:0,unit:"%"}},{name:"wStartWithDivider",type:D.NUMBER,label:"motion.preset_flyout.start",defaultNumber:120,inputConfig:{min:0,unit:"%",icon:"w"}},{name:"wEndWithoutDivider",type:D.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{min:0,unit:"%",icon:"w"}},{name:"hStartWithoutDivider",type:D.NUMBER,label:"motion.preset_flyout.start",defaultNumber:120,inputConfig:{min:0,unit:"%",icon:"h"}},{name:"wEndWithDivider",type:D.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{min:0,unit:"%",icon:"w"}},{name:"hStartWithDivider",type:D.NUMBER,label:"motion.preset_flyout.start",defaultNumber:120,inputConfig:{min:0,unit:"%",icon:"h"}},{name:"hEndWithoutDivider",type:D.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{min:0,unit:"%",icon:"h"}},{name:"delay",type:D.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:D.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:D.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:k.OUT_CUBIC}}];ke();var bM="motion.preset_name.size",LM=`Animates a node\u2019s width and/or height. Use this preset for resize-in / resize-out entrances and exits, or fully custom resize animations. 10673 10674Properties: 10675- type: "Resize In" starts at the resting size and shrinks by \`amount\`, "Resize Out" starts shrunk by \`amount\` and grows back to the resting size, "Custom" lets you specify Start /
10675End values explicitly. 10676- amount: How many pixels to shrink the width AND height by (only used when type is "Resize In" or "Resize Out"). 10677- axis: For Custom, which axes to animate \u2014 "X" / "Y" animate one axis only, "Both" animates both (each axis keeps its own start/end and they share the timing). 10678- startWidth / endWidth: Width start and end offset in pixels relative to the resting size (used when type is "Custom" and axis is "X" or "Both"). 10679- startHeight / endHeight: Height start and end offset in pixels relative to the resting size (used when type is "Custom" and axis is "Y" or "Both"). 10680- delay: How long to wait before the animation starts, in seconds. 10681- duration: The length of a single playthrough, in seconds. 10682- easing: The easing curve that controls the acceleration of the animation.`,CM=[{name:"type",type:D.TEXT,label:"motion.preset_flyout.type",defaultText:"resize_in",selectConfig:{options:[{value:"resize_in",label:"motion.preset_flyout.size.type.resize_in"},{value:"resize_out",label:"motion.preset_flyout.size.type.resize_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"amount",type:D.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:50,inputConfig:{unit:"px"}},{name:"axis",type:D.TEXT,label:"motion.preset_flyout.axis",defaultText:"xy",selectConfig:{options:[{value:"x",label:"motion.preset_flyout.x"},{value:"y",label:"motion.preset_flyout.y"},{value:"xy",label:"motion.preset_flyout.both"}]}},{name:"startWidth",type:D.NUMBER,label:"motion.preset_flyout.start",defaultNumber:50,inputConfig:{icon:"w"}},{name:"startHeight",type:D.NUMBER,label:"motion.preset_flyout.start",defaultNumber:50,inputConfig:{icon:"h"}},{name:"endWidth",type:D.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{icon:"w"}},{name:"endHeight",type:D.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{icon:"h"}},{name:"delay",type:D.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:D.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:D.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:k.OUT_CUBIC}}];ke();var PM="motion.preset_name.text",DM=`Animates the text content of an element by keyframing textData with string values. Use this preset for typewriter effects that reveal text by character, word, or line. 10683 10684Properties: 10685- revealBy: Select "Character", "Word", or "Line" to control how much text appears at each keyframe. 10686- duration: The length of the animation in seconds.`,vM=[{name:"revealBy",type:D.TEXT,label:"Reveal By",defaultText:"character",selectConfig:{options:[{value:"character",label:"Character"},{value:"word",label:"Word"},{value:"line",label:"Line"}]}},{name:"duration",type:D.NUMBER,label:"Duration",defaultNumber:1.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0}];ke();var MM="motion.preset_name.text_stagger",FM="Animates text elements with a configurable stagger. Choose whether all enabled Position, Rotation, Scale, Opacity, and Blur animations play in or out, then customize each property.";function xM(e,t,n){return e.filter(r=>t.has(r.name)).map(r=>({...r,name:n[r.name]??r.name}))}var GM=[{name:"animationDirection",type:D.TEXT,label:"motion.preset_flyout.text_stagger.direction",defaultText:"in",selectConfig:{options:[{value:"in",label:"motion.preset_flyout.text_stagger.direction.in"},{value:"out",label:"motion.preset_flyout.text_stagger.direction.out"}]}},{name:"textDelayGrouping",type:D.TEXT,label:"motion.preset_flyout.text_stagger.each",defaultText:"CHARACTER",selectConfig:{options:[{value:"CHARACTER",label:"motion.preset_flyout.text_stagger.grouping.character"},{value:"CHARACTER_NO_WHITESPACE",label:"motion.preset_flyout.text_stagger.grouping.character_no_whitespace"},{value:"WORD",label:"motion.preset_flyout.text_stagger.grouping.word"},{value:"LINE",label:"motion.preset_flyout.text_stagger.grouping.line"},{value:"PARAGRAPH",label:"motion.preset_flyout.text_stagger.grouping.paragraph"}]}},{name:"presetStaggerOverlap",type:D.NUMBER,label:"motion.preset_flyout.text_stagger.overlap",defaultNumber:50,inputConfig:{min:0,max:100,unit:"%"}},{name:"textDelayOrder",type:D.TEXT,label:"motion.preset_flyout.text_stagger.stagger_order",defaultText:"LEFT_RIGHT",selectConfig:{options:[{value:"LEFT_RIGHT",label:"motion.preset_flyout.text_stagger.order.left_right"},{value:"RIGHT_LEFT",label:"motion.preset_flyout.text_stagger.order.right_left"},{value:"CENTER_OUT",label:"motion.preset_flyout.text_stagger.order.center_out"},{value:"RANDOM",label:"motion.preset_flyout.text_stagger.order.random"}]}},{name:"clipContent",type:D.BOOL,label:"motion.preset_flyout.text_stagger.clip_content",defaultBool:!1},{name:"delay",type:D.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:D.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:D.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:k.OUT_CUBIC}},{name:"positionEnabled",type:D.BOOL,label:"motion.preset_name.position",defaultBool:!0},{name:"positionVisible",type:D.BOOL,label:"motion.preset_name.position",defaultBool:!0},...T_.filter(e=>e.name==="direction"||e.name==="distance").map(e=>e.name==="direction"?{...e,defaultText:"top"}:{...e,defaultNumber:40}),{name:"rotationEnabled",type:D.BOOL,label:"motion.preset_name.rotation",defaultBool:!1},{name:"rotationVisible",type:D.BOOL,label:"motion.preset_name.rotation",defaultBool:!0},...xM(h_,new Set(["direction","amount"]),{direction:"rotationDirection",amount:"rotationAmount"}),{name:"scaleEnabled",type:D.BOOL,label:"motion.preset_name.scale",defaultBool:!1},{name:"scaleVisible",type:D.BOOL,label:"motion.preset_name.scale",defaultBool:!0},{name:"scaleAmount",type:D.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:120,inputConfig:{min:0,unit:"%"}},{name:"opacityEnabled",type:D.BOOL,label:"motion.preset_name.opacity",defaultBool:!1},{name:"opacityVisible",type:D.BOOL,label:"motion.preset_name.opacity",defaultBool:!0},...xM(__,new Set(["amount"]),{amount:"opacityAmount"}),{name:"blurEnabled",type:D.BOOL,label:"motion.preset_name.blur",defaultBool:!1},{name:"blurVisible",type:D.BOOL,label:"motion.preset_name.blur",defaultBool:!0},{name:"blurAmount",type:D.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:20,inputConfig:{min:0,unit:"px",icon:"layer_blur"}}];var Zt={[F.FADE_DEPRECATED]:{name:K0,description:z0,propDefs:X0,manifest:{icon:"Fade",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[F.MOVE_DEPRECATED]:{name:j0,description:$0,propDefs:Z0,manifest:{icon:"Move",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[F.ROTATE_DEPRECATED]:{name:OM,description:IM,propDefs:gM,manifest:{icon:"Rotate",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[F.SCALE]:{name:AM,description:yM,propDefs:NM,manifest:{icon:"Scale",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[F.RESIZE_DEPRECATED]:{name:_M,description:TM,propDefs:hM,manifest:{icon:"Resize",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[F.NEW]:{name:eM,description:tM,propDefs:nM,manifest:{icon:"Default",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[F.TEXT_DATA]:{name:PM,description:DM,propDefs:vM,manifest:{icon:"Text",applicableNodeTypes:["TEXT"],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[F.PATH_DRAW_DEPRECATED]:{name:iM,description:sM,propDefs:aM,manifest:{icon:"PathDraw",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:["strokes"],disallowedNodeFields:[]}},[F.PATH_TRAVEL_DEPRECATED]:{name:fM,description:dM,propDefs:pM,manifest:{icon:"PathTravel",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:["strokes"],disallowedNodeFields:[]}},[F.OPACITY]:{name:rM,description:oM,propDefs:__,manifest:{icon:"Opacity",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[F.CORNER_RADIUS]:{name:J0,description:q0,propDefs:Q0,manifest:{icon:"CornerRadius",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[F.ROTATION]:{name:SM,description:RM,propDefs:h_,manifest:{icon:"Rotation",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[F.PATH]:{name:lM,description:uM,propDefs:cM,manifest:{icon:"Path",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:["strokes"],disallowedNodeFields:[]}},[F.POSITION]:{name:mM,description:EM,propDefs:T_,manifest:{icon:"Position",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[F.SIZE]:{name:bM,description:LM,propDefs:CM,manifest:{icon:"Size",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[F.TEXT_STAGGER]:{name:MM,description:FM,propDefs:GM,manifest:{icon:"Text",applicableNodeTypes:["TEXT"],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}}},N5={...Object.fromEntries(Object.entries(Zt).map(([e,t])=>[t.name,Number(e)])),["Corner Radius"]:F.CORNER_RADIUS,New:F.NEW,Opacity:F.OPACITY,Path:F.PATH,Position:F.POSITION,Rotation:F.ROTATION,Scale:F.SCALE,Size:F.SIZE,Text:F.TEXT_DATA};var fn={[F.FADE_DEPRECATED]:{...Zt[F.FADE_DEPRECATED],...yn[F.FADE_DEPRECATED]},[F.MOVE_DEPRECATED]:{...Zt[F.MOVE_DEPRECATED],...yn[F.MOVE_DEPRECATED]},[F.ROTATE_DEPRECATED]:{...Zt[F.ROTATE_DEPRECATED],...yn[F.ROTATE_DEPRECATED]},[F.SCALE]:{...Zt[F.SCALE],...yn[F.SCALE]},[F.RESIZE_DEPRECATED]:{...Zt[F.RESIZE_DEPRECATED],...yn[F.RESIZE_DEPRECATED]},[F.NEW]:{...Zt[F.NEW],...yn[F.NEW]},[F.TEXT_DATA]:{...Zt[F.TEXT_DATA],...yn[F.TEXT_DATA]},[F.PATH_DRAW_DEPRECATED]:{...Zt[F.PATH_DRAW_DEPRECATED],...yn[F.PATH_DRAW_DEPRECATED]},[F.PATH_TRAVEL_DEPRECATED]:{...Zt[F.PATH_TRAVEL_DEPRECATED],...yn[F.PATH_TRAVEL_DEPRECATED]},[F.OPACITY]:{...Zt[F.OPACITY],...yn[F.OPACITY]},[F.CORNER_RADIUS]:{...Zt[F.CORNER_RADIUS],...yn[F.CORNER_RADIUS]},[F.ROTATION]:{...Zt[F.ROTATION],...yn[F.ROTATION]},[F.PATH]:{...Zt[F.PATH],...yn[F.PATH]},[F.POSITION]:{...Zt[F.POSITION],...yn[F.POSITION]},[F.SIZE]:{...Zt[F.SIZE],...yn[F.SIZE]},[F.TEXT_STAGGER]:{...Zt[F.TEXT_STAGGER],source:""}};ke();var Pie=new Set([Ci.PATH_TRIM_START,Ci.PATH_TRIM_END]);var L5="TextStagger",C5="motion.preset_name.text_stagger",Vie=[{id:L5,name:C5,type:F.TEXT_STAGGER,manifest:fn[F.TEXT_STAGGER].manifest},{id:"Position",name:"motion.preset_name.position",type:F.POSITION,manifest:fn[F.POSITION].manifest},{id:"Scale",name:"motion.preset_name.scale",type:F.SCALE,manifest:fn[F.SCALE].manifest},{id:"Rotation",name:"motion.preset_name.rotation",type:F.ROTATION,manifest:fn[F.ROTATION].manifest},{id:"Size",name:"motion.preset_name.size",type:F.SIZE,manifest:fn[F.SIZE].manifest},{id:"Opacity",name:"motion.preset_name.opacity",type:F.OPACITY,manifest:fn[F.OPACITY].manifest},{id:"CornerRadius",name:"motion.preset_name.corner_radius",type:F.CORNER_RADIUS,manifest:fn[F.CORNER_RADIUS].manifest},{id:"Path",name:"motion.preset_name.path",type:F.PATH,manifest:fn[F.PATH].manifest},{id:"New",name:"motion.preset_name.new",type:F.NEW,manifest:fn[F.NEW].manifest},{id:"Text",name:"motion.preset_name.text",type:F.TEXT_DATA,manifest:fn[F.TEXT_DATA].manifest},{id:"Fade",name:"Fade",type:F.FADE_DEPRECATED,manifest:fn[F.FADE_DEPRECATED].manifest},{id:"Move",name:"Move",type:F.MOVE_DEPRECATED,manifest:fn[F.MOVE_DEPRECATED].manifest},{id:"Rotate",name:"Rotate",type:F.ROTATE_DEPRECATED,manifest:fn[F.ROTATE_DEPRECATED].manifest},{id:"Resize",name:"Resize",type:F.RESIZE_DEPRECATED,manifest:fn[F.RESIZE_DEPRECATED].manifest},{id:"PathDraw",name:"Path Draw",type:F.PATH_DRAW_DEPRECATED,manifest:fn[F.PATH_DRAW_DEPRECATED].manifest},{id:"PathTravel",name:"Path Travel",type:F.PATH_TRAVEL_DEPRECATED,manifest:fn[F.PATH_TRAVEL_DEPRECATED].manifest}],Hie=new Set([F.FADE_DEPRECATED,F.MOVE_DEPRECATED,F.ROTATE_DEPRECATED,F.RESIZE_DEPRECATED,F.PATH_DRAW_DEPRECATED,F.PATH_TRAVEL_DEPRECATED]),Wie=new Set([F.PATH,F.PATH_DRAW_DEPRECATED,F.PATH_TRAVEL_DEPRECATED]);ke();var zie={[fc.NONE]:null,[fc.INSTANCE_SUBLAYER]:"Cannot write animations to instance sublayers via the plugin API",[fc.TOP_LEVEL_FRAME_PARENT]:"Cannot write animations to top-level frame parents via the plugin API",[fc.PRODUCT_COMPONENT]:"Cannot write animations to product components via the plugin API",[fc.UNSUPPORTED_NODE_TYPE]:"
10686Cannot write animations to this node type via the plugin API"};ke();ke();ke();var wM=100,BM="bezier",UM=[.5,0,.5,1],I_={p1x:0,p1y:0,p2x:.58,p2y:1},O_={mass:1,stiffness:100,damping:15},qie={easingType:k.OUT_CUBIC,bezierValues:I_},P5={[k.IN_CUBIC]:{p1x:.42,p1y:0,p2x:1,p2y:1},[k.EASE_IN]:{p1x:.42,p1y:0,p2x:1,p2y:1},[k.OUT_CUBIC]:I_,[k.INOUT_CUBIC]:{p1x:.42,p1y:0,p2x:.58,p2y:1},[k.LINEAR]:{p1x:0,p1y:0,p2x:1,p2y:1},[k.IN_BACK_CUBIC]:{p1x:.3,p1y:-.05,p2x:.7,p2y:-.5},[k.OUT_BACK_CUBIC]:{p1x:.45,p1y:1.45,p2x:.8,p2y:1},[k.INOUT_BACK_CUBIC]:{p1x:.7,p1y:-.4,p2x:.4,p2y:1.4},[k.CUSTOM_CUBIC]:I_,[k.SPRING]:void 0,[k.GENTLE_SPRING]:void 0,[k.CUSTOM_SPRING]:void 0,[k.SPRING_PRESET_ONE]:void 0,[k.SPRING_PRESET_TWO]:void 0,[k.SPRING_PRESET_THREE]:void 0,[k.HOLD]:void 0},D5={[k.IN_CUBIC]:void 0,[k.EASE_IN]:void 0,[k.OUT_CUBIC]:void 0,[k.INOUT_CUBIC]:void 0,[k.LINEAR]:void 0,[k.IN_BACK_CUBIC]:void 0,[k.OUT_BACK_CUBIC]:void 0,[k.INOUT_BACK_CUBIC]:void 0,[k.CUSTOM_CUBIC]:void 0,[k.SPRING]:O_,[k.GENTLE_SPRING]:O_,[k.CUSTOM_SPRING]:O_,[k.SPRING_PRESET_ONE]:{mass:1,stiffness:300,damping:20},[k.SPRING_PRESET_TWO]:{mass:1,stiffness:600,damping:15},[k.SPRING_PRESET_THREE]:{mass:1,stiffness:80,damping:20},[k.HOLD]:void 0};function Wd(e){return P5[e]??I_}function Yd(e){return D5[e]??O_}var VM=it.array(it.number()).length(4).readonly(),fR=it.object({mass:it.number(),stiffness:it.number(),damping:it.number()}),dR=it.object({p1x:it.number(),p1y:it.number(),p2x:it.number(),p2y:it.number()}),v5=it.object({easingType:it.literal(wM),bezierValues:VM.optional().default(UM)}),x5=it.object({easingType:it.literal(BM),bezierValues:VM.optional().default(UM)}),M5=it.object({easingType:it.literal(k.CUSTOM_SPRING),springValues:fR.default(Yd(k.CUSTOM_SPRING)),bezierValues:dR.optional()}),F5=it.object({easingType:it.literal(k.CUSTOM_CUBIC),bezierValues:dR.default(Wd(k.CUSTOM_CUBIC)),springValues:fR.optional()}),G5=it.object({easingType:it.nativeEnum(k),springValues:fR.optional(),bezierValues:dR.optional()}).refine(({easingType:e})=>e!==k.CUSTOM_SPRING&&e!==k.CUSTOM_CUBIC,{message:"Use custom easing schema for CUSTOM_SPRING/CUSTOM_CUBIC types"}),Qie=it.union([v5,x5,M5,F5,G5]).transform(e=>{let t=e.easingType;if(t===wM||t===BM){let o=e.bezierValues;return{easingType:k.CUSTOM_CUBIC,springValues:void 0,bezierValues:{p1x:o[0],p1y:o[1],p2x:o[2],p2y:o[3]}}}let n=t===k.CUSTOM_SPRING?e.springValues??Yd(k.CUSTOM_SPRING):void 0,r=t===k.CUSTOM_CUBIC?e.bezierValues??Wd(k.CUSTOM_CUBIC):void 0;return{easingType:t,springValues:n,bezierValues:r}});var rse=new Set([k.SPRING,k.GENTLE_SPRING,k.CUSTOM_SPRING,k.SPRING_PRESET_ONE,k.SPRING_PRESET_TWO,k.SPRING_PRESET_THREE]),k5={EASE_IN:k.IN_CUBIC,EASE_OUT:k.OUT_CUBIC,EASE_IN_AND_OUT:k.INOUT_CUBIC,EASE_IN_BACK:k.IN_BACK_CUBIC,EASE_OUT_BACK:k.OUT_BACK_CUBIC,EASE_IN_AND_OUT_BACK:k.INOUT_BACK_CUBIC,CUSTOM_CUBIC_BEZIER:k.CUSTOM_CUBIC,GENTLE:k.GENTLE_SPRING,QUICK:k.SPRING_PRESET_ONE,BOUNCY:k.SPRING_PRESET_TWO,SLOW:k.SPRING_PRESET_THREE};function HM(e){if(typeof e=="number")return e;if(typeof e=="string"){let t=k5[e];if(t!==void 0)return t;let n=k[e];return typeof n=="number"?n:null}return null}var pR=["CORNER_RADIUS","STROKE_WEIGHT","STACK_SPACING","STACK_PADDING_LEFT","STACK_PADDING_TOP","STACK_PADDING_RIGHT","STACK_PADDING_BOTTOM","STACK_CHILD_MARGIN_TOP","STACK_CHILD_MARGIN_RIGHT","STACK_CHILD_MARGIN_BOTTOM","STACK_CHILD_MARGIN_LEFT","VISIBLE","WIDTH","HEIGHT","RECTANGLE_TOP_LEFT_CORNER_RADIUS","RECTANGLE_TOP_RIGHT_CORNER_RADIUS","RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS","RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS","BORDER_TOP_WEIGHT","BORDER_BOTTOM_WEIGHT","BORDER_LEFT_WEIGHT","BORDER_RIGHT_WEIGHT","VARIANT_PROPERTIES","STACK_COUNTER_SPACING","OPACITY","GRID_ROW_GAP","GRID_COLUMN_GAP","MOTION_TRANSLATION_X","MOTION_TRANSLATION_Y","MOTION_TRANSLATION_XY","MOTION_TRANSFORM_ORIGIN_X","MOTION_TRANSFORM_ORIGIN_Y","MOTION_TRANSFORM_ORIGIN_XY","MOTION_ROTATION","MOTION_SCALE_X","MOTION_SCALE_Y","MOTION_SCALE_XY","MOTION_SHEAR","SCROLL_OFFSET_X","SCROLL_OFFSET_Y","PATH_TRIM_START","PATH_TRIM_END","DISSOLVE_PROGRESS","MEDIA_CURRENT_TIME","TRANSFORM_3D_PERSPECTIVE","TRANSFORM_3D_TRANSLATION_Z","TRANSFORM_3D_ROTATION_X","TRANSFORM_3D_ROTATION_Y","TRANSFORM_3D_ROTATION_Z","TRANSFORM_3D_ROTATION_XYZ","SCENE_3D_PERSPECTIVE","POLYGON_COUNT","ARC_DATA_STARTING_ANGLE","ARC_DATA_ENDING_ANGLE","ARC_DATA_INNER_RADIUS","STAR_INNER_SCALE"];var sl={MOTION_ROTATION:"ROTATION",MOTION_SCALE_X:"SCALE_X",MOTION_SCALE_Y:"SCALE_Y",MOTION_SCALE_XY:"SCALE_XY",MOTION_SHEAR:"SHEAR",MOTION_TRANSLATION_X:"TRANSLATION_X",MOTION_TRANSLATION_Y:"TRANSLATION_Y",MOTION_TRANSLATION_XY:"TRANSLATION_XY"},sse=Object.fromEntries(Object.entries(sl).map(([e,t])=>[t,e]));var g_=["OFFSET_X","OFFSET_Y","RADIUS","SPREAD","COLOR","REFRACTION_RADIUS","SPECULAR_ANGLE","SPECULAR_INTENSITY","CHROMATIC_ABERRATION","SPLAY","REFRACTION_INTENSITY","START_RADIUS","NOISE_SIZE_X","NOISE_SIZE_Y","DENSITY","EFFECT_OPACITY","SECONDARY_COLOR"];var lse=new Set(g_);var B5=["TRANSFORM_3D_TRANSLATION_Z","TRANSFORM_3D_ROTATION_X","TRANSFORM_3D_ROTATION_Y","TRANSFORM_3D_ROTATION_Z","SCENE_3D_PERSPECTIVE"],KM=["CORNER_RADIUS","STROKE_WEIGHT","STACK_SPACING","STACK_PADDING_LEFT","STACK_PADDING_TOP","STACK_PADDING_RIGHT","STACK_PADDING_BOTTOM","WIDTH","HEIGHT","RECTANGLE_TOP_LEFT_CORNER_RADIUS","RECTANGLE_TOP_RIGHT_CORNER_RADIUS","RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS","RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS","BORDER_TOP_WEIGHT","BORDER_BOTTOM_WEIGHT","BORDER_LEFT_WEIGHT","BORDER_RIGHT_WEIGHT","STACK_COUNTER_SPACING","OPACITY","GRID_ROW_GAP","GRID_COLUMN_GAP","TRANSLATION_X","TRANSLATION_Y","TRANSLATION_XY","ROTATION","SCALE_X","SCALE_Y","SCALE_XY","PATH_TRIM_START","PATH_TRIM_END"],U5=new Set(KM),V5=new Set([...KM,...B5]);function H5(e){return Object.prototype.hasOwnProperty.call(sl,e)}function WM(e){return H5(e)?sl[e]:e}var W5=[WM(pR[0]),...pR.slice(1).map(WM)];function zM(e){return W5.filter(t=>e.has(t))}var Y5=zM(U5),XM=zM(V5),dse=new Set(Y5),pse=new Set(XM);var jM=XM;var Ise=Math.PI/180,gse=180/Math.PI;var K5=new Set(["TRANSLATION_XY","SCALE_XY"]),Sse=new Set(jM.filter(e=>!K5.has(e)));var Ms=[0,0,1,1];function mR(e,t,n){let r=1-e;return 3*r*r*e*t+3*r*e*e*n+e*e*e}function z5(e,t,n){let r=1-e;return 3*r*r*t+6*r*e*(n-t)+3*e*e*(1-n)}function S_(e,t){if(e<=0)return 0;if(e>=1)return 1;let[n,r,o,i]=t;if(n===0&&r===0&&o===1&&i===1)return e;let s=e;for(let u=0;u<8;u+=1){let c=mR(s,n,o)-e,f=z5(s,n,o);if(Math.abs(c)<1e-6||Math.abs(f)<1e-6)break;s-=c/f}let a=0,l=1;s=Math.min(1,Math.max(0,s));for(let u=0;u<12;u+=1){let c=mR(s,n,o);if(Math.abs(c-e)<1e-6)break;c<e?a=s:l=s,s=(a+l)/2}return mR(s,r,i)}function Ne(e,t){let n=10**t;return Math.round(e*n)/n}var X5=.001,j5=.9999;var $5=.03;
10686function ZM(e,t,n){return Math.min(n,Math.max(t,e))}function R_(e){let t=e.damping/(2*Math.sqrt(e.stiffness*e.mass));return ZM(t,$5,j5)}function ER(e,t){let{stiffness:n,mass:r}=e,o=Math.sqrt(n/r),i=R_(e),s;if(i<1){let a=o*Math.sqrt(1-i*i),l=1,u=i*o/a;s=Math.exp(-t*i*o)*(l*Math.cos(a*t)+u*Math.sin(a*t))}else s=(1+o*t)*Math.exp(-t*o);return 1-s}function Kd(e){return e.mass>0&&e.stiffness>0&&e.damping>0}function JM(e){let t=e.damping/(2*Math.sqrt(e.stiffness*e.mass));return ZM(1-t,0,1)}function zd(e){let{mass:t,stiffness:n}=e,r=Math.sqrt(n/t),o=R_(e),i=o*r,s=r*Math.sqrt(1-o*o),a=o*r/s;return(-Math.log(X5)+Math.log(1+a))/i}function qM(e){if(!Kd(e))return n=>n;let t=zd(e);return n=>ER(e,n*t)}function Fs(e,t){if(e.length<=2)return e;let n=[];for(let r=0;r<e.length;r+=1){let o=r>0&&t(e[r])===t(e[r-1]),i=r<e.length-1&&t(e[r])===t(e[r+1]);o&&i||n.push(e[r])}return n}function Xd(e,t,n){switch(n){case"SET":return e;case"OFFSET":return t+e;case"SCALE":return t*e}}function jd(e){switch(e){case"SET":return 0;case"OFFSET":return 1;case"SCALE":return 2;default:return 3}}function Z5(e,t){return S_(t,[e.value.p1x,e.value.p1y,e.value.p2x,e.value.p2y])}function J5(e,t){let{mass:n,stiffness:r,damping:o}=e.value;if(!(n>0)||!(r>0)||!(o>0))return t;let i=Math.max(0,t)*zd(e.value);return ER(e.value,i)}function e1(e,t){switch(e.type){case"LINEAR":return t;case"BEZIER":return Z5(e,t);case"SPRING":return J5(e,t);case"HOLD":return 0}}function Ar(e,t,n){if(e.keyframes.length===0)return t;let r=e.keyframes,o=r[r.length-1];if(o.timeMicros<=n)return Xd(o.value,t,e.keyframeOperation);for(let i=0;i<r.length;i+=1){let s=r[i];if(s.timeMicros>=n){let a=Xd(s.value,t,e.keyframeOperation),l=i===0?null:r[i-1];if(l==null||n===s.timeMicros)return a;let u=Xd(l.value,t,e.keyframeOperation),c=s.timeMicros-l.timeMicros;if(c<=0)return a;let f=(n-l.timeMicros)/c,d=e1(s.easing,f);return u+(a-u)*d}}return Xd(o.value,t,e.keyframeOperation)}var al={type:"LINEAR"},q5=1e-6,Q5=1e-4;function ez(e){return Math.max(1,Math.round(e*1e6))}function Rr(e,t){return Math.abs(e-t)<q5}function TR(e,t){if(e.type!==t.type)return!1;switch(e.type){case"LINEAR":case"HOLD":return!0;case"BEZIER":{let n=t;return Rr(e.value.p1x,n.value.p1x)&&Rr(e.value.p1y,n.value.p1y)&&Rr(e.value.p2x,n.value.p2x)&&Rr(e.value.p2y,n.value.p2y)}case"SPRING":{let n=t;return Rr(e.value.mass,n.value.mass)&&Rr(e.value.stiffness,n.value.stiffness)&&Rr(e.value.damping,n.value.damping)}}}function tz(e,t){let n=new Set([0,t]);for(let r of e)for(let o of r.keyframes)n.add(o.timeMicros);return Array.from(n).sort((r,o)=>r-o)}function A_(e,t,n){if(t.length===1)return Ar(t[0],e,n);let r=e,o=[];for(let i of t)i.keyframeOperation==="SCALE"?o.push(i):r=Ar(i,r,n);return o.length===0?r:r*nz(o,n)}function nz(e,t){let n=(l,u)=>Ar(l,1,u),r=e.filter(l=>l.keyframes.length>0).map(l=>{let u=l.keyframes[0],c=l.keyframes[l.keyframes.length-1],f=n(l,c.timeMicros)>=n(l,u.timeMicros),d=t>=u.timeMicros;return{track:l,startMicros:u.timeMicros,increasing:f,started:d}}).sort((l,u)=>l.startMicros!==u.startMicros?l.startMicros-u.startMicros:Number(l.increasing)-Number(u.increasing));if(r.length===0)return 1;let o=r.some(({started:l})=>l),i=r[0].startMicros,s=r.filter(({started:l,startMicros:u})=>o?l:u===i),a=n(s[0].track,t);for(let l=1;l<s.length;l+=1){let{track:u,increasing:c}=s[l],f=n(u,t);a=c?Math.max(a,f):Math.min(a,f)}return a}function QM(e,t){let n=Ar(e,0,t);return{scale:Ar(e,1,t)-n,offset:n}}function _R(e){return e.kind==="varying"&&Rr(e.startValue,e.endValue)?{kind:"constant",value:e.startValue}:e}function rz(e,t,n){let r=QM(e,t),o=QM(e,n);if(Rr(r.scale,o.scale)&&Rr(r.offset,o.offset))return{kind:"exact",transform:{kind:"constant",scale:r.scale,offset:r.offset}};let i=t+(n-t)/2,s=e.keyframes.findIndex(c=>c.timeMicros>=i);if(s<=0)return{kind:"sample",reason:"missingSegment"};let a=e.keyframes[s],u=e.keyframes[s-1].timeMicros===t&&a.timeMicros===n;return a.easing.type==="HOLD"?{kind:"exact",transform:{kind:"constant",scale:r.scale,offset:r.offset}}:!u&&a.easing.type!=="LINEAR"?{kind:"sample",reason:"nonlinearSubsegment"}:{kind:"exact",transform:{kind:"varying",easing:a.easing,scaleStart:r.scale,scaleEnd:o.scale,offsetStart:r.offset,offsetEnd:o.offset}}}function oz(e,t){if(t.kind==="constant")return e.kind==="constant"?{kind:"exact",interval:{kind:"constant",value:e.value*t.scale+t.offset}}:{kind:"exact",interval:_R({kind:"varying",easing:e.easing,startValue:e.startValue*t.scale+t.offset,endValue:e.endValue*t.scale+t.offset})};if(e.kind==="constant")return{kind:"exact",interval:_R({kind:"varying",easing:t.easing,startValue:e.value*t.scaleStart+t.offsetStart,endValue:e.value*t.scaleEnd+t.offsetEnd})};if(!TR(e.easing,t.easing))return{kind:"sample",reason:"mixedEasing"};if(!Rr(t.scaleStart,t.scaleEnd))return{kind:"sample",reason:"varyingScale"};let n=t.scaleStart;return{kind:"exact",interval:_R({kind:"varying",easing:e.easing,startValue:e.startValue*n+t.offsetStart,endValue:e.endValue*n+t.offsetEnd})}}function iz(e,t,n,r){if(t.filter(s=>s.keyframeOperation==="SCALE").length>=2)return{kind:"sample",intervalStartMicros:n,intervalEndMicros:r,reason:"multipleScaleTracks"};let i={kind:"constant",value:e};for(let s of t){let a=rz(s,n,r);if(a.kind==="sample")return{kind:"sample",intervalStartMicros:n,intervalEndMicros:r,reason:a.reason};let l=oz(i,a.transform);if(l.kind==="sample")return{kind:"sample",intervalStartMicros:n,intervalEndMicros:r,reason:l.reason};i=l.interval}return{kind:"exact",intervalStartMicros:n,intervalEndMicros:r,interval:i}}function sz(e,t,n){let r=[];for(let o=0;o<n.length-1;o+=1)r.push(iz(e,t,n[o],n[o+1]));return r}function az(e,t,n,r,o){let i=[];for(let s of e){if(s.kind==="exact"){lz(i,r,s.intervalStartMicros,s.intervalEndMicros,s.interval);continue}uz(i,t,n,r,s.intervalStartMicros,s.intervalEndMicros,o)}if(i.length>0){let s=Ne(A_(t,n,r),3),a=i[i.length-1];a.time===1&&!Rr(a.value,s)&&dc(i,r,r,s)}return i}function dc(e,t,n,r){let o=Ne(n/t,4),i=Ne(r,3),s=e[e.length-1];if(s&&o===s.time&&Rr(i,s.value))return s;s&&o===s.time&&(s.time=Ne(Math.max(0,o-Q5),4));let a={time:o,value:i,easing:al};return e.push(a),a}function lz(e,t,n,r,o){let i=dc(e,t,n,o.kind==="constant"?o.value:o.startValue);if(o.kind==="constant"){i.easing=al;let a=dc(e,t,r,o.value);a.easing=al;return}i.easing=o.easing;let s=dc(e,t,r,o.endValue);s.easing=al}function uz(e,t,n,r,o,i,s){let a=ez(s);for(let u=o;u<i;u+=a){let c=dc(e,r,u,A_(t,n,u));c.easing=al}let l=dc(e,r,i,A_(t,n,i));l.easing=al}function t1(e,t,n,r=.5){if(n<=0)return[];let o=tz(t,n);if(o.length===0)return[];if(o.length===1)return[{time:Ne(o[0]/n,4),value:Ne(A_(e,t,o[0]),3),easing:al}];let i=sz(e,t,o);return az(i,e,t,n,r)}function pc(e){return e*(180/Math.PI)}function Mn(e,t){let n=Ne(e,3);switch(t){case"px":return`${n}px`;case"rad":return`${n}rad`;case"number":return`${n}`}}var Lt={MOTION_TRANSLATION_X:{css:{property:"translateX",unit:"px",transformFunction:"translateX"},motionDev:{property:"x",unit:"px"},svg:{exportVia:"css"}},MOTION_TRANSLATION_Y:{css:{property:"translateY",unit:"px",transformFunction:"translateY"},motionDev:{property:"y",unit:"px"},svg:{exportVia:"css"}},MOTION_ROTATION:{css:{property:"rotate",unit:"rad",transformFunction:"rotate"},motionDev:{property:"rotate",unit:"deg",mapValue:pc},svg:{exportVia:"css"}},MOTION_SCALE_X:{css:{property:"scaleX",unit:"number",transformFunction:"scaleX",propertyDeclarationInitialValue:"1"},motionDev:{property:"scaleX",unit:"number"},svg:{exportVia:"css"}},MOTION_SCALE_Y:{css:{property:"scaleY",unit:"number",transformFunction:"scaleY",propertyDeclarationInitialValue:"1"},motionDev:{property:"scaleY",unit:"number"},svg:{exportVia:"css"}},MOTION_SHEAR:{css:{property:"shear",unit:"rad",transformFunction:"skewX"},motionDev:{property:"skewX",unit:"deg",mapValue:pc},svg:{exportVia:"css"}},TRANSFORM_3D_TRANSLATION_Z:{css:{property:"translateZ",unit:"px",transformFunction:"translateZ"},motionDev:{property:"z",unit:"px"},svg:null},TRANSFORM_3D_ROTATION_X:{css:{property:"rotateX",unit:"rad",transformFunction:"rotateX"},motionDev:{property:"rotateX",unit:"deg",mapValue:pc},svg:null},TRANSFORM_3D_ROTATION_Y:{css:{property:"rotateY",unit:"rad",transformFunction:"rotateY"},motionDev:{property:"rotateY",unit:"deg",mapValue:pc},svg:null},TRANSFORM_3D_ROTATION_Z:{css:{property:"rotateZ",unit:"rad",transformFunction:"rotateZ"},motionDev:{property:"rotateZ",unit:"deg",mapValue:pc},svg:null},SCENE_3D_PERSPECTIVE:{css:{property:"perspective",unit:"px",generateOffset:!0},motionDev:{property:"perspective",unit:"px"},svg:null},OPACITY:{css:{property:"opacity",unit:"number",generateOffset:!0,parameterUnitDivisor:100},motionDev:{property:"opacity",unit:"number",parameterUnitDivisor:100},svg:{exportVia:"css"}},WIDTH:{css:{property:"width",unit:"px",generateOffset:!0},motionDev:{property:"width",unit:"px"},svg:{exportVia:"smil",attributeName:"width"}},HEIGHT:{css:{property:"height",unit:"px",generateOffset:!0},motionDev:{property:"height",unit:"px"},svg:{exportVia:"smil",attributeName:"height"}},MIN_WIDTH:{css:{property:"min-width",unit:"px",generateOffset:!0},motionDev:{property:"minWidth",unit:"px"},svg:null},MAX_WIDTH:{css:{property:"max-width",unit:"px",generateOffset:!0},motionDev:{property:"maxWidth",unit:"px"},svg:null},MIN_HEIGHT:{css:{property:"min-height",unit:"px",generateOffset:!0},motionDev:{property:"minHeight",unit:"px"},svg:null},MAX_HEIGHT:{css:{property:"max-height",unit:"px",generateOffset:!0},motionDev:{property:"maxHeight",unit:"px"},svg:null},CORNER_RADIUS:{css:{property:"border-radius",unit:"px",generateOffset:!0},motionDev:{property:"borderRadius",unit:"px"},svg:{exportVia:"smil",attributeName:"rx"}},RECTANGLE_TOP_LEFT_CORNER_RADIUS:{css:{property:"border-top-left-radius",unit:"px",generateOffset:!0},motionDev:{property:"borderTopLeftRadius",unit:"px"},svg:null},RECTANGLE_TOP_RIGHT_CORNER_RADIUS:{css:{property:"border-top-right-radius",unit:"px",generateOffset:!0},motionDev:{property:"borderTopRightRadius",unit:"px"},svg:null},RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS:{css:{property:"border-bottom-left-radius",unit:"px",generateOffset:!0},motionDev:{property:"borderBottomLeftRadius",unit:"px"},svg:null},RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS:{css:{property:"border-bottom-right-radius",unit:"px",generateOffset:!0},motionDev:{property:"borderBottomRightRadius",unit:"px"},svg:null},STROKE_WEIGHT:{css:{property:"border-width",unit:"px",generateOffset:!0},motionDev:{property:"borderWidth",unit:"px"},svg:{exportVia:"css",cssPropertyOverride:"stroke-width"}},BORDER_TOP_WEIGHT:{css:{property:"border-top-width",unit:"px",generateOffset:!0},motionDev:{property:"borderTopWidth",unit:"px"},svg:null},BORDER_RIGHT_WEIGHT:{css:{property:"border-right-width",unit:"px",generateOffset:!0},motionDev:{property:"borderRightWidth",unit:"px"},svg:null},BORDER_BOTTOM_WEIGHT:{css:{property:"border-bottom-width",unit:"px",generateOffset:!0},motionDev:{property:"borderBottomWidth",unit:"px"},svg:null},BORDER_LEFT_WEIGHT:{css:{property:"border-left-width",unit:"px",generateOffset:!0},motionDev:{property:"borderLeftWidth",unit:"px"},svg:null},TEXT_STROKE_WIDTH:{css:{property:"-webkit-text-stroke-width",unit:"px",generateOffset:!0},motionDev:{property:"WebkitTextStrokeWidth",unit:"px"},svg:null},STACK_PADDING_LEFT:{css:{property:"padding-left",unit:"px",generateOffset:!0},motionDev:{property:"paddingLeft",unit:"px"},svg:null},STACK_PADDING_TOP:{css:{property:"padding-top",unit:"px",generateOffset:!0},motionDev:{property:"paddingTop",unit:"px"},svg:null},STACK_PADDING_RIGHT:{css:{property:"padding-right",unit:"px",generateOffset:!0},motionDev:{property:"paddingRight",unit:"px"},svg:null},STACK_PADDING_BOTTOM:{css:{property:"padding-bottom",unit:"px",generateOffset:!0},motionDev:{property:"paddingBottom",unit:"px"},svg:null},STACK_SPACING:{css:{property:"gap",unit:"px",generateOffset:!0},motionDev:{property:"gap",unit:"px"},svg:null},STACK_COUNTER_SPACING:{css:{property:"gap",unit:"px",generateOffset:!0},motionDev:{property:"gap",unit:"px"},svg:null},GRID_ROW_GAP:{css:{property:"row-gap",unit:"px",generateOffset:!0},motionDev:{property:"rowGap",unit:"px"},svg:null},GRID_COLUMN_GAP:{css:{property:"column-gap",unit:"px",generateOffset:!0},motionDev:{property:"columnGap",unit:"px"},svg:null},FONT_SIZE:{css:{property:"font-size",unit:"px",generateOffset:!0},motionDev:{property:"fontSize",unit:"px"},svg:{exportVia:"css"}},LETTER_SPACING:{css:{property:"letter-spacing",unit:"px"},motionDev:{property:"letterSpacing",unit:"px"},svg:null},LINE_HEIGHT:{css:{property:"line-height",unit:"px",generateOffset:!0},motionDev:{property:"lineHeight",unit:"px"},svg:null},PARAGRAPH_SPACING:{css:{property:"margin-bottom",unit:"px"},motionDev:{property:"marginBottom",unit:"px"},svg:null},PARAGRAPH_INDENT:{css:{property:"text-indent",unit:"px"},motionDev:{property:"textIndent",unit:"px"},svg:null}};var n1=["translateX","translateY","rotate","scaleX","scaleY","shear"],
10686cz=["translateZ","rotateX","rotateY","rotateZ"],r1=[...n1,...cz],ll=new Set([Lt.MOTION_TRANSLATION_X.motionDev.property,Lt.MOTION_TRANSLATION_Y.motionDev.property,Lt.MOTION_ROTATION.motionDev.property,Lt.MOTION_SCALE_X.motionDev.property,Lt.MOTION_SCALE_Y.motionDev.property,Lt.MOTION_SHEAR.motionDev.property,Lt.TRANSFORM_3D_TRANSLATION_Z.motionDev.property,Lt.TRANSFORM_3D_ROTATION_X.motionDev.property,Lt.TRANSFORM_3D_ROTATION_Y.motionDev.property,Lt.TRANSFORM_3D_ROTATION_Z.motionDev.property]);var a1={fills:{css:{property:"background-color"},motionDev:{property:"background"},svg:{property:"fill"}},strokes:{css:{property:"border-color"},motionDev:{property:"borderColor"},svg:{property:"stroke"}}},fz={css:{property:"color"},motionDev:{property:"color"},svg:{property:"fill"}},dz={css:{property:"-webkit-text-stroke-color"},motionDev:{property:"WebkitTextStrokeColor"},svg:{property:"stroke"}};function IR(e){return e in a1}function gR(e,t){return t?.isTextNode?e==="fills"?fz:dz:a1[e]}var pz={LAYER_BLUR:{RADIUS:{css:{property:"filter",unit:"px",cssFunction:"blur"},motionDev:{property:"filter",unit:"px",motionDevFunction:"blur"}}},BACKGROUND_BLUR:{RADIUS:{css:{property:"backdrop-filter",unit:"px",cssFunction:"blur"},motionDev:{property:"backdropFilter",unit:"px",motionDevFunction:"blur"}}}};var mz=pz;function SR(e,t){return mz[e]?.[t]?.motionDev??null}function RR(e){return Object.keys(e).map(t=>Number(t)).filter(t=>Number.isFinite(t)).sort((t,n)=>t-n)}function Pi(e,t,n,r){let o=hR(e),i=hR(t),s=hR(n),a=Math.min(1,Math.max(0,r));if(a>=1)return Ez(o,i,s);let l=Ne(a,2);return`rgba(${o}, ${i}, ${s}, ${l})`}function hR(e){return Math.min(255,Math.max(0,Math.round(e*255)))}function Ez(e,t,n){let r=i=>i.toString(16).toUpperCase().padStart(2,"0"),o=`${r(e)}${r(t)}${r(n)}`;return o[0]===o[1]&&o[2]===o[3]&&o[4]===o[5]?`#${o[0]}${o[2]}${o[4]}`:`#${o}`}function $d(e){if(!e?.tracks||e.baseValue.type!=="COLOR")return null;let t=e.baseValue.value,n=[],r=e.accumulatedAncestorOffsetMicros??0,o=[...e.tracks].filter(i=>i!=null).sort((i,s)=>{let a=i.animationPreset?.timelineOffset??0,l=s.animationPreset?.timelineOffset??0;return a-l});for(let i=0;i<o.length;i++){let s=o[i];for(let a of s.keyframes){if(a.value.type!=="COLOR")continue;let l=(s.animationPreset?.timelineOffset??0)*1e6,u=a.timelinePosition+l+r,{r:c,g:f,b:d,a:p}=a.value.value;n.push({absolutePositionMicros:u,trackIndex:i,r:c,g:f,b:d,a:p,easing:a.easing})}}return n.sort((i,s)=>i.absolutePositionMicros-s.absolutePositionMicros),n.length>0?{keyframes:n,baseColor:t}:null}function l1(e){return"parameterUnitDivisor"in e?e.parameterUnitDivisor:1}function o1(e,t){return"mapValue"in e?e.mapValue(t):t}function _z(e,t){if(t?.isTextNode&&e==="STROKE_WEIGHT")return Lt.TEXT_STROKE_WIDTH}function Tz(e,t,n){let r=_z(e,n);if(r)return r.motionDev;let o=n?.layoutMode;if(o==="HORIZONTAL"){if(e==="STACK_SPACING")return Lt.GRID_COLUMN_GAP.motionDev;if(e==="STACK_COUNTER_SPACING")return Lt.GRID_ROW_GAP.motionDev}else if(o==="VERTICAL"){if(e==="STACK_SPACING")return Lt.GRID_ROW_GAP.motionDev;if(e==="STACK_COUNTER_SPACING")return Lt.GRID_COLUMN_GAP.motionDev}return t.motionDev}function i1(e){return typeof e=="object"&&e!==null&&"tracks"in e&&"timelineDuration"in e}function hz(e,t,n){let r=new Map,o=0;for(let[i,s]of Object.entries(e)){if(i1(s))o=Math.max(o,s.timelineDuration);else if(typeof s=="object"&&s!==null)for(let _ of Object.values(s))_&&typeof _=="object"&&"timelineDuration"in _&&(o=Math.max(o,_.timelineDuration));if(i==="fills"||i==="strokes"||!i1(s))continue;let a=Lt[i];if(!a)continue;if(s.baseValue.type!=="FLOAT"){console.warn("Keyframe conversion does not support non-float keyframes",{parameterField:i,type:s.baseValue.type});continue}let l=t(i,a),u=l.property,c=o1(l,s.baseValue.value),f=s.accumulatedAncestorOffsetMicros??0,d=s.tracks.filter(_=>_!=null).map(_=>{let T=(_.animationPreset?.timelineOffset??0)*1e6,h=_.keyframes.flatMap(m=>m.value.type!=="FLOAT"?[]:[{timeMicros:m.timelinePosition+T+f,value:o1(l,m.value.value),easing:m.easing}]).sort((m,E)=>m.timeMicros-E.timeMicros);return{keyframeOperation:_.keyframeOperation,keyframes:h}}).filter(_=>_.keyframes.length>0).sort((_,T)=>jd(_.keyframeOperation)-jd(T.keyframeOperation));if(d.length===0)continue;let p=r.get(u);if(p&&n?.mergeDuplicateProperties){p.timelineDurationMicros=Math.max(p.timelineDurationMicros,s.timelineDuration),p.tracks.push(...d),p.tracks.sort((_,T)=>jd(_.keyframeOperation)-jd(T.keyframeOperation));continue}r.set(u,{target:l,baseValue:c,timelineDurationMicros:s.timelineDuration,tracks:d})}return{durationMicros:o,propertiesByName:r}}function u1(e,t){return hz(e,(n,r)=>Tz(n,r,t))}var c1={OFFSET_X:"offsetX",OFFSET_Y:"offsetY",RADIUS:"radius",SPREAD:"spread"};function gz(e){let t=e.tracks[0];if(!t||t.keyframes.length===0)return null;let n=e.accumulatedAncestorOffsetMicros??0,r=(t.animationPreset?.timelineOffset??0)*1e6,o=[];for(let i of t.keyframes)i.value.type==="FLOAT"&&o.push({timeMicros:i.timelinePosition+r+n,value:i.value.value,easing:i.easing});return o.length===0?null:(o.sort((i,s)=>i.timeMicros-s.timeMicros),{track:{keyframeOperation:t.keyframeOperation,keyframes:o},durationMicros:e.timelineDuration})}function Sz(e){return e.map(t=>({timeMicros:t.absolutePositionMicros,r:t.r,g:t.g,b:t.b,a:t.a,easing:t.easing})).sort((t,n)=>t.timeMicros-n.timeMicros)}function Zd(e,t){if(!t||t.length===0)return{tracks:[],durationMicros:0};let n=e.effects,r=[],o=0,i=!1;for(let s=0;s<t.length;s++){let a=t[s];if(!a)continue;let l={effectIndex:s,base:a},u=n?.[s];if(u){for(let[c,f]of Object.entries(u))if(f){if(c==="COLOR"){let d=$d(f);if(!d)continue;l.color=Sz(d.keyframes),i=!0,o=Math.max(o,f.timelineDuration)}else if(c in c1){let d=gz(f);if(!d)continue;let p=c1[c];l[p]=d.track,i=!0,o=Math.max(o,d.durationMicros)}}}r.push(l)}return i?{tracks:r,durationMicros:o}:{tracks:[],durationMicros:0}}
10686function f1(e,t,n){if(e.length===0)return t;let r=e[0];if(n<=r.timeMicros)return r;let o=e[e.length-1];if(n>=o.timeMicros)return o;for(let i=1;i<e.length;i++){let s=e[i];if(s.timeMicros>=n){let a=e[i-1],l=s.timeMicros-a.timeMicros;if(l<=0)return s;let u=(n-a.timeMicros)/l;return{r:a.r+(s.r-a.r)*u,g:a.g+(s.g-a.g)*u,b:a.b+(s.b-a.b)*u,a:a.a+(s.a-a.a)*u}}}return o}function Rz(e,t){let n=e.offsetX?Ar(e.offsetX,e.base.offsetX,t):e.base.offsetX,r=e.offsetY?Ar(e.offsetY,e.base.offsetY,t):e.base.offsetY,o=e.radius?Ar(e.radius,e.base.radius,t):e.base.radius,i=e.color?f1(e.color,e.base.color,t):e.base.color;return`drop-shadow(${Mn(n,"px")} ${Mn(r,"px")} ${Mn(Math.max(0,o),"px")} ${Pi(i.r,i.g,i.b,i.a)})`}function Az(e,t){let n=[];for(let r=e.length-1;r>=0;r--)n.push(Rz(e[r],t));return n.join(" ")}function yz(e,t,n){let r=e.offsetX?Ar(e.offsetX,e.base.offsetX,t):e.base.offsetX,o=e.offsetY?Ar(e.offsetY,e.base.offsetY,t):e.base.offsetY,i=e.radius?Ar(e.radius,e.base.radius,t):e.base.radius,s=e.color?f1(e.color,e.base.color,t):e.base.color;if(n)return`${Mn(r,"px")} ${Mn(o,"px")} ${Mn(i,"px")} `+Pi(s.r,s.g,s.b,s.a);let a=e.spread?Ar(e.spread,e.base.spread,t):e.base.spread,l=`${Mn(r,"px")} ${Mn(o,"px")} ${Mn(i,"px")} ${Mn(a,"px")} `+Pi(s.r,s.g,s.b,s.a);return e.base.inset?`${l} inset`:l}function Nz(e,t,n){let r=[];for(let o=e.length-1;o>=0;o--)r.push(yz(e[o],t,n));return r.join(", ")}function bz(e,t){for(let n of e.keyframes)if(n.timeMicros===t)return n.easing;return null}function Lz(e,t){for(let n of e)if(n.timeMicros===t)return n.easing;return null}function Cz(e,t,n){let r=!1,o=!1,i=!1;for(let s of e.keyframes){if(s.timeMicros===n)i=!0;else if(s.timeMicros>t&&s.timeMicros<n)return!0;s.timeMicros<=t&&(r=!0),s.timeMicros>n&&(o=!0)}return!i&&r&&o}function Pz(e,t,n){let r=!1,o=!1,i=!1;for(let s of e){if(s.timeMicros===n)i=!0;else if(s.timeMicros>t&&s.timeMicros<n)return!0;s.timeMicros<=t&&(r=!0),s.timeMicros>n&&(o=!0)}return!i&&r&&o}function Dz(e,t,n){let r=[];for(let s of e){for(let a of["offsetX","offsetY","radius","spread"]){let l=s[a];if(!l)continue;if(Cz(l,t,n))return{type:"LINEAR"};let u=bz(l,n);u&&r.push(u)}if(s.color){if(Pz(s.color,t,n))return{type:"LINEAR"};let a=Lz(s.color,n);a&&r.push(a)}}if(r.length===0)return null;let[o,...i]=r;return i.every(s=>TR(o,s))?o:{type:"LINEAR"}}function d1(e,t,n=!1){return p1(e,t,(r,o)=>Nz(r,o,n))}function p1(e,t,n){let r=new Set([0,t]),o=a=>Math.min(t,Math.max(0,a));for(let a of e){for(let l of["offsetX","offsetY","radius","spread"]){let u=a[l];if(u)for(let c of u.keyframes)r.add(o(c.timeMicros))}if(a.color)for(let l of a.color)r.add(o(l.timeMicros))}let i=Array.from(r).sort((a,l)=>a-l),s=i.map((a,l)=>{let u=i[l+1];return{timeMicros:a,value:n(e,a),easing:u!=null?Dz(e,a,u):null}});return Fs(s,a=>a.value)}function m1(e,t){let n=e.filter(o=>!o.base.inset),r=n.length!==e.length;return n.length===0?{keyframes:[],droppedInset:r}:{keyframes:p1(n,t,Az),droppedInset:r}}ke();var kz=new Set(["width","height","maxWidth","maxHeight","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","paddingLeft","paddingTop","paddingRight","paddingBottom","marginBottom","x","y","scaleX","scaleY","rotate","skewX"]),CR=new Set(Object.values(Lt).map(e=>e.motionDev).filter(e=>e.unit==="px"&&!kz.has(e.property)).map(e=>e.property));function wz(e,t,n){let r={mass:e,stiffness:t,damping:n},o=Math.sqrt(t/e),i=R_(r),s=zd(r),a=qM(r);return Object.assign(a,{__springParams:{mass:e,stiffness:t,damping:n,zeta:i,w0:o,duration:s}})}function _1(e){return typeof e=="function"&&"__springParams"in e}function yR(e,t,n){if(n.length===1&&n[0]?.type==="SPRING"){let o=n[0];if(Kd(o.value))return{duration:e,type:"spring",bounce:JM(o.value)}}let r=n.map(o=>{let{type:i}=o;switch(i){case"LINEAR":return"linear";case"BEZIER":{let{p1x:s,p1y:a,p2x:l,p2y:u}=o.value;return[Ne(s,3),Ne(a,3),Ne(l,3),Ne(u,3)]}case"SPRING":return Kd(o.value)?wz(o.value.mass,o.value.stiffness,o.value.damping):"linear";case"HOLD":return"linear";default:cc(i)}});return{duration:e,times:t,ease:r}}var T1=1e-4;function Bz(e){if(e.length===0)return[];let t=[...e];t.length>1&&t[t.length-1].time<1&&t.push({...t[t.length-1],time:1});
10686let n=Math.round(1/T1),r=t.map(o=>Math.round(o.time*n));for(let o=1;o<r.length;o+=1)r[o]=Math.max(r[o],r[o-1]+1);if(r[r.length-1]>n){r[r.length-1]=n;for(let o=r.length-2;o>=0;o-=1)r[o]=Math.min(r[o],r[o+1]-1)}if(r[0]<0){r[0]=0;for(let o=1;o<r.length;o+=1)r[o]=Math.max(r[o],r[o-1]+1)}return t.map((o,i)=>({...o,time:r[i]/n}))}function Uz(e,t){let n=new Map;for(let[r,o]of e.propertiesByName){let i=t1(o.baseValue,o.tracks,e.durationMicros),s=t?.normalizeParameterUnits?l1(o.target):1,a=Bz(i.map(l=>({...l,value:l.value/s})));a.length>0&&n.set(r,{keyframes:a,baseValue:o.baseValue/s})}return n}function Vz(e,t,n){let r=new Map;for(let[o,i]of Object.entries(e)){if(!i||!IR(o))continue;let s=gR(o,{isTextNode:n}).motionDev.property,a=o==="fills",l=!("tracks"in i),u;if(l){let d=i;u=Object.keys(d).map(Number).filter(p=>!isNaN(p)).sort((p,_)=>p-_).map(p=>[p,d[p]])}else u=[[0,i]];let c=a&&!n&&u.length>1,f=c?u:u.slice(0,1);for(let[d,p]of f){let _=$d(p);if(!_)continue;let T=c?`--fill-color-${d}`:s,h=Pi(_.baseColor.r,_.baseColor.g,_.baseColor.b,_.baseColor.a),m=_.keyframes.map(E=>({time:Ne(E.absolutePositionMicros/t,4),colorString:Pi(E.r,E.g,E.b,E.a),easing:E.easing}));if(m.length>0){m.sort((O,I)=>O.time-I.time);let E=m.map(O=>O.easing);for(let O=0;O<m.length;O++)m[O].easing=O<m.length-1?E[O+1]:{type:"LINEAR"};r.set(T,{property:T,keyframes:m,baseColorString:h})}}}return r}function Hz(e,t,n,r){let o=e.effects;if(!o||n===0)return[];let i=[];for(let s of RR(o)){let a=o[s];if(!a)continue;let l=t?.[s];if(l)for(let[u,c]of Object.entries(a)){if(!c)continue;let f=SR(l,u),d=r&&l==="BACKGROUND_BLUR"&&f?{...f,property:"filter",motionDevFunction:"blur"}:f;if(!d||c.baseValue.type!=="FLOAT")continue;let p=c.tracks[0];if(!p||p.keyframes.length===0)continue;let _=E1(d,c.baseValue.value),T=[...p.keyframes].sort((E,O)=>E.timelinePosition-O.timelinePosition),h=[];for(let E of T)E.value.type==="FLOAT"&&h.push({time:Ne(E.timelinePosition/n,4),valueString:E1(d,E.value.value),easing:E.easing});if(h.length===0)continue;let m=h.map(E=>E.easing);for(let E=0;E<h.length;E++)h[E].easing=E<h.length-1?h[E].easing.type==="HOLD"?h[E].easing:m[E+1]:{type:"LINEAR"};i.push({effectIndex:s,property:d.property,keyframes:h,baseValueString:_})}}return i}function E1(e,t){return`${e.motionDevFunction}(${Mn(t,e.unit)})`}var Wz="boxShadow",Yz="textShadow";function Kz(e,t,n,r,o){if(n===0)return null;let{tracks:i}=Zd(e,t),s=o?i.filter(o):i;if(s.length===0)return null;let a=d1(s,n,r).map(l=>({time:Ne(l.timeMicros/n,4),valueString:l.value,easing:l.easing??{type:"LINEAR"}}));return a.length===0?null:{effectIndex:s[0].effectIndex,property:r?Yz:Wz,keyframes:a,baseValueString:a[0].valueString}}function zz(e,t,n){let{tracks:r}=Zd(e,t),o=m1(r,n);return o.keyframes.length===0?null:{effectIndex:r.find(i=>!i.base.inset)?.effectIndex??0,property:"filter",keyframes:o.keyframes.map(i=>({time:Ne(i.timeMicros/n,4),valueString:i.value,easing:i.easing??{type:"LINEAR"}})),baseValueString:o.keyframes[0].value}}function NR(e,t){if(e.length<2)return e;let n=[];for(let r=0;r<e.length;r++){let o=e[r];if(o.easing.type==="HOLD"&&r<e.length-1){let i=e[r+1],s=i.time-T1;if(t(o)===t(i)||s<=o.time){n.push({...o,easing:{type:"LINEAR"}});continue}n.push({...o,easing:{type:"LINEAR"}}),n.push({...o,time:Ne(s,4),easing:{type:"LINEAR"},isHoldDuplicate:!0})}else n.push(o)}return n}function bR(e,t){if(e.length===0)return!0;let n=t(e[0]);return e.every(r=>t(r)===n)}function Xz(e,t,n,r,o){let i={},s={},a={},l=new Map,u={},c={},f={},d={},p={},_={},T=Array.from(e.entries()).sort(([m],[E])=>m.localeCompare(E));for(let[m,E]of T){let{keyframes:O,baseValue:I}=E;if(O.length===0)continue;if(bR(O,b=>b.value)){let b=O[0].value;b!==I&&(i[m]=b);continue}i[m]=O[0].value;let g=Fs(O,b=>b.value),S=NR(g,b=>b.value),A=S.map(b=>b.time),R=S.map(b=>b.value),N=new Set;S.forEach((b,M)=>{b.isHoldDuplicate&&N.add(M)}),N.size>0&&l.set(m,N);let L=S.slice(0,-1).map(b=>b.easing);s[m]=R,a[m]=yR(r,A,L),LR(a[m],o)}let h=Array.from(t.entries()).sort(([m],[E])=>m.localeCompare(E));for(let[m,E]of h){let{keyframes:O}=E;if(O.length===0)continue;if(bR(O,N=>N.colorString)){u[m]=O[0].colorString;continue}u[m]=E.baseColorString;let I=Fs(O,N=>N.colorString),g=NR(I,N=>N.colorString),S=g.map(N=>N.time),A=g.map(N=>N.colorString),R=g.slice(0,-1).map(N=>N.easing);c[m]=A,f[m]=yR(r,S,R),LR(f[m],o)}for(let m of n){let{keyframes:E,property:O,baseValueString:I}=m;if(E.length===0)continue;if(bR(E,L=>L.valueString)){d[O]=E[0].valueString;continue}d[O]=I;let g=Fs(E,L=>L.valueString),S=NR(g,L=>L.valueString),A=S.map(L=>L.time),R=S.map(L=>L.valueString),N=S.slice(0,-1).map(L=>L.easing);p[O]=R,_[O]=yR(r,A,N),LR(_[O],o)}return{props:{initial:i,animate:s,transition:a,colorInitial:u,colorAnimate:c,colorTransition:f,...Object.keys(d).length>0?{effectInitial:d}:{},...Object.keys(p).length>0?{effectAnimate:p}:{},...Object.keys(_).length>0?{effectTransition:_}:{}},holdDuplicateIndices:l}}function LR(e,t){!e||t!=="loop"&&t!=="boomerang"||(e.repeat=1/0,t==="boomerang"&&(e.repeatType="reverse"))}function jz(e,t){let n=u1(e,{layoutMode:t?.layoutMode,isTextNode:t?.isTextNode}),r=n.durationMicros;if(e.effects)for(let[u,c]of Object.entries(e.effects)){if(!c)continue;let f=t?.effectTypes?.[Number(u)];if(f)for(let[d,p]of Object.entries(c))p&&SR(f,d)&&(r=Math.max(r,p.timelineDuration))}if(r=Math.max(r,Zd(e,t?.shadowEffectBases).durationMicros),r===0)return null;n.durationMicros=r;let o=Uz(n,{normalizeParameterUnits:t?.normalizeParameterUnits}),i=Vz(e,r,t?.isTextNode??!1),s=Hz(e,t?.effectTypes,r,t?.isVectorNode??!1);if(t?.isVectorNode&&!t?.isTextNode){let u=zz(e,t?.shadowEffectBases,r);u&&s.push(u)}let a=Kz(e,t?.shadowEffectBases,r,t?.isTextNode??!1,t?.isVectorNode&&!t?.isTextNode?u=>u.base.inset:void 0);if(a&&s.push(a),o.size===0&&i.size===0&&s.length===0)return null;let l=Ne(r/1e6,3);return{propertiesByName:o,colorPropertiesByName:i,effectProperties:s,durationSeconds:l,durationMicros:r}}function Di(e,t){let n=jz(e,t);return n?Xz(n.propertiesByName,n.colorPropertiesByName,n.effectProperties,n.durationSeconds,t?.playbackStyle).props:null}var $z=new Set(["x","y","rotate","scaleX","scaleY","skewX","opacity"]),zae=new Set([...$z,"width","height"]);function Zz(e){return e==="linear"?Ms:_1(e)?Ms:e}function Jz(e,t){return _1(t)?t(e):S_(e,Zz(t))}function So(e,t,n,r){if(t.length<2)return n[0]??0;let o=0;for(let f=0;f<t.length-1;f++)e>t[f+1]&&(o=f+1);o=Math.min(o,t.length-2);let i=t[o],s=t[o+1],a=n[o],l=n[o+1],u=s===i?0:Math.max(0,Math.min(1,(e-i)/(s-i))),c=Jz(u,r[o]??"linear");return a+c*(l-a)}function qz(e){let t=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.exec(e.trim());if(t){let r=t[1],o=r.length===3?`${r[0]}${r[0]}${r[1]}${r[1]}${r[2]}${r[2]}`:r;return[parseInt(o.slice(0,2),16),parseInt(o.slice(2,4),16),parseInt(o.slice(4,6),16),1]}let n=/rgba\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*\)/.exec(e);return n?[Number(n[1]),Number(n[2]),Number(n[3]),Number(n[4])]:null}function ul(e,t){let n={},r={},o={};for(let[l,u]of Object.entries(e.transition)){let c=e.animate[l];if(!c||!("times"in u)||!u.times||u.times.length<2){n[l]=e.initial[l]??0,r[l]=c??[],o[l]=u;continue}let{times:f,ease:d}=u,p=So(t,f,c,d);n[l]=p,r[l]=[p,p],o[l]={duration:0,times:[0,1],ease:["linear"]}}for(let l of Object.keys(e.initial))l in n||(n[l]=e.initial[l]??0,r[l]=e.animate[l]??[]);let i={},s={},a={};for(let l of Object.keys(e.colorAnimate??{})){let u=e.colorAnimate?.[l],c=e.colorTransition?.[l];if(!u||!c||!("times"in c)||!c.times||c.times.length<2){i[l]=e.colorInitial?.[l]??u?.[0]??"rgba(0, 0, 0, 1)",u&&(s[l]=u),c&&(a[l]=c);continue}let{times:f,ease:d}=c,p=u.map(qz);if(p.some(O=>O===null)){i[l]=e.colorInitial?.[l]??u[0]??"rgba(0, 0, 0, 1)",s[l]=u,a[l]=c;continue}let _=So(t,f,p.map(O=>O[0]),d),T=So(t,f,p.map(O=>O[1]),d),h=So(t,f,p.map(O=>O[2]),d),m=So(t,f,p.map(O=>O[3]),d),E=Pi(_/255,T/255,h/255,m);i[l]=E,s[l]=[E,E],a[l]={duration:0,times:[0,1],ease:["linear"]}}for(let l of Object.keys(e.colorInitial??{}))if(!(l in i)){i[l]=e.colorInitial?.[l]??"rgba(0, 0, 0, 1)";let u=e.colorAnimate?.[l];u&&(s[l]=u)}return{initial:n,animate:r,transition:o,colorInitial:i,colorAnimate:s,colorTransition:a}}function PR(e){return{initial:{...e.initial,...e.colorInitial},animate:{...e.animate,...e.colorAnimate},transition:{...e.transition,...e.colorTransition}}}ke();
10686var Qz=new Set([k.IN_CUBIC,k.EASE_IN,k.OUT_CUBIC,k.INOUT_CUBIC,k.IN_BACK_CUBIC,k.OUT_BACK_CUBIC,k.INOUT_BACK_CUBIC]),eX=new Set([k.SPRING,k.GENTLE_SPRING,k.CUSTOM_SPRING,k.SPRING_PRESET_ONE,k.SPRING_PRESET_TWO,k.SPRING_PRESET_THREE]);function Jd(e){let t=HM(e.easingType);if(t===k.LINEAR)return{type:"LINEAR"};if(t===k.HOLD)return{type:"HOLD"};if(e.springValues)return{type:"SPRING",value:e.springValues};if(t!=null&&eX.has(t))return{type:"SPRING",value:Yd(t)};if(e.bezierValues){let{x1:n,y1:r,x2:o,y2:i}=e.bezierValues;return{type:"BEZIER",value:{p1x:n,p1y:r,p2x:o,p2y:i}}}return t!=null&&Qz.has(t)?{type:"BEZIER",value:Wd(t)}:{type:"LINEAR"}}function qd(e){switch(e.type){case"SPRING":return{type:"spring",...e.value};case"BEZIER":{let{p1x:t,p1y:n,p2x:r,p2y:o}=e.value;return{ease:[Ne(t,3),Ne(n,3),Ne(r,3),Ne(o,3)]}}case"LINEAR":case"HOLD":return{ease:"linear"}}}var kle={[Ci.MOTION_TRANSLATION_X]:"translationX",[Ci.MOTION_TRANSLATION_Y]:"translationY",[Ci.MOTION_ROTATION]:"rotation",[Ci.MOTION_SHEAR]:"shear"};var wle=new Set(g_);ke();var nX=new Map([[Eo.OPACITY,["opacity"]],[Eo.TRANSLATION,["x","y"]],[Eo.ROTATION,["rotate"]],[Eo.SCALE,["scaleX","scaleY"]]]),fue=new Map([[Eo.OPACITY,["opacity"]],[Eo.TRANSLATION,["translate"]],[Eo.ROTATION,["rotate"]],[Eo.SCALE,["scale"]]]);function h1(e,t){for(let n of e)if(n.interactionIDs.includes(t))return n;return null}function rX(e,t,n){if(!e)return new Map;let r=new Map,o=e[Eo.ALL];if(o){let i=o.find(a=>a.interactionIDs.length===0);if(i)for(let[,a]of n)for(let l of a)r.set(l,i);let s=h1(o,t);if(s)for(let[,a]of n)for(let l of a)r.set(l,s)}for(let[i,s]of Object.entries(e)){if(i===Eo.ALL)continue;let a=n.get(i);if(!a)continue;let l=h1(s,t);if(l)for(let u of a)r.set(u,l)}return r}function oX(e){return qd(Jd(e))}function O1(e,t){let n=rX(e,t,nX);if(n.size===0)return null;let r={};for(let[o,i]of n)r[o]={...oX(i.easing),duration:i.duration,...i.delay>0?{delay:i.delay}:{}};return r}function I1(){return typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function iX(e,t){return!!e(t.websiteData.siteSettings).ignoreReducedMotion}function Qd(){return!!tv(void 0,fe()?.websiteData.siteSettings)?.ignoreReducedMotion}function g1(e,t){return I1()&&!iX(e,t)}function y_(){let e=Qd();return I1()&&!e}var N_=new Map,b_=new Map;function L_(e){let t=N_.get(e);if(t)return Promise.resolve(t);let n=b_.get(e);if(n)return n.promise;let r=()=>{},o=new Promise(i=>r=i);return b_.set(e,{resolve:r,promise:o}),o}function DR(e,t){if(N_.has(e))return;N_.set(e,t);let n=b_.get(e)?.resolve;n&&(n(t),b_.delete(e))}function vR(e){N_.delete(e)}function S1(e){if(e.length===0)return Promise.resolve(null);let t=e.map(n=>L_(n));return Promise.any(t)}function xR(){return document.documentElement}function MR(){return document.body}function R1(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{let r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})}function A1(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let t=getComputedStyle(e);return t.overflowX==="auto"||t.overflowX==="scroll"}function y1(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let t=getComputedStyle(e);return t.overflowY==="auto"||t.overflowY==="scroll"}function N1(e){let t=e.parentElement;for(;t&&t!==document.documentElement;){if(R1(t))return t;t=t.parentElement}return MR()}function FR(e){let t=e.parentElement;for(;t&&t!==document.body;){if(R1(t))return t;t=t.parentElement}return xR()}var sX=.8;function aX(e,t){return e?.filter(n=>n.event?.interactionType===t)?.map(n=>n.id)?.filter(n=>n!=null)?.map(n=>Je(n))??[]}function C_(e,t,n,r){let{variableState:o,websiteContext:{env:i,setLocation:s,history:a}}=r;for(let l of n)switch(l.connectionType){case"INTERNAL_NODE":dX(e,r,l,t);break;case"URL":if(l.connectionURL){let u=LP(l.connectionURL,i);if(!u)s({url:l.connectionURL});else{let{url:c,target:f}=Rd(u,l.openUrlInNewTab,i);window.open(c,f)?.focus()}}break;case"SET_VARIABLE":if(l.targetVariable&&l.targetVariable.id&&l.targetVariableData){let u=Yu(l.targetVariableData),c=u!==null?To({get:e,variableState:o,modeContext:r.modeContext},u):null;c!==null?o.setVariable(l.targetVariable.id,c,r.modeContext):console.warn("Error evaluating variable data",l.targetVariableData)}break;case"CONDITIONAL":if(l.conditionalActions)for(let u of l.conditionalActions){let c=u.condition?Yu(u.condition):void 0;if(c===null)break;
10686if(c===void 0||To({get:e,variableState:o,modeContext:r.modeContext},c)){if(u.actions){let f=NE(u.actions);C_(e,t,f,r)}break}}break;case"BACK":a.back();break;default:console.warn("unknown action type",l)}}function lX(e,t,n,r){let o=r.atomStore;return()=>{let i=ho(r);if(i?.onAnimationComplete){i.onAnimationComplete();return}let s=t.transitionAtom;e(s)?.id===n&&(b1(n),o.set(s,void 0));let a=t.autoLayoutTransitionAtom;a&&e(a)?.id===n&&o.set(a,void 0)}}var uX=0;function cX(e,t,n,r){if(e?.transitionType==="SMART_ANIMATE"){let o=uX++;return{id:o,durationSeconds:e.transitionDuration??Qv,onTransitionEnd:lX(t,n,o,r),motionAnimationData:ex(e,r)}}}function fX(e,t){e.type==="COMPONENT"&&t.type;let n=e.size,r=t.size;return n.x!==r.x||n.y!==r.y}function GR(e,t,n,r,o,i){let s=t.nodeById.get(r),a=t.nodeById.get(o),l=fX(s,a),u=_X(n,t,l),c=cX(n,e,u,t.websiteContext);if(c&&"transitionOverrides"in t.node&&t.node.transitionOverrides&&i?.id){let f=`${i.id.sessionID}:${i.id.localID}`,d=O1(t.node.transitionOverrides,f);d&&(c.perPropertyTransitions=d)}t.websiteContext.atomStore.set(u.transitionAtom,c),u.autoLayoutTransitionAtom&&t.websiteContext.atomStore.set(u.autoLayoutTransitionAtom,c?{...c,layout:!0,onTransitionEnd:()=>{}}:void 0)}function dX(e,t,n,r){switch(n.navigationType){case"NAVIGATE":P_(n.connectionURL,t.websiteContext,n.transitionType,n.transitionDuration);break;case"SWAP_STATE":{n.transitionNodeID;let o=t.node.id;Cv(o,t);let i=nR(t),s=aX(i,"AFTER_TIMEOUT"),a=kR(n,t);let l=EX(e,a,t);let{sessionID:u,localID:c}=n.transitionNodeID,f=`${u}:${c}`,d=t.nodeById.get(f);if(!d||d.id===wd.id)break;if(GR(e,t,n,l,f,r),a.set(e,t.modeContext,f),n.transitionResetInteractiveComponents){let p=n.stateGroupContext?t.parentStates?.get(n.stateGroupContext):null;p&&p.stateResetHandlers.forEach(_=>_(e,t.modeContext))}L1(t.node.id,s);break}case"SCROLL_TO":{n.transitionNodeID;let o=n.transitionNodeID,i=n.extraScrollOffset||{x:0,y:0},s=!!n.transitionType&&n.transitionType!=="INSTANT_TRANSITION",a=g1(e,t.websiteContext);mX(t,o,i,s&&!a);break}default:console.warn("unknown navigation type",n);break}}function pX(e,t){let n=[];n.push(e);let r=t.sourceStablePath;if(r.includes("I")){let o=r.split(";");for(let i=0;i<o.length;i++){let a=`${o.slice(0,i+1).join(";")};${e}`;n.push(a)}}return n}function mX(e,t,n,r){if(!t)return;let{sessionID:o,localID:i}=t,s=`${o}:${i}`,a=pX(s,e);S1(a).then(l=>{if(l){let u=N1(l);if(!u)return;let c=u===MR(),f=A1(u),d=y1(u)||c,p=l.getBoundingClientRect(),_=u.getBoundingClientRect(),T=p.top-_.top,h=p.left-_.left,m={x:f?u.scrollLeft+h+n.x:u.scrollLeft,y:d?u.scrollTop+T+n.y:u.scrollTop};(c?window:u).scrollTo({top:m.y,left:m.x,behavior:r?"smooth":"instant"})}})}function P_(e,t,n,r){let o=n==="SMART_ANIMATE"&&r?{duration:r}:void 0;Te(!!e,"No URL provided for internal navigation"),t.setLocation({url:e,transition:o})}function EX(e,t,n){let r=t.get(e,n.modeContext);return r||(n.node.type==="INSTANCE"?n.node.mainComponentId:null)}function kR(e,t){let{backingComponentIdState:n,parentStates:r}=t,o=e.stateGroupContext;return(o?r?.get(o):null)?.backingComponentIdState??n}function _X(e,t,n){let{transitionAtom:r,parentStates:o}=t,i=e.stateGroupContext,s=i?o?.get(i):null,a={transitionAtom:s?.transitionAtom??r};return n&&s?.parentAutoLayoutTransitionAtom&&(a.autoLayoutTransitionAtom=s.parentAutoLayoutTransitionAtom),a}function nR(e){let{node:t}=e;if(!("interactions"in t)||!t.interactions)return;let n=t.interactions,r=n.filter(f=>f.event?.interactionType==="ON_PRESS");if(!r.length)return n;let o;for(let f of r)if(o=f.actions?.find(d=>d.navigationType==="SWAP_STATE"&&d.connectionType==="INTERNAL_NODE"),o)break;if(!o||!o.transitionNodeID)return n;n=n.filter(f=>f.event?.interactionType!=="ON_CLICK");let{sessionID:i,localID:s}=o.transitionNodeID,a=`${i}:${s}`,{nodeById:l}=e,u=l.get(a);if(!("interactions"in u)||!u.interactions)return n;let c=u.interactions.find(f=>f.event?.interactionType==="ON_CLICK");return c?[...n,c]:n}function Wv(e,t,n){let r={},o=[],i=[];for(let s of n){let a=s.event?.interactionType;if(a){if(a==="ON_KEY_DOWN"){o.push(s);continue}if(a==="AFTER_TIMEOUT"){i.push(s);continue}r[a]=TX(e,t,s)}}return o.length>0&&(r.ON_KEY_DOWN=hX(e,t,o)),i.length>
106860&&(r.AFTER_TIMEOUT=i.map(s=>{let a=s.event.transitionTimeout||sX;return{callback:()=>{C_(e,s,s.actions||[],t)},delayMilliseconds:a*1e3,interactionGuid:Je(s.id)||Ze,nodeId:t.node.id}})),r}function Yv(e,t,n){let r=e(t);return r||e(n)}function TX(e,t,n){return{mouseCallback:r=>{let o=new D_(e,n,n.actions||[],t,r);C_(e,n,n.actions||[],t),o.completeTracking(e,t)}}}function hX(e,t,n){return{keyCallback:r=>{for(let o of n)NP(o,r)&&C_(e,o,o.actions||[],t)}}}function Kv(e){if(!(!("accessibleHTMLTag"in e)||!e.accessibleHTMLTag)&&"interactions"in e&&e.accessibleHTMLTag==="BUTTON"&&!e.interactions.find(n=>n.event?.interactionType==="ON_CLICK")){let n={event:{interactionType:"ON_CLICK"},actions:[{noop:!0}]};e.interactions?e.interactions.push(n):e.interactions=[n]}}var wR;function v_(){return wR||(wR=new Map),wR}function OX(e){let t=v_(),n=t.get(e)||{reverseStateInfo:[]};n.reverseStateInfo.push([]),t.set(e,n)}function IX(e){let n=v_().get(e.target);let r=n.reverseStateInfo[n.reverseStateInfo.length-1];r.push(e)}function gX(e){let t=v_(),n=t.get(e.target);let r=n.reverseStateInfo[n.reverseStateInfo.length-1];let o=r.pop();r.length===0&&(n.reverseStateInfo.pop(),n.reverseStateInfo.length===0&&t.delete(e.target))}function SX(e,t,n,r){let{variableState:o}=r,i=r.backingComponentIdState,s=[],a=l=>{if(l.connectionType==="CONDITIONAL"){if(l.conditionalActions)for(let u of l.conditionalActions){let c=u.condition?Yu(u.condition):void 0;if(c===null)break;if(c===void 0||To({get:e,variableState:o,modeContext:{}},c)){u.actions&&NE(u.actions).forEach(a);break}}return}if(l.connectionType==="INTERNAL_NODE"&&l.navigationType==="SWAP_STATE"){l.transitionNodeID;let u=kR(l,r);let c=i.get(e,r.modeContext),f=c;c||r.node.type==="INSTANCE"&&(f=r.node.mainComponentId);let{sessionID:d,localID:p}=l.transitionNodeID,_=`${d}:${p}`;(t.event?.interactionType==="ON_HOVER"||t.event?.interactionType==="ON_PRESS")&&s.push({oldBackingComponentId:f,newBackingComponentId:_,oldBackingComponentIdStateContents:c,target:u,interactionId:Je(t.id),triggerType:t.event.interactionType,action:l,modeContext:r.modeContext,get:e})}};return n.forEach(a),s}var D_=class{executedReversibleInteractions;hoverInteractionCalc;constructor(t,n,r,o,i){if(this.executedReversibleInteractions=SX(t,n,r,o),this.executedReversibleInteractions.length>0)if(n.event?.interactionType==="ON_HOVER"){let s=i.currentTarget.offsetParent;this.hoverInteractionCalc={origin:i.currentTarget,originSize:i.currentTarget.getBoundingClientRect(),parentDeltaStack:[{target:i.currentTarget,delta:{x:0,y:0}}]};let a=this.hoverInteractionCalc.parentDeltaStack;for(;s!==null&&s instanceof HTMLElement;){let l=a[a.length-1];a.push({target:s,delta:{x:l.delta.x+l.target.offsetLeft,y:l.delta.y+l.target.offsetTop}}),s=s.offsetParent}this.hoverInteractionCalc.parentDeltaStack.shift()}else n.event?.interactionType}completeTracking(t,n){if(!this.executedReversibleInteractions)return;let r=new Map;for(let o of this.executedReversibleInteractions)r.has(o.target)||r.set(o.target,[]),r.get(o.target)?.push(o);for(let o of r.keys()){OX(o);let i=r.get(o);for(let s of i){let a=()=>{let l=s.target,u=l?.get(t,n.modeContext);l&&u===s.newBackingComponentId&&(GR(t,n,s.action,s.newBackingComponentId,s.oldBackingComponentId),s.oldBackingComponentIdStateContents?l.set(t,n.modeContext,s.oldBackingComponentIdStateContents):l.reset()),gX(s)};s.triggerType==="ON_HOVER"?(this.hoverInteractionCalc,s.undoInfo={type:"ON_HOVER",...this.hoverInteractionCalc,undo:a}):s.triggerType==="ON_PRESS"&&(s.undoInfo={type:"ON_PRESS",undo:a}),IX(s)}}}},BR=new Map;function UR(){return BR||(BR=new Map),BR}function C1(e,t){let n=UR();n.has(e)||n.set(e,[]);let r=n.get(e);r.push(t)}function P1(e,t){let r=UR().get(e);let o=r.indexOf(t);o!==-1&&r.splice(o,1)}function mc(e){let n=UR().get(e.nativeEvent.type)||[];for(let r of n)r(e.nativeEvent)}function v1(){(0,D1.useEffect)(()=>{let e=t=>{v_().forEach(r=>{let o=()=>{if(r.reverseStateInfo.length===0)return;let i=r.reverseStateInfo[r.reverseStateInfo.length-1];if(i.length===0)return;let s=i[i.length-1].undoInfo;if(s.type==="ON_HOVER"){let a;for(let l=s.parentDeltaStack.length-1;l>=0;l--){let u=s.parentDeltaStack[l].target;if(!document.contains(u))break;let c=window.getComputedStyle(u);if(c.overflow&&c.overflow!=="visible"){let d=u.getBoundingClientRect();if(t.clientX<=d.left||t.clientX>
10686=d.right||t.clientY<=d.top||t.clientY>=d.bottom){LE()?.showHoverTargetRectangle(d,"red"),a=!1;break}}}if(a===void 0)for(let{target:l,delta:u}of s.parentDeltaStack){if(!document.contains(l))continue;let c=l.getBoundingClientRect(),f=[c.left+u.x,c.top+u.y],d=[c.left+u.x+s.originSize.width,c.top+u.y+s.originSize.height],p=new DOMRect(f[0],f[1],s.originSize.width,s.originSize.height);LE()?.showHoverTargetRectangle(p,"blue"),t.clientX>f[0]&&t.clientX<d[0]&&t.clientY>f[1]&&t.clientY<d[1]?a=!0:(LE()?.showHoverTargetRectangle(c,"green"),a=!1);break}a===!1&&(s.undo(),o());return}else if(s.type==="ON_PRESS"){t.buttons===0&&(s.undo(),o());return}};o()})};return window.addEventListener("mousemove",e),C1("mousemove",e),window.addEventListener("mouseup",e),C1("mouseup",e),()=>{window.removeEventListener("mousemove",e),P1("mousemove",e),window.removeEventListener("mouseup",e),P1("mouseup",e)}},[])}var x1=!0;setTimeout(()=>{x1=!1},200);var RX=class{persistentTimeouts=new Map;nextId=0;getPersistentTimeouts(){return this.persistentTimeouts}registerPersistentTimeout(t,n,r,o){let i=`${t}:${n}`,s=this.persistentTimeouts.get(i);if(s){if(s.isMounted=!0,s.delayMilliseconds===o)return-1;clearTimeout(s.timeoutHandle),this.persistentTimeouts.delete(i)}let a=this.reserveTimeoutId(),l=Date.now(),u=setTimeout(()=>{r(),this.persistentTimeouts.delete(i)},o+(x1?200:0));return this.persistentTimeouts.set(i,{timeoutHandle:u,startTime:l,delayMilliseconds:o,callback:r,isMounted:!0}),a}markTimeoutsAsUnmounted(t){for(let[n,r]of this.persistentTimeouts)n.startsWith(`${t}:`)&&(r.isMounted=!1)}cleanupUnmountedTimeouts(t,n){if(n){let r=[];for(let o of n){let i=`${t}:${o}`,s=this.persistentTimeouts.get(i);s&&!s.isMounted&&(clearTimeout(s.timeoutHandle),r.push(i))}r.forEach(o=>this.persistentTimeouts.delete(o))}}clearTimeoutsByInteractionGuidsAndNodeId(t,n){let r=[];for(let o of n){let i=`${t}:${o}`,s=this.persistentTimeouts.get(i);s&&(clearTimeout(s.timeoutHandle),r.push(i))}r.length>0&&r.forEach(o=>this.persistentTimeouts.delete(o))}reserveTimeoutId(){return this.nextId++}},AX=new RX,Gs=AX;var yX=(e,t=[],n,r)=>
10686{let o=t.find(i=>i.event?.interactionType==="ON_CLICK");if(!o?.actions){o&&o.actions;return}for(let i of o?.actions??[])if(i.connectionType==="URL"||i.connectionType==="INTERNAL_NODE"&&i.navigationType==="NAVIGATE")return Ad(e,i.connectionType,i.connectionURL,i.openUrlInNewTab,n,r);return(o?.actions?.length??0)>0?NX(e,n):void 0};function yr(e=[],t,n,r){if(!t)return{};let o={},i=s=>!!s&&!!s.mouseCallback;if(i(t?.ON_CLICK)){let s=Ga(l=>{t?.ON_CLICK?.mouseCallback?.(l),l.preventDefault(),l.stopPropagation()},"onClick"),a=yX(s,e,n,r);o={onClick:s,...o,...a}}return i(t?.MOUSE_ENTER)&&(o.onMouseEnter=Ga(s=>{t?.MOUSE_ENTER?.mouseCallback?.(s),mc(s),s.stopPropagation()},"onMouseEnter")),i(t?.MOUSE_LEAVE)&&(o.onMouseLeave=Ga(s=>{t?.MOUSE_LEAVE?.mouseCallback?.(s),mc(s),s.stopPropagation()},"onMouseLeave")),i(t?.MOUSE_DOWN||t?.ON_PRESS)&&(o.onMouseDown=Ga(s=>{t?.MOUSE_DOWN?.mouseCallback?.(s),t?.ON_PRESS?.mouseCallback?.(s),mc(s),s.preventDefault(),s.stopPropagation()},"onMouseDown")),i(t?.MOUSE_UP)&&(o.onMouseUp=Ga(s=>{t?.MOUSE_UP?.mouseCallback?.(s),mc(s),s.stopPropagation()},"onMouseUp")),i(t?.ON_HOVER)&&(o.onMouseMove=Ga(s=>{t?.ON_HOVER?.mouseCallback?.(s),mc(s),s.stopPropagation()},"onMouseMove")),o}var x_={};function M1(e,t){let n=[];return e?.AFTER_TIMEOUT&&e.AFTER_TIMEOUT.forEach(({callback:o,delayMilliseconds:i,interactionGuid:s,nodeId:a})=>{let l=Gs.reserveTimeoutId(),u=x_[t]??[];u.push({callback:o,delayMilliseconds:i,interactionGuid:s,nodeId:a}),x_[t]=u,n.push(l)}),n}function b1(e){let t=x_[e];t&&t.length&&(t.forEach(({callback:n,delayMilliseconds:r,interactionGuid:o,nodeId:i})=>{Gs.registerPersistentTimeout(i,o,n,r)}),delete x_[e])}function F1(e,t){let n=[],r=0;return t?.AFTER_TIMEOUT&&t.AFTER_TIMEOUT.forEach(({callback:i,delayMilliseconds:s,interactionGuid:a})=>{let l=Gs.registerPersistentTimeout(e,a,i,s);l!==-1?n.push(l):r++}),{timeoutIds:n,persistentTimeoutCount:r}}function L1(e,t){t&&Gs.clearTimeoutsByInteractionGuidsAndNodeId(e,t)}function NX(e,t){return t?{role:"button",tabIndex:0,onClick:e,onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&e(r)}}:{}}function G1(e,t){let n=null;return(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}var ua=x(Y()),sy=x(Y());var Zr=(e,t)=>{let n=e.scrollBehavior==="STICKY_SCROLLS"||e.scrollBehavior==="FIXED";return{[Nt.ScrollParallax]:n||(t?.isInStickyOrFixedTree??!1)}};function Fn(e,t){return t.disableMarquee?!1:e.type==="FRAME"||e.type==="TEXT"||e.type==="REPEATER"?!!e.behaviors?.marquee:!1}function k1(e,t){return Fn(e,t)&&(e.type==="FRAME"||e.type==="REPEATER")?!e.accessibleLabel:!1}var re=function(e){return e.FIXED="FIXED",e.FILL_PARENT="FILL_PARENT",e.HUG_CONTENTS="HUG_CONTENTS",e}({});function gt(e){return cl(e)&&e.layoutMode!=="NONE"}function Jt(e,t){return t?(Te(t.children.includes(e.id),"node is parent of other node"),gt(t)&&e.layoutPositioning!=="ABSOLUTE"):!1}function cl(e){return e.type==="FRAME"||e.type==="SLOT"||e.type==="CODE_INSTANCE"||e.type==="CODE_LAYER"||e.type==="REPEATER"||e.type==="CMS_RICH_TEXT"}function M_(e){let{minWidth:t,minHeight:n,maxWidth:r,maxHeight:o}=e,i={};return n&&(i.minHeight=n),o&&(i.maxHeight=o),t&&(i.minWidth=t),r&&(i.maxWidth=r),i}function ep(e,t){return t==="primary"?!!e.layoutGrow:e.layoutAlign==="STRETCH"}function VR(e,t){return t==="width"&&(e==="HORIZONTAL"||e==="GRID")||t==="height"&&e==="VERTICAL"?"primary":"counter"}function w1(e,t,n,r,o,i){let s=HR(t,o.rootNodeStyle);if(n&&Jt(t,n)){if(ep(t,VR(n.layoutMode,e)))return"FILL_PARENT"}else if(n===null&&(s==="independent"||i?.renderedByCode))return"FILL_PARENT";if(cl(t)&&bX(t)&&t.layoutMode!=="NONE"){let l=VR(t.layoutMode,e),u=l==="primary"?t.primaryAxisSizingMode:t.counterAxisSizingMode;switch(u){case"FIXED":return"FIXED";case"AUTO":case void 0:return!o.enforceLayoutInvariants&&r?.length&&r.every(c=>c.layoutPositioning!=="ABSOLUTE"&&ep(c,l)||c.visible===!1)||r?.length&&r.every(c=>c.layoutPositioning==="ABSOLUTE"||c.visible===!1)?"FIXED":"HUG_CONTENTS";default:Fe(u)}}return t.type==="TEXT"&&(t.textAutoResize==="WIDTH_AND_HEIGHT"||e==="height"&&t.textAutoResize==="HEIGHT")||t.type==="GROUP"?"HUG_CONTENTS":"FIXED"}function Gt(e,t,n,r,o){let i=w1("width",e,t,n,r,o);if(Fn(e,r)){let s=t&&Gt(t,null,n,r,o)==="HUG_CONTENTS";(i==="HUG_CONTENTS"||i==="FILL_PARENT"&&s)&&(i="FIXED")}return i}function dn(e,t,n,r,o){return w1("height",e,t,n,r,o)}function bX(e){return gt(e)?e.type==="CODE_INSTANCE"||e.type==="CODE_LAYER"||e.type==="REPEATER"||e.type==="CMS_RICH_TEXT"?!0:e.type==="FRAME"||e.type==="SLOT"?e.children.length>0:!1:!1}function fl(e,t){return!t||!gt(t)||!Jt(e,t)||e.layoutAlign!=="STRETCH"||t.counterAxisAlignItems==="MIN"?!1:t.layoutMode==="HORIZONTAL"?t.layoutWrap==="WRAP"||t.counterAxisSizingMode==="AUTO":t.layoutMode==="VERTICAL"&&t.layoutWrap==="WRAP"}function HR(e,t){return t==="component"&&e.type==="FRAME"&&e.isSlotContent?"independent":t}function F_(e,t){let n=t?.layoutMode;return n==="HORIZONTAL"||n==="VERTICAL"?ep(e,VR(n,"width")):!1}var ks="--transform-inner-width",ws="--transform-inner-height";function LX(e){let t=e[0][0],n=e[1][0],r=e[0][1],o=e[1][1],i=Math.atan2(n,t)*(180/Math.PI);return v(i)%90===0&&He(t*r+n*o,0)}function dl(e,t){return t.useCssRotationConstraints||LX(e)}function Bs(e,t,n){let r=Ft(Yt(n?.group?.relativeTransform,e.relativeTransform));return t!==null&&U1(r)}function G_(e){let n=(Math.atan2(e[1][0],e[0][0])*180/Math.PI%360+360)%360;return n>=45&&n<135||n>=225&&n<315}function B1(e,t,n,r,o,i,s){let a=Ft(Yt(o?.group?.relativeTransform,e.relativeTransform));if(t==null||!U1(a))return{};let l=a,u=Gt(e,t,n,r,o),c=dn(e,t,n,r,o),f={};if(f.transform=V1(l[0][0],l[1][0],l[0][1],l[1][1],s,i,r),Nr(e,t)){(u===re.HUG_CONTENTS||c===re.HUG_CONTENTS)&&console.warn("Transformed sized determined by both constraints and hug not yet supported.");let p=dl(a,r)&&!i?CX("100cqw","100cqh",a,e.size,Us(a,e.size),r):k_(e.absoluteBoundingBox.width,e.absoluteBoundingBox.height,a,e.size,e.absoluteBoundingBox,r,i,s);f.width=p.width,f.height=p.height,f.transform=p.transform}else{let d=G_(a);
10686u===re.FILL_PARENT&&(d?f.height="100cqw":f.width="100%"),c===re.FILL_PARENT&&(d?f.width="100cqh":f.height="100%")}return f}function k_(e,t,n,r,o,i,s,a){let l=Ro(0,0,n),u=Ro(0,r.y||1,n),c=Ro(r.x||1,0,n),f={x:u.x-l.x,y:u.y-l.y},d={x:c.x-l.x,y:c.y-l.y},p=o.width?e/o.width:1,_=o.height?t/o.height:1,T=(A,R)=>Math.sqrt(A*A+R*R),h=T(p*d.x,_*d.y),m=T(p*f.x,_*f.y),E=p*d.x/h,O=_*d.y/h,I=p*f.x/m,g=_*f.y/m,S=V1(E,O,I,g,a,s,i);return{width:v(h),height:v(m),transform:S}}function CX(e,t,n,r,o,i){let s=Ro(0,0,n),a=Ro(0,r.y||1,n),l=Ro(r.x||1,0,n),u={x:a.x-s.x,y:a.y-s.y},c={x:l.x-s.x,y:l.y-s.y},f=o.width?W.cssLength(e).multiply(1/o.width):W.px(0),d=o.height?W.cssLength(t).multiply(1/o.height):W.px(0),p,_,T=f.multiply(c.x),h=d.multiply(c.y),m=f.multiply(u.x),E=d.multiply(u.y);c.y===0?p=f.multiply(Math.abs(c.x)):c.x===0?p=d.multiply(Math.abs(c.y)):p=W.hypot(T,h),u.y===0?_=f.multiply(Math.abs(u.x)):u.x===0?_=d.multiply(Math.abs(u.y)):_=W.hypot(m,E);let I=c.x*u.y-c.y*u.x<0,g=I?-c.x:c.x,S=I?-c.y:c.y,A=Math.atan2(S,g)*(180/Math.PI),R=v(A,2),N=Math.sqrt(c.x*c.x+c.y*c.y),L=Math.sqrt(u.x*u.x+u.y*u.y),b=c.x*u.x+c.y*u.y,w=90-Math.acos(b/(N*L))*(180/Math.PI),B=v(w,2),y=R%90===0,K=B!==0||!y,C={forTailwind:i.optimizeForTailwindConversion};if(K){let P=ee.combineWithExplicitOrder(R!==0?ee.rotate(R):void 0,B!==0?ee.skewX(B):void 0,I?ee.scaleX(-1):void 0),X=p.toString(C),oe=_.toString(C);return{width:X,height:oe,transform:P}}let G=ee.combineWithDefaultOrder(R!==0?ee.rotate(R):void 0,I?ee.scaleX(-1):void 0);return{width:p.toString(C),height:_.toString(C),transform:G}}function U1(e){return!He(e[0][0],1,an)||!He(e[1][0],0,an)||!He(e[0][1],0,an)||!He(e[1][1],1,an)}function Ec(e){return!He(Math.abs(e[0][0]),1,an)||!He(Math.abs(e[1][0]),0,an)||!He(Math.abs(e[0][1]),0,an)||!He(Math.abs(e[1][1]),1,an)}function w_(e){let t=Math.abs(e[0][0]),n=Math.abs(e[0][1]);if(!(He(t,1,an)&&He(n,0,an)))return W.px(1).multiply(W.var(ws).multiply(n).add(W.var(ks).multiply(t)))}function B_(e){let t=Math.abs(e[1][0]),n=Math.abs(e[1][1]);if(!(He(n,1,an)&&He(t,0,an)))return W.px(1).multiply(W.var(ks).multiply(t).add(W.var(ws).multiply(n)))}function U_(e,t){let n=Math.abs(e[0][0]),r=Math.abs(e[0][1]);if(!(He(n,1,an)&&He(r,0,an)))return W.px(v(t.y*r+t.x*n))}function V_(e,t){let n=Math.abs(e[1][0]),r=Math.abs(e[1][1]);if(!(He(r,1,an)&&He(n,0,an)))return W.px(v(t.x*n+t.y*r))}function Nr(e,t){return H_(e,t)||W_(e,t)}function H_(e,t){let n=e.constraints;return Jt(e,t)?!1:n?.vertical===Or.TOP_BOTTOM||n?.vertical===Or.SCALE}function W_(e,t){let n=e.constraints;return Jt(e,t)?!1:n?.horizontal===$n.LEFT_RIGHT||n?.horizontal===$n.SCALE}function V1(e,t,n,r,o,i,s){let{optimizeForTailwindConversion:a}=s;if(!(i||a))return`matrix(${e}, ${t}, ${n}, ${r}, 0, 0)`;let u=ht(e),c=ht(t),f=ht(n),d=ht(r),p=Math.atan2(c,u)*(180/Math.PI),_=p*Math.PI/180,T=Math.cos(_),h=Math.sin(_),m=u*d-c*f,E=Math.sqrt(u*u+c*c),O=m/E,I=T,g=-h,S=h,A=T,R=(u*I+c*S)/E,N=(u*g+c*A)/E,L=(f*I+d*S)/O,b=(f*g+d*A)/O,M=Math.atan2(L,b)*(180/Math.PI),w=Math.atan2(N,R)*(180/Math.PI),B=Number(p.toFixed(2)),y=Number(M.toFixed(2)),K=Number(w.toFixed(2)),C=Number(E.toFixed(2)),G=Number(O.toFixed(2));if(i&&o){if(o.current!==B){let P=WR(o.current,B);B=o.current+P}o.current=B}return ee.combineWithDefaultOrder(i||B!==0?ee.rotate(B):void 0,i||y!==0?ee.skewX(y):void 0,i||K!==0?ee.skewY(K):void 0,i||C!==1?ee.scaleX(C):void 0,i||G!==1?ee.scaleY(G):void 0)}function WR(e,t){let n=(e%360+360)%360,r=(t%360+360)%360,o=r-n;return o>180?o-=360:o<-180&&(o+=360),Math.abs(o)===180?n===0&&r===180?-180:n===180&&r===0||e<t?180:-180:o}function K_(e){let{node:t,parent:n,context:r,renderOptions:o}=e,i={...M_(t)},{width:s,height:a,top:l,left:u,bottom:c,right:f,transform:d,aspectRatio:p}=xX(e),_={forTailwind:o.optimizeForTailwindConversion};if(s!==void 0&&(i.width=s.toStyleValue(_)),a!==void 0&&(i.height=a.toStyleValue(_)),d!==void 0&&(i.transform=d),p!==void 0&&(i.aspectRatio=p),r?.group?.withinAutoLayout){if(i.gridColumn=1,i.gridRow=1,i.position="relative",u&&(i.marginLeft=u.toStyleValue(_)),r?.group?.isHorizontalFillParent){let T=W.percent(100);u&&(T=T.subtract(u)),f&&(T=T.subtract(f)),i.width=T.toStyleValue(_)}else f&&(i.marginRight=f);l&&(i.marginTop=l.toStyleValue(_)),c&&(i.marginBottom=c)}
10686else i.position=DX(t,n),u!==void 0&&(i.left=u.toStyleValue(_)),f!==void 0&&(i.right=f.toStyleValue(_)),l!==void 0&&(i.top=l.toStyleValue(_)),c!==void 0&&(i.bottom=c.toStyleValue(_));return tp(t,n)&&(i.zIndex=9999),i}function tp(e,t){return!("scrollBehavior"in e)||Jt(e,t)?!1:Boolean(t?.type==="FRAME"&&t.isBreakpointFrame)&&e.scrollBehavior==="FIXED"}function DX(e,t){return e.scrollBehavior==="STICKY_SCROLLS"?"sticky":tp(e,t)?"fixed":"absolute"}function vX(e,t){if(t?.group?.withinAutoLayout)return{horizontal:t?.group?.isHorizontalFillParent?$n.SCALE:$n.LEFT,vertical:Or.TOP};let{horizontal:n=$n.LEFT,vertical:r=Or.TOP}=e.constraints??{};return{horizontal:n,vertical:r}}function z_(e,t){let{horizontal:n,vertical:r}=vX(e,t),o=t?.borderDisplacement??{top:0,right:0,bottom:0,left:0},i=e.constraintValues?.left??{pixelOffset:0,sizeFraction:0},s=e.constraintValues?.right??{pixelOffset:0,sizeFraction:1},a=e.constraintValues?.top??{pixelOffset:0,sizeFraction:0},l=e.constraintValues?.bottom??{pixelOffset:0,sizeFraction:1};if(t?.groupFrameOffset){let{x:u,y:c,frameWidth:f,frameHeight:d,groupWidth:p,groupHeight:_}=t.groupFrameOffset,T=f-p,h=d-_;i={pixelOffset:i.pixelOffset-u+i.sizeFraction*T,sizeFraction:i.sizeFraction},s={pixelOffset:s.pixelOffset-u+s.sizeFraction*T,sizeFraction:s.sizeFraction},a={pixelOffset:a.pixelOffset-c+a.sizeFraction*h,sizeFraction:a.sizeFraction},l={pixelOffset:l.pixelOffset-c+l.sizeFraction*h,sizeFraction:l.sizeFraction}}return{horizontal:{type:n,left:{pixelOffset:i.pixelOffset-o.left,sizeFraction:i.sizeFraction},right:{pixelOffset:s.pixelOffset+o.right,sizeFraction:s.sizeFraction}},vertical:{type:r,top:{pixelOffset:a.pixelOffset-o.top,sizeFraction:a.sizeFraction},bottom:{pixelOffset:l.pixelOffset+o.bottom,sizeFraction:l.sizeFraction}}}}function xX({node:e,parent:t,children:n,shouldOutputVariables:r,codeSyntaxLanguage:o,context:i,renderOptions:s,precomputeTransforms:a,ignoreConstraints:l}){let{horizontal:u,vertical:c}=z_(e,i),f=Ft(Yt(i?.group?.relativeTransform,e.relativeTransform)),d=Us(f,e.size),p=Nr(e,t),_=!p&&Ec(f)?a?U_(f,e.size):w_(f):void 0,T=!p&&Ec(f)?a?V_(f,e.size):B_(f):void 0,h=!i?.group?.withinAutoLayout,{transform:m,...E}=FX({nodeWidth:d.width,bboxWidth:_,constraintBox:u,borderDisplacement:i?.borderDisplacement,ignoreConstraints:l,useTransform:h,resizing:Gt(e,t,n,s,i),textAlign:e.type==="TEXT"?e.textAlignHorizontal:void 0}),{transform:O,...I}=GX({nodeHeight:d.height,bboxHeight:T,constraintBox:c,borderDisplacement:i?.borderDisplacement,ignoreConstraints:l,useTransform:h,resizing:dn(e,t,n,s,i),textAlign:e.type==="TEXT"?e.textAlignVertical:void 0}),g;if(e.targetAspectRatio&&MX(e,t)){let S=Ec(f)?`${d.width}/${d.height}`:`${e.targetAspectRatio.x}/${e.targetAspectRatio.y}`;H_(e,t)&&(g=S,E.width=void 0),W_(e,t)&&(g=S,I.height=void 0)}if(r){let S={forTailwind:s.optimizeForTailwindConversion},A=(R,N,L)=>{let b=R.toStyleValue(S);return typeof b=="number"?Is(N,L,b,s):EE(N,L,R.toString(S))};if(E.width){let R=A(E.width,o&&e.boundVariables?.size?.x?.resolvedCodeSyntax?.[o],e.boundVariables?.size?.x?.resolvedName);R&&(E.width=R)}if(I.height){let R=A(I.height,o&&e.boundVariables?.size?.y?.resolvedCodeSyntax?.[o],e.boundVariables?.size?.y?.resolvedName);R&&(I.height=R)}}return{...E,...I,aspectRatio:g,transform:m||O?ee.combineWithDefaultOrder(m,O):void 0}}function MX(e,t){let n=H_(e,t),r=W_(e,t);return!n&&!r?!0:n!==r}function Y_(e,t,n=!1){return kt(e.pixelOffset,e.sizeFraction,t,n)}function kt(e,t,n,r=!1){if(t===0&&!r)return W.px(v(e,2));if(t===1&&r){let o=v(e,2);return o===0?W.px(0):W.px(-o)}if(r){let o=v(100-t*100,2),i=(1-t)*n,s=v(e-i,2);return s===0?o===0?W.px(0):W.percent(o):W.percent(o).subtract(W.px(s))}else{let o=v(t*100,2),i=t*n,s=v(e+i,2);return s===0?o===0?W.px(0):W.percent(o):W.percent(o).add(W.px(s))}}function FX({nodeWidth:e,bboxWidth:t,constraintBox:n,borderDisplacement:r,ignoreConstraints:o,resizing:i,textAlign:s,useTransform:a}){let l,u,c,f,d=t??(i===re.FIXED?W.px(v(e)):void 0),p=r?r.left+r.right:0;if(o)l=d;else if(n.type==="SCALE"||n.type==="LEFT_RIGHT")u=Y_(n.left,p),c=Y_(n.right,p,!0);else if(n.type==="RIGHT"){l=d;let{pixelOffset:_,sizeFraction:T}=n.right;switch(s){case"CENTER":{c=kt(a?_-e/2:_,T,p,!0),f=a?ee.translateX("50%"):void 0;break}case void 0:case"RIGHT":{c=kt(_,T,p,!0);break}case"LEFT":case"JUSTIFIED":{c=kt(a?_-e:_,T,p,!0),f=a?ee.translateX("100%"):void 0;break}default:Fe(s)}}else if(n.type==="CENTER"){l=d;let{pixelOffset:_,sizeFraction:T}=n.left,h=n.right.pixelOffset-_-p;switch(s){case void 0:case"CENTER":{u=kt(a?_+h/2:_,T,p),f=a?ee.translateX("-50%"):void 0;break}case"LEFT":case"JUSTIFIED":{u=kt(_,T,p);break}case"RIGHT":{u=kt(a?_+h:_,T,p),f=a?ee.translateX("-100%"):void 0;break}default:Fe(s)}}else if(n.type==="LEFT"){l=d;let{pixelOffset:_,sizeFraction:T}=n.left;switch(s){case"CENTER":{u=kt(a?_+e/2:_,T,p),f=a?ee.translateX("-50%"):void 0;break}case"LEFT":case"JUSTIFIED":case void 0:{u=kt(_,T,p);break}case"RIGHT":{u=kt(a?_+e:_,T,p),f=a?ee.translateX("-100%"):void 0;break}default:Fe(s)}}else Fe(n);return{width:l,left:u,right:c,transform:f}}function GX({nodeHeight:e,bboxHeight:t,constraintBox:n,borderDisplacement:r,ignoreConstraints:o,useTransform:i,resizing:s,textAlign:a}){let l,u,c,f,d=t??(s===re.FIXED?W.px(v(e)):void 0),p=r?r.top+r.bottom:0;if(o)l=d;else if(n.type==="SCALE"||n.type==="TOP_BOTTOM")u=Y_(n.top,p),c=Y_(n.bottom,p,!0);else if(n.type==="BOTTOM"){l=d;let{pixelOffset:_,sizeFraction:T}=n.bottom;switch(a){case"CENTER":{c=kt(i?_-e/2:_,T,p,!0),f=i?ee.translateY("50%"):void 0;break}case void 0:case"BOTTOM":{c=kt(_,T,p,!0);break}case"TOP":{c=kt(i?_-e:_,T,p,!0),f=i?ee.translateY("100%"):void 0;break}default:Fe(a)}}else if(n.type==="CENTER"){l=d;let{pixelOffset:_,sizeFraction:T}=n.top,h=n.bottom.pixelOffset-_-p;switch(a){case void 0:case"CENTER":{u=kt(i?_+h/2:_,T,p),f=i?ee.translateY("-50%"):void 0;break}case"BOTTOM":{u=kt(i?_+h:_,T,p),f=i?ee.translateY("-100%"):void 0;break}case"TOP":{u=kt(_,T,p);break}default:Fe(a)}}else if(n.type==="TOP"){l=d;let{pixelOffset:_,sizeFraction:T}=n.top;switch(a){case"CENTER":{u=kt(i?_+e/2:_,T,p),f=i?ee.translateY("-50%"):void 0;break}case"BOTTOM":{u=kt(i?_+e:_,T,p),f=i?ee.translateY("-100%"):void 0;break}case"TOP":case void 0:{u=kt(_,T,p);break}default:Fe(a)}}else Fe(n);return{height:l,top:u,bottom:c,transform:f}}
10686function Ro(e,t,n){return{x:n[0][0]*e+n[0][1]*t+n[0][2]*1,y:n[1][0]*e+n[1][1]*t+n[1][2]*1}}function Us(e,t){let n=Ro(0,0,e),r=Ro(t.x,0,e),o=Ro(0,t.y,e),i=Ro(t.x,t.y,e),s=Math.min(n.x,r.x,o.x,i.x),a=Math.max(n.x,r.x,o.x,i.x),l=Math.min(n.y,r.y,o.y,i.y),u=Math.max(n.y,r.y,o.y,i.y),c=a-s,f=u-l,d=ht(s),p=ht(l),_=ht(c),T=ht(f);return{x:d,y:p,width:_,height:T}}var kX={GRID:void 0,NONE:void 0,HORIZONTAL:void 0,VERTICAL:"column"},X_={MIN:"flex-start",CENTER:"center",MAX:"flex-end",SPACE_BETWEEN:"space-between",SPACE_EVENLY:"space-evenly",SPACE_AROUND:"space-around",BASELINE:"baseline",STRETCH:"stretch"};function wX(e){return["SPACE_BETWEEN","SPACE_EVENLY","SPACE_AROUND"].includes(e)}function BX(e){return e.type==="TEXT"&&e.textAutoResize!=="WIDTH_AND_HEIGHT"}function H1(e,t=0){let n=v(t),r=n===0?"0":`${n}px`;return`${v(e)} 0 ${r}`}function W1(e,t,n,r,o,i,s){let a=M_(e);if(gt(t),!t||!gt(t))return a;let l=Gt(e,t,n,r,o),u=dn(e,t,n,r,o);if(Bs(e,t,o)){let _={forTailwind:r.optimizeForTailwindConversion},T=Ft(Yt(o?.group?.relativeTransform,e.relativeTransform));if(l!==re.FILL_PARENT){let h=i?U_(T,e.size):w_(T);a.width=h?.toStyleValue(_)}if(u!==re.FILL_PARENT){let h=i?V_(T,e.size):B_(T);a.height=h?.toStyleValue(_)}}else l===re.FIXED&&(e.targetAspectRatio&&u!==re.FIXED?a.aspectRatio=`${e.targetAspectRatio.x}/${e.targetAspectRatio.y}`:a.width=v(e.size.x+HE(e,t))),u===re.FIXED&&(e.targetAspectRatio&&l!==re.FIXED?a.aspectRatio=`${e.targetAspectRatio.x}/${e.targetAspectRatio.y}`:a.height=v(e.size.y+WE(e,t)));a.position="relative",e.scrollBehavior==="STICKY_SCROLLS"&&(a.position="sticky",a.top=0),a.flexShrink=0;let c=t.layoutMode,f=c==="HORIZONTAL",d=c==="VERTICAL",p=c==="GRID"&&t.type!=="SLOT";if(f&&l===re.FILL_PARENT||d&&u===re.FILL_PARENT?(a.flex=H1(e.layoutGrow,0),delete a.flexShrink,f&&!e.minWidth&&(a.minWidth=1),d&&!e.minHeight&&(a.minHeight=1)):p&&(e.gridColumnAnchorIndex!==void 0&&e.gridRowAnchorIndex,t.gridItemsPositioning==="ROW_AUTO_FLOW"?(e.gridColumnSpan&&e.gridColumnSpan>1&&(a.gridColumn=`span ${e.gridColumnSpan}`),e.gridRowSpan&&e.gridRowSpan>1&&(a.gridRow=`span ${e.gridRowSpan}`)):(a.gridColumn=e.gridColumnSpan?`${e.gridColumnAnchorIndex+1}/span ${e.gridColumnSpan}`:e.gridColumnAnchorIndex+1,a.gridRow=e.gridRowSpan?`${e.gridRowAnchorIndex+1}/span ${e.gridRowSpan}`:e.gridRowAnchorIndex+1),(e.gridChildHorizontalAlign&&l===re.FIXED||l!==re.FIXED)&&(l===re.FILL_PARENT?a.justifySelf="stretch":a.justifySelf=X_[e.gridChildHorizontalAlign||"MIN"]),(e.gridChildVerticalAlign&&u===re.FIXED||u!==re.FIXED)&&(u===re.FILL_PARENT?a.alignSelf="stretch":a.alignSelf=X_[e.gridChildVerticalAlign||"MIN"])),(f&&u===re.FILL_PARENT||d&&l===re.FILL_PARENT)&&(d?t.layoutWrap!=="WRAP"||fl(e,t)?BX(e)&&!o?.allChildrenAreFillWidth?(a.width="min-content",a.minWidth="100%"):a.width="100%":a.alignSelf="stretch":e.size.y===0&&(e.type==="SVG"||e.type==="IMAGE")&&!s?(a.height="0",a.alignSelf="center"):t.layoutWrap!=="WRAP"&&t.counterAxisSizingMode==="FIXED"||fl(e,t)?a.height="100%":a.alignSelf="stretch"),cl(t),cl(t)&&o?.negativeItemSpacing){let _=t.layoutMode==="HORIZONTAL"?"marginRight":"marginBottom";a[_]=W.px(o.negativeItemSpacing)}return a}function Y1(e,t){if(!gt(t)||!jr(t)||!e.layoutGrow||t.layoutMode!=="HORIZONTAL"&&t.layoutMode!=="VERTICAL")return;let n=t.layoutMode==="HORIZONTAL",r=0;if(gt(e)&&(r+=n?(e.paddingLeft||0)+(e.paddingRight||0):(e.paddingTop||0)+(e.paddingBottom||0)),"strokeAlign"in e&&e.strokeAlign==="INSIDE"&&$r(e)){let o=Ud(e);r+=n?o.left+o.right:o.top+o.bottom}return r>0?H1(e.layoutGrow,r):void 0}var K1=(e,t,n,r,o)=>{if(e.type==="RECTANGLE"||n.length<=1||e.layoutMode==="NONE")return null;if(e.primaryAxisAlignItems==="SPACE_EVENLY_LEGACY"&&e.computedNegativeItemSpacing!=null&&e.computedNegativeItemSpacing<0)return v(e.computedNegativeItemSpacing);if(e.itemSpacing>=0)return v(e.itemSpacing);let i=-1/0,s=n.filter(a=>!ep(a,"primary")&&a.layoutPositioning!=="ABSOLUTE");if(e.layoutMode==="HORIZONTAL")if(s.length>0){let a=s.map(l=>Us(l.relativeTransform,l.size).width);i=-Math.min(...a)}else Gt(e,t,n,r,o)!==re.FILL_PARENT&&(i=-e.size.x);else if(s.length>0){let a=s.map(l=>Us(l.relativeTransform,l.size).height);i=-Math.min(...a)}else dn(e,t,n,r,o)!==re.FILL_PARENT&&(i=-e.size.y);return v(Math.max(i,e.itemSpacing))};function YR({node:e,parent:t,children:n,itemSpacing:r,shouldOutputVariables:o,codeSyntaxLanguage:i,renderOptions:s,context:a}){let l={},{layoutMode:u,counterAxisAlignItems:c,layoutWrap:f,counterAxisSpacing:d=0}=e;if(VX(l,e,o,i,s),u==="GRID"&&e.type!=="SLOT")l.display=Gt(e,t,n,s,a)===re.HUG_CONTENTS?"inline-grid":"grid",e.gridColumnsSizing&&(l.gridTemplateColumns=e.gridColumnsSizing),e.gridRowsSizing&&(l.gridTemplateRows=e.gridRowsSizing),e.gridColumnGap&&(l.columnGap=e.gridColumnGap
10686),e.gridRowGap&&(l.rowGap=e.gridRowGap),e.gridItemsPositioning==="ROW_AUTO_FLOW"&&(l.gridAutoFlow="row");else{l.display="flex";let p=HX(e,n,s,a);l.flexDirection=kX[u],e.itemReverseZIndex&&(l.isolation="isolate");let _=YX(e,n);_&&_!=="MIN"&&(l.justifyContent=X_[_]),c&&(l.alignItems=X_[c]),l.alignContent=p,f==="WRAP"&&(l.flexWrap="wrap");let T=f==="WRAP",h=u==="HORIZONTAL",m=h?"rowGap":"columnGap",E=h?"columnGap":"rowGap";if(!wX(_)&&r!=null)if(!T)r>0&&(l.gap=r);else if((r===d||d===void 0)&&p!=="space-between")l.gap=r;else if(p==="space-between")l[E]=r;else if(r<0)l[m]=d;else{let O=h?d:r,I=h?r:d;l.gap=O===I?O:`${O}px ${I}px`}else T&&p!=="space-between"&&d&&(l[m]=d);if(o){let O=l.gap??(typeof e.itemSpacing=="number"&&e.itemSpacing>0?e.itemSpacing:0),I=i&&e.boundVariables?.itemSpacing?.resolvedCodeSyntax?.[i],g=e.boundVariables?.itemSpacing?.resolvedName,S=typeof O=="number"?Pe(I,g,O,s):jn(I,g,O);S&&(l.gap=S)}}return l}function UX(e,t,n,r){return t?t.filter(o=>o.layoutPositioning!=="ABSOLUTE").every(o=>WX(o,e,t,n,r)===re.FILL_PARENT):!0}function VX(e,t,n,r,o){let i=gt(t)&&t.strokesIncludedInLayout&&!jr(t)&&t.type!=="CODE_INSTANCE"&&t.type!=="CODE_LAYER"?YE(t):{top:0,right:0,bottom:0,left:0},s=(f,d)=>{let p=r&&t.boundVariables?.[d]?.resolvedCodeSyntax?.[r];return n?Pe(p,t.boundVariables?.[d]?.resolvedName,f,o)??f:f},a=s(v((t.paddingTop||0)+i.top),"paddingTop"),l=s(v((t.paddingBottom||0)+i.bottom),"paddingBottom"),u=s(v((t.paddingLeft||0)+i.left),"paddingLeft"),c=s(v((t.paddingRight||0)+i.right),"paddingRight");a!==0&&(e.paddingTop=a),l!==0&&(e.paddingBottom=l),u!==0&&(e.paddingLeft=u),c!==0&&(e.paddingRight=c)}function HX(e,t,n,r){if(e.counterAxisAlignContent==="SPACE_BETWEEN")return"space-between";if(e.layoutWrap==="WRAP"&&!UX(e,t,n,r)){let o=e.counterAxisAlignItems||"MIN";return KR(o)}return"stretch"}function KR(e){switch(e){case"MIN":return"flex-start";case"CENTER":return"center";case"MAX":return"flex-end";case"BASELINE":return"baseline"}}function WX(e,t,n,r,o){return t&>(t)&&t.layoutMode==="VERTICAL"?Gt(e,t,n,r,o):dn(e,t,n,r,o)}function YX(e,t){return e.primaryAxisAlignItems==="SPACE_EVENLY_LEGACY"?t.filter(r=>r.layoutPositioning!=="ABSOLUTE"&&r.visible).length===1?"CENTER":"SPACE_BETWEEN":e.primaryAxisAlignItems}function zR(e,t){return t.transform3dEnabled&&e.scene3d?.preserve3d===!0}function pl(e,t){return t.transform3dEnabled&&(e.scene3d?.preserve3d===!0||!!e.transform3d)}var jR={top:0,left:void 0,right:void 0,bottom:void 0,pointerEvents:"auto"};function qn({node:e,parent:t,context:n,children:r,zIndex:o,itemSpacing:i,codeSyntaxLanguage:s,options:a={isFlattened:!1,canAnimate:!1,previousRotation:void 0},renderOptions:l}){let{previewingCodeBehavior:u,optimizeForTailwindConversion:c,rootNodeStyle:f}=l,d=a.precomputeTransforms??!1,p=HR(e,f),_=a.shouldOutputVariables??!1,T=e.relativeTransform!=null&&G_(e.relativeTransform)&&(Gt(e,t,r,l,n)===re.FILL_PARENT||dn(e,t,r,l,n)===re.FILL_PARENT),h;if(Jt(e,t))h=W1(e,t,r,l,n,d,T);else if(t===null)if(n?.renderedByCode||u)h={...K_({node:e,parent:t,children:r,shouldOutputVariables:_,codeSyntaxLanguage:s,renderOptions:l,context:n,precomputeTransforms:d}),position:"relative",top:void 0,right:void 0,bottom:void 0,left:void 0};else if(p==="independent")h=zX(e);else if(p==="component"){let R=K_({node:e,parent:t,children:r,shouldOutputVariables:_,codeSyntaxLanguage:s,renderOptions:l,context:n,precomputeTransforms:d,ignoreConstraints:!0}),{top:N,left:L,right:b,bottom:M,...w}=R;h={...w,position:"relative"}}else h=KX(e,r,l,n);else h=K_({node:e,parent:t,children:r,shouldOutputVariables:_,codeSyntaxLanguage:s,renderOptions:l,context:n,precomputeTransforms:d});h.mixBlendMode=n?.group?.mixBlendMode??qu(e.blendMode),T&&(h.containerType="size"),e.relativeTransform!=null&&dl(e.relativeTransform,l)&&!a?.canAnimate&&Bs(e,t,n)&&Nr(e,t)&&(h.containerType="size");let m=B1(e,t,r,l,n,a?.canAnimate,a?.previousRotation),E;!a.isFlattened&>(e)&&(hD(e)||t&&jr(t)&&(e.paddingLeft>0||e.paddingRight>0||e.paddingTop>0||e.paddingBottom>0))?E=YR({node:e,parent:t,children:r,itemSpacing:i,shouldOutputVariables:_,codeSyntaxLanguage:s,renderOptions:l,context:n}):!a.isFlattened&&(e.type==="CODE_INSTANCE"||e.type==="CODE_LAYER")&>(e)?E=YR({node:e,parent:t,children:r,itemSpacing:e.itemSpacing,shouldOutputVariables:_,codeSyntaxLanguage:s,renderOptions:l,context:n}):e.type==="GROUP"?(E=XX(e,t,n),E.display==="inline-grid"&&(h.lineHeight="0")):E={display:"block"};let I=h.position==="sticky"&&!Jt(e,t),g;if(I){let R=n?.borderDisplacement?.bottom??0,N;t?.size.y&&typeof h.top=="number"?N=t.size.y-h.top-R:h.top!==void 0?c?N=`calc(100%-${h.top}+${R}px)`:N=`calc(100% - ${h.top} + ${R}px)`:t?.size.y&&(N=t.size.y-R),g={position:"absolute",top:h.top,left
10686:h.left,bottom:n?.borderDisplacement?.bottom?-n.borderDisplacement.bottom:0,right:h.right,height:N,pointerEvents:"none"},h={...h,...jR}}let S={};if(l.transform3dEnabled){if(e.transform3d){let R=dP(e.transform3d);R.length>0&&(S.transform=R,e.transformOrigin&&!lS(e.transformOrigin)&&(S.transformOrigin=fP(e.transformOrigin))),e.transform3d.backfaceHidden&&(S.backfaceVisibility="hidden")}e.scene3d&&(!("visible"in e.scene3d)||e.scene3d.visible!==!1)&&e.scene3d.perspective>0&&(S.perspective=`${e.scene3d.perspective}px`,e.scene3d.perspectiveOrigin&&!lS(e.scene3d.perspectiveOrigin)&&(S.perspectiveOrigin=`${gd(e.scene3d.perspectiveOrigin.x)} ${gd(e.scene3d.perspectiveOrigin.y)}`)),zR(e,l)&&(S.transformStyle="preserve-3d",E.transformStyle="preserve-3d"),g&&pl(e,l)&&(g.transformStyle="preserve-3d")}let A={inner:E,outer:h,stickyWrapper:g,transform:m,transform3d:S};return jX(A,o),A}function KX(e,t,n,r){let o=dn(e,null,t,n,r)===re.HUG_CONTENTS?void 0:e.size.y,s=gt(e)?void 0:e.size.x;return{position:"relative",minWidth:"var(--content-min-width)",width:"100%",height:dn(e,null,t,n,r)===re.HUG_CONTENTS?void 0:"var(--content-min-height)","--content-min-width":s?`max(100%, ${s}px)`:"100%","--content-min-height":o?`max(var(--100dvh), ${o}px)`:"var(--100dvh)"}}function zX(e){return{position:"relative",width:"100%",height:"100%"}}function XX(e,t,n){let r={};if(Jt(e,t)||n?.group?.withinAutoLayout){let o=F_(e,t)||Boolean(n?.group?.isHorizontalFillParent);r.display="inline-grid",o||(r.gridTemplateColumns="max-content"),r.gridTemplateRows="max-content",r.placeItems="start"}else r.display="contents";return r}function jX(e,t){t!==void 0&&(e.outer.zIndex=t)}function _c(e,t,n,r){if(n?.renderedByCode)return{};if(zR(e,r.renderOptions))return{};if(t&&"clipsContent"in e&&e.clipsContent===!1)return{};let o=Fn(e,r.renderOptions),i=e.overflowDirection??"NONE",s=!o&&(i==="HORIZONTAL_SCROLLING"||i==="HORIZONTAL_AND_VERTICAL_SCROLLING"),a=!o&&(i==="VERTICAL_SCROLLING"||i==="HORIZONTAL_AND_VERTICAL_SCROLLING"),l=s?"auto":"clip";return t?{overflowX:l,overflowY:a?"auto":"clip"}:r.withBaseStyles?{overflowX:s?"auto":"hidden"}:{}}function z1(e,t,n,r,o,i,s){let{shouldOutputVariables:a}=s,{cursor:l,opacity:u,...c}=n,f,d,p,_,T=bs(e,!1);if(e.effects&&!o){let{boxShadow:w,filter:B}=MD(e,T,s);f=w?{boxShadow:w}:void 0,_=B?{filter:B}:void 0,d=xS(T,s)}else o&&(p={filter:`url(${o})`});let m=$r(e)||r?Sv(e,i,r,s):void 0,E={...f,...m},O=i?{...E,...zE(e,t),position:"absolute",pointerEvents:"none"}:void 0,I=XS(e),g={borderTopLeftRadius:I.topLeft,borderTopRightRadius:I.topRight,borderBottomRightRadius:I.bottomRight,borderBottomLeftRadius:I.bottomLeft},{borderTopLeftRadius:S,borderTopRightRadius:A,borderBottomRightRadius:R,borderBottomLeftRadius:N}=a?jS(g,e,s):g,L={borderTopLeftRadius:S,borderTopRightRadius:A,borderBottomRightRadius:R,borderBottomLeftRadius:N,cursor:l,opacity:u,..._,...i?{}:E},b={...c,...p},M={...d,borderTopLeftRadius:S,borderTopRightRadius:A,borderBottomRightRadius:R,borderBottomLeftRadius:N};return{containerStyles:L,clipperStyles:b,borderStyles:O,sharedBackgroundStyles:M,renderOptions:s}}function XR(e,t,n,r){let o=r?HE(t,n):0,i=Math.min(t.maxWidth||Number.POSITIVE_INFINITY,t.size.x);e.width=v(i+o)}function X1({node:e,parent:t,context:n,children:r,renderOptions:o}){let i={};if(Fn(e,o)&&Gt(e,t,r,o,n)===re.FIXED&&!Nr(e,t)){let s=Jt(e,t);XR(i,e,t,s)}return i}function Qn({node:e,parent:t,children:n,context:r,renderOptions:o}){let i={position:"relative"},{rootNodeStyle:s,previewingCodeBehavior:a}=o;if(!t&&!s&&!a)return i.width="100%",i.height="100%",i.minWidth="var(--content-min-width)",i.minHeight="var(--content-min-height)",i;let l=Gt(e,t,n,o,r);l!==re.HUG_CONTENTS&&(i.width="100%");let u=dn(e,t,n,o,r);u!==re.HUG_CONTENTS&&(i.height="100%");let c=Jt(e,t),f=()=>{let d=c?WE(e,t):0,p=Math.min(e.maxHeight||Number.POSITIVE_INFINITY,e.size.y);i.height=v(p+d)};if(Fn(e,o))e.type==="FRAME"&&n?.some(p=>Gt(p,e,n,o,r)===re.FILL_PARENT)&&XR(i,e,t,c);else if(!Nr(e,t)){let d=G_(e.relativeTransform),p=(h,m)=>!d||h===re.HUG_CONTENTS?h:m===re.FILL_PARENT?m:re.FIXED,_=p(l,u),T=p(u,l);_===re.FIXED&&(e.targetAspectRatio&&T!==re.FIXED?i.aspectRatio=`${e.targetAspectRatio.x}/${e.targetAspectRatio.y}`:XR(i,e,t,c)),T===re.FIXED&&(e.targetAspectRatio&&_!==re.FIXED?i.aspectRatio=`${e.targetAspectRatio.x}/${e.targetAspectRatio.y}`:f())}return i}function zo(e,t){let n={};return e.isDecorativeImage&&(n.role="presentation",n["aria-hidden"]=!0),e.accessibleLabel&&!t&&(n["aria-label"]=e.accessibleLabel),e.ariaAttributes?.ariaHidden!==void 0&&(n["aria-hidden"]=e.ariaAttributes.ariaHidden),e.ariaAttributes?.ariaRole!==void 0&&(n.role=e.ariaAttributes.ariaRole.join(" ")),e.ariaAttributes?.ariaCurrent!==void 0&&(n["aria-current"]=e.ariaAttributes.ariaCurrent),n}var $X={ALPHA:"alpha",LUMINANCE:"luminance",VECTOR:"alpha"};function j_(e,t,n){return!e.enableGroupKeyframeAnimations||!t||t.maskReferenceBoundingBox===n?t:{...t,maskReferenceBoundingBox:n}}function er({node:e,context:t,websiteContext:n}){let{optimizeForTailwindConversion:r}=n.renderOptions,{masks:o}=t||{};if(!o)return{};let i=z_(e,t),s=o.reduce((l,u)=>{let c=u;if(!c.hash)return l;let f=Io(c.assets,c.hash),d=n.getAssetURL(f.url),{isolatedAbsoluteRenderBounds:p}=c,{absoluteBoundingBox:_}=e,T=t?.maskReferenceBoundingBox??_,h=z_(c,t);if(l.maskImage.push(`url("${d}")`),l.maskRepeat.push("no-repeat"),l.maskClip.push("no-clip"),l.maskComposite.push("intersect"),l.maskMode.push(c.maskType?$X[c.maskType]:"alph
10686a"),p){let m=p.x-T.x,E=p.y-T.y,O=[`${v(m)}px`,`${v(E)}px`],I=[`${v(p.width)}px`,`${v(p.height)}px`],g={forTailwind:r};if(h.horizontal.type===$n.LEFT_RIGHT&&i.horizontal.type===h.horizontal.type){let S=h.horizontal.left.pixelOffset-i.horizontal.left.pixelOffset,A=h.horizontal.right.pixelOffset-i.horizontal.right.pixelOffset;O[0]=`${v(S)}px`,I[0]=W.percent(100).subtract(W.px(v(S-A))).toString(g)}if(h.vertical.type===Or.TOP_BOTTOM&&i.vertical.type===h.vertical.type){let S=h.vertical.top.pixelOffset-i.vertical.top.pixelOffset,A=h.vertical.bottom.pixelOffset-i.vertical.bottom.pixelOffset;O[1]=`${v(S)}px`,I[1]=W.percent(100).subtract(W.px(v(S-A))).toString(g)}l.maskPosition.push(O.join(" ")),l.maskSize.push(I.join(" "))}else l.maskSize.push("auto"),l.maskPosition.push("0px 0px");return l},{maskImage:[],maskPosition:[],maskRepeat:[],maskClip:[],maskComposite:[],maskSize:[],maskMode:[]}),a=Object.fromEntries(Object.entries(s).map(([l,u])=>[l,u.join(", ")]));return(a.maskPosition==="0px 0px"||a.maskPosition==="0% 0%"||a.maskPosition==="0 0")&&delete a.maskPosition,r||(a.WebkitMaskImage=a.maskImage,a.maskPosition&&(a.WebkitMaskPosition=a.maskPosition),a.WebkitMaskRepeat=a.maskRepeat,a.WebkitMaskClip=a.maskClip,a.WebkitMaskSize=a.maskSize),a}var j1=/^(-?[\d.]+)px (-?[\d.]+)px$/;
10686function $1(e){return typeof e?.maskPosition=="string"&&j1.test(e.maskPosition)}function Z1(e,t,n){if(t===0&&n===0)return e;let r=i=>{if(typeof i!="string")return i;let s=j1.exec(i);return s?`${v(parseFloat(s[1])+t)}px ${v(parseFloat(s[2])+n)}px`:i},o={...e};return o.maskPosition!=null&&(o.maskPosition=r(o.maskPosition)),o.WebkitMaskPosition!=null&&(o.WebkitMaskPosition=r(o.WebkitMaskPosition)),o}var J1=100;function Gn(e,t,n,r){if(e===void 0)return{};let o=v(e);if(t?.shouldOutputVariables){let i=EE(r,n,v(e*J1))?.divide(W.number(J1));if(i)return{opacity:i.toString({forTailwind:t.optimizeForTailwindConversion})}}return o===1?{}:{opacity:o}}function pn(e,t){let n=e?.group?.opacity??1,r=t.opacity??1;return n*r}function $_(e){let{env:t,labs:n}=e,r=qE(n);return t==="preview"&&r}function Jr(e,t){if(!(!(e.renderOptions.includeDataName||$_(e))||/^(Frame|Rectangle|Polygon|Star|Group|Line|Ellipse|Vector|Arrow) \d+$/.test(t.name)))return t.name.trim()}function ZX(e,t,n,r){return e?n?"div":"a":t?n?"div":"button":r?"ul":null}function JX(e){switch(e){case"ARTICLE":return"article";case"ASIDE":return"aside";case"FIGURE":return"figure";
10686case"FOOTER":return"footer";case"HEADER":return"header";case"MAIN":return"main";case"NAV":return"nav";case"SECTION":return"section";case"OL":return"ol";case"UL":return"ul";case"IMG":case"VIDEO":case"AUTO":case"DIV":default:return"div"}}function Vs(e){return e==="main"}function Z_(e){return e.semanticTag==="ol"||e.semanticTag==="ul"?e.semanticTag:e.interactiveSemanticTag==="ul"?"ul":null}function Hs(e,t,n,r,o){return{interactiveSemanticTag:ZX(t,n,r,o),semanticTag:JX(e.accessibleHTMLTag)}}function J_(e,t,n){let r=e!=="div"&&e!=="p",o=t!=null,i,s=!1,a=!1;return r?(i=e,o&&(s=!0),n&&(a=!0)):n?o?(a=!0,i=t):i="li":o?i=t:i=e,{finalInnerSemanticTag:i,needsInteractiveWrapper:s,needsListWrapper:a}}var rp=x(Ee(),1),Xo=x(Y(),1);var q1=x(Y(),1),Tc=(0,q1.createContext)({});var Q1=x(Y(),1);function Ws(e){let t=(0,Q1.useRef)(null);return t.current===null&&(t.current=e()),t.current}var ZR=x(Ee(),1),oF=x(Y(),1),ml=x(Y(),1);var eF=x(Y(),1),Ys=(0,eF.createContext)(null);var nF=x(Ee(),1),q_=x(Y(),1),xi=x(Y(),1);var tF=x(Y(),1),vi=(0,tF.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var $R=class extends q_.Component{getSnapshotBeforeUpdate(t){let n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){let r=n.offsetParent,o=r instanceof HTMLElement&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}};function rF({children:e,isPresent:t,anchorX:n}){let r=(0,xi.useId)(),o=(0,xi.useRef)(null),i=(0,xi.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=(0,xi.useContext)(vi);return(0,xi.useInsertionEffect)(()=>{let{width:a,height:l,top:u,left:c,right:f}=i.current;if(t||!o.current||!a||!l)return;let d=n==="left"?`left: ${c}`:`right: ${f}`;o.current.dataset.motionPopId=r;let p=document.createElement("style");return s&&(p.nonce=s),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(` 10687 [data-motion-pop-id="${r}"] { 10688 position: absolute !important; 10689 width: ${a}px !important; 10690 height: ${l}px !important; 10691 ${d}px !important; 10692 top: ${u}px !important; 10693 } 10694 `),()=>{document.head.removeChild(p)}},[t]),(0,nF.jsx)($R,{isPresent:t,childRef:o,sizeRef:i,children:q_.cloneElement(e,{ref:o})})}var iF=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a})=>{let l=Ws(qX),u=(0,ml.useId)(),c=(0,ml.useCallback)(d=>{l.set(d,!0);for(let p of l.values())if(!p)return;r&&r()},[l,r]),f=(0,ml.useMemo)(()=>({id:u,initial:t,isPresent:n,custom:o,onExitComplete:c,register:d=>(l.set(d,!1),()=>l.delete(d))}),i?[Math.random(),c]:[n,c]);return(0,ml.useMemo)(()=>{l.forEach((d,p)=>l.set(p,!1))},[n]),oF.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=(0,ZR.jsx)(rF,{isPresent:n,anchorX:a,children:e})),(0,ZR.jsx)(Ys.Provider,{value:f,children:e})};function qX(){return new Map}var Ks=x(Y(),1);function Q_(e=!0){let t=(0,Ks.useContext)(Ys);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:o}=t,i=(0,Ks.useId)();(0,Ks.useEffect)(()=>{if(e)return o(i)},[e]);let s=(0,Ks.useCallback)(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}var eT=x(Y(),1),np=e=>e.key||"";function JR(e){let t=[];return eT.Children.forEach(e,n=>{(0,eT.isValidElement)(n)&&t.push(n)}),t}var tT=x(Y(),1);var hc=typeof window<"u";var nT=hc?tT.useLayoutEffect:tT.useEffect;var qR=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left"})=>{let[l,u]=Q_(s),c=(0,Xo.useMemo)(()=>JR(e),[e]),f=s&&!l?[]:c.map(np),d=(0,Xo.useRef)(!0),p=(0,Xo.useRef)(c),_=Ws(()=>new Map),[T,h]=(0,Xo.useState)(c),[m,E]=(0,Xo.useState)(c);nT(()=>{d.current=!1,p.current=c;for(let g=0;g<m.length;g++){let S=np(m[g]);f.includes(S)?_.delete(S):_.get(S)!==!0&&_.set(S,!1)}},[m,f.length,f.join("-")]);let O=[];if(c!==T){let g=[...c];for(let S=0;S<m.length;S++){let A=m[S],R=np(A);f.includes(R)||(g.splice(S,0,A),O.push(A))}return i==="wait"&&O.length&&(g=O),E(JR(g)),h(c),null}let{forceRender:I}=(0,Xo.useContext)(Tc);return(0,rp.jsx)(rp.Fragment,{children:m.map(g=>{let S=np(g),A=s&&!l?!1:c===m||f.includes(S),R=()=>
10694{if(_.has(S))_.set(S,!0);else return;let N=!0;_.forEach(L=>{L||(N=!1)}),N&&(I?.(),E(p.current),s&&u?.(),r&&r())};return(0,rp.jsx)(iF,{isPresent:A,initial:!d.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,onExitComplete:A?void 0:R,anchorX:a,children:g},S)})})};var ct=e=>e;var zs=ct,br=ct;var El={skipAnimations:!1,useManualTiming:!1};var op=["read","resolveKeyframes","update","preRender","render","postRender"];var Lr={value:null,addProjectionMetrics:null};function sF(e,t){let n=new Set,r=new Set,o=!1,i=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(f){s.has(f)&&(c.schedule(f),e()),l++,f(a)}let c={schedule:(f,d=!1,p=!1)=>{let T=p&&o?n:r;return d&&s.add(f),T.has(f)||T.add(f),f},cancel:f=>{r.delete(f),s.delete(f)},process:f=>{if(a=f,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(u),t&&Lr.value&&Lr.value.frameloop[t].push(l),l=0,n.clear(),o=!1,i&&(i=!1,c.process(f))}};return c}var QX=40;function rT(e,t){let n=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=op.reduce((m,E)=>(m[E]=sF(i,t?E:void 0),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:d}=s,p=()=>{let m=El.useManualTiming?o.timestamp:performance.now();n=!1,El.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(m-o.timestamp,QX),1)),o.timestamp=m,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),f.process(o),d.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))},_=()=>{n=!0,r=!0,o.isProcessing||e(p)};return{schedule:op.reduce((m,E)=>{let O=s[E];return m[E]=(I,g=!1,S=!1)=>(n||_(),O.schedule(I,g,S)),m},{}),cancel:m=>{for(let E=0;E<op.length;E++)s[op[E]].cancel(m)},state:o,steps:s}}var{schedule:ue,cancel:tr,state:St,steps:ip}=rT(typeof requestAnimationFrame<"u"?requestAnimationFrame:ct,!0);var aF=x(Y(),1),oT=(0,aF.createContext)({strict:!1});var lF={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"]},Mi={};for(let e in lF)Mi[e]={isEnabled:t=>lF[e].some(n=>!!t[n])};function uF(e){for(let t in e)Mi[t]={...Mi[t],...e[t]}}var dF=x(Ee(),1),iT=x(Y(),1);var e6=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","ignoreStrict","viewport"]);function sp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||e6.has(e)}var cF=e=>!sp(e);function QR(e){e&&(cF=t=>t.startsWith("on")?!sp(t):e(t))}try{QR(qV("@emotion/is-prop-valid").default)}catch{}function fF(e,t,n){let r={};for(let o in e)o==="values"&&typeof e.values=="object"||(cF(o)||n===!0&&sp(o)||!t&&!sp(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function eA({children:e,isValidProp:t,...n}){t&&QR(t),n={...(0,iT.useContext)(vi),...n},n.isStatic=Ws(()=>n.isStatic);let r=(0,iT.useMemo)(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return(0,dF.jsx)(vi.Provider,{value:r,children:e})}function pF(e){if(typeof Proxy>"u")return e;let t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}var fT=x(Ee(),1);var gc=x(Y(),1);var mF=x(Y(),1),Xs=(0,mF.createContext)({});var lT=x(Y(),1);function js(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Fi(e){return typeof e=="string"||Array.isArray(e)}var sT=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ap=["initial",...sT];function _l(e){return js(e.animate)||ap.some(t=>Fi(e[t]))}function aT(e){return Boolean(_l(e)||e.variants)}function EF(e,t){if(_l(e)){let{initial:n,animate:r}=e;return{initial:n===!1||Fi(n)?n:void 0,animate:Fi(r)?r:void 0}}return e.inherit!==!1?t:{}}function TF(e){let{initial:t,animate:n}=EF(e,(0,lT.useContext)(Xs));return(0,lT.useMemo)(()=>({initial:t,animate:n}),[_F(t),_F(n)])}function _F(e){return Array.isArray(e)?e.join(" "):e}var hF=Symbol.for("motionComponentSymbol");var OF=x(Y(),1);function Gi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function IF(e,t,n){return(0,OF.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Gi(n)&&(n.current=r))},[t])}var nr=x(Y(),1);var Oc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var t6="framerAppearId",uT="data-"+Oc(t6);var{schedule:Ic,cancel:Mde}=rT(queueMicrotask,!1);var gF=x(Y(),1),cT=(0,gF.createContext)({});function SF(e,t,n,r,o){var i,s;let{visualElement:a}=(0,nr.useContext)(Xs),l=(0,nr.useContext)(oT),u=(0,nr.useContext)(Ys),c=(0,nr.useContext)(vi).reducedMotion,f=(0,nr.useRef)(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.
10694initial===!1:!1,reducedMotionConfig:c}));let d=f.current,p=(0,nr.useContext)(cT);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&n6(f.current,n,o,p);let _=(0,nr.useRef)(!1);(0,nr.useInsertionEffect)(()=>{d&&_.current&&d.update(n,u)});let T=n[uT],h=(0,nr.useRef)(Boolean(T)&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,T))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,T)));return nT(()=>{d&&(_.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Ic.render(d.render),h.current&&d.animationState&&d.animationState.animateChanges())}),(0,nr.useEffect)(()=>{d&&(!h.current&&d.animationState&&d.animationState.animateChanges(),h.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,T)}),h.current=!1))}),d}function n6(e,t,n,r){let{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:RF(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||a&&Gi(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function RF(e){if(e)return e.options.allowProjection!==!1?e.projection:RF(e.parent)}function AF({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var i,s;e&&uF(e);function a(u,c){let f,d={...(0,gc.useContext)(vi),...u,layoutId:r6(u)},{isStatic:p}=d,_=TF(u),T=r(u,p);if(!p&&hc){o6(d,e);let h=i6(d);f=h.MeasureLayout,_.visualElement=SF(o,T,d,t,h.ProjectionNode)}return(0,fT.jsxs)(Xs.Provider,{value:_,children:[f&&_.visualElement?(0,fT.jsx)(f,{visualElement:_.visualElement,...d}):null,n(o,u,IF(T,_.visualElement,c),T,p,_.visualElement)]})}a.displayName=`motion.${typeof o=="string"?o:`create(${(s=(i=o.displayName)!==null&&i!==void 0?i:o.name)!==null&&s!==void 0?s:""})`}`;let l=(0,gc.forwardRef)(a);return l[hF]=o,l}function r6({layoutId:e}){let t=(0,gc.useContext)(Tc).id;return t&&e!==void 0?t+"-"+e:e}function o6(e,t){let n=(0,gc.useContext)(oT).strict}function i6(e){let{drag:t,layout:n}=Mi;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var Pc=x(Y(),1);var vF=x(Y(),1);var yF=e=>t=>typeof t=="string"&&t.startsWith(e),Sc=yF("--"),s6=yF("var(--"),Rc=e=>s6(e)?a6.test(e.split("/*")[0].trim()):!1,a6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Tl={};function NF(e){for(let t in e)Tl[t]=e[t],Sc(t)&&(Tl[t].isCSSVariable=!0)}var jo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rr=new Set(jo);function dT(e,{layout:t,layoutId:n}){return rr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Tl[e]||e==="opacity")}var Be=e=>Boolean(e&&e.getVelocity);var pT=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var mn=(e,t,n)=>n>t?t:n<e?e:n;var $o={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ki={...$o,transform:e=>mn(0,1,e)},lp={...$o,default:1};var up=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zo=up("deg"),kn=up("%"),Q=up("px"),bF=up("vh"),LF=up("vw"),tA={...kn,parse:e=>kn.parse(e)/100,transform:e=>kn.transform(e*100)};var CF={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,backgroundPositionX:Q,backgroundPositionY:Q};var PF={rotate:Zo,rotateX:Zo,rotateY:Zo,rotateZ:Zo,scale:lp,scaleX:lp,scaleY:lp,scaleZ:lp,skew:Zo,skewX:Zo,skewY:Zo,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:ki,originX:tA,originY:tA,originZ:Q};var nA={...$o,transform:Math.round};var Ac={...CF,...PF,zIndex:nA,size:Q,fillOpacity:ki,strokeOpacity:ki,numOctaves:nA};var l6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},u6=jo.length;function DF(e,t,n){let r="",o=!0;for(let i=0;i<u6;i++){let s=jo[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){let u=pT(a,Ac[s]);if(!l){o=!1;let c=l6[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function yc(e,t,n){let{style:r,vars:o,transformOrigin:i}=e,s=!1,a=!1;for(let l in t){let u=t[l];if(rr.has(l)){s=!0;continue}else if(Sc(l)){o[l]=u;continue}else{let c=pT(u,Ac[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=DF(t,e.transform,n):r.transform&&(r.transform="none")),a){let{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}var Nc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rA(e,t,n){for(let r in t)!Be(t[r])&&!dT(r,n)&&(e[r]=t[r])}function c6({transformTemplate:e},t){return(0,vF.useMemo)(()=>{let n=Nc();return yc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function f6(e,t){let n=e.style||{},r={};return rA(r,n,e),Object.assign(r,c6(e,t)),r}function xF(e,t){let n={},r=f6(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
10694`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var MF=["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 bc(e){return typeof e!="string"||e.includes("-")?!1:!!(MF.indexOf(e)>-1||/[A-Z]/u.test(e))}var wF=x(Y(),1);var d6={offset:"stroke-dashoffset",array:"stroke-dasharray"},p6={offset:"strokeDashoffset",array:"strokeDasharray"};function FF(e,t,n=1,r=0,o=!0){e.pathLength=1;let i=o?d6:p6;e[i.offset]=Q.transform(-r);let s=Q.transform(t),a=Q.transform(n);e[i.array]=`${s} ${a}`}function GF(e,t,n){return typeof e=="string"?e:Q.transform(t+n*e)}function kF(e,t,n){let r=GF(t,e.x,e.width),o=GF(n,e.y,e.height);return`${r} ${o}`}function Lc(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,f){if(yc(e,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:p,dimensions:_}=e;d.transform&&(_&&(p.transform=d.transform),delete d.transform),_&&(o!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=kF(_,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&FF(d,s,a,l,!1)}var mT=()=>({...Nc(),attrs:{}});var Cc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function BF(e,t,n,r){let o=(0,wF.useMemo)(()=>{let i=mT();return Lc(i,t,Cc(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let i={};rA(i,e.style,e),o.style={...i,...o.style}}return o}function UF(e=!1){return(n,r,o,{latestValues:i},s)=>{let l=(bc(n)?BF:xF)(r,i,s,n),u=fF(r,typeof n=="string",e),c=n!==Pc.Fragment?{...u,...l,ref:o}:{},{children:f}=r,d=(0,Pc.useMemo)(()=>Be(f)?f.get():f,[f]);return(0,Pc.createElement)(n,{...c,children:d})}}var oA=x(Y(),1);function VF(e){let t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Dc(e,t,n,r){if(typeof t=="function"){let[o,i]=VF(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[o,i]=VF(r);t=t(n!==void 0?n:e.custom,o,i)}return t}var cp=e=>Array.isArray(e);var HF=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),WF=e=>cp(e)?e[e.length-1]||0:e;function vc(e){let t=Be(e)?e.get():e;return HF(t)?t.toValue():t}function m6({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){let s={latestValues:E6(r,o,i,e),renderState:t()};return n&&(s.onMount=a=>n({props:r,current:a,...s}),s.onUpdate=a=>n(a)),s}var ET=e=>(t,n)=>{let r=(0,oA.useContext)(Xs),o=(0,oA.useContext)(Ys),i=()=>m6(e,t,r,o);return n?i():Ws(i)};function E6(e,t,n,r){let o={},i=r(e,{});for(let d in i)o[d]=vc(i[d]);let{initial:s,animate:a}=e,l=_l(e),u=aT(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;let f=c?a:s;if(f&&typeof f!="boolean"&&!js(f)){let d=Array.isArray(f)?f:[f];for(let p=0;p<d.length;p++){let _=Dc(e,d[p]);if(_){let{transitionEnd:T,transition:h,...m}=_;for(let E in m){let O=m[E];if(Array.isArray(O)){let I=c?O.length-1:0;O=O[I]}O!==null&&(o[E]=O)}
vendor: 6,659 bytes, line 10694
10694for(let E in T)o[E]=T[E]}}}return o}function xc(e,t,n){var r;let{style:o}=e,i={};for(let s in o)(Be(o[s])||t.style&&Be(t.style[s])||dT(s,e)||((r=n?.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return i}var YF={useVisualState:ET({scrapeMotionValuesFromProps:xc,createRenderState:Nc})};function _T(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function TT(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(let i in n)e.style.setProperty(i,n[i])}var hT=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"]);function OT(e,t,n,r){TT(e,t,void 0,r);for(let o in t.attrs)e.setAttribute(hT.has(o)?o:Oc(o),t.attrs[o])}function IT(e,t,n){let r=xc(e,t,n);for(let o in e)if(Be(e[o])||Be(t[o])){let i=jo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}var KF=["x","y","width","height","cx","cy","r"],zF={useVisualState:ET({scrapeMotionValuesFromProps:IT,createRenderState:mT,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i){for(let a in o)if(rr.has(a)){i=!0;break}}if(!i)return;let s=!t;if(t)for(let a=0;a<KF.length;a++){let l=KF[a];e[l]!==t[l]&&(s=!0)}s&&ue.read(()=>{_T(n,r),ue.render(()=>{Lc(r,o,Cc(n.tagName),e.transformTemplate),OT(n,r)})})}})};function XF(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){let s={...bc(r)?zF:YF,preloadedFeatures:e,useRender:UF(o),createVisualElement:t,Component:r};return AF(s)}}function wi(e,t,n){let r=e.getProps();return Dc(r,t,n!==void 0?n:r.custom,e)}function Mc(e,t){return e?e[t]||e.default||e:void 0}var gT=new Set(["width","height","top","left","right","bottom",...jo]);var ST;function _6(){ST=void 0}var Nn={now:()=>(ST===void 0&&Nn.set(St.isProcessing||El.useManualTiming?St.timestamp:performance.now()),ST),set:e=>{ST=e,queueMicrotask(_6)}};function Fc(e,t){e.indexOf(t)===-1&&e.push(t)}function $s(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Zs=class{constructor(){this.subscriptions=[]}add(t){return Fc(this.subscriptions,t),()=>$s(this.subscriptions,t)}notify(t,n,r){let o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){let s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function RT(e,t){return t?e*(1e3/t):0}var jF=30,T6=e=>!isNaN(parseFloat(e)),$F={current:void 0},iA=class{constructor(t,n={}){this.version="12.4.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{let i=Nn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Nn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=T6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Zs);let r=this.events[t].add(n);return t==="change"?()=>{r(),ue.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return $F.current&&$F.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Nn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>jF)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,jF);return RT(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Bi(e,t){return new iA(e,t)}function h6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Bi(n))}function ZF(e,t){let n=wi(e,t),{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(let s in i){let a=WF(i[s]);h6(e,s,a)}}function JF(e){return Boolean(Be(e)&&e.add)}function fp(e,t){let n=e.getValue("willChange");if(JF(n))return n.add(t)}function AT(e){return e.props[uT]}function Gc(e){let t;return()=>(t===void 0&&(t=e()),t)}var qF=Gc(()=>window.ScrollTimeline!==void 0);var yT=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){let r=this.animations.map(o=>{if(qF()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var kc=class extends yT{then(t,n){return Promise.all(this.animations).then(t).cat
10694ch(n)}};var qt=e=>e*1e3,bn=e=>e/1e3;var NT={current:!1};function Js(e){return typeof e=="function"}function sA(e,t){e.timeline=t,e.onfinish=null}var dp=e=>Array.isArray(e)&&typeof e[0]=="number";var QF={linearEasing:void 0};function eG(e,t){let n=Gc(e);return()=>{var r;return(r=QF[t])!==null&&r!==void 0?r:n()}}var wc=eG(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Cr=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r};var bT=(e,t,n=10)=>{let r="",o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=e(Cr(0,o-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function lA(e){return Boolean(typeof e=="function"&&wc()||!e||typeof e=="string"&&(e in aA||wc())||dp(e)||Array.isArray(e)&&e.every(lA))}var pp=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,aA={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pp([0,.65,.55,1]),circOut:pp([.55,0,1,.45]),backIn:pp([.31,.01,.66,-.59]),backOut:pp([.33,1.53,.69,.99])};function uA(e,t){if(e)return typeof e=="function"&&wc()?bT(e,t):dp(e)?pp(e):Array.isArray(e)?e.map(n=>uA(n,t)||aA.easeOut):aA[e]}var tG=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,O6=1e-7,I6=12;function g6(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=tG(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>O6&&++a<I6);return s}function qs(e,t,n,r){if(e===t&&n===r)return ct;let o=i=>g6(i,0,1,e,n);return i=>i===0||i===1?i:tG(o(i),t,r)}var LT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var CT=e=>t=>1-e(1-t);var cA=qs(.33,1.53,.69,.99),mp=CT(cA),PT=LT(mp);var DT=e=>(e*=2)<1?.5*mp(e):.5*(2-Math.pow(2,-10*(e-1)));var vT=e=>1-Math.sin(Math.acos(e)),xT=CT(vT),MT=LT(vT);var FT=e=>/^0[^.\s]+$/u.test(e);function nG(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||FT(e):!0}var Qs=e=>Math.round(e*1e5)/1e5;var Bc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function rG(e){return e==null}var oG=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Uc=(e,t)=>n=>Boolean(typeof n=="string"&&oG.test(n)&&n.startsWith(e)||t&&!rG(n)&&Object.prototype.hasOwnProperty.call(n,t)),GT=(e,t,n)=>r=>{if(typeof r!="string")return r;let[o,i,s,a]=r.match(Bc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var S6=e=>mn(0,255,e),fA={...$o,transform:e=>Math.round(S6(e))},Jo={test:Uc("rgb","red"),parse:GT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+fA.transform(e)+", "+fA.transform(t)+", "+fA.transform(n)+", "+Qs(ki.transform(r))+")"};function R6(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}var Ep={test:Uc("#"),parse:R6,transform:Jo.transform};var ea={test:Uc("hsl","hue"),parse:GT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+kn.transform(Qs(t))+", "+kn.transform(Qs(n))+", "+Qs(ki.transform(r))+")"};var Ct={test:e=>Jo.test(e)||Ep.test(e)||ea.test(e),parse:e=>Jo.test(e)?Jo.parse(e):ea.test(e)?ea.parse(e):Ep.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Jo.transform(e):ea.transform(e)};var iG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function A6(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Bc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(iG))===null||n===void 0?void 0:n.length)||0)>0}var aG="number",lG="color",y6="var",N6="var(",sG="${}",b6=/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 hl(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[],i=0,a=t.replace(b6,l=>(Ct.test(l)?(r.color.push(i),o.push(lG),n.push(Ct.parse(l))):l.startsWith(N6)?(r.var.push(i),o.push(y6),n.push(l)):(r.number.push(i),o.push(aG),n.push(parseFloat(l))),++i,sG)).split(sG);return{values:n,split:a,indexes:r,types:o}}function uG(e){return hl(e).values}function cG(e){let{split:t,types:n}=hl(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){let a=n[s];a===aG?i+=Qs(o[s]):a===lG?i+=Ct.transform(o[s]):i+=o[s]}return i}}var L6=e=>typeof e=="number"?0:e;function C6(e){let t=uG(e);return cG(e)(t.map(L6))}var wn={test:A6,parse:uG,createTransformer:cG,getAnimatableNone:C6};var P6=new Set(["brightness","contrast","saturate","opacity"]);function D6(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=n.match(Bc)||[];if(!r)return e;let o=n.replace(r,""),i=P6.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}var v6=/\b([a-z-]*)\(.*?\)/gu,_p={...wn,getAnimatableNone:e=>{let t=e.match(v6);return t?t.map(D6).join(" "):e}};var x6={...Ac,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:_p,WebkitFilter:_p},Vc=e=>x6[e];function kT(e,t){let n=Vc(e);return n!==_p&&(n=wn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 8,961 bytes, line 10694
10694var M6=new Set(["auto","none","0"]);function fG(e,t,n){let r=0,o;for(;r<e.length&&!o;){let i=e[r];typeof i=="string"&&!M6.has(i)&&hl(i).values.length&&(o=e[r]),r++}if(o&&n)for(let i of t)e[i]=kT(n,o)}var dA=e=>e===$o||e===Q,dG=(e,t)=>parseFloat(e.split(", ")[t]),pG=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;let o=r.match(/^matrix3d\((.+)\)$/u);if(o)return dG(o[1],t);{let i=r.match(/^matrix\((.+)\)$/u);return i?dG(i[1],e):0}},F6=new Set(["x","y","z"]),G6=jo.filter(e=>!F6.has(e));function mG(e){let t=[];return G6.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}var Ol={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:pG(4,13),y:pG(5,14)};Ol.translateX=Ol.x;Ol.translateY=Ol.y;var Il=new Set,pA=!1,mA=!1;function EG(){if(mA){let e=Array.from(Il).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{let o=mG(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}mA=!1,pA=!1,Il.forEach(e=>e.complete()),Il.clear()}function _G(){Il.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(mA=!0)})}function TG(){_G(),EG()}var ta=class{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Il.add(this),pA||(pA=!0,ue.read(_G),ue.resolveKeyframes(EG))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){let s=o?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){let l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),o&&s===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Il.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Il.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};var wT=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var k6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function w6(e){let t=k6.exec(e);if(!t)return[,];let[,n,r,o]=t;return[`--${n??r}`,o]}var B6=4;function EA(e,t,n=1){br(n<=B6,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,o]=w6(e);if(!r)return;let i=window.getComputedStyle(t).getPropertyValue(r);if(i){let s=i.trim();return wT(s)?parseFloat(s):s}return Rc(o)?EA(o,t,n+1):o}var BT=e=>t=>t.test(e);var hG={test:e=>e==="auto",parse:e=>e};var _A=[$o,Q,kn,Zo,LF,bF,hG],TA=e=>_A.find(BT(e));var Hc=class extends ta{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),Rc(u))){let c=EA(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!gT.has(r)||t.length!==2)return;let[o,i]=t,s=TA(o),a=TA(i);if(s!==a)if(dA(s)&&dA(a))for(let l=0;l<t.length;l++){let u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)nG(t[o])&&r.push(o);r.length&&fG(t,r,n)}measureInitialState(){let{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ol[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;let o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;let{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;let i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);let s=o.length-1,a=o[s];o[s]=Ol[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}};var hA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wn.test(e)||e==="0")&&!e.startsWith("url("));function U6(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function OG(e,t,n,r){let o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;let i=e[e.length-1],s=hA(o,t),a=hA(i,t);return zs(s===a,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!s||!a?!1:U6(e)||(n==="spring"||Js(n))&&r}var V6=e=>e!==null;function na(e,{repeat:t,repeatType:n="loop"},r){let o=e.filter(V6),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}var H6=40,Wc=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Nn.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>H6?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&TG(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Nn.now(),this.hasAttemptedResolve=!0;let{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!OG(t,r,o,i))if(NT.current||!s){l&&l(na(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}else this.options.duration=0;let c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};function Yc(e){let t=0,n=50,r=e.next(t);for(;!r.done&&t<2e4;)t+=n,r=e.next(t);return t>=2e4?1/0:t}var qo={layout:0,mainThread:0,waapi:0};var Ie=(e,t,n)=>e+(t-e)*n;function OA(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function IG({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{let a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=OA(l,a,e+1/3),i=OA(l,a,e),s=OA(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Kc(e,t){return n=>n>0?t:e}var IA=(e,t,n)=>{let r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},W6=[Ep,Jo,ea],Y6=e=>W6.find(t=>t.test(e));function gG(e){let t=Y6(e);if(zs(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let n=t.parse(e);return t===ea&&(n=IG(n)),n}var gA=(e,t)=>{let n=gG(e),r=gG(t);if(!n||!r)return Kc(e,t);let o={...n};return i=>(o.red=IA(n.red,r.red,i),o.green=IA(n.green,r.green,i),o.blue=IA(n.blue,r.blue,i),o.alpha=Ie(n.alpha,r.alpha,i),Jo.transform(o))};var K6=(e,t)=>n=>t(e(n)),Qo=(...e)=>e.reduce(K6);var UT=new Set(["none","hidden"]);function SG(e,t){return UT.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function z6(e,t){return n=>Ie(e,t,n)}function VT(e){return typeof e=="number"?z6:typeof e=="string"?Rc(e)?Kc:Ct.test(e)?gA:$6:Array.isArray(e)?RG:typeof e=="object"?Ct.test(e)?gA:X6:Kc}function RG(e,t){let n=[...e],r=n.length,o=e.map((i,s)=>VT(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function X6(e,t){let n={...e,...t},r={};for(let o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=VT(e[o])(e[o],t[o]));return o=>{for(let i in r)n[i]=r[i](o);return n}}function j6(e,t){var n;let r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let s=t.types[i],a=e.indexes[s][o[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[i]=l,o[s]++}return r}var $6=(e,t)=>{let n=wn.createTransformer(t),r=hl(e),o=hl(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?UT.has(e)&&!o.values.length||UT.has(t)&&!r.values.length?SG(e,t):Qo(RG(j6(r,o),o.values),n):(zs(!0,`Complex values '${e}' and '${t}
10694' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Kc(e,t))};function HT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ie(e,t,n):VT(e)(e,t)}var Z6=5;function WT(e,t,n){let r=Math.max(t-Z6,0);return RT(n-e(r),t-r)}var at={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};var SA=.001;function AG({duration:e=at.duration,bounce:t=at.bounce,velocity:n=at.velocity,mass:r=at.mass}){let o,i;zs(e<=qt(at.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=mn(at.minDamping,at.maxDamping,s),e=mn(at.minDuration,at.maxDuration,bn(e)),s<1?(o=u=>{let c=u*s,f=c*e,d=c-n,p=YT(u,s),_=Math.exp(-f);return SA-d/p*_},i=u=>{let f=u*s*e,d=f*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,_=Math.exp(-f),T=YT(Math.pow(u,2),s);return(-o(u)+SA>0?-1:1)*((d-p)*_)/T}):(o=u=>{let c=Math.exp(-u*e),f=(u-n)*e+1;return-SA+c*f},i=u=>{let c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});let a=5/e,l=q6(o,i,a);if(e=qt(e),isNaN(l))return{stiffness:at.stiffness,damping:at.damping,duration:e};{let u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}var J6=12;function q6(e,t,n){let r=n;for(let o=1;o<J6;o++)r=r-e(r)/t(r);return r}function YT(e,t){return e*Math.sqrt(1-t*t)}var Q6=["duration","bounce"],ej=["stiffness","damping","mass"];function yG(e,t){return t.some(n=>e[n]!==void 0)}function tj(e){let t={velocity:at.velocity,stiffness:at.stiffness,damping:at.damping,mass:at.mass,isResolvedFromDuration:!1,...e};if(!yG(e,ej)&&yG(e,Q6))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*mn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:at.mass,stiffness:o,damping:i}}else{let n=AG(e);t={...t,...n,mass:at.mass},t.isResolvedFromDuration=!0}return t}function zc(e=at.visualDuration,t=at.bounce){let n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:o}=n,i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:p}=tj({...n,velocity:-bn(n.velocity||0)}),_=d||0,T=u/(2*Math.sqrt(l*c)),h=s-i,m=bn(Math.sqrt(l/c)),E=Math.abs(h)<5;r||(r=E?at.restSpeed.granular:at.restSpeed.default),o||(o=E?at.restDelta.granular:at.restDelta.default);let O;if(T<1){let g=YT(m,T);O=S=>{let A=Math.exp(-T*m*S);return s-A*((_+T*m*h)/g*Math.sin(g*S)+h*Math.cos(g*S))}}else if(T===1)O=g=>s-Math.exp(-m*g)*(h+(_+m*h)*g);else{let g=m*Math.sqrt(T*T-1);O=S=>{let A=Math.exp(-T*m*S),R=Math.min(g*S,300);return s-A*((_+T*m*h)*Math.sinh(R)+g*h*Math.cosh(R))/g}}let I={calculatedDuration:p&&f||null,next:g=>{let S=O(g);if(p)a.done=g>=f;else{let A=0;T<1&&(A=g===0?qt(_):WT(O,g,S));let R=Math.abs(A)<=r,N=Math.abs(s-S)<=o;a.done=R&&N}return a.value=a.done?s:S,a},toString:()=>{let g=Math.min(Yc(I),2e4),S=bT(A=>I.next(g*A).value,g,30);return g+"ms "+S}};return I}function AA({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let f=e[0],d={done:!1,value:f},p=R=>a!==void 0&&R<a||l!==void 0&&R>l,_=R=>a===void 0?l:l===void 0||Math.abs(a-R)<Math.abs(l-R)?a:l,T=n*t,h=f+T,m=s===void 0?h:s(h);m!==h&&(T=m-f);let E=R=>-T*Math.exp(-R/r),O=R=>m+E(R),I=R=>{let N=E(R),L=O(R);d.done=Math.abs(N)<=u,d.value=d.done?m:L},g,S,A=R=>{p(d.value)&&(g=R,S=zc({keyframes:[d.value,_(d.value)],velocity:WT(O,R,d.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return A(0),{calculatedDuration:null,next:R=>{let N=!1;return!S&&g===void 0&&(N=!0,I(R),A(R)),g!==void 0&&R>=g?S.next(R-g):(!N&&I(R),d)}}}var NG=qs(.42,0,1,1),bG=qs(0,0,.58,1),KT=qs(.42,0,.58,1);var zT=e=>Array.isArray(e)&&typeof e[0]!="number";var LG={linear:ct,easeIn:NG,easeInOut:KT,easeOut:bG,circIn:vT,circInOut:MT,circOut:xT,backIn:mp,backInOut:PT,backOut:cA,anticipate:DT},yA=e=>{if(dp(e)){br(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,o]=e;return qs(t,n,r,o)}else if(typeof e=="string")return br(LG[e]!==void 0,`Invalid easing type '${e}'`),LG[e];return e};function nj(e,t,n){let r=[],o=n||HT,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||ct:t;a=Qo(l,a)}r.push(a)}return r}function XT(e,t,{clamp:n=!0,ease:r,mixer:o}={}){let i=e.length;if(br(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=nj(t,r,o),l=a.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);let d=Cr(e[f],e[f+1],c);return a[f](d)};return n?c=>u(mn(e[0],e[i-1],c)):u}function jT(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let o=Cr(0,t,r);e.push(Ie(n,1,o))}}function $T(e){let t=[0];return jT(t,e.length-1),t}function CG(e,t){return e.map(n=>n*t)}function rj(e,t){return e.map(()=>t||KT).splice(0,e.length-1)}function Tp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){let o=zT(r)?r.map(yA):yA(r),i={done:!1,value:t[0]},s=CG(n&&n.length===t.length?n:$T(t),e),a=XT(s,t,{ease:Array.isArray(o)?o:rj(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}var PG=e=>{let t=({timestamp:n})=>e(n);return{start:()=>ue.update(t,!0),stop:()=>tr(t),now:()=>St.isProcessing?St.timestamp:Nn.now()}};var oj={decay:AA,inertia:AA,tween:Tp,keyframes:Tp,spring:zc},ij=e=>e/100,gl=class extends Wc{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>
vendor: 13,429 bytes, line 10694
10694{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:l}=this.options;l&&l()};let{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=o?.KeyframeResolver||ta,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=Js(n)?n:oj[n]||Tp,l,u;a!==Tp&&typeof t[0]!="number"&&(l=Qo(ij,HT(t[0],t[1])),t=[0,100]);let c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Yc(c));let{calculatedDuration:f}=c,d=f+o,p=d*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:p}}onPostResolved(){let{autoplay:t=!0}=this.options;qo.mainThread++,this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){let{resolved:r}=this;if(!r){let{keyframes:R}=this.options;return{done:!0,value:R[R.length-1]}}let{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);let{delay:d,repeat:p,repeatType:_,repeatDelay:T,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let m=this.currentTime-d*(this.speed>=0?1:-1),E=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let O=this.currentTime,I=i;if(p){let R=Math.min(this.currentTime,c)/f,N=Math.floor(R),L=R%1;!L&&R>=1&&(L=1),L===1&&N--,N=Math.min(N,p+1),Boolean(N%2)&&(_==="reverse"?(L=1-L,T&&(L-=T/f)):_==="mirror"&&(I=s)),O=mn(0,1,L)*f}let g=E?{done:!1,value:l[0]}:I.next(O);a&&(g.value=a(g.value));let{done:S}=g;!E&&u!==null&&(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);let A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return A&&o!==void 0&&(g.value=na(l,this.options,o)),h&&h(g.value),A&&this.finish(),g}get duration(){let{resolved:t}=this;return t?bn(t.calculatedDuration):0}get time(){return bn(this.currentTime)}set time(t){t=qt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=bn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=PG,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();let o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),qo.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};var DG=new Set(["opacity","clipPath","filter","transform"]);function vG(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=uA(a,o);Array.isArray(c)&&(u.easing=c),Lr.value&&qo.waapi++;let f=e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"});return Lr.value&&f.finished.finally(()=>{qo.waapi--}),f}var xG=Gc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var ZT=10,sj=2e4;function aj(e){return Js(e.type)||e.type==="spring"||!lA(e.ease)}function lj(e,t){let n=new gl({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},o=[],i=0;for(;!r.done&&i<sj;)r=n.sample(i),o.push(r.value),i+=ZT;return{times:void 0,keyframes:o,duration:i-ZT,ease:"linear"}}var MG={anticipate:DT,backInOut:PT,circInOut:MT};function uj(e){return e in MG}var hp=class extends Wc{constructor(t){super(t);let{name:n,motionValue:r,element:o,keyframes:i}=this.options;this.resolver=new Hc(i,(s,a)=>this.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:o,ease:i,type:s,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&wc()&&uj(i)&&(i=MG[i]),aj(this.options)){let{onComplete:f,onUpdate:d,motionValue:p,element:_,...T}=this.options,h=lj(t,T);t=h.keyframes,t.length===1&&(t[1]=t[0]),r=h.duration,o=h.times,i=h.ease,s="keyframes"}let c=vG(a.owner.current,l,t,{...this.options,duration:r,times:o,ease:i});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(sA(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:f}=this.options;a.set(na(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:o,type:s,ease:i,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:n}=t;return bn(n)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:n}=t;return bn(n.currentTime||0)}set time(t){let{resolved:n}=this;if(!n)return;let{animation:r}=n;r.currentTime=qt(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:n}=t;return n.playbackRate}set speed(t){let{resolved:n}=this;if(!n)return;let{animation:r}=n;r.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:n}=t;return n.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{let{resolved:n}=this;if(!n)return ct;let{animation:r}=n;sA(r,t)}return ct}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){let{motionValue:u,onUpdate:c,onComplete:f,element:d,...p}=this.options,_=new gl({...p,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),T=qt(this.time);u.setWithVelocity(_.sample(T-ZT).value,_.sample(T).value,ZT)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=n.owner.getProps();return xG()&&r&&DG.has(r)&&!l&&!u&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}};var cj={type:"spring",stiffness:500,damping:25,restSpeed:10},fj=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dj={type:"keyframes",duration:.8},pj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},FG=(e,{keyframes:t})=>t.length>2?dj:rr.has(e)?e.startsWith("scale")?fj(t[1]):cj:pj;function GG({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}var Xc=(e,t,n,r={},o,i)=>s=>{let a=Mc(r,e)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u=u-qt(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};GG(a)||(c={...c,...FG(e,c)}),c.duration&&(c.duration=qt(c.duration)),c.repeatDelay&&(c.repeatDelay=qt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),(NT.current||El.skipAnimations)&&(f=!0,c.duration=0,c.delay=0),f&&!i&&t.get()!==void 0){let d=na(c.keyframes,a);if(d!==void 0)return ue.update(()=>{c.onUpdate(d),c.onComplete()}),new kc([])}return!i&&hp.supports(c)?new hp(c):new gl(c)};function mj({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function jc(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);let u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(let f in l){let d=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),p=l[f];if(p===void 0||c&&mj(c,f))continue;let _={delay:n,...Mc(s||{},f)},T=!1;if(window.MotionHandoffAnimation){let m=AT(e);if(m){let E=window.MotionHandoffAnimation(m,f,ue);E!==null&&(_.startTime=E,T=!0)}}fp(e,f),d.start(Xc(f,d,p,e.shouldReduceMotion&&gT.has(f)?{type:!1}:_,e,T));let h=d.animation;h&&u.push(h)}return a&&Promise.all(u).then(()=>{ue.update(()=>{a&&ZF(e,a)})}),u}function JT(e,t,n={}){var r;let o=wi(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);let s=o?()=>Promise.all(jc(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{let{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=i;return Ej(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=i;if(l){let[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function Ej(e,t,n=0,r=0,o=1,i){let s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(_j).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(JT(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function _j(e,t){return e.sortNodePosition(t)}function kG(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){let o=t.map(i=>JT(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=JT(e,t,n);else{let o=typeof t=="function"?wi(e,t,n.custom):t;r=Promise.all(jc(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function NA(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Tj=ap.length;function bA(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent?bA(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}let t={};for(let n=0;n<Tj;n++){let r=ap[n],o=e.props[r];(Fi(o)||o===!1)&&(t[r]=o)}return t}var hj=[...sT].reverse(),Oj=sT.length;function Ij(e){return t=>Promise.all(t.map(({animation:n,options:r})=>kG(e,n,r)))}function BG(e){let t=Ij(e),n=wG(),r=!0,o=l=>(u,c)=>{var f;let d=wi(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){let{transition:p,transitionEnd:_,...T}=d;u={...u,...T,..._}}return u};function i(l){t=l(e)}function s(l){let{props:u}=e,c=bA(e.parent)||{},f=[],d=new Set,p={},_=1/0;for(let h=0;h<Oj;h++){let m=hj[h],E=n[m],O=u[m]!==void 0?u[m]:c[m],I=Fi(O),g=m===l?E.isActive:null;g===!1&&(_=h);let S=O===c[m]&&O!==u[m]&&I;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),E.protectedKeys={...p},!E.isActive&&g===null||!O&&!E.prevProp||js(O)||typeof O=="boolean")continue;let A=gj(E.prevProp,O),R=A||m===l&&E.isActive&&!S&&I||h>_&&I,N=!1,L=Array.isArray(O)?O:[O],b=L.reduce(o(m),{});g===!1&&(b={});let{prevResolvedValues:M={}}=E,w={...M,...b},B=C=>{R=!0,d.has(C)&&(N=!0,d.delete(C)),E.needsAnimating[C]=!0;let G=e.getValue(C);G&&(G.liveStyle=!1)};for(let C in w){let G=b[C],P=M[C];if(p.hasOwnProperty(C))continue;let X=!1;cp(G)&&cp(P)?X=!NA(G,P):X=G!==P,X?G!=null?B(C):d.add(C):G!==void 0&&d.has(C)?B(C):E.protectedKeys[C]=!0}E.prevProp=O,E.prevResolvedValues=b,E.isActive&&(p={...p,...b}),r&&e.blockInitialAnimation&&(R=!1),R&&(!(S&&A)||N)&&f.push(...L.map(C=>({animation:C,options:{type:m}})))}if(d.size){let h={};if(typeof u.initial!="boolean"){let m=wi(e,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(h.transition=m.transition)}d.forEach(m=>{let E=e.getBaseTarget(m),O=e.getValue(m);O&&(O.liveStyle=!0),h[m]=E??null}),f.push({animation:h})}let T=Boolean(f.length);return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,T?t(f):Prom
10694ise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var p;return(p=d.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;let f=s(l);for(let d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=wG(),r=!0}}}function gj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!NA(t,e):!1}function Sl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wG(){return{animate:Sl(!0),whileInView:Sl(),whileHover:Sl(),whileTap:Sl(),whileDrag:Sl(),whileFocus:Sl(),exit:Sl()}}var Qt=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var qT=class extends Qt{constructor(t){super(t),t.animationState||(t.animationState=BG(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();js(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}};var Sj=0,QT=class extends Qt{constructor(){super(...arguments),this.id=Sj++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){let{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var UG={animation:{Feature:qT},exit:{Feature:QT}};var qr={x:!1,y:!1};function eh(){return qr.x||qr.y}function VG(e){return e==="x"||e==="y"?qr[e]?null:(qr[e]=!0,()=>{qr[e]=!1}):qr.x||qr.y?null:(qr.x=qr.y=!0,()=>{qr.x=qr.y=!1})}function Ui(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var $c=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Vi(e){return{point:{x:e.pageX,y:e.pageY}}}var HG=e=>t=>$c(t)&&e(t,Vi(t));function Hi(e,t,n,r){return Ui(e,t,HG(n),r)}function th({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function WG({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function YG(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}var jG=1e-4,Rj=1-jG,Aj=1+jG,$G=.01,yj=0-$G,Nj=0+$G;function wt(e){return e.max-e.min}function ZG(e,t,n){return Math.abs(e-t)<=n}function KG(e,t,n,r=.5){e.origin=r,e.originPoint=Ie(t.min,t.max,e.origin),e.scale=wt(n)/wt(t),e.translate=Ie(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Rj&&e.scale<=Aj||isNaN(e.scale))&&(e.scale=1),(e.translate>=yj&&e.translate<=Nj||isNaN(e.translate))&&(e.translate=0)}function Zc(e,t,n,r){KG(e.x,t.x,n.x,r?r.originX:void 0),KG(e.y,t.y,n.y,r?r.originY:void 0)}function zG(e,t,n){e.min=n.min+t.min,e.max=e.min+wt(t)}function JG(e,t,n){zG(e.x,t.x,n.x),zG(e.y,t.y,n.y)}function XG(e,t,n){e.min=t.min-n.min,e.max=e.min+wt(t)}function Jc(e,t,n){XG(e.x,t.x,n.x),XG(e.y,t.y,n.y)}var qG=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rl=()=>({x:qG(),y:qG()}),QG=()=>({min:0,max:0}),Xe=()=>({x:QG(),y:QG()});function or(e){return[e("x"),e("y")]}function LA(e){return e===void 0||e===1}function nh({scale:e,scaleX:t,scaleY:n}){return!LA(e)||!LA(t)||!LA(n)}function Wi(e){return nh(e)||CA(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function CA(e){return ek(e.x)||ek(e.y)}function ek(e){return e&&e!=="0%"}function Op(e,t,n){let r=e-n,o=t*r;return n+o}function tk(e,t,n,r,o){return o!==void 0&&(e=Op(e,o,r)),Op(e,n,r)+t}function PA(e,t=0,n=1,r,o){e.min=tk(e.min,t,n,r,o),e.max=tk(e.max,t,n,r,o)}function DA(e,{x:t,y:n}){PA(e.x,t.translate,t.scale,t.originPoint),PA(e.y,n.translate,n.scale,n.originPoint)}var nk=.999999999999,rk=1.0000000000001;function ik(e,t,n,r=!1){let o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;let{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Al(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,DA(e,s)),r&&Wi(i.latestValues)&&Al(e,i.latestValues))}t.x<rk&&t.x>nk&&(t.x=1),t.y<rk&&t.y>nk&&(t.y=1)}function ra(e,t){e.min=e.min+t,e.max=e.max+t}function ok(e,t,n,r,o=.5){let i=Ie(e.min,e.max,o);PA(e,t,n,i,r)}function Al(e,t){ok(e.x,t.x,t.scaleX,t.scale,t.originX),ok(e.y,t.y,t.scaleY,t.scale,t.originY)}function vA(e,t){return th(YG(e.getBoundingClientRect(),t))}function sk(e,t,n){let r=vA(e,n),{scroll:o}=t;return o&&(ra(r.x,o.offset.x),ra(r.y,o.offset.y)),r}function yl(e,t){let n=`${t}PointerCapture`;if(e.target instanceof Element&&n in e.target&&e.pointerId!==void 0)try{e.target[n](e.pointerId)}catch{}}var ak=(e,t)=>Math.abs(e-t);function lk(e,t){let n=ak(e.x,t.x),r=ak(e.y,t.y);return Math.sqrt(n**2+r**2)}var qc=class{constructor(t,n,{transformPagePoint:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=MA(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=lk(c.offset,{x:0,y:0})>=3;if(!f&&!d)return;let{point:p}=c,{timestamp:_}=St;this.history.push({...p,timestamp:_});let{onStart:T,onMove:h}=this.handlers;f||(T&&T(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{if(this.index=ck(c.currentTarget),c.target instanceof Element&&c.target.hasPointerCapture&&c.pointerId!==void 0)try{if
vendor: 38,539 bytes, line 10694
10694(!c.target.hasPointerCapture(c.pointerId))return}catch{}this.lastMoveEvent=c,this.lastMoveEventInfo=xA(f,this.transformPagePoint),ue.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{yl(c,"release"),this.end();let{onEnd:d,onSessionEnd:p,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let T=MA(c.type==="pointercancel"||c.type==="lostpointercapture"?this.lastMoveEventInfo:xA(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(c,T),p&&p(c,T)},!$c(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r;let i=Vi(t),s=xA(i,this.transformPagePoint),{point:a}=s,{timestamp:l}=St;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=n;u&&u(t,MA(s,this.history)),yl(t,"set"),this.removeListeners=Qo(Hi(t.currentTarget,"pointermove",this.handlePointerMove),Hi(t.currentTarget,"pointerup",this.handlePointerUp),Hi(t.currentTarget,"pointercancel",this.handlePointerUp),Hi(t.currentTarget,"lostpointercapture",(c,f)=>{ck(c.currentTarget)!==this.index?yl(c,"set"):this.handlePointerUp(c,f)}))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tr(this.updatePoint)}};function xA(e,t){return t?{point:t(e.point)}:e}function uk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function MA({point:e},t){return{point:e,delta:uk(e,fk(t)),offset:uk(e,bj(t)),velocity:Lj(t,.1)}}function bj(e){return e[0]}function fk(e){return e[e.length-1]}function Lj(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,o=fk(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>qt(t)));)n--;if(!r)return{x:0,y:0};let i=bn(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};let s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ck(e){return e.parentNode?Array.from(e.parentNode.children).indexOf(e):-1}function _k(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ie(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ie(n,e,r.max):Math.min(e,n)),e}function dk(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Tk(e,{top:t,left:n,bottom:r,right:o}){return{x:dk(e.x,n,o),y:dk(e.y,t,r)}}function pk(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function hk(e,t){return{x:pk(e.x,t.x),y:pk(e.y,t.y)}}function Ok(e,t){let n=.5,r=wt(e),o=wt(t);return o>r?n=Cr(t.min,t.max-r,e.min):r>o&&(n=Cr(e.min,e.max-o,t.min)),mn(0,1,n)}function Ik(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var rh=.35;function gk(e=rh){return e===!1?e=0:e===!0&&(e=rh),{x:mk(e,"left","right"),y:mk(e,"top","bottom")}}function mk(e,t,n){return{min:Ek(e,t),max:Ek(e,n)}}function Ek(e,t){return typeof e=="number"?e:e[t]||0}var Cj=new WeakMap,ih=class{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=Xe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let o=c=>{let{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Vi(c).point)},i=(c,f)=>{let{drag:d,dragPropagation:p,onDragStart:_}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=VG(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),or(h=>{let m=this.getAxisMotionValue(h).get()||0;if(kn.test(m)){let{projection:E}=this.visualElement;if(E&&E.layout){let O=E.layout.layoutBox[h];O&&(m=wt(O)*(parseFloat(m)/100))}}this.originPoint[h]=m}),_&&ue.postRender(()=>_(c,f)),fp(this.visualElement,"transform");let{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},s=(c,f)=>{let{dragPropagation:d,dragDirectionLock:p,onDirectionLock:_,onDrag:T}=this.getProps();if(!d&&!this.openDragLock)return;let{offset:h}=f;if(p&&this.currentDirection===null){this.currentDirection=Pj(h),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",f.point,h),this.updateAxis("y",f.point,h),this.visualElement.render(),T&&T(c,f)},a=(c,f)=>this.stop(c,f),l=()=>or(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new qc(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u})}stop(t,n){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:o}=n;this.startAnimation(o);let{onDragEnd:i}=this.getProps();i&&ue.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){let{drag:o}=this.getProps();if(!r||!oh(t,o,this.currentDirection))return;let i=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=_k(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;let{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Gi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=Tk(o.layoutBox,n):this.constraints=!1,this.elastic=gk(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&or(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Ik(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gi(t))return!1;let r=t.current;br(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let i=sk(r,o.root,this.visualElement.getTransformPagePoint()),s=hk(o.layout.layoutBox,i);if(n){let a=n(WG(s));this.hasMutatedConstraints=!!a,a&&(s=th(a))}return s}startAnimation(t){let{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=or(c=>{if(!oh(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});let d=o?200:1e6,p=o?40:1e7,_={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(c,_)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){let r=this.getAxisMotionValue(t);return fp(this.visualElement,t),r.start(Xc(t,r,0,n,this.visualElement,!1))}stopAnimation(){or(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){or(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){let n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){or(n=>{let{drag:r}=this.getProps();if(!oh(n,r,this.currentDirection))return;let{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){let{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-Ie(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Gi(n)||!r||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};or(s=>{let a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){let l=a.get();o[s]=Ok({min:l,max:l},this.constraints[s])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),or(s=>{if(!oh(s,t,null))return;let a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(Ie(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;Cj.set(this.visualElement,this);let t=this.visualElement.current,n=Hi(t,"pointerdown",l=>{let{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{let{dragConstraints:l}=this.getProps();Gi(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ue.read(r);let s=Ui(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(or(c=>{let f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){let t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=rh,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}};function oh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Pj(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}var sh=class extends Qt{constructor(t){super(t),this.removeGroupControls=ct,this.removeListeners=ct,this.controls=new ih(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ct}unmount(){this.removeGroupControls(),this.removeListeners()}};var Sk=e=>(t,n)=>{e&&ue.postRender(()=>e(t,n))},ah=class extends Qt{constructor(){super(...arguments),this.removePointerDownListener=ct}onPointerDown(t){this.session=new qc(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Sk(t),onStart:Sk(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&ue.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Hi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var yk=x(Ee(),1),Ip=x(Y(),1);var Qc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Rk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ef={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Q.test(e))e=parseFloat(e);else return e;let n=Rk(e,t.target.x),r=Rk(e,t.target.y);return`${n}% ${r}%`}};var Ak={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,o=wn.parse(e);if(o.length>5)return r;let i=wn.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;let u=Ie(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};var FA=class extends Ip.Component{componentDidMount(){let{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;NF(Dj),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Qc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||ue.postRender(()=>{let a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ic.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function lh(e){let[t,n]=Q_(),r=(0,Ip.useContext)(Tc);return(0,yk.jsx)(FA,{...e,layoutGroup:r,switchLayoutGroup:(0,Ip.useContext)(cT),isPresent:t,safeToRemove:n})}var Dj={borderRadius:{...ef,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ef,borderTopRightRadius:ef,borderBottomLeftRadius:ef,borderBottomRightRadius:ef,boxShadow:Ak};function uh(e,t,n){let r=Be(e)?e:Bi(e);return r.start(Xc("",r,t,n)),r.animation}function ch(e){return e instanceof SVGElement&&e.tagName!=="svg"}var Nk=(e,t)=>e.depth-t.depth;var fh=class{constructor(){this.children=[],this.isDirty=!1}add(t){Fc(this.children,t),this.isDirty=!0}remove(t){$s(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Nk),this.isDirty=!1,this.children.forEach(t)}};function bk(e,t){let n=Nn.now(),r=({timestamp:o})=>{let i=o-n;i>=t&&(tr(r),e(i-t))};return ue.read(r,!0),()=>tr(r)}var Dk=["TopLeft","TopRight","BottomLeft","BottomRight"],vj=Dk.length,Lk=e=>typeof e=="string"?parseFloat(e):e,Ck=e=>typeof e=="number"||Q.test(e);function vk(e,t,n,r,o,i){o?(e.opacity=Ie(0,n.opacity!==void 0?n.opacity:1,xj(r)),e.opacityExit=Ie(t.opacity!==void 0?t.opacity:1,0,Mj(r))):i&&(e.opacity=Ie(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<vj;s++){let a=`border${Dk[s]}Radius`,l=Pk(t,a),u=Pk(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Ck(l)===Ck(u)?(e[a]=Math.max(Ie(Lk(l),Lk(u),r),0),(kn.test(u)||kn.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=Ie(t.rotate||0,n.rotate||0,r))}function Pk(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var xj=xk(0,.5,xT),Mj=xk(.5,.95,ct);function xk(e,t,n){return r=>r<e?0:r>t?1:n(Cr(e,t,r))}function Mk(e,t){e.min=t.min,e.max=t.max}function Pr(e,t){Mk(e.x,t.x),Mk(e.y,t.y)}function GA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Fk(e,t,n,r,o){return e-=t,e=Op(e,1/n,r),o!==void 0&&(e=Op(e,1/o,r)),e}function Fj(e,t=0,n=1,r=.5,o,i=e,s=e){if(kn.test(t)&&(t=parseFloat(t),t=Ie(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Ie(i.min,i.max,r);e===i&&(a-=t),e.min=Fk(e.min,t,n,a,o),e.max=Fk(e.max,t,n,a,o)}function Gk(e,t,[n,r,o],i,s){Fj(e,t[n],t[r],t[o],t.scale,i,s)}var Gj=["x","scaleX","originX"],kj=["y","scaleY","originY"];function kA(e,t,n,r){Gk(e.x,t,Gj,n?n.x:void 0,r?r.x:void 0),Gk(e.y,t,kj,n?n.y:void 0,r?r.y:void 0)}function kk(e){return e.translate===0&&e.scale===1}function wA(e){return kk(e.x)&&kk(e.y)}function wk(e,t){return e.min===t.min&&e.max===t.max}function Uk(e,t){return wk(e.x,t.x)&&wk(e.y,t.y)}function Bk(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function BA(e,t){return Bk(e.x,t.x)&&Bk(e.y,t.y)}function UA(e){return wt(e.x)/wt(e.y)}function VA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var dh=class{constructor(){this.members=[]}add(t){Fc(this.members,t),t.scheduleRender()}remove(t){if($s(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){let n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){let i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(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);let{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:n,resumingFrom:r}=t;n.onExitComplete&&n.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)}};function Vk(e,t,n){let r="",o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:p,skewY:_}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),p&&(r+=`skewX(${p}deg) `),_&&(r+=`skewY(${_}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}var Nl={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},HA=["","X","Y","Z"],wj={visibility:"hidden"},Hk=1e3,Bj=0;function WA(e,t,n,r){let{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Zk(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=AT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ue,!(o||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Zk(r)}function ph({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=Bj++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Lr.value&&(Nl.nodes=Nl.calculatedTargetDeltas=Nl.calculatedProjections=0),this.nodes.forEach(Hj),this.nodes.forEach(Xj),this.nodes.forEach(jj),this.nodes.forEach(Wj),Lr.addProjectionMetrics&&Lr.addProjectionMetrics(Nl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new fh)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Zs),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){let l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ch(s),this.instance=s;let{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let f,d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=bk(d,250),Qc.hasAnimatedSinceResize&&(Qc.hasAnimatedSinceResize=!1,this.nodes.forEach(Yk))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeLayoutChanged:p,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let T=this.options.transition||c.getDefaultTransition()||Qj,{onLayoutAnimationStart:h,onLayoutAnimationComplete:m}=c.getProps(),E=!this.targetLayout||!BA(this.targetLayout,_),O=!d&&p;if(this.options.layoutRoot||this.resumeFrom||O||d&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,O);let I={...Mc(T,"layout"),onPlay:h,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else d||Yk(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,tr(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($j),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Zk(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){let f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}let{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Wk);return}this.isUpdating||this.nodes.forEach(Kj),this.isUpdating=!1,this.nodes.forEach(zj),this.nodes.forEach(Uj),this.nodes.forEach(Vj),this.clearAllSnapshots();let a=Nn.now();St.delta=mn(0,1e3/60,a-St.timestamp),St.timestamp=a,St.isProcessing=!0,ip.update.process(St),ip.preRender.process(St),ip.render.process(St),St.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ic.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Yj),this.sharedNodes.forEach(Zj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ue.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ue.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!wt(this.snapshot.measuredBox.x)&&!wt(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Xe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){let l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!wA(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(a||Wi(this.latestValues)||c)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let a=this.measurePageBox(),l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),e8(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;let{visualElement:a}=this.options;if(!a)return Xe();let l=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(t8))){let{scroll:c}=this.root;c&&(ra(l.x,c.offset.x),ra(l.y,c.offset.y))}return l}removeElementScroll(s){var a;let l=Xe();if(Pr(l,s),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){let c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&Pr(l,s),ra(l.x,f.offset.x),ra(l.y,f.offset.y))}return l}applyTransform(s,a=!1){let l=Xe();Pr(l,s);for(let u=0;u<this.path.length;u++){let c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Al(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Wi(c.latestValues)&&Al(l,c.latestValues)}return Wi(this.latestValues)&&Al(l,this.latestValues),l}removeTransform(s){let a=Xe();Pr(a,s);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!u.instance||!Wi(u.latestValues))continue;nh(u.latestValues)&&u.updateSnapshot();let c=Xe(),f=u.measurePageBox();Pr(c,f),kA(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Wi(this.latestValues)&&kA(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==St.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let u=Boolean(this.resumingFrom)||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=St.timestamp,!this.targetDelta&&!this.relativeTarget){let p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xe(),this.relativeTargetOrigin=Xe(),Jc(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Pr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Xe(),this.targetWithTransforms=Xe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),JG(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Pr(this.target,this.layout.layoutBox),DA(this.target,this.targetDelta)):Pr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let p=this.getClosestProjectingParent();p&&Boolean(p.resumingFrom)===Boolean(this.resumingFrom)&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xe(),this.relativeTargetOrigin=Xe(),Jc(this.relativeTargetOrigin,this.target,p.target),Pr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Lr.value&&Nl.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||nh(this.parent.latestValues)||CA(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;let a=this.getLead(),l=Boolean(this.resumingFrom)||this!==a,u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===St.timestamp&&(u=!1),u)return;let{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;Pr(this.layoutCorrected,this.layout.layoutBox);let d=this.treeScale.x,p=this.treeScale.y;ik(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Xe());let{target:_}=a;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(GA(this.prevProjectionDelta.x,this.projectionDelta.x),GA(this.prevProjectionDelta.y,this.projectionDelta.y)),Zc(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==p||!VA(this.projectionDelta.x,this.prevProjectionDelta.x)||!VA(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_)),Lr.value&&Nl.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){let l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Rl(),this.projectionDelta=Rl(),this.projectionDeltaWithTransform=Rl()}setAnimationOrigin(s,a=!1){let l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=Rl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;let d=Xe(),p=l?l.source:void 0,_=this.layout?this.layout.source:void 0,T=p!==_,h=this.getStack(),m=!h||h.members.length<=1,E=Boolean(T&&!m&&this.options.crossfade===!0&&!this.path.some(qj));this.animationProgress=0;let O;this.mixTargetDelta=I=>{let g=I/1e3;Kk(f.x,s.x,g),Kk(f.y,s.y,g),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jc(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Jj(this.relativeTarget,this.relativeTargetOrigin,d,g),O&&Uk(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=Xe()),Pr(O,this.relativeTarget)),T&&(this.animationValues=c,vk(c,u,this.latestValues,g,E,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=g},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(tr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ue.update(()=>{Qc.hasAnimatedSinceResize=!0,qo.layout++,this.currentAnimation=uh(0,Hk,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{qo.layout--},onComplete:()=>{qo.layout--,s.onComplete&&s.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);let s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Hk),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Jk(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Xe();let f=wt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;let d=wt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}Pr(a,l),Al(a,c),Zc(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new dh),this.sharedNodes.get(s).add(a);let u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let a=!1,{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;let u={};l.z&&WA("z",s,u,this.animationValues);for(let c=0;c<HA.length;c++)WA(`rotate${HA[c]}`,s,u,this.animationValues),WA(`skew${HA[c]}`,s,u,this.animationValues);s.render();for(let c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return wj;let u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=vc(s?.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;let f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){let T={};return this.options.layoutId&&(T.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,T.pointerEvents=vc(s?.pointerEvents)||""),this.hasProjected&&!Wi(this.latestValues)&&(T.transform=c?c({},""):"none",this.hasProjected=!1),T}let d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=Vk(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));let{x:p,y:_}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${_.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(let T in Tl){if(d[T]===void 0)continue;let{correct:h,applyTo:m,isCSSVariable:E}=Tl[T],O=u.transform==="none"?d[T]:h(d[T],f);if(m){let I=m.length;for(let g=0;g<I;g++)u[m[g]]=O}else E?this.options.visualElement.renderState.vars[T]=O:u[T]=O}return this.options.layoutId&&(u.pointerEvents=f===this?vc(s?.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Wk),this.root.sharedNodes.clear()}}}function Uj(e){e.updateLayout()}function Vj(e){var t;let n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?or(f=>{let d=s?n.measuredBox[f]:n.layoutBox[f],p=wt(d);d.min=r[f].min,d.max=d.min+p}):Jk(i,n.layoutBox,r)&&or(f=>{let d=s?n.measuredBox[f]:n.layoutBox[f],p=wt(r[f]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});let a=Rl();Zc(a,r,n.layoutBox);let l=Rl();s?Zc(l,e.applyTransform(o,!0),n.measuredBox):Zc(l,r,n.layoutBox);let u=!wA(a),c=!1;if(!e.resumeFrom){let f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){let{snapshot:d,layout:p}=f;if(d&&p){let _=Xe();Jc(_,n.layoutBox,d.layoutBox);let T=Xe();Jc(T,r,p.layoutBox),BA(_,T)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=T,e.relativeTargetOrigin=_,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Hj(e){Lr.value&&Nl.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Wj(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Yj(e){e.clearSnapshot()}function Wk(e){e.clearMeasurements()}function Kj(e){e.isLayoutDirty=!1}function zj(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yk(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Xj(e){e.resolveTargetDelta()}function jj(e){e.calcProjection()}
10694function $j(e){e.resetSkewAndRotation()}function Zj(e){e.removeLeadSnapshot()}function Kk(e,t,n){e.translate=Ie(t.translate,0,n),e.scale=Ie(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zk(e,t,n,r){e.min=Ie(t.min,n.min,r),e.max=Ie(t.max,n.max,r)}function Jj(e,t,n,r){zk(e.x,t.x,n.x,r),zk(e.y,t.y,n.y,r)}function qj(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Qj={duration:.45,ease:[.4,0,.1,1]},Xk=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),jk=Xk("applewebkit/")&&!Xk("chrome/")?Math.round:ct;function $k(e){e.min=jk(e.min),e.max=jk(e.max)}function e8(e){$k(e.x),$k(e.y)}function Jk(e,t,n){return e==="position"||e==="preserve-aspect"&&!ZG(UA(t),UA(n),.2)}function t8(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}var qk=ph({attachResizeListener:(e,t)=>Ui(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var YA={current:void 0},mh=ph({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!YA.current){let e=new qk({});e.mount(window),e.setOptions({layoutScroll:!0}),YA.current=e}return YA.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")});var Qk={pan:{Feature:ah},drag:{Feature:sh,ProjectionNode:mh,MeasureLayout:lh}};function Eh(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);let i=(r=n?.[e])!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function _h(e,t){let n=Eh(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function ew(e){return!(e.pointerType==="touch"||eh())}function tw(e,t,n={}){let[r,o,i]=_h(e,n),s=a=>{if(!ew(a))return;let{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;let c=f=>{ew(f)&&(u(f),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}function nw(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");let o="onHover"+n,i=r[o];i&&ue.postRender(()=>i(t,Vi(t)))}var Th=class extends Qt{mount(){let{current:t}=this.node;t&&(this.unmount=tw(t,(n,r)=>(nw(this.node,r,"Start"),o=>nw(this.node,o,"End"))))}unmount(){}};var hh=class extends Qt{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=Qo(Ui(this.node.current,"focus",()=>this.onFocus()),Ui(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};var KA=(e,t)=>t?e===t?!0:KA(e,t.parentElement):!1;var n8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function rw(e){return n8.has(e.tagName)||e.tabIndex!==-1}var bl=new WeakSet;function ow(e){return t=>{t.key==="Enter"&&e(t)}}function zA(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var iw=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=ow(()=>{if(bl.has(n))return;zA(n,"down");let o=ow(()=>{zA(n,"up")}),i=()=>zA(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function sw(e){return $c(e)&&!eh()}function aw(e,t,n={}){let[r,o,i]=_h(e,n),s=a=>{let l=a.currentTarget;if(!l||!sw(a)||bl.has(l))return;bl.add(l),yl(a,"set");let u=t(l,a),c=(p,_)=>{l.removeEventListener("pointerup",f),l.removeEventListener("pointercancel",d),yl(p,"release"),!(!sw(p)||!bl.has(l))&&(bl.delete(l),typeof u=="function"&&u(p,{success:_}))},f=p=>{(p.isTrusted?r8(p,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?c(p,!1):c(p,!(l instanceof Element)||KA(l,p.target))},d=p=>{c(p,!1)};l.addEventListener("pointerup",f,o),l.addEventListener("pointercancel",d,o),l.addEventListener("lostpointercapture",d,o)};return r.forEach(a=>{a=n.useGlobalTarget?window:a;let l=!1;a instanceof HTMLElement&&(l=!0,!rw(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",s,o),l&&a.addEventListener("focus",u=>iw(u,o),o)}),i}function r8(e,t){return e.clientX<t.left||e.clientX>
10694t.right||e.clientY<t.top||e.clientY>t.bottom}function lw(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");let o="onTap"+(n==="End"?"":n),i=r[o];i&&ue.postRender(()=>i(t,Vi(t)))}var Oh=class extends Qt{mount(){let{current:t}=this.node;t&&(this.unmount=aw(t,(n,r)=>(lw(this.node,r,"Start"),(o,{success:i})=>lw(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};var jA=new WeakMap,XA=new WeakMap,o8=e=>{let t=jA.get(e.target);t&&t(e)},i8=e=>{e.forEach(o8)};function s8({root:e,...t}){let n=e||document;XA.has(n)||XA.set(n,{});let r=XA.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(i8,{root:e,...t})),r[o]}function uw(e,t,n){let r=s8(t);return jA.set(e,n),r.observe(e),()=>{jA.delete(e),r.unobserve(e)}}var a8={some:0,all:1},Ih=class extends Qt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:a8[o]},a=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return uw(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:n}=this.node;["amount","margin","root"].some(l8(t,n))&&this.startObserver()}unmount(){}};function l8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var cw={inView:{Feature:Ih},tap:{Feature:Oh},focus:{Feature:hh},hover:{Feature:Th}};var fw={layout:{ProjectionNode:mh,MeasureLayout:lh}};var _w=x(Y(),1);var gp={current:null},gh={current:!1};function dw(){if(gh.current=!0,!!hc)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>gp.current=e.matches;e.addListener(t),t()}else gp.current=!1}var u8=[..._A,Ct,wn],pw=e=>u8.find(BT(e));var oa=new WeakMap;
vendor: 4,951 bytes, line 10694
10694function mw(e,t,n){for(let r in t){let o=t[r],i=n[r];if(Be(o))e.addValue(r,o);else if(Be(i))e.addValue(r,Bi(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){let s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{let s=e.getStaticValue(r);e.addValue(r,Bi(s!==void 0?s:o,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Ew=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tf=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ta,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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=()=>{let p=Nn.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,ue.render(this.render,!1,!0))};let{latestValues:l,renderState:u,onUpdate:c}=s;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=_l(n),this.isVariantNode=aT(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(let p in d){let _=d[p];l[p]!==void 0&&Be(_)&&_.set(l[p],!1)}}mount(t){this.current=t,oa.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((n,r)=>this.bindToMotionValue(r,n)),gh.current||dw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:gp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),tr(this.notifyUpdate),tr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=rr.has(t);r&&this.onBindTransform&&this.onBindTransform();let o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ue.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender),s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),n.owner&&n.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 Mi){let n=Mi[t];if(!n)continue;let{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){let i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Xe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ew.length;r++){let o=Ew[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);let i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=mw(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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}
10694addVariantChild(t){let n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){let r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);let n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Bi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(wT(o)||FT(o))?o=parseFloat(o):!pw(o)&&wn.test(n)&&(o=kT(t,n)),this.setBaseTarget(t,Be(o)?o.get():o)),Be(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;let{initial:r}=this.props,o;if(typeof r=="string"||typeof r=="object"){let s=Dc(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Be(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Zs),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}};var nf=class extends tf{constructor(){super(...arguments),this.KeyframeResolver=Hc}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Be(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function c8(e){return window.getComputedStyle(e)}var rf=class extends nf{constructor(){super(...arguments),this.type="html",this.renderInstance=TT}readValueFromInstance(t,n){if(rr.has(n)){let r=Vc(n);return r&&r.default||0}else{let r=c8(t),o=(Sc(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return vA(t,n)}build(t,n,r){yc(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return xc(t,n,r)}};var of=class extends nf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Xe,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&_T(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(rr.has(n)){let r=Vc(n);return r&&r.default||0}return n=hT.has(n)?n:Oc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return IT(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&ue.postRender(this.updateDimensions)}build(t,n,r){Lc(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){OT(t,n,r,o)}mount(t){this.isSVGTag=Cc(t.tagName),super.mount(t)}};var Tw=(e,t)=>bc(e)?new of(t):new rf(t,{allowProjection:e!==_w.Fragment});var hw=XF({...UG,...cw,...Qk,...fw},Tw);var ir=pF(hw);var f8=e=>e&&typeof e=="object"&&e.mix,d8=e=>f8(e)?e.mix:void 0;function ia(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],i=e[2+n],s=e[3+n],a=XT(o,i,{mixer:d8(i[0]),...s});return t?a(r):a}function Ow(e,t=100,n){let r=n({...e,keyframes:[0,t]}),o=Math.min(Yc(r),2e4);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:bn(o)}}var Iw=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e};function Sh(e,t){return zT(e)?e[Iw(0,e.length,t)]:e}function Sp(e){return typeof e=="object"&&!Array.isArray(e)}function Rh(e,t,n,r){return typeof e=="string"&&Sp(t)?Eh(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function gw(e,t,n){return e*(t+1)}function $A(e,t,n,r){var o;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(o=r.get(t))!==null&&o!==void 0?o:e}function p8(e,t,n){for(let r=0;r<e.length;r++){let o=e[r];o.at>t&&o.at<n&&($s(e,o),r--)}}function Sw(e,t,n,r,o,i){p8(e,o,i);for(let s=0;s<t.length;s++)e.push({value:t[s],at:Ie(o,i,r[s]),easing:Sh(n,s)})}function Rw(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Aw(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var m8="easeInOut",E8=20;function bw(e,{defaultTransition:t={},...n}={},r,o){let i=t.duration||.3,s=new Map,a=new Map,l={},u=new Map,c=0,f=0,d=0;for(let p=0;p<e.length;p++){let _=e[p];if(typeof _=="string"){u.set(_,f);continue}else if(!Array.isArray(_)){u.set(_.name,$A(f,_.at,c,u));continue}let[T,h,m={}]=_;m.at!==void 0&&(f=$A(f,m.at,c,u));let E=0,O=(I,g,S,A=0,R=0)=>{let N=_8(I),{delay:L=0,times:b=$T(N),type:M="keyframes",repeat:w,repeatType:B,repeatDelay:y=0,...K}=g,{ease:C=t.ease||"easeOut",duration:G}=g,P=typeof L=="function"?L(A,R):L,X=N.length,oe=Js(M)?M:o?.[M];if(X<=2&&oe){let Ce=100;if(X===2&&O8(N)){let le=N[1]-N[0];Ce=Math.abs(le)}let Ue={...K};G!==void 0&&(Ue.duration=qt(G));let ae=Ow(Ue,Ce,oe);C=ae.ease,G=ae.duration}G??(G=i);let ve=f+P;b.length===1&&b[0]===0&&(b[1]=1);let be=b.length-N.length;if(be>0&&jT(b,be),N.length===1&&N.unshift(null),w){br(w<E8,"Repeat count too high, must be less than 20"),G=gw(G,w);let Ce=[...N],Ue=[...b];C=Array.isArray(C)?[...C]:[C];let ae=[...C];for(let le=0;le<w;le++){N.push(...Ce);for(let Re=0;Re<Ce.length;Re++)b.push(Ue[Re]+(le+1)),C.push(Re===0?"linear":Sh(ae,Re-1))}Rw(b,w)}let Le=ve+G;Sw(S,N,C,b,ve,Le),E=Math.max(P+G,E),d=Math.max(Le,d)};if(Be(T)){let I=yw(T,a);O(h,m,Nw("default",I))}else{let I=Rh(T,h,r,l),g=I.length;for(let S=0;S<g;S++){h=h,m=m;let A=I[S],R=yw(A,a);for(let N in h)O(h[N],T8(m,N),Nw(N,R),S,g)}}c=f,f+=E}return a.forEach((p,_)=>{for(let T in p){let h=p[T];h.sort(Aw);let m=[],E=[],O=[];for(let g=0;g<h.length;g++){let{at:S,value:A,easing:R}=h[g];m.push(A),E.push(Cr(0,d,S)),O.push(R||"easeOut")}E[0]!==0&&(E.unshift(0),m.unshift(m[0]),O.unshift(m8)),E[E.length-1]!==1&&(E.push(1),m.push(null)),s.has(_)||s.set(_,{keyframes:{},transition:{}});let I=s.get(_);I.keyframes[T]=m,I.transition[T]={...t,duration:d,ease:O,times:E,...n}}}),s}function yw(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Nw(e,t){return t[e]||(t[e]=[]),t[e]}function _8(e){return Array.isArray(e)?e:[e]}function T8(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var h8=e=>typeof e=="number",O8=e=>e.every(h8);function I8(e,t){return e in t}var Ah=class extends tf{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(I8(n,t)){let r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return Xe()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}};function Lw(e){let t={presenceContext:null,props:{}
10694,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=ch(e)?new of(t):new rf(t);n.mount(e),oa.set(e,n)}function Cw(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Ah(t);n.mount(e),oa.set(e,n)}function g8(e,t){return Be(e)||typeof e=="number"||typeof e=="string"&&!Sp(t)}function yh(e,t,n,r){let o=[];if(g8(e,t))o.push(uh(e,Sp(t)&&t.default||t,n&&(n.default||n)));else{let i=Rh(e,t,r),s=i.length;br(Boolean(s),"No valid elements provided.");for(let a=0;a<s;a++){let l=i[a],u=l instanceof Element?Lw:Cw;oa.has(l)||u(l);let c=oa.get(l),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(a,s)),o.push(...jc(c,{...t,transition:f},{}))}}return o}function Pw(e,t,n){let r=[];return bw(e,t,n,{spring:zc}).forEach(({keyframes:i,transition:s},a)=>{r.push(...yh(a,i,s))}),r}function S8(e){return Array.isArray(e)&&e.some(Array.isArray)}function Dw(e){function t(n,r,o){let i=[];S8(n)?i=Pw(n,r,e):i=yh(n,r,o,e);let s=new kc(i);return e&&e.animations.push(s),s}return t}var sr=Dw();function R8(e){return!("fills"in e)||!e.fills?[]:e.fills.filter(t=>t.type==="CUSTOM"&&t.visible!==!1&&t.opacity!==0&&!!t.customEffectId)}function A8(e,t){if(!t.hash)return;let n=Io(t.assets,t.hash);if(n.type==="GENERATED_ASSET")return e.getAssetURL(n.url)}function vw(e,t){let n=R8(e);if(!t.renderOptions.shouldOutputCustomEffects||n.length===0)return[];let r=A8(t,e);return n.map(o=>Nh({fill:o,mask:r}))}function Nh({fill:e,styles:t,mask:n}){return ne({Tag:"ShaderFill",styleSet:[{position:"absolute",opacity:e.opacity<1?e.opacity:void 0,...t}],customFill:{id:e.customEffectId,params:e.componentPropAssignments??{defs:{},assignments:[]},mask:n}})}function bh(e,t,n,r,o){return{...e,initial:{...e.initial??{},[t]:n},animate:{...e.animate??{},[t]:r},transition:{...e.transition??{},[t]:o}}}function Lh(e,t){return e.renderOptions.disableClientOnlyComponents?t.fallback:e.sitesRenderers.renderClientOnly({children:t.children,fallback:Se(t.fallback,e)})}function Fw({node:e,parent:t,children:n,backgroundInfo:r,sharedBackgroundStyles:o,smartAnimateType:i,transitionData:s,context:a,fillColorKeyframeProps:l,websiteContext:u}){let c=ln(s),d=i===te.INSTANCE_SUBTREE&&r.length===0,p={position:"absolute",inset:0,pointerEvents:"none"};if(r.length===1||d){let h=d?o:{...r[0].backgroundStyles,...o},{motionTransitionProps:m,cssStyles:E}=Zu(i,d?0:1,h,void 0,s,d?void 0:c),O=bi(i,s,h.transform),I=!d&&l?.colorAnimate?.background!==void 0,g=i!==te.NONE||I,S={...m,...O},A=I?bh(S,"background",l.colorInitial.background,l.colorAnimate.background,l.colorTransition.background):S;return r[0]?.imageProps?xw({imageProps:r[0].imageProps,styles:{...r[0].backgroundStyles,...p,...E},node:e,parent:t,children:n,needsMotion:g,motionProps:A,context:a,websiteContext:u}):r[0]?.videoProps?b8({node:e,videoProps:r[0].videoProps,styles:{...r[0].backgroundStyles,...E},websiteContext:u}):r[0]?.customFill?Nh({fill:r[0].customFill,styles:E}):ne({Tag:g?ir.div:"div",nodeId:e.id,idSuffix:"background",styleSet:{...p,...E},attributes:{"aria-hidden":!0,...g?A:{}}})}else if(r.length===0)return null;let{backdropFilter:_,...T}=o;return ne({Tag:"div",nodeId:e.id,idSuffix:"background",attributes:{"aria-hidden":!0},styleSet:[p,T],children:r.map(({backgroundStyles:h,imageProps:m,customFill:E},O)=>{let I=O===r.length-1,g={...T,backdropFilter:I?_:void 0,...h};return E?Nh({fill:E,styles:g}):m?hr({key:O,children:xw({imageProps:m,styles:g,node:e,parent:t,children:n,needsMotion:!1,motionProps:{},context:a,websiteContext:u})}):hr({key:O,children:ne({Tag:"div",styleSet:[p,g]})})})})}function xw({styles:e,node:t,parent:n,children:r,needsMotion:o,motionProps:i,imageProps:s,context:a,websiteContext:l}){let{getAssetURL:u,renderOptions:c}=l,{disableImageOptimization:f}=c,{url:d,cropDivInfo:p,size:_}=s,{srcset:T,sizes:h}=f?{srcset:void 0,sizes:void 0}:ZA(u,t,n,r,d,_,p?{x:p.widthPercent,y:p.heightPercent}:void 0,c,a),m=p?{position:"absolute",width:Jn(p.widthPercent),height:Jn(p.heightPercent),top:Jn(p.topPercent),left:Jn(p.leftPercent),maxWidth:"none"}:{maxWidth:"none",position:"absolute",width:"100%",height:"100%",...e},E=ne({Tag:o?ir.img:"img",nodeId:t.id,idSuffix:"background",styleSet:m,attributes:{loading:t.lazyLoad?"lazy":void 0,alt:t.accessibleLabel||"",src:u(d),srcSet:T,sizes:t.lazyLoad?`auto,${h}`:h,...o?i:{}}});return p?ne({Tag:"div",nodeId:t.id,idSuffix:"image-cropper",styleSet:{overflow:"hidden",position:"absolute",inset:0,...e},children:E}):E}var Mw=[64,128,256,512,1024,1536,2048,2560,3072,3584,4096],y8=3,N8=512;function ZA(e,t,n,r,o,i,s,a,l){let u=Gt(t,n,r,a,l)===re.FIXED&&dn(t,n,r,a,l)===re.FIXED&&!Nr(t,n),c=s??{x:1,y:1},f=`${Math.ceil(c.x*100)}vw`,d=N8,p=Math.max(i.x,i.y);if(u){let T={x:t.size.x*c.x,y:t.size.y*c.y};f=`${T.x}px`,d=i.x>=i.y?T.x:T.y,p=Math.min(p,d*y8)}let _=`${e(o)} ${Math.ceil(i.x)}w`;if(i.x>=i.y)for(let T of Mw){if(T<d)continue;if(T>p)break;let h=Math.ceil(T*c.x);_+=`, ${e(o,{width:h})} ${h}w`}else for(let T of Mw){if(T<d)continue;if(T>p)break;let h=i.x/i.y,m=Math.ceil(T*c.y);_+=`, ${e(o,{height:m})}
10694 ${Math.ceil(m*h)}w`}return{srcset:_,sizes:f}}function b8({node:e,videoProps:t,styles:n,websiteContext:r}){let{getVideoURL:o,env:i}=r,{cropDivInfo:s}=t;if(!["FRAME","RECTANGLE"].includes(e.type))return console.error("backgroundNonTileVideo: node is not a frame or rectangle",e),null;let a=t.autoplay||t.muted,l=e.accessibleLabel||"",u={autoPlay:t.autoplay,loop:t.mediaLoop,controls:t.showControls,muted:a,playsInline:t.autoplay};i==="published"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&(u.autoPlay=!1),t.isDecorative&&(u.role="presentation",u["aria-hidden"]=!0);let c=s?{position:"absolute",width:Jn(s.widthPercent),height:Jn(s.heightPercent),top:Jn(s.topPercent),left:Jn(s.leftPercent),maxWidth:"none"}:{maxWidth:"none",position:"absolute",width:"100%",height:"100%",...n},f=Lh(r,{fallback:null,children:()=>r.renderElement({Tag:"video",attributes:{...u,controlsList:"nodownload","aria-label":l},styleSet:c,children:r.renderElement({Tag:"source",attributes:{src:o(t.url,t.hash)}})})});return s?ne({Tag:"div",nodeId:e.id,idSuffix:"video-cropper",styleSet:{overflow:"hidden",position:"absolute",inset:0,...n},children:f}):f}var L8={ALL:["x","y","opacity","rotate","scaleX","scaleY"],OPACITY:["opacity"],TRANSLATION:["x","y"],ROTATION:["rotate"],SCALE:["scaleX","scaleY"]};function C8(e){return"type"in e||e.ease==="linear"?"linear":[...e.ease]}function P8(e,t){let{duration:n}=e,r=Jd(e.easing),o=qd(r);if("type"in o)return{...o,duration:n};let i=C8(o);return"times"in t?{...t,duration:n,ease:t.ease.map(()=>i)}:{duration:n,times:[0,1],ease:[i]}}function Ch(e,t){if(!t)return e;let n={...e},r=["ALL","OPACITY","TRANSLATION","ROTATION","SCALE"];for(let o of r){let i=t[o];if(!i||i.length===0)continue;let s=i.find(a=>a.interactionIDs.length===0);if(s)for(let a of L8[o]){let l=n[a];l&&(n[a]=P8(s,l))}}return n}var D8="__figmaMotionSpringEasing";function Gw(e){return{children:e,dataMotionProps:void 0,elementMotionProps:void 0}}function v8(e){if(e)return e instanceof ee?e.value:e}function x8({keyframeMotionPropsOverride:e,node:t,normalizeParameterUnits:n=!1}){let r=e!==void 0?e:t.keyframeData?Di(t.keyframeData,{normalizeParameterUnits:n}):null;return r&&t.transitionOverrides&&(r={...r,transition:Ch(r.transition,t.transitionOverrides)}),r}function sa(e,t){return e===null||typeof e!="object"||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).filter(([n])=>t(n)))}function M8(e){return e==null?!1:Array.isArray(e)?e.length>0:typeof e=="object"?Object.keys(e).length>0:!0}function JA(e,t){return new Set([...Object.keys(e),...Object.keys(t)])}function kw(e){return JA(sa(e.initial,()=>!0),sa(e.animate,()=>!0))}function ww(e,t){return!t.has(e)}function Bw(e){if(!e)return e;let t=sa(e.initial,s=>ll.has(s)),n=sa(e.animate,s=>ll.has(s)),r=JA(t,n),o=kw(e),i=sa(e.transition,s=>r.has(s)||ww(s,o));return r.size===0?null:{initial:t,animate:n,transition:i}}function F8(e){if(!e)return e;let t=sa(e.initial,d=>!ll.has(d)),n=sa(e.animate,d=>!ll.has(d)),{initial:r,animate:o,transition:i,...s}=e,a=Object.values(s).some(M8),l=JA(t,n),u=kw(e),c=l.size>0||a,f=sa(e.transition,d=>l.has(d)||c&&ww(d,u));return l.size===0&&!a?null:{...e,initial:t,animate:n,transition:f}}function G8(e){let t=Bw(e);return!!t&&(Object.keys(t.initial??{}).length>0||Object.keys(t.animate??{}).length>0)}function k8(e){if(!e)return e;let t=CR,n={};for(let[o,i]of Object.entries(e.initial))n[o]=typeof i=="number"&&t.has(o)?`${i}px`:i;let r={};for(let[o,i]of Object.entries(e.animate))Array.isArray(i)&&t.has(o)?r[o]=i.map(s=>typeof s=="number"?`${s}px`:s):r[o]=i;return{...e,initial:n,animate:r}}function qA(e){let t=k8(e);return JSON.stringify(t,(n,r)=>w8(r)?{[D8]:{zeta:r.__springParams.zeta,w0:r.__springParams.w0,duration:r.__springParams.duration}}:r)}function w8(e){return typeof e=="function"&&"__springParams"in e}function B8({keyframeMotionProps:e,relativeTransform:t,renderOptions:n,smartAnimateType:r}){return t!==void 0&&n.metronomeEnabled&&r===te.NONE&&dl(t,n)&&G8(e)}function U8({keyframeMotionPropsOverride:e,node:t,relativeTransform:n,renderOptions:r,smartAnimateType:o}){let i=x8({keyframeMotionPropsOverride:e,node:t,normalizeParameterUnits:r.emitMotionDataForCodegen});return B8({keyframeMotionProps:i,relativeTransform:n,renderOptions:r,smartAnimateType:o})?{childKeyframeMotionPropsOverride:F8(i),wrapperKeyframeMotionPropsOverride:i}:{childKeyframeMotionPropsOverride:e,wrapperKeyframeMotionPropsOverride:void 0}}function Ll({keyframeMotionPropsOverride:e,node:t,context:n,renderOptions:r,smartAnimateType:o,wrappersToRender:i}){return i.needsTransformWrapper?U8({keyframeMotionPropsOverride:e,node:t,relativeTransform:Ft(Yt(n?.group?.relativeTransform,t.relativeTransform)),renderOptions:r,smartAnimateType:o}):{childKeyframeMotionPropsOverride:e,wrapperKeyframeMotionPropsOverride:void 0}}function Uw({keyframeMotionPropsOverride:e}){let n=Bw(e??null);return{shouldWrapKeyframeMotion:n!=null,transformKeyframeMotionProps:n}}function V8({children:e,keyframeMotionPropsOverride:t,websiteContext:n}){let{shouldWrapKeyframeMotion:r,transformKeyframeMotionProps:o}=Uw({keyframeMotionPropsOverride:t}
10694),i=o?ho(n):null,s=r&&o?i?ul(o,i.ease()):o:void 0;return{childrenWithKeyframeMotionDisabled:e,keyframeDataMotionProps:void 0,keyframeMotionElementProps:s}}function H8({children:e,cssTransformString:t,keyframeMotionPropsOverride:n,nodeId:r}){let{shouldWrapKeyframeMotion:o,transformKeyframeMotionProps:i}=Uw({keyframeMotionPropsOverride:n});return{childrenWithKeyframeMotionDisabled:e,keyframeDataMotionProps:o&&i&&i?{"data-motion-props":qA(i),...t?{"data-motion-transform-template":t}:{},"data-motion-wrapper-for":r}:void 0,keyframeMotionElementProps:void 0}}function Ph({children:e,keyframeMotionPropsOverride:t,nodeId:n,outerTransform:r,renderOptions:o,renderMotionProps:i,websiteContext:s}){if(t===void 0)return Gw(e);if(o.emitMotionDataForCodegen){let{childrenWithKeyframeMotionDisabled:u,keyframeDataMotionProps:c}=H8({children:e,cssTransformString:v8(r),keyframeMotionPropsOverride:t,nodeId:n});return{children:u,dataMotionProps:c,elementMotionProps:void 0}}if(!i||!s)return Gw(e);let{childrenWithKeyframeMotionDisabled:a,keyframeMotionElementProps:l}=V8({children:Se(e,s),keyframeMotionPropsOverride:t,websiteContext:s});return{children:Ot(a),dataMotionProps:void 0,elementMotionProps:l!=null&&r?{...l,transformTemplate:Ju(r)}:l}}function W8(e,t){let n={...e,...t};if(e.transform!=null&&t.transform!=null){let r=e.transform instanceof ee?e.transform.value:e.transform,o=t.transform instanceof ee?t.transform.value:t.transform;n.transform=`${r} ${o}`}return n}function Ao(e){let{key:t,ref:n,children:r,semanticTagInfo:o,context:i,styles:s,additionalClassName:a,transitionProps:l,keyframeMotionPropsOverride:u,node:c,wrappers:{outerStyles:f,needsListItemTag:d},websiteContext:p,attributes:_,...T}=e,{tabIndex:h,...m}=_??{},{emitMotionDataForCodegen:E}=p.renderOptions,{semanticTag:O,interactiveSemanticTag:I}=o,{finalInnerSemanticTag:g,needsInteractiveWrapper:S,needsListWrapper:A}=J_(O,I,d),R=A||S?s:W8(f,s),N=u!==void 0?u:c.keyframeData?Di(c.keyframeData,{normalizeParameterUnits:E}):null;if(N&&c.transitionOverrides){let Re=Ch(N.transition,c.transitionOverrides);N={...N,transition:Re}}let L=R;if(E&&N&&R.transform){let Re=R.transform instanceof ee?R.transform.value:R.transform,Ye=c.transform3d?.type==="FIXED_ORDER",de=z8(N,Re,Ye);de.motionProps!==N&&(N=de.motionProps,L={...R,transform:de.remainingTransform})}
10694let b=c.type==="FRAME"&&c.isBreakpointFrame===!0,w=f.position==="fixed"||L.position==="fixed"||b?void 0:bi(l.smartAnimateType,l.transitionData,L.transform),{motionTransitionProps:B,cssStyles:y}=Zu(l.smartAnimateType,l.opacity,L,l.behaviorProps?.variants,l.transitionData,l.onTransitionEnd),K=L.transform&&l.behaviorProps?.variants?{transformTemplate:Ju(L.transform)}:void 0,C=E&&N?{"data-motion-props":qA(N)}:{},G=E&&!N&&c.transitionOverrides?{"data-transition-overrides":JSON.stringify(c.transitionOverrides)}:{};if(N){let Re=ho(p);if(Re){let Ye=Re.ease();N=ul(N,Ye)}}tx([l.behaviorProps,K,B,w,E?void 0:N??void 0],p);let{style:P,...X}={...l.behaviorProps,...w,...B,...K,...!E&&N?PR(N):{}},oe=i?.renderedByCode,ve={styles:f,renderedByCode:oe},be=[a,{styles:y,renderedByCode:oe},i?.className],Le={width:"100%",height:"100%",display:"block"},Ce=I==="a"?{display:"block"}:{},ae=l.smartAnimateType!==te.NONE||Object.keys(l.behaviorProps).length>0||!E&&!!N?ir[g]:g;if(A)if(S){let Re=I,{href:Ye,role:de,target:Pt,rel:tt,onMouseDown:ft,onClick:xe,onKeyDown:dt,...me}=m??{};return ne({Tag:"li",key:t,styleSet:ve,children:ne({Tag:Re,styleSet:Le,attributes:{href:Ye,target:Pt,role:de,rel:tt,tabIndex:h,onMouseDown:ft,onClick:xe,onKeyDown:dt},children:ne({Tag:ae,...T,attributes:{tabIndex:Vs(g)?-1:void 0,...X,...me,...C,...G},ref:n,styleSet:[Le,...be],style:P,children:r})})})}else return ne({Tag:"li",key:t,styleSet:ve,children:ne({Tag:ae,ref:n,attributes:{tabIndex:Vs(g)?-1:h,...X,...m,...C,...G},styleSet:[Le,...be],style:P,children:r})});if(S){let{href:Re,role:Ye,target:de,rel:Pt,onMouseDown:tt,onClick:ft,onKeyDown:xe,...dt}=m??{};return ne({Tag:I,key:t,styleSet:[ve,Ce],attributes:{href:Re,target:de,role:Ye,rel:Pt,tabIndex:h,onMouseDown:tt,onClick:ft,onKeyDown:xe},children:ne({Tag:ae,...T,ref:n,attributes:{tabIndex:Vs(g)?-1:void 0,...X,...dt,...C,...G},styleSet:[Le,...be],style:P,children:r})})}if(Object.keys(c.componentPropertyReferences??{}).length===0&&XE(y)&&!a&&!i?.className&&Object.keys(P??{}).length===0)return r;let le={...X,...m,...C,...G};return ne({Tag:ae,key:t,...T,ref:n,styleSet:be,style:P,attributes:{tabIndex:Vs(g)?-1:h,...le},children:r})}var Y8={translateX:"x",translateY:"y",translateZ:"z",rotate:"rotate",rotateZ:"rotateZ",rotateX:"rotateX",rotateY:"rotateY",scale:"scale",scaleX:"scaleX",scaleY:"scaleY",skewX:"skewX",skewY:"skewY",perspective:"transformPerspective"},K8=new Set(["perspective","translateZ","rotateX","rotateY","rotateZ"]);function z8(e,t,n=!1){if(!e)return{motionProps:e,remainingTransform:t};let r={...e.initial},o=[],i=!1;for(let{raw:s,fn:a,value:l}of X8(t)){let u=Y8[a],c=K8.has(a)&&!n;if(!u||u in r||c){o.push(s);continue}r[u]=l.trim(),i=!0}return i?{motionProps:{...e,initial:r},remainingTransform:o.length>0?o.join(" "):void 0}:{motionProps:e,remainingTransform:t}}function*X8(e){let t=/(\w+)\(/g;for(;;){let n=t.exec(e);if(n===null)return;let r=n.index,o=t.lastIndex,i=1,s=o;for(;s<e.length&&i>0;){let a=e.charAt(s);a==="("?i++:a===")"&&i--,s++}if(i!==0)return;yield{raw:e.slice(r,s),fn:n[1],value:e.slice(o,s-1)},t.lastIndex=s}}function Dh(e,t,n,r){let{effects:o,nodeId:i,styles:s}=e;if(o.length===0)return t;let a=GE(n,bs(n,!0),r);return ne({Tag:"ShaderEffect",nodeId:i,customEffects:o.map(l=>({id:l.customEffectId,params:l.componentPropAssignments??{defs:{},assignments:[]}})),children:t,styleSet:[s,a]})}var j8="ffw";function QA(e){let{parent:t,node:n,children:r,outerStyles:o,tag:i,nodeId:s,idSuffix:a}=e;if(!fl(n,t))return r;let l={display:"flex",flex:o.flex,flexDirection:t.layoutMode==="HORIZONTAL"?"row":"column",alignSelf:"stretch",alignItems:KR(t.counterAxisAlignItems)};return ne({Tag:i,key:j8,nodeId:s,idSuffix:a,styleSet:l,children:r})}function sf(e,t){if(t.disableCodeBehaviors)return!1;switch(e.type){case"FRAME":case"RECTANGLE":case"TEXT":case"IMAGE":case"SVG":return!!e.behaviors?.code?.length;default:return!1}}var $8="sw";function Rp(e){let{children:t,stickyWrapperStyles:n,nodeId:r,idSuffix:o,tag:i}=e;return n?ne({Tag:i,key:$8,nodeId:r,idSuffix:o,styleSet:n,children:t}):t}function Vw(e){return e==="flex-start"?"flex-end":e==="flex-end"?"flex-start":"center"}function vh(e,t,n){if(!n)return;let r=!!(e.keyframeData&&"WIDTH"in e.keyframeData),o=!!(e.keyframeData&&"HEIGHT"in e.keyframeData);if(!r&&!o)return;let i=t!=null&&t[0][0]<0,s=t!=null&&t[1][1]<0,a="center";if(r){switch(e.constraints?.horizontal){case $n.LEFT:a="flex-start";break;case $n.RIGHT:a="flex-end";break;default:a="center";break}i&&(a=Vw(a))}let l="center";if(o){switch(e.constraints?.vertical){case Or.TOP:l="flex-start";break;case Or.BOTTOM:l="flex-end";break;default:l="center";break}s&&(l=Vw(l))}return{justifyContent:a,alignItems:l}}function xh({outerStyles:e,childWrapperStyles:t,innerState:n,keyframeAlignmentOverride:r,preserve3d:o}){let i={display:"flex",alignItems:r?.alignItems??"center",justifyContent:r?.justifyContent??"center"},s=o?"preserve-3d":void 0;return{inner:{flex:"0 0 auto",...t,...n,transformStyle:s},outer:{...e,...i,transformStyle:s}}}function Mh({ref:e,outerStyles:t,...n}){return Lh(n.websiteContext,{fallback:Z8({outerStyles:t,...n}),children:()=>n.websiteContext.sitesRenderers.renderTransformWrapperLive({ref:e,outerStyles:t,...n})})}function Z8({children:e,outerStyles:t,childWrapperStyles:n,node:r,context:o,keyframeMotionPropsOverride:i,tag:s,nodeId:a,idSuffix:l,websiteContext:u}){let c=u.renderOptions,{metronomeEnabled:f}=c,d=Ft(Yt(o?.group?.relativeTransform,r.relativeTransform)),p=Ph({children:e,keyframeMotionPropsOverride:i,nodeId:r.id,outerTransform:t.transform,renderMotionProps:!0,renderOptions:c,websiteContext:u}),{inner:_,outer:T}=xh({outerStyles:t,childWrapperStyles:n,keyframeAlignmentOverride:vh(r,d,f),preserve3d:pl(r,c)});return ne({Tag:p.elementMotionProps!=null?ir[s]:s,nodeId:a,idSuffix:l,styleSet:T,attributes:{...p.dataMotionProps,...p.elementMotionProps},children:ne({Tag:"div",styleSet:_,children:p.children})})}function Dr(e){let{node:t,parent:n,context:r,children:o,transitionProps:i,layerRef:s,outerRef:a,previousRotation:l,codeBehaviorProps:u,keyframeMotionPropsOverride:c,codeBehaviorWrapperRef:f,wrappersToRender:d,websiteContext:p}=e,_=d.needsTransformWrapper||d.needsCodeBehaviorWrapper,T=Dh(d.customEffectWrapper,o,t,p.renderOptions),h=d.maskWrapper.maskStyles?ne({Tag:d.maskWrapper.tag,no
10694deId:d.maskWrapper.nodeId,idSuffix:d.maskWrapper.idSuffix,styleSet:[d.maskWrapper.maskStyles],children:T}):T;if(!_)return Rp({nodeId:d.stickyWrapper.nodeId,idSuffix:d.stickyWrapper.idSuffix,stickyWrapperStyles:d.stickyWrapper.outerStyles,tag:d.stickyWrapper.tag,children:QA({node:t,parent:n,outerStyles:d.flexFillWrapper.outerStyles,tag:d.flexFillWrapper.tag,nodeId:d.flexFillWrapper.nodeId,idSuffix:d.flexFillWrapper.idSuffix,children:h})});let m=i?.transitionData,E=i?.smartAnimateType??te.NONE,O=E===te.INSTANCE_SUBTREE,I=t.type!=="WIDGET"&&Yo(E,t.maybeAnimateRotation),g=d.needsTransformWrapper?Mh({ref:I||O?s:null,context:r,node:t,parent:n,childWrapperStyles:d.transformWrapper.childWrapperStyles,transitionData:m,canAnimate:I,smartAnimateType:E,previousRotation:l,transformRef:a,codeBehaviorWrapperRef:f,keyframeMotionPropsOverride:c,outerStyles:d.transformWrapper.outerStyles,tag:d.transformWrapper.tag,nodeId:d.transformWrapper.nodeId,idSuffix:d.transformWrapper.idSuffix,websiteContext:p,children:h}):h;if(d.needsCodeBehaviorWrapper){sf(t,p.renderOptions);let S=t.behaviors.code;return d.codeBehaviorWrapper.outerStyles,p.sitesRenderers.renderCodeBehaviorWrapper({codeBehaviors:S,variableState:t.variableState,modeContext:t.modeContext,ref:f,assets:t.assets,outerStyles:d.codeBehaviorWrapper.outerStyles,tag:d.codeBehaviorWrapper.tag,websiteContext:p,children:p.sitesRenderers.renderRenderHooksConsumer({node:t,renderNode:()=>Se(g,p),codeBehaviorProps:{...u,transformRef:a}})})}return Rp({nodeId:d.stickyWrapper.nodeId,idSuffix:d.stickyWrapper.idSuffix,stickyWrapperStyles:d.stickyWrapper.outerStyles,tag:d.stickyWrapper.tag,children:QA({node:t,parent:n,outerStyles:d.flexFillWrapper.outerStyles,tag:d.flexFillWrapper.tag,nodeId:d.flexFillWrapper.nodeId,idSuffix:d.flexFillWrapper.idSuffix,children:g})})}function Hw(e){let{node:t,parent:n,transitionProps:r,renderOptions:o,maskStyles:i}=e,s=t.keyframeData!=null&&Object.keys(t.keyframeData).length>0||(r?.smartAnimateType??te.NONE)!==te.NONE;return o.metronomeEnabled&&s&&i!=null&&Object.keys(i).length>0&&$1(i)&&!Jt(t,n)}function Qr(e){return Hw(e)?void 0:e.maskStyles}function Bn({node:e,parent:t,context:n,transitionProps:r,outerStyles:o,wrapperSizeStyles:i,stickyWrapperStyles:s,transformChildWrapperStyles:a,renderOptions:l,maskStyles:u}){let{hasCodeBehavior:c,hasTransform:f,hasFlexFill:d,hasSticky:p,hasCustomEffect:_}=J8({node:e,parent:t,context:n,transitionProps:r,stickyWrapperStyles:s,renderOptions:l}),T=o,h=n?.parentIsList?"li":"div",m,E="div",O="div",I,g="div",S,A="div",R;c&&(m=T,E=h,T=void 0,h="div"),p&&(O=h,h="div"),d&&(I=T,g=h,h="div"),f&&(S=T??i,A=h,T=void 0,h="div"),_&&(R=T??i,T=i);let L=Hw({node:e,parent:t,transitionProps:r,renderOptions:l,maskStyles:u})?u:void 0;if(L&&e.absoluteBoundingBox&&t?.absoluteBoundingBox){let K=e.absoluteBoundingBox.x-t.absoluteBoundingBox.x,C=e.absoluteBoundingBox.y-t.absoluteBoundingBox.y;L=Z1(L,K,C)}let b=l.shouldOutputCustomEffects?FE(e):[],M=l.assignNodeIdToOutermostWrapper,w=L!=null,B=M?p?"sticky":d?"flexFill":f?"transform":w?"mask":b.length>0?"customEffect":"main":"main",y=K=>B===K?e.id:void 0;return{needsTransformWrapper:f,needsCodeBehaviorWrapper:c,stickyWrapper:{outerStyles:s,tag:O,...M?{nodeId:y("sticky"),idSuffix:void 0}:{nodeId:e.id,idSuffix:"sticky-wrapper"}},flexFillWrapper:{outerStyles:I,tag:g,...M?{nodeId:y("flexFill"),idSuffix:void 0}:{nodeId:e.id,idSuffix:"fillWrapper"}},codeBehaviorWrapper:{outerStyles:m,tag:E},transformWrapper:{outerStyles:S,childWrapperStyles:a,tag:A,nodeId:y("transform"),idSuffix:void 0},motionLayerContent:{outerStyles:T??i,needsListItemTag:h==="li",nodeId:y("main")},maskWrapper:{maskStyles:L,tag:"div",nodeId:y("mask"),idSuffix:void 0},customEffectWrapper:{effects:b,styles:R,nodeId:y("customEffect")}}}function J8({node:e,parent:t,context:n,transitionProps:r,stickyWrapperStyles:o,renderOptions:i}){let s=sf(e,i);return{hasCodeBehavior:s,hasTransform:q8({node:e,parent:t,context:n,transitionProps:r}),hasFlexFill:!s&&fl(e,t),hasSticky:!s&&o!==void 0,hasCustomEffect:i.shouldOutputCustomEffects?FE(e).length>0:!1}}
10694function q8(e){let{context:t,node:n,parent:r,transitionProps:o}=e,i=Bs(n,r,t);if(n.type==="GROUP")return i&&Jt(n,r);{let s=n.type!=="WIDGET"&&Yo(o?.smartAnimateType??te.NONE,n.maybeAnimateRotation);return i||s}}function Ww(e){let{node:t,parent:n,context:r,zIndex:o,smartAnimateType:i,previousRotation:s,precomputeTransforms:a,websiteContext:l}=e,{getAssetURL:u,renderOptions:c}=l,f=Io(t.assets,t.hash);Te(f.type==="GENERATED_ASSET","Expected asset to be a generated asset");let d=u(f.url),p=Yo(i,t.maybeAnimateRotation),_=qn({node:t,parent:n,context:r,zIndex:o,children:[],options:{isFlattened:!0,canAnimate:p,previousRotation:s,precomputeTransforms:a},renderOptions:c}),T=t.type==="SVG"?r?.group?.opacity??1:pn(r,t);return{nodeCanAnimateRotation:p,layoutStyles:_,opacity:T,asset:f,src:d}}function Yw(e){let{node:t,parent:n,interactionHandlers:r,context:o,transitionProps:i,codeBehaviorProps:s,websiteContext:a,layerData:l,hookState:u}=e,{layoutStyles:c,opacity:f,nodeCanAnimateRotation:d,asset:p,src:_}=l,{behaviorProps:T,key:h,behaviorsRef:m,mergedRef:E,outerRef:O,codeBehaviorWrapperRef:I,previousRotation:g,svgContainerRef:S,ref:A}=u,R=i?.smartAnimateType??te.NONE,{renderOptions:N}=a,L=er({node:t,context:o,websiteContext:a}),b=t?.interactions??[],M=o?.withinInteractiveElement||Object.keys(T).length>0||R===te.INSTANCE_SUBTREE,w=yr(b,r,M,a),B=wo(b),y=mo(b),K=Hs(t,y,B,M,!1),C=zo(t,!0),G=i?.transitionData,P=ln(G),X=Qn({node:t,parent:n,children:null,renderOptions:N}),{codeSyntaxLanguage:oe}=a.renderOptions,ve={...c.inner,...t.type==="IMAGE"?GE(t,bs(t,!1),N):{},...Gn(f,a.renderOptions,t.boundVariables?.opacity?.resolvedName,oe&&t.boundVariables?.opacity?.resolvedCodeSyntax?.[oe]),...Li(t),...Qr({node:t,parent:n,transitionProps:i,renderOptions:N,maskStyles:L}),...c.transform3d,...o?.style||{}},be=Jr(a,t),{disableDataAttributes:Le}=a.renderOptions,Ce=Bn({node:t,parent:n,context:o,transitionProps:i,outerStyles:c.outer,wrapperSizeStyles:X,stickyWrapperStyles:c.stickyWrapper,transformChildWrapperStyles:c.transform,renderOptions:N,maskStyles:L}),Ue=Ll({node:t,context:o,renderOptions:N,smartAnimateType:R,wrappersToRender:Ce}),ae=hr({key:t.id,children:Q8({node:t,parent:n,context:o,websiteContext:a,asset:p,src:_,svgContainerRef:S})}),le=Ao({node:t,semanticTagInfo:K,key:h,context:o,ref:d?m:E,nodeId:Ce.motionLayerContent.nodeId,styles:ve,transitionProps:{opacity:f,smartAnimateType:R,behaviorProps:T,transitionData:G,onTransitionEnd:P},keyframeMotionPropsOverride:Ue.childKeyframeMotionPropsOverride,wrappers:Ce.motionLayerContent,websiteContext:a,attributes:{...w,...C,"data-name":be,"data-isimage":Le?void 0:!0,...o?.dataAttributes||{}},children:ae});return Dr({node:t,parent:n,context:o,transitionProps:i,codeBehaviorProps:s,layerRef:A,outerRef:O,codeBehaviorWrapperRef:I,previousRotation:g,wrappersToRender:Ce,websiteContext:a,keyframeMotionPropsOverride:Ue.wrapperKeyframeMotionPropsOverride,children:le})}function Q8({node:e,parent:t,context:n,websiteContext:r,asset:o,src:i,svgContainerRef:s}){let{url:a,offsets:l,size:u}=o,{disableInlineSvgGeneration:c,disableImageOptimization:f}=r.renderOptions,d=!c&&e.type==="SVG"&&e.isDynamic,p=e.accessibleLabel||"",_={position:"absolute",top:xd(l.top),left:xd(l.left),right:xd(l.right),bottom:xd(l.bottom)},T,h;if(u&&!f&&e.type==="IMAGE"){let{srcset:R,sizes:N}=ZA(r.getAssetURL,e,t,null,a,u,void 0,r.renderOptions,n);T=R,h=e.lazyLoad?`auto,${N}`:N}let m={};d&&e.type==="SVG"&&(e.fills.forEach((R,N)=>{R.type==="SOLID"&&(m[`--fill-${N}`]=`rgba(${Math.round(R.color.r*255)}, ${Math.round(R.color.g*255)}, ${Math.round(R.color.b*255)}, ${v(R.color.a)})`)}),e.strokes.forEach((R,N)=>{R.type==="SOLID"&&(m[`--stroke-${N}`]=`rgba(${Math.round(R.color.r*255)}, ${Math.round(R.color.g*255)}, ${Math.round(R.color.b*255)}, ${v(R.color.a)})`)}));let E=!d&&XE(_),O=vw(e,r),I=O.length>0,g={display:"block",maxWidth:"none",width:"100%",height:"100%",...E&&{position:"absolute",inset:0},...I&&!E&&{position:"absolute",inset:0}},S=ne({Tag:"img",styleSet:g,attributes:{loading:e.lazyLoad?"lazy":void 0,src:i,alt:p,width:e.type==="IMAGE"&&u?v(u.x):void 0,height:e.type==="IMAGE"&&u?v(u.y):void 0,srcSet:T,sizes:h}}),A=I?[...O,S]:S;return E?A:ne({Tag:"div",ref:s,styleSet:_,style:m,children:A})}var ar=x(Y());var Kw=(e,t,n)=>Math.min(Math.max(n,e),t);var Cl=e=>typeof e=="number";var zw=e=>Array.isArray(e)&&!Cl(e[0]);var Xw=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e};function jw(e,t){return zw(e)?e[Xw(0,e.length,t)]:e}var Fh=(e,t,n)=>-n*e+n*t+e;var Ap=e=>e;
10694var Pl=(e,t,n)=>t-e===0?1:(n-e)/(t-e);function Gh(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let o=Pl(0,t,r);e.push(Fh(n,1,o))}}function yp(e){let t=[0];return Gh(t,e-1),t}function ey(e,t=yp(e.length),n=Ap){let r=e.length,o=r-t.length;return o>0&&Gh(t,o),i=>{let s=0;for(;s<r-2&&!(i<t[s+1]);s++);let a=Kw(0,1,Pl(t[s],t[s+1],i));return a=jw(n,s)(a),Fh(e[s],e[s+1],a)}}var Dl=e=>typeof e=="function";var Np=e=>typeof e=="string";function ty(e,t){return t?e*(1e3/t):0}function kh(e,t){var n;return typeof e=="string"?t?((n=t[e])!==null&&n!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}function $w(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var e7={any:0,all:1};function ny(e,t,{root:n,margin:r,amount:o="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};let i=kh(e),s=new WeakMap,a=u=>{u.forEach(c=>{let f=s.get(c.target);if(c.isIntersecting!==Boolean(f))if(c.isIntersecting){let d=t(c);Dl(d)?s.set(c.target,d):l.unobserve(c.target)}else f&&(f(c),s.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof o=="number"?o:e7[o]});return i.forEach(u=>l.observe(u)),()=>l.disconnect()}var wh=new WeakMap,aa;function t7(e,t){if(t){let{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function n7({target:e,contentRect:t,borderBoxSize:n}){var r;(r=wh.get(e))===null||r===void 0||r.forEach(o=>{o({target:e,contentSize:t,get size(){return t7(e,n)}})})}function r7(e){e.forEach(n7)}function o7(){typeof ResizeObserver>"u"||(aa=new ResizeObserver(r7))}function Zw(e,t){aa||o7();let n=kh(e);return n.forEach(r=>{let o=wh.get(r);o||(o=new Set,wh.set(r,o)),o.add(t),aa?.observe(r)}),()=>{n.forEach(r=>{let o=wh.get(r);o?.delete(t),o?.size||aa?.unobserve(r)})}}var Bh=new Set,bp;function i7(){bp=()=>{let e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Bh.forEach(n=>n(t))},window.addEventListener("resize",bp)}function Jw(e){return Bh.add(e),bp||i7(),()=>{Bh.delete(e),!Bh.size&&bp&&(bp=void 0)}}function qw(e,t){return Dl(e)?Jw(e):Zw(e,t)}var s7=50,Qw=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),tB=()=>({time:0,x:Qw(),y:Qw()}),a7={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function eB(e,t,n,r){let o=n[t],{length:i,position:s}=a7[t],a=o.current,l=n.time;o.current=e["scroll"+s],o.scrollLength=e["scroll"+i]-e["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=Pl(0,o.scrollLength,o.current);let u=r-l;o.velocity=u>s7?0:ty(o.current-a,u)}function nB(e,t,n){eB(e,"x",t,n),eB(e,"y",t,n),t.time=n}function rB(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r instanceof SVGGraphicsElement&&"getBBox"in r){let{top:o,left:i}=r.getBBox();for(n.x+=i,n.y+=o;r&&r.tagName!=="svg";)r=r.parentNode}return n}var oB={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]};var Uh={start:0,center:.5,end:1};function ry(e,t,n=0){let r=0;if(Uh[e]!==void 0&&(e=Uh[e]),Np(e)){let o=parseFloat(e);e.endsWith("px")?r=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?r=o/100*document.documentElement.clientWidth:e.endsWith("vh")?r=o/100*document.documentElement.clientHeight:e=o}return Cl(e)&&(r=t*e),n+r}var l7=[0,0];function iB(e,t,n,r){let o=Array.isArray(e)?e:l7,i=0,s=0;return Cl(e)?o=[e,e]:Np(e)&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,Uh[e]?e:"0"]),i=ry(o[0],n,r),s=ry(o[1],t),i-s}var u7={x:0,y:0};function sB(e,t,n){let{offset:r=oB.All}=n,{target:o=e,axis:i="y"}=n,s=i==="y"?"height":"width",a=o!==e?rB(o,e):u7,l=o===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:o.clientWidth,height:o.clientHeight}
10694,u={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let c=!t[i].interpolate,f=r.length;for(let d=0;d<f;d++){let p=iB(r[d],u[s],l[s],a[i]);!c&&p!==t[i].interpolatorOffsets[d]&&(c=!0),t[i].offset[d]=p}c&&(t[i].interpolate=ey(yp(f),t[i].offset),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=t[i].interpolate(t[i].current)}function c7(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!=e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function aB(e,t,n,r={}){let o=r.axis||"y";return{measure:()=>c7(e,r.target,n),update:i=>{nB(e,n,i),(r.offset||r.target)&&sB(e,n,r)},notify:Dl(t)?()=>t(n):f7(t,n[o])}}function f7(e,t){return e.pause(),e.forEachNative((n,{easing:r})=>{var o,i;if(n.updateDuration)r||(n.easing=Ap),n.updateDuration(1);else{let s={duration:1e3};r||(s.easing="linear"),(i=(o=n.effect)===null||o===void 0?void 0:o.updateTiming)===null||i===void 0||i.call(o,s)}}),()=>{e.currentTime=t.progress}}var Lp=new WeakMap,lB=new WeakMap,oy=new WeakMap,uB=e=>e===document.documentElement?window:e;function Cp(e,t={}){var{container:n=document.documentElement}=t,r=$w(t,["container"]);let o=oy.get(n);o||(o=new Set,oy.set(n,o));let i=tB(),s=aB(n,e,i,r);if(o.add(s),!Lp.has(n)){let u=()=>{let f=performance.now();for(let d of o)d.measure();for(let d of o)d.update(f);for(let d of o)d.notify()};Lp.set(n,u);let c=uB(n);window.addEventListener("resize",u,{passive:!0}),n!==document.documentElement&&lB.set(n,qw(n,u)),c.addEventListener("scroll",u,{passive:!0})}let a=Lp.get(n),l=requestAnimationFrame(a);return()=>{var u;typeof e!="function"&&e.stop(),cancelAnimationFrame(l);let c=oy.get(n);if(!c||(c.delete(s),c.size))return;let f=Lp.get(n);Lp.delete(n),f&&(uB(n).removeEventListener("scroll",f),(u=lB.get(n))===null||u===void 0||u(),window.removeEventListener("resize",f))}}var cB={m00:1,m01:0,m02:0,m10:0,m11:1,m12:0};function af(e,t,n=1){return{m00:n,m01:0,m02:e,m10:0,m11:n,m12:t}}var d7={FADE_IN:{opacity:0,transform:cB},SCALE_IN:{opacity:0,transform:af(0,0,.5)},SCALE_IN_BOTTOM:{opacity:0,transform:af(0,50,.5)},SLIDE_IN_TOP:{opacity:0,transform:af(0,-150)},SLIDE_IN_BOTTOM:{opacity:0,transform:af(0,150)},SLIDE_IN_LEFT:{opacity:0,transform:af(-150,0)},SLIDE_IN_RIGHT:{opacity:0,transform:af(150,0)},NONE:{opacity:1,transform:cB}},p7=.75,ei={IN_CUBIC:[.55,.055,.675,.19],EASE_IN:[.55,.055,.675,.19],OUT_CUBIC:[.215,.61,.355,1],INOUT_CUBIC:[.645,.045,.355,1],LINEAR:[0,0,1,1],IN_BACK_CUBIC:[.3,-.05,.7,-.5],OUT_BACK_CUBIC:[.45,1.45,.8,1],INOUT_BACK_CUBIC:[.7,-.4,.4,1.4],GENTLE_SPRING:[1,100,15,0],SPRING_PRESET_ONE:[1,300,20,0],SPRING_PRESET_TWO:[1,600,15,0],SPRING_PRESET_THREE:[1,80,20,0],HOLD:[1,0,1,0]},fB={easingType:"OUT_CUBIC",easingFunction:ei.OUT_CUBIC,transitionDuration:.3},m7={...fB,transitionDuration:.6},dB=50,pB=!0,E7={type:zr.FLOAT,resolvedType:hS.FLOAT,value:dB},_7={type:zr.BOOLEAN,resolvedType:hS.BOOLEAN,value:pB};function Ln(e,t){if(!e)return{};let n=t.transform?Od(t.transform):we.identity();n.multiply(T7(e.transform));let r=n.toScale(),o=n.offset(),i=n.toDegrees();return{opacity:e.opacity??t.opacity??1,scaleX:r?.x??1,scaleY:r?.y??1,translateX:o?.x??0,translateY:o?.y??0,rotate:i??0}}function iy(e,t,n,r){let o={key:void 0,hasBehaviors:!1,variants:{visible:{}},initial:"visible",appearBehaviorOtherLayer:void 0,scrollTransformOtherLayer:void 0,hasAppearLoadBehavior:!1,hasAppearScrollIntoViewBehavior:!1,hasAppearScrollDirectionBehavior:!1,hasHoverBehavior:!1,hasPressBehavior:!1,hasFocusBehavior:!1,hasScrollSpeedBehavior:!1,hasCursorBehavior:!1,transitionToVisible:void 0,transitionToExit:void 0,transitionToAndFromHover:void 0,transitionToAndFromPress:void 0,transitionToAndFromFocus:void 0,transitionBasedOnScrollDirection:void 0,scrollParallaxSpeed:1,replayAppearBehavior:!0,hasScrollTransformOnScrollBehavior:!1,hasScrollTransformIntoViewBehavior:!1,scrollTransformTransition:void 0,replayScrollTransformBehavior:!0,cursorBehaviorInfo:void 0,hasEnterAnimation:!0,hasExitAnimation:!0};if(e.length===0)return o;o.hasBehaviors=!0,o.variants={visible:Ln({},t)};for(let i of e){let s=i.behaviorType,a=!1;switch(s){case Nt.Appear:{let l=i;if(!l||n?.[Nt.Appear])break;let u=l.trigger;switch(u){case"PAGE_LOAD":o.hasAppearLoadBehavior=!0,o.initial="initial",o.variants.initial=Ln(i.enterState,t),o.transitionToVisible=eo(i.enterTransition);break;case"THIS_LAYER_IN_VIEW":o.hasAppearScrollIntoViewBehavior=!0,o.initial="initial",o.variants.initial=Ln(i.enterState,t),o.variants.exit=Ln(i.exitState??i.enterState,t),o.transitionToVisible=eo(i.enterTransition),o.transitionToExit=eo(i.exitTransition),o.replayAppearBehavior=!i.playsOnce;break;case"OTHER_LAYER_IN_VIEW":o.hasAppearScrollIntoViewBehavior=!0,o.initial="initial",o.variants.initial=Ln(i.enterState,t),o.variants.exit=Ln(i.exitState??i.enterState,t),o.appearBehaviorOtherLayer=Je(i.otherLayer),o.transitionToVisible=eo(i.enterTransition),o.transitionToExit=eo(i.exitTransition),o.replayAppearBehavior=!i.playsOnce;break;case"SCROLL_DIRECTION":o.hasAppearScrollDirectionBehavior=!0,o.variants.scrollDirection=Ln(i.enterState,t),o.transitionBasedOnScrollDirection=eo(i.enterTransition),o.replayAppearBehavior=!i.playsOnce;break;default:Fe(u)}break}case Nt.ScrollTransform:{let l=i;if(!l||n?.[Nt.ScrollTransform])break;
10694a=l.fromState.opacity!==l.toState.opacity;let u=l.trigger;switch(u){case"PAGE_HEIGHT":o.hasScrollTransformOnScrollBehavior=!0,o.initial="initial",o.variants.initial=Ln(i.fromState,t),o.variants.exit=Ln(i.toState,t),o.scrollTransformTransition=eo(i.transition);break;case"THIS_LAYER_IN_VIEW":o.hasScrollTransformIntoViewBehavior=!0,o.initial="initial",o.variants.initial=Ln(i.fromState,t),o.variants.exit=Ln(i.toState,t),o.scrollTransformTransition=eo(i.transition),o.replayScrollTransformBehavior=!i.playsOnce;break;case"OTHER_LAYER_IN_VIEW":o.hasScrollTransformIntoViewBehavior=!0,o.initial="initial",o.variants.initial=Ln(i.fromState,t),o.variants.exit=Ln(i.toState,t),o.scrollTransformTransition=eo(i.transition),o.scrollTransformOtherLayer=Je(i.otherLayer),o.replayScrollTransformBehavior=!i.playsOnce;break;default:Fe(u)}break}case Nt.Hover:o.hasHoverBehavior=!n?.[Nt.Hover],o.variants.hover=Ln(i.state,t),o.transitionToAndFromHover=eo(i.transition);break;case Nt.Press:o.hasPressBehavior=!n?.[Nt.Press],o.variants.press=Ln(i.state,t),o.transitionToAndFromPress=eo(i.transition);break;case Nt.Focus:o.hasFocusBehavior=!n?.[Nt.Focus],o.variants.focus=Ln(i.state,t),o.transitionToAndFromFocus=eo(i.transition);break;case Nt.ScrollParallax:o.hasScrollSpeedBehavior=!n?.[Nt.ScrollParallax],o.scrollParallaxSpeed=i.speed;break;case Nt.Cursor:o.hasCursorBehavior=!n?.[Nt.Cursor],o.cursorBehaviorInfo={cursorGuid:Je(i.cursorGuid),cursorImage:r,cursorHotspot:{x:i.hotspotX,y:i.hotspotY}};break;case Nt.Marquee:break;case Nt.Code:break;default:Fe(s)}a&&o.scrollTransformTransition&&(o.scrollTransformTransition.repeatDelay=1)}return o.key=JSON.stringify(o),o}function T7(e){return Array.isArray(e)?we.fromNumbers(e[0][0],e[0][1],e[0][2],e[1][0],e[1][1],e[1][2]):typeof e=="object"?we.fromNumbers(e.m00,e.m01,e.m02,e.m10,e.m11,e.m12):we.identity()}function eo(e){if(e)switch(e.easingType){case"IN_CUBIC":return{ease:"easeIn",duration:e.transitionDuration,delay:e.delay};case"OUT_CUBIC":return{ease:"easeOut",duration:e.transitionDuration,delay:e.delay};case"INOUT_CUBIC":return{ease:"easeInOut",duration:e.transitionDuration,delay:e.delay};case"LINEAR":return{ease:"linear",duration:e.transitionDuration,delay:e.delay};case"IN_BACK_CUBIC":return{ease:ei.IN_BACK_CUBIC,duration:e.transitionDuration,delay:e.delay};case"OUT_BACK_CUBIC":return{ease:ei.OUT_BACK_CUBIC,duration:e.transitionDuration,delay:e.delay};case"INOUT_BACK_CUBIC":return{ease:ei.INOUT_BACK_CUBIC,duration:e.transitionDuration,delay:e.delay};case"CUSTOM_CUBIC":return{ease:e.easingFunction,duration:e.transitionDuration,delay:e.delay};case"GENTLE_SPRING":case"SPRING_PRESET_ONE":case"SPRING_PRESET_TWO":case"SPRING_PRESET_THREE":return{type:"spring",stiffness:ei[e.easingType][1],damping:ei[e.easingType][2],mass:ei[e.easingType][0],delay:e.delay};case"CUSTOM_SPRING":{let t=e.easingFunction??ei.GENTLE_SPRING;return{type:"spring",stiffness:t[1],damping:t[2],mass:t[0],delay:e.delay}}default:return e.easingType,`${e.easingType}`,{ease:"easeOut",duration:e.transitionDuration}}}var h7=(...e)=>fe().env==="server"?()=>{}:(0,ar.useLayoutEffect)(...e);function to(e,t,n,r,o){let i=fe(),{disableBehaviors:s}=i.renderOptions,a=Ps(r,Ge),l=(0,ar.useRef)(null),u=(0,ar.useRef)(null),{key:c,hasBehaviors:f,variants:d,initial:p,appearBehaviorOtherLayer:_,scrollTransformOtherLayer:T,hasAppearLoadBehavior:h,hasAppearScrollIntoViewBehavior:m,hasAppearScrollDirectionBehavior:E,hasHoverBehavior:O,hasPressBehavior:I,hasScrollTransformOnScrollBehavior:g,hasScrollTransformIntoViewBehavior:S,hasScrollSpeedBehavior:A,hasCursorBehavior:R,transitionToVisible:N,transitionToExit:L,transitionToAndFromHover:b,transitionToAndFromPress:M,transitionBasedOnScrollDirection:w,scrollParallaxSpeed:B,replayAppearBehavior:y,replayScrollTransformBehavior:K,scrollTransformTransition:C}=(0,ar.useMemo)(()=>{let Le=Object.entries(s?{}:t??{}).map(([Ue,ae])=>({...ae,behaviorType:Ue})).filter(Ue=>Ue.behaviorType!=="code"),Ce=iy(Le,a,o);return ED(i,Ce),Ce},[s,t,a,o,i]),G=g||S,P=(0,ar.useMemo)(()=>G?{fromState:d[Ae.INITIAL],toState:d[Ae.EXIT]}:null,[G,d]),X=(0,ar.useCallback)(()=>O7({domElement:l.current,hasBehaviors:f,variants:d,hasAppearLoadBehavior:h,hasAppearScrollIntoViewBehavior:m,hasAppearScrollDirectionBehavior:E,hasHoverBehavior:O,hasPressBehavior:I,hasScrollTransformBehavior:G,hasScrollTransformOnScrollBehavior:g,hasScrollTransformIntoViewBehavior:S,hasScrollSpeedBehavior:A,scrollTransformState:P,transitionToVisible:N,transitionToExit:L,transitionToAndFromHover:b,transitionToAndFromPress:M,transitionBasedOnScrollDirection:w,scrollTransformTransition:C,appearBehaviorOtherLayer:_,scrollTransformOtherLayer:T,replayAppearBehavior:y,replayScrollTransformBehavior:K,scrollParallaxSpeed:B}),[f,d,h,m,E,O,I,G,g,S,A,P,N,L,b,M,w,C,_,T,y,K,B]),oe=(0,ar.useCallback)(be=>{l.current&&u.current?.(),l.current=be,u.current=X?.(),be?DR(e,be):vR(e)},[e,X]),ve=(0,ar.useRef)(e);return h7(()=>{l.current&&DR(e,l.current),ve.current!==e&&(vR(ve.current),ve.current=e)},[l,e]),Ev({ref:l,hasCursorBehavior:R,assets:n,behaviors:t}),(0,ar.useEffect)(()=>
10694{if(!(!l.current||!f))return u.current=X(),()=>u.current?.()},[X,f]),f?{ref:oe,key:c,motionProps:{initial:p,variants:d}}:{ref:oe,key:c,motionProps:{}}}function O7(e){let{domElement:t,hasBehaviors:n,variants:r,hasAppearLoadBehavior:o,hasAppearScrollIntoViewBehavior:i,hasAppearScrollDirectionBehavior:s,hasHoverBehavior:a,hasPressBehavior:l,hasScrollTransformBehavior:u,hasScrollTransformOnScrollBehavior:c,hasScrollTransformIntoViewBehavior:f,hasScrollSpeedBehavior:d,scrollTransformState:p,transitionToVisible:_,transitionToExit:T,transitionToAndFromHover:h,transitionToAndFromPress:m,transitionBasedOnScrollDirection:E,scrollTransformTransition:O,appearBehaviorOtherLayer:I,scrollTransformOtherLayer:g,replayAppearBehavior:S,replayScrollTransformBehavior:A,scrollParallaxSpeed:R}=e;if(!t||!n)return()=>{};let N=!1,L=[()=>{N=!0}];if(o&&sr(t,r[Ae.VISIBLE],_),i){let b=M=>{let w=!1,B;function y(){N||!t||!w||B||(B=sr(t,r[Ae.VISIBLE],_).then(()=>{B=void 0,K()}),S||C())}function K(){N||!t||w||B||(B=sr(t,r[Ae.EXIT]??r[Ae.VISIBLE],T).then(()=>{B=void 0,sr(t,r[Ae.INITIAL]??r[Ae.VISIBLE],{duration:0}),y()}))}let C=ny(M,()=>(w=!0,y(),()=>{w=!1,K()}));L.push(C)};I?L_(I).then(M=>{N||b(M)}):t&&b(t)}if(s){let b=Cp(M=>{let w=M.y.velocity;w>0?(sr(t,r[Ae.SCROLL_DIRECTION]??r[Ae.VISIBLE],E),S||b()):w<0&&sr(t,r[Ae.VISIBLE],E)},{container:xR()});L.push(b)}if(a){let b=w=>{w.pointerType!=="touch"&&sr(t,r[Ae.HOVER]??r[Ae.VISIBLE],h)},M=w=>{w.pointerType!=="touch"&&sr(t,r[Ae.VISIBLE],h)};t.addEventListener("pointerenter",b),t.addEventListener("pointerleave",M),L.push(()=>{t.removeEventListener("pointerenter",b),t.removeEventListener("pointerleave",M)})}if(l){let b=()=>{sr(t,r[Ae.PRESS]??r[Ae.VISIBLE],m),window.addEventListener("pointerup",M),window.addEventListener("pointercancel",M)},M=()=>{sr(t,r[Ae.VISIBLE],m),window.removeEventListener("pointerup",M),window.removeEventListener("pointercancel",M)};t.addEventListener("pointerdown",b),t.addEventListener("pointerup",M),t.addEventListener("pointercancel",M),L.push(()=>{t.removeEventListener("pointerdown",b),t.removeEventListener("pointerup",M),t.removeEventListener("pointercancel",M),window.removeEventListener("pointerup",M),window.removeEventListener("pointercancel",M)})}if(u){let b=M=>{let w=!1,B=Cp(y=>{if(w)return;let K=0;if(c)K=y.y.scrollLength>0?y.y.current/y.y.scrollLength:1;else if(f){let Ue=y.y.current+y.y.containerLength,ae=y.y.targetOffset,le=y.y.targetLength,Re=(Ue-ae)/le;K=Math.min(1,Math.max(0,Re))}let{fromState:C,toState:G}=p,P=ia(K,[0,1],[C.opacity,G.opacity]),X=ia(K,[0,1],[C.scaleX,G.scaleX]),oe=ia(K,[0,1],[C.scaleY,G.scaleY]),ve=ia(K,[0,1],[C.translateX,G.translateX]),be=ia(K,[0,1],[C.translateY,G.translateY]),Le=ia(K,[0,1],[C.rotate,G.rotate]);K===1&&!A&&(w=!0);let Ce=()=>{sr(t,{opacity:P,scaleX:X,scaleY:oe,translateX:ve,translateY:be,rotate:Le},O)};ue.postRender(Ce)},{container:FR(M),target:M});L.push(B)};g?L_(g).then(M=>{N||b(M)}):t&&b(t)}if(d){let b=Cp(M=>{if(R!==1){let w=M.y.current*(1-R);sr(t,{y:w},{duration:0})}},{container:FR(t),target:t});L.push(b)}return()=>{L.forEach(b=>b())}}var mB=x(Y());function ti(...e){return(0,mB.useMemo)(()=>t=>{e.forEach(n=>{if(n!=null){if(typeof n=="function"){n(t);return}try{n.current=t}catch{throw new q(`Cannot assign value '${JSON.stringify(t)}' to ref '${JSON.stringify(n)}'`)}}})},e)}var EB=x(Y());function I7(){return()=>{}}function la(){return EB.useSyncExternalStore(I7,()=>!0,()=>!1)}function lr(){let e=!la(),t=fe();return ju(t.renderOptions)||e}var _B=x(Y());function lf(){return _B.default.useRef(0)}function g7({node:e,src:t,motionKey:n,websiteContext:r}){let o=ua.useRef(null),i=e.accessibleLabel||"",{disableInlineSvgGeneration:s}=r.renderOptions,a=!s&&e.type==="SVG"&&e.isDynamic,l=TB.get(e.hash),u=ua.useCallback(c=>{if(o.current){o.current.replaceChildren(c.cloneNode(!0));let f=o.current.querySelector("svg");f&&(i?(f.setAttribute("aria-label",i),f.setAttribute("role","img")):f.setAttribute("role","presentation"))}},[i]);return ua.useEffect(()=>{if(!a)return;if(l&&o.current){u(l);return}if(!t)return;let c=new AbortController,f=async()=>{try{let p=await fetch(t,{signal:c.signal});d(await p.text())}catch(p){if(console.error("Error loading SVG",p),p.name!=="AbortError")throw new _t("Error loading SVG",p)}},d=p=>{if(p==="")return;if(!p){console.warn("No SVG URL provided for",e.id);return}let _=new DOMParser().parseFromString(p,"image/svg+xml"),T=_.querySelector("svg"),h=_.querySelector("parsererror");
10694if(!T||h){console.error("Unable to load SVG",h);return}TB.set(e.hash,T),u(T)};return f(),()=>{c.abort()}},[t,e.hash,l,e.id,e.type,a,n,u]),o}var TB=new Map,hB=ua.forwardRef(function({node:t,parent:n,interactionHandlers:r,context:o,zIndex:i,transitionProps:s,codeBehaviorProps:a,websiteContext:l},u){let c=lf(),f=lr(),d=(0,sy.useRef)(null),p=(0,sy.useRef)(null),_=s?.smartAnimateType??te.NONE,{nodeCanAnimateRotation:T,layoutStyles:h,opacity:m,asset:E,src:O}=Ww({node:t,parent:n,context:o,zIndex:i,smartAnimateType:_,previousRotation:c,precomputeTransforms:f,websiteContext:l}),I={opacity:m,transform:Xr(h.outer.transform)},g=Zr(t,o),{motionProps:S,key:A,ref:R}=to(t.id,t.behaviors,t.assets,I,g),N=ti(u,R),L=g7({node:t,src:O,motionKey:A,websiteContext:l});return Se(Yw({node:t,parent:n,interactionHandlers:r,context:o,transitionProps:s,codeBehaviorProps:a,websiteContext:l,layerData:{nodeCanAnimateRotation:T,layoutStyles:h,opacity:m,asset:E,src:O},hookState:{behaviorProps:S,key:A,behaviorsRef:R,mergedRef:N,outerRef:d,codeBehaviorWrapperRef:p,previousRotation:c,svgContainerRef:L,ref:u}}),l)});var uf=x(Y());function OB({node:e,smartAnimateType:t,nodeHasStrokes:n,transitionData:r,borderStyles:o,strokeColorKeyframeProps:i}){let s=ln(r),{motionTransitionProps:a,cssStyles:l}=Zu(t,1,o??{},void 0,r,n?s:void 0),u=bi(t,r,o?.transform),c=e.id,f=i?.colorAnimate?.borderColor!==void 0,d=t!==te.NONE||f,p={...a,...u},_=f?bh(p,"borderColor",i.colorInitial.borderColor,i.colorAnimate.borderColor,i.colorTransition.borderColor):p;return ne({Tag:d?ir.div:"div",key:"border",nodeId:c,idSuffix:"border",styleSet:l,attributes:{"aria-hidden":!0,...d?_:{}}})}function IB(e){let{children:t,parentTransitionProps:n,onTransitionEnd:r,websiteContext:o}=e;if(!((n?.smartAnimateType??te.NONE)===te.INSTANCE_SUBTREE))return t;let a=SD(n?.transitionData,r);return o.sitesRenderers.renderAnimatePresence({...a,children:t?.map(l=>Se(l,o))})}var S7=e=>{let t=e.layoutMode;if(e.type!=="FRAME"||!(t==="HORIZONTAL"||t==="VERTICAL"))return;let n;e.primaryAxisAlignItems==="MAX"?n="flex-end":["CENTER","SPACE_EVENLY_LEGACY"].includes(e.primaryAxisAlignItems)&&(n="center");let r;if(e.counterAxisAlignItems==="MAX"?r="flex-end":e.counterAxisAlignItems==="CENTER"&&(r="center"),!(!n&&!r))return{display:"flex",flexDirection:t==="VERTICAL"?"column":"row",alignItems:r,justifyContent:n}};function gB({node:e,children:t,style:n,innerTag:r="div"}){let{overflow:o,overflowX:i,overflowY:s,borderRadius:a,...l}=n,u={overflow:o,overflowX:i,overflowY:s,...S7(e)},c=Object.values(u).some(m=>m!==void 0),f=ne({Tag:r,key:"clipper",nodeId:e.id,idSuffix:"al-clipper-inner",styleSet:l,children:t});if(!c)return f;let{minWidth:d,minHeight:p,maxWidth:_,maxHeight:T}=n,h=o!==void 0||i!==void 0||s!==void 0;return ne({Tag:"div",key:"clipper",nodeId:e.id,idSuffix:"al-clipper-outer",styleSet:{...u,borderRadius:h?a:void 0,width:"100%",height:"100%",minWidth:d,minHeight:p,maxWidth:_,maxHeight:T},children:f})}function SB({node:e,style:t,children:n,innerTag:r="div"}){return ne({Tag:r,key:"clipper",nodeId:e.id,idSuffix:"clipper",styleSet:t,children:n})}var RB=(e,t,n,r,o)=>{if(!gt(e))return!1;let i=!!t,s=i&>(t),a=i&&jr(t),l=e.paddingLeft+e.paddingRight;if(l>0){let c=Gt(e,t,n,o,r);switch(c){case re.FILL_PARENT:if(s&&!a)return!0;break;case re.HUG_CONTENTS:break;case re.FIXED:if(l>e.size.x)return!0;break;default:Fe(c)}}let u=e.paddingTop+e.paddingBottom;if(u>0){let c=dn(e,t,n,o,r);switch(c){case re.FILL_PARENT:if(s&&!a)return!0;break;case re.HUG_CONTENTS:break;case re.FIXED:if(u>e.size.y)return!0;break;default:Fe(c)}}return!1};var R7={width:"100%",height:"100%",position:"relative"};function AB(e){let{parent:t,needsAutolayoutClipper:n,needsClipper:r,websiteContext:o,children:i,listTag:s,styles:{clipperStyles:a,innerStyles:l,overflowStyles:u,borderDisplacement:c,wrapperSizeStyles:f,marqueeSizeStyles:d}}=e,p=Fn(t,o.renderOptions),_=gt(t),T={...f,...d,...u},h={};_&&(typeof t.minWidth=="number"&&(h.minWidth="inherit"),typeof t.minHeight=="number"&&(h.minHeight="inherit"),typeof t.maxWidth=="number"&&(h.maxWidth="inherit"),typeof t.maxHeight=="number"&&(h.maxHeight="inherit")),r&&(T={...T,...a});let m;if(n||r){let O=Object.values(u).some(g=>g!==void 0)?"inherit":void 0,I={node:t,innerTag:s,style:{...h,...a,...l,...u,...c,...p?f:R7,borderRadius:O},websiteContext:o,children:i};m=n?gB(I):SB(I)}else m=i;return p?o.sitesRenderers.renderMarquee({node:t,style:T,websiteContext:o,children:m}):m}function ay(e,t){return CS(e,t?.inheritedEffects).some(n=>n.type==="INNER_SHADOW")}function yB({node:e,parent:t,context:n,alwaysRenderBorderStyles:r,websiteContext:o}){if(!ay(e,n))return null;let i=$r(e)||r?zE(e,t):void 0,s={position:"absolute",inset:0,borderRadius:"inherit",pointerEvents:"none",...DS(e,CS(e,n?.inheritedEffects),o.renderOptions),...i};return ne({Tag:"div",key:"innerShadow",nodeId:e.id,idSuffix:"shadow",styleSet:s})}function Vh({children:e,context:t,parent:n,renderOptions:r,reverseZIndex:o=!1,codeBehaviorProps:i,renderFigmaLayer:s,websiteContext:a}){let l=A7({children:e,context:j_(r,t,n.absoluteBoundingBox),parent:n});return l.length?l.map(([u,{key:c,context:f}],d)=>s({name:"sites-layer",nodeId:u.id,childKey:c,node:u,parent:n,context:f,zIndex:o?l.length-d:void 0,codeBehaviorProps:i,websiteContext:a})):null}function A7({children:e,context:t,parent:n}){let r={...t},o=t?.masks||[];e.sort((a,l)=>tp(a,n)&&!tp(l,n)?-1:0);let i=[];for(let a of e)"isMask"in a&&a.visible&&a.isMask?r={...r,masks:[...o,a]}:i.push([a,{key:a.key,context:r}]);if(!t?.negativeItemSpacing)return i;let s=0;for(let a=i.length-1;a>=0;a--){let[l]=i[a];if(l.layoutPositioning!=="ABSOLUTE"&&l.visible){s=a;break}}return i.map(([a,l],u)=>a.layoutPositioning==="ABSOLUTE"||u===s?[a,{...l,context:{...l.context,negativeItemSpacing:void 0}}]:[a,l])}var ly="data-breakpoint",uy="data-breakpoint-id",y7="data-width",N7="data-height";function b7(e,t){let n=e.getAssetURL;if(!t||!n)return;let r="filter0";return`${n(t).split("#")[0]}#${r}`}var L7=(e,t,n,r,o,i,s,a,l,u)=>{let{minimizeAutoLayoutWrappers:c,dontUseChildDivForBorderStyles:f,useFigmaComponents:d}=u,p=d&&e.type==="FRAME"&&(e.originalType==="COMPONENT"||e.originalType==="INSTANCE"),_=t&>(t),T=gt(e),h=$r(e)||a,m=jr(e),E=_&&jr(t),O=h&&(Iv(e)||T&&!m||T&&m&&!e.strokesIncludedInLayout||_&&!E),I=e.effects&&e.effects.some(b=>b.type==="BACKGROUND_BLUR")&&e.effects.some(b=>b.type==="LAYER_BLUR"),g=r.length>1||r.some(b=>
10694b.needsBackgroundDiv)||i||I||ay(e,l),S;f?S=!1:S=h&&(p||O||g);let A=r.length>0&&g,R;c?R=!1:R=T&&(p||RB(e,t,n,l,u));let N=n.length>0&&(S&&o||R||tl(t)||i||s);return{needsBackgroundDiv:A,needsBorderDiv:S,needsClipper:N,needsAutolayoutClipper:T&&(R||s)}};function NB(e){let{node:t,parent:n,children:r,context:o,zIndex:i,smartAnimateType:s,previousRotation:a,precomputeTransforms:l,renderOptions:u}=e,{shouldOutputVariables:c,codeSyntaxLanguage:f}=u,d=K1(t,n,r,u,o),p=Yo(s,t.maybeAnimateRotation),_=qn({node:t,parent:n,context:o,zIndex:i,children:r,itemSpacing:d,codeSyntaxLanguage:f,options:{canAnimate:p,previousRotation:a,shouldOutputVariables:c,precomputeTransforms:l},renderOptions:u}),T=pn(o,t);return{itemSpacing:d,nodeCanAnimateRotation:p,layoutStyles:_,opacity:T}}function bB(e){let{node:t,parent:n,children:r,context:o,interactionHandlers:i,transitionProps:s,ref:a,websiteContext:l,previousRotation:u,outerRef:c,codeBehaviorWrapperRef:f,smartAnimateType:d,itemSpacing:p,nodeCanAnimateRotation:_,layoutStyles:T,opacity:h,codeBehaviorProps:m,behaviorProps:E,behaviorKey:O,parentRefObject:I,combinedRef:g,mergedRef:S,renderFigmaLayer:A}=e,{renderOptions:R}=l,{useFigmaClipContentsForOverflow:N,rootNodeStyle:L,codeSyntaxLanguage:b}=R,M=er({node:t,context:o,websiteContext:l}),w=xE(t.fills,t.assets,{width:t.size.x,height:t.size.y},{isDecorativeImage:t.isDecorativeImage??!1,hasChildren:r.length>0},l),B=s?.transitionData,y=ln(B),K=t.interactions??[],C=wo(K),G=mo(K),P=Fn(t,l.renderOptions),X=w.some(ro=>ro.imageProps),oe=w.some(ro=>ro.videoProps),ve=zo(t,X||oe||P),be=b7(l,t.effectSvgFileName),Le={...Gn(h,R,t.boundVariables?.opacity?.resolvedName,b&&t.boundVariables?.opacity?.resolvedCodeSyntax?.[b]),...Li(t)},Ce=t.scrollBehavior==="FIXED"||t.scrollBehavior==="STICKY_SCROLLS",Ue=d===te.INSTANCE_SUBTREE,ae=o?.withinInteractiveElement||Object.keys(E).length>0||Ue,le=Hs(t,G,C,ae,P),Re=yr(K,i,ae,l),Ye=Z_(le),de=Ye!==null,Pt=r?.every(ro=>ro.layoutAlign==="STRETCH")??!0,tt=t.type==="RECTANGLE"||"clipsContent"in t&&t.clipsContent,ft=Ue,{needsBackgroundDiv:xe,needsBorderDiv:dt,needsClipper:me,needsAutolayoutClipper:_n}=L7(t,n,r,w,tt,Ue,P,ft,o,R),no=C7(t,xe,dt,l),Vn={group:void 0,isInStickyOrFixedTree:Ce||(o?.isInStickyOrFixedTree??!1),negativeItemSpacing:p&&p<0?p:void 0,withinInteractiveElement:o?.withinInteractiveElement||G||C,parentIsList:de,allChildrenAreFillWidth:Pt,borderDisplacement:dt?void 0:YE(t),constrainingFrameSize:{width:t.size.x,height:t.size.y},inheritedEffects:Md(t,o?.inheritedEffects)},Hn={"data-name":Jr(l,t)};o?.dataAttributes&&Object.entries(o.dataAttributes).forEach(([ro,KV])=>{Hn[ro]=KV});let Po=$r(t),ri=gv(t,n),{clipperStyles:Of,containerStyles:oi,borderStyles:If,sharedBackgroundStyles:ii}=z1(t,n,Le,ft,be,dt,R),ji=Qn({node:t,parent:n,children:r,renderOptions:R}),hO=X1({node:t,parent:n,context:o,children:r,renderOptions:R}),tn=r?.length?_c(t,n,o,l):{};n||(L==="component"?tn={overflow:tt?"clip":void 0}:N?tn={overflow:tt&&(oi.borderRadius||oi.borderTopLeftRadius||oi.borderTopRightRadius||oi.borderBottomLeftRadius||oi.borderBottomRightRadius)?"clip":void 0}:L==="independent"?tn={overflow:tt?"clip":void 0}:o?.renderedByCode||l.withBaseStyles&&(Hn["data-page-overflowx"]=tn.overflowX,tn={overflow:"clip"}));let $i=If?OB({node:t,smartAnimateType:d,nodeHasStrokes:Po,transitionData:B,borderStyles:If,strokeColorKeyframeProps:no?.strokeColorKeyframeProps??null}):null,OO=Fw({node:t,parent:n,children:r,sharedBackgroundStyles:{...ii,...ri},backgroundInfo:w,smartAnimateType:d,transitionData:B,context:Vn,fillColorKeyframeProps:no?.fillColorKeyframeProps??null,websiteContext:l});xe||(T.outer.mixBlendMode||=w[0]?.backgroundStyles?.mixBlendMode);let{mixBlendMode:IO,...gO}=w[0]?.backgroundStyles??{},Ta=me||_n,jl={...oi,...Ta?{}:T.inner,...T.stickyWrapper?jR:{},...Ta?{}:Of,...Ta?{}:tn,...!xe&&l.withBaseStyles?{...ii,...gO}:{},...Qr({node:t,parent:n,transitionProps:s,renderOptions:R,maskStyles:M}),...T.transform3d,...o?.style||{}};Re.onClick&&T.stickyWrapper&&jl.display===void 0&&(jl.display="block");let kp=t.type==="FRAME"&&t.isBreakpointFrame,gf=Vh({children:r,context:Vn,parent:t,renderOptions:R,reverseZIndex:t.type!=="RECTANGLE"&&"itemRever
10694seZIndex"in t&&!!t.itemReverseZIndex,codeBehaviorProps:{parentRef:I},renderFigmaLayer:A,websiteContext:l}),Sf=AB({parent:t,needsAutolayoutClipper:_n,needsClipper:me,websiteContext:l,listTag:me&&de?Ye:void 0,styles:{clipperStyles:Of,innerStyles:T.inner,overflowStyles:tn,borderDisplacement:ri,wrapperSizeStyles:ji,marqueeSizeStyles:hO},children:IB({parentTransitionProps:t.transitionProps,onTransitionEnd:y,children:gf,websiteContext:l})});if(kp&&(Hn[uy]=po(t.id),Hn[ly]="true",Hn[y7]=t.size.x,Hn[N7]=t.size.y,l.isFigmake))return Sf;if(n&&(me||dt)){let ro=Y1(t,n);ro&&(T.outer.flex=ro)}let Zi=Bn({node:t,parent:n,context:o,transitionProps:s,outerStyles:T.outer,wrapperSizeStyles:ji,stickyWrapperStyles:T.stickyWrapper,transformChildWrapperStyles:T.transform,renderOptions:R,maskStyles:M}),SO=no?.strippedProps,Rf=Ll({keyframeMotionPropsOverride:SO,node:t,context:o,renderOptions:R,smartAnimateType:d,wrappersToRender:Zi}),WV=hr({children:[xe?OO:null,tt?null:$i,Sf,yB({node:t,parent:n,context:o,alwaysRenderBorderStyles:ft,websiteContext:l}),tt?$i:null]}),YV=Ao({semanticTagInfo:{semanticTag:me&&de?"div":le.semanticTag,interactiveSemanticTag:P&&le.interactiveSemanticTag==="ul"?null:le.interactiveSemanticTag},key:O,context:o,styles:jl,ref:_?g:S,nodeId:Zi.motionLayerContent.nodeId,attributes:{...Re,...Hn,...ve},node:t,keyframeMotionPropsOverride:Rf.childKeyframeMotionPropsOverride,wrappers:Zi.motionLayerContent,websiteContext:l,transitionProps:{opacity:h,smartAnimateType:d,behaviorProps:E,transitionData:B,onTransitionEnd:y},children:WV});return Dr({node:t,parent:n,context:o,transitionProps:s,codeBehaviorProps:m,layerRef:a,outerRef:c,codeBehaviorWrapperRef:f,previousRotation:u,wrappersToRender:Zi,websiteContext:l,keyframeMotionPropsOverride:Rf.wrapperKeyframeMotionPropsOverride,children:YV})}function C7(e,t,n,r){if(!t&&!n)return null;let o=e.keyframeData;if(!o)return null;let i=Di(o);if(!i)return null;let s=ho(r),a=s?ul(i,s.ease()):i,l=t&&(a.colorAnimate.background!==void 0||a.colorInitial.background!==void 0),u=n&&(a.colorAnimate.borderColor!==void 0||a.colorInitial.borderColor!==void 0);if(!l&&!u)return null;let c=l?{colorInitial:{background:a.colorInitial.background},colorAnimate:{background:a.colorAnimate.background},colorTransition:{background:a.colorTransition.background}}:null,f=u?{colorInitial:{borderColor:a.colorInitial.borderColor},colorAnimate:{borderColor:a.colorAnimate.borderColor},colorTransition:{borderColor:a.colorTransition.borderColor}}:null,d={...i.colorInitial},p={...i.colorAnimate},_={...i.colorTransition};l&&(delete d.background,delete p.background,delete _.background),u&&(delete d.borderColor,delete p.borderColor,delete _.borderColor);let T={...i,colorInitial:d,colorAnimate:p,colorTransition:_};return{fillColorKeyframeProps:c,strokeColorKeyframeProps:f,strippedProps:T}}var Hh=(0,uf.forwardRef)(function({node:t,parent:n,children:r,context:o,zIndex:i,interactionHandlers:s,transitionProps:a,codeBehaviorProps:l,websiteContext:u},c){let{renderOptions:f}=u,d=lf(),p=lr(),_=(0,uf.useRef)(null),T=(0,uf.useRef)(null),h=a?.smartAnimateType??te.NONE,{itemSpacing:m,nodeCanAnimateRotation:E,layoutStyles:O,opacity:I}=NB({node:t,parent:n,children:r,context:o,zIndex:i,smartAnimateType:h,previousRotation:d,precomputeTransforms:p,renderOptions:f}),g=Zr(t,o),{motionProps:S,key:A,ref:R}=to(t.id,t.behaviors,t.assets,{opacity:I,transform:Xr(O.outer.transform)},g),N=(0,uf.useRef)(null),L=ti(R,N),b=ti(c,L);return Se(bB({node:t,parent:n,children:r,context:o,interactionHandlers:s,transitionProps:a,ref:c,websiteContext:u,previousRotation:d,outerRef:_,codeBehaviorWrapperRef:T,smartAnimateType:h,itemSpacing:m,nodeCanAnimateRotation:E,layoutStyles:O,opacity:I,codeBehaviorProps:l,behaviorProps:S,behaviorKey:A,parentRefObject:N,combinedRef:L,mergedRef:b,renderFigmaLayer:cf}),u)});var lt=x(Ee()),jB=x(Y()),Yi=x(Y());var P7={TOP:"flex-start",BOTTOM:"flex-end",CENTER:"center"},D7={NONE:"none",UNDERLINE:"underline",STRIKETHROUGH:"line-through"},v7={ORIGINAL:"none",SMALL_CAPS:"none",SMALL_CAPS_FORCED:"none",UPPER:"uppercase",LOWER:"lowercase",TITLE:"capitalize"},x7={ORIGINAL:"normal",SMALL_CAPS:"small-caps",SMALL_CAPS_FORCED:"all-small-caps",UPPER:"normal",LOWER:"normal",TITLE:"normal"},M7={SUPER:"0.55em",SUB:"-0.25em",NORMAL:void 0};function xl(e,t,n,r,o){let{shouldOutputVariables:i,codeSyntaxLanguage:s,optimizeForTailwindConversion:a,disableFontFallbacks:l}=o.renderOptions,{fallbackFonts:u,fontFamily:c,fontVariations:f,fontSize:d,fontStyle:p,textCase:_,opentypeFlags:T,letterSpacingUnit:h,letterSpacingValue:m}=e.style,E={},O=!!e.style.responsiveTextStyleVariants?.length&&!a;if(c){let g=`${c}:${p}`,S=F7(g,u??[],l);if(i){let w="boundVariables"in e?e.boundVariables:null,B=jn(s&&w?.fontFamily?.[0]?.resolvedCodeSyntax?.[s],w?.fontFamily?.[0]?.resolvedName,S);E.fontFamily=B??S}else E.fontFamily=S;E.wordBreak="break-word";let A=n.get(g),R=u?.map(w=>n.get(`${w.fontFamily}:${w.fontStyle}`)).filter(w=>w?.variationAxes?.length)??[],N=!!A?.variationAxes?.length,L=!l&&R.length>0,b=N||R.length>0,M=A?.variationAxes??R[0]?.variationAxes??[];if(b){let w=[...M,{name:"OpticalSize",value:void 0,tag:"opsz"}
10694].filter(B=>f?.[B.name]!==void 0||B.value!==void 0).filter(B=>B.tag==="wght"?!N&&L?!0:(E.fontWeight=f?.[B.name]??B.value,!1):B.tag==="slnt"?B.value===0?(E.fontStyle="normal",!1):f&&B.name in f:!0);w.length>0?E.fontVariationSettings=w.map(B=>{let y=f?.[B.name]??B.value;return`"${B.tag}" ${y}`}).join(", "):a||(E.fontVariationSettings="normal"),A?.italic&&(E.fontStyle="italic")}else E.fontStyle=A?.italic?"italic":"normal"}let I=e.style.fills||"fills"in e&&e.fills||null;if(I?.length===0&&(E.color="transparent",a||(E.WebkitTextFillColor="transparent")),I){let g=I.filter(A=>A.visible!==!1&&A.type==="SOLID"),S=I.filter(A=>A.visible!==!1&&A.type!=="SOLID");if(g.length>0){let A=Bd(g.map(R=>new xt(R.color,o.renderOptions,R.opacity,Ht,R.boundVariables?.color?.resolvedName,s&&R.boundVariables?.color?.resolvedCodeSyntax?.[s])),o.renderOptions);E.color=A.value,a||(E.WebkitTextFillColor=A.value)}if(S.length){let A=xE(I,t,r,{isDecorativeImage:!1,disableImageTag:!0},o)[0]?.backgroundStyles;A&&Object.keys(A).length&&(E.color="transparent",E.backgroundClip="text",a||(E.WebkitBackgroundClip="text",E.WebkitTextFillColor="transparent"),Object.assign(E,A))}}if(_){let g=v7[_]||"none";g!=="none"&&(E.textTransform=g);let S=x7[_]||"normal";S!=="normal"&&(E.fontVariantCaps=S)}if(T&&(E.fontFeatureSettings=Object.entries(T).map(([g,S])=>`"${g.toLowerCase()}" ${S}`).join(", ")),d&&(E.fontSize=O?`var(--responsive-font-size,${v(d)}px)`:`${v(d)}px`),h&&m!==void 0){let g=h==="PIXELS"?`${v(m,4)}px`:`${v(m/100*(d??16),4)}px`;E.letterSpacing=O?`var(--responsive-letter-spacing,${g})`:g}if(!a&&e.style.responsiveTextStyleVariants?.length){let g=e.style.responsiveTextStyleVariants.sort((S,A)=>S.minWidth-A.minWidth);E.media=Object.fromEntries(g.map(S=>{let A=xl({...e,style:S.style},t,n,r,o),R={};if(S.style.fontSize!==void 0&&(R["--responsive-font-size"]=`${v(S.style.fontSize)}px`),S.style.letterSpacing!==void 0){let y=S.style.letterSpacingUnit==="PIXELS"?`${v(S.style.letterSpacing,4)}px`:`${v(S.style.letterSpacing/100*(S.style.fontSize??16),4)}px`;R["--responsive-letter-spacing"]=y}let N=vl(S,o.renderOptions);N&&(R["--responsive-line-height"]=N);let{fontSize:L,letterSpacing:b,lineHeight:M,...w}=A,B={...w,...R};return[`(min-width: ${S.minWidth}px)`,B]}))}if(i){let g="boundVariables"in e?e.boundVariables:null;if(E.fontStyle&&(E.fontStyle=jn(s&&g?.fontStyle?.[0]?.resolvedCodeSyntax?.[s],g?.fontStyle?.[0]?.resolvedName,E.fontStyle)??E.fontStyle),E.fontWeight&&(E.fontWeight=jn(s&&g?.fontWeight?.[0]?.resolvedCodeSyntax?.[s],g?.fontWeight?.[0]?.resolvedName,E.fontWeight)??E.fontWeight),E.fontSize){let S=s&&g?.fontSize?.[0]?.resolvedCodeSyntax?.[s],A=g?.fontSize?.[0]?.resolvedName;E.fontSize=(typeof d=="number"&&!O?Pe(S,A,v(d),o.renderOptions):jn(S,A,E.fontSize))??E.fontSize}if(E.letterSpacing){let S=s&&g?.letterSpacing?.[0]?.resolvedCodeSyntax?.[s],A=g?.letterSpacing?.[0]?.resolvedName;E.letterSpacing=(h==="PIXELS"&&typeof m=="number"&&!O?Pe(S,A,v(m,4),o.renderOptions):jn(S,A,E.letterSpacing))??E.letterSpacing}}return E}function LB(e,t,n){let r={};return e.textAlignHorizontal&&e.textAlignHorizontal!=="LEFT"?r.textAlign=e.textAlignHorizontal==="JUSTIFIED"?"justify":e.textAlignHorizontal?.toLowerCase():(e.accessibleHTMLTag==="BUTTON"||n?.withinInteractiveElement||n?.hasButton)&&(!e.textAlignHorizontal||e.textAlignHorizontal==="LEFT")&&(r.textAlign="left"),e.textAlignVertical!=="TOP"&&(r.display="flex",r.flexDirection="column",r.justifyContent=P7[e.textAlignVertical||"TOP"]),t.leadingTrim==="CAP_HEIGHT"&&(r.textBoxTrim="trim-both",r.textBoxEdge="cap alphabetic"),r}function cy(e,t,n,r){return xl(t,e.assets,n,{width:e.size.x,height:e.size.y},r)}function fy(e,t,n,r,o){let{renderOptions:i}=o,{codeSyntaxLanguage:s}=i,a=xl(n,e.assets,r,{width:e.size.x,height:e.size.y},o);function l(h){return n.style[h]??t.style[h]??e.style[h]}let u=l("textDecoration"),c=l("textDecorationThicknessUnit"),f=l("textDecorationThicknessValue");if(u&&u!==PP.NONE&&f!==0){a.textDecorationLine=n.characters.length>0?D7[u]:void 0;let h=l("textDecorationSkipInk"),m=l("textUnderlineOffsetUnit"),E=l("textUnderlineOffsetValue"),O=l("textDecorationStyle"),I=l("textDecorationFills");if(h!==void 0&&(a.textDecorationSkipInk=h?void 0:"none"),E!==void 0?a.textUnderlineOffset=`${E}${m==="PIXELS"?"px":"%"}`:a.textUnderlinePosition="from-font",f!==void 0?a.textDecorationThickness=`${f}${c==="PIXELS"?"px":"%"}`:a.textDecorationThickness="from-font",O!==void 0&&(a.textDecorationStyle=O),I!==void 0){let g=Bd(I.filter(S=>S.type==="SOLID").map(S=>new xt(S.color,i,S.opacity,Ht,S.boundVariables?.color?.resolvedName,s&&S.boundVariables?.color?.resolvedCodeSyntax?.[s])),i);a.textDecorationColor=g.value}}let d=n.style.fontVariantPosition??t.style.fontVariantPosition??e.style.fontVariantPosition;if(d&&(a.verticalAlign=M7[d],d!=="NORMAL")){let h=l("fontSize");a.fontSize=`${(h||0)*.645}px`}let p=vl(n,i),_=p??vl(t,i)??vl(e,i)??"normal",T=p?n.style.responsiveTextStyleVariants:e.style.responsiveTextStyleVariants;return a.lineHeight=dy({responsiveTextStyleVariants:T,defaultLineHeight:_,renderOptions:i}),(n.style.hyperlink||t.style.hyperlink||e.style.hyperlink)&&(a.cursor="pointer"),a}var CB=(e,t)=>{if(!(e==="NONE"||e==="UNORDERED"))return t===2||t===5?"lower-alpha":t===3?"lower-roman":"decimal"},dy=({responsiveTextStyleVariants:e,defaultLineHeight:t,renderOptions:n})=>{let{optimizeForTailwindConversion:r}=n;return e?.some(i=>vl(i,n))&&!r?`var(--responsive-line-height,${t})`:t},vl=(e,t)=>
10694{let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t,o=e.style.lineHeightUnit==="INTRINSIC_%"?e.style.lineHeightPercent===void 0||e.style.lineHeightPercent===100?void 0:`${e.style.lineHeightPercent}%`:e.style.lineHeightUnit==="FONT_SIZE_%"?`${v((e.style.lineHeightPercentFontSize??100)/100)}`:e.style.lineHeightUnit==="PIXELS"&&e.style.lineHeightPx!==void 0?`${v(e.style.lineHeightPx)}px`:void 0;if(n&&o){let i="boundVariables"in e?e.boundVariables:null,s=r&&i?.lineHeight?.[0]?.resolvedCodeSyntax?.[r],a=i?.lineHeight?.[0]?.resolvedName;return e.style.lineHeightUnit==="PIXELS"&&typeof e.style.lineHeightPx=="number"?Pe(s,a,v(e.style.lineHeightPx),t)??o:jn(s,a,o)??o}return o},py=e=>e.textAutoResize==="WIDTH_AND_HEIGHT"||e.style.textTruncation==="ENDING"&&e.style.maxLines===1;function F7(e,t,n=!1){return n?`"${e}"`:[`"${e}"`,...t.map(r=>`"${r.fontFamily}:${r.fontStyle}"`),"sans-serif"].join(",")}function PB(e){if(typeof Intl<"u"&&Intl.Segmenter)try{let t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e),n=>n.segment)}catch{return Array.from(e)}return Array.from(e)}function Wh(e){if(typeof Intl<"u"&&Intl.Segmenter)try{let t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).length}catch{return Array.from(e).length}return Array.from(e).length}var DB=/(\s+)/;function vB(e,t){let{characterStyleOverrides:n,characters:r,lineIndentations:o,lineStyleOverrides:i,lineTextDirections:s,listStartOffsets:a,lineTypes:l,styleOverrideTable:u,lineStartsWithPunctuation:c,resolvedParagraphValues:f}=e;if(typeof r!="string"){let O=new _t("TextNode.characters is not a string");O.errorDetail=JSON.stringify({type:typeof r,value:r,nodeId:e.id,nodeName:e.name}),De.reportError(O),console.error("TextNode.characters is not a string:",{type:typeof r,value:r,nodeId:e.id,nodeName:e.name})}let p=(typeof r=="string"?r:"").replace(/\r/g," ").split(` 10695`),_=e.style.maxLines;_&&(p=p.slice(0,_));let T=0,h=0,m=e.style.fontSize;return p.map((O,I)=>{let g=i[I]?u[i[I]]||{}:{},S=0,A=0,R=(e.renderTextWordHook?O.split(DB):e.renderTextCharacterHook?PB(O):e.renderTextLineHook?[O]:Array.from(O)).reduce((b,M)=>{let w=T+S,B=Array.from(M);if(e.renderTextWordHook||e.renderTextLineHook){let y=B.map((G,P)=>n[w+P]),K=y.every(G=>G===y[0]),C={};if(e.renderTextWordHook){if(M.length===0)return b;DB.test(M)||(C.wordIndex=A,A++),K||(C.originalWord=M)}K?b.push({characters:M,override:y[0],renderHookMetadata:C}):B.forEach((G,P)=>{b.push({characters:G,override:y[P],renderHookMetadata:C})})}else if(e.renderTextCharacterHook)b.push({characters:M,override:n[w],renderHookMetadata:{globalCharacterIndex:h}});else{let y=n[w],K=b[b.length-1];K&&K.override===y?K.characters+=M:b.push({characters:M,override:y})}return S+=B.length,h++,b},[]).map(b=>{let M=b.override?u[b.override]??{}:{};t.fontSize||(M.fontSize=M.fontSize??m);let w=e.style.responsiveTextStyleVariants;if(!M.responsiveTextStyleVariants){let y=w?.filter(K=>K.style.fontSize).map(K=>({...K,style:{fontSize:K.style.fontSize}}));y?.length&&(M.responsiveTextStyleVariants=y)}let B={characters:b.characters,style:M};return b.renderHookMetadata&&(B.renderHookMetadata=b.renderHookMetadata),B});T+=O.length;let N=n[T]&&u[n[T]]||{};T+=1,R.length===0&&R.push(G7(l[I]&&l[I]!==ka.NONE?m:N.fontSize??m));let L=f?.[I];return{spans:R,style:L?{...g,...L}:g,direction:s?.[I],indentation:o[I]||0,startOffset:a[I]??void 0,listOptions:{type:l[I]||ka.NONE},startsWithPunctuation:!!c?.[I]}})}function G7(e){return{characters:"",style:{fontSize:e}}}function my(e,t,n){if(t&&!n)return"a";switch(e.accessibleHTMLTag){case"H1":return"h1";case"H2":return"h2";case"H3":return"h3";case"H4":return"h4";case"H5":return"h5";case"H6":return"h6";case"DIV":return"div";case"P":case"AUTO":default:return"p"}}function xB(e,t,n){return e?n?"div":"a":t?n?"div":"button":"div"}function Yh({children:e}){return e}function k7(e){return e.length>0&&e.every(t=>typeof t!="string"||t==="")}function FB(e,t,n){if(!e.characters.length)return{elements:["\u200B"]};if(n&&GB.test(e.characters)){let r=U7(e.characters,n),o=MB(r,t);return{elements:o,dropWrapper:k7(o)}}return{elements:MB([e.characters],t)}}var Ey=/[\u2028\u2029]/,MB=(e,t)=>e.flatMap(n=>
10695typeof n!="string"?[n]:n.split(Ey).flatMap((r,o,i)=>o<i.length-1||t&&r===""?[r,ne({Tag:"br",key:"br"+o,attributes:{"aria-hidden":!0}})]:[r])),GB=/[\u{E000}-\u{F8FF}\u{F0000}-\u{10FFFD}]/u,w7=/([\u{E000}-\u{F8FF}]|[\u{F0000}-\u{10FFFD}])/u;function B7(e,t){let n=String(e.codePointAt(0));for(let r of t.groups){let o=r.codepointToName[n];if(o!==void 0)return{tagName:r.tagName,body:r.bodyTemplate.replace("{{name}}",o)}}}function U7(e,t){if(!GB.test(e))return[e];let n=new Map;return e.split(w7).reduce((r,o,i)=>{if(!o)return r;if(i%2===0)r.push(o);else{n.has(o)||n.set(o,B7(o,t));let s=n.get(o);s?r.push(ne({Tag:s.tagName,children:[IP(s.body)]})):r.push(o)}return r},[])}var _y=ka.NONE,V7="sp",H7="p",kB="s",W7="ws",Y7=e=>e===void 0?void 0:`${e}px`;function BB(e){if(e)return"children"in e||e.block.listOptions&&e.block.listOptions.type!=="NONE"?"list":"paragraph"}function K7(e,t,n,r,o,i){return t.map((s,a)=>hr({key:a,children:HB({blockKey:a,tree:s,node:e,context:n,nextBlockType:BB(t[a+1]),props:r,websiteContext:o,outerStyles:i})}))}function UB(e){let{node:t,parent:n,context:r,zIndex:o,smartAnimateType:i,previousRotation:s,precomputeTransforms:a,renderOptions:l}=e,{shouldOutputVariables:u,codeSyntaxLanguage:c}=l,f=Yo(i,t.maybeAnimateRotation),d=qn({node:t,parent:n,context:r,zIndex:o,children:[],codeSyntaxLanguage:c,options:{canAnimate:f,previousRotation:s,shouldOutputVariables:u,precomputeTransforms:a},renderOptions:l}),p=pn(r,t);return{nodeCanAnimateRotation:f,layoutStyles:d,opacity:p}}function VB(e){let{node:t,parent:n,context:r,interactionHandlers:o,transitionProps:i,codeBehaviorProps:s,ref:a,websiteContext:l,previousRotation:u,outerRef:c,codeBehaviorWrapperRef:f,smartAnimateType:d,canSmartAnimateInstance:p,nodeCanAnimateRotation:_,layoutStyles:T,opacity:h,behaviorProps:m,behaviorKey:E,behaviorsRef:O,mergedRef:I}=e,g=l.websiteData.fonts,S=l.renderOptions,{codeSyntaxLanguage:A,optimizeForTailwindConversion:R}=S,N=er({node:t,context:r,websiteContext:l}),L=xl(t,t.assets,g,{width:t.size.x,height:t.size.y},l),b=t.interactions??[],M=wo(b),w=mo(b)||t.style.hyperlink!=null,B=zo(t),y=sf(t,S),K=Bs(t,n,r)||_,C=Qn({node:t,parent:n,children:null,renderOptions:S}),G=i?.transitionData,P=ln(G),X={fontSize:Object.values(t.styleOverrideTable).find(de=>de.fontSize)?void 0:v(t.style.fontSize)},oe={...T.inner,...Gn(h,S,t.boundVariables?.opacity?.resolvedName,A&&t.boundVariables?.opacity?.resolvedCodeSyntax?.[A]),...Li(t),...kD(bs(t,!1),S),...L,...LB(t,t.style,{withinInteractiveElement:r?.withinInteractiveElement,hasButton:M}),...N,...T.transform3d,...r?.style||{},fontSize:X.fontSize?L.fontSize:0,lineHeight:0};if(R||(oe["--letter-spacing"]=oe.letterSpacing??0),t.style.textTruncation==="ENDING"){let de=t.style.maxLines;de&&de>1&&(R||(oe.display="-webkit-box",oe.WebkitLineClamp=de,oe.WebkitBoxOrient="vertical"),oe.height&&(oe.maxHeight=oe.height,oe.height=void 0)),oe.overflow="hidden",oe.textOverflow="ellipsis"}py(t)&&(oe.whiteSpace="nowrap");let ve=r?.withinInteractiveElement||Object.keys(m).length>0||d===te.INSTANCE_SUBTREE,be=yr(b,o,ve,l),Le={semanticTag:xB(w,M,ve)},Ce=KB(t.style.hyperlink,ve,l),Ue=l.renderOptions.optimizeForTailwindConversion?void 0:"textContents",ae=Fn(t,l.renderOptions),le=Bn({node:t,parent:n,context:r,transitionProps:i,outerStyles:T.outer,wrapperSizeStyles:C,stickyWrapperStyles:T.stickyWrapper,transformChildWrapperStyles:T.transform,renderOptions:S}),Re=de=>{let Pt=de;if(de.renderTextHook){let Po=de.renderTextHook.renderText({characters:de.characters,length:Wh(de.characters),TextComponent:ri=>(ri.characters&&(de={...de,characters:ri.characters}),null)});Po?.props?.characters&&(Pt={...de,characters:Po.props.characters})}let tt=z7(vB(Pt,X),X),ft=p||tt.length>1||w||M||t.textAlignVertical!=="TOP"||ae||t.style.hangingList||y||r?.parentIsList,xe=_?O:I,dt={...B,...be},me={nodeId:le.motionLayerContent.nodeId,additionalClassName:Ue,styles:oe,ref:xe,attributes:dt},_n=ft?void 0:le.motionLayerContent.outerStyles,no=K7(de,tt,r,ft?void 0:me,l,_n),Vn=ae?l.sitesRenderers.renderMarquee:Yh,Xi=K?Mh:Yh,Hn=ft?Ao:Yh;return Xi({ref:_||p||y?a:null,context:r,node:t,parent:n,childWrapperStyles:{...T.transform},transitionData:G,canAnimate:_,smartAnimateType:d,previousRotation:u,transformRef:c,codeBehaviorWrapperRef:f,outerStyles:le.transformWrapper.outerStyles,tag:le.transformWrapper.tag,no
10695deId:le.transformWrapper.nodeId,idSuffix:le.transformWrapper.idSuffix,websiteContext:l,children:Dh(le.customEffectWrapper,hr({key:E,children:Hn({semanticTagInfo:{interactiveSemanticTag:null,semanticTag:Le.semanticTag},...me,context:r,node:t,wrappers:le.motionLayerContent,websiteContext:l,transitionProps:{opacity:h,smartAnimateType:d,behaviorProps:m,transitionData:G,onTransitionEnd:P},attributes:{...dt,...Ce,...r?.dataAttributes},children:Vn({node:de,websiteContext:l,children:no})})}),t,l.renderOptions)})},Ye=y?l.sitesRenderers.renderCodeBehaviorWrapper({codeBehaviors:t.behaviors.code,ref:f,outerStyles:le.codeBehaviorWrapper.outerStyles,tag:le.codeBehaviorWrapper.tag,websiteContext:l,children:l.sitesRenderers.renderRenderHooksConsumer({node:t,renderNode:de=>Se(Re(de),l),codeBehaviorProps:{...s,transformRef:c}})}):Re(t);return Rp({nodeId:le.stickyWrapper.nodeId,idSuffix:le.stickyWrapper.idSuffix,stickyWrapperStyles:T.stickyWrapper,tag:le.stickyWrapper.tag,children:Ye})}function z7(e,t){let n={children:[],type:_y,lineStyleType:void 0};t&&(n.style=t);let r=[n];for(let o of e){let i={block:o,style:t},s=o.listOptions?.type||_y;if(s!=="NONE"){let a=o.indentation+1;for(;r.length>a||r.length===a&&r[r.length-1].type!=="NONE"&&r[r.length-1].type!==s;)r.pop();for(;r.length<a;){let l=a-r.length===1?o.startOffset:void 0,u={children:[],lineStyleType:CB(s,r.length),type:s,start:l,style:{...o.style,...t}};r[r.length-1].children.push(u),r.push(u)}}else r=[n];r[r.length-1].children.push(i)}return n.children}function HB({nextBlockType:e,tree:t,node:n,context:r,blockKey:o,props:i,websiteContext:s,outerStyles:a}){if("children"in t)return $7({listNode:t,node:n,props:i,nextBlockType:e,websiteContext:s,outerStyles:a,children:t.children.map((d,p)=>hr({key:p,children:HB({blockKey:p,tree:d,node:n,context:r,nextBlockType:BB(t.children[p+1]),websiteContext:s,outerStyles:void 0})}))});let{block:l}=t,u;if(n.renderTextWordHook){let d=X7(l.spans);u=[];for(let p of d){if(p.length===0)continue;let _=p[0]?.renderHookMetadata?.wordIndex;if(_==null)for(let T of p)u.push(Ty({spanKey:u.length,span:T,block:l,node:n,context:r,blockKey:o,websiteContext:s}));else u.push(wB({substringKey:u.length,spans:p,node:n,block:l,context:r,blockKey:o,wordIndex:_,websiteContext:s}))}}else n.renderTextLineHook?u=[wB({substringKey:0,spans:l.spans,node:n,block:l,context:r,blockKey:o,websiteContext:s})]:u=l.spans.map((d,p)=>Ty({spanKey:p,span:d,block:l,node:n,context:r,spanIndex:p,blockKey:o,websiteContext:s}));if((l.listOptions?.type||_y)!=="NONE")return Z7({node:n,block:l,commonFontSize:t.style?.fontSize,nextBlockType:e,websiteContext:s,children:u});let f=e===void 0;return u.length===1&&!n.renderTextCharacterHook&&!n.renderTextWordHook&&!n.renderTextLineHook&&!n.renderTextHook?j7({node:n,context:r,block:l,isLastBlock:f,props:i,websiteContext:s,outerStyles:a}):J7({node:n,block:l,children:u,props:i,isLastBlock:f,websiteContext:s,outerStyles:a})}function X7(e){let t=[];for(let n of e){let r=t[t.length-1];if(!r){t.push([n]);continue}r[0]?.renderHookMetadata?.wordIndex===n.renderHookMetadata?.wordIndex?r.push(n):t.push([n])}return t}var hy=(e,t)=>e===void 0?t:t===void 0?e:e.add(t);function j7({node:e,context:t,block:n,isLastBlock:r,props:o,websiteContext:i,outerStyles:s}){n.spans.length;let{style:a,props:l}=YB({node:e,block:n,isLastBlock:r,websiteContext:i}),u=!!e.style.hyperlink,c=!!t?.withinInteractiveElement||u,{style:f,className:d,children:p,attributes:_,isHyperlink:T,dropWrapper:h}=Iy({node:e,withinInteractiveElement:c,block:n,span:n.spans[0],websiteContext:i});if(h)return hr({children:p});let{additionalClassName:m,styles:E,attributes:O,...I}=o??{},g={display:"block",...s,...E,...a,...f,marginBottom:hy(s?.marginBottom,a.marginBottom)},S=my(e,T,c);return ne({Tag:S,key:V7,styleSet:[g,d,m],attributes:{...O,...l,..._},...I,children:p})}function $7({listNode:e,node:t,children:n,nextBlockType:r,props:o,websiteContext:i,outerStyles:s}){let a=e.children.find(I=>"block"in I)?.block,l=a?.spans[0],u=i.websiteData.fonts,c=e.type===ka.ORDERED,f=i.renderOptions,{disableTextMarkerVariables:d}=f,p=a&&l?fy(t,a,l,u,i):{},_=d?{}:{"--list-marker-background-clip":p.backgroundClip??"initial","--list-marker-color":p.color??"initial","--list-marker-font-size":p.fontSize??"initial","--list-marker-line-height":p.lineHeight??"initial","--list-marker-text-fill-color":p.WebkitTextFillColor??"initial","--list-marker-vertical-align":p.verticalAlign??"initial"},{additionalClassName:T,styles:h,attributes:m,...E}=o??{},O={...s,...h,..._,listStyleType:c?e.lineStyleType:void 0,marginLeft:t.style.hangingList?"-1.5em":void 0,marginBottom:hy(s?.marginBottom,Oy(t,void 0,r,f))};return ne({Tag:c?"ol":"ul",styleSet:[O,T],attributes:{...m,...c?{start:e.start}:{}},...E,children:n})}var Oy=(e,t,n,r)=>{let{shouldOutputVariables:o,codeSyntaxLanguage:i}=r;if(n==="paragraph"){let s=t?.style.paragraphSpacing!==void 0?t.style.paragraphSpacing:e.style.paragraphSpacing;return o?Is(i&&e.boundVariables?.paragraphSpacing?.[0]?.resolvedCodeSyntax?.[i],e.boundVariables?.paragraphSpacing?.[0]?.resolvedName,s,r)??W.px(s):W.px(s)}if(n==="list")return t?.style.listSpacing!==void 0?W.px(t.style.listSpacing):W.px(e.style.listSpacing)};function WB(e){switch(e){case"BALANCE":return"balance";case"PRETTY":return"pretty";default:return}}var Kh=1.5;function Z7({children:e,node:t,block:n,commonFontSize:r,nextBlockType:o,websiteContext:i}){let s=i.websiteData.fonts,{renderOptions:a}=i,{optimizeForTailwindConversion:l}=a,u=t.style.textAlignHorizontal==="LEFT"||t.style.textAlignHorizontal==="JUSTIFIED",c=cy(t,n,s,i),f=t.behaviors?.code?.length||n.spans.some(_=>_.characters.match(/\s{2,}/)),d=l&&n.listOptions?.type===ka.UNORDERED?"disc":void 0,p={whiteSpace:f?"pre-wrap":void 0,...c,listStylePosition:u?void 0:"inside",marginInlineStart:r?Y7(Kh*n.indentation*r):W.var("--list-marker-font-size",0).multiply(Kh).multiply(n.indentation).toStyleValue({forTailwind:l}),marginBottom:Oy(t,n,o,a),"--letter-spacing":l?void 0:0,listStyleType:d,textWrap:WB(n.style.textWrapStyle)};return ne({Tag:"li",styleSet:p,children:e})}function J7({node:e,block:t,children:n,isLastBlock:r,props:o,websiteContext:i,outerStyles:s}){let{additionalClassName:a,styles:l,attributes:u,...c}=o??{},{style:f,props:d}=YB({node:e,block:t,isLastBlock:r,websiteContext:i}),p={...s,...l,...f,marginBottom:hy(s?.marginBottom,f.marginBottom)},_=my(e,!1,!1);return ne({Tag:_,key:H7,styleSet:[p,a],attributes:{...u,...d},...c,children:n})}function YB({node:e,block:t,isLastBlock:n,websiteContext:r}){let o=r.websiteData.fonts,i=r.renderOptions,{shouldOutputVariables:s,codeSyntaxLanguage:a}=i,l=cy(e,t,o,r),u={lineHeight:0,...l,marginBottom:Oy(e,t,n?void 0:"paragraph",i),textWrap:WB(t.style.textWrapStyle)},c=t.style.paragraphIndent??e.paragraphIndent;if(c&&(u.textIndent=c,s&&u.textIndent)){let p=a&&e.boundVariables?.paragraphIndent?.[0]?.resolvedCodeSyntax?.[a],_=e.boundVariables?.paragraphIndent?.[0]?.resolvedName;u.textIndent=Pe(p,_,c,i)??u.textIndent}let f=l.fontSize??v(e.style.fontSize);return e.style.hangingPunctuation&&t.startsWithPunctuation&&(i.optimizeForTailwindConversion?u.textIndent=`calc(1px * (${c??0}px-0.45*${f}px))`:u.textIndent=`calc(${c??0}px - 0.45 * ${f}px)`),e.style.textTruncation==="ENDING"&&(e.style.maxLines===1&&(u.overflow="hidden",u.textOverflow="ellipsis"),u.fontSize=f),(e.characters.match(/\s{2,}/)||e.behaviors?.code?.length)&&(u.whiteSpace=py(e)?"pre":"pre-wrap"),{style:u,props:{dir:t.direction}}}function Ty({node:e,context:t,block:n,span:r,spanIndex:o=0,blockKey:i,spanKey:s,websiteContext:a}){let l=!!e.style.hyperlink,u=!!t?.withinInteractiveElement||l,{style:c,className:f,children:d,attributes:p,isHyperlink:_}=Iy({node:e,withinInteractiveElement:u,block:n,span:r,websiteContext:a}),T=[c,f],h=r.renderHookMetadata?.globalCharacterIndex,m;if(!e.renderTextCharacterHook)m=d;else{let O=e.renderTextCharacterHook.renderTextCharacter({character:r.characters,index:o,globalIndex:h??0,columnIndex:o,lineNumber:i,characters:e.characters,TextCharacterComponent:I=>I.character&&Ey.test(I.character)?a.renderElement({Tag:"br"}):a.renderElement({Tag:"span",children:I.character??r.characters})});m=[O!=null?Ot(O):r.characters]}let E=ne({Tag:"span",key:`${kB}-${s}`,styleSet:T,attributes:p,children:m});return _&&!u?ne({Tag:"a",key:`${kB}-${s}`,styleSet:T,attributes:p,children:E}):E}function wB(e){return hr({key:`${W7}-${e.substringKey}`,children:q7(e)})}function q7({node:e,spans:t,block:n,context:r,blockKey:o,wordIndex:i=0,websiteContext:s}){let a=!!e.style.hyperlink,l=!!r?.withinInteractiveElement||a,{style:u,className:c,attributes:f}=Iy({node:e,withinInteractiveElement:l,block:n,span:t[0],websiteContext:s}),d=t.map((E,O)=>Ty({spanKey:O,span:E,block:n,node:e,context:r,blockKey:o,websiteContext:s})),p=null,_=e.renderTextWordHook;if(_!=null){let E=t[0]?.renderHookMetadata?.originalWord??t[0]?.characters??"";p=_.renderTextWord({word:E,index:i,characters:e.characters,length:Wh(E),TextWordComponent:O=>
10695O.word==null||O.word===E?s.renderFragment({children:d.map(I=>Se(I,s))}):s.renderElement({Tag:"span",children:O.word})})}let T=null,h=e.renderTextLineHook;if(h!=null){let E=t.map(O=>O.characters).join("");T=h.renderTextLine({line:E,index:o,characters:e.characters,length:Wh(E),TextLineComponent:O=>O.line==null||O.line===E?s.renderFragment({children:d.map(I=>Se(I,s))}):s.renderElement({Tag:"span",children:O.line})})}let m=p!=null?[Ot(p)]:T!=null?[Ot(T)]:d;return ne({Tag:"span",styleSet:[u,c],attributes:f,children:m})}function Iy({node:e,withinInteractiveElement:t,block:n,span:r,websiteContext:o}){let i=o.websiteData.fonts,s=o.renderOptions,{disableAdjustLetterSpacing:a}=s,l=fy(e,n,r,i,o),u=r===n.spans[n.spans.length-1],c=u&&Q7(r,e.style),f=!a&&u&&c&&e.layoutAlign!=="STRETCH"&&e.layoutGrow!==1?"adjustLetterSpacing":void 0,{elements:d,dropWrapper:p}=FB(r,u,o.renderOptions.textCodepointSubstitution),_=r.style.hyperlink??n.style.hyperlink;if(_){let h=KB(_,t,o);return{isHyperlink:!0,dropWrapper:p,style:l,className:f,children:d,attributes:h}}return{isHyperlink:!1,dropWrapper:p,style:l,className:f,children:d}}function Q7(e,t){return Boolean(e?.style.letterSpacing||t.letterSpacing)}function KB(e,t,n){if(!e||!e.type)return{};if(e.type==="NODE"&&e.nodeID)return Ad(s=>{s.preventDefault(),s.stopPropagation(),P_(e.nodeID,n)},e.type,e.nodeID,!1,t,n);let r=!!e.openInNewTab;return Ad(i=>{i.preventDefault(),i.stopPropagation(),window.open(e.url,r?"_blank":"_self")},e.type,e.url,r,t,n)}var zB=x(Y());function zh(e,t,n){return ge((0,zB.useMemo)(()=>ce(e),t),n)}var XB=x(Y());function e9(e,t){if(t){e.stack+=` 10696 10697React stack:`+t.componentStack;let n=new Error("React component stack where the error occurred");n.stack=t.componentStack,e.cause=n}}var ca=class extends XB.default.Component{state={hasError:!1,error:null,errorInfo:null};componentDidCatch(t,n){this.setState({error:t,errorInfo:n}),e9(t,n),this.context.reportError(t,{"error-boundary-name":this.props.name}),this.context.setMaterializationError(this.props.nodeId,{nodeName:this.props.name,nodeId:this.props.nodeId,errorMessage:t.stack})}componentWillUnmount(){this.context.setMaterializationError(this.props.nodeId)}render(){return this.state.error?null:this.props.children}};Do(ca,"contextType",Fd);var fa=ca;var t9={fontFamily:'"Inter:Regular"',fontSize:"11px",fontWeight:"400",lineHeight:"1.5"},n9=16,$B={cursor:"pointer",textDecorationLine:"underline"},Ml=(0,Yi.createContext)({getRichTextBlockStyle:e=>({}),getRichTextSpanStyle:(e,t)=>({})});function Fl(e){let t={};return(e.format||e.format!=="")&&(t.textAlign=e.format),e.direction&&(t.direction=e.direction),t}function ZB(e){switch(e.tag){case"h1":return"HEADING1";case"h2":return"HEADING2";case"h3":return"HEADING3";case"h4":return"HEADING4";case"h5":return"HEADING5";case"h6":return"HEADING6";default:Fe(e.tag)}}function r9({lexicalNode:e,parentStyleClass:t,websiteContext:n}){let{getRichTextSpanStyle:r}=(0,Yi.useContext)(Ml),o={...r(t??"PARAGRAPH",e),whiteSpace:"pre-wrap"};return n.renderElement({Tag:"span",styleSet:o,children:e.text})}function o9({lexicalNode:e,children:t,websiteContext:n}){let{getRichTextBlockStyle:r}=(0,Yi.useContext)(Ml),o={...Fl(e),...r(ZB(e))};switch(e.tag){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.renderElement({Tag:e.tag,styleSet:o,children:t});default:Fe(e.tag)}}function i9({lexicalNode:e,children:t,websiteContext:n}){let{getRichTextBlockStyle:r}=(0,Yi.useContext)(Ml),o={...Fl(e),...r("PARAGRAPH")};return n.renderElement({Tag:"p",styleSet:o,children:e.children.length===0?(0,lt.jsx)("br",{}):t})}function s9({lexicalNode:e,children:t,websiteContext:n}){let{getRichTextBlockStyle:r}=(0,Yi.useContext)(Ml),o={...Fl(e),...r("PARAGRAPH")};return n.renderElement({Tag:"blockquote",styleSet:o,children:(0,lt.jsx)("p",{children:t})})}function a9({lexicalNode:e,children:t,websiteContext:n}){let r={...Fl(e),...$B},o=e.url,i=e.target??"",s=n.env;if(s){let a=e.target==="_blank",l=Rd(e.url,a,s);o=l.url,i=l.target}return n.renderElement({Tag:"a",styleSet:r,attributes:{href:o,rel:e.rel??"",target:i,title:e.title??""},children:t})}function l9(e,t,n){return e?t&&n?`${e}/${n}`:e:null}function u9({lexicalNode:e,children:t,websiteContext:n}){let r={...Fl(e),...$B},o=e.cmsTarget?.cmsItemId,i=o?n.cmsBundleData?.slugByItemId.get(o):void 0,s=n.websiteData.guidToUrl.get(e.nodeId);if(o&&!n.cmsBundleData)return(0,lt.jsx)(lt.Fragment,{children:t});let a=l9(s,o,i);if(!a)return(0,lt.jsx)(lt.Fragment,{children:t});let l=n.env,u=()=>{n.preloadLocation(a)},c=l==="preview"?{role:"link",tabIndex:0,onClick:f=>{f.preventDefault(),n.setLocation({url:a})},onMouseDown:u}:{href:a,target:"_self",onMouseDown:u};return n.renderElement({Tag:"a",styleSet:r,attributes:c,children:t})}function c9({lexicalNode:e,websiteContext:t}){let{getAssetURL:n,websiteData:{assets:r}}=t,o={maxWidth:"100%",display:"inline-block"};e.isFillWidth&&(o.width="100%");let i="",s=zh(a=>{let l=r.get(e.hash);return l?a(l):null},[e.hash]);return s?.url&&(i=n(s.url)),t.renderElement({Tag:"img",styleSet:o,attributes:{src:i,alt:e.altText,loading:"lazy"}})}function f9({lexicalNode:e,children:t,websiteContext:n}){let{getRichTextBlockStyle:r}=(0,Yi.useContext)(Ml),o=r("PARAGRAPH"),i=Number(o.fontSize?.toString().replace("px","")),s=isNaN(i)?n9:i,a={...Fl(e),listStyleType:e.listType==="number"?"decimal":"disc",...o,marginLeft:s*Kh};return n.renderElement({Tag:e.tag,styleSet:a,attributes:e.tag==="ol"?{start:e.start}:void 0,children:t})}function d9({lexicalNode:e,children:t,parentListType:n,websiteContext:r}){let{getRichTextBlockStyle:o}=(0,Yi.useContext)(Ml),s=["decimal","lower-alpha","lower-roman","decimal","lower-alpha"][e.indent]??"decimal",a={...Fl(e),...o("PARAGRAPH"),listStyleType:n==="number"?s:"disc"};return r.renderElement({Tag:"li",styleSet:a,children:t})}function JB({lexicalNode:e,parentStyleClass:t,parentLexicalNode:n,websiteContext:r}){let o=e.type;if(!t)switch(o){case"heading":t=ZB(e);break;case"paragraph":t="PARAGRAPH";break}let i="children"in e?e.children.map((s,a)=>(0,lt.jsx)(JB,{lexicalNode:s,parentStyleClass:t,parentLexicalNode:e,websiteContext:r},a)):[];switch(o){case"root":return(0,lt.jsx)("div",{className:"root",children:i});case"heading":return(0,lt.jsx)(o9,{lexicalNode:e,websiteContext:r,children:i});case"paragraph":return(0,lt.jsx)(i9,{lexicalNode:e,websiteContext:r,children:i});case"linebreak":return(0,lt.jsx)("br",{});case"text":return(0,lt.jsx)(r9,{lexicalNode:e,parentStyleClass:t,websiteContext:r});case"link":return(0,lt.jsx)(a9,{lexicalNode:e,websiteContext:r,children:i});case"internal-link":return(0,lt.jsx)(u9,{lexicalNode:e,websiteContext:r,children:i});case"image":return(0,lt.jsx)(c9,{lexicalNode:e,websiteContext:r});case"quote":return(0,lt.jsx)(s9,{lexicalNode:e,websiteContext:r,children:i});case"list":return(0,lt.jsx)(f9,{lexicalNode:e,websiteContext:r,children:i});case"listitem":{let s="bullet";return n&&n.type==="list"&&(s=n.listType==="number"?"number":"bullet"),e.children.length===1&&e.children[0].type==="list"?(0,lt.jsx)(lt.Fragment,{children:i}):(0,lt.jsx)(d9,{lexicalNode:e,parentListType:s,websiteContext:r,children:i})}default:return console.warn(`Unsupported Lexical node type in CMS_RICH_TEXT: ${o}`),null}}function p9({node:e,websiteContext:t}){let{renderOptions:n,websiteData:r}=t,o=r.fonts,i=(c,f)=>o.get(`${c.style.fontFamily}:${f}`)?f:c.style.fontStyle,s=c=>c?xl(c,void 0,o,{width:0,height:0},t):{},a=c=>{if(!t)return null;let f=e.cmsRichTextStyleMap;if(!f)return console.warn("cmsRichTextStyleMap not found"),null;let d=t.websiteData.assetIdToGuid,p=t.websiteData.nodeById,_=f[c];if(_){let T=_.textStyleId,h=d.get(T);if(h){let m=p.get(h);if(m&&m.style){let E=Ni(m.style);return E.fills=e.fills,{spans:[],indentation:0,startOffset:0,style:E,startsWithPunctuation:!1}}}}return null};return{getRichTextBlockStyle:c=>{let f=a(c);if(f){let d=s(f),p=vl({style:f.style},n)||"normal";return d.lineHeight=dy({responsiveTextStyleVariants:f.style.responsiveTextStyleVariants,defaultLineHeight:p,renderOptions:n}),d}return t9},getRichTextSpanStyle:(c,f)=>{let d=a(c),p={},_=null,T=1,h=1<<1,m=1<<2,E=1<<3;return f.format&T&&(p.fontWeight="bold",_="Bold"),f.format&h&&(p.fontStyle="italic",_=_==="Bold"?"Bold Italic":"Italic"),f.format&m&&(p.textDecorationLine="line-through"),f.format&E&&(p.textDecorationLine="underline"),d&&_&&(d.style.fontStyle=i(d,_)),{...s(d),...p}}}}function m9(e,t,n,r,o,i){let s=e.interactions??[],a=zo(e),l=jB.useMemo(()=>({opacity:pn(t,e),transform:Xr(n.outer.transform)}),[t,e,n.outer.transform]),u=Zr(e,t),{motionProps:c,key:f,ref:d}=to(e.id,e.behaviors,e.assets,l,u),p=yr(s,r,!0,i),_=o?.smartAnimateType??te.NONE,T=pn(t,e),h=o?.transitionData,m=ln(h);return{accessibilityProps:a,behaviorProps:c,interactionProps:p,behaviorsRef:d,key:f,transitionProps:{opacity:T,smartAnimateType:_,behaviorProps:c,transitionData:h,onTransitionEnd:m}}}function qB({node:e,parent:t,context:n,zIndex:r,interactionHandlers:o,transitionProps:i,websiteContext:s}){let{renderOptions:a}=s,{getRichTextBlockStyle:l,getRichTextSpanStyle:u}=p9({node:e,websiteContext:s}),c=lr(),f=qn({node:e,parent:t,context:n,zIndex:r,children:[],options:{isFlattened:!0,prec
10697omputeTransforms:c},renderOptions:a}),d=er({node:e,context:n,websiteContext:s}),p=Qn({node:e,parent:t,children:null,renderOptions:a}),_={width:p.width,height:p.height},{accessibilityProps:T,interactionProps:h,behaviorsRef:m,key:E,transitionProps:O}=m9(e,n,f,o,i,s),I={..._,...f.inner,mixBlendMode:qu(e.blendMode),...Gn(pn(n,e)),..._c(e,t,n,s),...Qr({node:e,parent:t,transitionProps:O,renderOptions:s.renderOptions,maskStyles:d}),...f.transform3d,...n?.style||{}},g=Jr(s,e);if(!e.richText||!s)return null;let S=pD(JSON.parse(e.richText)),A=Bn({node:e,parent:t,context:n,transitionProps:O,outerStyles:f.outer,wrapperSizeStyles:p,stickyWrapperStyles:f.stickyWrapper,transformChildWrapperStyles:f.transform,renderOptions:s.renderOptions,maskStyles:d});return(0,lt.jsx)(fa,{name:"cms-rich-text",nodeId:e.id,children:Se(Dr({node:e,parent:t,context:n,transitionProps:O,wrappersToRender:A,websiteContext:s,children:Ao({node:e,ref:m,key:E,semanticTagInfo:{semanticTag:"div",interactiveSemanticTag:null},context:n,styles:I,nodeId:A.motionLayerContent.nodeId,transitionProps:O,wrappers:A.motionLayerContent,websiteContext:s,attributes:{"data-name":g,...h,...T},children:S.root?Ot((0,lt.jsx)(Ml.Provider,{value:{getRichTextBlockStyle:l,getRichTextSpanStyle:u},children:(0,lt.jsx)(JB,{lexicalNode:S.root,parentStyleClass:null,parentLexicalNode:null,websiteContext:s})})):null})}),s)})}var mf=x(Ee()),Hl=x(Y()),G9=x(Sy()),k9=x(Ee()),w9=x(yu()),B9=x(aE());function da(e){let t=fe().env;Te(t!=="server",`${e} should never be rendered on the server.`)}var P0e=x(Y());function _9(e,t,n,r,o){Object.entries(e).forEach(([i,s])=>{(!r||!r[i])&&(t[s]=a=>{let l=n[i];typeof a!=typeof l&&console.error(`Expected value of type ${typeof l} for property ${i}, but got ${typeof a}`),n[i]=a,o?.()})})}function Ry(e){let t={};if(!e)return t;for(let[n,r]of Object.entries(e))r.setter&&(t[n]=r.setter);return t}var tU={src:""};function Xh(e){return e??!1?e:void 0}function jh(e,t,n,r){if(!r||!n)return tU;let o=e?.image?t(r,e?.image):void 0,s=(e?.animatedImage?t(r,e.animatedImage):void 0)??o;if(!s)return tU;let a=Xh(s.size?.y)??e.originalImageHeight,l=Xh(s.size?.x)??e.originalImageWidth;return{src:n(s.url),height:Xh(a),width:Xh(l),alt:e.altText}}var nU=x(Ee()),$h=x(Y()),ff=$h.createContext({name:"",width:0,height:0});function Ay({name:e,width:t,height:n,children:r}){let o=$h.useMemo(()=>({name:e,width:t,height:n}),[e,t,n]);return(0,nU.jsx)(ff.Provider,{value:o,children:r})}var Gl=x(Ee()),x0e=x(Y());function kl({children:e,fallback:t=null}){return la()?(0,Gl.jsx)(Gl.Fragment,{children:e()}):(0,Gl.jsx)(Gl.Fragment,{children:t})}var rU=({children:e,fallback:t})=>Ot((0,Gl.jsx)(kl,{fallback:t,children:e}));var Ny=x(Ee()),ni=x(Y());var Pp=class{backingComponentId;atomStore;constructor(t,n){this.atomStore=n,this.backingComponentId=ce(t)}get(t,n){return t(this.backingComponentId)}set(t,n,r){this.atomStore.set(this.backingComponentId,r)}reset(){this.atomStore.set(this.backingComponentId,null)}},Zh=class{variableState;nodeById;componentSetId=null;boundVariantProperties;unboundVariantProperties;boolMap={true:!0,false:!1};atomStore;constructor(t,n,r,o,i=[],s){this.variableState=t,this.nodeById=n,this.componentSetId=r,this.boundVariantProperties=o.map(([a,l])=>[a,ce(l)]),this.unboundVariantProperties=i.map(([a,l])=>[a,ce(l)]),this.atomStore=s}get(t,n){let r=this.boundVariantProperties.map(([s,a])=>[s,this._convertResolvedVariableValueToStringVariantValue(this.variableState.evaluateVariable(t,t(a).id,n))]),o=this.unboundVariantProperties.map(([s,a])=>[s,t(a)]),i=[...r,...o];return this._instanceIdFromVariantProperties(i)}set(t,n,r){let o=Object.fromEntries(this._propertyValuesForVariant(r));this.unboundVariantProperties.forEach(([i,s])=>{let a=o[i];this.atomStore.set(s,a)}),this.boundVariantProperties.forEach(([i,s])=>{let a=o[i];let l=this.variableState.getVariableType(t(s).id,t,n),u=this._convertStringVariantValueToResolvedVariableType(l,a);this.variableState.setVariable(t(s).id,u,n)})}_instanceIdFromVariantProperties(t){if(this.componentSetId===null)return null;let n=this.nodeById.get(this.componentSetId);return n.type,n.children.find(r=>this._propertyValuesMatch(t,this._propertyValuesForVariant(r)))??null}_propertyValuesMatch(t,n){let r=s=>new Set(s.map(([a,l])=>JSON.stringify([a.toLowerCase(),l.toLowerCase()]))),o=r(t),i=r(n);return o.size===i.size&&[...o].every(s=>i.has(s))}_propertyValuesForVariant(t){return this.nodeById.get(t).name.split(",").map(r=>{let[o,i]=r.split("=");return[(o??"").trim(),(i??"").trim()]})}_convertStringVariantValueToResolvedVariableType(t,n){switch(t){case"BOOLEAN":{let r=n.toLowerCase();return r in this.boolMap,`${n}`,this.boolMap[r]??n}case"FLOAT":{let r=n.trim(),o=Number(r),i=r!==""&&Number.isFinite(o);return`${n}`,i?o:n}case"COLOR":case"IMAGE":throw new q(`Cannot bind a variant property to a variable of type ${t}.`);case"STRING":case null:return n}}_convertResolvedVariableValueToStringVariantValue(t){if(t===null)return"null";switch(typeof t){case"string":return t;case"boolean":case"number":return String(t);default:throw new q(`Cannot bind a variant property to a variable of type ${typeof t}.`)}}reset(){}};var yo=class{instanceState;modeContextState=ce({});childNodeProps=new Map;transitionAtom=ce(void 0);autoLayoutTransitionAtom=ce(void 0);stateResetHandlers=[];variableState;cmsDataState=null;static createRoot(t,n,r){let o={backingComponentId:new Pp(null,n),componentPropState:new Map};return new yo(r,t,o)}constructor(t,n,r){this.variableState=t,this.cmsDataState=n,this.instanceState=r}resetComponentState=(t,n)=>{this.instanceState.backingComponentId.reset(),this.stateResetHandlers.forEac
10697h(r=>r(t,n))};getChildState(t,n,r,o){let i="componentSetId"in n&&n.componentSetId?n.componentSetId:null,s=this.childNodeProps.get(t),a;if(n.type==="INSTANCE"){let l=Object.entries(n.componentProperties??{}).filter(([d,p])=>p.type==="VARIANT"),u=l.filter(([d,p])=>!p.boundVariables?.value).map(([d,p])=>[d,p.value]),c=l.filter(([d,p])=>!!p.boundVariables?.value).map(([d,p])=>[d,p.boundVariables.value]);a={backingComponentId:c.length?new Zh(this.variableState,r,i,c,u,o):new Pp(null,o),componentPropState:new Map}}else a=this.instanceState;return s||(s=new yo(this.variableState,this.cmsDataState,a),this.childNodeProps.set(t,s),i&&this.stateResetHandlers.push(s.resetComponentState)),s}};function yy(e,t,n){let r=e[t];if(r!=null||t==="default")return r;let o=e.default,i;if(typeof o=="function"?i=o:o&&typeof o=="object"&&(i=o[t]),i!=null){let a=`${n??"unknown-module"}::${t}`;if(!oU.has(a)){oU.add(a);let l=new _t("Code export resolved via default fallback");l.errorDetail=`warningKey: ${a}`,De.reportError(l)}}return i}var oU=new Set;var T9={renderedByCode:!0};function h9({guid:e,modeContext:t,...n}){let r=fe(),o=(0,ni.useMemo)(()=>r?[{key:e,nodeId:e,nodeById:r.websiteData.nodeById,assets:r.websiteData.assets,assetIdToGuid:r.websiteData.assetIdToGuid,guidToUrl:r.websiteData.guidToUrl,animateRootIds:r.websiteData.animateRootIds,stablePathToAssetInfo:r.websiteData.stablePathToAssetInfo,stablePathToConstraints:r.websiteData.stablePathToConstraints,stablePathToReplaceabilityInputs:r.websiteData.stablePathToReplaceabilityInputs,modeContext:t??{},parentState:yo.createRoot(null,r.atomStore,r.globalVariableState),parentStates:null}]:[],[e,r,t]),i=JE(o),s=(0,ni.useMemo)(()=>{let a=Object.fromEntries(Object.entries(n).filter(([l])=>l.startsWith("data-")));return{...T9,style:n.style,className:n.className,dataAttributes:a}},[n]);return i[0]?(0,Ny.jsx)(Ki,{node:i[0],parent:null,context:s,websiteContext:r}):null}function iU(e,t,n){let[,r]=(0,ni.useReducer)(u=>u+1,0),{variableState:o,modeContext:i}=e,s=fe(),{finalProps:a,boundVariables:l}=(0,ni.useMemo)(()=>{let u=Object.fromEntries(Object.entries(cU(e.componentProperties,e.assets,n,s,i))),c=fU(e.componentProperties);return{finalProps:u,boundVariables:c}},[e.componentProperties,n,i,e.assets,s]);if(o&&i)for(let[u,c]of Object.entries(l)){let f=t[u];f&&(a[f]=dU(c,o,i,s)),pU(c,u,o,a,i,r,s)}return Object.entries(t).forEach(([u,c])=>{l[u]||(a[c]=f=>{let d=a[u];typeof f!=typeof d&&console.error(`Expected value of type ${typeof d} for property ${u}, but got ${typeof f}`),a[u]=f,r()})}),a}function sU(e){let t=fe(),{websiteData:n}=t??{},r=(0,ni.useMemo)(()=>!t||!n||!e?.length?[]:e.map(o=>{let i=o.codeComponentId,s=n.assetIdToGuid.get(i)?.toString(),a=s?n.nodeById.get(s):null;return a?{codeNode:a,codeComponentId:i}:null}).filter(o=>o!==null),[t,n,e]);return(0,ni.useMemo)(()=>r.map(o=>o.codeNode),[r])}function aU(e,t,n,r,o,i,s){let[,a]=(0,ni.useReducer)(_=>_+1,0),l=fe(),{websiteData:u,getAssetURL:c}=l,f=u?.assetIdToGuid,{finalProps:d,boundVariables:p}=(0,ni.useMemo)(()=>{let _=Object.fromEntries(Object.entries(cU(e.componentPropertyDefinitions,s,i,l))),T=fU(e.componentPropertyDefinitions),h=(n??[]).find(m=>{let E=f?.get(m.codeComponentId);return e.id===E});if(!h)return{finalProps:_,boundVariables:T};for(let m of Object.keys(_))m in h.assignments&&h.assignments[m]!==void 0&&(typeof _[m]=="function"&&typeof h.assignments[m]=="string"?_[m]=uU(h.assignments[m],l.instanceSwapComponentCache):typeof h.assignments[m]=="object"&&"image"in h.assignments[m]?_[m]=jh(h.assignments[m],Io,c,s):_[m]=h.assignments[m]);return{finalProps:_,boundVariables:T}},[e.id,e.componentPropertyDefinitions,f,l,c,s,i,n]);if(r&&o)for(let[_,T]of Object.entries(p)){let h=t[_];h&&(d[h]=dU(T,r,o,l)),pU(T,_,r,d,o,a,l)}return Object.entries(t).forEach(([_,T])=>{p[_]||(d[T]=h=>{let m=d[_];typeof h!=typeof m&&console.error(`Expected value of type ${typeof m} for property ${_}, but got ${typeof h}`),d[_]=h,a()})}),d}function lU(e){let t=n=>{let{category:r,nodeTypes:o}=n.codeBehaviorData,i;switch(r){case"mouse":i=1;break;case"motion":i=2;break;default:i=3;break}return o&&o.includes("TEXT")&&(i=4),i};return[...e].sort((n,r)=>t(n)-t(r))}
10697function uU(e,t,n){let r=t.get(e);return r||(r=function(i){return e?(0,Ny.jsx)(h9,{guid:e,modeContext:n,...i}):null},t.set(e,r),r)}function cU(e,t,n,r,o){let{instanceSwapComponentCache:i,getAssetURL:s}=r,a={};if(!e)return a;for(let l in e){let u=e[l],c=l.substring(0,l.lastIndexOf("#"));if(c&&u&&"type"in u)if(u.type==="INSTANCE_SWAP")if("value"in u&&u.value!=="-1:-1")a[c]=uU(u.value,i,o);else if(n?.[c]?.defaultValue){let f=n[c].defaultValue;a[c]=f??(()=>null)}else a[c]=()=>null;else if(u.type==="TEXT"){let f="value"in u?u.value:u.defaultValue;a[c]=f.characters}else if(u.type==="IMAGE")if("value"in u&&u.value!==null&&u.value.image)a[c]=jh(u.value,Io,s,t);else if(n?.[c]?.defaultValue){let f=n[c].defaultValue;a[c]=typeof f=="string"?{src:f}:dD(f)}else a[c]={src:""};else a[c]="value"in u?u.value:"defaultValue"in u?u.defaultValue:void 0}return a}function fU(e){let t={};if(!e)return t;for(let n in e){let r=e[n],o=n.substring(0,n.lastIndexOf("#"));if(o&&r&&"boundVariables"in r&&r.boundVariables){let i=r.boundVariables;i.value&&(t[o]=i.value.id)}}return t}function dU(e,t,n,r){return o=>{let{atomStore:i}=r,s=i.get,a=t.evaluateVariable(s,e,n);if(typeof o!=typeof a&&console.error(`Expected value of type ${typeof a} for variable ${e}, but got ${typeof o}`),typeof o=="function"){console.error("Cannot set function as variable value");return}if(typeof o=="object"&&"src"in o){console.error("Cannot set image prop as variable value");return}t.setVariable(e,o,n)}}function pU(e,t,n,r,o,i,s){let{atomStore:a}=s,l=a.get,u=n.getModeValueAtom(e,o);if(u){let c=n.evaluateVariable(l,e,o);return r[t]=c,a.sub(u,()=>{let d=n.evaluateVariable(l,e,o);r[t]=d,i()})}}async function Jh(e,t,n){let r=(t||"default").split(".");if(r.length===0)throw new q(`Code export name ${t} is empty`);let[o,i]=r;if(typeof e!="object")throw new q(`Code export ${t} is not an object`);let a=yy(e,o,n);if(r.length===1){if(a==null)throw new q(`Code export ${t} (${o}) is nullish`);return a}if(typeof a!="function")throw new q(`Code export ${t} (${o}) is not a function. The component may have failed to compile during publishing.`);let l=await a();if(typeof l!="object")throw new q(`Code export ${t} (${i}) is not an object`);let u=yy(l,i,n);if(u==null)throw new q(`Code export ${t} (${i}) is nullish`);return u}function mU(e){let t={};if(!e)return t;for(let[n,r]of Object.entries(e))r.setter&&(t[n]=r.setter);return t}var df=(e,t,n)=>{let r=new _t(n);r.errorDetail=`sourceCodeHash: ${e}`,De.reportError(r),console.error(n,t)};var vr=x(Ee()),Ul=x(Y());var pa=x(Ee());var wl=x(Ee()),EU=(0,wl.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,wl.jsx)("path",{fill:"#191919",fillRule:"evenodd",d:"M7 7c0 1.043.533 1.963 1.341 2.5A3 3 0 0 0 7 12c0 1.043.533 1.963 1.341 2.5A3 3 0 1 0 13 17v-2.764A3 3 0 1 0 16.659 9.5 3 3 0 0 0 15 4h-5a3 3 0 0 0-3 3m8 2a2 2 0 1 0 0-4h-2v4zm-2 3a2 2 0 1 0 4 0 2 2 0 0 0-4 0m-1 2h-2a2 2 0 1 1 0-4h2zm-2 1h2v2a2 2 0 1 1-2-2m2-6h-2a2 2 0 1 1 0-4h2z",clipRule:"evenodd"})}),qh=(0,wl.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,wl.jsx)("path",{fill:"#191919",fillRule:"evenodd",d:"M6.5 6a.5.5 0 0 1 .5.5V7h10a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7v2.5a.5.5 0 0 1-1 0v-12a.5.5 0 0 1 .5-.5M7 8v7h10V8zm6.854 1.446a.5.5 0 0 1 0 .707L12.707 11.3l1.147 1.146a.5.5 0 0 1-.708.707L12 12.007l-1.146 1.146a.5.5 0 0 1-.708-.707l1.147-1.146-1.147-1.147a.5.5 0 0 1 .708-.707L12 10.593l1.146-1.147a.5.5 0 0 1 .708 0",clipRule:"evenodd"})}),_U=(0,wl.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,wl.jsx)("path",{fill:"#FFFFFF",d:"M13.992 12a.5.5 0 0 1 .5.507l-.002.172c-.049 1.564-.265 2.983-.598 4.064-.189.615-.425 1.149-.71 1.54-.276.38-.67.717-1.182.717-.513 0-.906-.337-1.183-.717-.284-.391-.52-.925-.71-1.54l-.055-.185c-.09-.322.175-.626.508-.605a.52.52 0 0 1 .467.375l.036.121c.173.561.369.98.563 1.246.2.276.333.305.374.305s.172-.028.374-.305c.194-.266.39-.685.562-1.246.3-.977.507-2.304.554-3.799l.002-.158a.5.5 0 0 1 .5-.492M7.44 10.054c.322-.091.625.173.606.506a.52.52 0 0 1-.374.467l-.122.037c-.56.172-.98.368-1.246.562-.277.202-.304.335-.304.374 0 .04.027.172.304.374.267.194.685.39 1.246.563.977.3 2.304.506 3.8.553l.157.002a.5.5 0 0 1-.015 1l-.171-.003c-1.564-.049-2.983-.264-4.065-.596-.614-.19-1.148-.426-1.54-.71C5.336 12.906 5 12.513 5 12s.336-.906.716-1.183c.392-.284.926-.52 1.54-.71zm5.238-.543c1.564.048 2.983.264 4.065.596.615.19 1.149.426 1.54.71.38.277.717.67.717 1.183s-.337.906-.717 1.183c-.391.284-.925.52-1.54.71q-.09.027-.185.053c-.322.09-.625-.174-.605-.508a.52.52 0 0 1 .374-.465l.122-.037c.561-.172.98-.368 1.246-.562.277-.202.305-.335.305-.374 0-.04-.028-.172-.305-.374-.267-.194-.685-.39-1.246-.562-.977-.301-2.304-.508-3.799-.554l-.158-.002a.5.5 0 0 1 .015-1zM12 5c.512 0 .906.337 1.182.717.285.391.521.925.71 1.54q.028.09.054.183a.484.484 0 0 1-.508.606.52.52 0 0 1-.467-.375l-.035-.12c-.172-.561-.368-.98-.562-1.246C12.172 6.028 12.039 6 12 6c-.04 0-.174.029-.374.305-.194.266-.39.685-.563 1.246-.31 1.01-.52 2.393-.558 3.949A.51.51 0 0 1 10 12a.49.49 0 0 1-.495-.5c.038-1.634.257-3.12.602-4.243.19-.615.426-1.149.71-1.54.277-.38.67-.717 1.183-.717"})});var O9={display:"flex",width:"100%",height:"var(--banner-height)",padding:"8px",flexDirection:"row",alignItems:"center",justifyContent:"space-between",flexShrink:0,position:"fixed",top:"calc(var(--banner-height) * -1)",left:"0",right:"0",zIndex:999,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"#e1e2e2",backgroundColor:"#FFFFFF"},I9={display:"flex",padding:"4px",alignItems:"center",borderRadius:"5px",border:"1px solid #e1e2e2"},g9={display:"flex",padding:"4px",alignItems:"center",borderRadius:"5px"},S9={display:"flex",minHeight:"32px",padding:"4px",paddingRight:"12px",alignItems:"center",borderRadius:"5px",background:"#1E1E1E",color:"#FFFFFF",textAlign:"center",fontFamily:"Inter, sans-serif",fontSize:"11px",fontStyle:"normal",fontWeight:"450",lineHeight:"16px",letterSpacing:"0.055px"},R9={display:"flex",alignItems:"center",flexDirection:"row",gap:"12px"};function TU({bannerUrlsAndStrings:e,websiteContext:t}){return t.renderElement({Tag:"div",styleSet:O9,children:(0,pa.jsxs)(pa.Fragment,{children:[t.renderElement({Tag:"a",styleSet:g9,attributes:{href:e.figma_logo_url},children:EU}),t.renderElement({Tag:"div",styleSet:R9,children:(0,pa.jsxs)(pa.Fragment,{children:[t.renderElement({Tag:"a",styleSet:I9,attributes:{target:"_blank",href:e.report_abuse_url,rel:"noreferrer",title:e.report_button_text,"aria-label":e.report_button_text},children:qh}),t.renderElement({Tag:"a",styleSet:S9,attributes:{target:"_blank",href:e.hub_file_url,rel:"noreferrer"},children:(0,pa.jsxs)(pa.Fragment,{children:[_U,e.remix_button_text]})})]})})]})})}var en=x(Ee()),Bl=x(Y());var A9=(0,en.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,en.jsx)("path",{fill:"currentColor",d:"M13.992 12a.5.5 0 0 1 .5.507l-.002.172c-.049 1.564-.265 2.983-.598 4.064-.189.615-.425 1.149-.71 1.54-.276.38-.67.717-1.182.717-.513 0-.906-.337-1.183-.717-.284-.391-.52-.925-.71-1.54l-.055-.185c-.09-.322.175-.626.508-.605a.52.52 0 0 1 .467.375l.036.121c.173.561.369.98.563 1.246.2.276.333.305.374.305s.172-.028.374-.305c.194-.266.39-.685.562-1.246.3-.977.507-2.304.554-3.799l.002-.158a.5.5 0 0 1 .5-.492M7.44 10.054c.322-.091.625.173.606.506a.52.52 0 0 1-.374.467l-.122.037c-.56.172-.98.368-1.246.562-.277.202-.304.335-.304.374 0 .04.027.172.304.374.267.194.685.39 1.246.563.977.3 2.304.506 3.8.553l.157.002a.5.5 0 0 1-.015 1l-.171-.003c-1.564-.049-2.983-.264-4.065-.596-.614-.19-1.148-.426-1.54-.71C5.336 12.906 5 12.513 5 12s.336-.906.716-1.183c.392-.284.926-.52 1.54-.71zm5.238-.543c1.564.048 2.983.264 4.065.596.615.19 1.149.426 1.54.71.38.277.717.67.717 1.183s-.337.906-.717 1.183c-.391.284-.925.52-1.54.71q-.09.027-.185.053c-.322.09-.625-.174-.605-.508a.52.52 0 0 1 .374-.465l.122-.037c.561-.172.98-.368 1.246-.562.277-.202.305-.335.305-.374 0-.04-.028-.172-.305-.374-.267-.194-.685-.39-1.246-.562-.977-.301-2.304-.508-3.799-.554l-.158-.002a.5.5 0 0 1 .015-1zM12 5c.512 0 .906.337 1.182.717.285.391.521.925.71 1.54q.028.09.054.183a.484.484 0 0 1-.508.606.52.52 0 0 1-.467-.375l-.035-.12c-.172-.561-.368-.98-.562-1.246C12.172 6.028 12.039 6 12 6c-.04 0-.174.029-.374.305-.194.266-.39.685-.563 1.246-.31 1.01-.52 2.393-.558 3.949A.51.51 0 0 1 10 12a.49.49 0 0 1-.495-.5c.038-1.634.257-3.12.602-4.243.19-.615.426-1.149.71-1.54.277-.38.67-.717 1.183-.717"})}),y9=(0,en.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,en.jsx)("path",{fill:"currentColor",d:"M6 10.5C6.82843 10.5 7.5 11.1716 7.5 12C7.5 12.8284 6.82843 13.5 6 13.5C5.17157 13.5 4.5 12.8284 4.5 12C4.5 11.1716 5.17157 10.5 6 10.5ZM12 10.5C12.8284 10.5 13.5 11.1716 13.5 12C13.5 12.8284 12.8284 13.5 12 13.5C11.1716 13.5 10.5 12.8284 10.5 12C10.5 11.1716 11.1716 10.5 12 10.5ZM18 10.5C18.8284 10.5 19.5 11.1716 19.5 12C19.5 12.8284 18.8284 13.5 18 13.5C17.1716 13.5 16.5 12.8284 16.5 12C16.5 11.1716 17.1716 10.5 18 10.5Z"})}),N9=(0,en.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,en.jsx)("path",{fill:"currentColor",d:"M16.6465 6.64648C16.8417 6.45122 17.1583 6.45122 17.3535 6.64648C17.5488 6.84175 17.5488 7.15825 17.3535 7.35352L12.707 12L17.3535 16.6465C17.5488 16.8417 17.5488 17.1583 17.3535 17.3535C17.1583 17.5488 16.8417 17.5488 16.6465 17.3535L12 12.707L7.35352 17.3535C7.15825 17.5488 6.84175 17.5488 6.64648 17.3535C6.45122 17.1583 6.45122 16.8417 6.64648 16.6465L11.293 12L6.64648 7.35352C6.45127 7.15825 6.45124 6.84173 6.64648 6.64648C6.84173 6.45129 7.15827 6.45129 7.35352 6.64648L12 11.293L16.6465 6.64648Z"})}),b9={backgroundColor:"#ffffff",boxSizing:"border-box",display:"flex",gap:"8px",alignItems:"center",overflow:"visible",paddingLeft:"8px",paddingTop:"0px",paddingBottom:"0px",borderRadius:"13px",boxShadow:"0px 0px 0.5px 0px rgba(0,0,0,0.3), 0px 1px 3px 0px rgba(0,0,0,0.15)",width:"fit-content",height:"var(--banner-height-v2)",position:"fixed",bottom:"20px",right:"40px",zIndex:999},L9={color:"rgba(0, 0, 0, 0.9)"},C9={boxSizing:"border-box",display:"flex",alignItems:"center",paddingLeft:"4px",paddingRight:"4px",paddingTop:"8px",paddingBottom:"8px",fontFamily:"Inter, sans-serif",fontWeight:"550",fontStyle:"normal",fontSize:"11px",color:"rgba(0, 0, 0, 0.9)",lineHeight:"16px",letterSpacing:"0.055px"},P9={display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch",boxSizing:"border-box",height:"100%",
10697justifyContent:"flex-end",position:"relative",flexShrink:0},D9={backgroundColor:"#4D49FC",color:"#ffffff",border:"1px solid rgba(0, 0, 0, 0.1)",borderRadius:"0.3125rem",padding:"0 0.5rem",fontSize:"11px",fontFamily:"Inter, sans-serif",fontWeight:"450",lineHeight:"16px",letterSpacing:"0.055px",cursor:"pointer",display:"flex",alignItems:"center",minHeight:"24px",textDecoration:"none",marginRight:"0.5rem"},hU={borderLeft:"1px solid rgba(0, 0, 0, 0.1)",boxSizing:"border-box",display:"flex",height:"100%",alignItems:"center",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",paddingBottom:"0px",position:"relative",flexShrink:0},OU={background:"none",border:"none",cursor:"pointer",padding:"0.5rem",display:"flex",alignItems:"center",justifyContent:"center",color:"rgba(0, 0, 0, 0.5)",borderRadius:"4px"},v9={backgroundColor:"#ffffff",borderRadius:"11px",boxShadow:"0px 0px 0.5px 0px rgba(0,0,0,0.3), 0px 1px 3px 0px rgba(0,0,0,0.15)",position:"absolute",bottom:"100%",right:"0px",marginBottom:"8px",width:"fit-content",zIndex:1e3,padding:"8px",boxSizing:"border-box"},x9={display:"flex",alignItems:"center",gap:"4px",width:"100%",backgroundColor:"transparent",border:"none",textAlign:"right",cursor:"pointer",fontSize:"11px",fontFamily:"Inter, sans-serif",fontWeight:"400",color:"rgba(0, 0, 0, 0.9)",lineHeight:"20px"};function IU({bannerUrlsAndStrings:e,websiteContext:t}){let[n,r]=(0,Bl.useState)(!1),[o,i]=(0,Bl.useState)(!1),s=(0,Bl.useRef)(null);return(0,Bl.useEffect)(()=>{let a=l=>{s.current&&!s.current.contains(l.target)&&i(!1)};return o&&document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}},[o]),n?null:t.renderElement({Tag:"div",styleSet:[b9,"banner-v2-container"],children:(0,en.jsxs)(en.Fragment,{children:[t.renderElement({Tag:"div",styleSet:L9,children:A9}),t.renderElement({Tag:"div",styleSet:C9,children:(0,en.jsx)("p",{children:e.banner_v2_text})}),t.renderElement({Tag:"div",styleSet:P9,children:(0,en.jsxs)(en.Fragment,{children:[t.renderElement({Tag:"a",styleSet:D9,attributes:{target:"_blank",href:e.hub_file_url,rel:"noreferrer"},children:e.remix_button_text}),t.renderElement({Tag:"div",styleSet:hU,ref:s,children:(0,en.jsxs)(en.Fragment,{children:[t.renderElement({Tag:"button",styleSet:OU,attributes:{onClick:()=>i(!o),title:e.more_options_text,"aria-label":e.more_options_text},children:y9}),o&&t.renderElement({Tag:"div",styleSet:v9,children:t.renderElement({Tag:"a",styleSet:x9,attributes:{target:"_blank",href:e.report_abuse_url,rel:"noreferrer",title:e.report_button_text,"aria-label":e.report_button_text},children:(0,en.jsxs)(en.Fragment,{children:[qh," ",e.report_button_text]})})})]})}),t.renderElement({Tag:"div",styleSet:hU,children:t.renderElement({Tag:"button",styleSet:OU,attributes:{"aria-label":e.close_text,title:e.close_text,onClick:()=>r(!0)},children:N9})})]})})]})})}var Qh=ce(!1);function M9({isLoading:e,bannerUrlsAndStrings:t,websiteContext:n}){return e||!t?null:t.banner_version==="2"?(0,vr.jsx)(IU,{bannerUrlsAndStrings:t,websiteContext:n}):(0,vr.jsx)(TU,{bannerUrlsAndStrings:t,websiteContext:n})}function gU({children:e}){let t=ge(Qh),n=fe(),[r,o]=(0,Ul.useState)(!1),i=$C(Qh),[s,a]=(0,Ul.useState)(null),[l,u]=(0,Ul.useState)(!0);(0,Ul.useEffect)(()=>(o(!0),()=>{o(!1)}),[]),(0,Ul.useEffect)(()=>{r&&(async()=>{try{u(!0);let d=await fetch("/__figma__/api/community_published_banner_details",{redirect:"follow"});if(d.status===200){let p=await d.json();p.meta&&(a(p.meta),i(!0))}}catch(d){console.error("Error fetching hub file URL:",d)}finally{u(!1)}})()},[r,i]);let c=s?.banner_version==="2";return r?(0,vr.jsx)(vr.Fragment,{children:n.renderElement({Tag:"div",styleSet:t&&!c?[{transform:"translateY(var(--banner-height))",height:"var(--full-height-with-banner)"},"wrapper-with-banner"]:void 0,children:(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)(ca,{name:"banner-error-boundary",nodeId:"banner",children:(0,vr.jsx)(M9,{isLoading:l,bannerUrlsAndStrings:s,websiteContext:n})}),n.renderElement({Tag:"div",styleSet:t&&!c?{height:"var(--full-height-with-banner)",position:"fixed",inset:"0",overflow:"auto"}:void 0,children:e})]})})}):(0,vr.jsx)(vr.Fragment,{children:e})}var SU=x(Y());var RU=SU.default.forwardRef(function(t,n){let{semanticTag:r,context:o,styles:i,additionalClassName:s,tabIndex:a,websiteContext:l,wrappers:{outerStyles:u,needsListItemTag:c},...f}=t,d={...u,...i},p=[s,{styles:d,renderedByCode:o?.renderedByCode},o?.className],_={width:"100%",height:"100%"},{finalInnerSemanticTag:T,needsListWrapper:h}=J_(r,null,c),m=T;return h?l.renderElement({Tag:"li",styleSet:p,children:l.renderElement({Tag:m,attributes:{tabIndex:Vs(T)?-1:a},styleSet:_,...f,ref:n})}):l.renderElement({Tag:m,styleSet:p,...f,attributes:{tabIndex:Vs(T)?-1:a},ref:n})});var AU=x(Y()),F9=class yU{renderHooks;constructor(t=[]){this.renderHooks=t}cloneWithAdditionalHook(t){return new yU([...this.renderHooks,t])}},Vl=AU.createContext(new F9);var NU=x(Y()),Dp=NU.createContext({isSnapshot:!1,snapshot:()=>{},enableManualSnapshot:()=>{}});var bU=x(Ee()),eO=x(Y());var pf=eO.createContext({shouldReduceMotion:!1});function by({children:e}){let t=y_(),n=eO.useMemo(()=>({shouldReduceMotion:t}),[t]);return(0,bU.jsx)(pf.Provider,{value:n,children:e})}function LU({node:e,parent:t,interactionHandlers:n,context:r,zIndex:o,websiteContext:i}){let{renderOptions:s}=i,a=lr(),l=qn({node:e,parent:t,context:r,zIndex:o,children:[],options:{isFlattened:!0,prec
10697omputeTransforms:a},renderOptions:s}),u=pn(r,e),c=Zr(e,r),f=Hl.useMemo(()=>({opacity:u,transform:Xr(l.outer.transform)}),[u,l.outer.transform]),{motionProps:d,key:p,ref:_}=to(e.id,e.behaviors,e.assets,f,c),T=e.interactions??[],h=wo(T),m=mo(T),E=r?.withinInteractiveElement??!1,O=yr(T,n,E,i),{semanticTag:I}=Hs(e,m,h,E,!1),g=I,S=ge(Qh),A=er({node:e,context:r,websiteContext:i}),R=Qn({node:e,parent:t,children:null,renderOptions:s}),N={...l.inner,...Gn(pn(r,e)),..._c(e,t,r,i),...Qr({node:e,parent:t,transitionProps:void 0,renderOptions:s,maskStyles:A}),...l.transform3d,...r?.style||{},...i.isFigmake?{height:S?"var(--full-height-with-banner)":"100dvh"}:{}},L=Bn({node:e,parent:t,context:r,transitionProps:void 0,outerStyles:l.outer,wrapperSizeStyles:R,stickyWrapperStyles:l.stickyWrapper,transformChildWrapperStyles:l.transform,renderOptions:i.renderOptions,maskStyles:A});return Se(Dr({node:e,parent:t,context:r,wrappersToRender:L,websiteContext:i,children:Ot((0,mf.jsx)(RU,{semanticTag:g,nodeId:e.id,styles:N,additionalClassName:"tailwind",websiteContext:i,ref:_,wrappers:L.motionLayerContent,...d,...O,children:(0,mf.jsx)(kl,{children:()=>(0,mf.jsx)(U9,{node:e,websiteContext:i})})},p))}),i)}function U9({node:e,websiteContext:t}){da("CodeComponentContent");let n=la(),r=t.getAssetURL,[o,i]=Hl.useState(null);globalThis.__GLOBALS__={React:Hl,ReactJSXRuntime:k9,ReactJSXDevRuntime:G9,ReactDOM:w9,ReactDOMClient:B9,SnapshotContext:Dp,RenderHooksContext:Vl,ActiveBreakpointContext:ff,WebsiteSettingsContext:pf,getAssetURL:r};let s=t.getCodeComponentURL(e),a=t.websiteData.sourceCodeHash,l=ge(a);Hl.useEffect(()=>{(async()=>{let p;try{p=await import(s)}catch(_){df(l,_,"Failed to import code layer module");return}try{let _=await Jh(p,e.codeExportName,s);i(()=>_)}catch(_){df(l,_,"Failed to execute code layer")}})()},[e.codeExportName,s,l]);let u=V9(o),c=Ry(u),f=iU(e,c,u);return n&&o?(0,mf.jsx)(fa,{name:"code-component",nodeId:e.id,children:(0,mf.jsx)(o,{...f})}):null}function V9(e){return e?e[Symbol.for("figma.react.props")]??{}:null}function CU({node:e,children:t,context:n,websiteContext:r,renderFigmaLayer:o}){let i=Jr(r,e),s={"data-name":i};return n?.dataAttributes&&Object.entries(n.dataAttributes).forEach(([a,l])=>{s[a]=l}),ne({Tag:"div",nodeId:e.id,attributes:{"data-name":i,...s},children:t.map(a=>o({name:"sites-layer",nodeId:a.id,childKey:a.id,node:a,parent:null,context:void 0,websiteContext:r}))})}function PU({node:e,children:t,context:n,websiteContext:r}){return Se(CU({node:e,children:t,context:n,websiteContext:r,renderFigmaLayer:cf}),r)}var GU=x(Y());function tO(e){return"type"in e&&e.type==="spring"}function Ef(e){return Array(e.length-1).fill(Ms)}function H9(e,t,n,r){let o=e.map((i,s)=>s).sort((i,s)=>(e[i]??0)-(e[s]??0));return{times:o.map(i=>e[i]??0),scale:o.map(i=>t[i]??0),pos:o.map(i=>n[i]??0),ease:o.slice(0,-1).map(i=>r[i]??Ms)}}function DU(e){return e<=1?[0]:Array.from({length:e},(t,n)=>n/(e-1))}function vU(e,t,n,r,o){let i=e[n],s=t[n];if(!i||s&&tO(s)){e[n]=r,o&&(t[n]=o);return}let a=s?.times??DU(i.length),l=s?.ease??Ef(a),u=o?.times??DU(r.length),c=o?.ease??Ef(u),f=[...new Set([...a,...u])].sort((d,p)=>d-p);e[n]=f.map(d=>So(d,a,i,l)+So(d,u,r,c)),t[n]={duration:Math.max(s?.duration??0,o?.duration??0),times:f,ease:Ef(f)}}function xU(e,t,n,r){let o=t[n];return Array.isArray(e[n])&&!!o&&(tO(o)||r!==void 0&&o.duration!==r)}function Ly(e,t,n,r){let{dimensionKey:o,scaleKey:i,posKey:s,baseSize:a}=r;if(!(o in e)||typeof e[o]!="number"||a===0)return;let l=i in e||i in t,u=d=>a/2*(d-1),c=n[o],f=n[i];if(l&&Array.isArray(t[o])&&Array.isArray(t[i])){if(c&&tO(c)||f&&tO(f))return;let d=c,p=f,_=Math.max(d?.duration??0,p?.duration??0);if(xU(t,n,s,_))return;let T=d?.times,h=p?.times;if(!T||!h)return;let m=d?.ease??Ef(T),E=p?.ease??Ef(h),O=t[o].map(M=>M/a),I=t[i],g=T[0]??0,S=T[T.length-1]??0,A=h[0]??0,R=h[h.length-1]??0,N=S>A&&g<R,L;if(N){let M=[...new Set([...T,...h])].sort((B,y)=>B-y),w=M.map(B=>So(B,T,O,m)*So(B,h,I,E));L={times:M,scale:w,pos:w.map(u),ease:Ef(M)}}else{let M=O[O.length-1]??1;L=H9([...T,...h],[...O,...I.map(w=>M*w)],[...O.map(u),...I.map(()=>u(M))],[...m,Ms,...E])}e[i]=e[o]/a*(e[i]??1),e[s]=(e[s]??0)+u(e[i]),delete e[o],t[i]=L.scale,delete t[o];let b={duration:_,times:L.times,ease:L.ease};n[i]=b,vU(t,n,s,L.pos,b),delete n[o]}else{let d=c;if(xU(t,n,s,d?.duration))return;let p=e[o]/a;if(e[i]=p,e[s]=(e[s]??0)+u(p),delete e[o],Array.isArray(t[o])){let _=t[o].map(T=>T/a);t[i]=_,vU(t,n,s,_.map(u),d),delete t[o]}c&&(n[i]=c,delete n[o])}}var W9=[[1,0,0],[0,1,0]],Cy={position:"relative",width:"100%",height:"100%"};function Y9(e,t,n,r,o,i){let s=e?.groupFrameOffset?.frameWidth??e?.constrainingFrameSize?.width??r?.size?.x??n.size.x,a=e?.groupFrameOffset?.frameHeight??e?.constrainingFrameSize?.height??r?.size?.y??n.size.y,l=e?.groupFrameOffset?.x??0,u=e?.groupFrameOffset?.y??0;
10697return{group:void 0,constrainingFrameSize:{width:n.size.x,height:n.size.y},groupFrameOffset:{x:l+(t?.x??0),y:u+(t?.y??0),frameWidth:s,frameHeight:a,groupWidth:n.size.x,groupHeight:n.size.y},parentIsList:o,masks:e?.masks,isInStickyOrFixedTree:i||(e?.isInStickyOrFixedTree??!1),withinInteractiveElement:e?.withinInteractiveElement,inheritedEffects:Md(n,e?.inheritedEffects)}}function MU(e){let{node:t,parent:n,children:r,context:o,zIndex:i,precomputeTransforms:s,renderOptions:a}=e,l=qn({node:t,parent:n,context:o,zIndex:i,children:r??null,options:{precomputeTransforms:s},renderOptions:a}),u=pn(o,t);return{layoutStyles:l,opacity:u}}function FU({node:e,parent:t,children:n,interactionHandlers:r,context:o,transitionProps:i,websiteContext:s,outerRef:a,opacity:l,layoutStyles:u,behaviorProps:c,behaviorsKey:f,behaviorsRef:d,renderFigmaLayer:p}){let{renderOptions:_}=s,T=o?.group,h=Jt(e,t),m=h?W9:e.relativeTransform,E=T?.withinAutoLayout||h,O=_.enableGroupKeyframeAnimations&&!E&&!!o?.masks?.length,I=_.enableGroupKeyframeAnimations&&!E&&(O||!!e.keyframeData&&Object.keys(e.keyframeData).length>0),g=!E&&!I,S=e.scrollBehavior==="FIXED"||e.scrollBehavior==="STICKY_SCROLLS",A=T?.isHorizontalFillParent||(E?F_(e,t):!1),R=e.interactions??[],N=Fn(e,_),L=wo(R),b=mo(R),M=zo(e),w=Qn({node:e,parent:t,children:n,renderOptions:_}),B={...u.outer,overflow:"visible",...I?{width:e.size.x,height:e.size.y}:{}},{codeSyntaxLanguage:y}=_,K={...u.inner,...g?{}:Gn(l,_,e.boundVariables?.opacity?.resolvedName,y&&e.boundVariables?.opacity?.resolvedCodeSyntax?.[y]),...Li(e),...u.transform3d},C=j_(_,o,e.absoluteBoundingBox),G=O?er({node:e,context:C,websiteContext:s}):{},P=i?.smartAnimateType??te.NONE,X=ln(i?.transitionData),oe=o?.withinInteractiveElement||Object.keys(c).length>0||P===te.INSTANCE_SUBTREE,ve=yr(R,r,oe,s),be=Hs(e,b,L,oe,N),Le=Z_(be)!==null,Ce=Jr(s,e),Ue=I?Us(Ft(Yt(T?.relativeTransform,e.relativeTransform)),e.size):null,ae=K9(I,e.keyframeData,e.size,_.emitMotionDataForCodegen),le=I?Y9(o,Ue,e,t,Le,S):{group:{withinAutoLayout:E,isHorizontalFillParent:A,relativeTransform:Ft(Yt(T?.relativeTransform,m)),opacity:g?l:void 0,mixBlendMode:E?void 0:qu(e.blendMode)},parentIsList:Le,masks:o?.masks,constrainingFrameSize:o?.constrainingFrameSize,groupFrameOffset:o?.groupFrameOffset,isInStickyOrFixedTree:S||(o?.isInStickyOrFixedTree??!1),withinInteractiveElement:o?.withinInteractiveElement,inheritedEffects:Md(e,o?.inheritedEffects)},Re=O?{...le,masks:void 0}:le,Ye=Vh({children:n,context:Re,parent:e,renderOptions:_,renderFigmaLayer:p,websiteContext:s});if(I){let tt={...Qr({node:e,parent:t,transitionProps:i,renderOptions:_,maskStyles:G}),...Gn(l,_,e.boundVariables?.opacity?.resolvedName,y&&e.boundVariables?.opacity?.resolvedCodeSyntax?.[y]),...Li(e),...u.transform3d},ft=Bn({node:e,parent:t,context:o,transitionProps:i,outerStyles:Cy,wrapperSizeStyles:Cy,stickyWrapperStyles:u.stickyWrapper,transformChildWrapperStyles:u.transform,renderOptions:_,maskStyles:G}),xe=Ll({keyframeMotionPropsOverride:ae,node:e,context:o,renderOptions:_,smartAnimateType:P,wrappersToRender:ft});return ne({Tag:"div",styleSet:B,children:Dr({node:e,parent:t,context:o,outerRef:a,transitionProps:i,wrappersToRender:ft,websiteContext:s,keyframeMotionPropsOverride:xe.wrapperKeyframeMotionPropsOverride,children:Ao({node:e,semanticTagInfo:be,key:f,context:C,ref:d,nodeId:ft.motionLayerContent.nodeId,styles:tt,keyframeMotionPropsOverride:xe.childKeyframeMotionPropsOverride,wrappers:{outerStyles:Cy,needsListItemTag:ft.motionLayerContent.needsListItemTag,nodeId:ft.motionLayerContent.nodeId},websiteContext:s,transitionProps:{opacity:l,smartAnimateType:P,behaviorProps:c,transitionData:i?.transitionData,onTransitionEnd:X},attributes:{"data-name":Ce,...ve,...M},children:Ye})})})}let de=Bn({node:e,parent:t,context:o,transitionProps:i,outerStyles:u.outer,wrapperSizeStyles:w,stickyWrapperStyles:u.stickyWrapper,transformChildWrapperStyles:u.transform,renderOptions:_}),Pt=Ll({keyframeMotionPropsOverride:ae,node:e,context:o,renderOptions:_,smartAnimateType:P,wrappersToRender:de});return Dr({node:e,parent:t,context:o,outerRef:a,transitionProps:i,wrappersToRender:de,websiteContext:s,keyframeMotionPropsOverride:Pt.wrapperKeyframeMotionPropsOverride,children:Ao({node:e,semanticTagInfo:be,key:f,context:o,ref:d,nodeId:de.motionLayerContent.nodeId,styles:K,keyframeMotionPropsOverride:Pt.childKeyframeMotionPropsOverride,wrappers:de.motionLayerContent,websiteContext:s,transitionProps:{opacity:l,smartAnimateType:P,behaviorProps:c,transitionData:i?.transitionData,onTransitionEnd:X},attributes:{"data-name":Ce,...ve,...M},children:Ye})})}function K9(e,t,n,r=!1){if(!e||!t)return;let o=Di(t,{normalizeParameterUnits:r});if(!o)return null;let i={...o.initial},s={...o.animate},a={...o.transition};return Ly(i,s,a,{dimensionKey:"width",scaleKey:"scaleX",posKey:"x",baseSize:n.x}),Ly(i,s,a,{dimensionKey:"height",scaleKey:"scaleY",posKey:"y",baseSize:n.y}),{...o,initial:i,animate:s,transition:a}}function kU({node:e,parent:t,children:n,interactionHandlers:r,context:o,zIndex:i,transitionProps:s,websiteContext:a}){let{renderOptions:l}=a,u=(0,GU.useRef)(null),c=lr(),{layoutStyles:f,opacity:d}=MU({node:e,parent:t,children:n,context:o,zIndex:i,precomputeTransforms:c,renderOptions:l}),p={opacity:d,transform:Xr(f.transform.transform)},_=Zr(e,o),{motionProps:T,key:h,ref:m}=to(e.id,e.behaviors,e.assets,p,_);return Se(FU({node:e,parent:t,children:n,interactionHandlers:r,context:o,transitionProps:s,websiteContext:a,outerRef:u,opacity:d,layoutStyles:f,behaviorProps:T,behaviorsKey:h,behaviorsRef:m,renderFigmaLayer:cf}),a)}var xp=x(Ee()),nGe=x(Y());var ur=x(Ee()),Un=x(Y());var z9={url:""};var nO="reset-css";function Py(e=!0){return un` ${j9}${$9}${Z9}${e?s$:""}`}var j9=un` @layer figreset,figoverridable,reset,theme,base,figutils,components,utilities;`,$9=un` @layer figoverridable{:root{font-synthesis:none}}`,Z9=un` @layer figutils{:root{--banner-height:48px;--banner-height-v2:40px;--full-height-with-banner:calc(100dvh - var(--banner-height))}@media (max-width:600px){.banner-v2-container{left:0 !important;right:0 !important;margin:0 auto !important}}.wrapper-with-banner .min-h-screen{min-height:var(--full-height-with-banner)}.wrapper-with-banner .h-screen{height:var(--full-height-with-banner)}}`,J9=un` @layer figreset{:root{font-family:var( --default-font-family,ui-sans-serif,system-ui,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji' )}html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;width:100%}body{margin:0;width:100%}body:has([data-page-overflowx='hidden']){overflow-x:hidden}body:has([data-page-overflowx='auto']){overflow-x:auto}}@layer figutils{#container{width:100%}}`;var q9=un` @layer figreset{*,*:before,*:after{box-sizing:border-box}a{color:inherit;text-decoration:none}button{border:none;background:none;padding:0}h1,h2,h3,h4,h5,h6,p{font-size:inherit;font-weight:inherit}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}ol,ul,menu{list-style:none;margin:0;padding-inline-start:0}}`,Q9=un` @layer figutils{#container .marquee-container{overflow-x:hidden;display:flex;flex-direction:row;position:relative;width:var(--width);transform:var(--transform);&:hover div{animation-play-state:var(--pause-on-hover)}&:active div{animation-play-state:var(--pause-on-click)}&:focus-within > *{animation-play-state:paused !important}}#container .marquee{flex:0 0 auto;min-width:var(--min-width);display:flex;flex-direction:row;align-items:center;animation:scroll var(--duration) linear var(--delay) var(--iteration-count);animation-delay:var(--delay);animation-direction:var(--direction);animation-timing-function:var(--timing-function)}#container .marquee.reduced-motion{@media (prefers-reduced-motion:reduce){animation:none}}@keyframes scroll{0%{transform:translateX(0%)}100%{transform:translateX(-100%)}}#container .marquee-initial-child-container{flex:0 0 auto;display:flex;min-width:auto;flex-direction:row;align-items:center}#container .marquee-child{transform:var(--transform)}}`,e$=un` @layer figutils{.code-behavior-wrapper > *{width:100%;height:100%}}`,t$=un` @layer figutils{#container .embed{border:none}}`,n$=un` @layer figutils{:is(.textContents ul,ul.textContents) > li:before{content:'\\2022';margin-left:-1.5em;display:inline-block;text-align:center;width:1.5em;-webkit-background-clip:var(--list-marker-background-clip);-webkit-text-fill-color:var(--list-marker-text-fill-color);background-clip:var(--list-marker-background-clip);color:var(--list-marker-color);font-size:var(--list-marker-font-size);line-height:var(--list-marker-line-height);vertical-align:var(--list-marker-vertical-align)}:is(.textContents ol,ol.textContents) > li::marker{color:var(--list-marker-color);font-size:var(--list-marker-font-size);line-height:var(--list-marker-line-height);vertical-align:var(--list-marker-vertical-align)}:is(.textContents,.textContents *).adjustLetterSpacing:after{content:'';margin-left:calc(var(--letter-spacing) * -1)}}`,r$=un` @layer figutils{.bypass-link{position:fixed;top:16px;left:0;right:0;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none}.bypass-link:focus-within{opacity:1;z-index:${1e4}}.bypass-link > a{background-color:#000;color:#fff;border:1px solid #fff;padding:12px 16px;font-size:16px;border-radius:12px;pointer-events:auto}}`,o$=un` @layer figreset{:root{--100dvw:100vw;--100dvh:100vh}@supports (width:100dvw){:root{--100dvw:100dvw;--100dvh:100dvh}}}`,i$=un` @layer figreset{:root{text-align:left;button{text-align:left}}}`,s$=un` ${J9}${q9}${n$}${t$}${Q9}${e$}${o$}${r$}${i$}`;var rO={thin:100,hairline:100,extralight:200,"extra light":200,ultralight:200,"ultra light":200,light:300,regular:400,normal:400,book:400,medium:500,semibold:600,"semi bold":600,demibold:600,"demi bold":600,bold:700,extrabold:800,"extra bold":800,ultrabold:800,"ultra bold":800,black:900,heavy:900,extrablack:950,"extra black":950,ultrablack:950,"ultra black":950};function wU(e){if(!e)return;
10697let t=e.toLowerCase().replace(/italic/gi,"").trim();if(rO[t]!==void 0)return rO[t];let n=Object.keys(rO).sort((r,o)=>o.length-r.length);for(let r of n)if(t.includes(r))return rO[r]}function oO(e,t){if(!e)return wU(t)}function ma(e){let{family:t,style:n,url:r,unicodeRange:o,weight:i}=e;return` 10698@font-face { 10699 font-family: "${t}"; 10700 font-style: ${n}; 10701 src: url("${r}"); 10702 font-display: block; 10703 ${i!==void 0?`font-weight: ${i};`:""} 10704 ${o&&o!=="*"?`unicode-range: ${o};`:""} 10705} 10706`}var Dy="My Site",vy="Created with Figma";var xy=/^(https?:)?\/\/(www\.)?lottie\.host\//;var En=x(Ee()),uO=x(Y());var YU=x(Ee());var No=function(e){return e.EXPLICIT="EXPLICIT",e.IMPLICIT="IMPLICIT",e}({}),Wl=function(e){return e.LEFT="LEFT",e.CENTER="CENTER",e.RIGHT="RIGHT",e}({}),Yl=function(e){return e.TOP="TOP",e.CENTER="CENTER",e.BOTTOM="BOTTOM",e}({}),My=function(e){return e.MODAL="MODAL",e.BANNER="BANNER",e}({});function Kl(){return{color:"rgba(0, 0, 0, 0.9)",fontWeight:450,fontSize:"var(--consent-font-size-medium)",lineHeight:"var(--consent-line-height-medium)"}}function a$(){return{color:"rgba(0, 0, 0, 0.9)",fontWeight:450,fontSize:"var(--consent-font-size-large)",lineHeight:"var(--consent-line-height-large)"}}function l$(){return{fontWeight:550}}function Fy(){return{...Kl(),cursor:"pointer",backgroundColor:"transparent"}}function BU(){return{...l$(),...a$()}}function iO(){return{...Kl(),color:"rgba(0, 0, 0, 0.5)"}}function UU(){return{...Kl(),backgroundColor:"black",color:"white",border:"1px solid black",height:"1.5rem",borderRadius:".3125rem",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 .5rem",flexShrink:0,flexGrow:1,cursor:"pointer"}}function VU({wide:e}){return{display:"flex",gap:"0.5rem",flexShrink:0,alignItems:"center",width:e?"100%":void 0}}function sO({checked:e,disabled:t}){return{input:{position:"absolute",opacity:0,width:32,height:16,margin:0,cursor:t?"unset":"pointer"},label:{display:"block",width:32,height:16,borderRadius:13,backgroundColor:e&&!t?"#1E1E1E":"#E6E6E6",position:"relative",cursor:t?"unset":"pointer",transition:"background-color 0.4s",pointerEvents:"none"},indicator:{position:"absolute",height:14,width:14,left:e?17:1,top:1,backgroundColor:"white",borderRadius:"50%",transition:"left 0.4s",boxShadow:"0 2px 4px rgba(0,0,0,0.2)",pointerEvents:"none"}}}function HU({yAlignment:e}){let t={};return e===Yl.TOP?(t.top=0,t.borderBottom="1px solid #E6E6E6"):e===Yl.BOTTOM&&(t.bottom=0,t.borderTop="1px solid #E6E6E6"),{position:"fixed",left:0,right:0,display:"flex",padding:"var(--consent-banner-padding)",justifyContent:"center",alignItems:"center",gap:"1rem",alignSelf:"stretch",backgroundColor:"white",color:"rgba(0, 0, 0, 0.5)",zIndex:9999,...t}}function WU({xAlignment:e,yAlignment:t}){let n={};return e===Wl.LEFT?n.left="1rem":e===Wl.RIGHT&&(n.right="1rem"),t===Yl.TOP?n.top="1rem":t===Yl.BOTTOM&&(n.bottom="1rem"),{...Gy(),position:"fixed",padding:"1rem",zIndex:1e4,...n}}function Gy(){return{position:"relative",backgroundColor:"white",borderRadius:".8125rem",padding:"1rem",width:330,maxHeight:"90%",maxWidth:"100%",boxShadow:"0px 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 0px 0.5px 0px rgba(0, 0, 0, 0.12), 0px 10px 16px 0px rgba(0, 0, 0, 0.08), 0px 2px 6px 0px rgba(0, 0, 0, 0.12)",display:"flex",flexDirection:"column",alignItems:"center",gap:"1rem",overflowY:"auto"}}function _f({children:e,className:t,onClick:n}){return(0,YU.jsx)("button",{className:t,onClick:n,style:UU(),children:e})}var bo=x(Ee());function u$({checked:e,disabled:t,onChange:n,label:r,id:o}){return(0,bo.jsxs)("div",{style:{display:"inline-block",position:"relative"},children:[(0,bo.jsx)("input",{"aria-disabled":t,disabled:t,type:"checkbox",id:o,checked:e,onChange:i=>n?.(i.target.checked),"aria-label":r,style:sO({checked:e,disabled:t}).input}),(0,bo.jsx)("label",{htmlFor:o,style:sO({checked:e,disabled:t}).label,children:(0,bo.jsx)("span",{style:sO({checked:e,disabled:t}).indicator})})]})}function ky({id:e,checked:t,description:n,label:r,onChange:o,disabled:i}){return(0,bo.jsxs)("div",{onClick:i?void 0:()=>o(!t),style:{display:"flex",flexDirection:"column",padding:"0.5rem 0"},children:[(0,bo.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[(0,bo.jsx)(u$,{checked:t,disabled:i,onChange:i?void 0:o,label:r,id:e}),(0,bo.jsx)("label",{style:{...Kl(),color:i?"rgba(0, 0, 0, 0.3)":"rgba(0, 0, 0, 0.9)"},children:r})]}),(0,bo.jsx)("span",{style:{marginLeft:"2.5rem",...iO()},children:n})]})}var zl=x(Ee()),wy=x(Y()),KU=x(yu());var aO=x(Y());function lO(e){let[t,n]=(0,aO.useState)(null);return(0,aO.useLayoutEffect)(()=>
10706{if(typeof document>"u")return;let r=e?document.getElementById(e):null;n(r||null)},[e]),t}var c$={position:"fixed",inset:0,padding:"1rem",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e4},f$={display:"flex",justifyContent:"flex-end",position:"absolute",top:16,right:16,lineHeight:1,cursor:"pointer"},d$={display:"flex",flexDirection:"column",gap:"0.5rem",width:"100%",height:"100%"};function By({containerId:e,children:t,onClose:n,scrimBackground:r}){let o=lO(e);return(0,wy.useEffect)(()=>{let i=s=>{s.key==="Escape"&&n()};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[n]),(0,wy.useEffect)(()=>{let i=document.body.style.overflow;return o?o.style.overflow="hidden":document.body.style.overflow="hidden",()=>{o?o.style.overflow=i:document.body.style.overflow=i}},[o]),(0,KU.createPortal)((0,zl.jsx)("div",{style:{...c$,...r?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{}},children:(0,zl.jsxs)("div",{style:Gy(),children:[(0,zl.jsx)("div",{style:f$,children:(0,zl.jsx)("button",{"aria-label":"Close modal",style:{fontSize:"16px",color:"black",backgroundColor:"transparent",border:"none",cursor:"pointer"},onClick:n,children:"\xD7"})}),(0,zl.jsx)("div",{style:d$,children:t})]})}),o||document.body)}var vp=x(Ee());function Uy({policyLink:e,policyUrl:t,disclaimerText:n,guidToUrl:r,setLocation:o,reportError:i,isPreview:s}){let a=u=>{if(t)return(0,vp.jsx)("a",{rel:"noopener noreferrer",target:"_blank",href:t,style:Fy(),children:u},"policy-url");if(e){let c=s?"/":r?.get(e);return c?(0,vp.jsx)("button",{onClick:()=>{o({url:c})},style:Fy(),children:u},"policy-link"):(i(new Error("Sites cookie banner has an invalid policy link or is missing guidToUrl")),null)}return s||i(new Error("Sites cookie banner is enabled but no policy internal link or external URL is set")),null},l=n.split(/(<link>.*?<\/link>)/);return!l.length||!l.some(u=>u.match(/<link>(.*?)<\/link>/))?(i(new Error(`Formatting error in cookie banner disclaimer text: ${n}`)),null):(0,vp.jsx)("div",{style:{lineHeight:"var(--consent-font-size-medium)"},children:l.map((u,c)=>{let f=u.match(/<link>(.*?)<\/link>/);return f&&f[1]?a(f[1]):(0,vp.jsx)("p",{style:{display:"inline",...iO()},children:u},c)})})}var zU=x(Ee()),aFe=x(Y()),XU=x(yu());function Vy({containerId:e,xAlignment:t=Wl.CENTER,yAlignment:n=Yl.CENTER,children:r}){let o=lO(e);return(0,XU.createPortal)((0,zU.jsx)("div",{style:WU({xAlignment:t,yAlignment:n}),children:r}),o||document.body)}var jU=x(Ee());function p$({xAlignment:e}){let t={bottom:0};return e===Wl.RIGHT?t.right="1.5rem":t.left="1.5rem",{...Kl(),position:"fixed",backgroundColor:"white",padding:".5rem 1rem",cursor:"pointer",borderRadius:"0.3125rem 0.3125rem 0 0",boxShadow:"0px 0px 0.5px 0px rgba(0, 0, 0, 0.18), 0px 3px 8px 0px rgba(0, 0, 0, 0.10), 0px 1px 3px 0px rgba(0, 0, 0, 0.10)",...t}}function Hy({children:e,onClick:t,xAlignment:n}){return(0,jU.jsx)("button",{onClick:t,style:p$({xAlignment:n}),children:e})}var Wy={"en-US":{noticeHeader:"This site uses cookies",noticeDisclaimerImplicit:"Cookies on this site help improve your experience and deliver personalized content. By continuing to browse, you consent to the use of these cookies. <link>Read more</link>",acceptText:"Accept all",manageText:"Manage",noticeDisclaimerExplicit:"Cookies on this site help improve your experience and deliver personalized content. Click \u201CAccept all\u201D to consent to the use of these cookies. <link>Read more</link>",rejectText:"Reject all",manageHeader:"Manage cookie preferences",manageDisclaimer:"Cookies on this site help improve your experience and deliver personalized content. You can\u2019t opt out of cookies that are essential for basic functionality, but you can decide not to allow other categories according to your preferences. <link>Read more</link>",necessaryText:"Essential cookies",necessaryDescription:"Required to enable core site functionality and preferences.",marketingText:"Marketing cookies",marketingDescription:"Allow tracking to enable ads personalization and tracking.",preferencesText:"Personalization cookies",preferencesDescription:"Allow tracking to tailor your site experience to your interests.",analyticsText:"Analytics cookies",analyticsDescription:"Allow tracking of site traffic to help improve site performance.",saveLabel:"Save preferences",triggerLabel:"Cookie preferences"}
10706,"en-GB":{noticeHeader:"This site uses cookies",noticeDisclaimerImplicit:"Cookies on this site help to improve your experience and deliver personalised content. By continuing to browse, you consent to the use of these cookies. <link>Read more</link>",acceptText:"Accept all",manageText:"Manage",noticeDisclaimerExplicit:"Cookies on this site help to improve your experience and deliver personalised content. Click \u2018Accept all\u2019 to consent to the use of these cookies. <link>Read more</link>",rejectText:"Reject all",manageHeader:"Manage cookie preferences",manageDisclaimer:"Cookies on this site help to improve your experience and deliver personalised content. You cannot opt out of cookies that are essential for basic functionality, but you can choose not to allow other categories according to your preferences. <link>Read more</link>",necessaryText:"Essential cookies",necessaryDescription:"Required to enable core site functionality and store your preferences.",marketingText:"Marketing cookies",marketingDescription:"Allow tracking to enable advertising personalisation and performance measurement.",preferencesText:"Personalisation cookies",preferencesDescription:"Allow tracking to tailor your site experience based on your interests.",analyticsText:"Analytics cookies",analyticsDescription:"Allow tracking of site usage to help improve performance.",saveLabel:"Save preferences",triggerLabel:"Cookie preferences"},"fr-FR":{noticeHeader:"Ce site utilise des cookies",noticeDisclaimerImplicit:"Les cookies pr\xE9sents sur ce site am\xE9liorent votre exp\xE9rience et fournissent un contenu personnalis\xE9. En continuant \xE0 naviguer, vous consentez \xE0 l'utilisation de ces cookies. <link>En savoir plus</link>",acceptText:"Tout accepter",manageText:"G\xE9rer",noticeDisclaimerExplicit:"Les cookies pr\xE9sents sur ce site am\xE9liorent votre exp\xE9rience et fournissent un contenu personnalis\xE9. Cliquez sur \u201CTout accepter\u201D pour consentir \xE0 l'utilisation de ces cookies. <link>En savoir plus</link>",rejectText:"Tout refuser",manageHeader:"G\xE9rer les pr\xE9f\xE9rences de cookies",manageDisclaimer:"Les cookies pr\xE9sents sur ce site am\xE9liorent votre exp\xE9rience et fournissent un contenu personnalis\xE9. Vous ne pouvez pas d\xE9sactiver les cookies essentiels au bon fonctionnement du site, mais vous pouvez choisir de ne pas autoriser certaines autres cat\xE9gories selon vos pr\xE9f\xE9rences. <link>En savoir plus</link>",necessaryText:"Cookies essentiels",necessaryDescription:"N\xE9cessaires pour activer les fonctionnalit\xE9s principales du site et m\xE9moriser vos pr\xE9f\xE9rences.",marketingText:"Cookies marketing",marketingDescription:"Autoriser le suivi pour personnaliser les publicit\xE9s et le marketing.",preferencesText:"Cookies de personnalisation",preferencesDescription:"Autoriser le suivi pour adapter l\u2019exp\xE9rience du site \xE0 vos centres d\u2019int\xE9r\xEAt.",analyticsText:"Cookies d\u2019analyse",analyticsDescription:"Autoriser le suivi du trafic du site pour am\xE9liorer ses performances.",saveLabel:"Enregistrer les pr\xE9f\xE9rences",triggerLabel:"Pr\xE9f\xE9rences de cookies"},"de-DE":{noticeHeader:"Diese Website verwendet Cookies",noticeDisclaimerImplicit:"Cookies auf dieser Website helfen dabei, Ihr Nutzungserlebnis zu verbessern und personalisierte Inhalte bereitzustellen. Wenn Sie weiter surfen, stimmen Sie der Verwendung dieser Cookies zu. <link>Mehr erfahren</link>",acceptText:"Alle akzeptieren",manageText:"Verwalten",noticeDisclaimerExplicit:"Cookies auf dieser Website helfen dabei, Ihr Nutzungserlebnis zu verbessern und personalisierte Inhalte bereitzustellen. Klicken Sie auf \u201EAlle akzeptieren\u201C, um der Verwendung dieser Cookies zuzustimmen. <link>Mehr erfahren</link>",rejectText:"Alle ablehnen",manageHeader:"Cookie-Einstellungen verwalten",manageDisclaimer:"Cookies auf dieser Website helfen dabei, Ihr Nutzungserlebnis zu verbessern und personalisierte Inhalte bereitzustellen. Sie k\xF6nnen essenzielle Cookies, die f\xFCr die grundlegende Funktionalit\xE4t erforderlich sind, nicht deaktivieren, aber Sie k\xF6nnen andere Kategorien nach Ihren Pr\xE4ferenzen ablehnen. <link>Mehr erfahren</link>",necessaryText:"Essenzielle Cookies",necessaryDescription:"Erforderlich zur Aktivierung der grundlegenden Website-Funktionen und zur Speicherung Ihrer Einstellungen.",marketingText:"Marketing-Cookie
10706s",marketingDescription:"Erlauben das Tracking zur Personalisierung von Werbung und zur Erfolgsmessung.",preferencesText:"Personalisierungs-Cookies",preferencesDescription:"Erlauben das Tracking, um Inhalte und Erlebnisse an Ihre Interessen anzupassen.",analyticsText:"Analyse-Cookies",analyticsDescription:"Erlauben das Tracking der Website-Nutzung zur Verbesserung der Leistung.",saveLabel:"Einstellungen speichern",triggerLabel:"Cookie-Einstellungen"},"es-ES":{noticeHeader:"Este sitio web utiliza cookies",noticeDisclaimerImplicit:"Las cookies en este sitio web ayudan a mejorar su experiencia y a ofrecer contenido personalizado. Al continuar navegando, acepta el uso de estas cookies. <link>Leer m\xE1s</link>",acceptText:"Aceptar todas",manageText:"Gestionar",noticeDisclaimerExplicit:"Las cookies en este sitio web ayudan a mejorar su experiencia y a ofrecer contenido personalizado. Haga clic en \u201CAceptar todas\u201D para consentir el uso de estas cookies. <link>Leer m\xE1s</link>",rejectText:"Rechazar todas",manageHeader:"Gestionar preferencias de cookies",manageDisclaimer:"Las cookies en este sitio web ayudan a mejorar su experiencia y a ofrecer contenido personalizado. No puede rechazar las cookies esenciales para el funcionamiento b\xE1sico, pero puede decidir no permitir otras categor\xEDas seg\xFAn sus preferencias. <link>Leer m\xE1s</link>",necessaryText:"Cookies esenciales",necessaryDescription:"Necesarias para activar las funciones b\xE1sicas del sitio y guardar sus preferencias.",marketingText:"Cookies de marketing",marketingDescription:"Permiten el seguimiento para personalizar la publicidad y medir su rendimiento.",preferencesText:"Cookies de personalizaci\xF3n",preferencesDescription:"Permiten el seguimiento para adaptar el sitio a sus intereses.",analyticsText:"Cookies de an\xE1lisis",analyticsDescription:"Permiten el seguimiento del uso del sitio para mejorar su rendimiento.",saveLabel:"Guardar preferencias",triggerLabel:"Preferencias de cookies"},"es-LA":{noticeHeader:"Este sitio utiliza cookies",noticeDisclaimerImplicit:"Las cookies en este sitio ayudan a mejorar su experiencia y a ofrecer contenido personalizado. Al seguir navegando, usted acepta el uso de estas cookies. <link>Leer m\xE1s</link>",acceptText:"Aceptar todas",manageText:"Administrar",noticeDisclaimerExplicit:"Las cookies en este sitio ayudan a mejorar su experiencia y a ofrecer contenido personalizado. Haga clic en \u201CAceptar todas\u201D para aceptar el uso de estas cookies. <link>Leer m\xE1s</link>",rejectText:"Rechazar todas",manageHeader:"Administrar preferencias de cookies",manageDisclaimer:"Las cookies en este sitio ayudan a mejorar su experiencia y a ofrecer contenido personalizado. No puede rechazar las cookies esenciales para el funcionamiento b\xE1sico, pero puede elegir no permitir otras categor\xEDas seg\xFAn sus preferencias. <link>Leer m\xE1s</link>",necessaryText:"Cookies esenciales",necessaryDescription:"Necesarias para habilitar funciones b\xE1sicas del sitio y guardar sus preferencias.",marketingText:"Cookies de marketing",marketingDescription:"Permiten el rastreo para personalizar anuncios y medir su rendimiento.",preferencesText:"Cookies de personalizaci\xF3n",preferencesDescription:"Permiten el rastreo para adaptar su experiencia seg\xFAn sus intereses.",analyticsText:"Cookies de an\xE1lisis",analyticsDescription:"Permiten el rastreo del uso del sitio para mejorar el rendimiento.",saveLabel:"Guardar preferencias",triggerLabel:"Preferencias de cookies"},"pt-BR":{noticeHeader:"Este site utiliza cookies",noticeDisclaimerImplicit:"Os cookies neste site ajudam a melhorar sua experi\xEAncia e a oferecer conte\xFAdo personalizado. Ao continuar navegando, voc\xEA concorda com o uso desses cookies. <link>Saiba mais</link>",acceptText:"Aceitar todos",manageText:"Gerenciar",noticeDisclaimerExplicit:"Os cookies neste site ajudam a melhorar sua experi\xEAncia e a oferecer conte\xFAdo personalizado. Clique em \u201CAceitar todos\u201D para consentir com o uso desses cookies. <link>Saiba mais</link>",rejectText:"Rejeitar todos",manageHeader:"Gerenciar prefer\xEAncias de cookies",manageDisclaimer:"Os cookies neste site ajudam a melhorar sua experi\xEAncia e a oferecer conte\xFAdo personalizado. N\xE3o \xE9 poss\xEDvel desativar os cookies essenciais para o funcionamento b\xE1sico, mas voc\xEA pode optar por n\xE3o permitir outras categorias de acordo com suas prefer\xEAncias. <link>Saiba mais</link>",necessaryText:"Cookies essenciais",necessaryDescription:"Necess\xE1rios para ativar funcionalidades principais do site e salvar suas prefer\xEAncias.",marketingText:"Cookies de marketing",marketingDescription:"Permitem o rastreamento para personalizar an\xFAncios e medir seu desempenho.",preferencesText:"Cookies de personaliza\xE7\xE3o",preferencesDescription:"Permitem o rastreamento para adaptar a experi\xEAncia do site aos seus interesses.",analyticsText:"Cookies de an\xE1lise",anal
10706yticsDescription:"Permitem o rastreamento do uso do site para melhorar seu desempenho.",saveLabel:"Salvar prefer\xEAncias",triggerLabel:"Prefer\xEAncias de cookies"},"ko-KR":{noticeHeader:"\uC774 \uC0AC\uC774\uD2B8\uB294 \uCFE0\uD0A4\uB97C \uC0AC\uC6A9\uD569\uB2C8\uB2E4",noticeDisclaimerImplicit:"\uC774 \uC0AC\uC774\uD2B8\uC758 \uCFE0\uD0A4\uB294 \uC0AC\uC6A9\uC790 \uACBD\uD5D8\uC744 \uAC1C\uC120\uD558\uACE0 \uAC1C\uC778\uD654\uB41C \uCF58\uD150\uCE20\uB97C \uC81C\uACF5\uD569\uB2C8\uB2E4. \uACC4\uC18D \uD0D0\uC0C9\uD558\uBA74 \uC774\uB7EC\uD55C \uCFE0\uD0A4 \uC0AC\uC6A9\uC5D0 \uB3D9\uC758\uD558\uB294 \uAC83\uC73C\uB85C \uAC04\uC8FC\uB429\uB2C8\uB2E4. <link>\uC790\uC138\uD788 \uC54C\uC544\uBCF4\uAE30</link>",acceptText:"\uBAA8\uB450 \uD5C8\uC6A9",manageText:"\uAD00\uB9AC",noticeDisclaimerExplicit:"\uC774 \uC0AC\uC774\uD2B8\uC758 \uCFE0\uD0A4\uB294 \uC0AC\uC6A9\uC790 \uACBD\uD5D8\uC744 \uAC1C\uC120\uD558\uACE0 \uAC1C\uC778\uD654\uB41C \uCF58\uD150\uCE20\uB97C \uC81C\uACF5\uD569\uB2C8\uB2E4. \u201C\uBAA8\uB450 \uD5C8\uC6A9\u201D\uC744 \uD074\uB9AD\uD558\uBA74 \uCFE0\uD0A4 \uC0AC\uC6A9\uC5D0 \uB3D9\uC758\uD558\uAC8C \uB429\uB2C8\uB2E4. <link>\uC790\uC138\uD788 \uC54C\uC544\uBCF4\uAE30</link>",rejectText:"\uBAA8\uB450 \uAC70\uBD80",manageHeader:"\uCFE0\uD0A4 \uD658\uACBD\uC124\uC815 \uAD00\uB9AC",manageDisclaimer:"\uC774 \uC0AC\uC774\uD2B8\uC758 \uCFE0\uD0A4\uB294 \uC0AC\uC6A9\uC790 \uACBD\uD5D8\uC744 \uAC1C\uC120\uD558\uACE0 \uAC1C\uC778\uD654\uB41C \uCF58\uD150\uCE20\uB97C \uC81C\uACF5\uD569\uB2C8\uB2E4. \uAE30\uBCF8 \uAE30\uB2A5\uC5D0 \uD544\uC218\uC801\uC778 \uCFE0\uD0A4\uB294 \uC120\uD0DD \uD574\uC81C\uD560 \uC218 \uC5C6\uC9C0\uB9CC, \uAE30\uD0C0 \uCE74\uD14C\uACE0\uB9AC\uB294 \uC124\uC815\uC5D0 \uB530\uB77C \uD5C8\uC6A9\uD558\uC9C0 \uC54A\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4. <link>\uC790\uC138\uD788 \uC54C\uC544\uBCF4\uAE30</link>",necessaryText:"\uD544\uC218 \uCFE0\uD0A4",necessaryDescription:"\uD575\uC2EC \uC0AC\uC774\uD2B8 \uAE30\uB2A5 \uBC0F \uD658\uACBD\uC124\uC815 \uC720\uC9C0\uB97C \uC704\uD574 \uD544\uC694\uD569\uB2C8\uB2E4.",marketingText:"\uB9C8\uCF00\uD305 \uCFE0\uD0A4",marketingDescription:"\uAD11\uACE0 \uAC1C\uC778\uD654 \uBC0F \uCD94\uC801\uC744 \uC704\uD574 \uC0AC\uC6A9\uB429\uB2C8\uB2E4.",preferencesText:"\uAC1C\uC778\uD654 \uCFE0\uD0A4",preferencesDescription:"\uAD00\uC2EC\uC0AC\uC5D0 \uB9DE\uB294 \uCF58\uD150\uCE20 \uC81C\uACF5\uC744 \uC704\uD574 \uC0AC\uC6A9\uB429\uB2C8\uB2E4.",analyticsText:"\uBD84\uC11D \uCFE0\uD0A4",analyticsDescription:"\uC0AC\uC774\uD2B8 \uD2B8\uB798\uD53D \uBD84\uC11D \uBC0F \uC131\uB2A5 \uAC1C\uC120\uC744 \uC704\uD574 \uC0AC\uC6A9\uB429\uB2C8\uB2E4.",s
10706aveLabel:"\uD658\uACBD\uC124\uC815 \uC800\uC7A5",triggerLabel:"\uCFE0\uD0A4 \uD658\uACBD\uC124\uC815"},"ja-JP":{noticeHeader:"\u3053\u306E\u30B5\u30A4\u30C8\u306F\u30AF\u30C3\u30AD\u30FC\u3092\u4F7F\u7528\u3057\u3066\u3044\u307E\u3059",noticeDisclaimerImplicit:"\u3053\u306E\u30B5\u30A4\u30C8\u3067\u306F\u3001\u30AF\u30C3\u30AD\u30FC\u3092\u4F7F\u7528\u3057\u3066\u30E6\u30FC\u30B6\u30FC\u4F53\u9A13\u3092\u5411\u4E0A\u3055\u305B\u3001\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u3055\u308C\u305F\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u63D0\u4F9B\u3057\u3066\u3044\u307E\u3059\u3002\u5F15\u304D\u7D9A\u304D\u95B2\u89A7\u3092\u7D9A\u3051\u308B\u3053\u3068\u3067\u3001\u30AF\u30C3\u30AD\u30FC\u306E\u4F7F\u7528\u306B\u540C\u610F\u3057\u305F\u3082\u306E\u3068\u307F\u306A\u3055\u308C\u307E\u3059\u3002<link>\u8A73\u7D30\u3092\u898B\u308B</link>",acceptText:"\u3059\u3079\u3066\u8A31\u53EF",manageText:"\u7BA1\u7406",noticeDisclaimerExplicit:"\u3053\u306E\u30B5\u30A4\u30C8\u3067\u306F\u3001\u30AF\u30C3\u30AD\u30FC\u3092\u4F7F\u7528\u3057\u3066\u30E6\u30FC\u30B6\u30FC\u4F53\u9A13\u3092\u5411\u4E0A\u3055\u305B\u3001\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u3055\u308C\u305F\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u63D0\u4F9B\u3057\u3066\u3044\u307E\u3059\u3002\u300C\u3059\u3079\u3066\u8A31\u53EF\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u3068\u3001\u30AF\u30C3\u30AD\u30FC\u306E\u4F7F\u7528\u306B\u540C\u610F\u3057\u305F\u3053\u3068\u306B\u306A\u308A\u307E\u3059\u3002<link>\u8A73\u7D30\u3092\u898B\u308B</link>",rejectText:"\u3059\u3079\u3066\u62D2\u5426",manageHeader:"\u30AF\u30C3\u30AD\u30FC\u8A2D\u5B9A\u3092\u7BA1\u7406",manageDisclaimer:"\u3053\u306E\u30B5\u30A4\u30C8\u3067\u306F\u3001\u30AF\u30C3\u30AD\u30FC\u3092\u4F7F\u7528\u3057\u3066\u30E6\u30FC\u30B6\u30FC\u4F53\u9A13\u3092\u5411\u4E0A\u3055\u305B\u3001\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u3055\u308C\u305F\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u63D0\u4F9B\u3057\u3066\u3044\u307E\u3059\u3002\u57FA\u672C\u7684\u306A\u6A5F\u80FD\u306B\u5FC5\u8981\u306A\u30AF\u30C3\u30AD\u30FC\u306F\u7121\u52B9\u306B\u3067\u304D\u307E\u305B\u3093\u304C\u3001\u305D\u308C\u4EE5\u5916\u306E\u30AB\u30C6\u30B4\u30EA\u306B\u3064\u3044\u3066\u306F\u8A2D\u5B9A\u306B\u5FDC\u3058\u3066\u7121\u52B9\u306B\u3067\u304D\u307E\u3059\u3002<link>\u8A73\u7D30\u3092\u898B\u308B</link>",necessaryText:"\u5FC5\u9808\u30AF\u30C3\u30AD\u30FC",necessaryDescription:"\u30B5\u30A4\u30C8\u306E\u57FA\u672C\u6A5F\u80FD\u3068\u8A2D\u5B9A\u306E\u4FDD\u6301\u306B\u5FC5\u8981\u3067\u3059\u3002",marketingText:"\u30DE\u30FC\u30B1\u30C6\u30A3\u30F3\u30B0\u30AF\u30C3\u30AD\u30FC",marketingDescription:"\u5E83\u544A\u306E\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u3068\u8FFD\u8DE1\u3092\u8A31\u53EF\u3057\u307E\u3059\u3002",preferencesText:"\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u30AF\u30C3\u30AD\u30FC",preferencesDescription:"\u8208\u5473\u306B\u57FA\u3065\u3044\u305F\u4F53\u9A13\u3092\u63D0\u4F9B\u3059\u308B\u305F\u3081\u306B\u4F7F\u7528\u3055\u308C\u307E\u3059\u3002",analyticsText:"\u5206\u6790\u30AF\u30C3\u30AD\u30FC",analyticsDescription:"\u30B5\u30A4\u30C8\u306E\u5229\u7528\u72B6\u6CC1\u3092\u8FFD\u8DE1\u3057\u3066\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u3092\u54
1070611\u4E0A\u3055\u305B\u307E\u3059\u3002",saveLabel:"\u8A2D\u5B9A\u3092\u4FDD\u5B58",triggerLabel:"\u30AF\u30C3\u30AD\u30FC\u8A2D\u5B9A"},"pl-PL":{noticeHeader:"Ta strona korzysta z plik\xF3w cookie",noticeDisclaimerImplicit:"Pliki cookie na tej stronie pomagaj\u0105 ulepszy\u0107 Twoje do\u015Bwiadczenia i dostarcza\u0107 spersonalizowane tre\u015Bci. Kontynuuj\u0105c przegl\u0105danie, wyra\u017Casz zgod\u0119 na ich u\u017Cycie. <link>Dowiedz si\u0119 wi\u0119cej</link>",acceptText:"Zaakceptuj wszystkie",manageText:"Zarz\u0105dzaj",noticeDisclaimerExplicit:"Pliki cookie na tej stronie pomagaj\u0105 ulepszy\u0107 Twoje do\u015Bwiadczenia i dostarcza\u0107 spersonalizowane tre\u015Bci. Kliknij \u201EZaakceptuj wszystkie\u201D, aby wyrazi\u0107 zgod\u0119 na ich u\u017Cycie. <link>Dowiedz si\u0119 wi\u0119cej</link>",rejectText:"Odrzu\u0107 wszystkie",manageHeader:"Zarz\u0105dzaj preferencjami plik\xF3w cookie",manageDisclaimer:"Pliki cookie na tej stronie pomagaj\u0105 ulepszy\u0107 Twoje do\u015Bwiadczenia i dostarcza\u0107 spersonalizowane tre\u015Bci. Nie mo\u017Cesz zrezygnowa\u0107 z plik\xF3w cookie niezb\u0119dnych do podstawowego dzia\u0142ania witryny, ale mo\u017Cesz odrzuci\u0107 inne kategorie wed\u0142ug w\u0142asnych preferencji. <link>Dowiedz si\u0119 wi\u0119cej</link>",necessaryText:"Niezb\u0119dne pliki cookie",necessaryDescription:"Wymagane do dzia\u0142ania podstawowych funkcji witryny i zapami\u0119tywania ustawie\u0144.",marketingText:"Pliki cookie marketingowe",marketingDescription:"Pozwalaj\u0105 na \u015Bledzenie w celu personalizacji reklam i pomiaru skuteczno\u015Bci.",preferencesText:"Pliki cookie personalizuj\u0105ce",preferencesDescription:"Pozwalaj\u0105 na dostosowanie tre\u015Bci do Twoich zainteresowa\u0144.",analyticsText:"Pliki cookie analityczne",analyticsDescription:"Pozwalaj\u0105 na analiz\u0119 ruchu i popraw\u0119 wydajno\u015Bci witryny.",saveLabel:"Zapisz preferencje",triggerLabel:"Preferencje plik\xF3w cookie"},"nl-NL":{noticeHeader:"Deze website maakt gebruik van cookies",noticeDisclaimerImplicit:"Cookies op deze website helpen uw ervaring te verbeteren en gepersonaliseerde inhoud aan te bieden. Door verder te gaan, stemt u in met het gebruik van deze cookies. <link>Meer informatie</link>",acceptText:"Alles accepteren",manageText:"Beheren",noticeDisclaimerExplicit:"Cookies op deze website helpen uw ervaring te verbeteren en gepersonaliseerde inhoud aan te bieden. Klik op \u201CAlles accepteren\u201D om in te stemmen met het gebruik van deze cookies. <link>Meer informatie</link>",rejectText:"Alles weigeren",manageHeader:"Cookievoorkeuren beheren",manageDisclaimer:"Cookies op deze website helpen uw ervaring te verbeteren en gepersonaliseerde inhoud aan te bieden. U kunt essenti\xEBle cookies, die nodig zijn voor de basisfunctionaliteit, niet uitschakelen, maar u kunt andere categorie\xEBn weigeren op basis van uw voorkeuren. <link>Meer informatie</link>",necessaryText:"Essenti\xEBle cookies",necessaryDescription:"Noodzakelijk voor de kernfunctionaliteit van de site en het opslaan van uw voorkeuren.",marketingText:"Marketingcookies",marketingDescription:"Sta tracking toe voor gepersonaliseerde advertenties en het meten van prestaties.",preferencesText:"Personalisatiecookies",preferencesDescription:"Sta tracking toe om de site-ervaring aan te passen aan uw interesses.",analyticsText:"Analysecookies",analyticsDescription:"Sta tracking toe om sitegebruik te analyseren en prestaties te verbeteren.",saveLabel:"Voorkeuren opslaan",triggerLabel:"Cookievoorkeuren"},"it-IT":{noticeHeader:"Questo sito utilizza i cookie",noticeDisclaimerImplicit:"I cookie su questo sito aiutano a migliorare la tua esperienza e a fornire contenuti personalizzati. Continuando a navigare, acconsenti all\u2019uso dei cookie. <link>Scopri di pi\xF9</link>",acceptText:"Accetta tutti",manageText:"Gestisci",noticeDisclaimerExplicit:"I cookie su questo sito aiutano a migliorare la tua esperienza e a fornire contenuti personalizzati. Clicca su \u201CAccetta tutti\u201D per acconsentire all\u2019uso dei cookie. <link>Scopri di pi\xF9</link>",rejectText:"Rifiuta tutti",manageHeader:"Gestisci preferenze cookie",manageDisclaimer:"I cookie su questo sito aiutano a migliorare la tua esperienza e a fornire contenuti personalizzati. Non puoi disattivare i cookie essenziali per il funzionamento di base, ma puoi scegliere di non consentire altre categorie secondo le tue preferenze. <link>Scopri di pi\xF9</link>",necessaryText:"Cookie essenziali",necessaryDescription:"Necessari per il funzionamento base del sito e il salvataggio delle preferenze.",marketingText:"Cookie di marketing",marketingDescription:"Consentono il tracciamento per la personalizzazione degli annunci e la misurazione delle prestazioni.",preferencesText:"Cookie di personalizzazione",preferencesDescription:"Consentono il tracciamento per personalizzare l\u2019esperienza in base ai tuoi interessi.",analyticsText:"Cookie di analisi",analyticsDescription:"Consentono il tracciamento dell\u2019uso del sito per migliorarne le prestazioni.",saveLabel:"Salva preferenze",triggerLabel:"Preferenze cookie"},"pt-PT":{noticeHeader:"Este site utiliza cookies",noticeDisclaimerImplicit:"Os cookies neste site ajudam a melhorar a sua experi\xEAncia e a fornecer conte\xFAdo personalizado. Ao continuar a navegar, est\xE1 a consentir a utiliza\xE7\xE3o destes cookies. <link>Saiba mais</link>",acceptText:"Aceitar todos",manageText:"Gerir",noticeDisclaimerExplicit:"Os cookies neste site ajudam a melhorar a sua experi\xEAncia e a fornecer conte\xFAdo personalizado. Clique em \u201CAceitar todos\u201D para consentir a utiliza\xE7\xE3o destes cookies. <link>Saiba mais</link>",rejectText:"Rejeitar todos",manageHeader:"Gerir prefer\xEAncias de cookies",manageDisclaimer:"Os cookies neste site ajudam a melhorar a sua experi\xEAncia e a fornecer conte\xFAdo personalizado. N\xE3o pode desativar os cookies essenciais ao funcionamento b\xE1sico, mas pode recusar outras categorias de acordo com as suas prefer\xEAncias. <link>Saiba mais</link>",necessaryText:"Cookies essenciais",necessaryDescription:"Necess\xE1rios para ativar funcionalidades b\xE1sicas do site e guardar as suas prefer\xEAncias.",marketingText:"Cookies de marketing",marketingDescription:"Permitem a monitoriza\xE7\xE3o para personalizar an\xFAncios e medir o desempenho.",preferencesText:"Cookies de personaliza\xE7\xE3o",preferencesDescription:"Permitem a monitoriza\xE7\xE3o para adaptar a experi\xEAncia do site aos seus interesses.",analyticsText:"Cookies de an\xE1lise",anal
10706yticsDescription:"Permitem a monitoriza\xE7\xE3o da utiliza\xE7\xE3o do site para melhorar o desempenho.",saveLabel:"Guardar prefer\xEAncias",triggerLabel:"Prefer\xEAncias de cookies"},"sv-SE":{noticeHeader:"Den h\xE4r webbplatsen anv\xE4nder cookies",noticeDisclaimerImplicit:"Cookies p\xE5 den h\xE4r webbplatsen hj\xE4lper till att f\xF6rb\xE4ttra din upplevelse och visa personligt inneh\xE5ll. Genom att forts\xE4tta surfa samtycker du till anv\xE4ndningen av cookies. <link>L\xE4s mer</link>",acceptText:"Acceptera alla",manageText:"Hantera",noticeDisclaimerExplicit:"Cookies p\xE5 den h\xE4r webbplatsen hj\xE4lper till att f\xF6rb\xE4ttra din upplevelse och visa personligt inneh\xE5ll. Klicka p\xE5 \u201DAcceptera alla\u201D f\xF6r att godk\xE4nna anv\xE4ndningen av cookies. <link>L\xE4s mer</link>",rejectText:"Avvisa alla",manageHeader:"Hantera cookieinst\xE4llningar",manageDisclaimer:"Cookies p\xE5 den h\xE4r webbplatsen hj\xE4lper till att f\xF6rb\xE4ttra din upplevelse och visa personligt inneh\xE5ll. Du kan inte v\xE4lja bort cookies som \xE4r n\xF6dv\xE4ndiga f\xF6r grundl\xE4ggande funktioner, men du kan v\xE4lja bort andra kategorier enligt dina preferenser. <link>L\xE4s mer</link>",necessaryText:"N\xF6dv\xE4ndiga cookies",necessaryDescription:"Kr\xE4vs f\xF6r grundl\xE4ggande funktionalitet och f\xF6r att spara inst\xE4llningar.",marketingText:"Marknadsf\xF6ringscookies",marketingDescription:"Till\xE5ter sp\xE5rning f\xF6r att anpassa annonser och m\xE4ta resultat.",preferencesText:"Personaliseringcookies",preferencesDescription:"Till\xE5ter sp\xE5rning f\xF6r att anpassa upplevelsen efter dina intressen.",analyticsText:"Analyscookies",analyticsDescription:"Till\xE5ter sp\xE5rning av anv\xE4ndning f\xF6r att f\xF6rb\xE4ttra prestanda.",saveLabel:"Spara inst\xE4llningar",triggerLabel:"Cookieinst\xE4llningar"},"da-DK":{noticeHeader:"Dette websted bruger cookies",noticeDisclaimerImplicit:"Cookies p\xE5 dette websted hj\xE6lper med at forbedre din oplevelse og levere tilpasset indhold. Ved at forts\xE6tte med at bruge siden accepterer du brugen af cookies. <link>L\xE6s mere</link>",acceptText:"Accept\xE9r alle",manageText:"Administrer",noticeDisclaimerExplicit:'Cookies p\xE5 dette websted hj\xE6lper med at forbedre din oplevelse og levere tilpasset indhold. Klik p\xE5 "Accept\xE9r alle" for at acceptere brugen af cookies. <link>L\xE6s mere</link>',rejectText:"Afvis alle",manageHeader:"Administrer cookieindstillinger",manageDisclaimer:"Cookies p\xE5 dette websted hj\xE6lper med at forbedre din oplevelse og levere tilpasset indhold. Du kan ikke frav\xE6lge cookies, der er n\xF8dvendige for grundl\xE6ggende funktioner, men du kan v\xE6lge at afvise andre kategorier efter dine pr\xE6ferencer. <link>L\xE6s mere</link>",necessaryText:"N\xF8dvendige cookies",necessaryDescription:"N\xF8dvendige for grundl\xE6ggende funktionalitet og for at gemme dine indstillinger.",marketingText:"Marketingcookies",marketingDescription:"Tillad sporing for at aktivere tilpasning af annoncer og sporing.",preferencesText:"Tilpasningscookies",preferencesDescription:"Tillad sporing for at tilpasse webstedet efter dine interesser.",analyticsText:"Analysecookies",analyticsDescription:"Tillad sporing af webstedstrafik for at forbedre webstedets effektivitet.",saveLabel:"Gem indstillinger",triggerLabel:"Cookieindstillinger"},"fi-FI":{noticeHeader:"T\xE4m\xE4 sivusto k\xE4ytt\xE4\xE4 ev\xE4steit\xE4",noticeDisclaimerImplicit:"T\xE4m\xE4n sivuston ev\xE4steet parantavat k\xE4ytt\xF6kokemustasi ja tarjoavat personoitua sis\xE4lt\xF6\xE4. Jatkamalla selaamista hyv\xE4ksyt n\xE4iden ev\xE4steiden k\xE4yt\xF6n. <link>Lue lis\xE4\xE4</link>",acceptText:"Hyv\xE4ksy kaikki",manageText:"Hallitse",noticeDisclaimerExplicit:"T\xE4m\xE4n sivuston ev\xE4steet parantavat k\xE4ytt\xF6kokemustasi ja tarjoavat personoitua sis\xE4lt\xF6\xE4. Napsauta \u201DHyv\xE4ksy kaikki\u201D ev\xE4steiden k\xE4yt\xF6n hyv\xE4ksymiseksi. <link>Lue lis\xE4\xE4</link>",rejectText:"Hylk\xE4\xE4 kaikki",manageHeader:"Hallitse ev\xE4steasetuksia",manageDisclaimer:"T\xE4m\xE4n sivuston ev\xE4steet parantavat k\xE4ytt\xF6kokemustasi ja tarjoavat personoitua sis\xE4lt\xF6\xE4. V\xE4ltt\xE4m\xE4tt\xF6m
10706i\xE4 ev\xE4steit\xE4 ei voi poistaa k\xE4yt\xF6st\xE4, mutta voit est\xE4\xE4 muita ev\xE4stetyyppej\xE4 omien mieltymystesi mukaan. <link>Lue lis\xE4\xE4</link>",necessaryText:"V\xE4ltt\xE4m\xE4tt\xF6m\xE4t ev\xE4steet",necessaryDescription:"Tarvitaan sivuston perustoimintojen mahdollistamiseen ja asetusten tallentamiseen.",marketingText:"Markkinointiev\xE4steet",marketingDescription:"Sallivat seurannan mainonnan personointia ja mittaamista varten.",preferencesText:"Personointiev\xE4steet",preferencesDescription:"Sallivat seurannan sivuston k\xE4ytt\xF6kokemuksen r\xE4\xE4t\xE4l\xF6intiin omien kiinnostuksen kohteidesi mukaan.",analyticsText:"Analytiikkaev\xE4steet",analyticsDescription:"Sallivat sivuston verkkoliikenteen seurannan sivuston suorituskyvyn parantamiseksi.",saveLabel:"Tallenna asetukset",triggerLabel:"Ev\xE4steasetukset"},"cs-CZ":{noticeHeader:"Tato str\xE1nka pou\u017E\xEDv\xE1 soubory cookie",noticeDisclaimerImplicit:"Soubory cookie na t\xE9to str\xE1nce pom\xE1haj\xED zlep\u0161it va\u0161e zku\u0161enosti a poskytovat personalizovan\xFD obsah. Pokra\u010Dov\xE1n\xEDm v prohl\xED\u017Een\xED vyjad\u0159ujete souhlas s pou\u017E\xEDv\xE1n\xEDm t\u011Bchto soubor\u016F cookie. <link>V\xEDce informac\xED</link>",acceptText:"P\u0159ijmout v\u0161e",manageText:"Spravovat",noticeDisclaimerExplicit:"Soubory cookie na t\xE9to str\xE1nce pom\xE1haj\xED zlep\u0161it va\u0161e zku\u0161enosti a poskytovat personalizovan\xFD obsah. Kliknut\xEDm na \u201EP\u0159ijmout v\u0161e\u201C vyjad\u0159ujete souhlas s pou\u017E\xEDv\xE1n\xEDm t\u011Bchto soubor\u016F cookie. <link>V\xEDce informac\xED</link>",rejectText:"Odm\xEDtnout v\u0161e",manageHeader:"Spravovat p\u0159edvolby soubor\u
10706016F cookie",manageDisclaimer:"Soubory cookie na t\xE9to str\xE1nce pom\xE1haj\xED zlep\u0161it va\u0161e zku\u0161enosti a poskytovat personalizovan\xFD obsah. Nelze odm\xEDtnout soubory cookie, kter\xE9 jsou nezbytn\xE9 pro z\xE1kladn\xED funk\u010Dnost, ale m\u016F\u017Eete se rozhodnout nepovolit ostatn\xED kategorie podle sv\xFDch p\u0159edvoleb. <link>V\xEDce informac\xED</link>",necessaryText:"Nezbytn\xE9 soubory cookie",necessaryDescription:"Vy\u017Eadov\xE1ny k umo\u017En\u011Bn\xED z\xE1kladn\xED funk\u010Dnosti a p\u0159edvoleb str\xE1nky.",marketingText:"Marketingov\xE9 soubory cookie",marketingDescription:"Umo\u017E\u0148uj\xED sledov\xE1n\xED za \xFA\u010Delem personalizace reklam a m\u011B\u0159en\xED jejich \xFA\u010Dinnosti.",preferencesText:"Personaliza\u010Dn\xED soubory cookie",preferencesDescription:"Umo\u017E\u0148uj\xED sledov\xE1n\xED za \xFA\u010Delem p\u0159izp\u016Fsoben\xED prost\u0159ed\xED webu va\u0161im z\xE1jm\u016Fm.",analyticsText:"Analytick\xE9 soubory cookie",analyticsDescription:"Umo\u017E\u0148uj\xED sledov\xE1n\xED n\xE1v\u0161t\u011Bvnosti webu pro zlep\u0161en\xED jeho v\xFDkonu.",saveLabel:"Ulo\u017Eit p\u0159edvolby",triggerLabel:"P\u0159edvolby soubor\u
10706016F cookie"},"hu-HU":{noticeHeader:"Ez a webhely cookie-kat haszn\xE1l",noticeDisclaimerImplicit:"Ez a webhely cookie-kat haszn\xE1l az \xE9lm\xE9ny jav\xEDt\xE1sa \xE9s a szem\xE9lyre szabott tartalom megjelen\xEDt\xE9se \xE9rdek\xE9ben. A b\xF6ng\xE9sz\xE9s folytat\xE1s\xE1val \xD6n elfogadja a cookie-k haszn\xE1lat\xE1t. <link>Tov\xE1bbi inform\xE1ci\xF3</link>",acceptText:"\xD6sszes elfogad\xE1sa",manageText:"Kezel\xE9s",noticeDisclaimerExplicit:"Ez a webhely cookie-kat haszn\xE1l az \xE9lm\xE9ny jav\xEDt\xE1sa \xE9s a szem\xE9lyre szabott tartalom megjelen\xEDt\xE9se \xE9rdek\xE9ben. Kattintson az \u201E\xD6sszes elfogad\xE1sa\u201D gombra a cookie-k haszn\xE1lat\xE1nak enged\xE9lyez\xE9s\xE9hez. <link>Tov\xE1bbi inform\xE1ci\xF3</link>",rejectText:"\xD6sszes elutas\xEDt\xE1sa",manageHeader:"Cookie-be\xE1ll\xEDt\xE1sok kezel\xE9se",manageDisclaimer:"Ez a webhely cookie-kat haszn\xE1l az \xE9lm\xE9ny jav\xEDt\xE1sa \xE9s a szem\xE9lyre szabott tartalom megjelen\xEDt\xE9se \xE9rdek\xE9ben. Az alapvet\u0151 funkci\xF3khoz sz\xFCks\xE9ges cookie-kat nem lehet letiltani, de a t\xF6bbi kateg\xF3ria enged\xE9lyez\xE9s\xE9t be\xE1ll\xEDthatja a saj\xE1t preferenci\xE1i szerint. <link>Tov\xE1bbi inform\xE1ci\xF3</link>",necessaryText:"Alapvet\u0151 cookie-k",necessaryDescription:"A webhely alapvet\u0151 funkci\xF3inak m\u0171k\xF6d\xE9s\xE9hez \xE9s a be\xE1ll\xEDt\xE1sok ment\xE9s\xE9hez sz\xFCks\xE9gesek.",marketingText:"Marketing cookie-k",marketingDescription:"Lehet\u0151v\xE9 teszik a nyomon k\xF6vet\xE9st a hirdet\xE9sek szem\xE9lyre szab\xE1s\xE1hoz \xE9s teljes\xEDtm\xE9ny\xFCk m\xE9r\xE9s\xE9hez.",preferencesText:"Szem\xE9lyre szab\xE1si cookie-k",preferencesDescription:"Lehet\u0151v\xE9 teszik a felhaszn\xE1l\xF3i \xE9lm\xE9ny \xE9rdekl\u0151d\xE9si k\xF6r\xF6k\xF6n alapul\xF3 szem\xE9lyre szab\xE1s\xE1t.",analyticsText:"Analitikai cookie-k",analyticsDescription:"A webhelyhaszn\xE1lat nyomon k\xF6vet\xE9s\xE9re \xE9s a teljes\xEDtm\xE9ny jav\xEDt\xE1s\xE1ra szolg\xE1lnak.",saveLabel:"Be\xE1ll\xEDt\xE1sok ment\xE9se",triggerLabel:"Cookie-be\xE1ll\xEDt\xE1sok"}
10706,"el-GR":{noticeHeader:"\u0391\u03C5\u03C4\u03CC\u03C2 \u03BF \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF\u03C2 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF cookies",noticeDisclaimerImplicit:"\u03A4\u03B1 cookies \u03C3\u03B5 \u03B1\u03C5\u03C4\u03CC\u03BD \u03C4\u03BF\u03BD \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF \u03B2\u03BF\u03B7\u03B8\u03BF\u03CD\u03BD \u03C3\u03C4\u03B7 \u03B2\u03B5\u03BB\u03C4\u03AF\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03B5\u03BC\u03C0\u03B5\u03B9\u03C1\u03AF\u03B1\u03C2 \u03C3\u03B1\u03C2 \u03BA\u03B1\u03B9 \u03C3\u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03BF\u03C7\u03AE \u03B5\u03BE\u03B1\u03C4\u03BF\u03BC\u03B9\u03BA\u03B5\u03C5\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5. \u03A3\u03C5\u03BD\u03B5\u03C7\u03AF\u03B6\u03BF\u03BD\u03C4\u03B1\u03C2 \u03C4\u03B7\u03BD \u03C0\u03B5\u03C1\u03B9\u03AE\u03B3\u03B7\u03C3\u03B7, \u03B1\u03C0\u03BF\u03B4\u03AD\u03C7\u03B5\u03C3\u03C4\u03B5 \u03C4\u03B7 \u03C7\u03C1\u03AE\u03C3\u03B7 \u03C4\u03C9\u03BD cookies. <link>\u039C\u03AC\u03B8\u03B5\u03C4\u03B5 \u03C0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B1</link>",acceptText:"\u0391\u03C0\u03BF\u03B4\u03BF\u03C7\u03AE \u03CC\u03BB\u03C9\u03BD",manageText:"\u0394\u03B9\u03B1\u03C7\u03B5\u03AF\u03C1\u03B9\u03C3\u03B7",noticeDisclaimerExplicit:"\u03A4\u03B1 cookies \u03C3\u03B5 \u03B1\u03C5\u03C4\u03CC\u03BD \u03C4\u03BF\u03BD \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF \u03B2\u03BF\u03B7\u03B8\u03BF\u03CD\u03BD \u03C3\u03C4\u03B7 \u03B2\u03B5\u03BB\u03C4\u03AF\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03B5\u03BC\u03C0\u03B5\u03B9\u03C1\u03AF\u03B1\u03C2 \u03C3\u03B1\u03C2 \u03BA\u03B1\u03B9 \u03C3\u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03BF\u03C7\u03AE \u03B5\u03BE\u03B1\u03C4\u03BF\u03BC\u03B9\u03BA\u03B5\u03C5\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5. \u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03C3\u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u201C\u0391\u03C0\u03BF\u03B4\u03BF\u03C7\u03AE \u03CC\u03BB\u03C9\u03BD\u201D \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B4\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7 \u03C3\u03C5\u03B3\u03BA\u03B1\u03C4\u03AC\u03B8\u03B5\u03C3\u03AE \u03C3\u03B1\u03C2 \u03C3\u03C4\u03B7 \u03C7\u03C1\u03AE\u03C3\u03B7 \u03C4\u03C9\u03BD cookies. <link>\u039C\u03AC\u03B8\u03B5\u03C4\u03B5 \u03C0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B1</link>",rejectText:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7 \u03CC\u03BB\u03C9\u03BD",manageHeader:"\u0394\u03B9\u03B1\u03C7\u03B5\u03AF\u03C1\u03B9\u03C3\u03B7 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03C9\u03BD cookies",manageDisclaimer:"\u03A4\u03B1 cookies \u03C3\u03B5 \u03B1\u03C5\u03C4\u03CC\u03BD \u03C4\u03BF\u03BD \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF \u03B2\u03BF\u03B7\u03B8\u03BF\u03CD\u03BD \u03C3\u03C4\u03B7 \u03B2\u03B5\u03BB\u03C4\u03AF\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03B5\u03BC\u03C0\u03B5\u03B9\u03C1\u03AF\u03B1\u03C2 \u03C3\u03B1\u03C2 \u03BA\u03B1\u03B9 \u03C3\u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03BF\u03C7\u03AE \u03B5\u03BE\u03B1\u03C4\u03BF\u03BC\u03B9\u03BA\u03B5\u03C5\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5. \u0394\u03B5\u03BD \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03C0\u03BF\u03C1\u03C1\u03AF\u03C8\u03B5\u03C4\u03B5 \u03C4\u03B1 \u03B1\u03C0\u03BF\u03BB\u03CD\u03C4\u03C9\u03C2 \u03B1\u03C0\u03B1\u03C1\u03B1\u03AF\u03C4\u03B7\u03C4\u03B1 cookies, \u03B1\u03BB\u03BB\u03AC \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03C0\u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03C4\u03B5 \u03AC\u03BB\u03BB\u03B5\u03C2 \u03BA\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B5\u03C2 \u03C3\u03CD\u03BC\u03C6\u03C9\u03BD\u03B1 \u03BC\u03B5 \u03C4\u03B9\u03C2 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 \u03C3\u03B1\u03C2. <link>\u039C\u03AC\u03B8\u03B5\u03C4\u03B5 \u03C0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B1</link>",necessaryText:"\u0391\u03C0\u03B1\u03C1\u03B1\u03AF\u03C4\u03B7\u03C4\u03B1 cookies",necessaryDescription:"\u0391\u03C0\u03B1\u03B9\u03C4\u03BF\u03CD\u03BD\u03C4\u03B1\u03B9 \u03B3\u03B9\u03B1 \u03B2\u03B1\u03C3\u03B9\u03BA\u03AD\u03C2 \u03BB\u03B5\u03B9\u03C4\u03BF\u03C5\u03C1\u03B3\u03AF\u03B5\u03C2 \u03C4\u03BF\u03C5 \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF\u03C5 \u03BA\u03B1\u03B9 \u03B1\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03C9\u03BD.",marketingText:"Cookies \u03BC\u03AC\u03C1\u03BA\u03B5\u03C4\u03B9\u03BD\u03B3\u03BA",marketingDescription:"\u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03BF\u03C5\u03BD \u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03B1\u03BA\u03BF\u03BB\u03BF\u03CD\u03B8\u03B7\u03C3\u03B7 \u03B3\u03B9\u03B1 \u03B5\u03BE\u03B1\u03C4\u03BF\u03BC\u03AF\u03BA\u03B5\u03C5\u03C3\u03B7 \u03B4\u03B9\u03B1\u03C6\u03B7\u03BC\u03AF\u03C3\u03B5\u03C9\u03BD \u03BA\u03B1\u03B9 \u03BC\u03AD\u03C4\u03C1\u03B7\u03C3\u03B7 \u03B1\u03C0\u03CC\u03B4\u03BF\u03C3\u03B7\u03C2.",preferencesText:"Cookies \u03B5\u03BE\u03B1\u03C4\u03BF\u03BC\u03AF\u03BA\u03B5\u03C5\u03C3\u03B7\u03C2",preferencesDescription:"\u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03BF\u03C5\u03BD \u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03B1\u03BA\u03BF\u03BB\u03BF\u03CD\u03B8\u03B7\u03C3\u03B7 \u03B3\u03B9\u03B1 \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE \u03C4\u03B7\u03C2 \u03B5\u03BC\u03C0\u03B5\u03B9\u03C1\u03AF\u03B1\u03C2 \u03C3\u03CD\u03BC\u03C6\u03C9\u03BD\u03B1 \u03BC\u03B5 \u03C4\u03B1 \u03B5\u03BD\u03B4\u03B9\u03B1\u03C6\u03AD\u03C1\u03BF\u03BD\u03C4\u03AC \u03C3\u03B1\u03C2.",anal
10706yticsText:"Cookies \u03B1\u03BD\u03AC\u03BB\u03C5\u03C3\u03B7\u03C2",analyticsDescription:"\u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03BF\u03C5\u03BD \u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03B1\u03BA\u03BF\u03BB\u03BF\u03CD\u03B8\u03B7\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03C7\u03C1\u03AE\u03C3\u03B7\u03C2 \u03C4\u03BF\u03C5 \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF\u03C5 \u03B3\u03B9\u03B1 \u03C4\u03B7 \u03B2\u03B5\u03BB\u03C4\u03AF\u03C9\u03C3\u03B7 \u03C4\u03C9\u03BD \u03B5\u03C0\u03B9\u03B4\u03CC\u03C3\u03B5\u03C9\u03BD.",saveLabel:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03C9\u03BD",triggerLabel:"\u03A0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 cookies"},"ro-RO":{noticeHeader:"Acest site folose\u0219te cookie-uri",noticeDisclaimerImplicit:"Cookie-urile de pe acest site ajut\u0103 la \xEEmbun\u0103t\u0103\u021Birea experien\u021Bei \u0219i la furnizarea de con\u021Binut personalizat. Continu\xE2nd navigarea, sunte\u021Bi de acord cu utilizarea cookie-urilor. <link>Citi\u021Bi mai multe</link>",acceptText:"Accepta\u021Bi toate",manageText:"Gestionare",noticeDisclaimerExplicit:"Cookie-urile de pe acest site ajut\u0103 la \xEEmbun\u0103t\u0103\u021Birea experien\u021Bei \u0219i la furnizarea de con\u021Binut personalizat. Face\u021Bi clic pe \u201EAccepta\u021Bi toate\u201D pentru a v\u0103 da consim\u021B\u0103m\xE2ntul pentru utilizarea cookie-urilor. <link>Citi\u021Bi mai multe</link>",rejectText:"Respinge\u021Bi toate",manageHeader:"Gestiona\u021Bi preferin\u021Bele legate de cookie",manageDisclaimer:"Cookie-urile de pe acest site ajut\u0103 la \xEEmbun\u0103t\u0103\u021Birea experien\u021Bei \u0219i la furnizarea de con\u021Binut personalizat. Nu pute\u021Bi refuza cookie-urile esen\u021Biale pentru func\u021Bionalitatea de baz\u0103, dar pute\u021Bi refuza alte categorii conform preferin\u021Belor dvs. <link>Citi\u021Bi mai multe</link>",necessaryText:"Cookie-uri esen\u021Biale",necessaryDescription:"Necesare pentru func\u021Biile de baz\u0103 ale site-ului \u0219i salvarea preferin\u021Belor.",marketingText:"Cookie-uri de marketing",marketingDescription:"Permit urm\u0103rirea pentru personalizarea \u0219i urm\u0103rirea reclamelor.",preferencesText:"Cookie-uri de personalizare",preferencesDescription:"Permit urm\u0103rirea pentru adaptarea experien\u021Bei de utilizare a site-ului la interesele dvs.",analyticsText:"Cookie-uri de analiz\u0103",analyticsDescription:"Permit urm\u0103rirea traficului de pe site pentru \xEEmbun\u0103t\u0103\u021Birea performan\u021Bei.",saveLabel:"Salva\u021Bi preferin\u021Bele",triggerLabel:"Preferin\u021Be legate de cookie"},"sk-SK":{noticeHeader:"T\xE1to lokalita pou\u017E\xEDva s\xFAbory cookie",noticeDisclaimerImplicit:"S\xFAbory cookie na tejto lokalite pom\xE1haj\xFA zlep\u0161i\u0165 v\xE1\u0161 z\xE1\u017Eitok a poskytova\u0165 personalizovan\xFD obsah. Pokra\u010Dovan\xEDm v prehliadan\xED s\xFAhlas\xEDte s ich pou\u017E\xEDvan\xEDm. <link>Viac inform\xE1ci\xED</link>",acceptText:"Prija\u0165 v\u0161etky",manageText:"Spravova\u0165",noticeDisclaimerExplicit:"S\xFAbory cookie na tejto lokalite pom\xE1haj\xFA zlep\u0161i\u0165 v\xE1\u0161 z\xE1\u017Eitok a poskytova\u0165 personalizovan\xFD obsah. Kliknut\xEDm na tla\u010Didlo Prija\u0165 v\u0161etky s\xFAhlas\xEDte s ich pou\u017E\xEDvan\xEDm. <link>Viac inform\xE1ci\xED</link>",rejectText:"Odmietnu\u0165 v\u0161etky",manageHeader:"Spr\xE1va predvolieb s\xFAborov cookie",manageDisclaimer:"S\xFAbory cookie na tejto lokalite pom\xE1haj\xFA zlep\u0161i\u0165 v\xE1\u0161 z\xE1\u017Eitok a poskytova\u0165 personalizovan\xFD obsah. Nevyhnutn\xE9 s\xFAbory cookie, ktor\xE9 zabezpe\u010Duj\xFA z\xE1kladn\xE9 funkcie, nie je mo\u017En\xE9 zak\xE1za\u0165, ale in\xE9 kateg\xF3rie m\xF4\u017Eete zak\xE1za\u0165 pod\u013Ea svojich preferenci\xED. <link>Viac inform\xE1ci\xED</link>",necessaryText:"Nevyhnutn\xE9 s\xFAbory cookie",necessaryDescription:"Potrebn\xE9 na povolenie z\xE1kladn\xFDch funkci\xED lokality a predvolieb.",marketingText:"Marketingov\xE9 s\xFAbory cookie",marketingDescription:"Umo\u017E\u0148uj\xFA sledovanie na prisp\xF4sobenie a meranie v\xFDkonu rekl\xE1m.",preferencesText:"Personaliza\u010Dn\xE9 s\xFAbory cookie",preferencesDescription:"Umo\u017E\u0148uj\xFA sledovanie na prisp\xF4sobenie lokality pod\u013Ea va\u0161ich z\xE1ujmov.",analyticsText:"Analytick\xE9 s\xFAbory cookie",anal
10706yticsDescription:"Umo\u017E\u0148uj\xFA sledovanie pou\u017E\xEDvania lokality na zlep\u0161enie jej v\xFDkonnosti.",saveLabel:"Ulo\u017Ei\u0165 predvo\u013Eby",triggerLabel:"Predvo\u013Eby s\xFAborov cookie"},"bg-BG":{noticeHeader:"\u0422\u043E\u0437\u0438 \u0441\u0430\u0439\u0442 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438",noticeDisclaimerImplicit:"\u0411\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438\u0442\u0435 \u043D\u0430 \u0442\u043E\u0437\u0438 \u0441\u0430\u0439\u0442 \u043F\u043E\u043C\u0430\u0433\u0430\u0442 \u0437\u0430 \u043F\u043E\u0434\u043E\u0431\u0440\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u0432\u0430\u0448\u0435\u0442\u043E \u0438\u0437\u0436\u0438\u0432\u044F\u0432\u0430\u043D\u0435 \u0438 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u044F\u043D\u0435 \u043D\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0430\u043D\u043E \u0441\u044A\u0434\u044A\u0440\u0436\u0430\u043D\u0438\u0435. \u041F\u0440\u043E\u0434\u044A\u043B\u0436\u0430\u0432\u0430\u0439\u043A\u0438 \u0434\u0430 \u0440\u0430\u0437\u0433\u043B\u0435\u0436\u0434\u0430\u0442\u0435, \u0432\u0438\u0435 \u0441\u0435 \u0441\u044A\u0433\u043B\u0430\u0441\u044F\u0432\u0430\u0442\u0435 \u0441 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u043D\u0435\u0442\u043E \u043D\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438. <link>\u041D\u0430\u0443\u0447\u0435\u0442\u0435 \u043F\u043E\u0432\u0435\u0447\u0435</link>",acceptText:"\u041F\u0440\u0438\u0435\u043C\u0430\u043C \u0432\u0441\u0438\u0447\u043A\u0438",manageText:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",noticeDisclaimerExplicit:"\u0411\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438\u0442\u0435 \u043D\u0430 \u0442\u043E\u0437\u0438 \u0441\u0430\u0439\u0442 \u043F\u043E\u043C\u0430\u0433\u0430\u0442 \u0437\u0430 \u043F\u043E\u0434\u043E\u0431\u0440\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u0432\u0430\u0448\u0435\u0442\u043E \u0438\u0437\u0436\u0438\u0432\u044F\u0432\u0430\u043D\u0435 \u0438 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u044F\u043D\u0435 \u043D\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0430\u043D\u043E \u0441\u044A\u0434\u044A\u0440\u0436\u0430\u043D\u0438\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201E\u041F\u0440\u0438\u0435\u043C\u0430\u043C \u0432\u0441\u0438\u0447\u043A\u0438\u201C, \u0437\u0430 \u0434\u0430 \u0441\u0435 \u0441\u044A\u0433\u043B\u0430\u0441\u0438\u0442\u0435 \u0441 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u043D\u0435\u0442\u043E \u043D\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438. <link>\u041D\u0430\u0443\u0447\u0435\u0442\u0435 \u043F\u043E\u0432\u0435\u0447\u0435</link>",rejectText:"\u041E\u0442\u043A\u0430\u0437\u0432\u0430\u043C \u0432\u0441\u0438\u0447\u043A\u0438",manageHeader:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043D\u0430 \u043F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u043D\u0438\u044F\u0442\u0430 \u0437\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438",manageDisclaimer:"\u0411\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438\u0442\u0435 \u043D\u0430 \u0442\u043E\u0437\u0438 \u0441\u0430\u0439\u0442 \u043F\u043E\u043C\u0430\u0433\u0430\u0442 \u0437\u0430 \u043F\u043E\u0434\u043E\u0431\u0440\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u0432\u0430\u0448\u0435\u0442\u043E \u0438\u0437\u0436\u0438\u0432\u044F\u0432\u0430\u043D\u0435 \u0438 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u044F\u043D\u0435 \u043D\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0430\u043D\u043E \u0441\u044A\u0434\u044A\u0440\u0436\u0430\u043D\u0438\u0435. \u041D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0434\u0430 \u0441\u0435 \u043E\u0442\u043A\u0430\u0436\u0435\u0442\u0435 \u043E\u0442 \u043E\u0441\u043D\u043E\u0432\u043D\u0438\u0442\u0435 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0438 \u0437\u0430 \u0440\u0430\u0431\u043E\u0442\u0430\u0442\u0430 \u043D\u0430 \u0441\u0430\u0439\u0442\u0430, \u043D\u043E \u043C\u043E\u0436\u0435\u0442\u0435 \u0434\u0430 \u0438\u0437\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u0438 \u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438 \u0441\u043F\u043E\u0440\u0435\u0434 \u0432\u0430\u0448\u0438\u0442\u0435 \u043F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u043D\u0438\u044F. <link>\u041D\u0430\u0443\u0447\u0435\u0442\u0435 \u043F\u043E\u0432\u0435\u0447\u0435</link>",necessaryText:"\u0417\u0430\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u0438 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438",necessaryDescription:"\u041D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0438 \u0437\u0430 \u043E\u0441\u043D\u043E\u0432\u043D\u0438\u0442\u0435 \u0444\u0443\u043D\u043A\u0446\u0438\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442\u0430 \u0438 \u0437\u0430\u043F\u0430\u0437\u0432\u0430\u043D\u0435 \u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438\u0442\u0435.",marketingText:"\u041C\u0430\u0440\u043A\u0435\u0442\u0438\u043D\u0433\u043E\u0432\u0438 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438",marketingDescription:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0432\u0430\u0442 \u043F\u0440\u043E\u0441\u043B\u0435\u0434\u044F\u0432\u0430\u043D\u0435 \u0437\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0430\u043D\u0430 \u0440\u0435\u043A\u043B\u0430\u043C\u0430 \u0438 \u0438\u0437\u043C\u0435\u0440\u0432\u0430\u043D\u0435 \u043D\u0430 \u0435\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u0442\u0430.",preferencesText:"\u0411\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438 \u0437\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F",preferencesDescription:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0432\u0430\u0442 \u043F\u0440\u043E\u0441\u043B\u0435\u0434\u044F\u0432\u0430\u043D\u0435 \u0437\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0430\u043D\u0435 \u043D\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430\u043D\u0438\u0435\u0442\u043E \u0441\u043F\u043E\u0440\u0435\u0434 \u0432\u0430\u0448\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0438.",anal
10706yticsText:"\u0410\u043D\u0430\u043B\u0438\u0442\u0438\u0447\u043D\u0438 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438",analyticsDescription:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0432\u0430\u0442 \u043F\u0440\u043E\u0441\u043B\u0435\u0434\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u0443\u043F\u043E\u0442\u0440\u0435\u0431\u0430\u0442\u0430 \u043D\u0430 \u0441\u0430\u0439\u0442\u0430 \u0437\u0430 \u043F\u043E\u0434\u043E\u0431\u0440\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442\u0442\u0430.",saveLabel:"\u0417\u0430\u043F\u0430\u0437\u0438 \u043F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u043D\u0438\u044F\u0442\u0430",triggerLabel:"\u041F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u043D\u0438\u044F \u0437\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438"}},$U=Wy["en-US"];var Lo=x(Y());var m$=["US","AU","HK","ID","KE","MX","NZ","NG","PH","ZA","TH"],E$=["AD","AR","AT","BE","BR","BG","CL","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IS","IN","IE","IT","JP","KR","LV","LI","LT","LU","MY","MT","MA","NL","NO","PL","PT","QA","RO","RU","SG","SK","SI","ES","SE","CH","GB"];function _$(e,t){return e.analytics!==t.analytics||e.preferences!==t.preferences||e.marketing!==t.marketing||e.necessary!==t.necessary}var ZU="cookie-consent-mode",Yy="cookie-consent-banner-seen",Ky="cookie-consent-banner-interacted";function T$(){let e=typeof window<"u"?window.__cf_country:null;return!e||E$.includes(e)?No.EXPLICIT:m$.includes(e)?No.IMPLICIT:null}var Xl=class{consentType=null;constructor(t){this.consentType=t}start(){localStorage.setItem(Yy,"true")}shouldShowNotice(){return this.consentType===No.EXPLICIT&&localStorage.getItem(Ky)!=="true"||this.consentType===No.IMPLICIT&&localStorage.getItem(Yy)!=="true"}shouldShowTag(){return this.consentType===No.EXPLICIT&&localStorage.getItem(Ky)==="true"||this.consentType===No.IMPLICIT&&localStorage.getItem(Yy)==="true"}getDefaultConsentStatus(){return this.consentType===No.IMPLICIT?{necessary:!0,analytics:!0,preferences:!0,marketing:!0}:{necessary:!0,analytics:!1,preferences:!1,marketing:!1}}static getConsentStatus(){let t=localStorage.getItem(ZU);if(!t||t==="null")return null;let n=JSON.parse(t);return{necessary:n.functionality_storage==="granted",analytics:n.analytics_storage==="granted",preferences:n.personalization_storage==="granted",marketing:n.ad_storage==="granted"}}setUserInteracted(){localStorage.setItem(Ky,"true")}persist(t){let n={functionality_storage:t.necessary?"granted":"denied",ad_storage:t.marketing?"granted":"denied",analytics_storage:t.analytics?"granted":"denied",personalization_storage:t.preferences?"granted":"denied"};localStorage.setItem(ZU,JSON.stringify(n))}};function zy({forceConsentType:e}){let t=T$(),n=e||t,r=(0,Lo.useMemo)(()=>new Xl(n),[n]),[o,i]=(0,Lo.useState)(!1),[s,a]=(0,Lo.useState)(!1),l=(T,h)=>({...T,...h}),[u,c]=(0,Lo.useReducer)(l,r.getDefaultConsentStatus()),f=(0,Lo.useRef)(!1);(0,Lo.useEffect)(()=>{if(f.current===e)return;a(r.shouldShowTag()),i(r.shouldShowNotice()),r.start();let T=Xl.getConsentStatus();e?c(r.getDefaultConsentStatus()):T?c(T):r.persist(r.getDefaultConsentStatus()),f.current=e},[u,r,e]);let d=()=>{let T={necessary:!0,analytics:!1,preferences:!1,marketing:!1};c(T),_(T)},p=()=>{let T={necessary:!0,analytics:!0,preferences:!0,marketing:!0};c(T),_(T)};function _(T,h){r.setUserInteracted();let m=T||u,E=Xl.getConsentStatus();!E||_$(m,E)?(r.persist(m),window.location.reload()):(i(!1),a(!0),h?.())}return{consent:u,shouldShowNotice:o,shouldShowTag:s,consentType:n,acceptOnlyNecessary:d,acceptAll:p,saveConsent:_,updateConsent:c}}var h$=["necessary","marketing","preferences","analytics"];function O$({containerId:e,forceConsentType:t,forceStage:n,guidToUrl:r,setLocation:o,reportError:i,isManaging:s,setIsManaging:a,...l}){let u=Wy[l.locale]||$U,{consent:c,shouldShowNotice:f,shouldShowTag:d,consentType:p,acceptOnlyNecessary:_,acceptAll:T,saveConsent:h,updateConsent:m}=zy({forceConsentType:t}),E=null;s||n==="manage"?E="manage":f||n==="notice"?E="notice":d&&(E="tag");let O=!!n;
10706if(E==="tag")return(0,En.jsx)(Hy,{onClick:()=>{a?.(!0)},xAlignment:l.triggerXAlignment,children:u.triggerLabel});let I=(0,En.jsx)(Uy,{disclaimerText:E==="manage"?u.manageDisclaimer:p===No.EXPLICIT?u.noticeDisclaimerExplicit:u.noticeDisclaimerImplicit,policyLink:l.policyLink,policyUrl:l.policyUrl,reportError:i,guidToUrl:r,setLocation:o,isPreview:O}),g=(0,En.jsxs)("div",{className:"cookie-consent-button-group",style:VU({wide:l.componentType===My.MODAL}),children:[p===No.EXPLICIT&&(0,En.jsx)(_f,{onClick:_,children:u.rejectText}),(0,En.jsx)(_f,{onClick:()=>a?.(!0),children:u.manageText}),(0,En.jsx)(_f,{onClick:T,children:u.acceptText})]}),S=(0,En.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:[(0,En.jsx)("h1",{style:BU(),children:E==="notice"?u.noticeHeader:u.manageHeader}),I]});return E==="manage"?(0,En.jsxs)(By,{containerId:e,onClose:()=>a?.(!1),scrimBackground:!O,children:[S,(0,En.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:h$.map(A=>(0,En.jsx)(ky,{id:A,checked:c[A],description:u[`${A}Description`],disabled:A==="necessary",label:u[`${A}Text`],onChange:()=>m({[A]:!c[A]})},A))}),(0,En.jsx)(_f,{className:"button-wide",onClick:()=>{h(void 0,()=>a?.(!1))},children:u.saveLabel})]}):E==="notice"?l.componentType===My.MODAL?(0,En.jsxs)(Vy,{containerId:e,xAlignment:l.xAlignment,yAlignment:l.yAlignment,children:[S,g]}):(0,En.jsxs)("div",{className:"cookie-consent-banner",style:HU({yAlignment:l.yAlignment}),children:[I,g]}):null}function Xy(e){return(0,uO.useEffect)(()=>{let t="cookie-consent-styles",n=document.getElementById(t);n&&n.remove();let r=document.createElement("style");return r.id=t,r.textContent=` 10707 :root { 10708 --consent-font-size-medium: 11px; 10709 --consent-line-height-medium: 16px; 10710 --consent-font-size-large: 13px; 10711 --consent-line-height-large: 22px; 10712 --consent-banner-padding: 1rem; 10713 } 10714 10715 @media (max-width: 480px) { 10716 :root { 10717 --consent-font-size-medium: 13px; 10718 --consent-line-height-medium: 22px; 10719 --consent-font-size-large: 15px; 10720 --consent-line-height-large: 25px; 10721 --consent-banner-padding: 1.5rem; 10722 } 10723 } 10724 10725 .button-wide { 10726 width: 100%; 10727 } 10728 10729 @media (max-width: 480px) { 10730 .cookie-consent-banner { 10731 flex-direction: column; 10732 } 10733 10734 .cookie-consent-button-group { 10735 flex-direction: row; 10736 width: 100%; 10737 } 10738 } 10739 `,document.head.appendChild(r),()=>{let o=document.getElementById(t);o&&o.remove()}},[]),(0,En.jsx)(O$,{...e})}var Tf=(0,uO.createContext)({enabled:!1,openSettings:()=>{}});function JU(e){if(typeof window>"u")return!1;let t=Xl.getConsentStatus();return e.includes("youtube-nocookie.com")||e.includes("youtube.com")||e.includes("maps.google.com")||e.includes("docs.google.com")||e.includes("form.typeform.com")||e.includes("vimeo.com")?t?t.analytics&&t.preferences&&t.marketing:!1:!0}var I$=[{pattern:/^(https?:\/\/(www\.)?(youtube\.com|youtu\.be|youtube-nocookie\.com)\/.*)/,transform:g$,embedType:"IFRAME"},{pattern:/^(?:https?:)?\/\/(www\.)?google\.com\/maps\/.*|^(?:https?:)?\/\/maps\.google\.com\/.*|^(?:https?:)?\/\/maps\.goo\.gl\/.*/,transform:S$,embedType:"IFRAME"},{pattern:/^(?:https?:)?\/\/(www\.)?typeform\.com\/.*|^(?:https?:)?\/\/form\.typeform\.com\/.*/,transform:eV,embedType:"HTML",htmlTransform:R$},{pattern:xy,transform:A$,embedType:"HTML",htmlTransform:y$},{pattern:/^(?:https?:)?\/\/(www\.)?docs\.google\.com\/forms\/.*|^(?:https?:)?\/\/forms\.gle\/.*/,transform:N$,embedType:"IFRAME"},{pattern:/^(?:https?:)?\/\/(www\.)?vimeo\.com\/.*$/,transform:b$,embedType:"IFRAME"}];function g$(e){let t;try{let n=new URL(e);t=n.searchParams.get("v")||null;let o=/(?:https?:\/\/)?(?:www\.)?(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(?:watch\?v=|embed\/)?([^&?]+)/,i=e.match(o);if(!t){let a=i?.[2]||null;a&&(t=a)}let s=new URL((i?.[1]||"")==="youtube-nocookie.com"?`https://www.youtube-nocookie.com/embed/${t}`:`https://www.youtube.com/embed/${t}`);return n.searchParams.forEach((a,l)=>{l!=="v"&&s.searchParams.set(l,a)}),s.toString()}catch{return e}}function S$(e){let t=new URL("https://maps.google.com/maps");return t.searchParams.set("output","embed"),new URL(e).searchParams.forEac
10739h((r,o)=>{t.searchParams.set(o,r)}),t.toString()}function eV(e){try{let t=/\/to\/([a-zA-Z0-9]+)/,n=e.match(t);return n&&n[1]?n[1]:e}catch{return e}}function R$(e){return`<div data-tf-widget="${eV(e)}" style="width:100%;height:100%;"></div><script src="//embed.typeform.com/next/embed.js"></script>`}function A$(e){return e}function y$(e){return`<script src="https://unpkg.com/@lottiefiles/[email protected]/dist/dotlottie-wc.js" type="module"></script><dotlottie-wc src="${e}" style="width: 100%; height: 100%;" speed="1" autoplay loop></dotlottie-wc>`}function N$(e){try{let t=new URL(e);return t.hostname.includes("forms.gle")||t.hostname.includes("docs.google.com")?(t.searchParams.set("embedded","true"),t.toString()):e}catch{return e}}function b$(e){try{let t=/\/(\d+)/,n=e.match(t);if(console.log(n),n&&n[1])return`https://player.vimeo.com/video/${n[1]}`}catch{return e}return e}function L$(e){return Un.default.useMemo(()=>{for(let t of I$)if(e.match(t.pattern))return{transformedUrl:t.transform(e),embedType:t.embedType,htmlTransform:t.htmlTransform};return{transformedUrl:e,embedType:"IFRAME"}},[e])}var tV={overflow:"clip",width:"100%",height:"100%"};function nV({node:e,websiteContext:t}){da("GenericEmbed");let n=y_(),{embedURL:r,embedIframeHtml:o,embedCodeType:i,embedAllowFullscreen:s}=e.syncedState,{transformedUrl:a,embedType:l,htmlTransform:u}=L$(r),{enabled:c}=(0,Un.useContext)(Tf),f=(0,Un.useMemo)(()=>{if(i==="html"){let d=new DOMParser().parseFromString(o,"text/html"),p=d.querySelector("iframe");return p?(p.style.width="100%",p.style.height="100%",{type:"iframe",html:p.outerHTML}):{type:"html",html:d.head.innerHTML.concat(d.body.innerHTML)}}else return},[i,o]);if(i==="html")return!f||!f.html.trim()?(0,ur.jsx)(QU,{websiteContext:t}):(0,ur.jsx)(qU,{websiteContext:t,type:f.type,html:f.html});{if(c&&!JU(r))return(0,ur.jsx)(v$,{websiteContext:t});if(!a.trim())return(0,ur.jsx)(QU,{websiteContext:t});if(l==="HTML"&&u){let p=u(r);return(0,ur.jsx)(qU,{websiteContext:t,type:"html",html:p})}let d=!n&&new URL(r).searchParams.get("autoplay")==="1";return t.renderElement({Tag:"iframe",styleSet:[tV,"embed"],attributes:{src:a,allowFullScreen:s,title:e.accessibleLabel,allow:d?"autoplay":void 0}})}}function qU({websiteContext:e,type:t,html:n}){let r=(0,Un.useRef)(null);return(0,Un.useEffect)(()=>{if(r.current&&t==="html"){let o=document.createRange();o.selectNode(r.current);let i=o.createContextualFragment(n);r.current.innerHTML="",r.current.append(i)}},[n,t]),e.renderElement({Tag:"div",styleSet:[tV,"embed"],ref:r,dangerouslySetInnerHTML:{__html:n}})}function C$(){let[e,t]=(0,Un.useState)(200),n=(0,Un.useRef)(null);return(0,Un.useEffect)(()=>{let o=n.current?.parentElement;if(!o)return;let i=new ResizeObserver(s=>{t(s[0]?.contentRect.width??200)});return i.observe(o),t(o.getBoundingClientRect().width),()=>{i.disconnect()}},[]),[n,e]}var P$={width:"100%",height:"100%",backgroundColor:"#F5F5F5",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:"8px",fontSize:"11px",lineHeight:"16px",fontWeight:"450",color:"rgba(0, 0, 0, 0.9)",cursor:"pointer"},D$={width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"};function v$({websiteContext:e}){let[t,n]=C$(),{openSettings:r}=(0,Un.useContext)(Tf),o=e.renderElement({Tag:"div",styleSet:D$,ref:t,children:(0,ur.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ur.jsx)("path",{d:"M2.91138 6.50781C3.10662 6.31259 3.42317 6.31258 3.61841 6.50781C3.8133 6.70307 3.81351 7.01972 3.61841 7.21484L2.38599 8.44727C1.6052 9.22815 1.60549 10.4943 2.38599 11.2754C3.16704 12.0561 4.43317 12.0562 5.21411 11.2754L6.44653 10.043C6.64178 9.84775 6.95833 9.84773 7.15356 10.043C7.34845 10.2382 7.34867 10.5549 7.15356 10.75L5.92114 11.9824C4.74968 13.1538 2.85053 13.1536 1.67896 11.9824C0.507937 10.8108 0.50764 8.91164 1.67896 7.74023L2.91138 6.50781ZM0.946533 1.00684C1.14177 0.8117 1.45833 0.811703 1.65356 1.00684L12.6536 12.0068C12.8488 12.2021 12.8487 12.5186 12.6536 12.7139C12.4583 12.9091 12.1418 12.9091 11.9465 12.7139L0.946533 1.71387C0.75137 1.5186 0.751304 1.20207 0.946533 1.00684ZM7.67896 1.74023C8.85039 0.568818 10.7495 0.569074 11.9211 1.74023C13.0924 2.91183 13.0926 4.81096 11.9211 5.98242L10.6887 7.21484C10.4936 7.40997 10.177 7.40974 9.98169 7.21484C9.78645 7.0196 9.78645 6.70305 9.98169 6.50781L11.2141 5.27539C11.995 4.49445 11.9948 3.22833 11.2141 2.44727C10.433 1.66663 9.1669 1.66637 8.38599 2.44727L7.15356 3.67969C6.95844 3.87481 6.6418 3.87459 6.44653 3.67969C6.25129 3.48445 6.25129 3.1679 6.44653 2.97266L7.67896 1.74023Z",fill:"black",fillOpacity:"0.5"})})});return e.renderElement({Tag:"button",styleSet:P$,attributes:{onClick:r},children:(0,ur.jsxs)(ur.Fragment,{children:[o,n>=80&&(0,ur.jsx)("span",{children:"Allow cookies to view this content"})]})})}
10739var x$={width:"100%",height:"100%",backgroundColor:"#D3D1FF",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},M$={width:"min(93px, 100%)",height:"min(93px, 100%)",display:"flex",alignItems:"center",justifyContent:"center"},F$={width:"100%",height:"100%"};function QU({websiteContext:e}){return e.renderElement({Tag:"div",styleSet:x$,children:e.renderElement({Tag:"div",styleSet:M$,children:e.renderElement({Tag:"svg",styleSet:F$,attributes:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 93 93",fill:"none"},children:(0,ur.jsx)("path",{d:"M20.9465 32.2205C32.0947 21.0723 50.1694 21.0723 61.3176 32.2205L57.0744 36.4626L52.8322 40.7058C46.3704 34.2439 35.8937 34.244 29.4319 40.7058L18.1584 51.9792C11.6967 58.4411 11.6966 68.9178 18.1584 75.3796C24.6203 81.841 35.0971 81.8412 41.5588 75.3796C43.9019 73.0365 47.701 73.0365 50.0442 75.3796C52.3869 77.7228 52.3872 81.522 50.0442 83.865C38.8961 95.0129 20.8212 95.0127 9.67306 83.865C-1.47505 72.7169 -1.47496 54.6421 9.67306 43.4939L20.9465 32.2205ZM43.4924 9.67455C54.6405 -1.47358 72.7153 -1.47352 83.8635 9.67455C95.0116 20.8227 95.0116 38.8975 83.8635 50.0456L72.591 61.3191C61.617 72.2927 43.9309 72.4637 32.7473 61.8328L32.2199 61.3191L32.007 61.0945C29.8792 58.7393 29.9504 55.1037 32.2199 52.8337C34.4899 50.5639 38.1254 50.4929 40.4807 52.6208L40.7043 52.8337L41.011 53.1316C47.4933 59.2934 57.7448 59.1942 64.1057 52.8337L75.3781 41.5603L75.677 41.2546C81.8391 34.7722 81.739 24.5208 75.3781 18.1599C68.9163 11.6981 58.4396 11.6981 51.9778 18.1599L47.7356 13.9167L43.4924 9.67455ZM61.3176 32.2205C63.6603 34.5636 63.6606 38.3628 61.3176 40.7058C58.9746 43.0487 55.1754 43.0485 52.8322 40.7058L61.3176 32.2205ZM51.9778 18.1599C49.6346 20.5023 45.8353 20.5028 43.4924 18.1599C41.1496 15.817 41.15 12.0177 43.4924 9.67455L51.9778 18.1599Z",fill:"#3D32E2"})})})})}function rV({node:e,parent:t,context:n,zIndex:r,websiteContext:o}){let{renderOptions:i}=o,s=lr(),a=qn({node:e,parent:t,context:n,zIndex:r,children:[],options:{isFlattened:!0,precomputeTransforms:s},renderOptions:i}),l=er({node:e,context:n,websiteContext:o}),u=Qn({node:e,parent:t,children:null,renderOptions:i}),c={...a.inner,...Gn(pn(n,e)),...Qr({node:e,parent:t,transitionProps:void 0,renderOptions:i,maskStyles:l}),...a.transform3d,...n?.style||{}},f=Jr(o,e),d=Bn({node:e,parent:t,context:n,transitionProps:void 0,outerStyles:a.outer,wrapperSizeStyles:u,stickyWrapperStyles:a.stickyWrapper,transformChildWrapperStyles:a.transform,renderOptions:i,maskStyles:l});return Se(Dr({node:e,parent:t,context:n,wrappersToRender:d,websiteContext:o,children:Ot((0,xp.jsx)(G$,{nodeId:e.id,style:c,dataName:f,context:n,outerStyles:d.motionLayerContent.outerStyles,websiteContext:o,children:(0,xp.jsx)(kl,{children:()=>(0,xp.jsx)(k$,{node:e,websiteContext:o})})}))}),o)}function G$({nodeId:e,style:t,dataName:n,context:r,websiteContext:o,outerStyles:i,children:s}){return o.renderElement({Tag:"div",nodeId:e,styleSet:[i,t,r?.className],attributes:{"data-name":n,...r?.dataAttributes||{}},children:s})}function k$({node:e,websiteContext:t}){return da("HTMLWidgetLayerContent"),(0,xp.jsx)(nV,{node:e,websiteContext:t})}var jy=x(Y()),oV=x(Y());var iV=oV.forwardRef(function({node:t,parent:n,context:r,interactionHandlers:o,zIndex:i,transitionProps:s,codeBehaviorProps:a,websiteContext:l},u){let c=lf(),f=lr(),d=(0,jy.useRef)(null),p=(0,jy.useRef)(null),_=s?.smartAnimateType??te.NONE,T=_===te.INSTANCE_SUBTREE,{nodeCanAnimateRotation:h,layoutStyles:m,opacity:E}=UB({node:t,parent:n,context:r,zIndex:i,smartAnimateType:_,previousRotation:c,precomputeTransforms:f,renderOptions:l.renderOptions}),O={opacity:E,transform:Xr(m.outer.transform)},I=Zr(t,r),{motionProps:g,key:S,ref:A}=to(t.id,t.behaviors,t.assets,O,I),R=ti(u,A);return Se(VB({node:t,parent:n,context:r,interactionHandlers:o,transitionProps:s,codeBehaviorProps:a,ref:u,websiteContext:l,previousRotation:c,outerRef:d,codeBehaviorWrapperRef:p,smartAnimateType:_,canSmartAnimateInstance:T,nodeCanAnimateRotation:h,layoutStyles:m,opacity:E,behaviorProps:g,behaviorKey:S,behaviorsRef:A,mergedRef:R}),l)});var Ea=x(Ee()),Jy=x(Y());var sV="breakpoint-css";function aV({breakpoints:e}){let{env:t,addHeadTag:n}=fe();if(t!=="server"||e.length===1)return;let r=e.sort((i,s)=>s.width-i.width),o=r.reduce((i,s,a)=>{let l=a===0,u=a===r.length-1,c=r[a-1]?.width||void 0,f=[];
10739return l?f.push(`(width < ${s.width}px)`):u?c&&f.push(`(width >= ${c}px)`):(c&&f.push(`(width >= ${c}px)`),f.push(`(width < ${s.width}px)`)),f.length>0&&i.push(`@media ${f.join(" or ")} { 10740 [${uy}="${po(s.nodeId)}"] {display: none !important} 10741 }`),i},[]);n({type:"global-style",styleElId:sV,styleSheet:Ds(o.join(` 10742`))})}function lV(){let e=document.querySelectorAll(`[${ly}]`);e.length===0&&console.error("No breakpoints elements found during hydration."),e.forEach(n=>{window.getComputedStyle(n).display==="none"&&n.remove()});let t=document.querySelector(`#${sV}`);if(e.length>1&&!t){console.error("No breakpoint css style tag found during hydration.");return}t&&t.remove()}var cV=x(Y());var $y=new Map;function uV(e,t){let n=JSON.stringify(e);return Qa({str:n,hashPrefix:e.type+"-",isUniqueKey:o=>{let i=$y.get(o),s=i?JSON.stringify(i):null;if(t==="server")return!s||s===n;if(s&&s!==n)return!1;let a=document.getElementById(o);return a?fV(a,e):!0}})}function fV(e,t){if(e.tagName==="LINK"&&t.type==="link"){let n=e;return n.getAttribute("href")===t.href&&n.rel===t.rel}else if(e.tagName==="META"&&t.type==="meta"){let n=e,r=t.name||"",o=t.property||"",i=n.getAttribute("property")||"";return n.content===t.content&&n.name===r&&i===o}else if(e.tagName==="TITLE"&&t.type==="title")return e.textContent===t.title;return!1}function dV(e){let{addHeadTag:t,env:n}=fe();n==="server"&&e.forEach(r=>{let o=uV(r,n);$y.has(o)||(t(r),$y.set(o,r))}),(0,cV.useInsertionEffect)(()=>{let r=[];return e.forEach(o=>{if(o.type==="title"){document.title=o.title;return}let i=uV(o,n),s=document.getElementById(i);if(!(s&&fV(s,o))){if(o.type==="meta"){let a=o.property?`meta[property="${o.property}"]`:`meta[name="${o.name}"]`,l=document.querySelector(a);if(l){if(l.getAttribute("content")===o.content)return;l.setAttribute("content",o.content);return}}else if(o.type==="link"){let a=`link[rel="${o.rel}"][href="${o.href}"]`;if(document.querySelector(a))return}if(o.type==="link"){let a=document.createElement("link");a.href=o.href,a.rel=o.rel,a.id=i,document.head.appendChild(a),r.push(a)}else if(o.type==="meta"){let a=document.createElement("meta");o.name&&(a.name=o.name),o.property&&a.setAttribute("property",o.property),a.content=o.content,a.id=i,document.head.appendChild(a),r.push(a)}}}),()=>{r.forEach(o=>{o.remove()})}},[e])}var pV=x(Y());var Zy="body-background-color";function mV({breakpoints:e}){let{env:t,addHeadTag:n}=fe(),r=e.sort((s,a)=>s.width-a.width),i=r.map((s,a)=>({layerName:s.name,minWidth:a===0?void 0:s.width,maxWidth:a<r.length-1?r[a+1]?.width:void 0,background:s.background,nodeId:s.nodeId})).map(({background:s,minWidth:a,maxWidth:l,nodeId:u})=>{let c=[];l!==void 0&&c.push(`(max-width: ${l-1}px)`),a!==void 0&&c.push(`(min-width: ${a}px)`);let f=`body:has([data-breakpoint-id="${po(u)}"]) { background-color: ${s} }`;return c.length>0?`@media ${c.join(", ")} { ${f} }`:f}).join(` 10743`);t==="server"&&n({type:"global-style",styleElId:Zy,styleSheet:i}),(0,pV.useInsertionEffect)(()=>{let s=document.getElementById(Zy);if(s){s.textContent=i;return}let a=document.createElement("style");return a.textContent=i,a.id=Zy,document.head.appendChild(a),()=>{document.head.removeChild(a)}},[e])}function w$(e,t,n,r){let o=typeof window<"u"?window.location.host:"{{HOSTNAME}}",i=r,s=[{type:"title",title:e?.title??Dy},{type:"meta",name:"description",content:e?.description??vy}];if(e?.title&&s.push({type:"meta",name:"title",content:e.title}),s.push({type:"meta",name:"robots",content:e?.blockSearchIndexing?"noindex":"index,follow"}),n){if(s.push({type:"meta",name:"twitter:card",content:"summary_large_image"}),s.push({type:"meta",name:"twitter:url",content:`https://${o}${i}`}),e?.title&&s.push({type:"meta",name:"twitter:title",content:e.title}),e?.description&&s.push({type:"meta",name:"twitter:description",content:e.description}),e?.socialImageFilename){let a=t(e?.socialImageFilename),l=`https://${o}${a}`;s.push({type:"meta",name:"twitter:image",content:l}),e?.title&&s.push({type:"meta",name:"twitter:image:alt",content:e.title})}if(e?.title&&s.push({type:"meta",property:"og:title",content:e.title}),e?.description&&s.push({type:"meta",property:"og:description",content:e.description}),s.push({type:"meta",property:"og:type",content:"website"}),s.push({type:"meta",property:"og:url",content:`https://${o}${i}`}),e?.socialImageFilename){let a=t(e?.socialImageFilename),l=`https://${o}${a}`;s.push({type:"meta",property:"og:image",content:l}),e?.title&&s.push({type:"meta",property:"og:image:alt",content:e.title})}e?.title&&s.push({type:"meta",property:"og:site_name",content:e.title})}return!n&&e?.socialImageFilename&&s.push({type:"meta",property:"og:image",content:t(e?.socialImageFilename)},{type:"meta",property:"twitter:image",content:t(e?.socialImageFilename)}),e?.faviconFilename&&s.push({type:"link",rel:"icon",href:t(e?.faviconFilename)}),s}function EV({node:e,children:t,websiteContext:n}){let{getAssetURL:r,renderOptions:o,enableMetaTags:i,websiteData:s}=n,a=ge(s.siteSettings);t!==void 0&&t.length>0;let l=(0,Jy.useMemo)(()=>$S(t.filter(f=>f.visible!==!1).filter(f=>cl(f)).filter(f=>f.type==="FRAME"),o),[t,o]);aV({breakpoints:l.breakpoints}),mV({breakpoints:l.breakpoints});let u=e.name,c=(0,Jy.useMemo)(()=>w$(a,r,i,u),[a,r,i,u]);return dV(c),(0,Ea.jsx)(Ea.Fragment,{children:t.map((f,d)=>(0,Ea.jsx)(by,{children:(0,Ea.jsx)(Ay,{name:f.name,width:f.size.x,height:f.size.y,children:(0,Ea.jsx)(fa,{name:"sites-layer",nodeId:f.id,children:(0,Ea.jsx)(Ki,{node:f,parent:null,websiteContext:n},d)},d)})},f.id))})}var Ki=(0,_a.forwardRef)(function({node:t,parent:n,context:r,zIndex:o,codeBehaviorProps:i,websiteContext:s},a){let l=JE(t.materializedChildNodeProps??[]),{interactionHandlers:u,transitionProps:c}=t;r=Ps(r,Ge);let{renderComponentSetNodes:f}=s.renderOptions,d=QC(s.renderOptions,t,n),p=ge(dS);(0,_a.useEffect)(()=>
10743{if(t.visible&&!(u===void 0||u?.ON_KEY_DOWN===void 0))return p.set(t.id,u.ON_KEY_DOWN),()=>(p.delete(t.id),void 0)},[u,p,t.id,t.visible]);let _=c?.transitionData;return(0,_a.useEffect)(()=>{let T,h;return t.visible&&(_&&!_.layout?T=M1(u,_.id):T=F1(t.id,u).timeoutIds,T.length&&_&&(h=G1(()=>{setTimeout(()=>{_.onTransitionEnd?.()},500)},100),window.addEventListener("resize",h))),()=>{h&&setTimeout(()=>{removeEventListener("resize",h)}),Gs.markTimeoutsAsUnmounted(t.id),setTimeout(()=>{let m=u?.AFTER_TIMEOUT?.map(E=>E.interactionGuid);Gs.cleanupUnmountedTimeouts(t.id,m)},100)}},[t.id,u,t.visible]),(0,_a.useMemo)(()=>{if(!t||t.visible===!1&&!d)return null;let T=(()=>{switch(t.type){case"WEBPAGE":return(0,Cn.jsx)(EV,{node:t,children:l,parent:n,context:r,interactionHandlers:u,websiteContext:s});case"FRAME":case"SLOT":return(0,Cn.jsx)(Hh,{ref:a,node:t,children:l,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,codeBehaviorProps:i,websiteContext:s});case"COMPONENT_SET":return Te(f,"COMPONENT_SET nodes are not supported in sites"),(0,Cn.jsx)(PU,{node:t,children:l,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,codeBehaviorProps:i,websiteContext:s});case"RECTANGLE":return(0,Cn.jsx)(Hh,{ref:a,node:t,children:l,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,codeBehaviorProps:i,websiteContext:s});case"GROUP":return(0,Cn.jsx)(kU,{node:t,children:l,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,websiteContext:s});case"IMAGE":case"SVG":return(0,Cn.jsx)(hB,{ref:a,node:t,parent:n,zIndex:o,context:r,interactionHandlers:u,transitionProps:c,codeBehaviorProps:i,websiteContext:s});case"TEXT":return(0,Cn.jsx)(iV,{ref:a,node:t,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,codeBehaviorProps:i,websiteContext:s});case"WIDGET":return(0,Cn.jsx)(rV,{node:t,parent:n,context:r,zIndex:o,interactionHandlers:u,websiteContext:s});case"CODE_INSTANCE":case"CODE_LAYER":return(0,Cn.jsx)(LU,{node:t,parent:n,context:r,zIndex:o,interactionHandlers:u,websiteContext:s});case"REPEATER":return(0,Cn.jsx)(Hh,{ref:a,node:t,children:l,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,websiteContext:s});case"CMS_RICH_TEXT":return(0,Cn.jsx)(qB,{node:t,parent:n,context:r,zIndex:o,interactionHandlers:u,websiteContext:s});case"REPLACEABLE_REFERENCE":throw new q("REPLACEABLE_REFERENCE is only supported on the without-react path");default:Fe(t)}})();return d?(0,Cn.jsx)("div",{style:{display:"none"},children:T}):T},[t,l,n,r,u,a,o,c,i,d,f,s])}),B$=(0,_a.forwardRef)(function({node:t,parent:n,context:r,zIndex:o,name:i,nodeId:s,childKey:a,codeBehaviorProps:l,websiteContext:u},c){return(0,Cn.jsx)(fa,{name:i,nodeId:s,children:(0,Cn.jsx)(Ki,{ref:c,node:t,parent:n,context:r,zIndex:o,codeBehaviorProps:l,websiteContext:u},a)})});function cf({node:e,parent:t,context:n,zIndex:r,name:o,nodeId:i,childKey:s,codeBehaviorProps:a,websiteContext:l,ref:u}){return Ot((0,Cn.jsx)(B$,{ref:u,name:o,nodeId:i,childKey:s,node:e,parent:t,context:n,zIndex:r,codeBehaviorProps:a,websiteContext:l},s))}var et=x(Ee()),cr=x(Y());var hf=x(Y());function qy({key:e,children:t}){let n=e==null?null:{key:e};return Array.isArray(t)?(0,hf.createElement)(hf.Fragment,n,...t):(0,hf.createElement)(hf.Fragment,n,t)}var _V=new Map;function Qy(){let{env:e,websiteData:t}=fe(),n=Ds(ge(t.globalStyles)??""),r=Qa({str:n??"",hashPrefix:YS,isUniqueKey:o=>
10743{if(e==="server"){let s=_V.get(o);return!s||s===n}let i=document.getElementById(o);return!i||i.textContent===n}});return n&&_V.set(r,n),ic({cssString:n??"",styleElId:r,deleteElsWithPrefix:YS,skipValidation:!0}),null}var cO=x(Ee()),TV=x(Y()),hV=(0,TV.forwardRef)(function({children:t},n){return(0,cO.jsx)(cO.Fragment,{children:t})});function eN({withBaseStyles:e,prepend:t=!1}){return ic({cssString:Py(e),styleElId:nO,prepend:t}),null}var IV=x(Ee());function OV(e,t,n){if($_(e))return po(t.id,n)}function gV({Tag:e,children:t,styleSet:n,elementRef:r,nodeId:o,idSuffix:i,attributes:s,...a}){let l=fe(),u=cv(Array.isArray(n)?n:[n]);return(0,IV.jsx)(e,{...a,...s,id:o?OV(l,{id:o},i):void 0,className:u,ref:r,children:t})}var SV=x(Ee());var RV=({children:e,...t})=>Ot((0,SV.jsx)(qR,{...t,children:e}));var xr=x(Ee()),Co=x(Y()),U$=x(Sy()),V$=x(Ee()),H$=x(yu()),W$=x(aE());var AV=Co.forwardRef(({children:e,codeBehaviors:t,variableState:n,modeContext:r,assets:o,outerStyles:i,tag:s,websiteContext:a},l)=>(0,xr.jsx)(kl,{children:()=>a.renderElement({Tag:s,ref:l,styleSet:[{display:"flex",...i},"tailwind","code-behavior-wrapper"],children:(0,xr.jsx)(K$,{codeBehaviors:t,variableState:n,modeContext:r,assets:o,websiteContext:a,children:e})})}));AV.displayName="CodeBehaviorWrapper";var yV=({ref:e,...t})=>Ot((0,xr.jsx)(AV,{ref:e,...t}));function Y$({node:e,Component:t,codeBehaviors:n,variableState:r,modeContext:o,children:i,assets:s}){let a=z$(t),l=mU(a),c={...aU(e,l,n,r,o,a,s),children:i};return(0,xr.jsx)(t,{...c})}function K$({children:e,codeBehaviors:t,variableState:n,modeContext:r,assets:o,websiteContext:i}){da("CodeComponentContent");let s=la(),a=i.getAssetURL,[l,u]=Co.useState([]);globalThis.__GLOBALS__={React:Co,ReactJSXRuntime:V$,ReactJSXDevRuntime:U$,ReactDOM:H$,ReactDOMClient:W$,SnapshotContext:Dp,RenderHooksContext:Vl,ActiveBreakpointContext:ff,WebsiteSettingsContext:pf,getAssetURL:a};let c=Co.useMemo(()=>lU(t),[t]),f=sU(c),d=i.websiteData.sourceCodeHash,p=ge(d),_=Co.useRef({});return Co.useEffect(()=>{if(!i||!f.length)return;let T=f.filter(h=>!_.current[h.id]);T.length!==0&&Promise.all(T.map(async h=>{try{let m=i.getCodeComponentURL(h),E=await import(m),I=await Jh(E,h.codeExportName,m);return _.current[h.id]=I,I}catch(m){return df(p,m,"Failed to import code behavior module"),null}})).then(h=>{h.some(m=>m!==null)&&u(f.map(m=>_.current[m.id]||null))}).catch(h=>{df(p,h,"Failed to load code behavior")})},[f,i,p]),!f.length||!i||!s?(0,xr.jsx)(xr.Fragment,{children:e}):l.length!==f.length||l.some(T=>T===null)?(0,xr.jsx)(xr.Fragment,{children:e}):(0,xr.jsx)(xr.Fragment,{children:[...f].reverse().reduce((T,h,m)=>{let E=l.length-1-m,O=l[E];return O?(0,xr.jsx)(Y$,{node:h,Component:O,codeBehaviors:t,variableState:n,modeContext:r,assets:o,children:T},h.id):T},e)})}function z$(e){return e?e[Symbol.for("figma.react.props")]??{}:null}var zi=x(Ee()),Qe=x(Y()),NV=x(zg());var X$="left",j$=6,$$=!1,Z$="Scrolling content",J$=!1,bV=({children:e,...t})=>Ot((0,zi.jsx)(q$,{...t,children:Se(e,t.websiteContext)})),q$=Qe.default.forwardRef(function({node:t,style:n={},className:r="",children:o,websiteContext:i},s){let a=t.behaviors?.marquee?.direction??X$,l=t.behaviors?.marquee?.speed??j$,u=t.behaviors?.marquee?.shouldLoopInfinitely??$$,c=k1(t,i.renderOptions)?Z$:t.accessibleLabel,f=t.behaviors?.marquee?.pauseOnHover??J$,[d,p]=(0,Qe.useState)(0),[_,T]=(0,Qe.useState)(0),[h,m]=(0,Qe.useState)(1),[E,O]=(0,Qe.useState)(!1),I=(0,Qe.useRef)(null),g=s||I,S=(0,Qe.useRef)(null),A=Qd(),R=(0,NV.default)("marquee",A?"":"reduced-motion"),N=(0,Qe.useCallback)(y=>{if(S.current&&g.current){let K=g.current.getBoundingClientRect(),C=S.current.getBoundingClientRect(),G=d===0?K.width:d,P=C.width;if((a==="UP"||a==="DOWN")&&(G=K.height,P=C.height),u&&G&&P){let X=P<G?Math.ceil(G/P):1;m(X)}else m(1);T(P),(d===0||y)&&p(K.width)}},[u,g,d,a]);(0,Qe.useEffect)(()=>{if(E&&(N(),S.current&&g.current)){let y=new ResizeObserver(()=>{N(!0)});return y.observe(g.current),y.observe(S.current),()=>{y&&y.disconnect()}}},[N,g,E]),(0,Qe.useEffect)(()=>{N()},[N,o]),(0,Qe.useEffect)(()=>{O(!0)},[]);let L=(0,Qe.useMemo)(()=>u?_*h/l:_<d?d/l:_/l,[u,d,_,h,l]),b=(0,Qe.useMemo)(()=>({...n,["--width"]:a==="UP"||a==="DOWN"?"100vh":"100%",["--transform"]:a==="UP"?"rotate(-90deg)":a==="DOWN"?"rotate(90deg)":"none"}),[n,a]),M=(0,Qe.useMemo)(()=>({["--direction"]:a==="LEFT"?"normal":"reverse",["--duration"]:`${L}s`,["--delay"]:"0s",["--iteration-count"]:"infinite",["--min-width"]:u?"auto":"100%",["--timing-function"]:SS(i)?"steps(3)":"linear",["--pause-on-hover"]:f?"paused":"running"}),[a,L,u,f,i]),w=(0,Qe.useMemo)(()=>({["--transform"]:a==="UP"?"rotate(90deg)":a==="DOWN"?"rotate(-90deg)":"none"}),[a]),B=(0,Qe.useCallback)((y,K)=>[...Array(Number.isFinite(y)&&y>=0?y:0)].map((C,G)=>(0,zi.jsx)(Qe.Fragment,{children:Qe.Children.map(o,P=>(0,zi.jsx)("div",{"aria-hidden":K?"true":void 0,style:w,className:"marquee-child",children:P}))},G)),[w,o]);return E?(0,zi.jsxs)("div",{ref:g,style:b,className:"marquee-container "+r,tabIndex:0,role:"marquee","aria-label":c,children:[(0,zi.jsxs)("div",{className:R,style:M,children:[(0,zi.jsx)("div",{className:"marquee-initial-child-container",ref:S,
10743children:B(1)}),B(h-1,!0)]}),(0,zi.jsx)("div",{className:R,style:M,children:B(h,!0)})]}):null});var Fp=x(Ee()),fO=x(Y());var twe=x(Y());function LV(e,t,n,r,o){return n?t.getLayerRef({layerRef:n,parentRef:o,Component:()=>null}):r(e)||null}function Mp(e,t){return t in e}function Q$({renderNode:e,node:t,codeBehaviorProps:n}){let r=fO.useContext(Vl),o=fO.useRef(null),i=n?.transformRef||o,s=n?.parentRef;if(!r.renderHooks.length)return e(t)||(0,Fp.jsx)(Fp.Fragment,{});let a=t;for(let l of r.renderHooks)if(Mp(l,"renderText"))a={...a,renderTextHook:l};else if(Mp(l,"renderTextCharacter"))a={...a,renderTextCharacterHook:l};else if(Mp(l,"renderTextLine"))a={...a,renderTextLineHook:l};else if(Mp(l,"renderTextWord"))a={...a,renderTextWordHook:l};else if(Mp(l,"getLayerRef"))LV(a,l,i,e,s);else throw new q("Render hook not supported.");return e(a)||null}var CV=e=>(0,Fp.jsx)(Q$,{...e});var tN=x(Ee()),We=x(Y());function dO(e,t){let n=(0,We.useRef)(null);(0,We.useLayoutEffect)(()=>{if(!e||!e.current)return;let r=new ResizeObserver(o=>{for(let i of o)if(e.current===i.target){let s=i.contentRect.width,a=i.contentRect.height;if(n&&n.current&&n.current.width===s&&n.current.height===a)continue;let u={width:i.contentRect.width,height:i.contentRect.height};n.current=u,t&&t(u)}});return r.observe(e.current),()=>r.disconnect()},[e,t])}var eZ=We.default.forwardRef(function({node:t,parent:n,context:r,children:o,outerStyles:i,childWrapperStyles:s,transitionData:a,smartAnimateType:l,transformRef:u,codeBehaviorWrapperRef:c,keyframeMotionPropsOverride:f,tag:d,websiteContext:p},_){let T=t.id,h=(0,We.useRef)(null),m=u||h,E=ti(_,m),O=(0,We.useRef)(null),I=(0,We.useMemo)(()=>Ft(Yt(r?.group?.relativeTransform,t.relativeTransform)),[r?.group?.relativeTransform,t.relativeTransform]),g=(0,We.useMemo)(()=>Nr(t,n),[t,n]),{renderOptions:S}=p,{disableConstraintsBasedSizing:A,metronomeEnabled:R}=S,N=(0,We.useCallback)(P=>{if(dl(I,S))return;let X=P.width,oe=P.height;if(!A&&Nr(t,n)){let{width:ve,height:be,transform:Le}=k_(X,oe,I,t.size,t.absoluteBoundingBox,p.renderOptions);Te(O.current!==null,"TransformWrapperStatic innerRef not set when setting outer size"),O.current.style.setProperty("width",`${ve}px`),O.current.style.setProperty("height",`${be}px`),O.current.style.setProperty("transform",Le instanceof ee?Le.value:Le)}else O.current?.style.removeProperty("width"),O.current?.style.removeProperty("height"),O.current?.style.removeProperty("transform")},[t,I,n,A,S,p.renderOptions]),L=(0,We.useCallback)(P=>{if(Te(m.current!==null,"TransformWrapperStatic outerRef not set when setting inner size"),g||!Ec(I))return;let X=parseFloat(m.current.style.getPropertyValue(ks)),oe=parseFloat(m.current.style.getPropertyValue(ws));He(X,P.width,1e-4)||(m.current.style.setProperty(ks,`${P.width}`),c?.current?.style.setProperty(ks,`${P.width}`)),He(oe,P.height,1e-4)||(m.current.style.setProperty(ws,`${P.height}`),c?.current?.style.setProperty(ws,`${P.height}`))},[m,g,I,c]);dO(m,N),dO(O,L),(0,We.useLayoutEffect)(()=>{m.current&&N({width:m.current.clientWidth,height:m.current.clientHeight}),O.current&&L({width:O.current.clientWidth,height:O.current.clientHeight})},[]),(0,We.useLayoutEffect)(()=>{if(m.current){let P=m.current.getBoundingClientRect(),X=P.width,oe=P.height;N({width:X,height:oe})}},[t.id]);let b=Ph({children:o,keyframeMotionPropsOverride:f,nodeId:t.id,outerTransform:i.transform,renderMotionProps:!0,renderOptions:S,websiteContext:p}),{inner:M,outer:w}=xh({outerStyles:i,childWrapperStyles:s,keyframeAlignmentOverride:vh(t,I,R),preserve3d:pl(t,S)}),B=ln(a),{motionTransitionProps:y}=yD(l??te.NONE,a,B),K=bi(l??te.NONE,a,i.transform),G=!!l&&l!==te.NONE||b.elementMotionProps!=null;return p.renderElement({Tag:G?ir[d]:d,nodeId:T,idSuffix:"transform-wrapper-outer",ref:E,styleSet:w,attributes:{...G?{...y,...K,...b.elementMotionProps}:{},...b.dataMotionProps},children:p.renderElement({Tag:"div",nodeId:T,idSuffix:"transform-wrapper-inner",ref:O,styleSet:M,children:Se(b.children,p)})})}),tZ=We.default.forwardRef(function({node:t,parent:n,context:r,children:o,outerStyles:i,childWrapperStyles:s,transitionData:a,previousRotation:l,transformRef:u,codeBehaviorWrapperRef:c,tag:f,websiteContext:d},p){let{metronomeEnabled:_}
10743=d.renderOptions,T=t.id,h=(0,We.useRef)(null),m=u||h,E=ti(p,m),O=(0,We.useRef)(null),I=(0,We.useRef)(!1),g=(0,We.useRef)(!1),S=I.current&&g.current,[A,R]=(0,We.useState)(void 0),[N,L]=(0,We.useState)(void 0),b=Nr(t,n),M=(0,We.useCallback)(ae=>{let le=ae.width,Re=ae.height;if(I.current=!0,b){let Ye=Ft(Yt(r?.group?.relativeTransform,t.relativeTransform)),{width:de,height:Pt,transform:tt}=k_(le,Re,Ye,t.size,t.absoluteBoundingBox,d.renderOptions,!0,l);Te(O.current!==null,"TransformWrapperAnimate innerRef not set when setting outer size"),R({width:de,height:Pt,transform:tt})}else R(void 0)},[t,r?.group?.relativeTransform,b,l,d.renderOptions]),w=(0,We.useCallback)(ae=>{g.current=!0,(!N||!He(N.width,ae.width,1e-4)||!He(N.height,ae.height,1e-4))&&(L({width:ae.width,height:ae.height}),c?.current?.style.setProperty(ks,`${ae.width}`),c?.current?.style.setProperty(ws,`${ae.height}`))},[N,c]);dO(m,M),dO(O,w),(0,We.useLayoutEffect)(()=>{if(m.current){let ae=m.current.getBoundingClientRect(),le=ae.width,Re=ae.height;N&&!(He(le,N?.width??0,1e-4)&&He(Re,N?.height??0,1e-4))&&M({width:le,height:Re})}},[t.id]);let{transform:B,...y}=s,K=A?{width:A.width,height:A.height}:void 0;if(!A?.transform&&!B){let ae=WR(l.current,0);l.current=l.current+ae}let C=`rotate(${l.current}deg) skewX(0deg) skewY(0deg) scaleX(1) scaleY(1)`,G;b?G=A?.transform??B??C:G=B??A?.transform??C;let P=G instanceof ee?G.value:G,X=(0,We.useMemo)(()=>Ft(Yt(r?.group?.relativeTransform,t.relativeTransform)),[r?.group?.relativeTransform,t.relativeTransform]),{inner:oe,outer:ve}=xh({outerStyles:i,childWrapperStyles:y,innerState:K,keyframeAlignmentOverride:vh(t,X,_),preserve3d:pl(t,d.renderOptions)}),be={[ks]:N?.width??0,[ws]:N?.height??0},Le=ln(a),{motionTransitionProps:Ce}=AD(be,S,a,S?Le:void 0),Ue=bi(te.INSTANCE_SUBTREE,a,i.transform);return d.renderElement({Tag:ir[f],nodeId:T,idSuffix:"transform-wrapper-outer",ref:E,styleSet:ve,attributes:{...Ce,...Ue},children:d.renderElement({Tag:ir.div,nodeId:T,idSuffix:"transform-wrapper-inner",styleSet:oe,ref:O,attributes:{layout:!0,layoutDependency:a?.id??AS,transition:a?{duration:a.durationSeconds,...a.motionAnimationData}:{duration:0},initial:{transform:P},animate:{transform:P},onAnimationComplete:S?Le:void 0,onLayoutAnimationComplete:S?Le:void 0,transformTemplate:(ae,le)=>ae&&ae.transform?`${le} ${ae.transform}`:le},children:Se(o,d)})})});function PV({ref:e,...t}){return t.canAnimate?(0,tN.jsx)(tZ,{ref:e,...t}):(0,tN.jsx)(eZ,{ref:e,...t})}var nN={renderTransformWrapperLive:PV,renderMarquee:bV,renderCodeBehaviorWrapper:yV,renderRenderHooksConsumer:CV,renderClientOnly:rU,renderAnimatePresence:RV};function nZ(e,t){let n=sZ(t.websiteData.fonts,t.getFontURL,e),r=lv(n,t);return{fontFaces:n,styleElId:r}}function DV(){let e=fe(),t=ge(e.websiteData.sourceCodeHash),{fontFaces:n,styleElId:r}=nZ(!!t,e);uv(n,r)}function rZ(e,t,n){let r=new Map,o=e.split(":")[1],i=oO(t.variationAxes,o);if(t.subsets){let s=t.subsets.baseUrl;if(r.set(e,t.subsets.subsetMappings.sort((a,l)=>a.unicodeRange==="*"?-1:0).map(a=>ma({family:e,style:t.italic?"italic":"normal",url:s+a.file,unicodeRange:a.unicodeRange})).join(` 10744`)),n){let a=e.split(":"),l=a[0],u=a.length>1?a[1]:"normal";r.set(l,t.subsets.subsetMappings.sort((c,f)=>c.unicodeRange==="*"?-1:0).map(c=>ma({family:l,style:u,url:s+c.file,unicodeRange:c.unicodeRange,weight:i})).join(` 10745`))}}else if(r.set(e,ma({family:e,style:t.italic?"italic":"normal",url:t.url})),n){let s=e.split(":"),a=s[0],l=s.length>1?s[1]:"normal";r.set(a,ma({family:a,style:l,url:t.url,weight:i}))}return r}function oZ(e,t,n,r){let o=new Map,i=t.url?n(t.url,"CUSTOM"):void 0,s=e.split(":")[1],a=oO(t.variationAxes,s);if(o.set(e,ma({family:e,style:t.italic?"italic":"normal",url:i})),r){let l=e.split(":"),u=l[0],c=l.length>1?l[1]:"normal";o.set(u,ma({family:u,style:c,url:i,weight:a}))}return o}function iZ(e,t,n,r){return t?t.source===1?rZ(e,t,r):oZ(e,t,n,r):new Map}function sZ(e,t,n){let r=Array.from(e.map).reduce((o,[i,s])=>new Map([...o,...iZ(i,s,t,n)]),new Map);return Ds([...r.values()].join(` 10746`))}function vV(e){return cr.default.useMemo(()=>e.optimizeForTailwindConversion?t=>gP(t,e):({key:t,ref:n,...r})=>(0,et.jsx)(gV,{elementRef:n,...r},t),[e])}function aZ({rootMaterializedNodes:e,history:t,websiteData:n,cmsBundleData:r,getAssetURL:o,getFontURL:i,getVideoURL:s,getCodeComponentURL:a,env:l,currentLocation:u,setLocation:c,preloadLocation:f,onPageRendered:d,onReactError:p,renderOptions:_,addHeadTag:T,addBodyScript:h,loadComponentsOverNetwork:m,wasServerRendered:E=!1,withBaseStyles:O=!0,isFigmake:I,enableMetaTags:g,atomStore:S,globalVariableState:A,inheritedVariantPropertiesCache:R,processedNodesCache:N,computedVariantCache:L}){let b=vV(_),w=ge(n.siteSettings,{store:S})?.cookieBanner,[B,y]=(0,cr.useState)(!1);mZ(E);let C=l==="published"&&I&&window.self===window.top?gU:hV;return(0,et.jsx)(jD,{reportError:p,children:(0,et.jsx)(ca,{name:"root-error-boundary",nodeId:"root",children:(0,et.jsx)(wS,{websiteData:n,cmsBundleData:r,history:t,getAssetURL:o,getFontURL:i,getVideoURL:s,getCodeComponentURL:a,env:l,setLocation:c,preloadLocation:f,renderOptions:_,renderElement:b,renderFragment:qy,withBaseStyles:O,addHeadTag:T,addBodyScript:h,loadComponentsOverNetwork:m,isFigmake:I,enableMetaTags:g,atomStore:S,globalVariableState:A,inheritedVariantPropertiesCache:R,processedNodesCache:N,computedVariantCache:L,sitesRenderers:nN,children:(0,et.jsx)(Tf.Provider,{value:{enabled:w?.enabled,openSettings:()=>y(!0)},children:(0,et.jsxs)(C,{children:[(0,et.jsx)(fZ,{rootMaterializedNodes:e}),w?.enabled&&(0,et.jsx)(Xy,{...w,guidToUrl:n.guidToUrl,setLocation:c,reportError:p,isManaging:B,setIsManaging:y}),(0,et.jsx)(lZ,{currentLocation:u,onPageRendered:d})]})})})})})}function lZ({currentLocation:e,onPageRendered:t}){let n=ge(wE);return(0,cr.useEffect)(()=>{window.scrollTo(0,e?.scrollY??0)},[e?.scrollY,e?.url]),(0,cr.useEffect)(()=>{t&&e?.url&&t(e.url,n)},[e?.url,t,n]),bP(),null}function pO(e){let t=document.createRange().createContextualFragment(e);
10746return Array.from(t.children).forEach(r=>r.setAttribute("data-user-element","true")),t}function uZ(e){let t=fe()?.websiteData.siteSettings??ce(),n=ge(t),r=n?.customCodeHeadStart,o=n?.customCodeHeadEnd,i=n?.customCodeBodyStart,s=n?.customCodeBodyEnd;(0,cr.useInsertionEffect)(()=>{if(e==="preview")return r&&document.head.prepend(pO(r)),o&&document.head.append(pO(o)),i&&document.body.prepend(pO(i)),s&&document.body.append(pO(s)),()=>{document.querySelectorAll("[data-user-element]").forEach(l=>l.remove())}},[e,r,o,i,s])}function cZ(){let t=ge(fe().websiteData.siteSettings)?.addBypassLinks,n=(0,cr.useCallback)(i=>{i.stopPropagation(),i.preventDefault();let s=document.querySelector("main");s&&s.focus()},[]),r=(0,cr.useCallback)(i=>{i.key==="Enter"&&n(i)},[n]),o=(0,cr.useCallback)(i=>{n(i)},[n]);return t?(0,et.jsx)("div",{className:"bypass-link",children:(0,et.jsx)("a",{role:"link",onKeyDown:r,onClick:o,tabIndex:0,children:"Skip to main content"})}):null}function xV(e){let t=ge(e.rootMaterializedNodePropsArrayAtom,{store:e.atomStore}),n=ge(e.renderOptionsAtom,{store:e.atomStore}),r=ge(e.cmsBundleDataAtom,{store:e.atomStore}),o=ge(e.currentLocationAtom,{store:e.atomStore}),i=zh(s=>t.map(a=>nl(s,a,{env:e.env,isFigmake:e.isFigmake,renderOptions:n,websiteData:e.websiteData,setLocation:e.setLocation,history:e.history,atomStore:e.atomStore,globalVariableState:e.globalVariableState,inheritedVariantPropertiesCache:e.inheritedVariantPropertiesCache,processedNodesCache:e.processedNodesCache,computedVariantCache:e.computedVariantCache})),[t,e.env,n],{store:e.atomStore});return(0,et.jsx)(aZ,{...e,cmsBundleData:r,currentLocation:o,renderOptions:n,rootMaterializedNodes:i})}function fZ({rootMaterializedNodes:e}){let t=fe(),{env:n,withBaseStyles:r}=t,o=Qd();return v1(),DV(),uZ(n),e.length>0?(0,et.jsxs)(eA,{reducedMotion:o?"never":"user",children:[(0,et.jsx)(eN,{withBaseStyles:r}),(0,et.jsx)(Qy,{}),(0,et.jsx)(fv,{}),(0,et.jsx)(cZ,{},`bypass-${e[0]?.id}`),e.map(i=>(0,et.jsx)(Ki,{node:i,parent:null,websiteContext:t},`${i.id}`))]}):null}var dZ=()=>{};function rN({websiteData:e,cmsBundleData:t,history:n,getAssetURL:r,getFontURL:o,getVideoURL:i,getCodeComponentURL:s,env:a,setLocation:l,withBaseStyles:u=!0,addHeadTag:c,addBodyScript:f,loadComponentsOverNetwork:d=!1,isFigmake:p=!1,enableMetaTags:_=!1,renderOptions:T,children:h,atomStore:m,globalVariableState:E,inheritedVariantPropertiesCache:O,processedNodesCache:I,computedVariantCache:g}){let S=vV(T);return(0,et.jsx)(wS,{websiteData:e,cmsBundleData:t,history:n,getAssetURL:r,getFontURL:o,getVideoURL:i,getCodeComponentURL:s,env:a,setLocation:l,preloadLocation:dZ,renderOptions:T,renderElement:S,renderFragment:qy,withBaseStyles:u,addHeadTag:c,addBodyScript:f,loadComponentsOverNetwork:d,isFigmake:p,enableMetaTags:_,atomStore:m,globalVariableState:E,inheritedVariantPropertiesCache:O,processedNodesCache:I,computedVariantCache:g,sitesRenderers:nN,children:(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(eN,{withBaseStyles:u,prepend:!0}),(0,et.jsx)(Qy,{}),h]})})}var pZ="[Hydrated]";function mZ(e){(0,cr.useEffect)(()=>{e&&console.log(pZ)},[e])}function EZ({websiteData:e,cmsBundleData:t,atomStore:n,globalVariableState:r,url:o,get:i}){let s=vE(i,e,o);if(!s||s.length===0)throw new _t(`Not found: ${o}`);return s.map(a=>_Z({websiteData:e,cmsBundleData:t,atomStore:n,globalVariableState:r,nodeId:a.id,stablePathPrefix:a.type==="INSTANCE"?lc(a.id):void 0}))}function _Z({websiteData:e,cmsBundleData:t,atomStore:n,globalVariableState:r,nodeId:o,stablePathPrefix:i}){return{key:o,nodeById:e.nodeById,assets:e.assets,assetIdToGuid:e.assetIdToGuid,guidToUrl:e.guidToUrl,animateRootIds:e.animateRootIds,stablePathToAssetInfo:e.stablePathToAssetInfo,stablePathToConstraints:e.stablePathToConstraints,stablePathToReplaceabilityInputs:e.stablePathToReplaceabilityInputs,nodeId:o,preexpandedNodeId:o,stablePathPrefix:i,modeContext:{},parentStates:null,parentState:yo.createRoot(t,n,r)}}function MV({websiteData:e,cmsBundleDataAtom:t,atomStore:n,globalVariableState:r,getUrl:o,onResolved:i}){return ce(s=>{let a=o(s);return a==null?[]:(i?.(),EZ({websiteData:e,cmsBundleData:s(t),atomStore:n,globalVariableState:r,url:a,get:s}))})}function FV(){let e={},t={},n=[],r=[],o=[],i;return{classNamesToStyles:e,globalStyleSheets:t,linkTags:n,metaTags:r,bodyScripts:o,getTitle:()=>i,addHeadTag:s=>{s.type==="class-style"?e[s.className]={cssProperties:s.cssProperties,classNameSourceStr:s.classNameSourceStr}:s.type==="global-style"?t[s.styleElId]=s.styleSheet:s.type==="link"?n.push(s):s.type==="meta"?r.push(s):s.type==="title"&&(i=s.title)},addBodyScript:s=>{o.push(s)}}}function oN(e={}){let{isDesignToReact:t=!1,isMcp:n=!1,shouldOutputVariables:r,dashSeparatedVariableNames:o=!1,codeSyntaxLanguage:i,rootNodeStyle:s,useFigmaComponents:a=!0}=e,l=!!t;return{includeDataName:l,disableDataAttributes:l,shouldOutputCustomEffects:e.shouldOutputCustomEffects??!1,disableBehaviors:l,disableMarquee:l,disableCodeBehaviors:l,preferCssGradients:l,useFigmaClipContentsForOverflow:l,disableTextMarkerVariables:l,disableHighSpecificityContainer:l,disableConstraintsBasedSizing:l,renderHiddenRootNodes:l,renderComponentSetNodes:l,disableImageOptimization:l,disableVariableErrors:l,optimizeForTailwindConversion:l,disableInlineSvgGeneration:l,disableAdjustLetterSpacing:l,disableClientOnlyComponents:l,enableGroupKeyframeAnimations:e.enableGroupKeyframeAnimations??!1,metronomeEnabled:e.metronomeEnabled??!1,transform3dEnabled:e.transform3dEnabled??!1,emitMotionDataForCodegen:l,assignNodeIdToOutermostWrapper:l,useCssRotationConstraints:l,rootNodeStyle:s??(l?"independent":void 0),useFigmaComponents:l&&a,minimizeAutoLayoutWrappers:n,dontUseChildDivForBorderStyles:n,shouldOutputVariables:r??n,dashSeparatedVariableNames:o,variableUnitsAtReference:e.variableUnitsAtReference??!1,disableFontFallbacks:n,codeSyntaxLanguage:i??void 0,previewingCodeBehavior:e.previewingCodeBehavior??!1,testFlags:e.testFlags,enforceLayoutInvariants:e.enforceLayoutInvariants??!1,textCodepointSubstitution:e.textCodepointSubstitution}}var Gp=class{static parseModeId(t){let n=t.split("/");if(n.length<2)return null;if(n.length===3){let r=n.slice(0,2).join("/"),o=n[2];return o?{collectionId:r,modeGuid:o}:null}if(n.length===2){let r=n[0],o=n[1];return!r||!o?null:{collectionId:r,modeGuid:o}}return null}};function TZ(e){let t=e.indexOf("/");return t===-1?e:e.substring(0,t)}var iN=class{resolutionCache=new Map;createCacheKey(t,n,r){return`${t}:${n}:${r}`}
10746findVariable(t,n,r){let o=r.getAssetGuid(t),i=r.nodeById.get(o,r.disableVariableErrors);if(i?.type!=="VARIABLE")return null;let s=r.getCollectionInfo(i.variableCollectionId);if(!s)return null;let a=s.baseCollectionId||i.variableCollectionId,l=n[a],u=l&&Gp.parseModeId(l);if(!u)return null;let c=this.createCacheKey(u.collectionId,u.modeGuid,t);if(this.resolutionCache.has(c))return this.resolutionCache.get(c)??null;let f=this.walkCollectionChain({targetVariableId:t,targetVariableCollectionKey:r.getAssetKeyOrLocalGuid(i.variableCollectionId),collectionAssetId:u.collectionId,modeGuid:u.modeGuid,variableState:r});return this.resolutionCache.set(c,f),f}walkCollectionChain({targetVariableId:t,targetVariableCollectionKey:n,collectionAssetId:r,modeGuid:o,variableState:i}){let s=i.getAssetGuid(r),a=i.nodeById.get(s,i.disableVariableErrors);if(!a||a.type!=="VARIABLE_COLLECTION")return null;let l=this.tryResolveVariable({collection:a,collectionAssetId:r,targetVariableId:t,targetVariableCollectionKey:n,modeGuid:o,variableState:i});if(l)return l;if(a.parentVariableCollectionId){let u=this.getParentModeInfo(a,o);if(u)return this.walkCollectionChain({targetVariableId:t,targetVariableCollectionKey:n,collectionAssetId:u.parentCollectionId,modeGuid:u.parentModeId,variableState:i})}return null}tryResolveVariable({collection:t,collectionAssetId:n,targetVariableId:r,targetVariableCollectionKey:o,modeGuid:i,variableState:s}){if(s.getAssetKeyOrLocalGuid(n)===o)return{variableId:r,modeGuid:i};let a=t.relatedVariableIds?.[r];if(!a)return null;let l=s.getAssetGuid(a),u=s.nodeById.get(l,s.disableVariableErrors);return u?.type==="VARIABLE"&&u.valuesByMode?.[i]!==void 0?{variableId:a,modeGuid:i}:null}getParentModeInfo(t,n){if(!t.modes)return null;let r=t.modes.find(o=>o.modeId.endsWith(`/${n}`));if(!r||!r.parentModeId)return null;if(r.parentModeId.includes("/")){let o=Gp.parseModeId(r.parentModeId);if(o)return{parentCollectionId:t.parentVariableCollectionId,parentModeId:o.modeGuid}}else return{parentCollectionId:t.parentVariableCollectionId,parentModeId:r.parentModeId};return null}},mO=class{nodeById;assetIdToGuid;atomStore;disableVariableErrors;map=new Map;assetIdToAssetKeyCache=new Map;hierarchyResolver=new iN;constructor(t,n,r,o){this.nodeById=t,this.assetIdToGuid=n,this.atomStore=r,this.disableVariableErrors=o}resolve(t,n){return this.hierarchyResolver.findVariable(t,n,this)}resolveTarget(t,n){let r=this.resolve(t,n),o=this.getVariable(r?.variableId??t);return o?{runtimeVariable:o,modeGuid:r?.modeGuid}:null}setVariable(t,n,r){let o=this.resolveTarget(t,r);o&&o.runtimeVariable.value.setModeValue(n,r,o.modeGuid)}getModeValueAtom(t,n){let r=this.resolveTarget(t,n);return r?r.runtimeVariable.value.getModeValue(n,r.modeGuid):null}evaluateVariable(t,n,r){let o=this.getModeValueAtom(n,r);return o?To({get:t,variableState:this,modeContext:r},t(o)):null}getVariableCodeSyntax(t){let n=this.getVariable(t);return n?n.value.codeSyntax:{}}getVariableName(t){let n=this.getVariable(t);return n?n.value.name:void 0}getVariable(t){let n=this.getAssetGuid(t),r=this.nodeById.get(n,this.disableVariableErrors);if(!r||r.type!=="VARIABLE")return null;let o=this.map.get(r.id);if(o)return o;let i=new sN(r,this,this.nodeById,this.atomStore);return this.map.set(r.id,i),i}getVariableType(t,n,r){let o=this.evaluateVariable(n,t,r);return o===null?null:gS(o)}getAssetKeyOrLocalGuid(t){this.assetIdToAssetKeyCache.has(t)||this.assetIdToAssetKeyCache.set(t,TZ(t));let n=this.assetIdToAssetKeyCache.get(t);return Te(n!==void 0,"assetKey is undefined"),n}getAssetGuid(t){return this.assetIdToGuid.get(t,this.disableVariableErrors)||t}hasAssetId(t){return this.assetIdToGuid.get(t,!0)!==void 0}getCollectionInfo(t){try{let n=this.getAssetGuid(t),r=this.nodeById.get(n,this.disableVariableErrors);return!r||r.type!=="VARIABLE_COLLECTION"?null:r}catch{return null}}},sN=class{atomStore;value;modeAtoms=new Map;constructor(t,n,r,o){this.atomStore=o;let i=r.get(n.getAssetGuid(t.variableCollectionId),n.disableVariableErrors),s=n.getAssetKeyOrLocalGuid(t.variableCollectionId),a=(c,f)=>
10746{let d=t.variableCollectionId,p=c?.[d]??c?.[s];p||(p=i.defaultModeId);let _=Gp.parseModeId(p),T=f??_?.modeGuid??p,h=`${d}/${T}`,m=this.modeAtoms.get(h);return m||(m=new hZ(t,T,this.atomStore),this.modeAtoms.set(h,m)),m},l=(c,f)=>a(c,f).atom,u=(c,f,d)=>a(f,d).setValue(c);this.value={name:t.name,codeSyntax:t.codeSyntax??{},getModeValue:l,setModeValue:u}}},hZ=class{atomStore;valueAtom=ce(void 0);atom;constructor(t,n,r){this.atomStore=r,this.atom=ce(o=>{let i=t.valuesByMode[n];return o(this.valueAtom)??i})}setValue(t){this.atomStore.set(this.valueAtom,t)}};var EO=class{capacity;leakRate;currentVolume;lastTimestamp;constructor(t,n){this.capacity=t,this.leakRate=n,this.currentVolume=0,this.lastTimestamp=Date.now()}leak(){let t=Date.now(),r=(t-this.lastTimestamp)*this.leakRate;this.currentVolume=Math.max(0,this.currentVolume-r),this.lastTimestamp=t}tryAdd(t=1){return this.leak(),this.currentVolume+t<=this.capacity?(this.currentVolume+=t,!0):!1}};function GV(e){return(t,{width:n,height:r}={})=>{if(!e)return t;let o=new URLSearchParams;n&&o.set("w",n.toString()),r&&o.set("h",r.toString());let i=o.size>0?`?${o.toString()}`:"";return`/_assets/${e}/${t}${i}`}}function kV(e){return(t,n)=>n==="CUSTOM"?`/_user_fonts/${e||"v1"}/${t}`:t}function wV({env:e,videosVersion:t}){return(n,r)=>e==="preview"?n:`/_videos/${t||"v1"}/${r}`}function BV({codeComponentsVersion:e,atomStore:t,websiteData:n}){return()=>{if(e){let i=t.get(n.sourceCodeHash);return i?`/_components/${e}/${i}.js`:(console.warn("Source code hash not found"),"")}let r="data:text/javascript;charset=utf-8,",o=n.compiledCode;return o==null?(console.warn("Compiled code not found"),r):r+encodeURIComponent(t.get(o)??"")}}function OZ(e,t,n){let r=IZ(e,t,n);return UV(r,n)}function IZ(e,t,n){let{atomStore:r,globalVariableState:o}=n,i=BE();UE(i,vd(e),r);let s=vE(r.get,i,t)[0];if(!s)throw new _t(`Not found: ${t}`);let a=s.id;return{key:"root",nodeById:i.nodeById,assets:i.assets,nodeId:a,preexpandedNodeId:a,parentStates:null,modeContext:{},parentState:yo.createRoot(null,r,o),animateRootIds:new Set,stablePathToAssetInfo:i.stablePathToAssetInfo,stablePathToConstraints:i.stablePathToConstraints,stablePathToReplaceabilityInputs:i.stablePathToReplaceabilityInputs,assetIdToGuid:i.assetIdToGuid,guidToUrl:i.guidToUrl}}function UV(e,t){try{let n=nl(t.atomStore.get,e,t),r=n.visible?n.materializedChildNodeProps?.map(i=>UV(i,t)):void 0,o=1;if(r)for(let i of r)o+=i.nodesInSubtree;return delete n.interactionHandlers,delete n.materializedChildNodeProps,delete n.transitionProps,delete n.variableState,delete n.modeContext,structuredClone(n),{node:n,children:r,nodesInSubtree:o}}catch(n){return console.log("Materialization error",n),{node:{type:"ERROR",name:n.message},nodesInSubtree:1}}}var gZ="[Hydration Error]",SZ=["hydrat","Minified React error #418","Minified React error #423","Minified React error #424","Minified React error #425"],VV=class{root;container;websiteData;atomStore;cmsBundleDataAtom;env;pendingLocationAtom;currentLocationAtom;getPage;getAssetURL;getVideoURL;getFontURL;history;onWindowResize=null;rootMaterializedNodePropsArrayAtom;materializedRenderOptionsAtom;bundleId;loadComponentsOverNetwork;headTagCollector=FV();withBaseStyles;isFigmake;enableMetaTags;onPageRendered;onReactError;onLocationChange;needsHydration=!1;_resolveRootsRuntimeAtomForTests=void 0;_rootsRuntimeAtomForTestsPromise=void 0;getPagePreloadCache=new Map;materializedRenderOptions;globalVariableState;inheritedVariantPropertiesCache=new Map;processedNodesCache=new Set;computedVariantCache=new Map;constructor({container:t,env:n,loadComponentsOverNetwork:r=!1,history:o,getAssetURL:i=void 0,getFontURL:s=void 0,getVideoURL:a=void 0,getPage:l=void 0,onPageRendered:u,onReactError:c=qa,onLocationChange:f,sendMessage:d=TD,codeComponentsVersion:p,assetsVersion:_,fontsVersion:T,videosVersion:h,bundleId:m,renderOptions:E={},withBaseStyles:O=!0,reportingDomain:I,userId:g,analyticsHeaders:S,bundleCreationDate:A,isFigmake:R,enableMetaTags:N}){if(n==="server")throw new q('SitesRuntime does not support env: "server". Use `renderPageAsString` instead.');this.container=t,this.bundleId=m,this.env=n,this.withBaseStyles=O,this.atomStore=hd(),this.pendingLocationAtom=ce(null),this.currentLocationAtom=ce(null),this.getPage=l??this.defaultGetPage,this.getAssetURL=i||GV(_),this.getFontURL=s||kV(T),this.getVideoURL=a||wV({env:n,videosVersion:h}),zD(d),o||(o=new RZ(b=>this.setLocation(b,!0))),this.websiteData=BE(),this.cmsBundleDataAtom=ce(null),this.history=o,this.loadComponentsOverNetwork=r,this.needsHydration=this.isPublished(),this.isFigmake=!!R,this.enableMetaTags=!!N,this.onPageRendered=u,this.onReactError=c,this.onLocationChange=f,De.init({env:n,reportingDomain:I||"",rateLimiter:new EO(100,1/1e3),analyticsHeaders:S,userId:g,bundleId:m,bundleCreationDate:A}),this.materializedRenderOptions=oN(E),this.materializedRenderOptionsAtom=ce(this.materializedRenderOptions),this.globalVariableState=new mO(this.websiteData.nodeById,this.websiteData.assetIdToGuid,this.atomStore,this.materializedRenderOptions.disableVariableErrors),this.rootMaterializedNodePropsArrayAtom=MV({websiteData:this.websiteData,cmsBundleDataAtom:this.cmsBundleDataAtom,atomStore:this.atomStore,globalVariableState:this.globalVariableState,getUrl:b=>b(this.currentLocationAtom)?.url,onResolved:()=>this._resolveRootsRuntimeAtomForTests?.()}),this.getCodeComponentURL=BV({codeComponentsVersion:p,atomStore:this.atomStore,websiteData:this.websiteData}),this.onWindowResize=()=>{this.atomStore.set(wE,{width:window.innerWidth,height:window.innerHeight})},this.onWindowResize(),window.addEventListener("resize",this.onWindowResize);let L=(b,M,w,B,y)=>{y&&De.reportError(y)};if(window.addEventListener("error",L),this.isPreview()){if(!t)throw new q("Container is required in order to render the site.");this.root=(0,TO.createRoot)(t),this.root.render(this.createWebsiteElement())}}isPreview(){return this.env==="preview"}isPublished(){return this.env==="published"}createWebsiteElement(){return(0,_O.createElement)(xV,{...this.websiteContextForMaterialization,cmsBundleDataAtom:this.cmsBundleDataAtom,rootMaterializedNodePropsArrayAtom:this.rootMaterializedNodePropsArrayAtom,getAssetURL:this.getAssetURL,getFontURL:this.getFontURL,getVideoURL:this.getVideoURL,getCodeComponentURL:this.getCodeComponentURL,withBaseStyles:this.withBaseStyles,currentLocationAtom:this.currentLocationAtom,preloadLocation:t=>{this.preloadLocation(t)},onPageRendered:this.onPageRendered,onReactError:this.handleReactError,renderOptionsAtom:this.materializedRenderOptionsAtom,atomStore:this.atomStore,addHeadTag:this.headTagCollector.addHeadTag,addBodyScript:this.headTagCollector.addBodyScript,loadComponentsOverNetwork:this.loadComponentsOverNetwork,wasServerRendered:this.isPublished(),enableMetaTags:this.enableMetaTags})}defaultGetPage=async t=>{let n=t==="/"?"/_index":t,r=`/_json/${this.bundleId}${n}.json`,o=`/_json/${this.bundleId}/_cms${n}.json`,i=fetch(r,{method:"GET",credentials:"include",mode:"no-cors"}),s=new AbortController,a=this.isFigmake?Promise.resolve(null):fetch(o,{method:"GET",credentials:"include",mode:"no-cors",signal:s.signal}).catch(()=>null),l=await i;if(l.status===401&&l.headers.get("x-figma-needs-reauth"))throw console.log("Re-authentication required; navigating to",t),window.location.href=t,new _t("Authentication required");let u=await l.json(),c=!1;if(u.nodeById)for(let d in u.nodeById){let p=u.nodeById[d];if(p&&(p.cmsCollectionBindingProperties||p.cmsItemFieldBindingProperties)){c=!0;break}}let f=null;if(c){let d=await a;if(d&&d.ok)try{f=await d.json()}catch(p){De.reportError(new _t("Error parsing CMS resource",p)),console.error(p)}else De.reportError(new _t(`CMS resource expected but failed to load: ${o}`)),console.error(`CMS resource expected but failed to load: ${o}`)}else s.abort();return{resource:u,cmsResource:f}};preloadLocation(t){let n=this.getPagePreloadCache.get(t);return n||(n=this.getPage(t),this.getPagePreloadCache.set(t,n)),n}setLocation(t,n){t.url!==""&&(this.atomStore.set(this.pendingLocationAtom,t),this.preloadLocation(t.url).then(({resource:r,cmsResource:o})=>{if(this.websiteData.nodeById.map.clear(),UE(this.websiteData,vd(r),this.atomStore),o){let i=fD(o),s=QD();ev(s,i),this.atomStore.set(this.cmsBundleDataAtom,s)}n||this.history.push(t),this.atomStore.set(this.currentLocationAtom,t),this.onLocationChange?.(this),this.needsHydration&&(this.needsHydration=!1,this.hydrate())}).catch(r=>{let o=r instanceof Error;if(o){let i=r.message;if(i===Xg||i===jg)return}throw o?r:new Error("Error setting location "+String(r))}).finally(()=>{this.getPagePreloadCache.delete(t.url)}))}getCodeComponentURL;createSnapshotWrapper(t){return(0,_O.createElement)(rN,{...this.websiteContextForMaterialization,cmsBundleData:this.atomStore.get(this.cmsBundleDataAtom),getAssetURL:this.getAssetURL,getFontURL:this.getFontURL,getVideoURL:this.getVideoURL,getCodeComponentURL:this.getCodeComponentURL,setLocation:()=>{},addHeadTag:()=>{},addBodyScript:()=>{},loadComponentsOverNetwork:this.loadComponentsOverNetwork,withBaseStyles:this.withBaseStyles,enableMetaTags:this.enableMetaTags},t)}get websiteContextForMaterialization(){return{env:this.env,isFigmake:this.isFigmake,renderOptions:this.materializedRenderOptions,websiteData:this.websiteData,setLocation:t=>this.setLocation(t,!1),history:this.history,atomStore:this.atomStore,globalVariableState:this.globalVariableState,inheritedVariantPropertiesCache:this.inheritedVariantPropertiesCache,processedNodesCache:this.processedNodesCache,computedVariantCache:this.computedVariantCache}}createLayerElement({guid:t,renderedByCode:n}){this.atomStore.set(this.currentLocationAtom,{url:"/"});let r=this.websiteData.nodeById.get(t),o=this.atomStore.get(this.rootMaterializedNodePropsArrayAtom),i;o&&(i=o[0]);let s=this.atomStore.get(tc);if(!i||!r)return null;i.nodeId=t,i.preexpandedNodeId=t,i.breakpointWidth=s;let a=nl(this.atomStore.get,i,this.websiteContextForMaterialization);return function(u){let c=u?Object.fromEntries(Object.entries(u).filter(([p])=>p.startsWith("data-"))):{},f={renderedByCode:n,style:u?.style,className:u?.className,dataAttributes:c},d=fe();return d?(0,_O.createElement)(Ki,{node:a,parent:null,context:f,websiteContext:d}):null}}refresh(){window.location.reload()}pushAssetData(t){BS(this.websiteData,cD(t),this.atomStore)}unmount(){this.onWindowResize&&window.removeEventListener("resize",this.onWindowResize),setTimeout(()=>{this.root?.unmount()})}hydrate(){this.isPublished(),Te(!!this.container,"Container must be provided in order to hydrate the site."),this.isFigmake||lV(),(0,TO.hydrateRoot)(this.container,this.createWebsiteElement(),{onRecoverableError:(t,n)=>{let r=t.message.toLocaleLowerCase(),o=!1;for(let i of SZ)if(r.includes(i.toLocaleLowerCase())){o=!0;break}o?console.error(gZ,t,t.cause??"",n.componentStack):console.error(t,n.componentStack)}})}toggleDebugTools(){this.atomStore.set(Gd,!this.atomStore.get(Gd))}_convertMaterializedNodePropsDataForTest(t){let n=nl(this.atomStore.get,t,this.websiteContextForMaterialization),r=n.materializedChildNodeProps;return delete n.interactionHandlers,delete n.materializedChildNodeProps,delete n.transitionProps,"variableState"in n&&delete n.variableState,"modeContext"in n&&delete n.modeContext,{materializedNode:n,materializedChildNodeProps:r}}async _getSerializedMaterializedNodePropsArrayDataForTests(){this.atomStore.get(this.rootMaterializedNodePropsArrayAtom)||(this._rootsRuntimeAtomForTestsPromise=new Promise(i=>{this._resolveRootsRuntimeAtomForTests=i})),await this._rootsRuntimeAtomForTestsPromise;let t=this.atomStore.get(this.rootMaterializedNodePropsArrayAtom);Te(!!t&&t.length>0,"Root nodes not found");let n={},r=i=>{let s=this._convertMaterializedNodePropsDataForTest(i);n[s.materializedNode.id]=s.materializedNode,s.materializedChildNodeProps?.forEach(a=>r(a))};return{rootIds:t.map(i=>(r(i),this._convertMaterializedNodePropsDataForTest(i).materializedNode.id)),nodeByGuidMap:n}}listenForTestEvent(t){return new Promise(n=>{let r=o=>{let i=o.detail.name;t===i&&(window.removeEventListener("FigmaTestEvent",r),n(t))};window.addEventListener("FigmaTestEvent",r)})}setRenderOptions(t){let n=oN(t);Object.assign(this.materializedRenderOptions,n),this.atomStore.set(this.materializedRenderOptionsAtom,n)}handleReactError=(t,n={})=>{try{this.onReactError(t,n)}catch{}De.reportError(t)}},RZ=class{onPopState;constructor(t){this.onPopState=t,window.addEventListener("popstate",n=>{let r=n.state;this.onPopState({...this.current,scrollY:r?.scrollY})}),history.replaceState({},"",this.href),t(this.current)}get current(){return{url:window.location.pathname,search:window.location.search}}get href(){let{url:t,search:n}=this.current;return HV(t,n)}push(t){history.replaceState({scrollY:window.scrollY},"",this.href),history.pushState({},"",HV(t.url||"/",t.search||""))}forward(){history.forward()}back(){history.back()}},HV=(e,t)=>e+t;export{ff as ActiveBreakpointContext,Ay as ActiveBreakpointProvider,m7 as AppearBehaviorPresetTransition,My as BannerComponentType,ei as BehaviorPresetEasingFunctions,p7 as BehaviorPresetScrollParallaxSpeed,d7 as BehaviorPresetStates,fB as BehaviorPresetTransition,Nt as BehaviorType,It as BlendMode,WP as CmsRichTextNodeDefaults,JP as CodeComponentNodeDefaults,qP as CodeFileNodeDefaults,$P as CodeInstanceNodeDefaults,ZP as CodeLayerNo
10746deDefaults,FP as ComponentNodeDefaults,GP as ComponentSetNodeDefaults,No as ConsentType,Xy as CookieConsentBanner,Tf as CookieConsentContext,sq as CornerRadiusShapeTraitsDefaults,pS as CornerTraitDefaults,z9 as DEFAULT_HISTORY_STATE,vy as DEFAULT_SITE_DESCRIPTION,Dy as DEFAULT_SITE_TITLE,Ld as DefaultShapeTraitsDefaults,Sn as EasingType,qe as ExpressionFunction,eq as FontVariantPosition,BP as FrameNodeDefaults,Vr as FrameTraitsDefaults,VP as GroupNodeDefaults,bd as HasBlendModeAndOpacityTraitDefaults,qY as HasEffectsTraitDefaults,QY as HasFramePropertiesTraitDefaults,SE as HasGeometryTraitDefaults,gE as HasLayoutTraitDefaults,vP as HasMaskTraitDefaults,wP as ImageNodeDefaults,YP as InstanceNodeDefaults,iq as InteractionTraitDefaults,e3 as IsInAnimateTreeTraitDefaults,Mu as IsLayerTraitDefaults,tq as KeyframeOperation,nq as KeyframeValueType,xy as LOTTIEFILES_REGEX,$n as LayoutConstraintHorizontal,Or as LayoutConstraintVertical,ka as LineTypes,pB as MARQUEE_PRESET_DEFAULT_PAUSE_ON_HOVER,_7 as MARQUEE_PRESET_DEFAULT_PAUSE_ON_HOVER_VAR,dB as MARQUEE_PRESET_DEFAULT_SPEED,E7 as MARQUEE_PRESET_DEFAULT_SPEED_VAR,nO as RESET_STYLES_ID,KP as RectangleNodeDefaults,xP as RectangularShapeTraitsDefaults,Vl as RenderHooksContext,HP as RepeaterNodeDefaults,DP as ResponsiveTraitDefaults,jg as SITES_PREVIEW_GET_PAGE_ERROR_SANDBOX,Xg as SITES_PREVIEW_GET_PAGE_ERROR_SNAPSHOT,VV as SitesRuntime,UP as SlotNodeDefaults,te as SmartAnimateType,Dp as SnapshotContext,rN as SnapshotWebsiteProvider,Cd as SourceCodeTraitsDefaults,kP as SvgNodeDefaults,PP as TextDecoration,zP as TextNodeDefaults,Eo as TransitionOverrideProp,MP as TypePropertiesTraitDefaults,jP as WebpageNodeDefaults,pf as WebsiteSettingsContext,by as WebsiteSettingsProvider,XP as WidgetNodeDefaults,Wl as XAlignment,Yl as YAlignment,RE as applyDefaultsToPrototype,ma as buildFontFace,_9 as createPropertySetters,oO as getFontWeight,jh as getImageProp,OZ as getMaterializedTreeForWebsite,Ry as getPropertySetterNameMap,po as guidToDOMId,Fu as isPaintGradient,iy as makeFramerMotionDefinition,vd as parseBundle,wU as parseFontWeightFromStyleName,TS as parseNode,mq as parseSchemaData,Py as resetCSS,KE as solidColor}; 10747/*! 10748 Copyright (c) 2018 Jed Watson. 10749 Licensed under the MIT License (MIT), see 10750 http://jedwatson.github.io/classnames 10751*/ 10752/*! 10753 * Bowser - a browser detector 10754 * https://github.com/ded/bowser 10755 * MIT License | (c) Dustin Diaz 2015 10756 */ 10757/** 10758 * @license React 10759 * react-dom.production.min.js 10760 * 10761 * Copyright (c) Facebook, Inc. and its affiliates. 10762 * 10763 * This source code is licensed under the MIT license found in the 10764 * LICENSE file in the root directory of this source tree. 10765 */ 10766/** 10767 * @license React 10768 * react-jsx-dev-runtime.production.min.js 10769 * 10770 * Copyright (c) Facebook, Inc. and its affiliates. 10771 * 10772 * This source code is licensed under the MIT license found in the 10773 * LICENSE file in the root directory of this source tree. 10774 */ 10775/** 10776 * @license React 10777 * react-jsx-runtime.production.min.js 10778 * 10779 * Copyright (c) Facebook, Inc. and its affiliates. 10780 * 10781 * This source code is licensed under the MIT license found in the 10782 * LICENSE file in the root directory of this source tree. 10783 */ 10784/** 10785 * @license React 10786 * react.production.min.js 10787 * 10788 * Copyright (c) Facebook, Inc. and its affiliates. 10789 * 10790 * This source code is licensed under the MIT license found in the 10791 * LICENSE file in the root directory of this source tree. 10792 */ 10793/** 10794 * @license React 10795 * scheduler.production.min.js 10796 * 10797 * Copyright (c) Facebook, Inc. and its affiliates. 10798 * 10799 * This source code is licensed under the MIT license found in the 10800 * LICENSE file in the root directory of this source tree. 10801 */ 10802/** 10803 * @license react-fast-marquee 10804 * 10805 * Adapted from https://github.com/justin-chu/react-fast-marquee/blob/master/src/components/Marquee.tsx 10806 * Copyright (c) 2020 justin-chu 10807 * MIT License 10808 */ 10809/** 10810 * Subset of the Tailwind Preflight CSS styles applied in Sites only, but not in 10811 * Make, as not all Sites will use Tailwind via Code Layers. 10812 * 10813 * TODO(@akern): Further align this so it is an exact subset of the Tailwind 10814 * Preflight CSS, because it isn't yet, and until it is, code layer styles may 10815 * not be applied correctly. 10816 * 10817 * @license Tailwind 10818 * https://github.com/tailwindlabs/tailwindcss/blob/v3.4.17/src/css/preflight.css 10819 * 10820 * Copyright (c) Tailwind Labs, Inc. 10821 * 10822 * Some of the source code in this file comes from the TailwindCSS project, which is licnesed under the MIT license 10823 * https://github.com/tailwindlabs/tailwindcss/blob/main/LICENSE 10824 */ 10825 10826// #version: 30b8551d9e0cf9181f8cd442e94c3f67e51fd53b
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.