PageSourceSearch

https://eeai.com/_next/static/chunks/9629-566646b067a6be51.js

js eeai.com collected 2026-10-09 22:55:06 UTC 256,017 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9629],{3468:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(12115),i=n(95155);function o(e,t=[]){let n=[],s=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return s.scopeName=e,[function(t,o){let s=r.createContext(o);s.displayName=t+"Context";let a=n.length;n=[...n,o];let l=t=>{let{scope:n,children:o,...l}=t,u=n?.[e]?.[a]||s,d=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:d,children:o})};return l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e]?.[a]||s,u=r.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(s,...t)]}},4129:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(12115),i=globalThis?.document?r.useLayoutEffect:()=>{}},4926:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(95155);let i=({internalDocToHref:e})=>({autolink:({node:e,nodesToJSX:t})=>{let n=t({nodes:e.children}),i=e.fields.newTab?"noopener noreferrer":void 0,o=e.fields.newTab?"_blank":void 0;return(0,r.jsx)("a",{href:e.fields.url,rel:i,target:o,children:n})},link:({node:t,nodesToJSX:n})=>{let i=n({nodes:t.children}),o=t.fields.newTab?"noopener noreferrer":void 0,s=t.fields.newTab?"_blank":void 0,a=t.fields.url??"";return"internal"===t.fields.linkType&&(e?a=e({linkNode:t}):(console.error("Lexical => JSX converter: Link converter: found internal link, but internalDocToHref is not provided"),a="#")),(0,r.jsx)("a",{href:a,rel:o,target:s,children:i})}})},5917:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},6500:(e,t,n)=>{n.d(t,{l:()=>r});let r=e=>e},8453:(e,t,n)=>{n.d(t,{v:()=>i});var r=n(16105);class i{constructor(){this.subscriptions=[]}add(e){return(0,r.Kq)(this.subscriptions,e),()=>(0,r.Ai)(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},9150:(e,t,n)=>{n.d(t,{a:()=>r});let r=e=>Math.round(1e5*e)/1e5},10489:(e,t,n)=>{n.d(t,{b:()=>a});var r=n(12115),i=n(97602),o=n(95155),s=r.forwardRef((e,t)=>(0,o.jsx)(i.sG.label,{...e,ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null==(n=e.onMouseDown)||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));s.displayName="Label";var a=s},12108:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},16105:(e,t,n)=>{function r(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}n.d(t,{Ai:()=>i,Kq:()=>r})},16706:(e,t,n)=>{n.d(t,{G:()=>d});var r=n(40042),i=n(6500),o=n(23656),s=n(78041),a=n(91225),l=n(48895),u=n(45130);function d(e,t,{clamp:n=!0,ease:c,mixer:h}={}){let f=e.length;if((0,s.V)(f===t.length,"Both input and output ranges must be the same length","range-length"),1===f)return()=>t[0];if(2===f&&t[0]===t[1])return()=>t[1];let p=e[0]===e[1];e[0]>e[f-1]&&(e=[...e].reverse(),t=[...t].reverse());let m=function(e,t,n){let s=[],a=n||r.W.mix||u.j,l=e.length-1;for(let n=0;n<l;n++){let r=a(e[n],e[n+1]);if(t){let e=Array.isArray(t)?t[n]||i.l:t;r=(0,o.F)(e,r)}s.push(r)}return s}(t,c,h),v=m.length,y=n=>{if(p&&n<e[0])return t[0];let r=0;if(v>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=(0,a.q)(e[r],e[r+1],n);return m[r](i)};return n?t=>y((0,l.q)(e[0],e[f-1],t)):y}},16815:(e,t,n)=>{n.d(t,{G:()=>r});let r=e=>t=>1-e(1-t)},18955:(e,t,n)=>{n.d(t,{c:()=>o});var r=n(51567);function i(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let o=i(0,r.c3);i(0,r.kc)},21391:(e,t,n)=>{n.d(t,{j4:()=>i,pG:()=>s,rm:()=>l});let r=e=>t=>"string"==typeof t&&t.startsWith(e),i=r("--"),o=r("var(--"),s=e=>!!o(e)&&a.test(e.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function l(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}}
1,22039:(e,t,n)=>{n.d(t,{OQ:()=>u,bt:()=>a});var r=n(8453),i=n(45242),o=n(27424),s=n(73934);let a={current:void 0};class l{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=o.k.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=o.k.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new r.v);let n=this.events[e].add(t);return"change"===e?()=>{n(),s.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=o.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,i.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(e,t){return new l(e,t)}},22544:(e,t,n)=>{n.d(t,{Op:()=>_,mN:()=>eg,xI:()=>j,xW:()=>F});var r=n(12115),i=e=>e instanceof Date,o=e=>null==e;let s=e=>"object"==typeof e;var a=e=>!o(e)&&!Array.isArray(e)&&s(e)&&!i(e),l=e=>a(e)&&e.target?"checkbox"===e.target.type?e.target.checked:e.target.value:e,u=(e,t)=>t.split(".").some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join("."))),d=e=>{let t=e.constructor&&e.constructor.prototype;return a(t)&&t.hasOwnProperty("isPrototypeOf")},c="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(e){if(e instanceof Date)return new Date(e);let t="undefined"!=typeof FileList&&e instanceof FileList;if(c&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(a(e)&&d(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=h(e[t]));return r}let f={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},p={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},m={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},v="root",y=["__proto__","constructor","prototype"],g=/^\w*$/;var x=e=>g.test(e),w=e=>void 0===e;let b=/[.[\]'"]/;var S=e=>e.split(b).filter(Boolean),E=(e,t,n)=>{if(!t||!a(e))return n;let r=x(t)?[t]:S(t);if(r.some(e=>y.includes(e)))return n;let i=r.reduce((e,t)=>o(e)?void 0:e[t],e);return w(i)||i===e?w(e[t])?n:e[t]:i},A=e=>
1"function"==typeof e,T=(e,t,n)=>{let r=-1,i=x(t)?[t]:S(t),o=i.length,s=o-1;for(;++r<o;){let t=i[r],o=n;if(r!==s){let n=e[t];o=a(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(y.includes(t))return;e[t]=o,e=e[t]}};let k=r.createContext(null);k.displayName="HookFormControlContext";let C=()=>r.useContext(k);var P=(e,t,n,r=!0)=>{let i={};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==p.all&&(t._proxyFormState[o]=!r||p.all),n&&(n[o]=!0),e[o])});return i};let R=c?r.useLayoutEffect:r.useEffect;var V=e=>"string"==typeof e,M=(e,t,n,r,i)=>V(e)?(r&&t.watch.add(e),E(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),E(n,e))):(r&&(t.watchAll=!0),n),D=e=>o(e)||!s(e);let L=(e,t)=>0===t.length&&!Array.isArray(e)&&!d(e);function I(e,t,n=new WeakMap){if(e===t)return!0;if(D(e)||D(t))return Object.is(e,t);if(i(e)&&i(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(L(e,r)||L(t,o))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let s=n.get(e);if(s&&s.has(t))return!0;if(s)s.add(t);else{let r=new WeakSet;r.add(t),n.set(e,r)}for(let o of r){let r=e[o];if(!(o in t))return!1;if("ref"!==o){let e=t[o];if(i(r)&&i(e)||(a(r)||Array.isArray(r))&&(a(e)||Array.isArray(e))?!I(r,e,n):!Object.is(r,e))return!1}}return!0}let j=e=>e.render(function(e){let t=C(),{name:n,disabled:i,control:o=t,shouldUnregister:s,defaultValue:a,exact:d=!0}=e,c=u(o._names.array,n),p=r.useMemo(()=>E(o._formValues,n,E(o._defaultValues,n,a)),[o,n,a]),m=function(e){let t=C(),{control:n=t,name:i,defaultValue:o,disabled:s,exact:a,compute:l}=e||{},u=r.useRef(o),d=r.useRef(l),c=r.useRef(void 0),h=r.useRef(n),f=r.useRef(i);d.current=l;let[p,m]=r.useState(()=>{let e=n._getWatch(i,u.current);return d.current?d.current(e):e}),v=r.useCallback(e=>{let t=M(i,n._names,e||n._formValues,!1,u.current);return d.current?d.current(t):t},[n._formValues,n._names,i]),y=r.useCallback(e=>{if(!s){let t=M(i,n._names,e||n._formValues,!1,u.current);if(d.current){let e=d.current(t);I(e,c.current)||(m(e),c.current=e)}else m(t)}},[n._formValues,n._names,s,i]);R(()=>(h.current===n&&I(f.current,i)||(h.current=n,f.current=i,y()),n._subscribe({name:i,formState:{values:!0},exact:a,callback:e=>{y(e.values)}})),[n,a,i,y]),r.useEffect(()=>n._removeUnmounted());let g=h.current!==n,x=f.current,w=r.useMemo(()=>{if(s)return null;let e=!g&&!I(x,i);return g||e?v():null},[s,g,i,x,v]);return null!==w?w:p}({control:o,name:n,defaultValue:p,exact:d}),v=function(e){let t=C(),{control:n=t,disabled:i,name:o,exact:s}=e||{},[a,l]=r.useState(()=>({...n._formState,defaultValues:n._defaultValues})),u=r.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return R(()=>n._subscribe({name:o,formState:u.current,exact:s,callback:e=>{i||l({...n._formState,...e,defaultValues:n._defaultValues})}}),[o,i,s]),r.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),r.useMemo(()=>P(a,n,u.current,!1),[a,n])}({control:o,name:n,exact:d}),y=r.useRef(e),g=r.useRef(null),x=r.useRef(o.register(n,{...e.rules,value:m,..."boolean"==typeof e.disabled?{disabled:e.disabled}:{}}));y.current=e;let b=r.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!E(v.errors,n)},isDirty:{enumerable:!0,get:()=>!!E(v.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!E(v.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!E(v.validatingFields,n)},error:{enumerable:!0,get:()=>E(v.errors,n)}}),[v,n]),S=r.useCallback(e=>{let t=l(e);return E(o._fields,n)||(x.current=o.register(n,{...y.current.rules,value:t})),x.current.onChange({target:{value:l(e),name:n},type:f.CHANGE})},[n,o]),k=r.useCallback(()=>x.current.onBlur({target:{value:E(o._formValues,n),name:n},type:f.BLUR}),[n,o._formValues]),V=r.useCallback(e=>{e&&(g.current={focus:()=>A(e.focus)&&e.focus(),select:()=>A(e.select)&&e.select(),setCustomValidity:t=>A(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>A(e.reportValidity)&&e.reportValidity()});let t=E(o._fields,n);t&&t._f&&e&&(t._f.ref=g.current)},[o._fields,n]),D=r.useMemo(()=>({name:n,value:m,..."boolean"==typeof i||v.disabled?{disabled:v.disabled||i}:{},onChange:S,onBlur:k,ref:V}),[n,i,v.disabled,S,k,V,m]);return r.useEffect(()=>{let e=o._options.shouldUnregister||s;o.register(n,{...y.current.rules,..."boolean"==typeof y.current.disabled?{disabled:y.current.disabled}:{}});let t=(e,t)=>{let n=E(o._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=h(E(s?o._defaultValues:o._options.values||o._defaultValues,n,E(o._options.defaultValues,n,y.current.defaultValue)));T(o._defaultValues,n,e),w(E(o._formValues,n))&&T(o._formValues,n,e)}if(c||o.register(n),g.current){let e=E(o._fields,n);e&&e._f&&(e._f.ref=g.current)}return()=>{(c?e&&!o._state.action:e)?o.unregister(n):t(n,!1)}},[n,o,c,s]),r.useEffect(()=>{o._setDisabledField({disabled:i,name:n})}
1,[i,n,o]),r.useMemo(()=>({field:D,formState:v,fieldState:b}),[D,v,b])}(e)),O=e=>{let t={};for(let n of Object.keys(e))if(s(e[n])&&null!==e[n]&&!i(e[n])){let r=O(e[n]);for(let e of Object.keys(r))t[`${n}.${e}`]=r[e]}else t[n]=e[n];return t},N=r.createContext(null);N.displayName="HookFormContext";let F=()=>r.useContext(N),_=({children:e,watch:t,getValues:n,getFieldState:i,setError:o,clearErrors:s,setValue:a,setValues:l,trigger:u,formState:d,resetField:c,reset:h,handleSubmit:f,unregister:p,control:m,register:v,setFocus:y,subscribe:g})=>{let x=r.useMemo(()=>({watch:t,getValues:n,getFieldState:i,setError:o,clearErrors:s,setValue:a,setValues:l,trigger:u,formState:d,resetField:c,reset:h,handleSubmit:f,unregister:p,control:m,register:v,setFocus:y,subscribe:g}),[s,m,d,i,n,f,v,h,c,o,y,a,l,g,u,p,t]);return r.createElement(N.Provider,{value:x},r.createElement(k.Provider,{value:x.control},e))};var B=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},U=e=>Array.isArray(e)?e.filter(Boolean):[],W=e=>Array.isArray(e)?e:[e],G=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},H=e=>a(e)&&!Object.keys(e).length,z=e=>{if(!c)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},$=e=>z(e)&&e.isConnected;function K(e,t){if(V(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:x(t)?[t]:S(t);if(n.some(e=>y.includes(String(e))))return e;let r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r<n;){if(o(e)){e=void 0;break}e=e[t[r]],r++}return e}(e,n),i=n.length-1,s=n[i];return r&&delete r[s],0!==i&&(a(r)&&H(r)||Array.isArray(r)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!w(e[t]))return!1;return!0}(r))&&K(e,n.slice(0,-1)),e}function X(e){return Array.isArray(e)||a(e)&&!(e=>{for(let t in e)if(A(e[t]))return!0;return!1})(e)}function q(e,t={}){for(let n in e){let r=e[n];X(r)?(t[n]=Array.isArray(r)?[]:{},q(r,t[n])):w(r)||(t[n]=!0)}return t}function Y(e,t,n){for(let r in n||(n=q(t)),e){let i=e[r];if(X(i))w(t)||D(n[r])?n[r]=q(i,Array.isArray(i)?[]:{}):Y(i,o(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!I(i,e)}}return function e(t){if(!1!==t){if(!0===t)return!0;if(Array.isArray(t)){let n=t.map(t=>e(t));return n.some(e=>void 0!==e)?n:void 0}if(a(t)){let n={};for(let r in t){let i=e(t[r]);w(i)||(n[r]=i)}return Object.keys(n).length?n:void 0}}}(n)||{}}let Z={value:!1,isValid:!1},J={value:!0,isValid:!0};var Q=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!w(e[0].attributes.value)?w(e[0].value)||""===e[0].value?J:{value:e[0].value,isValid:!0}:J:Z}return Z},ee=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>w(e)?e:t?""===e?NaN:e?+e:e:n&&V(e)?new Date(e):r?r(e):e;let et={isValid:!1,value:null};var en=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,et):et;function er(e){let t=e.ref;return"file"===t.type?t.files:"radio"===t.type?en(e.refs).value:"select-multiple"===t.type?[...t.selectedOptions].map(({value:e})=>e):"checkbox"===t.type?Q(e.refs).value:ee(w(t.value)?e.ref.value:t.value,e)}var ei=e=>w(e)?e:e instanceof RegExp?e.source:a(e)?e.value instanceof RegExp?e.value.source:e.value:e,eo=e=>({isOnSubmit:!e||e===p.onSubmit,isOnBlur:e===p.onBlur,isOnChange:e===p.onChange,isOnAll:e===p.all,isOnTouch:e===p.onTouched});let es="AsyncFunction";var ea=e=>{if(!e||!e.validate)return!1;if(A(e.validate))return e.validate.constructor.name===es;if(a(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===es)return!0}return!1},el=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let n of t.watch)if(e.startsWith(n)&&"."===e.charAt(n.length))return!0;return!1};let eu=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=E(e,i);if(n){let{_f:e,...o}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r)return!0;else if(e.ref&&t(e.ref,e.name)&&!r)return!0;else if(eu(o,t))break}else if(a(o)&&eu(o,t))break}}};function ed(e,t,n){let r=E(e,n);if(r||x(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=E(t,r),s=E(e,r);if(o&&!Array.isArray(o)&&n!==r)break;
1if(s&&s.type)return{name:r,error:s};if(s&&s.root&&s.root.type)return{name:`${r}.root`,error:s.root};i.pop()}return{name:n}}var ec=(e,t,n)=>{let r=E(e,n),i=Array.isArray(r)?r:[];return T(i,v,t[n]),T(e,n,i),e};function eh(e,t,n="validate"){if(V(e)||Array.isArray(e)&&e.every(V)||"boolean"==typeof e&&!e)return{type:n,message:V(e)?e:"",ref:t}}var ef=e=>!a(e)||e instanceof RegExp?{value:e,message:""}:e,ep=async(e,t,n,r,i,s)=>{let{ref:l,refs:u,required:d,maxLength:c,minLength:h,min:f,max:p,pattern:v,validate:y,name:g,valueAsNumber:x,mount:b}=e._f,S=E(n,g);if(!b||t.has(g))return{};let T=u?u[0]:l,k=e=>{if(i&&T.reportValidity){let t="boolean"==typeof e?"":e||"";u?u.forEach(e=>e.setCustomValidity(t)):T.setCustomValidity(t),T.reportValidity()}},C={},P="radio"===l.type,R="checkbox"===l.type,M=(x||"file"===l.type)&&w(l.value)&&w(S)||z(l)&&""===l.value||""===S||Array.isArray(S)&&!S.length,D=B.bind(null,g,r,C),L=(e,t,n,r=m.maxLength,i=m.minLength)=>{let o=e?t:n;C[g]={type:e?r:i,message:o,ref:l,...D(e?r:i,o)}};if(s?!Array.isArray(S)||!S.length:d&&(!(P||R)&&(M||o(S))||"boolean"==typeof S&&!S||R&&!Q(u).isValid||P&&!en(u).isValid)){let{value:e,message:t}=V(d)?{value:!!d,message:d}:ef(d);if(e&&(C[g]={type:m.required,message:t,ref:T,...D(m.required,t)},!r))return k(t),C}if(!M&&(!o(f)||!o(p))){let e,t,n=ef(p),i=ef(f);if(o(S)||isNaN(S)){let r=l.valueAsDate||new Date(S),o=e=>new Date(new Date().toDateString()+" "+e),s="time"==l.type,a="week"==l.type;V(n.value)&&S&&(e=s?o(S)>o(n.value):a?S>n.value:r>new Date(n.value)),V(i.value)&&S&&(t=s?o(S)<o(i.value):a?S<i.value:r<new Date(i.value))}else{let r=l.valueAsNumber||(S?+S:S);o(n.value)||(e=r>n.value),o(i.value)||(t=r<i.value)}if((e||t)&&(L(!!e,n.message,i.message,m.max,m.min),!r))return k(C[g].message),C}if((c||h)&&!M&&(V(S)||s&&Array.isArray(S))){let e=ef(c),t=ef(h),n=!o(e.value)&&S.length>+e.value,i=!o(t.value)&&S.length<+t.value;if((n||i)&&(L(n,e.message,t.message),!r))return k(C[g].message),C}if(v&&!M&&V(S)){let{value:e,message:t}=ef(v);if(e instanceof RegExp&&!S.match(e)&&(C[g]={type:m.pattern,message:t,ref:l,...D(m.pattern,t)},!r))return k(t),C}if(y){if(A(y)){let e=eh(await y(S,n),T);if(e&&(C[g]={...e,...D(m.validate,e.message)},!r))return k(e.message),C}else if(a(y)){let e={};for(let t in y){if(!H(e)&&!r)break;let i=eh(await y[t](S,n),T,t);i&&(e={...i,...D(t,i.message)},k(i.message),r&&(C[g]=e))}if(!H(e)&&(C[g]={ref:T,...e},!r))return C}}return k(!0),C};let em={mode:p.onSubmit,reValidateMode:p.onChange,shouldFocusError:!0},ev="form",ey={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function eg(e={}){let t=r.useRef(void 0),n=r.useRef(void 0),s=r.useRef(e.formControl),[d,y]=r.useState(()=>({...h(ey),isLoading:A(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:A(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&s.current!==e.formControl)if(s.current=e.formControl,e.formControl)t.current={...e.formControl,formState:d},e.defaultValues&&!A(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...r}=function(e={}){let t,n={...em,...e},r={...h(ey),isLoading:A(n.defaultValues),errors:n.errors||{},disabled:n.disabled||!1},s={},d=(a(n.defaultValues)||a(n.values))&&h(n.defaultValues||n.values)||{},y=n.shouldUnregister?{}:h(d),g={action:!1,mount:!1,watch:!1,keepIsValid:!1},b={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},k=0,C=0,P=eo(n.mode),R=eo(n.reValidateMode),D={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},L={...D},j={...L},N={array:G(),state:G()},F=n.criteriaMode===p.all,_=async e=>{if(!g.keepIsValid&&!n.disabled&&(L.isValid||j.isValid||e)){let e;n.resolver?(e=H((await J()).errors),B()):e=await en({fields:s,onlyCheckValid:!0,eventType:f.VALID}),e!==r.isValid&&N.state.next({isValid:e})}},B=(e,t)=>{!n.disabled&&(L.isValidating||L.validatingFields||j.isValidating||j.validatingFields)&&((e||Array.from(b.mount)).forEac
1h(e=>{e&&(t?T(r.validatingFields,e,t):K(r.validatingFields,e))}),N.state.next({validatingFields:r.validatingFields,isValidating:!H(r.validatingFields)}))},X=()=>{r.dirtyFields=Y(d,y)},q=(t,n,i,a)=>{let l=E(s,t);if(l){if((e=>{let t=x(e)?[e]:S(e),n=y,r=d;for(let e=0;e<t.length-1;e++){let i=t[e];if(n=o(n)?n:n[i],r=o(r)?r:r[i],null===n&&null!==r)return!0}return!1})(t))return;let s=w(E(y,t)),u=E(y,t,w(i)?E(d,t):i);w(u)||a&&a.defaultChecked||n?T(y,t,n?u:er(l._f)):ef(t,u),g.mount&&!g.action&&(_(),s&&r.isDirty&&(L.isDirty||j.isDirty)&&(es()||(r.isDirty=!1,N.state.next({...r}))),e.shouldUnregister&&s&&!w(E(y,t))&&el(t,b)&&(g.watch=!0))}},Z=(e,t,i,o,s)=>{let a=!1,l=!1,u={name:e};if(!n.disabled){if(!i||o){let n=I(E(d,e),t);(L.isDirty||j.isDirty)&&(l=r.isDirty,r.isDirty=u.isDirty=!n||es(),a=l!==u.isDirty),l=!!E(r.dirtyFields,e),n!==r.isDirty?r.dirtyFields=Y(d,y):n?K(r.dirtyFields,e):T(r.dirtyFields,e,!0),u.dirtyFields=r.dirtyFields,a=a||(L.dirtyFields||j.dirtyFields)&&!n!==l}if(i){let t=E(r.touchedFields,e);t||(T(r.touchedFields,e,i),u.touchedFields=r.touchedFields,a=a||(L.touchedFields||j.touchedFields)&&t!==i)}a&&s&&N.state.next(u)}return a?u:{}},J=async e=>(B(e,!0),await n.resolver(y,n.context,((e,t,n,r)=>{let i={};for(let n of e){let e=E(t,n);e&&T(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}})(e||b.mount,s,n.criteriaMode,n.shouldUseNativeValidation))),Q=async e=>{let{errors:t}=await J(e);if(B(e),e){for(let n of e){let e=E(t,n);e?b.array.has(n)&&a(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?ec(r.errors,{[n]:e},n):T(r.errors,n,e):K(r.errors,n)}r.errors={...r.errors}}else r.errors=t;return t},et=async({name:t,eventType:n})=>{if(e.validate){let i=await e.validate({formValues:y,formState:r,name:t,eventType:n});if(a(i))for(let e in i){let t=i[e];t&&ek(`${ev}.${e}`,{message:V(t.message)?t.message:"",type:t.type||m.validate})}else V(i)||!i?ek(ev,{message:i||"",type:m.validate}):eT(ev);return i}return!0},en=async({fields:t,onlyCheckValid:i,name:o,eventType:s,context:a={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(a.runRootValidation=!0,!await et({name:o,eventType:s}))&&(a.valid=!1,i))return a.valid;for(let o in t){let l=t[o];if(l){let{_f:t,...u}=l;if(t){let o=b.array.has(t.name),s=l._f&&ea(l._f),u=L.validatingFields||L.isValidating||j.validatingFields||j.isValidating;s&&u&&B([t.name],!0);let d=await ep(l,b.disabled,y,F,n.shouldUseNativeValidation&&!i,o);if(s&&u&&B([t.name]),d[t.name]&&(a.valid=!1,i)||(i||(E(d,t.name)?o?ec(r.errors,d,t.name):T(r.errors,t.name,d[t.name]):K(r.errors,t.name)),e.shouldUseNativeValidation&&d[t.name]))break}H(u)||await en({context:a,onlyCheckValid:i,fields:u,name:o,eventType:s})}}return a.valid},es=(e,t)=>!n.disabled&&(e&&t&&T(y,e,t),!I(g.mount?y:d,d)),eh=(e,t,n)=>M(e,b,{...g.mount?y:w(t)?d:V(e)?{[e]:t}:t},n,t),ef=(e,t,n={},r=!1,i=!1)=>{let a=E(s,e),l=t;if(a){let n=a._f;n&&(n.disabled||T(y,e,ee(t,n)),l=z(n.ref)&&o(t)?"":t,"select-multiple"===n.ref.type?[...n.ref.options].forEach(e=>e.selected=l.includes(e.value)):n.refs?"checkbox"===n.ref.type?n.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(l)?e.checked=!!l.find(t=>t===e.value):e.checked=l===e.value||!!l)}):n.refs.forEach(e=>e.checked=e.value===l):"file"===n.ref.type?n.ref.value="":(n.ref.value=l,n.ref.type||i||N.state.next({name:e,values:r?y:h(y)})))}(n.shouldDirty||n.shouldTouch)&&Z(e,l,n.shouldTouch,n.shouldDirty,!i),n.shouldValidate&&eE(e)},eg=(e,t,n,r=!1,o=!1)=>{for(let l in t){if(!t.hasOwnProperty(l))return;let u=t[l],d=e+"."+l,c=E(s,d);(b.array.has(e)||a(u)||c&&!c._f)&&!i(u)?eg(d,u,n,r,o):ef(d,u,n,r,o)}},ex=(e,t,n,i,a=!1)=>{let l=E(s,e),u=b.array.has(e),d=i?t:h(t),c=I(E(y,e),d);if(c||T(y,e,d),u)N.array.next({name:e,values:i?y:h(y)}),(L.isDirty||L.dirtyFields||j.isDirty||j.dirtyFields)&&n.shouldDirty&&(X(),a||N.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:es(e,d)}));else{let t=Array.isArray(d)&&!d.length||H(d);!l||l._f||o(d)||t?ef(e,d,n,i,a):eg(e,d,n,i,a)}if(!c&&!a){let t=el(e,b),n=i?y:h(y);N.state.next({...t&&r,name:g.mount||t?e:void 0,values:n})}},ew=(e,t,n={})=>ex(e,t,n,!1),eb=async o=>{g.mount=!0;let a=o.target,u=a.name,d=!0,c=E(s,u),p=e=>{d=Number.isNaN(e)||i(e)&&isNaN(e.getTime())||I(e,E(y,u,e))};if(c){let i,g,D,O=a.type?er(c._f):l(o),U=o.type===f.BLUR||o.type===f.FOCUS_OUT,W=!((D=c._f).mount&&(D.required||D.min||D.max||D.maxLength||D.minLength||D.pattern||D.validate))&&!e.validate&&!n.resolver&&!E(r.errors,u)&&!c._f.deps,G=W||(m=U,v=E(r.touchedFields,u),x=r.isSubmitted,w=R,!(S=P).isOnAll&&(!x&&S.isOnTouch?!(v||m):(x?w.isOnBlur:S.isOnBlur)?!m:(x?!w.isOnChange:!S.isOnChange)||m)),z=el(u,b,U);T(y,u,O),U?a&&a.readOnly||(c._f.onBlur&&c._f.onBlur(o),t&&t(0)):c._f.onChange&&c._f.onChange(o);let $=Z(u,O,U),X=!H($)||z;if(U||N.state.next({name:u,type:o.type,...C?{values:h(y)}:{}}),G)return(!W||!r.isValid)&&(L.isValid||j.isValid)&&("onBlur"===n.mode?U&&_():U||_()),X&&N.state.next({name:u,...z?{}:$});if(!n.resolver&&e.validate&&await et({name:u,eventType:o.type}),!U&&z&&N.state.next({...r}),n.resolver){let{errors:e}=await J([u]);
1if(B([u]),p(O),!d){H($)||N.state.next($);return}let t=ed(r.errors,s,u),n=ed(e,s,t.name||u);i=n.error,u=n.name,g=H(e)}else B([u],!0),i=(await ep(c,b.disabled,y,F,n.shouldUseNativeValidation))[u],B([u]),p(O),d&&(i?g=!1:(L.isValid||j.isValid)&&(g=await en({fields:s,onlyCheckValid:!0,name:u,eventType:o.type})));if(d){c._f.deps&&(!Array.isArray(c._f.deps)||c._f.deps.length>0)&&eE(c._f.deps);var m,v,x,w,S,A=u,V=g,M=i;let e=E(r.errors,A),o=(L.isValid||j.isValid)&&"boolean"==typeof V&&r.isValid!==V;if(n.delayError&&M){let e;e=()=>{T(r.errors,A,M),r.errors={...r.errors},N.state.next({errors:r.errors})},(t=t=>{clearTimeout(k),k=setTimeout(e,t)})(n.delayError)}else clearTimeout(k),t=null,M?T(r.errors,A,M):K(r.errors,A),r.errors={...r.errors};if((M?!I(e,M):e)||!H($)||o){let e={...$,...o&&"boolean"==typeof V?{isValid:V}:{},errors:r.errors,name:A};r={...r,...e},N.state.next(e)}}}},eS=(e,t)=>{if(E(r.errors,t)&&e.focus)return e.focus(),1},eE=async(e,t={})=>{let i,o,a=W(e);if(n.resolver){let t=await Q(w(e)?e:a);i=H(t),o=e?!a.some(e=>E(t,e)):i}else e?((o=(await Promise.all(a.map(async e=>{let t=E(s,e);return await en({fields:t&&t._f?{[e]:t}:t,eventType:f.TRIGGER})}))).every(Boolean))||r.isValid)&&_():o=i=await en({fields:s,name:e,eventType:f.TRIGGER});return N.state.next({...!V(e)||(L.isValid||j.isValid)&&i!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:i}:{},errors:r.errors}),t.shouldFocus&&!o&&eu(s,eS,e?a:b.mount),o},eA=(e,t)=>({invalid:!!E((t||r).errors,e),isDirty:!!E((t||r).dirtyFields,e),error:E((t||r).errors,e),isValidating:!!E(r.validatingFields,e),isTouched:!!E((t||r).touchedFields,e)}),eT=e=>{let t=e?W(e):void 0;null==t||t.forEach(e=>K(r.errors,e)),t?t.forEach(e=>{N.state.next({name:e,errors:r.errors})}):N.state.next({errors:{}})},ek=(e,t,n)=>{let i=(E(s,e,{_f:{}})._f||{}).ref,{ref:o,message:a,type:l,...u}=E(r.errors,e)||{};T(r.errors,e,{...u,...t,ref:i}),N.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},eC=e=>{var t;let n=!!(null==(t=e.formState)?void 0:t.values);n&&C++;let{unsubscribe:i}=N.state.subscribe({next:t=>{let n,i,o;if(n=e.name,i=t.name,o=e.exact,(!n||!i||n===i||W(n).some(e=>e&&(o?e===i||e.startsWith(i+"."):e.startsWith(i)||i.startsWith(e))))&&((e,t,n,r)=>{n(e);let{name:i,...o}=e,s=Object.keys(o);return!s.length||r&&s.length>=Object.keys(t).length||s.find(e=>t[e]===(!r||p.all))})(t,e.formState||L,ej,e.reRenderRoot)){let n={...y};e.callback({values:n,...r,...t,defaultValues:d})}}});if(!n)return i;let o=!1;return()=>{o||(o=!0,C--,i())}},eP=(e,t={})=>{for(let i of e?W(e):b.mount)b.mount.delete(i),b.array.delete(i),t.keepValue||(K(s,i),K(y,i)),t.keepError||K(r.errors,i),t.keepDirty||K(r.dirtyFields,i),t.keepTouched||K(r.touchedFields,i),t.keepIsValidating||K(r.validatingFields,i),n.shouldUnregister||t.keepDefaultValue||K(d,i);N.state.next({values:h(y)}),N.state.next({...r,...!t.keepDirty?{}:{isDirty:es()}}),t.keepIsValid||_()},eR=({disabled:e,name:t})=>{if("boolean"==typeof e&&g.mount||e||b.disabled.has(t)){let n=b.disabled.has(t);e?b.disabled.add(t):b.disabled.delete(t),!!e!==n&&g.mount&&!g.action&&_()}},eV=(e,t={})=>{let r=E(s,e),i="boolean"==typeof t.disabled||"boolean"==typeof n.disabled,o=!b.registerName.has(e)&&r&&r._f&&!r._f.mount;return(T(s,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),b.mount.add(e),r&&!o)?eR({disabled:"boolean"==typeof t.disabled?t.disabled:n.disabled,name:e}):q(e,!0,t.value),{...i?{disabled:t.disabled||n.disabled}:{},...n.progressive?{required:!!t.required,min:ei(t.min),max:ei(t.max),minLength:ei(t.minLength),maxLength:ei(t.maxLength),pattern:ei(t.pattern)}:{},name:e,onChange:eb,onBlur:eb,ref:i=>{if(i){let n;b.registerName.add(e),eV(e,t),b.registerName.delete(e),r=E(s,e);let o=w(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,a="radio"===(n=o).type||"checkbox"===n.type,l=r._f.refs||[];(a?l.find(e=>e===o):o===r._f.ref)||(T(s,e,{_f:{...r._f,...a?{refs:[...l.filter($),o,...Array.isArray(E(d,e))?[{}]:[]],ref:{type:o.type,name:e}}:{ref:o}}}),q(e,!1,void 0,o))}else(r=E(s,e,{}))._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&!(u(b.array,e)&&g.action)&&b.unMount.add(e)}}},eM=()=>n.shouldFocusError&&!n.shouldUseNativeValidation&&eu(s,eS,b.mount),eD=(e,t)=>async i=>{let o;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let a=h(y);if(N.state.next({isSubmitting:!0}),n.resolver){let{errors:e,values:t}=await J();B(),r.errors=e,a=h(t)}else await en({fields:s,eventType:f.SUBMIT});if(b.disabled.size)for(let e of b.disabled)K(a,e);if(K(r.errors,v),H(r.errors)){N.state.next({errors:{}});try{await e(a,i)}catch(e){o=e}}else t&&await t({...r.errors},i),eM(),setTimeout(eM);if(N.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:H(r.errors)&&!o,submitCount:r.submitCount+1,errors:r.errors}),o)throw o},eL=(e,t={})=>{let i=e?h(e):d,o=h(i),a=H(e);if(t.keepDefaultValues||(d=i),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...b.mount,...Object.keys(Y(d,y))]))){let t=E(r.dirtyFields,e),n=E(y,e),i=E(o,e);t&&!w(n)?T(o,e,n):t||w(i)||ew(e,i)}else{if(c&&w(e))for(let e of b.mount){let t=E(s,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(z(e)){let t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(let e of b.mount)ew(e,E(o,e));else s={}}if(n.shouldUnregister){if(y=t.keepDefaultValues?h(d):{},t.keepFieldsRef)for(let e of b.mount)T(y,e,E(o,e))}else y=h(o);N.array.next({values:{...o}}),N.state.next({name:void 0,type:void 0,values:{...o}})}b={mount:t.keepDirtyValues?b.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},g.mount=!L.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!n.shouldUnregister&&!H(o),g.watch=!!n.shouldUnregister,g.keepIsValid=!!t.keepIsValid,g.action=!1,t.keepErrors||(r.errors={}),N.state.next({submitCount:t.keepSubmitCount?r.submitCount:0,isDirty:!a&&(t.keepDirty?r.isDirty:t.keepValues?es():!!(t.keepDefaultValues&&!I(e,d))),isSubmitted:!!t.keepIsSubmitted&&r.isSubmitted,dirtyFields:a?{}:t.keepDirtyValues?t.keepDefaultValues&&y?Y(d,y):r.dirtyFields:t.keepDefaultValues&&e?Y(d,e):t.keepDirty?r.dirtyFields:{},touchedFields:t.keepTouched?r.touchedFields:{},errors:t.keepErrors?r.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1,defaultValues:d})},eI=(e,t)=>eL(A(e)?e(y):e,{...n.resetOptions,...t}),ej=e=>{let{name:t,type:n,values:i,...o}=e;r={...r,...o}},eO={control:{register:eV,unregister:eP,getFieldState:eA,handleSubmit:eD,setError:ek,_subscribe:eC,_runSchema:J,_updateIsValidating:B,_focusError:eM,_getWatch:eh,_getDirty:es,_setValid:_,_setFieldArray:(e,t=[],i,o,a=!0,l=!0)=>
1{if(o&&i&&!n.disabled){if(g.action=!0,l&&Array.isArray(E(s,e))){let t=i(E(s,e),o.argA,o.argB);a&&T(s,e,t)}if(l&&Array.isArray(E(r.errors,e))){let t,n=i(E(r.errors,e),o.argA,o.argB);a&&T(r.errors,e,n),U(E(t=r.errors,e)).length||K(t,e)}if((L.touchedFields||j.touchedFields)&&l&&Array.isArray(E(r.touchedFields,e))){let t=i(E(r.touchedFields,e),o.argA,o.argB);a&&T(r.touchedFields,e,t)}(L.dirtyFields||j.dirtyFields)&&X(),N.state.next({name:e,isDirty:es(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else T(y,e,t)},_setDisabledField:eR,_setErrors:e=>{r.errors=e,N.state.next({errors:r.errors,isValid:!1})},_getFieldArray:e=>U(E(g.mount?y:d,e,n.shouldUnregister?E(d,e,[]):[])),_reset:eL,_resetDefaultValues:()=>A(n.defaultValues)&&n.defaultValues().then(e=>{eI(e,n.resetOptions),N.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of b.unMount){let t=E(s,e);t&&(t._f.refs?t._f.refs.every(e=>!$(e)):!$(t._f.ref))&&eP(e)}b.unMount=new Set},_disableForm:e=>{"boolean"==typeof e&&(N.state.next({disabled:e}),eu(s,(t,n)=>{let r=E(s,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach(t=>{t.disabled=r._f.disabled||e}))},0,!1))},_subjects:N,_proxyFormState:L,get _fields(){return s},get _formValues(){return y},get _state(){return g},set _state(value){g=value},get _defaultValues(){return d},get _names(){return b},set _names(value){b=value},get _formState(){return r},get _options(){return n},set _options(value){P=eo((n={...n,...value}).mode),R=eo(n.reValidateMode)}},subscribe:e=>(g.mount=!0,j={...j,...e.formState},eC({...e,formState:{...D,...e.formState}})),trigger:eE,register:eV,handleSubmit:eD,watch:(e,t)=>{if(A(e)){C++;let{unsubscribe:n}=N.state.subscribe({next:n=>"values"in n&&e(n.values||eh(void 0,t),n)}),r=!1;return{unsubscribe:()=>{r||(r=!0,C--,n())}}}return eh(e,t,!0)},setValue:ew,setValues:(e,t={})=>{let n=A(e)?e(y):e;if(!I(y,n)){y={...y,...n};let e=O(n);for(let n of b.mount)n in e&&ex(n,e[n],t,!0,!0);N.state.next({...r,name:void 0,type:void 0,...C?{values:y}:{}}),t.shouldValidate&&_()}},getValues:(e,t)=>{let n={...g.mount?y:d};return t&&(n=function e(t,n){let r={};for(let i in t)if(t.hasOwnProperty(i)){let o=t[i],s=n[i];if(o&&a(o)&&s){let t=e(o,s);a(t)&&(r[i]=t)}else t[i]&&(r[i]=s)}return r}(t.dirtyFields?r.dirtyFields:r.touchedFields,n)),w(e)?n:V(e)?E(n,e):e.map(e=>E(n,e))},reset:eI,resetField:(e,t={})=>{E(s,e)&&(w(t.defaultValue)?ew(e,h(E(d,e))):(ew(e,t.defaultValue),T(d,e,h(t.defaultValue))),t.keepTouched||K(r.touchedFields,e),t.keepDirty||(K(r.dirtyFields,e),r.isDirty=t.defaultValue?es(e,h(E(d,e))):es()),!t.keepError&&(K(r.errors,e),L.isValid&&_()),N.state.next({...r}))},resetDefaultValues:(e,t={})=>{if(d=h(e),!t.keepDirty){let e=Y(d,y);r.dirtyFields=e,r.isDirty=!H(e)}t.keepIsValid||_(),N.state.next({...r,defaultValues:d})},clearErrors:eT,unregister:eP,setError:ek,setFocus:(e,t={})=>{let n=E(s,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&A(e.select)&&e.select()})}},getFieldState:eA};return{...eO,formControl:eO}}(e);t.current={...r,formState:d}}let g=t.current.control;return g._options=e,R(()=>{let e=g._subscribe({formState:g._proxyFormState,callback:()=>y({...g._formState,defaultValues:g._defaultValues}),reRenderRoot:!0});return y(e=>({...e,isReady:!0})),g._formState.isReady=!0,e},[g]),r.useEffect(()=>g._disableForm(e.disabled),[g,e.disabled]),r.useEffect(()=>{e.mode&&(g._options.mode=e.mode),e.reValidateMode&&(g._options.reValidateMode=e.reValidateMode)},[g,e.mode,e.reValidateMode]),r.useEffect(()=>{e.errors&&(g._setErrors(e.errors),g._focusError())},[g,e.errors]),r.useEffect(()=>{e.shouldUnregister&&g._subjects.state.next({values:g._getWatch()})},[g,e.shouldUnregister]),r.useEffect(()=>{if(g._proxyFormState.isDirty){let e=g._getDirty();e!==d.isDirty&&g._subjects.state.next({isDirty:e})}},[g,d.isDirty]),r.useEffect(()=>{var t;e.values&&!I(e.values,n.current)?(g._reset(e.values,{keepFieldsRef:!0,...g._options.resetOptions}),(null==(t=g._options.resetOptions)?void 0:t.keepIsValid)||g._setValid(),n.current=e.values,y(e=>({...e}))):g._resetDefaultValues()},[g,e.values]),r.useEffect(()=>{g._state.mount||(g._setValid(),g._state.mount=!0),g._state.watch&&(g._state.watch=!1,g._subjects.state.next({...g._formState})),g._removeUnmounted()}),t.current.formState=r.useMemo(()=>P(d,g),[g,d]),t.current}},23327:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},23558:(e,t,n)=>{n.d(t,{i:()=>a});var r,i=n(12115),o=n(4129),s=(r||(r=n.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.N;function a({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,a,l]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),a=i.useRef(t);return s(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),u=void 0!==e,d=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[d,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else a(t)},[u,e,a,l])]}Symbol("RADIX:SYNC_STATE")},23656:(e,t,n)=>{n.d(t,{F:()=>r});let r=(...e)=>e.reduce((e,t)=>
1n=>t(e(n)))},23919:(e,t,n)=>{n.d(t,{$:()=>o,q:()=>s});var r=n(24531);let i=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,o=(e,t)=>n=>!!("string"==typeof n&&i.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),s=(e,t,n)=>i=>{if("string"!=typeof i)return i;let[o,s,a,l]=i.match(r.S);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},24507:(e,t,n)=>{n.d(t,{s:()=>p});var r=n(95155),i=n(12115);let o={horizontalrule:(0,r.jsx)("hr",{})},s={linebreak:(0,r.jsx)("br",{})};var a=n(4926),l=n(49675);let u={IS_NORMAL:0,IS_TOKEN:1,IS_SEGMENTED:2,IS_BOLD:1,IS_ITALIC:2,IS_STRIKETHROUGH:4,IS_UNDERLINE:8,IS_CODE:16,IS_SUBSCRIPT:32,IS_SUPERSCRIPT:64,IS_HIGHLIGHT:128,IS_DIRECTIONLESS:1,IS_UNMERGEABLE:2,IS_ALIGN_LEFT:1,IS_ALIGN_CENTER:2,IS_ALIGN_RIGHT:3,IS_ALIGN_JUSTIFY:4,IS_ALIGN_START:5,IS_ALIGN_END:6};u.IS_BOLD,u.IS_ITALIC,u.IS_STRIKETHROUGH,u.IS_UNDERLINE,u.IS_CODE,u.IS_SUBSCRIPT,u.IS_SUPERSCRIPT,u.IS_HIGHLIGHT;let d="֑-߿יִ-﷽ﹰ-ﻼ",c="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿";RegExp("^[^"+c+"]*["+d+"]"),RegExp("^[^"+d+"]*["+c+"]"),u.IS_BOLD,u.IS_CODE,u.IS_HIGHLIGHT,u.IS_ITALIC,u.IS_STRIKETHROUGH,u.IS_SUBSCRIPT,u.IS_SUPERSCRIPT,u.IS_UNDERLINE,u.IS_DIRECTIONLESS,u.IS_UNMERGEABLE,u.IS_ALIGN_CENTER,u.IS_ALIGN_END,u.IS_ALIGN_JUSTIFY,u.IS_ALIGN_LEFT,u.IS_ALIGN_RIGHT,u.IS_ALIGN_START,u.IS_ALIGN_CENTER,u.IS_ALIGN_END,u.IS_ALIGN_JUSTIFY,u.IS_ALIGN_LEFT,u.IS_ALIGN_RIGHT,u.IS_ALIGN_START,u.IS_NORMAL,u.IS_SEGMENTED,u.IS_TOKEN,u.IS_NORMAL,u.IS_SEGMENTED,u.IS_TOKEN;let h={paragraph:({node:e,nodesToJSX:t})=>{let n=t({nodes:e.children});return n?.length?(0,r.jsx)("p",{children:n}):(0,r.jsx)("p",{children:(0,r.jsx)("br",{})})},text:({node:e})=>{let t=e.text;return e.format&u.IS_BOLD&&(t=(0,r.jsx)("strong",{children:t})),e.format&u.IS_ITALIC&&(t=(0,r.jsx)("em",{children:t})),e.format&u.IS_STRIKETHROUGH&&(t=(0,r.jsx)("span",{style:{textDecoration:"line-through"},children:t})),e.format&u.IS_UNDERLINE&&(t=(0,r.jsx)("span",{style:{textDecoration:"underline"},children:t})),e.format&u.IS_CODE&&(t=(0,r.jsx)("code",{children:t})),e.format&u.IS_SUBSCRIPT&&(t=(0,r.jsx)("sub",{children:t})),e.format&u.IS_SUPERSCRIPT&&(t=(0,r.jsx)("sup",{children:t})),t},...s,quote:({node:e,nodesToJSX:t})=>{let n=t({nodes:e.children});return(0,r.jsx)("blockquote",{children:n})},table:({node:e,nodesToJSX:t})=>{let n=t({nodes:e.children});return(0,r.jsx)("div",{className:"lexical-table-container",children:(0,r.jsx)("table",{className:"lexical-table",style:{borderCollapse:"collapse"},children:(0,r.jsx)("tbody",{children:n})})})},tablecell:({node:e,nodesToJSX:t})=>{let n=t({nodes:e.children}),i=e.headerState>0?"th":"td",o=`lexical-table-cell-header-${e.headerState}`,s={backgroundColor:e.backgroundColor||void 0,border:"1px solid #ccc",padding:"8px"},a=e.colSpan&&e.colSpan>1?e.colSpan:void 0,l=e.rowSpan&&e.rowSpan>1?e.rowSpan:void 0;return(0,r.jsx)(i,{className:`lexical-table-cell ${o}`,colSpan:a,rowSpan:l,style:s,children:n})},tablerow:({node:e,nodesToJSX:t})=>{let n=t({nodes:e.children});return(0,r.jsx)("tr",{className:"lexical-table-row",children:n})},heading:({node:e,nodesToJSX:t})=>{let n=t({nodes:e.children}),i=e.tag;return(0,r.jsx)(i,{children:n})},...o,list:({node:e,nodesToJSX:t})=>{let n=t({nodes:e.children}),i=e.tag;return(0,r.jsx)(i,{className:`list-${e?.listType}`,children:n})},listitem:({node:e,nodesToJSX:t,parent:n})=>{let i=e.children.some(e=>
1"list"===e.type),o=t({nodes:e.children});if(!("listType"in n)||n?.listType!=="check")return(0,r.jsx)("li",{className:`${i?"nestedListItem":""}`,style:i?{listStyleType:"none"}:void 0,value:e?.value,children:o});{let t=(0,l.A)();return(0,r.jsx)("li",{"aria-checked":e.checked?"true":"false",className:`list-item-checkbox${e.checked?" list-item-checkbox-checked":" list-item-checkbox-unchecked"}${i?" nestedListItem":""}`,role:"checkbox",style:{listStyleType:"none"},tabIndex:-1,value:e?.value,children:i?o:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("input",{checked:e.checked,id:t,readOnly:!0,type:"checkbox"}),(0,r.jsx)("label",{htmlFor:t,children:o}),(0,r.jsx)("br",{})]})})}},...(0,a.A)({}),upload:({node:e})=>{if("object"!=typeof e.value)return null;let t=e.value,n=e.fields?.alt||t?.alt||"",i=t.url;if(!t.mimeType.startsWith("image"))return(0,r.jsx)("a",{href:i,rel:"noopener noreferrer",children:t.filename});if(!t.sizes||!Object.keys(t.sizes).length)return(0,r.jsx)("img",{alt:n,height:t.height,src:i,width:t.width});let o=[];for(let e in t.sizes){let n=t.sizes[e];if(!n||!n.width||!n.height||!n.mimeType||!n.filesize||!n.filename||!n.url)continue;let i=n?.url;o.push((0,r.jsx)("source",{media:`(max-width: ${n.width}px)`,srcSet:i,type:n.mimeType},e))}return o.push((0,r.jsx)("img",{alt:n,height:t?.height,src:i,width:t?.width},"image")),(0,r.jsx)("picture",{children:o})},tab:"	"};function f(e){return t=>{if(e.Component){let n={...t,isEditor:!1,isJSXConverter:!0};return e.Component(n)}if(e.Block){let n=t.node,r={childIndex:t.childIndex,converters:t.converters,formData:n.fields??{},isEditor:!1,isJSXConverter:!0,node:n,nodesToJSX:t.nodesToJSX,parent:t.parent};return i.createElement(e.Block,r)}if(e.html){let n={...t,isEditor:!1,isJSXConverter:!0},i="function"==typeof e.html?e.html(n):e.html;return(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:i}})}return null}}function p({className:e,converters:t,data:n,disableContainer:o,disableIndent:s,disableTextAlign:a,nodeMap:l}){if(!n)return null;let u={};u=t?"function"==typeof t?t({defaultConverters:h}):t:h;let d=n&&!Array.isArray(n)&&"object"==typeof n&&"root"in n&&function({converters:e,data:t,disableIndent:n,disableTextAlign:o,nodeMap:s}){if(function(e){if(!e?.root?.children?.length)return!1;let t=!1;if(e?.root?.children?.length===1&&e?.root?.children[0]?.type==="paragraph"){let n=e?.root?.children[0];if(n?.children&&n?.children?.length!==0){if(n?.children?.length===1){let e=n?.children[0];e?.type!=="text"||e?.text?.length||(t=!0)}}else t=!0}return!t}(t)){let a=s?function(e){let t={};for(let[n,i]of Object.entries(e))if(i&&"object"==typeof i){if("blocks"===n){for(let[e,n]of(t.blocks={},Object.entries(i)))(n.Component||n.Block||n.html)&&(t.blocks[e]=f(n));continue}if("inlineBlocks"===n){for(let[e,n]of(t.inlineBlocks={},Object.entries(i)))(n.Component||n.Block||n.html)&&(t.inlineBlocks[e]=f(n));continue}(i.Component||i.html)&&(t[n]=function(e){return t=>{let n={...t,isEditor:!1,isJSXConverter:!0};if(e.Component)return e.Component(n);if(e.html){let t="function"==typeof e.html?e.html(n):e.html;return(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:t}})}return null}}(i))}return t}(s):void 0;return function e({converters:t,disableIndent:n,disableTextAlign:o,nodes:s,parent:a}){let l=t.unknown;return s.map((s,u)=>{let d;"block"===s.type?(d=t?.blocks?.[s?.fields?.blockType])||l||console.error(`Lexical => JSX converter: Blocks converter: found ${s?.fields?.blockType} block, but no converter is provided`):"inlineBlock"===s.type?(d=t?.inlineBlocks?.[s?.fields?.blockType])||l||console.error(`Lexical => JSX converter: Inline Blocks converter: found ${s?.fields?.blockType} inline block, but no converter is provided`):d=t[s.type];try{let c;!d&&l&&(d=l),c=d?"function"==typeof d?d({childIndex:u,converters:t,node:s,nodesToJSX:r=>e({converters:r.converters??t,disableIndent:r.disableIndent??n,disableTextAlign:r.disableTextAlign??o,nodes:r.nodes,parent:r.parent??{...s,parent:a}}),parent:a}):d:(0,r.jsx)("span",{children:"unknown node"},u);let h={};if(!o&&(!Array.isArray(o)||!o?.includes(s.type))&&"format"in s&&s.format)switch(s.format){case"center":h.textAlign="center";break;case"end":case"right":h.textAlign="right";break;case"justify":h.textAlign="justify";break;case"left":break;case"start":h.textAlign="left"}
1if(!n&&(!Array.isArray(n)||!n?.includes(s.type))&&"indent"in s&&s.indent&&"listitem"!==s.type&&(h.paddingInlineStart=`${40*Number(s.indent)}px`),i.isValidElement(c)){if(h.textAlign||h.paddingInlineStart){let e={...h,...c?.props?.style??{}};return i.cloneElement(c,{key:u,style:e})}return i.cloneElement(c,{key:u})}return c}catch(e){return console.error("Error converting lexical node to JSX:",e,"node:",s),null}}).filter(Boolean)}({converters:a?{...e,...a,blocks:{...e.blocks,...a.blocks},inlineBlocks:{...e.inlineBlocks,...a.inlineBlocks}}:e,disableIndent:n,disableTextAlign:o,nodes:t.root.children,parent:t.root})}return(0,r.jsx)(r.Fragment,{})}({converters:u,data:n,disableIndent:s,disableTextAlign:a,nodeMap:l});return o?(0,r.jsx)(r.Fragment,{children:d}):(0,r.jsx)("div",{className:e??"payload-richtext",children:d})}},24531:(e,t,n)=>{n.d(t,{S:()=>r});let r=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},24888:(e,t,n)=>{n.d(t,{V:()=>d,f:()=>h});var r=n(55389);let i=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var o=n(24531),s=n(9150);let a="number",l="color",u=/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 d(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},o=[],s=0,d=t.replace(u,e=>(r.y.test(e)?(i.color.push(s),o.push(l),n.push(r.y.parse(e))):e.startsWith("var(")?(i.var.push(s),o.push("var"),n.push(e)):(i.number.push(s),o.push(a),n.push(parseFloat(e))),++s,"${}")).split("${}");return{values:n,split:d,indexes:i,types:o}}function c({split:e,types:t}){let n=e.length;return i=>{let o="";for(let u=0;u<n;u++)if(o+=e[u],void 0!==i[u]){let e=t[u];e===a?o+=(0,s.a)(i[u]):e===l?o+=r.y.transform(i[u]):o+=i[u]}return o}}let h={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(o.S)?.length||0)+(e.match(i)?.length||0)>0},parse:function(e){return d(e).values},createTransformer:function(e){return c(d(e))},getAnimatableNone:function(e){let t=d(e);return c(t)(t.values.map((e,n)=>{var i;let o;return i=t.split[n],"number"==typeof e?i?.trim().endsWith("/")?e:0:"number"==typeof(o=e)?0:r.y.test(o)?r.y.getAnimatableNone(o):o}))}}},27290:(e,t,n)=>{n.d(t,{X:()=>i,f:()=>r});let r=e=>1e3*e,i=e=>e/1e3},27424:(e,t,n)=>{let r;n.d(t,{k:()=>a});var i=n(40042),o=n(73934);function s(){r=void 0}let a={now:()=>(void 0===r&&a.set(o.uv.isProcessing||i.W.useManualTiming?o.uv.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(s)}}},27937:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},29232:(e,t,n)=>{let r,i;n.d(t,{P:()=>iS});let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set([...o,"pathRotation"]);var a=n(55389),l=n(24888),u=n(24531);let d=new Set(["brightness","contrast","saturate","opacity"]);function c(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(u.S)||[];if(!r)return e;let i=n.replace(r,""),o=+!!d.has(t);return r!==n&&(o*=100),t+"("+o+i+")"}let h=/\b([a-z-]*)\(.*?\)/gu,f={...l.f,getAnimatableNone:e=>{let t=e.match(h);return t?t.map(c).join(" "):e}},p={...l.f,getAnimatableNone:e=>{let t=l.f.parse(e);return l.f.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}};var m=n(37822);let v={...m.ai,transform:Math.round};var y=n(92419);let g={rotate:y.uj,pathRotation:y.uj,rotateX:y.uj,rotateY:y.uj,rotateZ:y.uj,scale:m.hs,scaleX:m.hs,scaleY:m.hs,scaleZ:m.hs,skew:y.uj,skewX:y.uj,skewY:y.uj,distance:y.px,translateX:y.px,translateY:y.px,translateZ:y.px,x:y.px,y:y.px,z:y.px,perspective:y.px,transformPerspective:y.px,opacity:m.X4,originX:y.gQ,originY:y.gQ,originZ:y.px},x={borderWidth:y.px,borderTopWidth:y.px,borderRightWidth:y.px,borderBottomWidth:y.px,borderLeftWidth:y.px,borderRadius:y.px,borderTopLeftRadius:y.px,borderTopRightRadius:y.px,borderBottomRightRadius:y.px,borderBottomLeftRadius:y.px,width:y.px,maxWidth:y.px,height:y.px,maxHeight:y.px,top:y.px,right:y.px,bottom:y.px,left:y.px,inset:y.px,insetBlock:y.px,insetBlockStart:y.px,insetBlockEnd:y.px,insetInline:y.px,insetInlineStart:y.px,insetInlineEnd:y.px,padding:y.px,paddingTop:y.px,paddingRight:y.px,paddingBottom:y.px,paddingLeft:y.px,paddingBlock:y.px,paddingBlockStart:y.px,paddingBlockEnd:y.px,paddingInline:y.px,paddingInlineStart:y.px,paddingInlineEnd:y.px,margin:y.px,marginTop:y.px,marginRight:y.px,marginBottom:y.px,marginLeft:y.px,marginBlock:y.px,marginBlockStart:y.px,marginBlockEnd:y.px,marginInline:y.px,marginInlineStart:y.px,marginInlineEnd:y.px,fontSize:y.px,backgroundPositionX:y.px,backgroundPositionY:y.px,...g,zIndex:v,fillOpacity:m.X4,strokeOpacity:m.X4,numOctaves:v},w={...x,color:a.y,backgroundColor:a.y,outlineColor:a.y,fill:a.y,stroke:a.y,borderColor:a.y,borderTopColor:a.y,borderRightColor:a.y,borderBottomColor:a.y,borderLeftColor:a.y,filter:f,WebkitFilter:f,mask:p,WebkitMask:p},b=e=>w[e],S=()=>({translate:0,scale:1,origin:0,originPoint:0}),E=()=>({x:S(),y:S()}),A=()=>({min:0,max:0}),T=()=>({x:A(),y:A()});var k=n(33182);let C=new Set(["width","height","top","left","right","bottom",...o]),P=e=>t=>t.test(e),R=[m.ai,y.px,y.KN,y.uj,y.vw,y.vh,{test:e=>"auto"===e,parse:e=>e}],V=e=>R.find(P(e));var M=n(78041);let D=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var L=n(21391);let I=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,j=e=>180*e/Math.PI,O=e=>F(j(Math.atan2(e[1],e[0]))),N={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:O,rotateZ:O,skewX:e=>j(Math.atan(e[1])),skewY:e=>j(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},F=e=>((e%=360)<0&&(e+=360),e),_=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),B=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),U={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_,scaleY:B,scale:e=>(_(e)+B(e))/2,rotateX:e=>F(j(Math.atan2(e[6],e[5]))),rotateY:e=>F(j(Math.atan2(-e[2],e[0]))),rotateZ:O,rotate:O,skewX:e=>j(Math.atan(e[4])),skewY:e=>j(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function W(e){return+!!e.includes("scale")}function G(e,t){let n,r;if(!e||"none"===e)return W(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=U,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=N,r=t}if(!r)return W(t);let o=n[t],s=r[1].split(",").map(H);return"function"==typeof o?o(s):s[o]}function H(e){return parseFloat(e.trim())}let z=e=>e===m.ai||e===y.px,$=new Set(["x","y","z"]),K=o.filter(e=>!$.has(e)),X={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-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:(e,{transform:t})=>G(t,"x"),y:(e,{transform:t})=>G(t,"y")};X.translateX=X.x,X.translateY=X.y;var q=n(73934);let Y=new Set,Z=!1,J=!1,Q=!1;function ee(){if(J){let e=Array.from(Y).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;
1t.forEach(e=>{let t=function(e){let t=[];return K.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}J=!1,Z=!1,Y.forEach(e=>e.complete(Q)),Y.clear()}function et(){Y.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(J=!0)})}class en{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Y.add(this),Z||(Z=!0,q.Gt.read(et),q.Gt.resolveKeyframes(ee))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Y.delete(this)}cancel(){"scheduled"===this.state&&(Y.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let er=e=>/^0[^.\s]+$/u.test(e),ei=new Set([f,p]);function eo(e,t){let n=b(e);return ei.has(n)||(n=l.f),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let es=new Set(["auto","none","0"]);class ea extends en{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),(0,L.pG)(r))){let i=function e(t,n,r=1){(0,M.V)(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,o]=function(e){let t=I.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let s=window.getComputedStyle(n).getPropertyValue(i);if(s){let e=s.trim();return D(e)?parseFloat(e):e}return(0,L.pG)(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!C.has(n)||2!==e.length)return;let[r,i]=e,o=V(r),s=V(i);if((0,L.rm)(r)!==(0,L.rm)(i)&&X[n]){this.needsMeasurement=!0;return}if(o!==s)if(z(o)&&z(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else X[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;(null===e[t]||("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||er(r)))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!es.has(t)&&(0,l.V)(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=eo(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=X[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=X[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}var el=n(27290),eu=n(8453),ed=n(6500);function ec(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}function eh(e){let t;return()=>(void 0===t&&(t=e()),t)}let ef={};function ep(e,t){let n=eh(e);return()=>ef[t]??n()}let em=ep(()=>void 0!==window.ScrollTimeline,"scrollTimeline");var ev=n(33855),ey=n(87671),eg=n(34324);let ex=ep(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing");var ew=n(33754);let eb=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,eS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eb([0,.65,.55,1]),circOut:eb([.55,0,1,.45]),backIn:eb([.31,.01,.66,-.59]),backOut:eb([.33,1.53,.69,.99])};function eE(e){return"function"==typeof e&&"applyToOptions"in e}class eA extends ey.q{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,(0,M.V)("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:e,...t}){return eE(e)&&ex()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u){let d={[t]:n};l&&(d.offset=l);let c=function e(t,n){if(t)return"function"==typeof t?ex()?(0,ew.K)(t,n):"ease-out":(0,eg.D)(t)?eb(t):Array.isArray(t)?t.map(t=>e(t,n)||eS.easeOut):eS[t]}(a,i);Array.isArray(c)&&(d.easing=c);let h={delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(d,h)}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=(0,ev.X)(r,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ec(t,n,e),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return(0,el.X)(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,el.X)(e)}get time(){return(0,el.X)(Number(this.animation.currentTime)||0)}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,el.f)(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&em())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),ed.l):r(this)}}let eT=new Set(["opacity","clipPath","filter","transform"]),{schedule:ek}=(0,n(44300).I)(queueMicrotask,!1);var eC=n(27424),eP=n(22039);let eR=[...R,a.y,l.f],eV=new WeakMap;function eM(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function eD(e){return"string"==typeof e||Array.isArray(e)}let eL=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eI=["initial",...eL];function ej(e){return eM(e.animate)||eI.some(t=>eD(e[t]))}function eO(e){return!!(ej(e)||e.variants)}let eN={current:null},eF={current:!1},e_="undefined"!=typeof window;function eB(e){let t=[{},{}];
1return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function eU(e,t,n,r){if("function"==typeof t){let[i,o]=eB(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,o]=eB(r);t=t(void 0!==n?n:e.custom,i,o)}return t}let eW=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eG={};class eH{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=en,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=eC.k.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,q.Gt.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=ej(t),this.isVariantNode=eO(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:d,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==l[e]&&(0,k.S)(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,eV.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(eF.current||function(){if(eF.current=!0,e_)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>eN.current=e.matches;e.addEventListener("change",t),t()}else eN.current=!1}(),this.shouldReduceMotion=eN.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,q.WG)(this.notifyUpdate),(0,q.WG)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&eT.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:o,duration:s}=t.accelerate,a=new eA({element:this.current,name:e,keyframes:r,times:i,ease:o,duration:(0,el.f)(s)}),l=n(a);this.valueSubscriptions.set(e,()=>{l(),a.cancel()});return}let r=s.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&q.Gt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in eG){let t=eG[e];
1if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):T()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<eW.length;t++){let n=eW[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if((0,k.S)(i))e.addValue(r,i);else if((0,k.S)(o))e.addValue(r,(0,eP.OQ)(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,(0,eP.OQ)(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=(0,eP.OQ)(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){if("string"==typeof n&&(D(n)||er(n)))n=parseFloat(n);else{let r;r=n,!eR.find(P(r))&&l.f.test(t)&&(n=eo(e,t))}this.setBaseTarget(e,(0,k.S)(n)?n.get():n)}return(0,k.S)(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=eU(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||(0,k.S)(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new eu.v),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ek.render(this.render)}}class ez extends eH{constructor(){super(...arguments),this.KeyframeResolver=ea}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,k.S)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function e$(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let eK=(e,t)=>t&&"number"==typeof e?t.transform(e):e,eX={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eq=o.length;function eY(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,l=!1,u=!1;for(let e in t){let n=t[e];if(s.has(e)){l=!0;continue}
1if((0,L.j4)(e)){i[e]=n;continue}{let t=eK(n,x[e]);e.startsWith("origin")?(u=!0,a[e]=t):r[e]=t}}if(!t.transform&&(l||n?r.transform=function(e,t,n){let r="",i=!0;for(let s=0;s<eq;s++){let a=o[s],l=e[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let e=parseFloat(l);u=a.startsWith("scale")?1===e:0===e}if(!u||n){let e=eK(l,x[a]);if(!u){i=!1;let t=eX[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}let s=e.pathRotation;return s&&(i=!1,r+=`rotate(${eK(s,x.pathRotation)}) `),r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}let eZ={offset:"stroke-dashoffset",array:"stroke-dasharray"},eJ={offset:"strokeDashoffset",array:"strokeDasharray"},eQ=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function e0(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,u,d){if(eY(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:h}=e;for(let e of(c.transform&&(h.transform=c.transform,delete c.transform),(h.transform||c.transformOrigin)&&(h.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete c.transformBox),eQ))void 0!==c[e]&&(h[e]=c[e],delete c[e]);void 0!==t&&(c.x=t),void 0!==n&&(c.y=n),void 0!==r&&(c.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?eZ:eJ;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}(c,i,o,s,!1)}let e1=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"]),e2=e=>"string"==typeof e&&"svg"===e.toLowerCase();function e5(e,{style:t,vars:n},r,i){let o,s=e.style;for(o in t)s[o]=t[o];for(o in i?.applyProjectionStyles(s,r),n)s.setProperty(o,n[o])}let e4=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function e3(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let e6={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!y.px.test(e))return e;else e=parseFloat(e);let n=e3(e,t.target.x),r=e3(e,t.target.y);return`${n}% ${r}%`}};var e9=n(39361);let e8={borderRadius:{...e6,applyTo:[...e4]},borderTopLeftRadius:e6,borderTopRightRadius:e6,borderBottomLeftRadius:e6,borderBottomRightRadius:e6,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=l.f.parse(e);if(r.length>5)return e;let i=l.f.createTransformer(e),o=+("number"!=typeof r[0]),s=n.x.scale*t.x,a=n.y.scale*t.y;r[0+o]/=s,r[1+o]/=a;let u=(0,e9.k)(s,a,.5);return"number"==typeof r[2+o]&&(r[2+o]/=u),"number"==typeof r[3+o]&&(r[3+o]/=u),i(r)}}};function e7(e,{layout:t,layoutId:n}){return s.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!e8[e]||"opacity"===e)}function te(e,t,n){let r=e.style,i=t?.style,o={};if(!r)return o;for(let t in r)((0,k.S)(r[t])||i&&(0,k.S)(i[t])||e7(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(o[t]=r[t]);return o}function tt(e,t,n){let r=te(e,t,n);for(let n in e)((0,k.S)(e[n])||(0,k.S)(t[n]))&&(r[-1!==o.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class tn extends ez{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=T}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(s.has(t)){let e=b(t);return e&&e.default||0}return t=e1.has(t)?t:e$(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return tt(e,t,n)}
1build(e,t,n){e0(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in e5(e,t,void 0,r),t.attrs)e.setAttribute(e1.has(n)?n:e$(n),t.attrs[n])}mount(e){this.isSVGTag=e2(e.tagName),super.mount(e)}}function tr({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ti(e){return void 0===e||1===e}function to({scale:e,scaleX:t,scaleY:n}){return!ti(e)||!ti(t)||!ti(n)}function ts(e){return to(e)||ta(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ta(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function tl(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function tu(e,t=0,n=1,r,i){e.min=tl(e.min,t,n,r,i),e.max=tl(e.max,t,n,r,i)}function td(e,{x:t,y:n}){tu(e.x,t.translate,t.scale,t.originPoint),tu(e.y,n.translate,n.scale,n.originPoint)}function tc(e,t){e.min+=t,e.max+=t}function th(e,t,n,r,i=.5){let o=(0,e9.k)(e.min,e.max,i);tu(e,t,n,o,r)}function tf(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function tp(e,t,n){let r=n??e;th(e.x,tf(t.x,r.x),t.scaleX,t.scale,t.originX),th(e.y,tf(t.y,r.y),t.scaleY,t.scale,t.originY)}function tm(e,t){return tr(function(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}}(e.getBoundingClientRect(),t))}class tv extends ez{constructor(){super(...arguments),this.type="html",this.renderInstance=e5}readValueFromInstance(e,t){if(s.has(t))return this.projection?.isProjecting?W(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return G(n,t)})(e,t);{let n=window.getComputedStyle(e),r=((0,L.j4)(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return tm(e,t)}build(e,t,n){eY(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return te(e,t,n)}}var ty=n(12115);let tg=["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 tx(e){if("string"!=typeof e||e.includes("-"));else if(tg.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var tw=n(95155);let tb=(0,ty.createContext)({}),tS=(0,ty.createContext)({strict:!1});var tE=n(53127);let tA=(0,ty.createContext)({});function tT(e){return Array.isArray(e)?e.join(" "):e}let tk=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tC(e,t,n){for(let r in t)(0,k.S)(t[r])||e7(r,n)||(e[r]=t[r])}let tP=()=>({...tk(),attrs:{}}),tR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function tV(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tR.has(e)}let tM=e=>!tV(e);try{!function(e){"function"==typeof e&&(tM=t=>t.startsWith("on")?!tV(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}function tD(e){return(0,k.S)(e)?e.get():e}let tL=(0,ty.createContext)(null);var tI=n(94416);let tj=e=>(t,n)=>{let r=(0,ty.useContext)(tA),i=(0,ty.useContext)(tL),o=()=>(function(e,t,n,r){let{scrapeMotionValuesFromProps:i,createRenderState:o}=e;return{latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=tD(o[e]);let{initial:s,animate:a}=e,l=ej(e),u=eO(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let d=!!n&&!1===n.initial,c=(d=d||!1===s)?a:s;if(c&&"boolean"!=typeof c&&!eM(c)){let t=Array.isArray(c)?c:[c];for(let n=0;n<t.length;n++){let r=eU(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}
1(t,n,r,i),renderState:o()}})(e,t,r,i);return n?o():(0,tI.M)(o)},tO=tj({scrapeMotionValuesFromProps:te,createRenderState:tk}),tN=tj({scrapeMotionValuesFromProps:tt,createRenderState:tP}),tF={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"]},t_=!1;function tB(){return!function(){if(t_)return;let e={};for(let t in tF)e[t]={isEnabled:e=>tF[t].some(t=>!!e[t])};eG=e,t_=!0}(),eG}let tU=Symbol.for("motionComponentSymbol"),tW="data-"+e$("framerAppearId"),tG=(0,ty.createContext)({});function tH(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var tz=n(46436);function t$(e){var t,n;let{forwardMotionProps:r=!1,type:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;o&&function(e){let t=tB();for(let n in e)t[n]={...t[n],...e[n]};eG=t}(o);let a=i?"svg"===i:tx(e),l=a?tN:tO;function u(t,n){let i,o={...(0,ty.useContext)(tE.Q),...t,layoutId:function(e){let{layoutId:t}=e,n=(0,ty.useContext)(tb).id;return n&&void 0!==t?n+"-"+t:t}(t)},{isStatic:u}=o,d=function(e){let{initial:t,animate:n}=function(e,t){if(ej(e)){let{initial:t,animate:n}=e;return{initial:!1===t||eD(t)?t:void 0,animate:eD(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,ty.useContext)(tA));return(0,ty.useMemo)(()=>({initial:t,animate:n}),[tT(t),tT(n)])}(t),c=l(t,u);if(!u&&"undefined"!=typeof window){(0,ty.useContext)(tS).strict;let t=function(e){let{drag:t,layout:n}=tB();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(o);i=t.MeasureLayout,d.visualElement=function(e,t,n,r,i,o){var s,a,l,u;let{visualElement:d}=(0,ty.useContext)(tA),c=(0,ty.useContext)(tS),h=(0,ty.useContext)(tL),f=(0,ty.useContext)(tE.Q),p=f.reducedMotion,m=f.skipAnimations,v=(0,ty.useRef)(null),y=(0,ty.useRef)(!1);r=r||c.renderer,!v.current&&r&&(v.current=r(e,{visualState:t,parent:d,props:n,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:p,skipAnimations:m,isSVG:o}),y.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));let g=v.current,x=(0,ty.useContext)(tG);g&&!g.projection&&i&&("html"===g.type||"svg"===g.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:d,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&tH(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:d})}(v.current,n,i,x);let w=(0,ty.useRef)(!1);(0,ty.useInsertionEffect)(()=>{g&&w.current&&g.update(n,h)});let b=n[tW],S=(0,ty.useRef)(!!b&&"undefined"!=typeof window&&!(null==(s=(a=window).MotionHandoffIsComplete)?void 0:s.call(a,b))&&(null==(l=(u=window).MotionHasOptimisedAnimation)?void 0:l.call(u,b)));return(0,tz.E)(()=>{y.current=!0,g&&(w.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),S.current&&g.animationState&&g.animationState.animateChanges())}),(0,ty.useEffect)(()=>{g&&(!S.current&&g.animationState&&g.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var e,t;null==(e=(t=window).MotionHandoffMarkAsComplete)||e.call(t,b)}),S.current=!1),g.enteringChildren=void 0)}),g}(e,c,o,s,t.ProjectionNode,a)}return(0,tw.jsxs)(tA.Provider,{value:d,children:[i&&d.visualElement?(0,tw.jsx)(i,{visualElement:d.visualElement,...o}):null,function(e,t,n,r,i){let{latestValues:o}=r,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=((null!=a?a:tx(e))?function(e,t,n,r){let i=(0,ty.useMemo)(()=>{let n=tP();return e0(n,t,e2(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};tC(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return tC(r,n,e),Object.assign(r,function(e,t){let{transformTemplate:n}=e;return(0,ty.useMemo)(()=>{let e=tk();return eY(e,t,n),Object.assign({},e.vars,e.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTa
1p||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(t,o,i,e),u=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&!(0,k.S)(e[i])&&(tM(i)||!0===n&&tV(i)||!t&&!tV(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,s),d=e!==ty.Fragment?{...u,...l,ref:n}:{},{children:c}=t,h=(0,ty.useMemo)(()=>(0,k.S)(c)?c.get():c,[c]);return(0,ty.createElement)(e,{...d,children:h})}(e,t,function(e,t,n){let r=(0,ty.useRef)(n);(0,ty.useInsertionEffect)(()=>{r.current=n});let i=(0,ty.useRef)(null);return(0,ty.useCallback)(n=>{if(n){var o;null==(o=e.onMount)||o.call(e,n)}t&&(n?t.mount(n):t.unmount());let s=r.current;if("function"==typeof s)if(n){let e=s(n);"function"==typeof e&&(i.current=e)}else i.current?(i.current(),i.current=null):s(n);else s&&(s.current=n)},[t])}(c,d.visualElement,n),c,u,r,a)]})}u.displayName="motion.".concat("string"==typeof e?e:"create(".concat(null!=(n=null!=(t=e.displayName)?t:e.name)?n:"",")"));let d=(0,ty.forwardRef)(u);return d[tU]=e,d}class tK{constructor(e){this.isMounted=!1,this.node=e}update(){}}function tX(e,t,n){let r=e.getProps();return eU(r,t,void 0!==n?n:r.custom,e)}function tq(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function tY(e,t){let n=e?.[t]??e?.default??e;return n!==e?tq(n,e):n}let tZ=e=>Array.isArray(e);var tJ=n(40042);function tQ(e,t){let n=e.getValue("willChange");if((0,k.S)(n)&&n.add)return n.add(t);if(!n&&tJ.W.WillChange){let n=new tJ.W.WillChange("auto");e.addValue("willChange",n),n.add(t)}}var t0=n(49752),t1=n(48895),t2=n(90625),t5=n(32080),t4=n(58605),t3=n(69809);let t6={anticipate:t5.b,backInOut:t4.ZZ,circInOut:t3.tn};class t9 extends eA{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in t6&&(e.ease=t6[e.ease])}(e),(0,t2.E)(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let s=new t0.s({...o,autoplay:!1}),a=Math.max(10,eC.k.now()-this.startTime),l=(0,t1.q)(0,10,a-10),u=s.sample(a).value,{name:d}=this.options;i&&d&&ec(i,d,u),t.setWithVelocity(s.sample(Math.max(0,a-l)).value,u,l),s.stop()}}let t8=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(l.f.test(e)||"0"===e)&&!e.startsWith("url("));function t7(e){e.duration=0,e.type="keyframes"}let ne=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nt=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nn=eh(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nr extends ey.q{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:s,name:a,motionValue:l,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=eC.k.now();let c={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:a,motionValue:l,element:u,...d},h=u?.KeyframeResolver||en;this.keyframeResolver=new h(s,(e,t,n)=>this.onKeyframesResolved(e,t,c,!n),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){let i;this.keyframeResolver=void 0;let{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:d}=n;this.resolvedAt=eC.k.now();let c=!0;!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=t8(i,t),a=t8(o,t);return(0,M.$)(s===a,`You are trying to animate ${t} from "${i}" to "${o}". "${s?o:i}" is not an animatable value.`,"value-not-animatable"),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||eE(n))&&r)}(e,o,s,a)&&(c=!1,(tJ.W.instantAnimations||!l)&&d?.((0,ev.X)(e,n,t)),e[0]=e[e.length-1],t7(n),n.repeat=0);let h={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=c&&!u&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
1let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return nn()&&n&&(eT.has(n)||nt.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&ne.test(e[t]))return!0;return!1}(a))&&("transform"!==n||!u)&&!l&&!r&&"mirror"!==i&&0!==o&&"inertia"!==s}(h),p=h.motionValue?.owner?.current;if(f)try{i=new t9({...h,element:p})}catch{i=new t0.s(h)}else i=new t0.s(h);i.finished.then(()=>{this.notifyFinished()}).catch(ed.l),this.pendingTimeline&&(this.stopTimeline=i.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=i}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Q=!0,et(),ee(),Q=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let ni={type:"spring",stiffness:500,damping:25,restSpeed:10},no={type:"keyframes",duration:.8},ns={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},na=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nl=(e,t,n,r={},i,o)=>a=>{let l=tY(r,e)||{},u=l.delay||r.delay||0,{elapsed:d=0}=r;d-=(0,el.f)(u);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function(e){for(let t in e)if(!na.has(t))return!0;return!1}(l)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?no:s.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:ni:ns)(e,c)),c.duration&&(c.duration=(0,el.f)(c.duration)),c.repeatDelay&&(c.repeatDelay=(0,el.f)(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(t7(c),0===c.delay&&(h=!0)),(tJ.W.instantAnimations||tJ.W.skipAnimations||i?.shouldSkipAnimations||l.skipAnimations)&&(h=!0,t7(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,h&&!o&&void 0!==t.get()){let e=(0,ev.X)(c.keyframes,l);if(void 0!==e)return void q.Gt.update(()=>{c.onUpdate(e),c.onComplete()})}return l.isSync?new t0.s(c):new nr(c)};function nu(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:s,...a}=t,l=e.getDefaultTransition();o=o?tq(o,l):l;let u=o?.reduceMotion,d=o?.skipAnimations;r&&(o=r);let c=[],h=i&&e.animationState&&e.animationState.getState()[i],f=o?.path;for(let t in f&&f.animateVisualElement(e,a,o,n,c),a){let r=e.getValue(t,e.latestValues[t]??null),i=a[t];if(void 0===i||h&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(h,t))continue;let s={delay:n,...tY(o||{},t)};d&&(s.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(i)&&i===l&&!s.velocity){q.Gt.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=e.props[tW];if(n){let e=window.MotionHandoffAnimation(n,t,q.Gt);null!==e&&(s.startTime=e,f=!0)}}tQ(e,t);let p=u??e.shouldReduceMotion;r.start(nl(t,r,i,p&&C.has(t)?{type:!1}:s,e,f));let m=r.animation;m&&c.push(m)}if(s){let t=()=>q.Gt.update(()=>{s&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=tX(e,t)||{};for(let t in i={...i,...n}){var o;let n=tZ(o=i[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,(0,eP.OQ)(n))}}(e,s)});c.length?Promise.all(c).then(t):t()}return c}
1function nd(e,t,n,r=0,i=1){let o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),s=e.size,a=(s-1)*r;return"function"==typeof n?n(o,s):1===i?o*r:a-o*r}function nc(e,t,n={}){let r=tX(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(nu(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,i=0,o=1,s){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(nc(l,t,{...s,delay:n+("function"==typeof r?0:r)+nd(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,r,o,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===a?[o,s]:[s,o];return e().then(()=>t())}}let nh=eI.length;function nf(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}let np=[...eL].reverse(),nm=eL.length;function nv(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ny(){return{animate:nv(!0),whileInView:nv(),whileHover:nv(),whileTap:nv(),whileDrag:nv(),whileFocus:nv(),exit:nv()}}class ng extends tK{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>nc(e,t,n)));else if("string"==typeof t)r=nc(e,t,n);else{let i="function"==typeof t?tX(e,t,n.custom):t;r=Promise.all(nu(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=ny(),r=!0,i=!1,o=t=>(n,r)=>{let i=tX(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function s(s){let{props:a}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<nh;e++){let r=eI[e],i=t.props[r];(eD(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},u=[],d=new Set,c={},h=1/0;for(let t=0;t<nm;t++){var f,p;let m=np[t],v=n[m],y=void 0!==a[m]?a[m]:l[m],g=eD(y),x=m===s?v.isActive:null;!1===x&&(h=t);let w=y===l[m]&&y!==a[m]&&g;if(w&&(r||i)&&e.manuallyAnimateOnMount&&(w=!1),v.protectedKeys={...c},!v.isActive&&null===x||!y&&!v.prevProp||eM(y)||"boolean"==typeof y)continue;if("exit"===m&&v.isActive&&!0!==x){v.prevResolvedValues&&(c={...c,...v.prevResolvedValues});continue}let b=(f=v.prevProp,"string"==typeof(p=y)?p!==f:!!Array.isArray(p)&&!nf(p,f)),S=b||m===s&&v.isActive&&!w&&g||t>h&&g,E=!1,A=Array.isArray(y)?y:[y],T=A.reduce(o(m),{});!1===x&&(T={});let{prevResolvedValues:k={}}=v,C={...k,...T},P=t=>{S=!0,d.has(t)&&(E=!0,d.delete(t)),v.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in C){let t=T[e],n=k[e];if(!c.hasOwnProperty(e))(tZ(t)&&tZ(n)?!nf(t,n)||b:t!==n)?null!=t?P(e):d.add(e):void 0!==t&&d.has(e)?P(e):v.protectedKeys[e]=!0}v.prevProp=y,v.prevResolvedValues=T,v.isActive&&(c={...c,...T}),(r||i)&&e.blockInitialAnimation&&(S=!1);let R=w&&b,V=!R||E;S&&V&&u.push(...A.map(t=>{let n={type:m};if("string"==typeof t&&(r||i)&&!R&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=tX(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=nd(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(d.size){let t={};if("boolean"!=typeof a.initial){let n=tX(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}d.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),u.push({animation:t})}let m=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,i=!1,m?t(u):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=ny(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();eM(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let nx=0;class nw extends tK{constructor(){super(...arguments),this.id=nx++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=tX(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
1{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let nb={x:!1,y:!1};function nS(e){return[e("x"),e("y")]}function nE(e){return e.max-e.min}function nA(e,t,n,r=.5){e.origin=r,e.originPoint=(0,e9.k)(t.min,t.max,e.origin),e.scale=nE(n)/nE(t),e.translate=(0,e9.k)(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function nT(e,t,n,r){nA(e.x,t.x,n.x,r?r.originX:void 0),nA(e.y,t.y,n.y,r?r.originY:void 0)}function nk(e,t,n,r=0){e.min=(r?(0,e9.k)(n.min,n.max,r):n.min)+t.min,e.max=e.min+nE(t)}function nC(e,t,n,r=0){let i=r?(0,e9.k)(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+nE(t)}function nP(e,t,n,r){nC(e.x,t.x,n.x,r?.x),nC(e.y,t.y,n.y,r?.y)}let nR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),nV=new Set(["INPUT","SELECT","TEXTAREA"]);function nM(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}let nD=e=>"object"==typeof e&&null!==e;function nL(e){return nD(e)&&"ownerSVGElement"in e}function nI(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}let nj=new WeakMap,nO=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:nL(r)&&"getBBox"in r?r.getBBox()[t]:r[n],nN=nO("inline","width","offsetWidth"),nF=nO("block","height","offsetHeight");function n_({target:e,borderBoxSize:t}){nj.get(e)?.forEach(n=>{n(e,{get width(){return nN(e,t)},get height(){return nF(e,t)}})})}function nB(e){e.forEach(n_)}let nU=new Set;function nW(e,t){return"function"==typeof e?(nU.add(e),i||(i=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};nU.forEach(t=>t(e))},window.addEventListener("resize",i)),()=>{nU.delete(e),nU.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):function(e,t){r||"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(nB));let n=nI(e);return n.forEach(e=>{let n=nj.get(e);n||(n=new Set,nj.set(e,n)),n.add(t),r?.observe(e)}),()=>{n.forEach(e=>{let n=nj.get(e);n?.delete(t),n?.size||r?.unobserve(e)})}}(e,t)}let nG=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function nH(e){return{point:{x:e.pageX,y:e.pageY}}}function nz(e,t,n,r){return nM(e,t,e=>nG(e)&&n(e,nH(e)),r)}let n$=({current:e})=>e?e.ownerDocument.defaultView:null;var nK=n(23656);let nX=(e,t)=>Math.abs(e-t),nq=new Set(["auto","scroll"]);class nY{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nZ(this.lastRawMoveEventInfo,this.transformPagePoint));let e=nQ(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(nX(e.x,t.x)**2+nX(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=q.uv;this.history.push({...r,timestamp:i});let{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=nZ(t,this.transformPagePoint),q.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=nQ("pointercancel"===e.type?this.lastMoveEventInfo:nZ(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!nG(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;let a=nZ(nH(e),this.transformPagePoint),{point:l}=a,{timestamp:u}=q.uv;this.history=[{...l,timestamp:u}];let{onSessionStart:d}=t;d&&d(e,nQ(a,this.history));let c={passive:!0,capture:!0};this.removeListeners=(0,nK.F)(nz(this.contextWindow,"pointermove",this.handlePointerMove,c),nz(this.contextWindow,"pointerup",this.handlePointerUp,c),nz(this.contextWindow,"pointercancel",this.handlePointerUp,c)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(nq.has(e.overflowX)||nq.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(0!==i.x||0!==i.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),q.Gt.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,q.WG)(this.updatePoint)}}function nZ(e,t){return t?{point:t(e.point)}:e}function nJ(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nQ({point:e},t){return{point:e,delta:nJ(e,n0(t)),offset:nJ(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=n0(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>(0,el.f)(.1)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>2*(0,el.f)(t)&&(r=e[1]);let o=(0,el.X)(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,.1)}}function n0(e){return e[e.length-1]}var n1=n(91225);function n2(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function n5(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 n4(e,t,n){return{min:n3(e,t),max:n3(e,n)}}function n3(e,t){return"number"==typeof e?e:e[t]||0}let n6=new WeakMap;
1class n9{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=T(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{t&&this.snapToCursor(nH(e).point),this.stopAnimation()},o=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(nb[e])return null;else return nb[e]=!0,()=>{nb[e]=!1};return nb.x||nb.y?null:(nb.x=nb.y=!0,()=>{nb.x=nb.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nS(e=>{let t=this.getAxisMotionValue(e).get()||0;if(y.KN.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=nE(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&q.Gt.update(()=>i(e,t),!1,!0),tQ(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&q.Gt.update(()=>o(e,t),!1,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new nY(e,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:n$(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&q.Gt.postRender(()=>s(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!n7(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?(0,e9.k)(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?(0,e9.k)(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&tH(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:n2(e.x,n,i),y:n2(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:n4(e,"left","right"),y:n4(e,"top","bottom")}}(t),r!==this.constraints&&!tH(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&nS(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!tH(t))return!1;let r=t.current;(0,M.V)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let o=function(e,t,n){let r=tm(e,n),{scroll:i}=t;return i&&(tc(r.x,i.offset.x),tc(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s=(e=i.layout.layoutBox,{x:n5(e.x,o.x),y:n5(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=tr(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(nS(s=>{if(!n7(s,t,this.currentDirection))return;let l=a&&a[s]||{};(!0===o||o===s)&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return tQ(this.visualElement,e),n.start(nl(e,n,0,t,this.visualElement,!1))}stopAnimation(){nS(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){nS(t=>{let{drag:n}=this.getProps();if(!n7(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t],s=i.get()||0;i.set(e[t]-(0,e9.k)(n,o,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!tH(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};nS(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=nE(e),i=nE(t);return i>r?n=(0,n1.q)(t.min,t.max-r,e.min):r>i&&(n=(0,n1.q)(e.min,e.max-i,t.min)),(0,t1.q)(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),nS(t=>{if(!n7(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set((0,e9.k)(i,o,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;n6.set(this.visualElement,this);let t=this.visualElement.current,n=nz(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=e.target,o=i!==t&&(nV.has(i.tagName)||!0===i.isContentEditable);n&&r&&!o&&this.start(e)}),r=()=>{let{dragConstraints:n}=this.getProps();tH(n)&&n.current&&(this.constraints=this.resolveRefConstraints(),e||(e=function(e,t,n){let r=nW(e,n8(n)),i=nW(t,n8(n));return()=>{r(),i()}}(t,n.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),q.Gt.read(r);let s=nM(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nS(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function n8(e){let t=!0;return()=>{if(t){t=!1;return}e()}}
1function n7(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class re extends tK{constructor(e){super(e),this.removeGroupControls=ed.l,this.removeListeners=ed.l,this.controls=new n9(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ed.l}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let rt=e=>(t,n)=>{e&&q.Gt.update(()=>e(t,n),!1,!0)};class rn extends tK{constructor(){super(...arguments),this.removePointerDownListener=ed.l}onPointerDown(e){this.session=new nY(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n$(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:rt(e),onStart:rt(t),onMove:rt(n),onEnd:(e,t)=>{delete this.session,r&&q.Gt.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=nz(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let rr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ri=!1;class ro extends ty.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),ri&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rr.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),ri=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||q.Gt.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),ek.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;ri=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rs(e){let[t,n]=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,ty.useContext)(tL);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,o=(0,ty.useId)();(0,ty.useEffect)(()=>{if(e)return i(o)},[e]);let s=(0,ty.useCallback)(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}(),r=(0,ty.useContext)(tb);return(0,tw.jsx)(ro,{...e,layoutGroup:r,switchLayoutGroup:(0,ty.useContext)(tG),isPresent:t,safeToRemove:n})}let ra={value:null,addProjectionMetrics:null},rl=e4.length,ru=e=>"string"==typeof e?parseFloat(e):e,rd=e=>"number"==typeof e||y.px.test(e);function rc(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rh=rp(0,.5,t3.yT),rf=rp(.5,.95,ed.l);function rp(e,t,n){return r=>r<e?0:r>t?1:n((0,n1.q)(e,t,r))}function rm(e,t){e.min=t.min,e.max=t.max}function rv(e,t){rm(e.x,t.x),rm(e.y,t.y)}function ry(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rg(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function rx(e,t,[n,r,i],o,s){!function(e,t=0,n=1,r=.5,i,o=e,s=e){if(y.KN.test(t)&&(t=parseFloat(t),t=(0,e9.k)(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=(0,e9.k)(o.min,o.max,r);e===o&&(a-=t),e.min=rg(e.min,t,n,a,i),e.max=rg(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,o,s)}let rw=["x","scaleX","originX"],rb=["y","scaleY","originY"];function rS(e,t,n,r){rx(e.x,t,rw,n?n.x:void 0,r?r.x:void 0),rx(e.y,t,rb,n?n.y:void 0,r?r.y:void 0)}function rE(e){return 0===e.translate&&1===e.scale}function rA(e){return rE(e.x)&&rE(e.y)}function rT(e,t){return e.min===t.min&&e.max===t.max}function rk(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}
1function rC(e,t){return rk(e.x,t.x)&&rk(e.y,t.y)}function rP(e){return nE(e.x)/nE(e.y)}function rR(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var rV=n(16105);class rM{constructor(){this.members=[]}add(e){(0,rV.Kq)(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1!==r.isConnected||n.snapshot||((0,rV.Ai)(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if((0,rV.Ai)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(void 0===r||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let rD=(e,t)=>e.depth-t.depth;class rL{constructor(){this.children=[],this.isDirty=!1}add(e){(0,rV.Kq)(this.children,e),this.isDirty=!0}remove(e){(0,rV.Ai)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rD),this.isDirty=!1,this.children.forEach(e)}}let rI={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rj=["","X","Y","Z"],rO=0;function rN(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function rF({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=rO++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ra.value&&(rI.nodes=rI.calculatedTargetDeltas=rI.calculatedProjections=0),this.nodes.forEach(rU),this.nodes.forEach(rY),this.nodes.forEach(rZ),this.nodes.forEach(rW),ra.addProjectionMetrics&&ra.addProjectionMetrics(rI)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rL)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eu.v),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=nL(t)&&!(nL(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;q.Gt.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=eC.k.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&((0,q.WG)(r),e(i-250))};return q.Gt.setup(r,!0),()=>(0,q.WG)(r)}(i,250),rr.hasAnimatedSinceResize&&(rr.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(rq)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||r5,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!rC(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...tY(o,"layout"),onPlay:s,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||rq(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,q.WG)(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(rJ),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[tW];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",q.Gt,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(rz),this.nodes.forEach(rH);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(r$);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rK),this.nodes.forEach(rX),this.nodes.forEach(r_),this.nodes.forEach(rB)):this.nodes.forEach(r$),this.clearAllSnapshots();let e=eC.k.now();q.uv.delta=(0,t1.q)(0,1e3/60,e-q.uv.timestamp),q.uv.timestamp=e,q.uv.isProcessing=!0,q.PP.update.process(q.uv),q.PP.preRender.process(q.uv),q.PP.render.process(q.uv),q.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ek.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rG),this.sharedNodes.forEach(rQ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,q.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){q.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nE(this.snapshot.measuredBox.x)||nE(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=T()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!rA(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ts(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),r6((t=r).x),r6(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return T();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(r8))){let{scroll:e}=this.root;e&&(tc(t.x,e.offset.x),tc(t.y,e.offset.y))}return t}removeElementScroll(e){let t=T();if(rv(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&rv(t,e),tc(t.x,i.offset.x),tc(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||T();rv(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(tc(r.x,-n.scroll.offset.x),tc(r.y,-n.scroll.offset.y)),ts(n.latestValues)&&tp(r,n.latestValues,n.layout?.layoutBox)}return ts(this.latestValues)&&tp(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=T();rv(t,e);for(let e=0;e<this.path.length;e++){let n,r=this.path[e];ts(r.latestValues)&&(r.instance&&(to(r.latestValues)&&r.updateSnapshot(),rv(n=T(),r.measurePageBox())),rS(t,r.latestValues,r.snapshot?.layoutBox,n))}return ts(this.latestValues)&&rS(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}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!==q.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
1isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=q.uv.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=T(),this.targetWithTransforms=T()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,a,l,u;this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,nk(s.x,a.x,l.x,u?.x),nk(s.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rv(this.target,this.layout.layoutBox),td(this.target,this.targetDelta)):rv(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),ra.value&&rI.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||to(this.parent.latestValues)||ta(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=T(),this.relativeTargetOrigin=T(),nP(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),rv(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===q.uv.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;rv(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){let i,o,s=n.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(i=n[a]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(tc(e.x,-i.scroll.offset.x),tc(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,td(e,o)),r&&ts(i.latestValues)&&tp(e,i.latestValues,i.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=T());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ry(this.prevProjectionDelta.x,this.projectionDelta.x),ry(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nT(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&rR(this.projectionDelta.x,this.prevProjectionDelta.x)&&rR(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),ra.value&&rI.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=E(),this.projectionDelta=E(),this.projectionDeltaWithTransform=E()}setAnimationOrigin(e,t=!1,n){let r,i=this.snapshot,o=i?i.latestValues:{},s={...this.latestValues},a=E();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=T(),u=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),d=this.getStack(),c=!d||d.members.length<=1,h=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(r2));this.animationProgress=0;let f=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,i=f?.(n);if(i?(a.x.translate=i.x,a.x.scale=(0,e9.k)(e.x.scale,1,n),a.x.origin=e.x.origin,a.x.originPoint=e.x.originPoint,a.y.translate=i.y,a.y.scale=(0,e9.k)(e.y.scale,1,n),a.y.origin=e.y.origin,a.y.originPoint=e.y.originPoint):(r0(a.x,e.x,n),r0(a.y,e.y,n)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var d,p,m,v,g,x;nP(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,v=this.relativeTargetOrigin,g=l,x=n,r1(m.x,v.x,g.x,x),r1(m.y,v.y,g.y,x),r&&(d=this.relativeTarget,p=r,rT(d.x,p.x)&&rT(d.y,p.y))&&(this.isProjectionDirty=!1),r||(r=T()),rv(r,this.relativeTarget)}u&&(this.animationValues=s,function(e,t,n,r,i,o){i?(e.opacity=(0,e9.k)(0,n.opacity??1,rh(r)),e.opacityExit=(0,e9.k)(t.opacity??1,0,rf(r))):o&&(e.opacity=(0,e9.k)(t.opacity??1,n.opacity??1,r));for(let i=0;i<rl;i++){let o=e4[i],s=rc(t,o),a=rc(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||rd(s)===rd(a)?(e[o]=Math.max((0,e9.k)(ru(s),ru(a),r),0),(y.KN.test(a)||y.KN.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=(0,e9.k)(t.rotate||0,n.rotate||0,r))}(s,o,this.latestValues,n,h,c)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=s),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,q.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=q.Gt.update(()=>{rr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=(0,eP.OQ)(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,n){let r=(0,k.S)(e)?e:(0,eP.OQ)(e);return r.start(nl("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&r9(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||T();let t=nE(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=nE(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}rv(t,n),tp(t,i),nT(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
1)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rM),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&rN("z",e,r,this.animationValues);for(let t=0;t<rj.length;t++)rN(`rotate${rj[t]}`,e,r,this.animationValues),rN(`skew${rj[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=tD(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tD(t?.pointerEvents)||""),this.hasProjected&&!ts(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();
1let o=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:o,rotateY:s,skewX:a,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),o&&(r+=`rotateX(${o}deg) `),s&&(r+=`rotateY(${s}deg) `),a&&(r+=`skewX(${a}deg) `),l&&(r+=`skewY(${l}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(o=n(i,o)),e.transform=o;let{x:s,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,e8){if(void 0===i[t])continue;let{correct:n,applyTo:s,isCSSVariable:a}=e8[t],l="none"===o?i[t]:n(i[t],r);if(s){let t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?tD(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(rH),this.root.sharedNodes.clear()}}}function r_(e){e.updateLayout()}function rB(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if("size"===i)nS(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=nE(r);r.min=n[e].min,r.max=r.min+i});else if("x"===i||"y"===i){let e="x"===i?"y":"x";rm(o?t.measuredBox[e]:t.layoutBox[e],n[e])}else r9(i,t.layoutBox,n)&&nS(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],s=nE(n[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});let s=E();nT(s,n,t.layoutBox);let a=E();o?nT(a,e.applyTransform(r,!0),t.measuredBox):nT(a,n,t.layoutBox);let l=!rA(s),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=e.options.layoutAnchor||void 0,a=T();nP(a,t.layoutBox,i.layoutBox,s);let l=T();nP(l,n,o.layoutBox,s),rC(a,l)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rU(e){ra.value&&rI.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rW(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rG(e){e.clearSnapshot()}function rH(e){e.clearMeasurements()}function rz(e){e.isLayoutDirty=!0,e.updateLayout()}function r$(e){e.isLayoutDirty=!1}function rK(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function rX(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rq(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rY(e){e.resolveTargetDelta()}function rZ(e){e.calcProjection()}function rJ(e){e.resetSkewAndRotation()}function rQ(e){e.removeLeadSnapshot()}function r0(e,t,n){e.translate=(0,e9.k)(t.translate,0,n),e.scale=(0,e9.k)(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function r1(e,t,n,r){e.min=(0,e9.k)(t.min,n.min,r),e.max=(0,e9.k)(t.max,n.max,r)}function r2(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let r5={duration:.45,ease:[.4,0,.1,1]},r4=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),r3=r4("applewebkit/")&&!r4("chrome/")?Math.round:ed.l;function r6(e){e.min=r3(e.min),e.max=r3(e.max)}function r9(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(rP(t)-rP(n)))}function r8(e){return e!==e.root&&e.scroll?.wasRoot}let r7=rF({attachResizeListener:(e,t)=>nM(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ie={current:void 0},it=rF({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ie.current){let e=new r7({});e.mount(window),e.setOptions({layoutScroll:!0}),ie.current=e}return ie.current},resetTransform:(e,t)=>
1{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function ir(e,t){let n=nI(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ii(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&q.Gt.postRender(()=>i(t,nH(t)))}class io extends tK{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=ir(e,n);return r.forEach(e=>{let n,r=!1,o=!1,s=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},a=e=>{r=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,s(e))},l=e=>{if("touch"!==e.pointerType){if(r){o=!0;return}s(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||nb.x||nb.y)return;o=!1;let s=t(e,r);"function"==typeof s&&(n=s,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",a,i)},i)}),o}(e,(e,t)=>(ii(this.node,t,"Start"),e=>ii(this.node,e,"End"))))}unmount(){}}class is extends tK{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=(0,nK.F)(nM(this.node.current,"focus",()=>this.onFocus()),nM(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let ia=(e,t)=>!!t&&(e===t||ia(e,t.parentElement)),il=new WeakSet;function iu(e){return t=>{"Enter"===t.key&&e(t)}}function id(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function ic(e){return nG(e)&&!(nb.x||nb.y)}let ih=new WeakSet;function ip(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&q.Gt.postRender(()=>i(t,nH(t)))}class im extends tK{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[r,i,o]=ir(e,n),s=e=>{let r=e.currentTarget;if(!ic(e)||ih.has(e))return;il.add(r),n.stopPropagation&&ih.add(e);let o=t(r,e),s={...i,capture:!0},a=(e,t)=>{window.removeEventListener("pointerup",l,s),window.removeEventListener("pointercancel",u,s),il.has(r)&&il.delete(r),ic(e)&&"function"==typeof o&&o(e,{success:t})},l=e=>{a(e,r===window||r===document||n.useGlobalTarget||ia(r,e.target))},u=e=>{a(e,!1)};window.addEventListener("pointerup",l,s),window.addEventListener("pointercancel",u,s)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,i),nD(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=iu(()=>{if(il.has(n))return;id(n,"down");let e=iu(()=>{id(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>id(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),nR.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(ip(this.node,t,"Start"),(e,{success:t})=>ip(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}let iv=new WeakMap,iy=new WeakMap,ig=e=>{let t=iv.get(e.target);t&&t(e)},ix=e=>{e.forEach(ig)},iw={some:0,all:1};class ib extends tK{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:iw[r]},s=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)};this.stopObserver=function(e,t,n){let r=function({root:e,...t}){let n=e||document;iy.has(n)||iy.set(n,{});let r=iy.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ix,{root:e,...t})),r[i]}(t);return iv.set(e,n),r.observe(e),()=>{iv.delete(e),r.unobserve(e)}}(this.node.current,o,s)}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let iS=function(e,t){if("undefined"==typeof Proxy)return t$;let n=new Map,r=(n,r)=>t$(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,t$(o,void 0,e,t)),n.get(o))})}({animation:{Feature:ng},exit:{Feature:nw},inView:{Feature:ib},tap:{Feature:im},focus:{Feature:is},hover:{Feature:io},pan:{Feature:rn},drag:{Feature:re,ProjectionNode:it,MeasureLayout:rs},layout:{ProjectionNode:it,MeasureLayout:rs}},(e,t)=>t.isSVG??tx(e)?new tn(t):new tv(t,{allowProjection:e!==ty.Fragment}))},29753:(e,t,n)=>{n.d(t,{p:()=>i});var r=n(12115);let i=e=>{let{apiRoute:t,depth:n,refresh:i,serverURL:o}=e,s=(0,r.useRef)(!1),a=(0,r.useCallback)(e=>{((e,t)=>
1e.origin===t&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type)(e,o)&&("function"==typeof i?i():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[i,o]);return(0,r.useEffect)(()=>("undefined"!=typeof window&&window.addEventListener("message",a),s.current||(s.current=!0,(e=>{let{serverURL:t}=e;if("undefined"!=typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:o}),i()),()=>{"undefined"!=typeof window&&window.removeEventListener("message",a)}),[o,a,n,t,i]),null}},31739:(e,t,n)=>{n.d(t,{B:()=>l});var r=n(48895),i=n(37822),o=n(9150),s=n(23919);let a={...i.ai,transform:e=>Math.round((0,r.q)(0,255,e))},l={test:(0,s.$)("rgb","red"),parse:(0,s.q)("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+a.transform(e)+", "+a.transform(t)+", "+a.transform(n)+", "+(0,o.a)(i.X4.transform(r))+")"}},32080:(e,t,n)=>{n.d(t,{b:()=>i});var r=n(58605);let i=e=>e>=1?1:(e*=2)<1?.5*(0,r.dg)(e):.5*(2-Math.pow(2,-10*(e-1)))},33182:(e,t,n)=>{n.d(t,{S:()=>r});let r=e=>!!(e&&e.getVelocity)},33754:(e,t,n)=>{n.d(t,{K:()=>r});let r=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`}},33855:(e,t,n)=>{n.d(t,{X:()=>i});let r=e=>null!==e;function i(e,{repeat:t,repeatType:n="loop"},o,s=1){let a=e.filter(r),l=s<0||t&&"loop"!==n&&t%2==1?0:a.length-1;return l&&void 0!==o?o:a[l]}},34324:(e,t,n)=>{n.d(t,{D:()=>r});let r=e=>Array.isArray(e)&&"number"==typeof e[0]},35626:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},36262:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(6500);let i=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function o(e,t,n,o){return e===t&&n===o?r.l:r=>0===r||1===r?r:i(function(e,t,n,r,o){let s,a,l=0;do(s=i(a=t+(n-t)/2,r,o)-e)>0?n=a:t=a;while(Math.abs(s)>1e-7&&++l<12);return a}(r,0,1,e,n),t,o)}},37822:(e,t,n)=>{n.d(t,{X4:()=>o,ai:()=>i,hs:()=>s});var r=n(48895);let i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o={...i,transform:e=>(0,r.q)(0,1,e)},s={...i,default:1}},38162:(e,t,n)=>{n.d(t,{C1:()=>E,bL:()=>b});var r=n(12115),i=n(94446),o=n(3468),s=n(92556),a=n(23558),l=n(78108),u=n(84288),d=n(76842),c=n(97602),h=n(95155),f="Checkbox",[p,m]=(0,o.A)(f),[v,y]=p(f);function g(e){let{__scopeCheckbox:t,checked:n,children:i,defaultChecked:o,disabled:s,form:l,name:u,onCheckedChange:d,required:c,value:p="on",internal_do_not_use_render:m}=e,[y,g]=(0,a.i)({prop:n,defaultProp:null!=o&&o,onChange:d,caller:f}),[x,w]=r.useState(null),[b,S]=r.useState(null),E=r.useRef(!1),A=!x||!!l||!!x.closest("form"),T={checked:y,disabled:s,setChecked:g,control:x,setControl:w,name:u,form:l,value:p,hasConsumerStoppedPropagationRef:E,required:c,defaultChecked:!k(o)&&o,isFormControl:A,bubbleInput:b,setBubbleInput:S};return(0,h.jsx)(v,{scope:t,...T,children:"function"==typeof m?m(T):i})}var x="CheckboxTrigger",w=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,onKeyDown:o,onClick:a,...l}=e,{control:u,value:d,disabled:f,checked:p,required:m,setControl:v,setChecked:g,hasConsumerStoppedPropagationRef:w,isFormControl:b,bubbleInput:S}=y(x,n),E=(0,i.s)(t,v),A=r.useRef(p);return r.useEffect(()=>{let e=null==u?void 0:u.form;if(e){let t=()=>g(A.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[u,g]),(0,h.jsx)(c.sG.button,{type:"button",role:"checkbox","aria-checked":k(p)?"mixed":p,"aria-required":m,"data-state":C(p),"data-disabled":f?"":void 0,disabled:f,value:d,...l,ref:E,onKeyDown:(0,s.mK)(o,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,s.mK)(a,e=>{g(e=>!!k(e)||!e),S&&b&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())})})});w.displayName=x;var b=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:s,disabled:a,value:l,onCheckedChange:u,form:d,...c}=e;return(0,h.jsx)(g,{__scopeCheckbox:n,checked:i,defaultChecked:o,disabled:a,required:s,onCheckedChange:u,name:r,form:d,value:l,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(w,{...c,ref:t,__scopeCheckbox:n}),r&&(0,h.jsx)(T,{__scopeCheckbox:n})]})}})});b.displayName=f;var S="CheckboxIndicator",E=r.forwardRef((e,t)=>
1{let{__scopeCheckbox:n,forceMount:r,...i}=e,o=y(S,n);return(0,h.jsx)(d.C,{present:r||k(o.checked)||!0===o.checked,children:(0,h.jsx)(c.sG.span,{"data-state":C(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});E.displayName=S;var A="CheckboxBubbleInput",T=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,...o}=e,{control:s,hasConsumerStoppedPropagationRef:a,checked:d,defaultChecked:f,required:p,disabled:m,name:v,value:g,form:x,bubbleInput:w,setBubbleInput:b}=y(A,n),S=(0,i.s)(t,b),E=(0,l.Z)(d),T=(0,u.X)(s);r.useEffect(()=>{if(!w)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!a.current;if(E!==d&&e){let n=new Event("click",{bubbles:t});w.indeterminate=k(d),e.call(w,!k(d)&&d),w.dispatchEvent(n)}},[w,E,d,a]);let C=r.useRef(!k(d)&&d);return(0,h.jsx)(c.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=f?f:C.current,required:p,disabled:m,name:v,value:g,form:x,...o,tabIndex:-1,ref:S,style:{...o.style,...T,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function k(e){return"indeterminate"===e}function C(e){return k(e)?"indeterminate":e?"checked":"unchecked"}T.displayName=A},38857:(e,t,n)=>{n.d(t,{Y:()=>r,t:()=>i});let r=2e4;function i(e){let t=0,n=e.next(t);for(;!n.done&&t<r;)t+=50,n=e.next(t);return t>=r?1/0:t}},39361:(e,t,n)=>{n.d(t,{k:()=>r});let r=(e,t,n)=>e+(t-e)*n},40042:(e,t,n)=>{n.d(t,{W:()=>r});let r={}},40510:(e,t,n)=>{let r;n.d(t,{UC:()=>nI,YJ:()=>nq,In:()=>nP,q7:()=>n0,VF:()=>n4,p4:()=>n2,ZL:()=>nD,bL:()=>nE,wn:()=>n8,PP:()=>n6,l9:()=>nT,WT:()=>nC,LM:()=>nz});var i,o,s,a,l=n(12115),u=n.t(l,2),d=n(47650);function c(e,[t,n]){return Math.min(n,Math.max(t,e))}var h=n(92556);function f(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function p(e,t){var n=f(e,t,"get");return n.get?n.get.call(e):n.value}function m(e,t,n){var r=f(e,t,"set");if(r.set)r.set.call(e,n);else{if(!r.writable)throw TypeError("attempted to set read only private field");r.value=n}return n}var v=n(3468),y=n(94446),g=n(32467),x=n(95155),w=new WeakMap;function b(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=S(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}(e,t);return -1===n?void 0:e[n]}function S(e){return e!=e||0===e?0:Math.trunc(e)}o=new WeakMap,class e extends Map{set(e,t){return w.get(this)&&(this.has(e)?p(this,o)[p(this,o).indexOf(e)]=e:p(this,o).push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),s=p(this,o).length,a=S(e),l=a>=0?a:s+a,u=l<0||l>=s?-1:l;if(u===this.size||i&&u===this.size-1||-1===u)return this.set(t,n),this;let d=this.size+ +!i;a<0&&l++;let c=[...p(this,o)],h=!1;for(let e=l;e<d;e++)if(l===e){let o=c[e];c[e]===t&&(o=c[e+1]),i&&this.delete(t),r=this.get(o),this.set(t,n)}else{h||c[e-1]!==t||(h=!0);let n=c[h?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=p(this,o).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=p(this,o).indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=p(this,o).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=p(this,o).indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return m(this,o,[]),super.clear()}delete(e){let t=super.delete(e);return t&&p(this,o).splice(p(this,o).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=b(p(this,o),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=b(p(this,o),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return p(this,o).indexOf(e)}keyAt(e){return b(p(this,o),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
1}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,o=0,s=null!=i?i:this.at(0);for(let e of this)s=0===o&&1===t.length?e:Reflect.apply(r,this,[s,e,o,this]),o++;return s}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,o=null!=i?i:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);o=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[o,n,e,this])}return o}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=[...this.entries()];return i.splice(...n),new e(i)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,o,{writable:!0,value:void 0}),m(this,o,[...super.keys()]),w.set(this,!0)}};var E=l.createContext(void 0),A=n(97602);function T(e){let t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...e)=>t.current?.(...e),[])}var k=n(4129),C=u[" useEffectEvent ".trim().toString()],P=u[" useInsertionEffect ".trim().toString()],R="dismissableLayer.update",V=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),M=l.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:i=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:c,onDismiss:f,...p}=e,m=l.useContext(V),[v,g]=l.useState(null),w=null!=(r=null==v?void 0:v.ownerDocument)?r:null==(n=globalThis)?void 0:n.document,[,b]=l.useState({}),S=(0,y.s)(t,g),E=Array.from(m.layers),[M]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),I=E.indexOf(M),j=v?E.indexOf(v):-1,O=m.layersWithOutsidePointerEventsDisabled.size>0,N=j>=I,F=l.useRef(!1),_=function(e,t){var n;let{ownerDocument:r=null==(n=globalThis)?void 0:n.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:s}=t,a=T(e),u=l.useRef(!1),d=l.useRef(!1),c=l.useRef(new Map),h=l.useRef(()=>{});return l.useEffect(()=>{function e(){d.current=!1,o.current=!1,c.current.clear()}function t(e){if(!d.current)return;let t=e.target;t instanceof Node&&[...s].some(e=>e.contains(t))||c.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{d.current&&h.current()},0)}function n(e){d.current&&c.current.set(e.type,!1)}let l=t=>{if(t.target&&!u.current){let n=function(){r.removeEventListener("click",h.current);let t=Array.from(c.current.values()).some(Boolean);e(),t||L("dismissableLayer.pointerDownOutside",a,s,{discrete:!0})},s={originalEvent:t};d.current=!0,o.current=i&&0===t.button,c.current.clear(),i&&0===t.button?(r.removeEventListener("click",h.current),h.current=n,r.addEventListener("click",h.current,{once:!0})):n()}else r.removeEventListener("click",h.current),e();u.current=!1},f=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of f)r.addEventListener(e,t,!0),r.addEventListener(e,n);let p=window.setTimeout(()=>{r.addEventListener("pointerdown",l)},0);return()=>{for(let e of(window.clearTimeout(p),r.removeEventListener("pointerdown",l),r.removeEventListener("click",h.current),f))r.removeEventListener(e,t,!0),r.removeEventListener(e,n)}},[r,a,i,o,s]),{onPointerDownCapture:()=>u.current=!0}}(e=>{let t=e.target;if(!(t instanceof Node))return;let n=[...m.branches].some(e=>e.contains(t));N&&!n&&(null==u||u(e),null==c||c(e),e.defaultPrevented||null==f||f())},{ownerDocument:w,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:F,dismissableSurfaces:m.dismissableSurfaces}),B=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=T(e),i=l.useRef(!1);return l.useEffect(()=>{let e=e=>{e.target&&!i.current&&L("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{if(o&&F.current)return;let t=e.target;![...m.branches].some(e=>e.contains(t))&&(null==d||d(e),null==c||c(e),e.defaultPrevented||null==f||f())},w),U=!!v&&j===E.length-1,W=function(e){if("function"==typeof C)return C(e);let t=l.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof P?P(()=>{t.current=e}):(0,k.N)(()=>{t.current=e}),l.useMemo(()=>(...e)=>t.current?.(...e),[])}(e=>{"Escape"===e.key&&(null==a||a(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))});return l.useEffect(()=>{if(U)return w.addEventListener("keydown",W,{capture:!0}),()=>w.removeEventListener("keydown",W,{capture:!0})},[w,U]),l.useEffect(()=>{if(v)return i&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(s=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),D(),()=>{i&&(m.layersWithOutsidePointerEventsDisabled.delete(v),0===m.layersWithOutsidePointerEventsDisabled.size&&(w.body.style.pointerEvents=s))}},[v,w,i,m]),l.useEffect(()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),D())},[v,m]),l.useEffect(()=>{let e=()=>b({});return document.addEventListener(R,e),()=>document.removeEventListener(R,e)},[]),(0,x.jsx)(A.sG.div,{...p,ref:S,style:{pointerEvents:O?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,h.mK)(e.onFocusCapture,B.onFocusCapture),onBlurCapture:(0,h.mK)(e.onBlurCapture,B.onBlurCapture),onPointerDownCapture:(0,h.mK)(e.onPointerDownCapture,_.onPointerDownCapture)})});function D(){let e=new CustomEvent(R);document.dispatchEvent(e)}function L(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?(0,A.hO)(o,s):o.dispatchEvent(s)}M.displayName="DismissableLayer",l.forwardRef((e,t)=>
1{let n=l.useContext(V),r=l.useRef(null),i=(0,y.s)(t,r);return l.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,x.jsx)(A.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var I=0,j=null;function O(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var N="focusScope.autoFocusOnMount",F="focusScope.autoFocusOnUnmount",_={bubbles:!1,cancelable:!0},B=l.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,u]=l.useState(null),d=T(i),c=T(o),h=l.useRef(null),f=(0,y.s)(t,u),p=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let e=function(e){if(p.paused||!a)return;let t=e.target;a.contains(t)?h.current=t:G(h.current,{select:!0})},t=function(e){if(p.paused||!a)return;let t=e.relatedTarget;null!==t&&(a.contains(t)||G(h.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&G(a)});return a&&n.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,a,p.paused]),l.useEffect(()=>{if(a){H.add(p);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(N,_);a.addEventListener(N,d),a.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(G(r,{select:t}),document.activeElement!==n)return}(U(a).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&G(a))}return()=>{a.removeEventListener(N,d),setTimeout(()=>{let t=new CustomEvent(F,_);a.addEventListener(F,c),a.dispatchEvent(t),t.defaultPrevented||G(null!=e?e:document.body,{select:!0}),a.removeEventListener(F,c),H.remove(p)},0)}}},[a,d,c,p]);let m=l.useCallback(e=>{if(!n&&!r||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=U(e);return[W(t,e),W(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&G(o,{select:!0})):(e.preventDefault(),n&&G(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,x.jsx)(A.sG.div,{tabIndex:-1,...s,ref:f,onKeyDown:m})});function U(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function W(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function G(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}B.displayName="FocusScope";var H=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=z(e,t)).unshift(t)},remove(t){var n;null==(n=(e=z(e,t))[0])||n.resume()}}}();function z(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var $=u[" useId ".trim().toString()]||(()=>void 0),K=0;function X(e){let[t,n]=l.useState($());return(0,k.N)(()=>{e||n(e=>e??String(K++))},[e]),e||(t?`radix-${t}`:"")}let q=["top","right","bottom","left"],Y=Math.min,Z=Math.max,J=Math.round,Q=Math.floor,ee=e=>({x:e,y:e}),et={left:"right",right:"left",bottom:"top",top:"bottom"};function en(e,t){return"function"==typeof e?e(t):e}function er(e){return e.split("-")[0]}function ei(e){return e.split("-")[1]}function eo(e){return"x"===e?"y":"x"}function es(e){return"y"===e?"height":"width"}function ea(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function el(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let eu=["left","right"],ed=["right","left"],ec=["top","bottom"],eh=["bottom","top"];function ef(e){let t=er(e);return et[t]+e.slice(t.length)}function ep(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function em(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ev(e,t,n){let r,{reference:i,floating:o}=e,s=ea(t),a=eo(ea(t)),l=es(a),u=er(t),d="y"===s,c=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,f=i[l]/2-o[l]/2;switch(u){case"top":r={x:c,y:i.y-o.height};break;case"bottom":r={x:c,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:h};break;case"left":r={x:i.x-o.width,y:h};break;default:r={x:i.x,y:i.y}}switch(ei(t)){case"start":r[a]-=f*(n&&d?-1:1);break;case"end":r[a]+=f*(n&&d?-1:1)}return r}async function ey(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:h=!1,padding:f=0}=en(t,e),p=ep(f),m=a[h?"floating"===c?"reference":"floating":c],v=em(await o.getClippingRect
1({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),y="floating"===c?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,g=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),x=await (null==o.isElement?void 0:o.isElement(g))&&await (null==o.getScale?void 0:o.getScale(g))||{x:1,y:1},w=em(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:g,strategy:l}):y);return{top:(v.top-w.top+p.top)/x.y,bottom:(w.bottom-v.bottom+p.bottom)/x.y,left:(v.left-w.left+p.left)/x.x,right:(w.right-v.right+p.right)/x.x}}let eg=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:ey},l=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:c}=ev(u,r,l),h=r,f=0,p={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:v,fn:y}=m,{x:g,y:x,data:w,reset:b}=await y({x:d,y:c,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});d=null!=g?g:d,c=null!=x?x:c,p[v]={...p[v],...w},b&&f<50&&(f++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(u=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:d,y:c}=ev(u,h,l)),n=-1)}return{x:d,y:c,placement:h,strategy:i,middlewareData:p}};function ex(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ew(e){return q.some(t=>e[t]>=0)}let eb=new Set(["left","top"]);async function eS(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),s=er(n),a=ei(n),l="y"===ea(n),u=eb.has(s)?-1:1,d=o&&l?-1:1,c=en(t,e),{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&"number"==typeof p&&(f="end"===a?-1*p:p),l?{x:f*d,y:h*u}:{x:h*u,y:f*d}}function eE(){return"undefined"!=typeof window}function eA(e){return eC(e)?(e.nodeName||"").toLowerCase():"#document"}function eT(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ek(e){var t;return null==(t=(eC(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eC(e){return!!eE()&&(e instanceof Node||e instanceof eT(e).Node)}function eP(e){return!!eE()&&(e instanceof Element||e instanceof eT(e).Element)}function eR(e){return!!eE()&&(e instanceof HTMLElement||e instanceof eT(e).HTMLElement)}function eV(e){return!!eE()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof eT(e).ShadowRoot)}function eM(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=e_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function eD(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let eL=/transform|translate|scale|rotate|perspective|filter/,eI=/paint|layout|strict|content/,ej=e=>!!e&&"none"!==e;function eO(e){let t=eP(e)?e_(e):e;return ej(t.transform)||ej(t.translate)||ej(t.scale)||ej(t.rotate)||ej(t.perspective)||!eN()&&(ej(t.backdropFilter)||ej(t.filter))||eL.test(t.willChange||"")||eI.test(t.contain||"")}function eN(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function eF(e){return/^(html|body|#document)$/.test(eA(e))}function e_(e){return eT(e).getComputedStyle(e)}function eB(e){return eP(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eU(e){if("html"===eA(e))return e;let t=e.assignedSlot||e.parentNode||eV(e)&&e.host||ek(e);return eV(t)?t.host:t}function eW(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=eU(t);return eF(n)?t.ownerDocument?t.ownerDocument.body:t.body:eR(n)&&eM(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=eT(i);if(!o)return t.concat(i,eW(i,[],n));{let e=eG(s);
1return t.concat(s,s.visualViewport||[],eM(i)?i:[],e&&n?eW(e):[])}}function eG(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eH(e){let t=e_(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=eR(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=J(n)!==o||J(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function ez(e){return eP(e)?e:e.contextElement}function e$(e){let t=ez(e);if(!eR(t))return ee(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=eH(t),s=(o?J(n.width):n.width)/r,a=(o?J(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let eK=ee(0);function eX(e){let t=eT(e);return eN()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eK}function eq(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=ez(e),a=ee(1);t&&(r?eP(r)&&(a=e$(r)):a=e$(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===eT(s))&&i)?eX(s):ee(0),u=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,c=o.width/a.x,h=o.height/a.y;if(s){let e=eT(s),t=r&&eP(r)?eT(r):r,n=e,i=eG(n);for(;i&&r&&t!==n;){let e=e$(i),t=i.getBoundingClientRect(),r=e_(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,d*=e.y,c*=e.x,h*=e.y,u+=o,d+=s,i=eG(n=eT(i))}}return em({width:c,height:h,x:u,y:d})}function eY(e,t){let n=eB(e).scrollLeft;return t?t.left+n:eq(ek(e)).left+n}function eZ(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eY(e,n),y:n.top+t.scrollTop}}function eJ(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=eT(e),r=ek(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let e=eN();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}let u=eY(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-i);s<=25&&(o-=s)}else u<=25&&(o+=u);return{width:o,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){let t=ek(e),n=eB(e),r=e.ownerDocument.body,i=Z(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Z(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+eY(e),a=-n.scrollTop;return"rtl"===e_(r).direction&&(s+=Z(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(ek(e));else if(eP(t))r=function(e,t){let n=eq(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=eR(e)?e$(e):ee(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y;return{width:s,height:a,x:i*o.x,y:r*o.y}}(t,n);else{let n=eX(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return em(r)}function eQ(e){return"static"===e_(e).position}function e0(e,t){if(!eR(e)||"fixed"===e_(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ek(e)===n&&(n=n.ownerDocument.body),n}function e1(e,t){var n;let r=eT(e);if(eD(e))return r;if(!eR(e)){let t=eU(e);for(;t&&!eF(t);){if(eP(t)&&!eQ(t))return t;t=eU(t)}return r}let i=e0(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(eA(n)))&&eQ(i);)i=e0(i,t);return i&&eF(i)&&eQ(i)&&!eO(i)?r:i||function(e){let t=eU(e);for(;eR(t)&&!eF(t);){if(eO(t))return t;if(eD(t))break;t=eU(t)}return null}(e)||r}let e2=async function(e){let t=this.getOffsetParent||e1,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=eR(t),i=ek(t),o="fixed"===n,s=eq(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=ee(0);if(r||!r&&!o)if(("body"!==eA(t)||eM(i))&&(a=eB(t)),r){let e=eq(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=eY(i));o&&!r&&i&&(l.x=eY(i));let u=!i||r||o?ee(0):eZ(i,a);return{x:s.left+a.scrollLeft-l.x-u.x,y:s.top+a.scrollTop-l.y-u.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},e5={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,s=ek(r),a=!!t&&eD(t.floating);if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=ee(1),d=ee(0),c=eR(r);if((c||!c&&!o)&&(("body"!==eA(r)||eM(s))&&(l=eB(r)),c)){let e=eq(r);u=e$(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let h=!s||c||o?ee(0):eZ(s,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-l.scrollTop*u.y+d.y+h.y}},getDocumentElement:ek,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?eD(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eW(e,[],!1).filter(e=>eP(e)&&"body"!==eA(e)),i=null,o="fixed"===e_(e).position,s=o?eU(e):e;for(;eP(s)&&!eF(s);){let t=e_(s),n=eO(s);n||"fixed"!==t.position||(i=null),(o?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||eM(s)&&!n&&function e(t,n){let r=eU(t);return!(r===n||!eP(r)||eF(r))&&("fixed"===e_(r).position||e(r,n))}(e,s)))?i=t:r=r.filter(e=>e!==s),s=eU(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=eJ(t,o[0],i),a=s.top,l=s.right,u=s.bottom,d=s.left;for(let e=1;e<o.length;e++){let n=eJ(t,o[e],i);a=Z(n.top,a),l=Y(n.right,l),u=Y(n.bottom,u),d=Z(n.left,d)}return{width:l-d,height:u-a,x:d,y:a}},getOffsetParent:e1,getElementRects:e2,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eH(e);return{width:t,height:n}},getScale:e$,isElement:eP,isRTL:function(e){return"rtl"===e_(e).direction}};function e4(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let e3=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=en(e,t)||{};if(null==u)return{};let c=ep(d),h={x:n,y:r},f=eo(ea(i)),p=es(f),m=await s.getDimensions(u),v="y"===f,y=v?"clientHeight":"clientWidth",g=o.reference[p]+o.reference[f]-h[f]-o.floating[p],x=h[f]-o.reference[f],w=await (null==s.getOffsetParent?void 0:s.getOffsetParent(u)),b=w?w[y]:0;b&&await (null==s.isElement?void 0:s.isElement(w))||(b=a.floating[y]||o.floating[p]);let S=b/2-m[p]/2-1,E=Y(c[v?"top":"left"],S),A=Y(c[v?"bottom":"right"],S),T=b-m[p]-A,k=b/2-m[p]/2+(g/2-x/2),C=Z(E,Y(k,T)),P=!l.arrow&&null!=ei(i)&&k!==C&&o.reference[p]/2-(k<E?E:A)-m[p]/2<0,R=P?k<E?k-E:k-T:0;return{[f]:h[f]+R,data:{[f]:C,centerOffset:k-C-R,...P&&{alignmentOffset:R}},reset:P}}});var e6="undefined"!=typeof document?l.useLayoutEffect:function(){};function e9(e,t){let n,r,i;if(e===t)return!0;
1if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!e9(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!e9(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function e8(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e7(e,t){let n=e8(e);return Math.round(t*n)/n}function te(e){let t=l.useRef(e);return e6(()=>{t.current=e}),t}var tt=l.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,x.jsx)(A.sG.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,x.jsx)("polygon",{points:"0,0 30,0 15,10"})})});tt.displayName="Arrow";var tn=n(84288),tr="Popper",[ti,to]=(0,v.A)(tr),[ts,ta]=ti(tr),tl=e=>{let{__scopePopper:t,children:n}=e,[r,i]=l.useState(null),[o,s]=l.useState(void 0);return(0,x.jsx)(ts,{scope:t,anchor:r,onAnchorChange:i,placementState:o,setPlacementState:s,children:n})};tl.displayName=tr;var tu="PopperAnchor",td=l.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=ta(tu,n),s=l.useRef(null),a=o.onAnchorChange,u=l.useCallback(e=>{s.current=e,e&&a(e)},[a]),d=(0,y.s)(t,u),c=l.useRef(null);l.useEffect(()=>{if(!r)return;let e=c.current;c.current=r.current,e!==c.current&&a(c.current)});let h=o.placementState&&tw(o.placementState),f=null==h?void 0:h[0],p=null==h?void 0:h[1];return r?null:(0,x.jsx)(A.sG.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...i,ref:d})});td.displayName=tu;var tc="PopperContent",[th,tf]=ti(tc),tp=l.forwardRef((e,t)=>{var n,r,i,o,s,a,u,c;let{__scopePopper:h,side:f="bottom",sideOffset:p=0,align:m="center",alignOffset:v=0,arrowPadding:g=0,avoidCollisions:w=!0,collisionBoundary:b=[],collisionPadding:S=0,sticky:E="partial",hideWhenDetached:C=!1,updatePositionStrategy:P="optimized",onPlaced:R,...V}=e,M=ta(tc,h),[D,L]=l.useState(null),I=(0,y.s)(t,L),[j,O]=l.useState(null),N=(0,tn.X)(j),F=null!=(u=null==N?void 0:N.width)?u:0,_=null!=(c=null==N?void 0:N.height)?c:0,B="number"==typeof S?S:{top:0,right:0,bottom:0,left:0,...S},U=Array.isArray(b)?b:[b],W=U.length>0,G={padding:B,boundary:U.filter(tg),altBoundary:W},{refs:H,floatingStyles:z,placement:$,isPositioned:K,middlewareData:X}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[h,f]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=l.useState(r);e9(p,r)||m(r);let[v,y]=l.useState(null),[g,x]=l.useState(null),w=l.useCallback(e=>{e!==A.current&&(A.current=e,y(e))},[]),b=l.useCallback(e=>{e!==T.current&&(T.current=e,x(e))},[]),S=o||v,E=s||g,A=l.useRef(null),T=l.useRef(null),k=l.useRef(h),C=null!=u,P=te(u),R=te(i),V=te(c),M=l.useCallback(()=>{if(!A.current||!T.current)return;let e={placement:t,strategy:n,middleware:p};R.current&&(e.platform=R.current),((e,t,n)=>{let r=new Map,i={platform:e5,...n},o={...i.platform,_c:r};return eg(e,t,{...i,platform:o})})(A.current,T.current,e).then(e=>{let t={...e,isPositioned:!1!==V.current};D.current&&!e9(k.current,t)&&(k.current=t,d.flushSync(()=>{f(t)}))})},[p,t,n,R,V]);e6(()=>{!1===c&&k.current.isPositioned&&(k.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let D=l.useRef(!1);e6(()=>(D.current=!0,()=>{D.current=!1}),[]),e6(()=>{if(S&&(A.current=S),E&&(T.current=E),S&&E){if(P.current)return P.current(S,E,M);M()}},[S,E,M,P,C]);let L=l.useMemo(()=>({reference:A,floating:T,setReference:w,setFloating:b}),[w,b]),I=l.useMemo(()=>({reference:S,floating:E}),[S,E]),j=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!I.floating)return e;let t=e7(I.floating,h.x),r=e7(I.floating,h.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...e8(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,I.floating,h.x,h.y]);return l.useMemo(()=>({...h,update:M,refs:L,elements:I,floatingStyles:j}),[h,M,L,I,j])}({strategy:"fixed",placement:f+("center"!==m?"-"+m:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,d=ez(e),c=o||s?[...d?eW(d):[],...t?eW(t):[]]:[];
1c.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let h=d&&l?function(e,t){let n,r=null,i=ek(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();let u=e.getBoundingClientRect(),{left:d,top:c,width:h,height:f}=u;if(a||t(),!h||!f)return;let p=Q(c),m=Q(i.clientWidth-(d+h)),v={rootMargin:-p+"px "+-m+"px "+-Q(i.clientHeight-(c+f))+"px "+-Q(d)+"px",threshold:Z(0,Y(1,l))||1},y=!0;function g(t){let r=t[0].intersectionRatio;if(r!==l){if(!y)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||e4(u,e.getBoundingClientRect())||s(),y=!1}try{r=new IntersectionObserver(g,{...v,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(g,v)}r.observe(e)}(!0),o}(d,n):null,f=-1,p=null;a&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),d&&!u&&p.observe(d),t&&p.observe(t));let m=u?eq(e):null;return u&&function t(){let r=eq(e);m&&!e4(m,r)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===P})},elements:{reference:M.anchor},middleware:[((e,t)=>{let n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:s,middlewareData:a}=t,l=await eS(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:p+_,alignmentAxis:v}),w&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=en(e,t),d={x:n,y:r},c=await o.detectOverflow(t,u),h=ea(er(i)),f=eo(h),p=d[f],m=d[h];if(s){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+c[e],r=p-c[t];p=Z(n,Y(p,r))}if(a){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=m+c[e],r=m-c[t];m=Z(n,Y(m,r))}let v=l.fn({...t,[f]:p,[h]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[f]:s,[h]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?((e,t)=>({fn:function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=en(e,t),d={x:n,y:r},c=ea(i),h=eo(c),f=d[h],p=d[c],m=en(a,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+v.mainAxis,n=o.reference[h]+o.reference[e]-v.mainAxis;f<t?f=t:f>n&&(f=n)}if(u){var y,g;let e="y"===h?"width":"height",t=eb.has(er(i)),n=o.reference[c]-o.floating[e]+(t&&(null==(y=s.offset)?void 0:y[c])||0)+(t?0:v.crossAxis),r=o.reference[c]+o.reference[e]+(t?0:(null==(g=s.offset)?void 0:g[c])||0)-(t?v.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[h]:f,[c]:p}}}}(e).fn,options:[e,t]}))():void 0,...G}),w&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,s;let{placement:a,middlewareData:l,rects:u,initialPlacement:d,platform:c,elements:h}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...x}=en(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let w=er(a),b=ea(d),S=er(d)===d,E=await (null==c.isRTL?void 0:c.isRTL(h.floating)),A=m||(S||!g?[ef(d)]:function(e){let t=ef(e);return[el(e),t,el(t)]}(d)),T="none"!==y;!m&&T&&A.push(...function(e,t,n,r){let i=ei(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?ed:eu;return t?eu:ed;case"left":case"right":return t?ec:eh;default:return[]}}(er(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(el)))),o}(d,g,y,E));let k=[d,...A],C=await c.detectOverflow(t,x),P=[],R=(null==(r=l.flip)?void 0:r.overflows)||[];if(f&&P.push(C[w]),p){let e=function(e,t,n){void 0===n&&(n=!1);let r=ei(e),i=eo(ea(e)),o=es(i),s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=ef(s)),[s,ef(s)]}(a,u,E);P.push(C[e[0]],C[e[1]])}if(R=[...R,{placement:a,overflows:P}],!P.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=k[e];if(t&&("alignment"!==p||b===ea(t)||R.every(e=>ea(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:R},reset:{placement:t}};let n=null==(o=R.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(v){case"bestFit":{let e=null==(s=R.filter(e=>{if(T){let t=ea(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=d}if(a!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...G}),((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let i,o,{placement:s,rects:a,platform:l,elements:u}=t,{apply:d=()=>{},...c}=en(e,t),h=await l.detectOverflow(t,c),f=er(s),p=ei(s),m="y"===ea(s),{width:v,height:y}=a.floating;"top"===f||"bottom"===f?(i=f,o=p===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(o=f,i="end"===p?"top":"bottom");let g=y-h.top-h.bottom,x=v-h.left-h.right,w=Y(y-h[i],g),b=Y(v-h[o],x),S=!t.middlewareData.shift,E=w,A=b;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(A=x),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=g),S&&!p){let e=Z(h.left,0),t=Z(h.right,0),n=Z(h.top,0),r=Z(h.bottom,0);m?A=v-2*(0!==e||0!==t?e+t:Z(h.left,h.right)):E=y-2*(0!==n||0!==r?n+r:Z(h.top,h.bottom))}await d({...t,availableWidth:A,availableHeight:E});let T=await l.getDimensions(u.floating);return v!==T.width||y!==T.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...G,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:s}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(i,"px")),a.setProperty("--radix-popper-anchor-width","".concat(o,"px")),a.setProperty("--radix-popper-anchor-height","".concat(s,"px"))}}),j&&((e,t)=>{let n=(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?e3({element:n.current,padding:r}).fn(t):{}:n?e3({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}})({element:j,padding:g}),tx({arrowWidth:F,arrowHeight:_}),C&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=en(e,t);switch(i){case"referenceHidden":{let e=ex(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ew(e)}}}case"escaped":{let e=ex(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ew(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({strategy:"referenceHidden",...G,boundary:W?G.boundary:void 0})]}),q=M.setPlacementState;(0,k.N)(()=>(q($),()=>{q(void 0)}),[$,q]);let[J,ee]=tw($),et=T(R);(0,k.N)(()=>{K&&(null==et||et())},[K,et]);let ep=null==(n=X.arrow)?void 0:n.x,em=null==(r=X.arrow)?void 0:r.y,ev=(null==(i=X.arrow)?void 0:i.centerOffset)!==0,[ey,eE]=l.useState();return(0,k.N)(()=>{D&&eE(window.getComputedStyle(D).zIndex)},[D]),(0,x.jsx)("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:K?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ey,"--radix-popper-transform-origin":[null==(o=X.transformOrigin)?void 0:o.x,null==(s=X.transformOrigin)?void 0:s.y].join(" "),...(null==(a=X.hide)?void 0:a.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,x.jsx)(th,{scope:h,placedSide:J,placedAlign:ee,onArrowChange:O,arrowX:ep,arrowY:em,shouldHideArrow:ev,children:(0,x.jsx)(A.sG.div,{"data-side":J,"data-align":ee,...V,ref:I,style:{...V.style,animation:K?void 0:"none"}})})})});tp.displayName=tc;var tm="PopperArrow",tv={top:"bottom",right:"left",bottom:"top",left:"right"},ty=l.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=tf(tm,n),o=tv[i.placedSide];return(0,x.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,x.jsx)(tt,{...r,ref:t,style:{...r.style,display:"block"}})})});function tg(e){return null!==e}ty.displayName=tm;var tx=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,s;let{placement:a,rects:l,middlewareData:u}=t,d=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,c=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[f,p]=tw(a),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!=(o=null==(r=u.arrow)?void 0:r.x)?o:0)+c/2,y=(null!=(s=null==(i=u.arrow)?void 0:i.y)?s:0)+h/2,g="",x="";return"bottom"===f?(g=d?m:"".concat(v,"px"),x="".concat(-h,"px")):"top"===f?(g=d?m:"".concat(v,"px"),x="".concat(l.floating.height+h,"px")):"right"===f?(g="".concat(-h,"px"),x=d?m:"".concat(y,"px")):"left"===f&&(g="".concat(l.floating.width+h,"px"),x=d?m:"".concat(y,"px")),{data:{x:g,y:x}}}});function tw(e){let[t,n="center"]=e.split("-");return[t,n]}var tb=l.forwardRef((e,t)=>
1{var n,r;let{container:i,...o}=e,[s,a]=l.useState(!1);(0,k.N)(()=>a(!0),[]);let u=i||s&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return u?d.createPortal((0,x.jsx)(A.sG.div,{...o,ref:t}),u):null});tb.displayName="Portal";var tS=n(76842),tE=n(23558),tA=n(78108),tT=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});l.forwardRef((e,t)=>(0,x.jsx)(A.sG.span,{...e,ref:t,style:{...tT,...e.style}})).displayName="VisuallyHidden";var tk=new WeakMap,tC=new WeakMap,tP={},tR=0,tV=function(e){return e&&(e.host||tV(e.parentNode))},tM=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tV(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});tP[n]||(tP[n]=new WeakMap);var o=tP[n],s=[],a=new Set,l=new Set(i),u=function(e){!e||a.has(e)||(a.add(e),u(e.parentNode))};i.forEach(u);var d=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))d(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(tk.get(e)||0)+1,u=(o.get(e)||0)+1;tk.set(e,l),o.set(e,u),s.push(e),1===l&&i&&tC.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return d(t),a.clear(),tR++,function(){s.forEach(function(e){var t=tk.get(e)-1,i=o.get(e)-1;tk.set(e,t),o.set(e,i),t||(tC.has(e)||e.removeAttribute(r),tC.delete(e)),i||e.removeAttribute(n)}),--tR||(tk=new WeakMap,tk=new WeakMap,tC=new WeakMap,tP={})}},tD=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),tM(r,i,n,"aria-hidden")):function(){return null}},tL=function(){return(tL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function tI(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}Object.create;Object.create;var tj=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),tO="width-before-scroll-bar";function tN(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tF="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,t_=new WeakMap;function tB(e){return e}var tU=function(e){void 0===e&&(e={});var t,n,r,i=(void 0===t&&(t=tB),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(o)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}});return i.options=tL({async:!0,ssr:!1},e),i}(),tW=function(){},tG=l.forwardRef(function(e,t){var n,r,i,o,s=l.useRef(null),a=l.useState({onScrollCapture:tW,onWheelCapture:tW,onTouchMoveCapture:tW}),u=a[0],d=a[1],c=e.forwardProps,h=e.children,f=e.className,p=e.removeScrollBar,m=e.enabled,v=e.shards,y=e.sideCar,g=e.noRelative,x=e.noIsolation,w=e.inert,b=e.allowPinchZoom,S=e.as,E=e.gapMode,A=tI(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=(n=[s,t],r=function(e){return n.forEac
1h(function(t){return tN(t,e)})},(i=(0,l.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,o=i.facade,tF(function(){var e=t_.get(o);if(e){var t=new Set(e),r=new Set(n),i=o.current;t.forEach(function(e){r.has(e)||tN(e,null)}),r.forEach(function(e){t.has(e)||tN(e,i)})}t_.set(o,n)},[n]),o),k=tL(tL({},A),u);return l.createElement(l.Fragment,null,m&&l.createElement(y,{sideCar:tU,removeScrollBar:p,shards:v,noRelative:g,noIsolation:x,inert:w,setCallbacks:d,allowPinchZoom:!!b,lockRef:s,gapMode:E}),c?l.cloneElement(l.Children.only(h),tL(tL({},k),{ref:T})):l.createElement(void 0===S?"div":S,tL({},k,{className:f,ref:T}),h))});tG.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tG.classNames={fullWidth:tO,zeroRight:tj};var tH=function(e){var t=e.sideCar,n=tI(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return l.createElement(r,tL({},n))};tH.isSideCarExport=!0;var tz=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=a||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},t$=function(){var e=tz();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tK=function(){var e=t$();return function(t){return e(t.styles,t.dynamic),null}},tX={left:0,top:0,right:0,gap:0},tq=function(e){return parseInt(e||"",10)||0},tY=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[tq(n),tq(r),tq(i)]},tZ=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tX;var t=tY(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tJ=tK(),tQ="data-scroll-locked",t0=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(a,"px ").concat(r,";\n  }\n  body[").concat(tQ,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(tj," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(tO," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(tj," .").concat(tj," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(tO," .").concat(tO," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(tQ,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},t1=function(){var e=parseInt(document.body.getAttribute(tQ)||"0",10);return isFinite(e)?e:0},t2=function(){l.useEffect(function(){return document.body.setAttribute(tQ,(t1()+1).toString()),function(){var e=t1()-1;e<=0?document.body.removeAttribute(tQ):document.body.setAttribute(tQ,e.toString())}},[])},t5=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;t2();var o=l.useMemo(function(){return tZ(i)},[i]);return l.createElement(tJ,{styles:t0(o,!t,i,n?"":"!important")})},t4=!1;if("undefined"!=typeof window)try{var t3=Object.defineProperty({},"passive",{get:function(){return t4=!0,!0}});window.addEventListener("test",t3,t3),window.removeEventListener("test",t3,t3)}catch(e){t4=!1}var t6=!!t4&&{passive:!1},t9=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},t8=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),t7(e,r)){var i=ne(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},t7=function(e,t){return"v"===e?t9(t,"overflowY"):t9(t,"overflowX")},ne=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},nt=function(e,t,n,r,i){var o,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),a=s*r,l=n.target,u=t.contains(l),d=!1,c=a>0,h=0,f=0;do{if(!l)break;var p=ne(e,l),m=p[0],v=p[1]-p[2]-s*m;(m||v)&&t7(e,l)&&(h+=v,f+=m);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return c&&(i&&1>Math.abs(h)||!i&&a>h)?d=!0:!c&&(i&&1>Math.abs(f)||!i&&-a>f)&&(d=!0),d},nn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nr=function(e){return[e.deltaX,e.deltaY]},ni=function(e){return e&&"current"in e?e.current:e},no=0,ns=[];let na=(i=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),i=l.useState(no++)[0],o=l.useState(tK)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}
1)([e.lockRef.current],(e.shards||[]).map(ni),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,o=nn(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],d=e.target,c=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===c&&"range"===d.type)return!1;var h=window.getSelection(),f=h&&h.anchorNode;if(f&&(f===d||f.contains(d)))return!1;var p=t8(c,d);if(!p)return!0;if(p?i=c:(i="v"===c?"h":"v",p=t8(c,d)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var m=r.current||i;return nt(m,t,e,"h"===m?l:u,!0)},[]),u=l.useCallback(function(e){if(ns.length&&ns[ns.length-1]===o){var n="deltaY"in e?nr(e):nn(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(ni).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?a(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=l.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=l.useCallback(function(e){n.current=nn(e),r.current=void 0},[]),h=l.useCallback(function(t){d(t.type,nr(t),t.target,a(t,e.lockRef.current))},[]),f=l.useCallback(function(t){d(t.type,nn(t),t.target,a(t,e.lockRef.current))},[]);l.useEffect(function(){return ns.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",u,t6),document.addEventListener("touchmove",u,t6),document.addEventListener("touchstart",c,t6),function(){ns=ns.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,t6),document.removeEventListener("touchmove",u,t6),document.removeEventListener("touchstart",c,t6)}},[]);var p=e.removeScrollBar,m=e.inert;return l.createElement(l.Fragment,null,m?l.createElement(o,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?l.createElement(t5,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},tU.useMedium(i),tH);var nl=l.forwardRef(function(e,t){return l.createElement(tG,tL({},e,{ref:t,sideCar:na}))});nl.classNames=tG.classNames;var nu=[" ","Enter","ArrowUp","ArrowDown"],nd=[" ","Enter"],nc="Select",[nh,nf,np]=function(e){let t=e+"CollectionProvider",[n,r]=(0,v.A)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,r=l.useRef(null),o=l.useRef(new Map).current;return(0,x.jsx)(i,{scope:t,itemMap:o,collectionRef:r,children:n})};s.displayName=t;let a=e+"CollectionSlot",u=(0,g.TL)(a),d=l.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=(0,y.s)(t,i.collectionRef);return(0,x.jsx)(u,{ref:s,children:r})});d.displayName=a;let c=e+"CollectionItemSlot",h="data-radix-collection-item",f=(0,g.TL)(c),p=l.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,s=l.useRef(null),a=(0,y.s)(t,s),u=o(c,n);return l.useEffect(()=>(u.itemMap.set(s,{ref:s,...i}),()=>void u.itemMap.delete(s))),(0,x.jsx)(f,{...{[h]:""},ref:a,children:r})});return p.displayName=c,[{Provider:s,Slot:d,ItemSlot:p},function(t){let n=o(e+"CollectionConsumer",t);return l.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(nc),[nm,nv]=(0,v.A)(nc,[np,to]),ny=to(),[ng,nx]=nm(nc),[nw,nb]=nm(nc);function nS(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:s,defaultValue:a,onValueChange:u,dir:d,name:c,autoComplete:h,disabled:f,required:p,form:m,internal_do_not_use_render:v}=e,y=ny(t),[g,w]=l.useState(null),[b,S]=l.useState(null),[A,T]=l.useState(!1),k=function(e){let t=l.useContext(E);return e||t||"ltr"}(d),[C,P]=(0,tE.i)({prop:r,defaultProp:null!=i&&i,onChange:o,caller:nc}),[R,V]=(0,tE.i)({prop:s,defaultProp:a,onChange:u,caller:nc}),M=l.useRef(null),D=!g||!!m||!!g.closest("form"),[L,I]=l.useState(new Set),j=X(),O=Array.from(L).map(e=>e.props.value).join(";"),N=l.useCallback(e=>{I(t=>new Set(t).add(e))},[]),F=l.useCallback(e=>{I(t=>{let n=new Set(t);return n.delete(e),n})},[]),_={required:p,trigger:g,onTriggerChange:w,valueNode:b,onValueNodeChange:S,valueNodeHasChildren:A,onValueNodeHasChildrenChange:T,contentId:j,value:R,onValueChange:V,open:C,onOpenChange:P,dir:k,triggerPointerDownPosRef:M,disabled:f,name:c,autoComplete:h,form:m,nativeOptions:L,nativeSelectKey:O,isFormControl:D};return(0,x.jsx)(tl,{...y,children:(0,x.jsx)(ng,{scope:t,..._,children:(0,x.jsx)(nh.Provider,{scope:t,children:(0,x.jsx)(nw,{scope:t,onNativeOptionAdd:N,onNativeOptionRemove:F,children:"function"==typeof v?v(_):n})})})})}nS.displayName="SelectProvider";var nE=e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,x.jsx)(nS,{__scopeSelect:t,...r,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,x.jsxs)(x.Fragment,{children:[n,r?(0,x.jsx)(rn,{__scopeSelect:t}):null]})}})};nE.displayName=nc;var nA="SelectTrigger",nT=l.forwardRef((e,t)=>
1{let{__scopeSelect:n,disabled:r=!1,...i}=e,o=ny(n),s=nx(nA,n),a=s.disabled||r,u=(0,y.s)(t,s.onTriggerChange),d=nf(n),c=l.useRef("touch"),[f,p,m]=ri(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),r=ro(t,e,n);void 0!==r&&s.onValueChange(r.value)}),v=e=>{a||(s.onOpenChange(!0),m()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,x.jsx)(td,{asChild:!0,...o,children:(0,x.jsx)(A.sG.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":rr(s.value)?"":void 0,...i,ref:u,onClick:(0,h.mK)(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==c.current&&v(e)}),onPointerDown:(0,h.mK)(i.onPointerDown,e=>{c.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(v(e),e.preventDefault())}),onKeyDown:(0,h.mK)(i.onKeyDown,e=>{let t=""!==f.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),(!t||" "!==e.key)&&nu.includes(e.key)&&(v(),e.preventDefault())})})})});nT.displayName=nA;var nk="SelectValue",nC=l.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:o,placeholder:s="",...a}=e,u=nx(nk,n),{onValueNodeHasChildrenChange:d}=u,c=void 0!==o,h=(0,y.s)(t,u.onValueNodeChange);(0,k.N)(()=>{d(c)},[d,c]);let f=rr(u.value);return(0,x.jsx)(A.sG.span,{...a,asChild:!f&&a.asChild,ref:h,style:{pointerEvents:"none"},children:(0,x.jsx)(l.Fragment,{children:f?s:o},f?"placeholder":"value")})});nC.displayName=nk;var nP=l.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,x.jsx)(A.sG.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});nP.displayName="SelectIcon";var nR="SelectPortal",[nV,nM]=nm(nR,{forceMount:void 0}),nD=e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,x.jsx)(nV,{scope:e.__scopeSelect,forceMount:n,children:(0,x.jsx)(tb,{asChild:!0,...r})})};nD.displayName=nR;var nL="SelectContent",nI=l.forwardRef((e,t)=>{let n=nM(nL,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,o=nx(nL,e.__scopeSelect),[s,a]=l.useState();return(0,k.N)(()=>{a(new DocumentFragment)},[]),(0,x.jsx)(tS.C,{present:r||o.open,children:e=>{let{present:n}=e;return n?(0,x.jsx)(n_,{...i,ref:t}):(0,x.jsx)(nj,{...i,fragment:s})}})});nI.displayName=nL;var nj=l.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,fragment:i}=e;return i?d.createPortal((0,x.jsx)(nO,{scope:n,children:(0,x.jsx)(nh.Slot,{scope:n,children:(0,x.jsx)("div",{ref:t,children:r})})}),i):null});nj.displayName="SelectContentFragment";var[nO,nN]=nm(nL),nF=(0,g.TL)("SelectContent.RemoveScroll"),n_=l.forwardRef((e,t)=>{let{__scopeSelect:n}=e,{position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:s,side:a,sideOffset:u,align:d,alignOffset:c,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:v,hideWhenDetached:g,avoidCollisions:w,...b}=e,S=nx(nL,n),[E,A]=l.useState(null),[T,k]=l.useState(null),C=(0,y.s)(t,A),[P,R]=l.useState(null),[V,D]=l.useState(null),L=nf(n),[N,F]=l.useState(!1),_=l.useRef(!1);l.useEffect(()=>{if(E)return tD(E)},[E]),l.useEffect(()=>{j||(j={start:O(),end:O()});let{start:e,end:t}=j;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),I++,()=>{1===I&&(null==j||j.start.remove(),null==j||j.end.remove(),j=null),I=Math.max(0,I-1)}},[]);let U=l.useCallback(e=>{let[t,...n]=L().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&T&&(T.scrollTop=0),n===r&&T&&(T.scrollTop=T.scrollHeight),null==n||n.focus(),document.activeElement!==i))return},[L,T]),W=l.useCallback(()=>U([P,E]),[U,P,E]);l.useEffect(()=>{N&&W()},[N,W]);let{onOpenChange:G,triggerPointerDownPosRef:H}=S;l.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{var n,r,i,o;e={x:Math.abs(Math.round(t.pageX)-(null!=(i=null==(n=H.current)?void 0:n.x)?i:0)),y:Math.abs(Math.round(t.pageY)-(null!=(o=null==(r=H.current)?void 0:r.y
1)?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(E)||G(!1),document.removeEventListener("pointermove",t),H.current=null};return null!==H.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[E,G,H]),l.useEffect(()=>{let e=()=>G(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[G]);let[z,$]=ri(e=>{let t=L().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=ro(t,e,n);r&&setTimeout(()=>{var e;return null==(e=r.ref.current)?void 0:e.focus()})}),K=l.useCallback((e,t,n)=>{let r=!_.current&&!n;(void 0!==S.value&&S.value===t||r)&&(R(e),r&&(_.current=!0))},[S.value]),X=l.useCallback(()=>null==E?void 0:E.focus(),[E]),q=l.useCallback((e,t,n)=>{let r=!_.current&&!n;(void 0!==S.value&&S.value===t||r)&&D(e)},[S.value]),Y="popper"===r?nU:nB,Z=Y===nU?{side:a,sideOffset:u,align:d,alignOffset:c,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:v,hideWhenDetached:g,avoidCollisions:w}:{};return(0,x.jsx)(nO,{scope:n,content:E,viewport:T,onViewportChange:k,itemRefCallback:K,selectedItem:P,onItemLeave:X,itemTextRefCallback:q,focusSelectedItem:W,selectedItemText:V,position:r,isPositioned:N,searchRef:z,children:(0,x.jsx)(nl,{as:nF,allowPinchZoom:!0,children:(0,x.jsx)(B,{asChild:!0,trapped:S.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,h.mK)(i,e=>{var t;null==(t=S.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,x.jsx)(M,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>S.onOpenChange(!1),children:(0,x.jsx)(Y,{role:"listbox",id:S.contentId,"data-state":S.open?"open":"closed",dir:S.dir,onContextMenu:e=>e.preventDefault(),...b,...Z,onPlaced:()=>F(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:(0,h.mK)(b.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||$(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>U(t)),e.preventDefault()}})})})})})})});n_.displayName="SelectContentImpl";var nB=l.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,o=nx(nL,n),s=nN(nL,n),[a,u]=l.useState(null),[d,h]=l.useState(null),f=(0,y.s)(t,h),p=nf(n),m=l.useRef(!1),v=l.useRef(!0),{viewport:g,selectedItem:w,selectedItemText:b,focusSelectedItem:S}=s,E=l.useCallback(()=>{if(o.trigger&&o.valueNode&&a&&d&&g&&w&&b){let e=o.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),i=b.getBoundingClientRect();if("rtl"!==o.dir){let r=i.left-t.left,o=n.left-r,s=e.left-o,l=e.width+s,u=Math.max(l,t.width),d=c(o,[10,Math.max(10,window.innerWidth-10-u)]);a.style.minWidth=l+"px",a.style.left=d+"px"}else{let r=t.right-i.right,o=window.innerWidth-n.right-r,s=window.innerWidth-e.right-o,l=e.width+s,u=Math.max(l,t.width),d=c(o,[10,Math.max(10,window.innerWidth-10-u)]);a.style.minWidth=l+"px",a.style.right=d+"px"}let s=p(),l=window.innerHeight-20,u=g.scrollHeight,h=window.getComputedStyle(d),f=parseInt(h.borderTopWidth,10),v=parseInt(h.paddingTop,10),y=parseInt(h.borderBottomWidth,10),x=f+v+u+parseInt(h.paddingBottom,10)+y,S=Math.min(5*w.offsetHeight,x),E=window.getComputedStyle(g),A=parseInt(E.paddingTop,10),T=parseInt(E.paddingBottom,10),k=e.top+e.height/2-10,C=w.offsetHeight/2,P=f+v+(w.offsetTop+C);if(P<=k){let e=s.length>0&&w===s[s.length-1].ref.current;a.style.bottom="0px";let t=Math.max(l-k,C+(e?T:0)+(d.clientHeight-g.offsetTop-g.offsetHeight)+y);a.style.height=P+t+"px"}else{let e=s.length>0&&w===s[0].ref.current;a.style.top="0px";let t=Math.max(k,f+g.offsetTop+(e?A:0)+C);a.style.height=t+(x-P)+"px",g.scrollTop=P-k+g.offsetTop}a.style.margin="".concat(10,"px 0"),a.style.minHeight=S+"px",a.style.maxHeight=l+"px",null==r||r(),requestAnimationFrame(()=>m.current=!0)}},[p,o.trigger,o.valueNode,a,d,g,w,b,o.dir,r]);(0,k.N)(()=>E(),[E]);let[T,C]=l.useState();(0,k.N)(()=>{d&&C(window.getComputedStyle(d).zIndex)},[d]);let P=l.useCallback(e=>{e&&!0===v.current&&(E(),null==S||S(),v.current=!1)},[E,S]);return(0,x.jsx)(nW,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:P,children:(0,x.jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:(0,x.jsx)(A.sG.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});nB.displayName="SelectItemAlignedPosition";var nU=l.forwardRef((e,t)=>
1{let{__scopeSelect:n,align:r="start",collisionPadding:i=10,...o}=e,s=ny(n);return(0,x.jsx)(tp,{...s,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});nU.displayName="SelectPopperPosition";var[nW,nG]=nm(nL,{}),nH="SelectViewport",nz=l.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,o=nN(nH,n),s=nG(nH,n),a=(0,y.s)(t,o.onViewportChange),u=l.useRef(0);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,x.jsx)(nh.Slot,{scope:n,children:(0,x.jsx)(A.sG.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:(0,h.mK)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if((null==r?void 0:r.current)&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,i=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(i<r){let o=i+e,s=Math.min(r,o),a=o-s;n.style.height=s+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop})})})]})});nz.displayName=nH;var n$="SelectGroup",[nK,nX]=nm(n$),nq=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=X();return(0,x.jsx)(nK,{scope:n,id:i,children:(0,x.jsx)(A.sG.div,{role:"group","aria-labelledby":i,...r,ref:t})})});nq.displayName=n$;var nY="SelectLabel";l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=nX(nY,n);return(0,x.jsx)(A.sG.div,{id:i.id,...r,ref:t})}).displayName=nY;var nZ="SelectItem",[nJ,nQ]=nm(nZ),n0=l.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=e,a=nx(nZ,n),u=nN(nZ,n),d=a.value===r,[c,f]=l.useState(null!=o?o:""),[p,m]=l.useState(!1),v=T(e=>{var t;return null==(t=u.itemRefCallback)?void 0:t.call(u,e,r,i)}),g=(0,y.s)(t,v),w=X(),b=l.useRef("touch"),S=()=>{i||(a.onValueChange(r),a.onOpenChange(!1))};return(0,x.jsx)(nJ,{scope:n,value:r,disabled:i,textId:w,isSelected:d,onItemTextChange:l.useCallback(e=>{f(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,x.jsx)(nh.ItemSlot,{scope:n,value:r,disabled:i,textValue:c,children:(0,x.jsx)(A.sG.div,{role:"option","aria-labelledby":w,"data-highlighted":p?"":void 0,"aria-selected":d&&p,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:g,onFocus:(0,h.mK)(s.onFocus,()=>m(!0)),onBlur:(0,h.mK)(s.onBlur,()=>m(!1)),onClick:(0,h.mK)(s.onClick,()=>{"mouse"!==b.current&&S()}),onPointerUp:(0,h.mK)(s.onPointerUp,()=>{"mouse"===b.current&&S()}),onPointerDown:(0,h.mK)(s.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:(0,h.mK)(s.onPointerMove,e=>{if(b.current=e.pointerType,i){var t;null==(t=u.onItemLeave)||t.call(u)}else"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,h.mK)(s.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=u.onItemLeave)||t.call(u)}}),onKeyDown:(0,h.mK)(s.onKeyDown,e=>{var t;((null==(t=u.searchRef)?void 0:t.current)===""||" "!==e.key)&&(nd.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})});n0.displayName=nZ;var n1="SelectItemText",n2=l.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...o}=e,s=nx(n1,n),a=nN(n1,n),u=nQ(n1,n),c=nb(n1,n),[h,f]=l.useState(null),p=T(e=>{var t;return null==(t=a.itemTextRefCallback)?void 0:t.call(a,e,u.value,u.disabled)}),m=(0,y.s)(t,f,u.onItemTextChange,p),v=null==h?void 0:h.textContent,g=l.useMemo(()=>(0,x.jsx)("option",{value:u.value,disabled:u.disabled,children:v},u.value),[u.disabled,u.value,v]),{onNativeOptionAdd:w,onNativeOptionRemove:b}=c;return(0,k.N)(()=>(w(g),()=>b(g)),[w,b,g]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(A.sG.span,{id:u.textId,...o,ref:m}),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!rr(s.value)?d.createPortal(o.children,s.valueNode):null]})});n2.displayName=n1;var n5="SelectItemIndicator",n4=l.forwardRef((e,t)=>
1{let{__scopeSelect:n,...r}=e;return nQ(n5,n).isSelected?(0,x.jsx)(A.sG.span,{"aria-hidden":!0,...r,ref:t}):null});n4.displayName=n5;var n3="SelectScrollUpButton",n6=l.forwardRef((e,t)=>{let n=nN(n3,e.__scopeSelect),r=nG(n3,e.__scopeSelect),[i,o]=l.useState(!1),s=(0,y.s)(t,r.onScrollButtonChange);return(0,k.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){o(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,x.jsx)(n7,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});n6.displayName=n3;var n9="SelectScrollDownButton",n8=l.forwardRef((e,t)=>{let n=nN(n9,e.__scopeSelect),r=nG(n9,e.__scopeSelect),[i,o]=l.useState(!1),s=(0,y.s)(t,r.onScrollButtonChange);return(0,k.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;o(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,x.jsx)(n7,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});n8.displayName=n9;var n7=l.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,o=nN("SelectScrollButton",n),s=l.useRef(null),a=nf(n),u=l.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>u(),[u]),(0,k.N)(()=>{var e;let t=a().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[a]),(0,x.jsx)(A.sG.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:(0,h.mK)(i.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(r,50))}),onPointerMove:(0,h.mK)(i.onPointerMove,()=>{var e;null==(e=o.onItemLeave)||e.call(o),null===s.current&&(s.current=window.setInterval(r,50))}),onPointerLeave:(0,h.mK)(i.onPointerLeave,()=>{u()})})});l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,x.jsx)(A.sG.div,{"aria-hidden":!0,...r,ref:t})}).displayName="SelectSeparator";var re="SelectArrow";l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=ny(n);return"popper"===nN(re,n).position?(0,x.jsx)(ty,{...i,...r,ref:t}):null}).displayName=re;var rt="SelectBubbleInput",rn=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=nx(rt,n),{value:o,onValueChange:s,required:a,disabled:u,name:d,autoComplete:c,form:h}=i,{nativeOptions:f,nativeSelectKey:p}=i,m=l.useRef(null),v=(0,y.s)(t,m),g=null!=o?o:"",w=(0,tA.Z)(g),b=Array.from(f).some(e=>{var t;return(null!=(t=e.props.value)?t:"")===""});return l.useEffect(()=>{let e=m.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(w!==g&&t){let n=new Event("change",{bubbles:!0});t.call(e,g),e.dispatchEvent(n)}},[w,g]),(0,x.jsxs)(A.sG.select,{"aria-hidden":!0,required:a,tabIndex:-1,name:d,autoComplete:c,disabled:u,form:h,onChange:e=>s(e.target.value),...r,style:{...tT,...r.style},ref:v,defaultValue:g,children:[rr(o)&&!b?(0,x.jsx)("option",{value:""}):null,Array.from(f)]},p)});function rr(e){return""===e||void 0===e}function ri(e){let t=T(e),n=l.useRef(""),r=l.useRef(0),i=l.useCallback(e=>{let i=n.current+e;t(i),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(i)},[t]),o=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function ro(e,t,n){var r,i;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,s=n?e.indexOf(n):-1,a=(r=e,i=Math.max(s,0),r.map((e,t)=>r[(i+t)%r.length]));1===o.length&&(a=a.filter(e=>e!==n));let l=a.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}rn.displayName=rt},44300:(e,t,n)=>{n.d(t,{I:()=>o});var r=n(40042);let i=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function o(e,t){let n=!1,o=!0,s={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,l=i.reduce((e,t)=>
1(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function a(t){o.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:(e,i=!1,s=!1)=>{let a=s&&r?t:n;return i&&o.add(e),a.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(e))}};return l}(a),e),{}),{setup:u,read:d,resolveKeyframes:c,preUpdate:h,update:f,preRender:p,render:m,postRender:v}=l,y=()=>{let i=r.W.useManualTiming,a=i?s.timestamp:performance.now();n=!1,i||(s.delta=o?1e3/60:Math.max(Math.min(a-s.timestamp,40),1)),s.timestamp=a,s.isProcessing=!0,u.process(s),d.process(s),c.process(s),h.process(s),f.process(s),p.process(s),m.process(s),v.process(s),s.isProcessing=!1,n&&t&&(o=!1,e(y))};return{schedule:i.reduce((t,r)=>{let i=l[r];return t[r]=(t,r=!1,a=!1)=>(!n&&(n=!0,o=!0,s.isProcessing||e(y)),i.schedule(t,r,a)),t},{}),cancel:e=>{for(let t=0;t<i.length;t++)l[i[t]].cancel(e)},state:s,steps:l}}},44807:(e,t,n)=>{n.d(t,{V:()=>a});var r=n(37822),i=n(92419),o=n(9150),s=n(23919);let a={test:(0,s.$)("hsl","hue"),parse:(0,s.q)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+i.KN.transform((0,o.a)(t))+", "+i.KN.transform((0,o.a)(n))+", "+(0,o.a)(r.X4.transform(s))+")"}},45130:(e,t,n)=>{n.d(t,{j:()=>A});var r=n(23656),i=n(78041),o=n(21391),s=n(55389),a=n(24888),l=n(68894),u=n(44807);function d(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var c=n(31739);function h(e,t){return n=>n>0?t:e}var f=n(39361);let p=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},m=[l.u,c.B,u.V];function v(e){let t=m.find(t=>t.test(e));if((0,i.$)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===u.V&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,s=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=d(a,r,e+1/3),o=d(a,r,e),s=d(a,r,e-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}let y=(e,t)=>{let n=v(e),r=v(t);if(!n||!r)return h(e,t);let i={...n};return e=>(i.red=p(n.red,r.red,e),i.green=p(n.green,r.green,e),i.blue=p(n.blue,r.blue,e),i.alpha=(0,f.k)(n.alpha,r.alpha,e),c.B.transform(i))},g=new Set(["none","hidden"]);function x(e,t){return n=>(0,f.k)(e,t,n)}function w(e){return"number"==typeof e?x:"string"==typeof e?(0,o.pG)(e)?h:s.y.test(e)?y:E:Array.isArray(e)?b:"object"==typeof e?s.y.test(e)?y:S:h}function b(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>w(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function S(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=w(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let E=(e,t)=>{let n=a.f.createTransformer(t),o=(0,a.V)(e),s=(0,a.V)(t);return o.indexes.var.length===s.indexes.var.length&&o.indexes.color.length===s.indexes.color.length&&o.indexes.number.length>=s.indexes.number.length?g.has(e)&&!s.values.length||g.has(t)&&!o.values.length?function(e,t){return g.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):(0,r.F)(b(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}(o,s),s.values),n):((0,i.$)(!0,`Complex values '${e}' and '${t}' 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.`,"complex-values-different"),h(e,t))};function A(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?(0,f.k)(e,t,n):w(e)(e,t)}},45242:(e,t,n)=>{n.d(t,{f:()=>r});let r=(e,t)=>t?1e3/t*e:0},46414:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},46436:(e,t,n)=>{n.d(t,{E:()=>i});var r=n(12115);let i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},48895:(e,t,n)=>{n.d(t,{q:()=>r});let r=(e,t,n)=>n>t?t:n<e?e:n},49675:(e,t,n)=>{let r;n.d(t,{A:()=>a});let i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},o=new Uint8Array(16),s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));let a=function(e,t,n){if(i.randomUUID&&!t&&!e)return i.randomUUID();var a=e,l=n;let u=(a=a||{}).random??a.rng?.()??function(){if(!r){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(o)}();if(u.length<16)throw Error("Random bytes length must be >= 16");if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){if((l=l||0)<0||l+16>t.length)throw RangeError(`UUID byte range ${l}:${l+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[l+e]=u[e];return t}return function(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}(u)}}
1,49752:(e,t,n)=>{n.d(t,{s:()=>g});var r=n(23656),i=n(48895),o=n(27290),s=n(27424),a=n(45130),l=n(73934);let u=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>l.Gt.update(t,e),stop:()=>(0,l.WG)(t),now:()=>l.uv.isProcessing?l.uv.timestamp:s.k.now()}};var d=n(70561),c=n(56121),h=n(38857),f=n(66876),p=n(33855),m=n(90625),v=n(87671);let y=e=>e/100;class g extends v.q{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==s.k.now()&&this.tick(s.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;(0,m.E)(e);let{type:t=c.i,repeat:n=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=e,{keyframes:l}=e,u=t||c.i;u!==c.i&&"number"!=typeof l[0]&&(this.mixKeyframes=(0,r.F)(y,(0,a.j)(l[0],l[1])),l=[0,100]);let d=u({...e,keyframes:l});"mirror"===o&&(this.mirroredGenerator=u({...e,keyframes:[...l].reverse(),velocity:-s})),null===d.calculatedDuration&&(d.calculatedDuration=(0,h.t)(d));let{calculatedDuration:f}=d;this.calculatedDuration=f,this.resolvedDuration=f+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=d}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:r,totalDuration:o,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:u}=this;if(null===this.startTime)return r.next(0);let{delay:c=0,keyframes:h,repeat:f,repeatType:m,repeatDelay:v,type:y,onUpdate:g,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-o/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let w=this.currentTime-c*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?w<0:w>o;this.currentTime=Math.max(w,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=o);let S=this.currentTime,E=r;if(f){let e=Math.min(this.currentTime,o)/l,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,f+1))%2&&("reverse"===m?(n=1-n,v&&(n-=v/l)):"mirror"===m&&(E=a)),S=(0,i.q)(0,1,n)*l}b?(this.delayState.value=h[0],n=this.delayState):n=E.next(S),s&&!b&&(n.value=s(n.value));let{done:A}=n;b||null===u||(A=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&A);return T&&y!==d.B&&(n.value=(0,p.X)(h,this.options,x,this.speed)),g&&g(n.value),T&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return(0,o.X)(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,o.X)(e)}get time(){return(0,o.X)(this.currentTime)}set time(e){e=(0,o.f)(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return(0,f.z)(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(s.k.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=(0,o.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=u,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(s.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}},52056:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},52987:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},53127:(e,t,n)=>{n.d(t,{Q:()=>r});let r=(0,n(12115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},53350:(e,t,n)=>{n.d(t,{d:()=>a});var r=n(22039),i=n(12115),o=n(53127),s=n(94416);function a(e){let t=(0,s.M)(()=>(0,r.OQ)(e)),{isStatic:n}=(0,i.useContext)(o.Q);if(n){let[,n]=(0,i.useState)(e);(0,i.useEffect)(()=>t.on("change",n),[])}return t}}
1,55389:(e,t,n)=>{n.d(t,{y:()=>s});var r=n(68894),i=n(44807),o=n(31739);let s={test:e=>o.B.test(e)||r.u.test(e)||i.V.test(e),parse:e=>o.B.test(e)?o.B.parse(e):i.V.test(e)?i.V.parse(e):r.u.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?o.B.transform(e):i.V.transform(e),getAnimatableNone:e=>{let t=s.parse(e);return t.alpha=0,s.transform(t)}}},56121:(e,t,n)=>{n.d(t,{i:()=>g});var r=n(36262);let i=(0,r.A)(.42,0,1,1),o=(0,r.A)(0,0,.58,1),s=(0,r.A)(.42,0,.58,1);var a=n(78041),l=n(6500),u=n(32080),d=n(58605),c=n(69809),h=n(34324);let f={linear:l.l,easeIn:i,easeInOut:s,easeOut:o,circIn:c.po,circInOut:c.tn,circOut:c.yT,backIn:d.dg,backInOut:d.ZZ,backOut:d.Sz,anticipate:u.b},p=e=>{if((0,h.D)(e)){(0,a.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,i,o]=e;return(0,r.A)(t,n,i,o)}return"string"==typeof e?((0,a.V)(void 0!==f[e],`Invalid easing type '${e}'`,"invalid-easing-type"),f[e]):e};var m=n(16706),v=n(91225),y=n(39361);function g({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(p):p(r),a={done:!1,value:t[0]},l=(i=n&&n.length===t.length?n:function(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=(0,v.q)(0,t,r);e.push((0,y.k)(n,1,i))}}(t,e.length-1),t}(t),i.map(t=>t*e)),u=(0,m.G)(l,t,{ease:Array.isArray(o)?o:t.map(()=>o||s).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=u(t),a.done=t>=e,a)}}},58605:(e,t,n)=>{n.d(t,{Sz:()=>s,ZZ:()=>l,dg:()=>a});var r=n(36262),i=n(95516),o=n(16815);let s=(0,r.A)(.33,1.53,.69,.99),a=(0,o.G)(s),l=(0,i.V)(a)},65229:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},66876:(e,t,n)=>{n.d(t,{z:()=>i});var r=n(45242);function i(e,t,n){let i=Math.max(t-5,0);return(0,r.f)(n-e(i),t-i)}},68894:(e,t,n)=>{n.d(t,{u:()=>i});var r=n(31739);let i={test:(0,n(23919).$)("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:r.B.transform}},69809:(e,t,n)=>{n.d(t,{po:()=>o,tn:()=>a,yT:()=>s});var r=n(95516),i=n(16815);let o=e=>1-Math.sin(Math.acos(e)),s=(0,i.G)(o),a=(0,r.V)(o)},70561:(e,t,n)=>{n.d(t,{B:()=>o});var r=n(88256),i=n(66876);function o({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:l,min:u,max:d,restDelta:c=.5,restSpeed:h}){let f,p,m=e[0],v={done:!1,value:m},y=n*t,g=m+y,x=void 0===l?g:l(g);x!==g&&(y=x-m);let w=e=>-y*Math.exp(-e/o),b=e=>x+w(e),S=e=>{let t=w(e),n=b(e);v.done=Math.abs(t)<=c,v.value=v.done?x:n},E=e=>{let t;if(t=v.value,void 0!==u&&t<u||void 0!==d&&t>d){var n;f=e,p=(0,r.o)({keyframes:[v.value,(n=v.value,void 0===u?d:void 0===d||Math.abs(u-n)<Math.abs(d-n)?u:d)],velocity:(0,i.z)(b,e,v.value),damping:s,stiffness:a,restDelta:c,restSpeed:h})}};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(p||void 0!==f||(t=!0,S(e),E(e)),void 0!==f&&e>=f)?p.next(e-f):(t||S(e),v)}}}},73934:(e,t,n)=>{n.d(t,{Gt:()=>i,PP:()=>a,WG:()=>o,uv:()=>s});var r=n(6500);let{schedule:i,cancel:o,state:s,steps:a}=(0,n(44300).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.l,!0)},76842:(e,t,n)=>{n.d(t,{C:()=>o});var r=n(12115),i=n(4129),o=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,s]=r.useState(),l=r.useRef(null),u=r.useRef(e),d=r.useRef("none"),[c,h]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=a(l.current);d.current="mounted"===c?e:"none"},[c]),(0,i.N)(()=>{let t=l.current,n=u.current;if(n!==e){let r=d.current,i=a(t);e?h("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),u.current=e}},[e,h]),(0,i.N)(()=>
1{if(o){var e;let t,n=null!=(e=o.ownerDocument.defaultView)?e:window,r=e=>{let r=a(l.current).includes(CSS.escape(e.animationName));if(e.target===o&&r&&(h("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(d.current=a(l.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}h("ANIMATION_END")},[o,h]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{l.current=e?getComputedStyle(e):null,s(e)},[])}}(t),l="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),u=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=r.useRef(t);return i.current=t,r.useCallback(e=>{let t=i.current,n=!1,r=t.map(t=>{let r=s(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<r.length;e++){let n=r[e];"function"==typeof n?n():s(t[e],null)}}},[])}(o.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(i=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof n||o.isPresent?r.cloneElement(l,{ref:u}):null};function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(e){return(null==e?void 0:e.animationName)||"none"}o.displayName="Presence"},78041:(e,t,n)=>{n.d(t,{$:()=>r,V:()=>i}),n(95704);let r=()=>{},i=()=>{}},78108:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(12115);function i(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},78435:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},78874:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},84288:(e,t,n)=>{n.d(t,{X:()=>o});var r=n(12115),i=n(4129);function o(e){let[t,n]=r.useState(void 0);return(0,i.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},87671:(e,t,n)=>{n.d(t,{q:()=>r});class r{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}},87952:(e,t,n)=>{n.d(t,{z:()=>c});var r=n(33182),i=n(49752),o=n(73934);function s(e){return"number"==typeof e?e:parseFloat(e)}var a=n(12115),l=n(53127),u=n(53350),d=n(99770);function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{isStatic:n}=(0,a.useContext)(l.Q),c=()=>(0,r.S)(e)?e.get():e;if(n)return(0,d.G)(c);let h=(0,u.d)(c());return(0,a.useInsertionEffect)(()=>(function(e,t,n={}){let a,l=e.get(),u=null,d=l,c="string"==typeof l?l.replace(/[\d.-]/g,""):void 0,h=()=>{u&&(u.stop(),u=null),e.animation=void 0},f=()=>{(()=>{let t=s(e.get()),r=s(d);if(t===r)return h();let o=u?u.getGeneratorVelocity():e.getVelocity();h(),u=new i.s({keyframes:[t,r],velocity:o,type:"spring",restDelta:.001,restSpeed:.01,...n,onUp
1date:a})})(),e.animation=u??void 0,e.events.animationStart?.notify(),u?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{d=e,a=e=>{var n,r;return t((n=e,(r=c)?n+r:n))},o.Gt.postRender(f)},h),(0,r.S)(t)){let r=!0===n.skipInitialAnimation,i=t.on("change",t=>{var n,i,o,s;r?(r=!1,e.jump((n=t,(i=c)?n+i:n),!1)):e.set((o=t,(s=c)?o+s:o))}),o=e.on("destroy",i);return()=>{i(),o()}}return h})(h,e,t),[h,JSON.stringify(t)]),h}(e,{type:"spring",...t})}},88256:(e,t,n)=>{n.d(t,{o:()=>f});var r=n(78041),i=n(27290),o=n(48895),s=n(33754),a=n(38857);let l={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};function u(e,t){return e*Math.sqrt(1-t*t)}let d=["duration","bounce"],c=["stiffness","damping","mass"];function h(e,t){return t.some(t=>void 0!==e[t])}function f(e=l.visualDuration,t=l.bounce){let n,p,m,v,y,g,x="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:w,restDelta:b}=x,S=x.keyframes[0],E=x.keyframes[x.keyframes.length-1],A={done:!1,value:S},{stiffness:T,damping:k,mass:C,duration:P,velocity:R,isResolvedFromDuration:V}=function(e){let t={velocity:l.velocity,stiffness:l.stiffness,damping:l.damping,mass:l.mass,isResolvedFromDuration:!1,...e};if(!h(e,c)&&h(e,d))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*(0,o.q)(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:l.mass,stiffness:r,damping:i}}else{let n=function({duration:e=l.duration,bounce:t=l.bounce,velocity:n=l.velocity,mass:s=l.mass}){let a,d;(0,r.$)(e<=(0,i.f)(l.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let c=1-t;c=(0,o.q)(l.minDamping,l.maxDamping,c),e=(0,o.q)(l.minDuration,l.maxDuration,(0,i.X)(e)),c<1?(a=t=>{let r=t*c,i=r*e;return .001-(r-n)/u(t,c)*Math.exp(-i)},d=t=>{let r=t*c*e,i=Math.pow(c,2)*Math.pow(t,2)*e,o=Math.exp(-r),s=u(Math.pow(t,2),c);return(r*n+n-i)*o*(-a(t)+.001>0?-1:1)/s}):(a=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),d=t=>e*e*(n-t)*Math.exp(-t*e));let h=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(a,d,5/e);if(e=(0,i.f)(e),isNaN(h))return{stiffness:l.stiffness,damping:l.damping,duration:e};{let t=Math.pow(h,2)*s;return{stiffness:t,damping:2*c*Math.sqrt(s*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:l.mass}).isResolvedFromDuration=!0}return t}({...x,velocity:-(0,i.X)(x.velocity||0)}),M=R||0,D=k/(2*Math.sqrt(T*C)),L=E-S,I=(0,i.X)(Math.sqrt(T/C)),j=5>Math.abs(L);if(w||(w=j?l.restSpeed.granular:l.restSpeed.default),b||(b=j?l.restDelta.granular:l.restDelta.default),D<1)m=u(I,D),v=(M+D*I*L)/m,n=e=>E-Math.exp(-D*I*e)*(v*Math.sin(m*e)+L*Math.cos(m*e)),y=D*I*v+L*m,g=D*I*L-v*m,p=e=>Math.exp(-D*I*e)*(y*Math.sin(m*e)+g*Math.cos(m*e));else if(1===D){n=e=>E-Math.exp(-I*e)*(L+(M+I*L)*e);let e=M+I*L;p=t=>Math.exp(-I*t)*(I*e*t-M)}else{let e=I*Math.sqrt(D*D-1);n=t=>{let n=Math.exp(-D*I*t),r=Math.min(e*t,300);return E-n*((M+D*I*L)*Math.sinh(r)+e*L*Math.cosh(r))/e};let t=(M+D*I*L)/e,r=D*I*t-L*e,i=D*I*L-t*e;p=t=>{let n=Math.exp(-D*I*t),o=Math.min(e*t,300);return n*(r*Math.sinh(o)+i*Math.cosh(o))}}let O={calculatedDuration:V&&P||null,velocity:e=>(0,i.f)(p(e)),next:e=>{if(!V&&D<1){let t=Math.exp(-D*I*e),n=Math.sin(m*e),r=Math.cos(m*e),o=E-t*(v*n+L*r);return A.done=Math.abs((0,i.f)(t*(y*n+g*r)))<=w&&Math.abs(E-o)<=b,A.value=A.done?E:o,A}let t=n(e);return V?A.done=e>=P:A.done=Math.abs((0,i.f)(p(e)))<=w&&Math.abs(E-t)<=b,A.value=A.done?E:t,A},toString:()=>{let e=Math.min((0,a.t)(O),a.Y),t=(0,s.K)(t=>O.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return O}f.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),o=Math.min((0,a.t)(r),a.Y);return{type:"keyframes",ease:e=>r.next(o*e).value/t,duration:(0,i.X)(o)}}(e,100,f);return e.ease=t.ease,e.duration=(0,i.f)(t.duration),e.type="keyframes",e}},90368:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},90625:(e,t,n)=>{n.d(t,{E:()=>a});var r=n(70561),i=n(56121),o=n(88256);let s={decay:r.B,inertia:r.B,tween:i.i,keyframes:i.i,spring:o.o};function a(e){"string"==typeof e.type&&(e.type=s[e.type])}},91225:(e,t,n)=>{n.d(t,{q:()=>r});let r=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1}},92419:(e,t,n)=>{n.d(t,{KN:()=>o,gQ:()=>u,px:()=>s,uj:()=>i,vh:()=>a,vw:()=>l});let r=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}
1),i=r("deg"),o=r("%"),s=r("px"),a=r("vh"),l=r("vw"),u={...o,parse:e=>o.parse(e)/100,transform:e=>o.transform(100*e)}},92556:(e,t,n)=>{function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{mK:()=>r}),"undefined"!=typeof window&&window.document&&window.document.createElement},94416:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(12115);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},95516:(e,t,n)=>{n.d(t,{V:()=>r});let r=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},97602:(e,t,n)=>{n.d(t,{hO:()=>l,sG:()=>a});var r=n(12115),i=n(47650),o=n(32467),s=n(95155),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,o.TL)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(i?n:t,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},99770:(e,t,n)=>{n.d(t,{G:()=>function e(t,n,o,s){if("function"==typeof t){u.bt.current=[],t();let e=l(u.bt.current,t);return u.bt.current=void 0,e}if(void 0!==o&&!Array.isArray(o)&&"function"!=typeof n){var a=t,c=n,h=o,f=s;let r=(0,i.M)(()=>Object.keys(h)),l=(0,i.M)(()=>({}));for(let t of r)l[t]=e(a,c,h[t],f);return l}let p="function"==typeof n?n:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,i=e[0+n],o=e[1+n],s=e[2+n],a=e[3+n],l=(0,r.G)(o,s,a);return t?l(i):l}(n,o,s),m=Array.isArray(t)?d(t,p):d([t],e=>{let[t]=e;return p(t)}),v=Array.isArray(t)?void 0:t.accelerate;return v&&!v.isTransformed&&"function"!=typeof n&&Array.isArray(o)&&(null==s?void 0:s.clamp)!==!1&&(m.accelerate={...v,times:n,keyframes:o,isTransformed:!0,...(null==s?void 0:s.ease)?{ease:s.ease}:{}}),m}});var r=n(16706),i=n(94416),o=n(73934),s=n(46436),a=n(53350);function l(e,t){let n=(0,a.d)(t()),r=()=>n.set(t());return r(),(0,s.E)(()=>{let t=()=>o.Gt.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,o.WG)(r)}}),n}var u=n(22039);function d(e,t){let n=(0,i.M)(()=>[]);return l(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}}}]);

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.