@zzusp/ccsm 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +236 -232
  3. package/dist/assets/DiskUsage-BY6XwffG.js +2 -0
  4. package/dist/assets/DiskUsage-BY6XwffG.js.map +1 -0
  5. package/dist/assets/{ImportPage-b8NORa8b.js → ImportPage-Cwq5bx7G.js} +2 -2
  6. package/dist/assets/ImportPage-Cwq5bx7G.js.map +1 -0
  7. package/dist/assets/MarkdownContent-BFu7Nkk_.js +2 -0
  8. package/dist/assets/MarkdownContent-BFu7Nkk_.js.map +1 -0
  9. package/dist/assets/{ProjectMemory-aSV8UzQ9.js → ProjectMemory-CcE3KbUK.js} +2 -2
  10. package/dist/assets/ProjectMemory-CcE3KbUK.js.map +1 -0
  11. package/dist/assets/{charts-A5eNHLjX.js → charts-jxJqXXUr.js} +2 -2
  12. package/dist/assets/{charts-A5eNHLjX.js.map → charts-jxJqXXUr.js.map} +1 -1
  13. package/dist/assets/index-CrWxV6sb.css +1 -0
  14. package/dist/assets/index-DTbWl1jb.js +11 -0
  15. package/dist/assets/index-DTbWl1jb.js.map +1 -0
  16. package/dist/assets/markdown-Bag5rX3T.js +30 -0
  17. package/dist/assets/markdown-Bag5rX3T.js.map +1 -0
  18. package/dist/assets/{query-C1K1uQRu.js → query-CS7JQ86v.js} +2 -2
  19. package/dist/assets/{query-C1K1uQRu.js.map → query-CS7JQ86v.js.map} +1 -1
  20. package/dist/assets/{react-W0jzChlo.js → react-CPkiFScu.js} +10 -10
  21. package/dist/assets/{react-W0jzChlo.js.map → react-CPkiFScu.js.map} +1 -1
  22. package/dist/assets/{router-DfbutHY3.js → router-DwaHAh1G.js} +2 -2
  23. package/dist/assets/{router-DfbutHY3.js.map → router-DwaHAh1G.js.map} +1 -1
  24. package/dist/assets/vendor-Cs8vYp-N.js +27 -0
  25. package/dist/assets/vendor-Cs8vYp-N.js.map +1 -0
  26. package/dist/favicon.svg +7 -7
  27. package/dist/index.html +30 -30
  28. package/package.json +24 -11
  29. package/server/index.ts +4 -0
  30. package/server/lib/active-sessions.test.ts +119 -0
  31. package/server/lib/active-sessions.ts +95 -95
  32. package/server/lib/bundle.test.ts +182 -0
  33. package/server/lib/bundle.ts +86 -86
  34. package/server/lib/claude-paths.test.ts +126 -0
  35. package/server/lib/claude-paths.ts +43 -36
  36. package/server/lib/cleanup-suggestions.ts +131 -0
  37. package/server/lib/constants.ts +8 -7
  38. package/server/lib/delete-project.ts +100 -100
  39. package/server/lib/delete.test.ts +244 -0
  40. package/server/lib/delete.ts +192 -203
  41. package/server/lib/disk-usage.ts +81 -83
  42. package/server/lib/encode-cwd.ts +24 -24
  43. package/server/lib/export-bundle.ts +236 -236
  44. package/server/lib/export-import-bundle.test.ts +337 -0
  45. package/server/lib/fs-size.ts +38 -38
  46. package/server/lib/import-bundle.ts +488 -488
  47. package/server/lib/load-memory.ts +120 -120
  48. package/server/lib/load-session.ts +209 -209
  49. package/server/lib/modified-files.test.ts +280 -0
  50. package/server/lib/modified-files.ts +228 -0
  51. package/server/lib/open-folder.ts +47 -40
  52. package/server/lib/parse-jsonl.ts +160 -107
  53. package/server/lib/port.ts +23 -23
  54. package/server/lib/safe-id.test.ts +41 -0
  55. package/server/lib/safe-id.ts +6 -6
  56. package/server/lib/safe-remove.test.ts +73 -0
  57. package/server/lib/safe-remove.ts +25 -0
  58. package/server/lib/scan.ts +289 -183
  59. package/server/lib/search-all.ts +130 -130
  60. package/server/lib/search-session.ts +203 -203
  61. package/server/lib/system-tags.ts +20 -20
  62. package/server/lib/update.ts +67 -0
  63. package/server/lib/version.test.ts +39 -0
  64. package/server/lib/version.ts +117 -0
  65. package/server/routes/disk-cleanup.ts +54 -0
  66. package/server/routes/disk.ts +9 -9
  67. package/server/routes/import.ts +87 -87
  68. package/server/routes/projects.ts +104 -104
  69. package/server/routes/search.ts +79 -79
  70. package/server/routes/sessions.ts +130 -81
  71. package/server/routes/version.ts +34 -0
  72. package/server/types.ts +1 -1
  73. package/shared/constants.ts +7 -2
  74. package/shared/types.ts +513 -359
  75. package/dist/assets/DiskUsage-Bq4VaoUA.js +0 -2
  76. package/dist/assets/DiskUsage-Bq4VaoUA.js.map +0 -1
  77. package/dist/assets/ImportPage-b8NORa8b.js.map +0 -1
  78. package/dist/assets/ProjectMemory-aSV8UzQ9.js.map +0 -1
  79. package/dist/assets/index-DLATR3tZ.js +0 -5
  80. package/dist/assets/index-DLATR3tZ.js.map +0 -1
  81. package/dist/assets/index-DLDtbkux.css +0 -1
  82. package/dist/assets/vendor-CH80ylbS.js +0 -19
  83. package/dist/assets/vendor-CH80ylbS.js.map +0 -1
@@ -0,0 +1,27 @@
1
+ import{r as P,j as Te,c as Ot,g as F,R as ey}from"./react-CPkiFScu.js";const ao=P.createContext({});function oo(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const ty=typeof window<"u",gd=ty?P.useLayoutEffect:P.useEffect,or=P.createContext(null);function uo(e,t){e.indexOf(t)===-1&&e.push(t)}function Kt(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const ge=(e,t,r)=>r>t?t:r<e?e:r;let co=()=>{};const Ce={},vd=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function bd(e){return typeof e=="object"&&e!==null}const Sd=e=>/^0[^.\s]+$/u.test(e);function Td(e){let t;return()=>(t===void 0&&(t=e()),t)}const oe=e=>e,ry=(e,t)=>r=>t(e(r)),Pt=(...e)=>e.reduce(ry),vt=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class lo{constructor(){this.subscriptions=[]}add(t){return uo(this.subscriptions,t),()=>Kt(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let s=0;s<i;s++){const a=this.subscriptions[s];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ie=e=>e*1e3,ae=e=>e/1e3;function _d(e,t){return t?e*(1e3/t):0}const Ad=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,ny=1e-7,iy=12;function sy(e,t,r,n,i){let s,a,o=0;do a=t+(r-t)/2,s=Ad(a,n,i)-e,s>0?r=a:t=a;while(Math.abs(s)>ny&&++o<iy);return a}function Rt(e,t,r,n){if(e===t&&r===n)return oe;const i=s=>sy(s,0,1,e,r);return s=>s===0||s===1?s:Ad(i(s),t,n)}const wd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xd=e=>t=>1-e(1-t),Pd=Rt(.33,1.53,.69,.99),fo=xd(Pd),Rd=wd(fo),Ed=e=>e>=1?1:(e*=2)<1?.5*fo(e):.5*(2-Math.pow(2,-10*(e-1))),ho=e=>1-Math.sin(Math.acos(e)),Cd=xd(ho),Md=wd(ho),ay=Rt(.42,0,1,1),oy=Rt(0,0,.58,1),qd=Rt(.42,0,.58,1),uy=e=>Array.isArray(e)&&typeof e[0]!="number",Od=e=>Array.isArray(e)&&typeof e[0]=="number",cy={linear:oe,easeIn:ay,easeInOut:qd,easeOut:oy,circIn:ho,circInOut:Md,circOut:Cd,backIn:fo,backInOut:Rd,backOut:Pd,anticipate:Ed},ly=e=>typeof e=="string",Jo=e=>{if(Od(e)){co(e.length===4);const[t,r,n,i]=e;return Rt(t,r,n,i)}else if(ly(e))return cy[e];return e},It=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function fy(e,t){let r=new Set,n=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(l){a.has(l)&&(c.schedule(l),e()),l(o)}const c={schedule:(l,f=!1,h=!1)=>{const y=h&&i?r:n;return f&&a.add(l),y.add(l),l},cancel:l=>{n.delete(l),a.delete(l)},process:l=>{if(o=l,i){s=!0;return}i=!0;const f=r;r=n,n=f,r.forEach(u),r.clear(),i=!1,s&&(s=!1,c.process(l))}};return c}const hy=40;function Id(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,a=It.reduce((b,S)=>(b[S]=fy(s),b),{}),{setup:o,read:u,resolveKeyframes:c,preUpdate:l,update:f,preRender:h,render:p,postRender:y}=a,m=()=>{const b=Ce.useManualTiming,S=b?i.timestamp:performance.now();r=!1,b||(i.delta=n?1e3/60:Math.max(Math.min(S-i.timestamp,hy),1)),i.timestamp=S,i.isProcessing=!0,o.process(i),u.process(i),c.process(i),l.process(i),f.process(i),h.process(i),p.process(i),y.process(i),i.isProcessing=!1,r&&t&&(n=!1,e(m))},d=()=>{r=!0,n=!0,i.isProcessing||e(m)};return{schedule:It.reduce((b,S)=>{const T=a[S];return b[S]=(_,A=!1,w=!1)=>(r||d(),T.schedule(_,A,w)),b},{}),cancel:b=>{for(let S=0;S<It.length;S++)a[It[S]].cancel(b)},state:i,steps:a}}const{schedule:j,cancel:Me,state:Z,steps:_r}=Id(typeof requestAnimationFrame<"u"?requestAnimationFrame:oe,!0);let kt;function dy(){kt=void 0}const ee={now:()=>(kt===void 0&&ee.set(Z.isProcessing||Ce.useManualTiming?Z.timestamp:performance.now()),kt),set:e=>{kt=e,queueMicrotask(dy)}},Dd=e=>t=>typeof t=="string"&&t.startsWith(e),Vd=Dd("--"),py=Dd("var(--"),po=e=>py(e)?my.test(e.split("/*")[0].trim()):!1,my=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Qo(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const et={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},bt={...et,transform:e=>ge(0,1,e)},Dt={...et,default:1},dt=e=>Math.round(e*1e5)/1e5,mo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function yy(e){return e==null}const gy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,yo=(e,t)=>r=>!!(typeof r=="string"&&gy.test(r)&&r.startsWith(e)||t&&!yy(r)&&Object.prototype.hasOwnProperty.call(r,t)),jd=(e,t,r)=>n=>{if(typeof n!="string")return n;const[i,s,a,o]=n.match(mo);return{[e]:parseFloat(i),[t]:parseFloat(s),[r]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},vy=e=>ge(0,255,e),Ar={...et,transform:e=>Math.round(vy(e))},Fe={test:yo("rgb","red"),parse:jd("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Ar.transform(e)+", "+Ar.transform(t)+", "+Ar.transform(r)+", "+dt(bt.transform(n))+")"};function by(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const _a={test:yo("#"),parse:by,transform:Fe.transform},Et=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xe=Et("deg"),ye=Et("%"),C=Et("px"),Sy=Et("vh"),Ty=Et("vw"),eu={...ye,parse:e=>ye.parse(e)/100,transform:e=>ye.transform(e*100)},ze={test:yo("hsl","hue"),parse:jd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ye.transform(dt(t))+", "+ye.transform(dt(r))+", "+dt(bt.transform(n))+")"},W={test:e=>Fe.test(e)||_a.test(e)||ze.test(e),parse:e=>Fe.test(e)?Fe.parse(e):ze.test(e)?ze.parse(e):_a.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Fe.transform(e):ze.transform(e),getAnimatableNone:e=>{const t=W.parse(e);return t.alpha=0,W.transform(t)}},_y=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ay(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(mo))==null?void 0:t.length)||0)+(((r=e.match(_y))==null?void 0:r.length)||0)>0}const Ld="number",Fd="color",wy="var",xy="var(",tu="${}",Py=/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 Ze(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[];let s=0;const o=t.replace(Py,u=>(W.test(u)?(n.color.push(s),i.push(Fd),r.push(W.parse(u))):u.startsWith(xy)?(n.var.push(s),i.push(wy),r.push(u)):(n.number.push(s),i.push(Ld),r.push(parseFloat(u))),++s,tu)).split(tu);return{values:r,split:o,indexes:n,types:i}}function Ry(e){return Ze(e).values}function kd({split:e,types:t}){const r=e.length;return n=>{let i="";for(let s=0;s<r;s++)if(i+=e[s],n[s]!==void 0){const a=t[s];a===Ld?i+=dt(n[s]):a===Fd?i+=W.transform(n[s]):i+=n[s]}return i}}function Ey(e){return kd(Ze(e))}const Cy=e=>typeof e=="number"?0:W.test(e)?W.getAnimatableNone(e):e,My=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:Cy(e);function qy(e){const t=Ze(e);return kd(t)(t.values.map((n,i)=>My(n,t.split[i])))}const he={test:Ay,parse:Ry,createTransformer:Ey,getAnimatableNone:qy};function wr(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Oy({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,s=0,a=0;if(!t)i=s=a=r;else{const o=r<.5?r*(1+t):r+t-r*t,u=2*r-o;i=wr(u,o,e+1/3),s=wr(u,o,e),a=wr(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:n}}function zt(e,t){return r=>r>0?t:e}const B=(e,t,r)=>e+(t-e)*r,xr=(e,t,r)=>{const n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},Iy=[_a,Fe,ze],Dy=e=>Iy.find(t=>t.test(e));function ru(e){const t=Dy(e);if(!t)return!1;let r=t.parse(e);return t===ze&&(r=Oy(r)),r}const nu=(e,t)=>{const r=ru(e),n=ru(t);if(!r||!n)return zt(e,t);const i={...r};return s=>(i.red=xr(r.red,n.red,s),i.green=xr(r.green,n.green,s),i.blue=xr(r.blue,n.blue,s),i.alpha=B(r.alpha,n.alpha,s),Fe.transform(i))},Aa=new Set(["none","hidden"]);function Vy(e,t){return Aa.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function jy(e,t){return r=>B(e,t,r)}function go(e){return typeof e=="number"?jy:typeof e=="string"?po(e)?zt:W.test(e)?nu:ky:Array.isArray(e)?Bd:typeof e=="object"?W.test(e)?nu:Ly:zt}function Bd(e,t){const r=[...e],n=r.length,i=e.map((s,a)=>go(s)(s,t[a]));return s=>{for(let a=0;a<n;a++)r[a]=i[a](s);return r}}function Ly(e,t){const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=go(e[i])(e[i],t[i]));return i=>{for(const s in n)r[s]=n[s](i);return r}}function Fy(e,t){const r=[],n={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][n[s]],o=e.values[a]??0;r[i]=o,n[s]++}return r}const ky=(e,t)=>{const r=he.createTransformer(t),n=Ze(e),i=Ze(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?Aa.has(e)&&!i.values.length||Aa.has(t)&&!n.values.length?Vy(e,t):Pt(Bd(Fy(n,i),i.values),r):zt(e,t)};function Nd(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?B(e,t,r):go(e)(e,t)}const By=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>j.update(t,r),stop:()=>Me(t),now:()=>Z.isProcessing?Z.timestamp:ee.now()}},Ud=(e,t,r=10)=>{let n="";const i=Math.max(Math.round(t/r),2);for(let s=0;s<i;s++)n+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},Xt=2e4;function vo(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<Xt;)t+=r,n=e.next(t);return t>=Xt?1/0:t}function Ny(e,t=100,r){const n=r({...e,keyframes:[0,t]}),i=Math.min(vo(n),Xt);return{type:"keyframes",ease:s=>n.next(i*s).value/t,duration:ae(i)}}const $={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 wa(e,t){return e*Math.sqrt(1-t*t)}const Uy=12;function $y(e,t,r){let n=r;for(let i=1;i<Uy;i++)n=n-e(n)/t(n);return n}const Pr=.001;function Gy({duration:e=$.duration,bounce:t=$.bounce,velocity:r=$.velocity,mass:n=$.mass}){let i,s,a=1-t;a=ge($.minDamping,$.maxDamping,a),e=ge($.minDuration,$.maxDuration,ae(e)),a<1?(i=c=>{const l=c*a,f=l*e,h=l-r,p=wa(c,a),y=Math.exp(-f);return Pr-h/p*y},s=c=>{const f=c*a*e,h=f*r+r,p=Math.pow(a,2)*Math.pow(c,2)*e,y=Math.exp(-f),m=wa(Math.pow(c,2),a);return(-i(c)+Pr>0?-1:1)*((h-p)*y)/m}):(i=c=>{const l=Math.exp(-c*e),f=(c-r)*e+1;return-Pr+l*f},s=c=>{const l=Math.exp(-c*e),f=(r-c)*(e*e);return l*f});const o=5/e,u=$y(i,s,o);if(e=ie(e),isNaN(u))return{stiffness:$.stiffness,damping:$.damping,duration:e};{const c=Math.pow(u,2)*n;return{stiffness:c,damping:a*2*Math.sqrt(n*c),duration:e}}}const Wy=["duration","bounce"],Hy=["stiffness","damping","mass"];function iu(e,t){return t.some(r=>e[r]!==void 0)}function Ky(e){let t={velocity:$.velocity,stiffness:$.stiffness,damping:$.damping,mass:$.mass,isResolvedFromDuration:!1,...e};if(!iu(e,Hy)&&iu(e,Wy))if(t.velocity=0,e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),i=n*n,s=2*ge(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:$.mass,stiffness:i,damping:s}}else{const r=Gy({...e,velocity:0});t={...t,...r,mass:$.mass},t.isResolvedFromDuration=!0}return t}function Yt(e=$.visualDuration,t=$.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:i}=r;const s=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],o={done:!1,value:s},{stiffness:u,damping:c,mass:l,duration:f,velocity:h,isResolvedFromDuration:p}=Ky({...r,velocity:-ae(r.velocity||0)}),y=h||0,m=c/(2*Math.sqrt(u*l)),d=a-s,g=ae(Math.sqrt(u/l)),v=Math.abs(d)<5;n||(n=v?$.restSpeed.granular:$.restSpeed.default),i||(i=v?$.restDelta.granular:$.restDelta.default);let b,S,T,_,A,w;if(m<1)T=wa(g,m),_=(y+m*g*d)/T,b=R=>{const x=Math.exp(-m*g*R);return a-x*(_*Math.sin(T*R)+d*Math.cos(T*R))},A=m*g*_+d*T,w=m*g*d-_*T,S=R=>Math.exp(-m*g*R)*(A*Math.sin(T*R)+w*Math.cos(T*R));else if(m===1){b=x=>a-Math.exp(-g*x)*(d+(y+g*d)*x);const R=y+g*d;S=x=>Math.exp(-g*x)*(g*R*x-y)}else{const R=g*Math.sqrt(m*m-1);b=U=>{const G=Math.exp(-m*g*U),Q=Math.min(R*U,300);return a-G*((y+m*g*d)*Math.sinh(Q)+R*d*Math.cosh(Q))/R};const x=(y+m*g*d)/R,q=m*g*x-d*R,O=m*g*d-x*R;S=U=>{const G=Math.exp(-m*g*U),Q=Math.min(R*U,300);return G*(q*Math.sinh(Q)+O*Math.cosh(Q))}}const M={calculatedDuration:p&&f||null,velocity:R=>ie(S(R)),next:R=>{if(!p&&m<1){const q=Math.exp(-m*g*R),O=Math.sin(T*R),U=Math.cos(T*R),G=a-q*(_*O+d*U),Q=ie(q*(A*O+w*U));return o.done=Math.abs(Q)<=n&&Math.abs(a-G)<=i,o.value=o.done?a:G,o}const x=b(R);if(p)o.done=R>=f;else{const q=ie(S(R));o.done=Math.abs(q)<=n&&Math.abs(a-x)<=i}return o.value=o.done?a:x,o},toString:()=>{const R=Math.min(vo(M),Xt),x=Ud(q=>M.next(R*q).value,R,30);return R+"ms "+x},toTransition:()=>{}};return M}Yt.applyToOptions=e=>{const t=Ny(e,100,Yt);return e.ease=t.ease,e.duration=ie(t.duration),e.type="keyframes",e};const zy=5;function $d(e,t,r){const n=Math.max(t-zy,0);return _d(r-e(n),t-n)}function xa({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:u,restDelta:c=.5,restSpeed:l}){const f=e[0],h={done:!1,value:f},p=w=>o!==void 0&&w<o||u!==void 0&&w>u,y=w=>o===void 0?u:u===void 0||Math.abs(o-w)<Math.abs(u-w)?o:u;let m=r*t;const d=f+m,g=a===void 0?d:a(d);g!==d&&(m=g-f);const v=w=>-m*Math.exp(-w/n),b=w=>g+v(w),S=w=>{const M=v(w),R=b(w);h.done=Math.abs(M)<=c,h.value=h.done?g:R};let T,_;const A=w=>{p(h.value)&&(T=w,_=Yt({keyframes:[h.value,y(h.value)],velocity:$d(b,w,h.value),damping:i,stiffness:s,restDelta:c,restSpeed:l}))};return A(0),{calculatedDuration:null,next:w=>{let M=!1;return!_&&T===void 0&&(M=!0,S(w),A(w)),T!==void 0&&w>=T?_.next(w-T):(!M&&S(w),h)}}}function Xy(e,t,r){const n=[],i=r||Ce.mix||Nd,s=e.length-1;for(let a=0;a<s;a++){let o=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||oe:t;o=Pt(u,o)}n.push(o)}return n}function Yy(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const s=e.length;if(co(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Xy(t,n,i),u=o.length,c=l=>{if(a&&l<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(l<e[f+1]);f++);const h=vt(e[f],e[f+1],l);return o[f](h)};return r?l=>c(ge(e[0],e[s-1],l)):c}function Zy(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=vt(0,t,n);e.push(B(r,1,i))}}function Jy(e){const t=[0];return Zy(t,e.length-1),t}function Qy(e,t){return e.map(r=>r*t)}function eg(e,t){return e.map(()=>t||qd).splice(0,e.length-1)}function pt({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=uy(n)?n.map(Jo):Jo(n),s={done:!1,value:t[0]},a=Qy(r&&r.length===t.length?r:Jy(t),e),o=Yy(a,t,{ease:Array.isArray(i)?i:eg(t,i)});return{calculatedDuration:e,next:u=>(s.value=o(u),s.done=u>=e,s)}}const tg=e=>e!==null;function ur(e,{repeat:t,repeatType:r="loop"},n,i=1){const s=e.filter(tg),o=i<0||t&&r!=="loop"&&t%2===1?0:s.length-1;return!o||n===void 0?s[o]:n}const rg={decay:xa,inertia:xa,tween:pt,keyframes:pt,spring:Yt};function Gd(e){typeof e.type=="string"&&(e.type=rg[e.type])}class bo{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const ng=e=>e/100;class Zt extends bo{constructor(t){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=()=>{var n,i;const{motionValue:r}=this.options;r&&r.updatedAt!==ee.now()&&this.tick(ee.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(n=this.options).onStop)==null||i.call(n))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Gd(t);const{type:r=pt,repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:o}=t;const u=r||pt;u!==pt&&typeof o[0]!="number"&&(this.mixKeyframes=Pt(ng,Nd(o[0],o[1])),o=[0,100]);const c=u({...t,keyframes:o});s==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=vo(c));const{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=c}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:u}=this;if(this.startTime===null)return n.next(0);const{delay:c=0,keyframes:l,repeat:f,repeatType:h,repeatDelay:p,type:y,onUpdate:m,finalKeyframe:d}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let b=this.currentTime,S=n;if(f){const w=Math.min(this.currentTime,i)/o;let M=Math.floor(w),R=w%1;!R&&w>=1&&(R=1),R===1&&M--,M=Math.min(M,f+1),!!(M%2)&&(h==="reverse"?(R=1-R,p&&(R-=p/o)):h==="mirror"&&(S=a)),b=ge(0,1,R)*o}let T;v?(this.delayState.value=l[0],T=this.delayState):T=S.next(b),s&&!v&&(T.value=s(T.value));let{done:_}=T;!v&&u!==null&&(_=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return A&&y!==xa&&(T.value=ur(l,this.options,d,this.speed)),m&&m(T.value),A&&this.finish(),T}then(t,r){return this.finished.then(t,r)}get duration(){return ae(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ae(t)}get time(){return ae(this.currentTime)}set time(t){t=ie(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const r=this.generator.next(t).value;return $d(n=>this.generator.next(n).value,t,r)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime(ee.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=ae(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=By,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(s=(i=this.options).onPlay)==null||s.call(i);const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ee.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(t=this.options).onComplete)==null||r.call(t)}cancel(){var t,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(t=this.options).onCancel)==null||r.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),t.observe(this)}}function ig(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ke=e=>e*180/Math.PI,Pa=e=>{const t=ke(Math.atan2(e[1],e[0]));return Ra(t)},sg={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Pa,rotateZ:Pa,skewX:e=>ke(Math.atan(e[1])),skewY:e=>ke(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ra=e=>(e=e%360,e<0&&(e+=360),e),su=Pa,au=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ou=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ag={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:au,scaleY:ou,scale:e=>(au(e)+ou(e))/2,rotateX:e=>Ra(ke(Math.atan2(e[6],e[5]))),rotateY:e=>Ra(ke(Math.atan2(-e[2],e[0]))),rotateZ:su,rotate:su,skewX:e=>ke(Math.atan(e[4])),skewY:e=>ke(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ea(e){return e.includes("scale")?1:0}function Ca(e,t){if(!e||e==="none")return Ea(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(r)n=ag,i=r;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=sg,i=o}if(!i)return Ea(t);const s=n[t],a=i[1].split(",").map(ug);return typeof s=="function"?s(a):a[s]}const og=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Ca(r,t)};function ug(e){return parseFloat(e.trim())}const tt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rt=new Set(tt),uu=e=>e===et||e===C,cg=new Set(["x","y","z"]),lg=tt.filter(e=>!cg.has(e));function fg(e){const t=[];return lg.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const Ee={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:n})=>{const i=e.max-e.min;return n==="border-box"?i:i-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:n})=>{const i=e.max-e.min;return n==="border-box"?i:i-parseFloat(t)-parseFloat(r)},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})=>Ca(t,"x"),y:(e,{transform:t})=>Ca(t,"y")};Ee.translateX=Ee.x;Ee.translateY=Ee.y;const Be=new Set;let Ma=!1,qa=!1,Oa=!1;function Wd(){if(qa){const e=Array.from(Be).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const i=fg(n);i.length&&(r.set(n,i),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const i=r.get(n);i&&i.forEach(([s,a])=>{var o;(o=n.getValue(s))==null||o.set(a)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}qa=!1,Ma=!1,Be.forEach(e=>e.complete(Oa)),Be.clear()}function Hd(){Be.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(qa=!0)})}function hg(){Oa=!0,Hd(),Wd(),Oa=!1}class So{constructor(t,r,n,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Be.add(this),Ma||(Ma=!0,j.read(Hd),j.resolveKeyframes(Wd))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(n&&r){const o=n.readValue(r,a);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}ig(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Be.delete(this)}cancel(){this.state==="scheduled"&&(Be.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const dg=e=>e.startsWith("--");function Kd(e,t,r){dg(t)?e.style.setProperty(t,r):e.style[t]=r}const pg={};function zd(e,t){const r=Td(e);return()=>pg[t]??r()}const mg=zd(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Xd=zd(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ct=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,cu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ct([0,.65,.55,1]),circOut:ct([.55,0,1,.45]),backIn:ct([.31,.01,.66,-.59]),backOut:ct([.33,1.53,.69,.99])};function Yd(e,t){if(e)return typeof e=="function"?Xd()?Ud(e,t):"ease-out":Od(e)?ct(e):Array.isArray(e)?e.map(r=>Yd(r,t)||cu.easeOut):cu[e]}function yg(e,t,r,{delay:n=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:u}={},c=void 0){const l={[t]:r};u&&(l.offset=u);const f=Yd(o,i);Array.isArray(f)&&(l.easing=f);const h={delay:n,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(l,h)}function Zd(e){return typeof e=="function"&&"applyToOptions"in e}function gg({type:e,...t}){return Zd(e)&&Xd()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Jd extends bo{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:n,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:o,onComplete:u}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,co(typeof t.type!="string");const c=gg(t);this.animation=yg(r,n,i,c,s),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const l=ur(i,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(l),Kd(r,n,l),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,r;(r=(t=this.animation).finish)==null||r.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var r,n,i;const t=(r=this.options)==null?void 0:r.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(n=this.animation).commitStyles)==null||i.call(n))}get duration(){var r,n;const t=((n=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:n.call(r).duration)||0;return ae(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ae(t)}get time(){return ae(Number(this.animation.currentTime)||0)}set time(t){const r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ie(t),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:r,rangeEnd:n,observe:i}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&mg()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),n&&(this.animation.rangeEnd=n),oe):i(this)}}const Qd={anticipate:Ed,backInOut:Rd,circInOut:Md};function vg(e){return e in Qd}function bg(e){typeof e.ease=="string"&&vg(e.ease)&&(e.ease=Qd[e.ease])}const Rr=10;class Sg extends Jd{constructor(t){bg(t),Gd(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:i,element:s,...a}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const o=new Zt({...a,autoplay:!1}),u=Math.max(Rr,ee.now()-this.startTime),c=ge(0,Rr,u-Rr),l=o.sample(u).value,{name:f}=this.options;s&&f&&Kd(s,f,l),r.setWithVelocity(o.sample(Math.max(0,u-c)).value,l,c),o.stop()}}const lu=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(he.test(e)||e==="0")&&!e.startsWith("url("));function Tg(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function _g(e,t,r,n){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=lu(i,t),o=lu(s,t);return!a||!o?!1:Tg(e)||(r==="spring"||Zd(r))&&n}function Ia(e){e.duration=0,e.type="keyframes"}const ep=new Set(["opacity","clipPath","filter","transform"]),Ag=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function wg(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Ag.test(e[t]))return!0;return!1}const xg=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Pg=Td(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Rg(e){var f;const{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:s,type:a,keyframes:o}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Pg()&&r&&(ep.has(r)||xg.has(r)&&wg(o))&&(r!=="transform"||!l)&&!c&&!n&&i!=="mirror"&&s!==0&&a!=="inertia"}const Eg=40;class Cg extends bo{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:o,name:u,motionValue:c,element:l,...f}){var y;super(),this.stop=()=>{var m,d;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(d=this.keyframeResolver)==null||d.cancel()},this.createdAt=ee.now();const h={autoplay:t,delay:r,type:n,repeat:i,repeatDelay:s,repeatType:a,name:u,motionValue:c,element:l,...f},p=(l==null?void 0:l.KeyframeResolver)||So;this.keyframeResolver=new p(o,(m,d,g)=>this.onKeyframesResolved(m,d,h,!g),u,c,l),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,r,n,i){var g,v;this.keyframeResolver=void 0;const{name:s,type:a,velocity:o,delay:u,isHandoff:c,onUpdate:l}=n;this.resolvedAt=ee.now();let f=!0;_g(t,s,a,o)||(f=!1,(Ce.instantAnimations||!u)&&(l==null||l(ur(t,n,r))),t[0]=t[t.length-1],Ia(n),n.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Eg?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},y=f&&!c&&Rg(p),m=(v=(g=p.motionValue)==null?void 0:g.owner)==null?void 0:v.current;let d;if(y)try{d=new Sg({...p,element:m})}catch{d=new Zt(p)}else d=new Zt(p);d.finished.then(()=>{this.notifyFinished()}).catch(oe),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),hg()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function tp(e,t,r,n=0,i=1){const s=Array.from(e).sort((c,l)=>c.sortNodePosition(l)).indexOf(t),a=e.size,o=(a-1)*n;return typeof r=="function"?r(s,a):i===1?s*n:o-s*n}const Mg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qg(e){const t=Mg.exec(e);if(!t)return[,];const[,r,n,i]=t;return[`--${r??n}`,i]}function rp(e,t,r=1){const[n,i]=qg(e);if(!n)return;const s=window.getComputedStyle(t).getPropertyValue(n);if(s){const a=s.trim();return vd(a)?parseFloat(a):a}return po(i)?rp(i,t,r+1):i}const Og={type:"spring",stiffness:500,damping:25,restSpeed:10},Ig=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Dg={type:"keyframes",duration:.8},Vg={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jg=(e,{keyframes:t})=>t.length>2?Dg:rt.has(e)?e.startsWith("scale")?Ig(t[1]):Og:Vg;function np(e,t){if(e!=null&&e.inherit&&t){const{inherit:r,...n}=e;return{...t,...n}}return e}function To(e,t){const r=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return r!==e?np(r,e):r}const Lg=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Fg(e){for(const t in e)if(!Lg.has(t))return!0;return!1}const _o=(e,t,r,n={},i,s)=>a=>{const o=To(n,e)||{},u=o.delay||n.delay||0;let{elapsed:c=0}=n;c=c-ie(u);const l={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-c,onUpdate:h=>{t.set(h),o.onUpdate&&o.onUpdate(h)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};Fg(o)||Object.assign(l,jg(e,l)),l.duration&&(l.duration=ie(l.duration)),l.repeatDelay&&(l.repeatDelay=ie(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let f=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(Ia(l),l.delay===0&&(f=!0)),(Ce.instantAnimations||Ce.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(f=!0,Ia(l),l.delay=0),l.allowFlatten=!o.type&&!o.ease,f&&!s&&t.get()!==void 0){const h=ur(l.keyframes,o);if(h!==void 0){j.update(()=>{l.onUpdate(h),l.onComplete()});return}}return o.isSync?new Zt(l):new Cg(l)};function fu(e){const t=[{},{}];return e==null||e.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function Ao(e,t,r,n){if(typeof t=="function"){const[i,s]=fu(n);t=t(r!==void 0?r:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=fu(n);t=t(r!==void 0?r:e.custom,i,s)}return t}function Ne(e,t,r){const n=e.getProps();return Ao(n,t,r!==void 0?r:n.custom,e)}const ip=new Set(["width","height","top","left","right","bottom",...tt]),hu=30,kg=e=>!isNaN(parseFloat(e));class Bg{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{var s;const i=ee.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=ee.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=kg(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new lo);const n=this.events[t].add(r);return t==="change"?()=>{n(),j.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ee.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>hu)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,hu);return _d(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,r;(t=this.dependents)==null||t.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Je(e,t){return new Bg(e,t)}const Da=e=>Array.isArray(e);function Ng(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Je(r))}function Ug(e){return Da(e)?e[e.length-1]||0:e}function $g(e,t){const r=Ne(e,t);let{transitionEnd:n={},transition:i={},...s}=r||{};s={...s,...n};for(const a in s){const o=Ug(s[a]);Ng(e,a,o)}}const J=e=>!!(e&&e.getVelocity);function Gg(e){return!!(J(e)&&e.add)}function Va(e,t){const r=e.getValue("willChange");if(Gg(r))return r.add(t);if(!r&&Ce.WillChange){const n=new Ce.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function wo(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Wg="framerAppearId",sp="data-"+wo(Wg);function ap(e){return e.props[sp]}function Hg({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function op(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:s,transitionEnd:a,...o}=t;const u=e.getDefaultTransition();s=s?np(s,u):u;const c=s==null?void 0:s.reduceMotion;n&&(s=n);const l=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in o){const p=e.getValue(h,e.latestValues[h]??null),y=o[h];if(y===void 0||f&&Hg(f,h))continue;const m={delay:r,...To(s||{},h)},d=p.get();if(d!==void 0&&!p.isAnimating()&&!Array.isArray(y)&&y===d&&!m.velocity){j.update(()=>p.set(y));continue}let g=!1;if(window.MotionHandoffAnimation){const S=ap(e);if(S){const T=window.MotionHandoffAnimation(S,h,j);T!==null&&(m.startTime=T,g=!0)}}Va(e,h);const v=c??e.shouldReduceMotion;p.start(_o(h,p,y,v&&ip.has(h)?{type:!1}:m,e,g));const b=p.animation;b&&l.push(b)}if(a){const h=()=>j.update(()=>{a&&$g(e,a)});l.length?Promise.all(l).then(h):h()}return l}function ja(e,t,r={}){var u;const n=Ne(e,t,r.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const s=n?()=>Promise.all(op(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:f,staggerDirection:h}=i;return Kg(e,t,c,l,f,h,r)}:()=>Promise.resolve(),{when:o}=i;if(o){const[c,l]=o==="beforeChildren"?[s,a]:[a,s];return c().then(()=>l())}else return Promise.all([s(),a(r.delay)])}function Kg(e,t,r=0,n=0,i=0,s=1,a){const o=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),o.push(ja(u,t,{...a,delay:r+(typeof n=="function"?0:n)+tp(e.variantChildren,u,n,i,s)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(o)}function zg(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(s=>ja(e,s,r));n=Promise.all(i)}else if(typeof t=="string")n=ja(e,t,r);else{const i=typeof t=="function"?Ne(e,t,r.custom):t;n=Promise.all(op(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}const Xg={test:e=>e==="auto",parse:e=>e},up=e=>t=>t.test(e),cp=[et,C,ye,xe,Ty,Sy,Xg],du=e=>cp.find(up(e));function Yg(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Sd(e):!0}const Zg=new Set(["brightness","contrast","saturate","opacity"]);function Jg(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(mo)||[];if(!n)return e;const i=r.replace(n,"");let s=Zg.has(t)?1:0;return n!==r&&(s*=100),t+"("+s+i+")"}const Qg=/\b([a-z-]*)\(.*?\)/gu,La={...he,getAnimatableNone:e=>{const t=e.match(Qg);return t?t.map(Jg).join(" "):e}},Fa={...he,getAnimatableNone:e=>{const t=he.parse(e);return he.createTransformer(e)(t.map(n=>typeof n=="number"?0:typeof n=="object"?{...n,alpha:1}:n))}},pu={...et,transform:Math.round},ev={rotate:xe,rotateX:xe,rotateY:xe,rotateZ:xe,scale:Dt,scaleX:Dt,scaleY:Dt,scaleZ:Dt,skew:xe,skewX:xe,skewY:xe,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:bt,originX:eu,originY:eu,originZ:C},xo={borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,top:C,right:C,bottom:C,left:C,inset:C,insetBlock:C,insetBlockStart:C,insetBlockEnd:C,insetInline:C,insetInlineStart:C,insetInlineEnd:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,paddingBlock:C,paddingBlockStart:C,paddingBlockEnd:C,paddingInline:C,paddingInlineStart:C,paddingInlineEnd:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,marginBlock:C,marginBlockStart:C,marginBlockEnd:C,marginInline:C,marginInlineStart:C,marginInlineEnd:C,fontSize:C,backgroundPositionX:C,backgroundPositionY:C,...ev,zIndex:pu,fillOpacity:bt,strokeOpacity:bt,numOctaves:pu},tv={...xo,color:W,backgroundColor:W,outlineColor:W,fill:W,stroke:W,borderColor:W,borderTopColor:W,borderRightColor:W,borderBottomColor:W,borderLeftColor:W,filter:La,WebkitFilter:La,mask:Fa,WebkitMask:Fa},lp=e=>tv[e],rv=new Set([La,Fa]);function fp(e,t){let r=lp(e);return rv.has(r)||(r=he),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const nv=new Set(["auto","none","0"]);function iv(e,t,r){let n=0,i;for(;n<e.length&&!i;){const s=e[n];typeof s=="string"&&!nv.has(s)&&Ze(s).values.length&&(i=e[n]),n++}if(i&&r)for(const s of t)e[s]=fp(r,i)}class sv extends So{constructor(t,r,n,i,s){super(t,r,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),po(f))){const h=rp(f,r.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!ip.has(n)||t.length!==2)return;const[i,s]=t,a=du(i),o=du(s),u=Qo(i),c=Qo(s);if(u!==c&&Ee[n]){this.needsMeasurement=!0;return}if(a!==o)if(uu(a)&&uu(o))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else Ee[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let i=0;i<t.length;i++)(t[i]===null||Yg(t[i]))&&n.push(i);n.length&&iv(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ee[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const i=r[r.length-1];i!==void 0&&t.getValue(n,i).jump(i,!1)}measureEndState(){var o;const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(r);i&&i.jump(this.measuredOrigin,!1);const s=n.length-1,a=n[s];n[s]=Ee[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEach(([u,c])=>{t.getValue(u).set(c)}),this.resolveNoneKeyframes()}}function hp(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const i=(r==null?void 0:r[e])??n.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(n=>n!=null)}const dp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Bt(e){return bd(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Po}=Id(queueMicrotask,!1),fe={x:!1,y:!1};function pp(){return fe.x||fe.y}function av(e){return e==="x"||e==="y"?fe[e]?null:(fe[e]=!0,()=>{fe[e]=!1}):fe.x||fe.y?null:(fe.x=fe.y=!0,()=>{fe.x=fe.y=!1})}function mp(e,t){const r=hp(e),n=new AbortController,i={passive:!0,...t,signal:n.signal};return[r,i,()=>n.abort()]}function ov(e){return!(e.pointerType==="touch"||pp())}function uv(e,t,r={}){const[n,i,s]=mp(e,r);return n.forEach(a=>{let o=!1,u=!1,c;const l=()=>{a.removeEventListener("pointerleave",y)},f=d=>{c&&(c(d),c=void 0),l()},h=d=>{o=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,f(d))},p=()=>{o=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},y=d=>{if(d.pointerType!=="touch"){if(o){u=!0;return}f(d)}},m=d=>{if(!ov(d))return;u=!1;const g=t(a,d);typeof g=="function"&&(c=g,a.addEventListener("pointerleave",y,i))};a.addEventListener("pointerenter",m,i),a.addEventListener("pointerdown",p,i)}),s}const yp=(e,t)=>t?e===t?!0:yp(e,t.parentElement):!1,Ro=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,cv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function lv(e){return cv.has(e.tagName)||e.isContentEditable===!0}const fv=new Set(["INPUT","SELECT","TEXTAREA"]);function hv(e){return fv.has(e.tagName)||e.isContentEditable===!0}const Nt=new WeakSet;function mu(e){return t=>{t.key==="Enter"&&e(t)}}function Er(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const dv=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=mu(()=>{if(Nt.has(r))return;Er(r,"down");const i=mu(()=>{Er(r,"up")}),s=()=>Er(r,"cancel");r.addEventListener("keyup",i,t),r.addEventListener("blur",s,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function yu(e){return Ro(e)&&!pp()}const gu=new WeakSet;function pv(e,t,r={}){const[n,i,s]=mp(e,r),a=o=>{const u=o.currentTarget;if(!yu(o)||gu.has(o))return;Nt.add(u),r.stopPropagation&&gu.add(o);const c=t(u,o),l=(p,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Nt.has(u)&&Nt.delete(u),yu(p)&&typeof c=="function"&&c(p,{success:y})},f=p=>{l(p,u===window||u===document||r.useGlobalTarget||yp(u,p.target))},h=p=>{l(p,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return n.forEach(o=>{(r.useGlobalTarget?window:o).addEventListener("pointerdown",a,i),Bt(o)&&(o.addEventListener("focus",c=>dv(c,i)),!lv(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function Eo(e){return bd(e)&&"ownerSVGElement"in e}const Ut=new WeakMap;let Pe;const gp=(e,t,r)=>(n,i)=>i&&i[0]?i[0][e+"Size"]:Eo(n)&&"getBBox"in n?n.getBBox()[t]:n[r],mv=gp("inline","width","offsetWidth"),yv=gp("block","height","offsetHeight");function gv({target:e,borderBoxSize:t}){var r;(r=Ut.get(e))==null||r.forEach(n=>{n(e,{get width(){return mv(e,t)},get height(){return yv(e,t)}})})}function vv(e){e.forEach(gv)}function bv(){typeof ResizeObserver>"u"||(Pe=new ResizeObserver(vv))}function Sv(e,t){Pe||bv();const r=hp(e);return r.forEach(n=>{let i=Ut.get(n);i||(i=new Set,Ut.set(n,i)),i.add(t),Pe==null||Pe.observe(n)}),()=>{r.forEach(n=>{const i=Ut.get(n);i==null||i.delete(t),i!=null&&i.size||Pe==null||Pe.unobserve(n)})}}const $t=new Set;let Xe;function Tv(){Xe=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};$t.forEach(t=>t(e))},window.addEventListener("resize",Xe)}function _v(e){return $t.add(e),Xe||Tv(),()=>{$t.delete(e),!$t.size&&typeof Xe=="function"&&(window.removeEventListener("resize",Xe),Xe=void 0)}}function vu(e,t){return typeof e=="function"?_v(e):Sv(e,t)}function Av(e){return Eo(e)&&e.tagName==="svg"}const wv=[...cp,W,he],xv=e=>wv.find(up(e)),bu=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ye=()=>({x:bu(),y:bu()}),Su=()=>({min:0,max:0}),K=()=>({x:Su(),y:Su()}),Pv=new WeakMap;function cr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function St(e){return typeof e=="string"||Array.isArray(e)}const Co=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mo=["initial",...Co];function lr(e){return cr(e.animate)||Mo.some(t=>St(e[t]))}function vp(e){return!!(lr(e)||e.variants)}function Rv(e,t,r){for(const n in t){const i=t[n],s=r[n];if(J(i))e.addValue(n,i);else if(J(s))e.addValue(n,Je(i,{owner:e}));else if(s!==i)if(e.hasValue(n)){const a=e.getValue(n);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(n);e.addValue(n,Je(a!==void 0?a:i,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const ka={current:null},bp={current:!1},Ev=typeof window<"u";function Cv(){if(bp.current=!0,!!Ev)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ka.current=e.matches;e.addEventListener("change",t),t()}else ka.current=!1}const Tu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Jt={};function Sp(e){Jt=e}function Mv(){return Jt}class qv{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,skipAnimations:s,blockInitialAnimation:a,visualState:o},u={}){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=So,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=ee.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,j.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=r.initial?{...c}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=s,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=lr(r),this.isVariantNode=vp(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(r,{},this);for(const p in h){const y=h[p];c[p]!==void 0&&J(y)&&y.set(c[p])}}mount(t){var r,n;if(this.hasBeenMounted)for(const i in this.initialValues)(r=this.values.get(i))==null||r.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,Pv.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,s)=>this.bindToMotionValue(s,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(bp.current||Cv(),this.shouldReduceMotion=ka.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Me(this.notifyUpdate),Me(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const n=this.features[r];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),r.accelerate&&ep.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:o,times:u,ease:c,duration:l}=r.accelerate,f=new Jd({element:this.current,name:t,keyframes:o,times:u,ease:c,duration:ie(l)}),h=a(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const n=rt.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&j.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Jt){const r=Jt[t];if(!r)continue;const{isEnabled:n,Feature:i}=r;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<Tu.length;n++){const i=Tu[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Rv(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Je(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(vd(n)||Sd(n))?n=parseFloat(n):!xv(n)&&he.test(r)&&(n=fp(t,r)),this.setBaseTarget(t,J(n)?n.get():n)),J(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var s;const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const a=Ao(this.props,r,(s=this.presenceContext)==null?void 0:s.custom);a&&(n=a[t])}if(r&&n!==void 0)return n;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!J(i)?i:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new lo),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Po.render(this.render)}}class Tp extends qv{constructor(){super(...arguments),this.KeyframeResolver=sv}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){const n=t.style;return n?n[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;J(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class qe{constructor(t){this.isMounted=!1,this.node=t}update(){}}function _p({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Ov({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Iv(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Cr(e){return e===void 0||e===1}function Ba({scale:e,scaleX:t,scaleY:r}){return!Cr(e)||!Cr(t)||!Cr(r)}function je(e){return Ba(e)||Ap(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ap(e){return _u(e.x)||_u(e.y)}function _u(e){return e&&e!=="0%"}function Qt(e,t,r){const n=e-r,i=t*n;return r+i}function Au(e,t,r,n,i){return i!==void 0&&(e=Qt(e,i,n)),Qt(e,r,n)+t}function Na(e,t=0,r=1,n,i){e.min=Au(e.min,t,r,n,i),e.max=Au(e.max,t,r,n,i)}function wp(e,{x:t,y:r}){Na(e.x,t.translate,t.scale,t.originPoint),Na(e.y,r.translate,r.scale,r.originPoint)}const wu=.999999999999,xu=1.0000000000001;function Dv(e,t,r,n=!1){var o;const i=r.length;if(!i)return;t.x=t.y=1;let s,a;for(let u=0;u<i;u++){s=r[u],a=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(pe(e.x,-s.scroll.offset.x),pe(e.y,-s.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,wp(e,a)),n&&je(s.latestValues)&&Gt(e,s.latestValues,(o=s.layout)==null?void 0:o.layoutBox))}t.x<xu&&t.x>wu&&(t.x=1),t.y<xu&&t.y>wu&&(t.y=1)}function pe(e,t){e.min+=t,e.max+=t}function Pu(e,t,r,n,i=.5){const s=B(e.min,e.max,i);Na(e,t,r,s,n)}function Ru(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Gt(e,t,r){const n=r??e;Pu(e.x,Ru(t.x,n.x),t.scaleX,t.scale,t.originX),Pu(e.y,Ru(t.y,n.y),t.scaleY,t.scale,t.originY)}function xp(e,t){return _p(Iv(e.getBoundingClientRect(),t))}function Vv(e,t,r){const n=xp(e,r),{scroll:i}=t;return i&&(pe(n.x,i.offset.x),pe(n.y,i.offset.y)),n}const jv={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Lv=tt.length;function Fv(e,t,r){let n="",i=!0;for(let s=0;s<Lv;s++){const a=tt[s],o=e[a];if(o===void 0)continue;let u=!0;if(typeof o=="number")u=o===(a.startsWith("scale")?1:0);else{const c=parseFloat(o);u=a.startsWith("scale")?c===1:c===0}if(!u||r){const c=dp(o,xo[a]);if(!u){i=!1;const l=jv[a]||a;n+=`${l}(${c}) `}r&&(t[a]=c)}}return n=n.trim(),r?n=r(t,i?"":n):i&&(n="none"),n}function qo(e,t,r){const{style:n,vars:i,transformOrigin:s}=e;let a=!1,o=!1;for(const u in t){const c=t[u];if(rt.has(u)){a=!0;continue}else if(Vd(u)){i[u]=c;continue}else{const l=dp(c,xo[u]);u.startsWith("origin")?(o=!0,s[u]=l):n[u]=l}}if(t.transform||(a||r?n.transform=Fv(t,e.transform,r):n.transform&&(n.transform="none")),o){const{originX:u="50%",originY:c="50%",originZ:l=0}=s;n.transformOrigin=`${u} ${c} ${l}`}}function Pp(e,{style:t,vars:r},n,i){const s=e.style;let a;for(a in t)s[a]=t[a];i==null||i.applyProjectionStyles(s,n);for(a in r)s.setProperty(a,r[a])}function Eu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ot={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(C.test(e))e=parseFloat(e);else return e;const r=Eu(e,t.target.x),n=Eu(e,t.target.y);return`${r}% ${n}%`}},kv={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=he.parse(e);if(i.length>5)return n;const s=he.createTransformer(e),a=typeof i[0]!="number"?1:0,o=r.x.scale*t.x,u=r.y.scale*t.y;i[0+a]/=o,i[1+a]/=u;const c=B(o,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=c),typeof i[3+a]=="number"&&(i[3+a]/=c),s(i)}},Ua={borderRadius:{...ot,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ot,borderTopRightRadius:ot,borderBottomLeftRadius:ot,borderBottomRightRadius:ot,boxShadow:kv};function Rp(e,{layout:t,layoutId:r}){return rt.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Ua[e]||e==="opacity")}function Oo(e,t,r){var a;const n=e.style,i=t==null?void 0:t.style,s={};if(!n)return s;for(const o in n)(J(n[o])||i&&J(i[o])||Rp(o,e)||((a=r==null?void 0:r.getValue(o))==null?void 0:a.liveStyle)!==void 0)&&(s[o]=n[o]);return s}function Bv(e){return window.getComputedStyle(e)}class Nv extends Tp{constructor(){super(...arguments),this.type="html",this.renderInstance=Pp}readValueFromInstance(t,r){var n;if(rt.has(r))return(n=this.projection)!=null&&n.isProjecting?Ea(r):og(t,r);{const i=Bv(t),s=(Vd(r)?i.getPropertyValue(r):i[r])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:r}){return xp(t,r)}build(t,r,n){qo(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Oo(t,r,n)}}const Uv={offset:"stroke-dashoffset",array:"stroke-dasharray"},$v={offset:"strokeDashoffset",array:"strokeDasharray"};function Gv(e,t,r=1,n=0,i=!0){e.pathLength=1;const s=i?Uv:$v;e[s.offset]=`${-n}`,e[s.array]=`${t} ${r}`}const Wv=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ep(e,{attrX:t,attrY:r,attrScale:n,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},u,c,l){if(qo(e,o,c),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=(l==null?void 0:l.transformBox)??"fill-box",delete f.transformBox);for(const p of Wv)f[p]!==void 0&&(h[p]=f[p],delete f[p]);t!==void 0&&(f.x=t),r!==void 0&&(f.y=r),n!==void 0&&(f.scale=n),i!==void 0&&Gv(f,i,s,a,!1)}const Cp=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"]),Mp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Hv(e,t,r,n){Pp(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(Cp.has(i)?i:wo(i),t.attrs[i])}function qp(e,t,r){const n=Oo(e,t,r);for(const i in e)if(J(e[i])||J(t[i])){const s=tt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[s]=e[i]}return n}class Kv extends Tp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(rt.has(r)){const n=lp(r);return n&&n.default||0}return r=Cp.has(r)?r:wo(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return qp(t,r,n)}build(t,r,n){Ep(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,i){Hv(t,r,n,i)}mount(t){this.isSVGTag=Mp(t.tagName),super.mount(t)}}const zv=Mo.length;function Op(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?Op(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<zv;r++){const n=Mo[r],i=e.props[n];(St(i)||i===!1)&&(t[n]=i)}return t}function Ip(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const Xv=[...Co].reverse(),Yv=Co.length;function Zv(e){return t=>Promise.all(t.map(({animation:r,options:n})=>zg(e,r,n)))}function Jv(e){let t=Zv(e),r=Cu(),n=!0,i=!1;const s=c=>(l,f)=>{var p;const h=Ne(e,f,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(h){const{transition:y,transitionEnd:m,...d}=h;l={...l,...d,...m}}return l};function a(c){t=c(e)}function o(c){const{props:l}=e,f=Op(e.parent)||{},h=[],p=new Set;let y={},m=1/0;for(let g=0;g<Yv;g++){const v=Xv[g],b=r[v],S=l[v]!==void 0?l[v]:f[v],T=St(S),_=v===c?b.isActive:null;_===!1&&(m=g);let A=S===f[v]&&S!==l[v]&&T;if(A&&(n||i)&&e.manuallyAnimateOnMount&&(A=!1),b.protectedKeys={...y},!b.isActive&&_===null||!S&&!b.prevProp||cr(S)||typeof S=="boolean")continue;if(v==="exit"&&b.isActive&&_!==!0){b.prevResolvedValues&&(y={...y,...b.prevResolvedValues});continue}const w=Qv(b.prevProp,S);let M=w||v===c&&b.isActive&&!A&&T||g>m&&T,R=!1;const x=Array.isArray(S)?S:[S];let q=x.reduce(s(v),{});_===!1&&(q={});const{prevResolvedValues:O={}}=b,U={...O,...q},G=X=>{M=!0,p.has(X)&&(R=!0,p.delete(X)),b.needsAnimating[X]=!0;const se=e.getValue(X);se&&(se.liveStyle=!1)};for(const X in U){const se=q[X],De=O[X];if(y.hasOwnProperty(X))continue;let He=!1;Da(se)&&Da(De)?He=!Ip(se,De):He=se!==De,He?se!=null?G(X):p.add(X):se!==void 0&&p.has(X)?G(X):b.protectedKeys[X]=!0}b.prevProp=S,b.prevResolvedValues=q,b.isActive&&(y={...y,...q}),(n||i)&&e.blockInitialAnimation&&(M=!1);const Q=A&&w;M&&(!Q||R)&&h.push(...x.map(X=>{const se={type:v};if(typeof X=="string"&&(n||i)&&!Q&&e.manuallyAnimateOnMount&&e.parent){const{parent:De}=e,He=Ne(De,X);if(De.enteringChildren&&He){const{delayChildren:Qm}=He.transition||{};se.delay=tp(De.enteringChildren,e,Qm)}}return{animation:X,options:se}}))}if(p.size){const g={};if(typeof l.initial!="boolean"){const v=Ne(e,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(g.transition=v.transition)}p.forEach(v=>{const b=e.getBaseTarget(v),S=e.getValue(v);S&&(S.liveStyle=!0),g[v]=b??null}),h.push({animation:g})}let d=!!h.length;return n&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(d=!1),n=!1,i=!1,d?t(h):Promise.resolve()}function u(c,l){var h;if(r[c].isActive===l)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(p=>{var y;return(y=p.animationState)==null?void 0:y.setActive(c,l)}),r[c].isActive=l;const f=o(c);for(const p in r)r[p].protectedKeys={};return f}return{animateChanges:o,setActive:u,setAnimateFunction:a,getState:()=>r,reset:()=>{r=Cu(),i=!0}}}function Qv(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ip(t,e):!1}function Ve(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Cu(){return{animate:Ve(!0),whileInView:Ve(),whileHover:Ve(),whileTap:Ve(),whileDrag:Ve(),whileFocus:Ve(),exit:Ve()}}function $a(e,t){e.min=t.min,e.max=t.max}function ce(e,t){$a(e.x,t.x),$a(e.y,t.y)}function Mu(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Dp=1e-4,eb=1-Dp,tb=1+Dp,Vp=.01,rb=0-Vp,nb=0+Vp;function te(e){return e.max-e.min}function ib(e,t,r){return Math.abs(e-t)<=r}function qu(e,t,r,n=.5){e.origin=n,e.originPoint=B(t.min,t.max,e.origin),e.scale=te(r)/te(t),e.translate=B(r.min,r.max,e.origin)-e.originPoint,(e.scale>=eb&&e.scale<=tb||isNaN(e.scale))&&(e.scale=1),(e.translate>=rb&&e.translate<=nb||isNaN(e.translate))&&(e.translate=0)}function mt(e,t,r,n){qu(e.x,t.x,r.x,n?n.originX:void 0),qu(e.y,t.y,r.y,n?n.originY:void 0)}function Ou(e,t,r,n=0){const i=n?B(r.min,r.max,n):r.min;e.min=i+t.min,e.max=e.min+te(t)}function sb(e,t,r,n){Ou(e.x,t.x,r.x,n==null?void 0:n.x),Ou(e.y,t.y,r.y,n==null?void 0:n.y)}function Iu(e,t,r,n=0){const i=n?B(r.min,r.max,n):r.min;e.min=t.min-i,e.max=e.min+te(t)}function er(e,t,r,n){Iu(e.x,t.x,r.x,n==null?void 0:n.x),Iu(e.y,t.y,r.y,n==null?void 0:n.y)}function Du(e,t,r,n,i){return e-=t,e=Qt(e,1/r,n),i!==void 0&&(e=Qt(e,1/i,n)),e}function ab(e,t=0,r=1,n=.5,i,s=e,a=e){if(ye.test(t)&&(t=parseFloat(t),t=B(a.min,a.max,t/100)-a.min),typeof t!="number")return;let o=B(s.min,s.max,n);e===s&&(o-=t),e.min=Du(e.min,t,r,o,i),e.max=Du(e.max,t,r,o,i)}function Vu(e,t,[r,n,i],s,a){ab(e,t[r],t[n],t[i],t.scale,s,a)}const ob=["x","scaleX","originX"],ub=["y","scaleY","originY"];function ju(e,t,r,n){Vu(e.x,t,ob,r?r.x:void 0,n?n.x:void 0),Vu(e.y,t,ub,r?r.y:void 0,n?n.y:void 0)}function Lu(e){return e.translate===0&&e.scale===1}function jp(e){return Lu(e.x)&&Lu(e.y)}function Fu(e,t){return e.min===t.min&&e.max===t.max}function cb(e,t){return Fu(e.x,t.x)&&Fu(e.y,t.y)}function ku(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Lp(e,t){return ku(e.x,t.x)&&ku(e.y,t.y)}function Bu(e){return te(e.x)/te(e.y)}function Nu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function de(e){return[e("x"),e("y")]}function lb(e,t,r){let n="";const i=e.x.translate/t.x,s=e.y.translate/t.y,a=(r==null?void 0:r.z)||0;if((i||s||a)&&(n=`translate3d(${i}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:c,rotate:l,rotateX:f,rotateY:h,skewX:p,skewY:y}=r;c&&(n=`perspective(${c}px) ${n}`),l&&(n+=`rotate(${l}deg) `),f&&(n+=`rotateX(${f}deg) `),h&&(n+=`rotateY(${h}deg) `),p&&(n+=`skewX(${p}deg) `),y&&(n+=`skewY(${y}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(n+=`scale(${o}, ${u})`),n||"none"}const Fp=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],fb=Fp.length,Uu=e=>typeof e=="string"?parseFloat(e):e,$u=e=>typeof e=="number"||C.test(e);function hb(e,t,r,n,i,s){i?(e.opacity=B(0,r.opacity??1,db(n)),e.opacityExit=B(t.opacity??1,0,pb(n))):s&&(e.opacity=B(t.opacity??1,r.opacity??1,n));for(let a=0;a<fb;a++){const o=Fp[a];let u=Gu(t,o),c=Gu(r,o);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||$u(u)===$u(c)?(e[o]=Math.max(B(Uu(u),Uu(c),n),0),(ye.test(c)||ye.test(u))&&(e[o]+="%")):e[o]=c}(t.rotate||r.rotate)&&(e.rotate=B(t.rotate||0,r.rotate||0,n))}function Gu(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const db=kp(0,.5,Cd),pb=kp(.5,.95,oe);function kp(e,t,r){return n=>n<e?0:n>t?1:r(vt(e,t,n))}function mb(e,t,r){const n=J(e)?e:Je(e);return n.start(_o("",n,t,r)),n.animation}function Tt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const yb=(e,t)=>e.depth-t.depth;class gb{constructor(){this.children=[],this.isDirty=!1}add(t){uo(this.children,t),this.isDirty=!0}remove(t){Kt(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(yb),this.isDirty=!1,this.children.forEach(t)}}function vb(e,t){const r=ee.now(),n=({timestamp:i})=>{const s=i-r;s>=t&&(Me(n),e(s-t))};return j.setup(n,!0),()=>Me(n)}function Wt(e){return J(e)?e.get():e}class bb{constructor(){this.members=[]}add(t){uo(this.members,t);for(let r=this.members.length-1;r>=0;r--){const n=this.members[r];if(n===t||n===this.lead||n===this.prevLead)continue;const i=n.instance;(!i||i.isConnected===!1)&&!n.snapshot&&(Kt(this.members,n),n.unmount())}t.scheduleRender()}remove(t){if(Kt(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){var r;for(let n=this.members.indexOf(t)-1;n>=0;n--){const i=this.members[n];if(i.isPresent!==!1&&((r=i.instance)==null?void 0:r.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,r){var i;const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=n.options,{layoutDependency:a}=t.options;(s===void 0||s!==a)&&(t.resumeFrom=n,r&&(n.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,n,i,s,a;(n=(r=t.options).onExitComplete)==null||n.call(r),(a=(i=t.resumingFrom)==null?void 0:(s=i.options).onExitComplete)==null||a.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Ht={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Mr=["","X","Y","Z"],Sb=1e3;let Tb=0;function qr(e,t,r,n){const{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Bp(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=ap(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",j,!(i||s))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&Bp(n)}function Np({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(a={},o=t==null?void 0:t()){this.id=Tb++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(wb),this.nodes.forEach(Mb),this.nodes.forEach(qb),this.nodes.forEach(xb)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new gb)}addEventListener(a,o){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new lo),this.eventHandlers.get(a).add(o)}notifyListeners(a,...o){const u=this.eventHandlers.get(a);u&&u.notify(...o)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=Eo(a)&&!Av(a),this.instance=a;const{layoutId:o,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||o)&&(this.isLayoutDirty=!0),e){let l,f=0;const h=()=>this.root.updateBlockedByResize=!1;j.read(()=>{f=window.innerWidth}),e(a,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,l&&l(),l=vb(h,250),Ht.hasAnimatedSinceResize&&(Ht.hasAnimatedSinceResize=!1,this.nodes.forEach(Ku)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&c&&(o||u)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||jb,{onLayoutAnimationStart:m,onLayoutAnimationComplete:d}=c.getProps(),g=!this.targetLayout||!Lp(this.targetLayout,p),v=!f&&h;if(this.options.layoutRoot||this.resumeFrom||v||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...To(y,"layout"),onPlay:m,onComplete:d};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(l,v)}else f||Ku(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Me(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(Ob),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Bp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const f=this.path[l];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:o,layout:u}=this.options;if(o===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const u=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),u&&this.nodes.forEach(Rb),this.nodes.forEach(Wu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Hu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Eb),this.nodes.forEach(Cb),this.nodes.forEach(_b),this.nodes.forEach(Ab)):this.nodes.forEach(Hu),this.clearAllSnapshots();const o=ee.now();Z.delta=ge(0,1e3/60,o-Z.timestamp),Z.timestamp=o,Z.isProcessing=!0,_r.update.process(Z),_r.preRender.process(Z),_r.render.process(Z),Z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Po.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Pb),this.sharedNodes.forEach(Ib)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,j.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){j.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!te(this.snapshot.measuredBox.x)&&!te(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 u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=K()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(o=!1),o&&this.instance){const u=n(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!jp(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,l=c!==this.prevTransformTemplateValue;a&&this.instance&&(o||je(this.latestValues)||l)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const o=this.measurePageBox();let u=this.removeElementScroll(o);return a&&(u=this.removeTransform(u)),Lb(u),{animationId:this.root.animationId,measuredBox:o,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:a}=this.options;if(!a)return K();const o=a.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(Fb))){const{scroll:l}=this.root;l&&(pe(o.x,l.offset.x),pe(o.y,l.offset.y))}return o}removeElementScroll(a){var u;const o=K();if(ce(o,a),(u=this.scroll)!=null&&u.wasRoot)return o;for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:f,options:h}=l;l!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&ce(o,a),pe(o.x,f.offset.x),pe(o.y,f.offset.y))}return o}applyTransform(a,o=!1,u){var l,f;const c=u||K();ce(c,a);for(let h=0;h<this.path.length;h++){const p=this.path[h];!o&&p.options.layoutScroll&&p.scroll&&p!==p.root&&(pe(c.x,-p.scroll.offset.x),pe(c.y,-p.scroll.offset.y)),je(p.latestValues)&&Gt(c,p.latestValues,(l=p.layout)==null?void 0:l.layoutBox)}return je(this.latestValues)&&Gt(c,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),c}removeTransform(a){var u;const o=K();ce(o,a);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!je(l.latestValues))continue;let f;l.instance&&(Ba(l.latestValues)&&l.updateSnapshot(),f=K(),ce(f,l.measurePageBox())),ju(o,l.latestValues,(u=l.snapshot)==null?void 0:u.layoutBox,f)}return je(this.latestValues)&&ju(o,this.latestValues),o}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var p;const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==o;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:f}=this.options;if(!this.layout||!(l||f))return;this.resolvedRelativeTargetAt=Z.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=K(),this.targetWithTransforms=K()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),sb(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ce(this.target,this.layout.layoutBox),wp(this.target,this.targetDelta)):ce(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ba(this.parent.latestValues)||Ap(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,o,u){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=K(),this.relativeTargetOrigin=K(),er(this.relativeTargetOrigin,o,u,this.options.layoutAnchor||void 0),ce(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var y;const a=this.getLead(),o=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(u=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Z.timestamp&&(u=!1),u)return;const{layout:c,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||l))return;ce(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;Dv(this.layoutCorrected,this.treeScale,this.path,o),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=K());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Mu(this.prevProjectionDelta.x,this.projectionDelta.x),Mu(this.prevProjectionDelta.y,this.projectionDelta.y)),mt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Nu(this.projectionDelta.x,this.prevProjectionDelta.x)||!Nu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var o;if((o=this.options.visualElement)==null||o.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ye(),this.projectionDelta=Ye(),this.projectionDeltaWithTransform=Ye()}setAnimationOrigin(a,o=!1){const u=this.snapshot,c=u?u.latestValues:{},l={...this.latestValues},f=Ye();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const h=K(),p=u?u.source:void 0,y=this.layout?this.layout.source:void 0,m=p!==y,d=this.getStack(),g=!d||d.members.length<=1,v=!!(m&&!g&&this.options.crossfade===!0&&!this.path.some(Vb));this.animationProgress=0;let b;this.mixTargetDelta=S=>{const T=S/1e3;zu(f.x,a.x,T),zu(f.y,a.y,T),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(er(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Db(this.relativeTarget,this.relativeTargetOrigin,h,T),b&&cb(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=K()),ce(b,this.relativeTarget)),m&&(this.animationValues=l,hb(l,c,this.latestValues,T,v,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var o,u,c;this.notifyListeners("animationStart"),(o=this.currentAnimation)==null||o.stop(),(c=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Me(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=j.update(()=>{Ht.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Je(0)),this.motionValue.jump(0,!1),this.currentAnimation=mb(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Sb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:o,target:u,layout:c,latestValues:l}=a;if(!(!o||!u||!c)){if(this!==a&&this.layout&&c&&Up(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||K();const f=te(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+f;const h=te(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+h}ce(o,u),Gt(o,l),mt(this.projectionDeltaWithTransform,this.layoutCorrected,o,l)}}registerSharedNode(a,o){this.sharedNodes.has(a)||this.sharedNodes.set(a,new bb),this.sharedNodes.get(a).add(o);const c=o.options.initialPromotionConfig;o.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(o):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())==null?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())==null?void 0:o.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:o,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let o=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const c={};u.z&&qr("z",a,c,this.animationValues);for(let l=0;l<Mr.length;l++)qr(`rotate${Mr[l]}`,a,c,this.animationValues),qr(`skew${Mr[l]}`,a,c,this.animationValues);a.render();for(const l in c)a.setStaticValue(l,c[l]),this.animationValues&&(this.animationValues[l]=c[l]);a.scheduleRender()}applyProjectionStyles(a,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Wt(o==null?void 0:o.pointerEvents)||"",a.transform=u?u(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Wt(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!je(this.latestValues)&&(a.transform=u?u({},""):"none",this.hasProjected=!1);return}a.visibility="";const l=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=lb(this.projectionDeltaWithTransform,this.treeScale,l);u&&(f=u(l,f)),a.transform=f;const{x:h,y:p}=this.projectionDelta;a.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,c.animationValues?a.opacity=c===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:a.opacity=c===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const y in Ua){if(l[y]===void 0)continue;const{correct:m,applyTo:d,isCSSVariable:g}=Ua[y],v=f==="none"?l[y]:m(l[y],c);if(d){const b=d.length;for(let S=0;S<b;S++)a[d[S]]=v}else g?this.options.visualElement.renderState.vars[y]=v:a[y]=v}this.options.layoutId&&(a.pointerEvents=c===this?Wt(o==null?void 0:o.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var o;return(o=a.currentAnimation)==null?void 0:o.stop()}),this.root.nodes.forEach(Wu),this.root.sharedNodes.clear()}}}function _b(e){e.updateLayout()}function Ab(e){var r;const t=((r=e.resumeFrom)==null?void 0:r.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:s}=e.options,a=t.source!==e.layout.source;if(s==="size")de(f=>{const h=a?t.measuredBox[f]:t.layoutBox[f],p=te(h);h.min=n[f].min,h.max=h.min+p});else if(s==="x"||s==="y"){const f=s==="x"?"y":"x";$a(a?t.measuredBox[f]:t.layoutBox[f],n[f])}else Up(s,t.layoutBox,n)&&de(f=>{const h=a?t.measuredBox[f]:t.layoutBox[f],p=te(n[f]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const o=Ye();mt(o,n,t.layoutBox);const u=Ye();a?mt(u,e.applyTransform(i,!0),t.measuredBox):mt(u,n,t.layoutBox);const c=!jp(o);let l=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:p}=f;if(h&&p){const y=e.options.layoutAnchor||void 0,m=K();er(m,t.layoutBox,h.layoutBox,y);const d=K();er(d,n,p.layoutBox,y),Lp(m,d)||(l=!0),f.options.layoutRoot&&(e.relativeTarget=d,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:u,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function wb(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function xb(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Pb(e){e.clearSnapshot()}function Wu(e){e.clearMeasurements()}function Rb(e){e.isLayoutDirty=!0,e.updateLayout()}function Hu(e){e.isLayoutDirty=!1}function Eb(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Cb(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ku(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Mb(e){e.resolveTargetDelta()}function qb(e){e.calcProjection()}function Ob(e){e.resetSkewAndRotation()}function Ib(e){e.removeLeadSnapshot()}function zu(e,t,r){e.translate=B(t.translate,0,r),e.scale=B(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Xu(e,t,r,n){e.min=B(t.min,r.min,n),e.max=B(t.max,r.max,n)}function Db(e,t,r,n){Xu(e.x,t.x,r.x,n),Xu(e.y,t.y,r.y,n)}function Vb(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const jb={duration:.45,ease:[.4,0,.1,1]},Yu=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Zu=Yu("applewebkit/")&&!Yu("chrome/")?Math.round:oe;function Ju(e){e.min=Zu(e.min),e.max=Zu(e.max)}function Lb(e){Ju(e.x),Ju(e.y)}function Up(e,t,r){return e==="position"||e==="preserve-aspect"&&!ib(Bu(t),Bu(r),.2)}function Fb(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const kb=Np({attachResizeListener:(e,t)=>Tt(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Or={current:void 0},$p=Np({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Or.current){const e=new kb({});e.mount(window),e.setOptions({layoutScroll:!0}),Or.current=e}return Or.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Io=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Qu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Bb(...e){return t=>{let r=!1;const n=e.map(i=>{const s=Qu(i,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let i=0;i<n.length;i++){const s=n[i];typeof s=="function"?s():Qu(e[i],null)}}}}function Nb(...e){return P.useCallback(Bb(...e),e)}class Ub extends P.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(Bt(r)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const n=r.offsetParent,i=Bt(n)&&n.offsetWidth||0,s=Bt(n)&&n.offsetHeight||0,a=getComputedStyle(r),o=this.props.sizeRef.current;o.height=parseFloat(a.height),o.width=parseFloat(a.width),o.top=r.offsetTop,o.left=r.offsetLeft,o.right=i-o.width-o.left,o.bottom=s-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function $b({children:e,isPresent:t,anchorX:r,anchorY:n,root:i,pop:s}){var h;const a=P.useId(),o=P.useRef(null),u=P.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=P.useContext(Io),l=((h=e.props)==null?void 0:h.ref)??(e==null?void 0:e.ref),f=Nb(o,l);return P.useInsertionEffect(()=>{const{width:p,height:y,top:m,left:d,right:g,bottom:v}=u.current;if(t||s===!1||!o.current||!p||!y)return;const b=r==="left"?`left: ${d}`:`right: ${g}`,S=n==="bottom"?`bottom: ${v}`:`top: ${m}`;o.current.dataset.motionPopId=a;const T=document.createElement("style");c&&(T.nonce=c);const _=i??document.head;return _.appendChild(T),T.sheet&&T.sheet.insertRule(`
2
+ [data-motion-pop-id="${a}"] {
3
+ position: absolute !important;
4
+ width: ${p}px !important;
5
+ height: ${y}px !important;
6
+ ${b}px !important;
7
+ ${S}px !important;
8
+ }
9
+ `),()=>{var A;(A=o.current)==null||A.removeAttribute("data-motion-pop-id"),_.contains(T)&&_.removeChild(T)}},[t]),Te.jsx(Ub,{isPresent:t,childRef:o,sizeRef:u,pop:s,children:s===!1?e:P.cloneElement(e,{ref:f})})}const Gb=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:s,mode:a,anchorX:o,anchorY:u,root:c})=>{const l=oo(Wb),f=P.useId();let h=!0,p=P.useMemo(()=>(h=!1,{id:f,initial:t,isPresent:r,custom:i,onExitComplete:y=>{l.set(y,!0);for(const m of l.values())if(!m)return;n&&n()},register:y=>(l.set(y,!1),()=>l.delete(y))}),[r,l,n]);return s&&h&&(p={...p}),P.useMemo(()=>{l.forEach((y,m)=>l.set(m,!1))},[r]),P.useEffect(()=>{!r&&!l.size&&n&&n()},[r]),e=Te.jsx($b,{pop:a==="popLayout",isPresent:r,anchorX:o,anchorY:u,root:c,children:e}),Te.jsx(or.Provider,{value:p,children:e})};function Wb(){return new Map}function Gp(e=!0){const t=P.useContext(or);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:i}=t,s=P.useId();P.useEffect(()=>{if(e)return i(s)},[e]);const a=P.useCallback(()=>e&&n&&n(s),[s,n,e]);return!r&&n?[!1,a]:[!0]}const Vt=e=>e.key||"";function ec(e){const t=[];return P.Children.forEach(e,r=>{P.isValidElement(r)&&t.push(r)}),t}const dw=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:i=!0,mode:s="sync",propagate:a=!1,anchorX:o="left",anchorY:u="top",root:c})=>{const[l,f]=Gp(a),h=P.useMemo(()=>ec(e),[e]),p=a&&!l?[]:h.map(Vt),y=P.useRef(!0),m=P.useRef(h),d=oo(()=>new Map),g=P.useRef(new Set),[v,b]=P.useState(h),[S,T]=P.useState(h);gd(()=>{y.current=!1,m.current=h;for(let w=0;w<S.length;w++){const M=Vt(S[w]);p.includes(M)?(d.delete(M),g.current.delete(M)):d.get(M)!==!0&&d.set(M,!1)}},[S,p.length,p.join("-")]);const _=[];if(h!==v){let w=[...h];for(let M=0;M<S.length;M++){const R=S[M],x=Vt(R);p.includes(x)||(w.splice(M,0,R),_.push(R))}return s==="wait"&&_.length&&(w=_),T(ec(w)),b(h),null}const{forceRender:A}=P.useContext(ao);return Te.jsx(Te.Fragment,{children:S.map(w=>{const M=Vt(w),R=a&&!l?!1:h===S||p.includes(M),x=()=>{if(g.current.has(M))return;if(d.has(M))g.current.add(M),d.set(M,!0);else return;let q=!0;d.forEach(O=>{O||(q=!1)}),q&&(A==null||A(),T(m.current),a&&(f==null||f()),n&&n())};return Te.jsx(Gb,{isPresent:R,initial:!y.current||r?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:c,onExitComplete:R?void 0:x,anchorX:o,anchorY:u,children:w},M)})})},Wp=P.createContext({strict:!1}),tc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let rc=!1;function Hb(){if(rc)return;const e={};for(const t in tc)e[t]={isEnabled:r=>tc[t].some(n=>!!r[n])};Sp(e),rc=!0}function Hp(){return Hb(),Mv()}function Kb(e){const t=Hp();for(const r in e)t[r]={...t[r],...e[r]};Sp(t)}const zb=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 tr(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||zb.has(e)}let Kp=e=>!tr(e);function Xb(e){typeof e=="function"&&(Kp=t=>t.startsWith("on")?!tr(t):e(t))}try{Xb(require("@emotion/is-prop-valid").default)}catch{}function Yb(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||J(e[i])||(Kp(i)||r===!0&&tr(i)||!t&&!tr(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}const fr=P.createContext({});function Zb(e,t){if(lr(e)){const{initial:r,animate:n}=e;return{initial:r===!1||St(r)?r:void 0,animate:St(n)?n:void 0}}return e.inherit!==!1?t:{}}function Jb(e){const{initial:t,animate:r}=Zb(e,P.useContext(fr));return P.useMemo(()=>({initial:t,animate:r}),[nc(t),nc(r)])}function nc(e){return Array.isArray(e)?e.join(" "):e}const Do=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function zp(e,t,r){for(const n in t)!J(t[n])&&!Rp(n,r)&&(e[n]=t[n])}function Qb({transformTemplate:e},t){return P.useMemo(()=>{const r=Do();return qo(r,t,e),Object.assign({},r.vars,r.style)},[t])}function e0(e,t){const r=e.style||{},n={};return zp(n,r,e),Object.assign(n,Qb(e,t)),n}function t0(e,t){const r={},n=e0(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const Xp=()=>({...Do(),attrs:{}});function r0(e,t,r,n){const i=P.useMemo(()=>{const s=Xp();return Ep(s,t,Mp(n),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};zp(s,e.style,e),i.style={...s,...i.style}}return i}const n0=["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 Vo(e){return typeof e!="string"||e.includes("-")?!1:!!(n0.indexOf(e)>-1||/[A-Z]/u.test(e))}function i0(e,t,r,{latestValues:n},i,s=!1,a){const u=(a??Vo(e)?r0:t0)(t,n,i,e),c=Yb(t,typeof e=="string",s),l=e!==P.Fragment?{...c,...u,ref:r}:{},{children:f}=t,h=P.useMemo(()=>J(f)?f.get():f,[f]);return P.createElement(e,{...l,children:h})}function s0({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,i){return{latestValues:a0(r,n,i,e),renderState:t()}}function a0(e,t,r,n){const i={},s=n(e,{});for(const h in s)i[h]=Wt(s[h]);let{initial:a,animate:o}=e;const u=lr(e),c=vp(e);t&&c&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),o===void 0&&(o=t.animate));let l=r?r.initial===!1:!1;l=l||a===!1;const f=l?o:a;if(f&&typeof f!="boolean"&&!cr(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const y=Ao(e,h[p]);if(y){const{transitionEnd:m,transition:d,...g}=y;for(const v in g){let b=g[v];if(Array.isArray(b)){const S=l?b.length-1:0;b=b[S]}b!==null&&(i[v]=b)}for(const v in m)i[v]=m[v]}}}return i}const Yp=e=>(t,r)=>{const n=P.useContext(fr),i=P.useContext(or),s=()=>s0(e,t,n,i);return r?s():oo(s)},o0=Yp({scrapeMotionValuesFromProps:Oo,createRenderState:Do}),u0=Yp({scrapeMotionValuesFromProps:qp,createRenderState:Xp}),c0=Symbol.for("motionComponentSymbol");function l0(e,t,r){const n=P.useRef(r);P.useInsertionEffect(()=>{n.current=r});const i=P.useRef(null);return P.useCallback(s=>{var o;s&&((o=e.onMount)==null||o.call(e,s));const a=n.current;if(typeof a=="function")if(s){const u=a(s);typeof u=="function"&&(i.current=u)}else i.current?(i.current(),i.current=null):a(s);else a&&(a.current=s);t&&(s?t.mount(s):t.unmount())},[t])}const Zp=P.createContext({});function Ke(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function f0(e,t,r,n,i,s){var b,S;const{visualElement:a}=P.useContext(fr),o=P.useContext(Wp),u=P.useContext(or),c=P.useContext(Io),l=c.reducedMotion,f=c.skipAnimations,h=P.useRef(null),p=P.useRef(!1);n=n||o.renderer,!h.current&&n&&(h.current=n(e,{visualState:t,parent:a,props:r,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:l,skipAnimations:f,isSVG:s}),p.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const y=h.current,m=P.useContext(Zp);y&&!y.projection&&i&&(y.type==="html"||y.type==="svg")&&h0(h.current,r,i,m);const d=P.useRef(!1);P.useInsertionEffect(()=>{y&&d.current&&y.update(r,u)});const g=r[sp],v=P.useRef(!!g&&typeof window<"u"&&!((b=window.MotionHandoffIsComplete)!=null&&b.call(window,g))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,g)));return gd(()=>{p.current=!0,y&&(d.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),v.current&&y.animationState&&y.animationState.animateChanges())}),P.useEffect(()=>{y&&(!v.current&&y.animationState&&y.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,g)}),v.current=!1),y.enteringChildren=void 0)}),y}function h0(e,t,r,n){const{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:u,layoutRoot:c,layoutAnchor:l,layoutCrossfade:f}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:Jp(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&Ke(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:n,crossfade:f,layoutScroll:u,layoutRoot:c,layoutAnchor:l})}function Jp(e){if(e)return e.options.allowProjection!==!1?e.projection:Jp(e.parent)}function Ir(e,{forwardMotionProps:t=!1,type:r}={},n,i){n&&Kb(n);const s=r?r==="svg":Vo(e),a=s?u0:o0;function o(c,l){let f;const h={...P.useContext(Io),...c,layoutId:d0(c)},{isStatic:p}=h,y=Jb(c),m=a(c,p);if(!p&&typeof window<"u"){p0();const d=m0(h);f=d.MeasureLayout,y.visualElement=f0(e,m,h,i,d.ProjectionNode,s)}return Te.jsxs(fr.Provider,{value:y,children:[f&&y.visualElement?Te.jsx(f,{visualElement:y.visualElement,...h}):null,i0(e,c,l0(m,y.visualElement,l),m,p,t,s)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=P.forwardRef(o);return u[c0]=e,u}function d0({layoutId:e}){const t=P.useContext(ao).id;return t&&e!==void 0?t+"-"+e:e}function p0(e,t){P.useContext(Wp).strict}function m0(e){const t=Hp(),{drag:r,layout:n}=t;if(!r&&!n)return{};const i={...r,...n};return{MeasureLayout:r!=null&&r.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function y0(e,t){if(typeof Proxy>"u")return Ir;const r=new Map,n=(s,a)=>Ir(s,a,e,t),i=(s,a)=>n(s,a);return new Proxy(i,{get:(s,a)=>a==="create"?n:(r.has(a)||r.set(a,Ir(a,void 0,e,t)),r.get(a))})}const g0=(e,t)=>t.isSVG??Vo(e)?new Kv(t):new Nv(t,{allowProjection:e!==P.Fragment});class v0 extends qe{constructor(t){super(t),t.animationState||(t.animationState=Jv(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();cr(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let b0=0;class S0 extends qe{constructor(){super(...arguments),this.id=b0++,this.isExitComplete=!1}update(){var s;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;if(t&&n===!1){if(this.isExitComplete){const{initial:a,custom:o}=this.node.getProps();if(typeof a=="string"){const u=Ne(this.node,a,o);if(u){const{transition:c,transitionEnd:l,...f}=u;for(const h in f)(s=this.node.getValue(h))==null||s.jump(f[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);r&&!t&&i.then(()=>{this.isExitComplete=!0,r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const T0={animation:{Feature:v0},exit:{Feature:S0}};function Ct(e){return{point:{x:e.pageX,y:e.pageY}}}const _0=e=>t=>Ro(t)&&e(t,Ct(t));function yt(e,t,r,n){return Tt(e,t,_0(r),n)}const Qp=({current:e})=>e?e.ownerDocument.defaultView:null,ic=(e,t)=>Math.abs(e-t);function A0(e,t){const r=ic(e.x,t.x),n=ic(e.y,t.y);return Math.sqrt(r**2+n**2)}const sc=new Set(["auto","scroll"]);class em{constructor(t,r,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:a=3,element:o}={}){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=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=jt(this.lastRawMoveEventInfo,this.transformPagePoint));const p=Dr(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,m=A0(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!m)return;const{point:d}=p,{timestamp:g}=Z;this.history.push({...d,timestamp:g});const{onStart:v,onMove:b}=this.handlers;y||(v&&v(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,p)},this.handlePointerMove=(p,y)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=jt(y,this.transformPagePoint),j.update(this.updatePoint,!0)},this.handlePointerUp=(p,y)=>{this.end();const{onEnd:m,onSessionEnd:d,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Dr(p.type==="pointercancel"?this.lastMoveEventInfo:jt(y,this.transformPagePoint),this.history);this.startEvent&&m&&m(p,v),d&&d(p,v)},!Ro(t))return;this.dragSnapToOrigin=s,this.handlers=r,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=i||window;const u=Ct(t),c=jt(u,this.transformPagePoint),{point:l}=c,{timestamp:f}=Z;this.history=[{...l,timestamp:f}];const{onSessionStart:h}=r;h&&h(t,Dr(c,this.history)),this.removeListeners=Pt(yt(this.contextWindow,"pointermove",this.handlePointerMove),yt(this.contextWindow,"pointerup",this.handlePointerUp),yt(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let r=t.parentElement;for(;r;){const n=getComputedStyle(r);(sc.has(n.overflowX)||sc.has(n.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.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(t){const r=this.scrollPositions.get(t);if(!r)return;const n=t===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:i.x-r.x,y:i.y-r.y};s.x===0&&s.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,i),j.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Me(this.updatePoint)}}function jt(e,t){return t?{point:t(e.point)}:e}function ac(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Dr({point:e},t){return{point:e,delta:ac(e,tm(t)),offset:ac(e,w0(t)),velocity:x0(t,.1)}}function w0(e){return e[0]}function tm(e){return e[e.length-1]}function x0(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=tm(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>ie(t)));)r--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&i.timestamp-n.timestamp>ie(t)*2&&(n=e[1]);const s=ae(i.timestamp-n.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-n.x)/s,y:(i.y-n.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function P0(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?B(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?B(r,e,n.max):Math.min(e,r)),e}function oc(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function R0(e,{top:t,left:r,bottom:n,right:i}){return{x:oc(e.x,r,i),y:oc(e.y,t,n)}}function uc(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function E0(e,t){return{x:uc(e.x,t.x),y:uc(e.y,t.y)}}function C0(e,t){let r=.5;const n=te(e),i=te(t);return i>n?r=vt(t.min,t.max-n,e.min):n>i&&(r=vt(e.min,e.max-i,t.min)),ge(0,1,r)}function M0(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Ga=.35;function q0(e=Ga){return e===!1?e=0:e===!0&&(e=Ga),{x:cc(e,"left","right"),y:cc(e,"top","bottom")}}function cc(e,t,r){return{min:lc(e,t),max:lc(e,r)}}function lc(e,t){return typeof e=="number"?e:e[t]||0}const O0=new WeakMap;class I0{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=K(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=f=>{r&&this.snapToCursor(Ct(f).point),this.stopAnimation()},a=(f,h)=>{const{drag:p,dragPropagation:y,onDragStart:m}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=av(p),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),de(g=>{let v=this.getAxisMotionValue(g).get()||0;if(ye.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const S=b.layout.layoutBox[g];S&&(v=te(S)*(parseFloat(v)/100))}}this.originPoint[g]=v}),m&&j.update(()=>m(f,h),!1,!0),Va(this.visualElement,"transform");const{animationState:d}=this.visualElement;d&&d.setActive("whileDrag",!0)},o=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:m,onDrag:d}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:g}=h;if(y&&this.currentDirection===null){this.currentDirection=V0(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),d&&j.update(()=>d(f,h),!1,!0)},u=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new em(t,{onSessionStart:s,onStart:a,onMove:o,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Qp(this.visualElement),element:this.visualElement.current})}stop(t,r){const n=t||this.latestPointerEvent,i=r||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!n)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:o}=this.getProps();o&&j.postRender(()=>o(n,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!Lt(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=P0(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&Ke(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=R0(n.layoutBox,t):this.constraints=!1,this.elastic=q0(r),i!==this.constraints&&!Ke(t)&&n&&this.constraints&&!this.hasMutatedConstraints&&de(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=M0(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Ke(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Vv(n,i.root,this.visualElement.getTransformPagePoint());let a=E0(i.layout.layoutBox,s);if(r){const o=r(Ov(a));this.hasMutatedConstraints=!!o,o&&(a=_p(o))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},c=de(l=>{if(!Lt(l,r,this.currentDirection))return;let f=u&&u[l]||{};(a===!0||a===l)&&(f={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,y={type:"inertia",velocity:n?t[l]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(l,y)});return Promise.all(c).then(o)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return Va(this.visualElement,t),n.start(_o(t,n,0,r,this.visualElement,!1))}stopAnimation(){de(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){de(r=>{const{drag:n}=this.getProps();if(!Lt(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(r);if(i&&i.layout){const{min:a,max:o}=i.layout.layoutBox[r],u=s.get()||0;s.set(t[r]-B(a,o,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Ke(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};de(a=>{const o=this.getAxisMotionValue(a);if(o&&this.constraints!==!1){const u=o.get();i[a]=C0({min:u,max:u},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),de(a=>{if(!Lt(a,t,null))return;const o=this.getAxisMotionValue(a),{min:u,max:c}=this.constraints[a];o.set(B(u,c,i[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;O0.set(this.visualElement,this);const t=this.visualElement.current,r=yt(t,"pointerdown",c=>{const{drag:l,dragListener:f=!0}=this.getProps(),h=c.target,p=h!==t&&hv(h);l&&f&&!p&&this.start(c)});let n;const i=()=>{const{dragConstraints:c}=this.getProps();Ke(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),n||(n=D0(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,a=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),j.read(i);const o=Tt(window,"resize",()=>this.scalePositionWithinConstraints()),u=s.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(de(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())}));return()=>{o(),r(),a(),u&&u(),n&&n()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=Ga,dragMomentum:o=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:o}}}function fc(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function D0(e,t,r){const n=vu(e,fc(r)),i=vu(t,fc(r));return()=>{n(),i()}}function Lt(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function V0(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class j0 extends qe{constructor(t){super(t),this.removeGroupControls=oe,this.removeListeners=oe,this.controls=new I0(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||oe}update(){const{dragControls:t}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};t!==r&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Vr=e=>(t,r)=>{e&&j.update(()=>e(t,r),!1,!0)};class L0 extends qe{constructor(){super(...arguments),this.removePointerDownListener=oe}onPointerDown(t){this.session=new em(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Qp(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Vr(t),onStart:Vr(r),onMove:Vr(n),onEnd:(s,a)=>{delete this.session,i&&j.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=yt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let jr=!1;class F0 extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;s&&(r.group&&r.group.add(s),n&&n.register&&i&&n.register(s),jr&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ht.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:s}=this.props,{projection:a}=n;return a&&(a.isPresent=s,t.layoutDependency!==r&&a.setOptions({...a.options,layoutDependency:r}),jr=!0,i||t.layoutDependency!==r||r===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||j.postRender(()=>{const o=a.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:r}=this.props,{projection:n}=t;n&&(n.options.layoutAnchor=r,n.root.didUpdate(),Po.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;jr=!0,i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rm(e){const[t,r]=Gp(),n=P.useContext(ao);return Te.jsx(F0,{...e,layoutGroup:n,switchLayoutGroup:P.useContext(Zp),isPresent:t,safeToRemove:r})}const k0={pan:{Feature:L0},drag:{Feature:j0,ProjectionNode:$p,MeasureLayout:rm}};function hc(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const i="onHover"+r,s=n[i];s&&j.postRender(()=>s(t,Ct(t)))}class B0 extends qe{mount(){const{current:t}=this.node;t&&(this.unmount=uv(t,(r,n)=>(hc(this.node,n,"Start"),i=>hc(this.node,i,"End"))))}unmount(){}}class N0 extends qe{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Pt(Tt(this.node.current,"focus",()=>this.onFocus()),Tt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function dc(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const i="onTap"+(r==="End"?"":r),s=n[i];s&&j.postRender(()=>s(t,Ct(t)))}class U0 extends qe{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:r,propagate:n}=this.node.props;this.unmount=pv(t,(i,s)=>(dc(this.node,s,"Start"),(a,{success:o})=>dc(this.node,a,o?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:(n==null?void 0:n.tap)===!1})}unmount(){}}const Wa=new WeakMap,Lr=new WeakMap,$0=e=>{const t=Wa.get(e.target);t&&t(e)},G0=e=>{e.forEach($0)};function W0({root:e,...t}){const r=e||document;Lr.has(r)||Lr.set(r,{});const n=Lr.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(G0,{root:e,...t})),n[i]}function H0(e,t,r){const n=W0(t);return Wa.set(e,r),n.observe(e),()=>{Wa.delete(e),n.unobserve(e)}}const K0={some:0,all:1};class z0 extends qe{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var u;(u=this.stopObserver)==null||u.call(this);const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:s}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:K0[i]},o=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,s&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),p=l?f:h;p&&p(c)};this.stopObserver=H0(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(X0(t,r))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function X0({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Y0={inView:{Feature:z0},tap:{Feature:U0},focus:{Feature:N0},hover:{Feature:B0}},Z0={layout:{ProjectionNode:$p,MeasureLayout:rm}},J0={...T0,...Y0,...k0,...Z0},pw=y0(J0,g0);function nm(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=nm(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function mw(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=nm(e))&&(n&&(n+=" "),n+=t);return n}var Fr,pc;function re(){if(pc)return Fr;pc=1;var e=Array.isArray;return Fr=e,Fr}var kr,mc;function im(){if(mc)return kr;mc=1;var e=typeof Ot=="object"&&Ot&&Ot.Object===Object&&Ot;return kr=e,kr}var Br,yc;function be(){if(yc)return Br;yc=1;var e=im(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Br=r,Br}var Nr,gc;function Mt(){if(gc)return Nr;gc=1;var e=be(),t=e.Symbol;return Nr=t,Nr}var Ur,vc;function Q0(){if(vc)return Ur;vc=1;var e=Mt(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function s(a){var o=r.call(a,i),u=a[i];try{a[i]=void 0;var c=!0}catch{}var l=n.call(a);return c&&(o?a[i]=u:delete a[i]),l}return Ur=s,Ur}var $r,bc;function e1(){if(bc)return $r;bc=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return $r=r,$r}var Gr,Sc;function Ae(){if(Sc)return Gr;Sc=1;var e=Mt(),t=Q0(),r=e1(),n="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function a(o){return o==null?o===void 0?i:n:s&&s in Object(o)?t(o):r(o)}return Gr=a,Gr}var Wr,Tc;function we(){if(Tc)return Wr;Tc=1;function e(t){return t!=null&&typeof t=="object"}return Wr=e,Wr}var Hr,_c;function nt(){if(_c)return Hr;_c=1;var e=Ae(),t=we(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Hr=n,Hr}var Kr,Ac;function jo(){if(Ac)return Kr;Ac=1;var e=re(),t=nt(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(s,a){if(e(s))return!1;var o=typeof s;return o=="number"||o=="symbol"||o=="boolean"||s==null||t(s)?!0:n.test(s)||!r.test(s)||a!=null&&s in Object(a)}return Kr=i,Kr}var zr,wc;function Oe(){if(wc)return zr;wc=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return zr=e,zr}var Xr,xc;function Lo(){if(xc)return Xr;xc=1;var e=Ae(),t=Oe(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function a(o){if(!t(o))return!1;var u=e(o);return u==n||u==i||u==r||u==s}return Xr=a,Xr}var Yr,Pc;function t1(){if(Pc)return Yr;Pc=1;var e=be(),t=e["__core-js_shared__"];return Yr=t,Yr}var Zr,Rc;function r1(){if(Rc)return Zr;Rc=1;var e=t1(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Zr=r,Zr}var Jr,Ec;function sm(){if(Ec)return Jr;Ec=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Jr=r,Jr}var Qr,Cc;function n1(){if(Cc)return Qr;Cc=1;var e=Lo(),t=r1(),r=Oe(),n=sm(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,a=Function.prototype,o=Object.prototype,u=a.toString,c=o.hasOwnProperty,l=RegExp("^"+u.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var p=e(h)?l:s;return p.test(n(h))}return Qr=f,Qr}var en,Mc;function i1(){if(Mc)return en;Mc=1;function e(t,r){return t==null?void 0:t[r]}return en=e,en}var tn,qc;function Ge(){if(qc)return tn;qc=1;var e=n1(),t=i1();function r(n,i){var s=t(n,i);return e(s)?s:void 0}return tn=r,tn}var rn,Oc;function hr(){if(Oc)return rn;Oc=1;var e=Ge(),t=e(Object,"create");return rn=t,rn}var nn,Ic;function s1(){if(Ic)return nn;Ic=1;var e=hr();function t(){this.__data__=e?e(null):{},this.size=0}return nn=t,nn}var sn,Dc;function a1(){if(Dc)return sn;Dc=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return sn=e,sn}var an,Vc;function o1(){if(Vc)return an;Vc=1;var e=hr(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(s){var a=this.__data__;if(e){var o=a[s];return o===t?void 0:o}return n.call(a,s)?a[s]:void 0}return an=i,an}var on,jc;function u1(){if(jc)return on;jc=1;var e=hr(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var s=this.__data__;return e?s[i]!==void 0:r.call(s,i)}return on=n,on}var un,Lc;function c1(){if(Lc)return un;Lc=1;var e=hr(),t="__lodash_hash_undefined__";function r(n,i){var s=this.__data__;return this.size+=this.has(n)?0:1,s[n]=e&&i===void 0?t:i,this}return un=r,un}var cn,Fc;function l1(){if(Fc)return cn;Fc=1;var e=s1(),t=a1(),r=o1(),n=u1(),i=c1();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var c=a[o];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,cn=s,cn}var ln,kc;function f1(){if(kc)return ln;kc=1;function e(){this.__data__=[],this.size=0}return ln=e,ln}var fn,Bc;function Fo(){if(Bc)return fn;Bc=1;function e(t,r){return t===r||t!==t&&r!==r}return fn=e,fn}var hn,Nc;function dr(){if(Nc)return hn;Nc=1;var e=Fo();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return hn=t,hn}var dn,Uc;function h1(){if(Uc)return dn;Uc=1;var e=dr(),t=Array.prototype,r=t.splice;function n(i){var s=this.__data__,a=e(s,i);if(a<0)return!1;var o=s.length-1;return a==o?s.pop():r.call(s,a,1),--this.size,!0}return dn=n,dn}var pn,$c;function d1(){if($c)return pn;$c=1;var e=dr();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return pn=t,pn}var mn,Gc;function p1(){if(Gc)return mn;Gc=1;var e=dr();function t(r){return e(this.__data__,r)>-1}return mn=t,mn}var yn,Wc;function m1(){if(Wc)return yn;Wc=1;var e=dr();function t(r,n){var i=this.__data__,s=e(i,r);return s<0?(++this.size,i.push([r,n])):i[s][1]=n,this}return yn=t,yn}var gn,Hc;function pr(){if(Hc)return gn;Hc=1;var e=f1(),t=h1(),r=d1(),n=p1(),i=m1();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var c=a[o];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,gn=s,gn}var vn,Kc;function ko(){if(Kc)return vn;Kc=1;var e=Ge(),t=be(),r=e(t,"Map");return vn=r,vn}var bn,zc;function y1(){if(zc)return bn;zc=1;var e=l1(),t=pr(),r=ko();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return bn=n,bn}var Sn,Xc;function g1(){if(Xc)return Sn;Xc=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Sn=e,Sn}var Tn,Yc;function mr(){if(Yc)return Tn;Yc=1;var e=g1();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Tn=t,Tn}var _n,Zc;function v1(){if(Zc)return _n;Zc=1;var e=mr();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return _n=t,_n}var An,Jc;function b1(){if(Jc)return An;Jc=1;var e=mr();function t(r){return e(this,r).get(r)}return An=t,An}var wn,Qc;function S1(){if(Qc)return wn;Qc=1;var e=mr();function t(r){return e(this,r).has(r)}return wn=t,wn}var xn,el;function T1(){if(el)return xn;el=1;var e=mr();function t(r,n){var i=e(this,r),s=i.size;return i.set(r,n),this.size+=i.size==s?0:1,this}return xn=t,xn}var Pn,tl;function Bo(){if(tl)return Pn;tl=1;var e=y1(),t=v1(),r=b1(),n=S1(),i=T1();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var c=a[o];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,Pn=s,Pn}var Rn,rl;function am(){if(rl)return Rn;rl=1;var e=Bo(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var s=function(){var a=arguments,o=i?i.apply(this,a):a[0],u=s.cache;if(u.has(o))return u.get(o);var c=n.apply(this,a);return s.cache=u.set(o,c)||u,c};return s.cache=new(r.Cache||e),s}return r.Cache=e,Rn=r,Rn}var En,nl;function _1(){if(nl)return En;nl=1;var e=am(),t=500;function r(n){var i=e(n,function(a){return s.size===t&&s.clear(),a}),s=i.cache;return i}return En=r,En}var Cn,il;function A1(){if(il)return Cn;il=1;var e=_1(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(a,o,u,c){s.push(u?c.replace(r,"$1"):o||a)}),s});return Cn=n,Cn}var Mn,sl;function No(){if(sl)return Mn;sl=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,s=Array(i);++n<i;)s[n]=r(t[n],n,t);return s}return Mn=e,Mn}var qn,al;function w1(){if(al)return qn;al=1;var e=Mt(),t=No(),r=re(),n=nt(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function a(o){if(typeof o=="string")return o;if(r(o))return t(o,a)+"";if(n(o))return s?s.call(o):"";var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}return qn=a,qn}var On,ol;function om(){if(ol)return On;ol=1;var e=w1();function t(r){return r==null?"":e(r)}return On=t,On}var In,ul;function um(){if(ul)return In;ul=1;var e=re(),t=jo(),r=A1(),n=om();function i(s,a){return e(s)?s:t(s,a)?[s]:r(n(s))}return In=i,In}var Dn,cl;function yr(){if(cl)return Dn;cl=1;var e=nt();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Dn=t,Dn}var Vn,ll;function Uo(){if(ll)return Vn;ll=1;var e=um(),t=yr();function r(n,i){i=e(i,n);for(var s=0,a=i.length;n!=null&&s<a;)n=n[t(i[s++])];return s&&s==a?n:void 0}return Vn=r,Vn}var jn,fl;function cm(){if(fl)return jn;fl=1;var e=Uo();function t(r,n,i){var s=r==null?void 0:e(r,n);return s===void 0?i:s}return jn=t,jn}var x1=cm();const yw=F(x1);var Ln,hl;function P1(){if(hl)return Ln;hl=1;function e(t){return t==null}return Ln=e,Ln}var R1=P1();const gw=F(R1);var Fn,dl;function E1(){if(dl)return Fn;dl=1;var e=Ae(),t=re(),r=we(),n="[object String]";function i(s){return typeof s=="string"||!t(s)&&r(s)&&e(s)==n}return Fn=i,Fn}var C1=E1();const vw=F(C1);var M1=Lo();const bw=F(M1);var q1=Oe();const Sw=F(q1);var kn={exports:{}},I={};/**
10
+ * @license React
11
+ * react-is.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var pl;function O1(){if(pl)return I;pl=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),o=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(d){if(typeof d=="object"&&d!==null){var g=d.$$typeof;switch(g){case e:switch(d=d.type,d){case r:case i:case n:case c:case l:return d;default:switch(d=d&&d.$$typeof,d){case o:case a:case u:case h:case f:case s:return d;default:return g}}case t:return g}}}return I.ContextConsumer=a,I.ContextProvider=s,I.Element=e,I.ForwardRef=u,I.Fragment=r,I.Lazy=h,I.Memo=f,I.Portal=t,I.Profiler=i,I.StrictMode=n,I.Suspense=c,I.SuspenseList=l,I.isAsyncMode=function(){return!1},I.isConcurrentMode=function(){return!1},I.isContextConsumer=function(d){return m(d)===a},I.isContextProvider=function(d){return m(d)===s},I.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},I.isForwardRef=function(d){return m(d)===u},I.isFragment=function(d){return m(d)===r},I.isLazy=function(d){return m(d)===h},I.isMemo=function(d){return m(d)===f},I.isPortal=function(d){return m(d)===t},I.isProfiler=function(d){return m(d)===i},I.isStrictMode=function(d){return m(d)===n},I.isSuspense=function(d){return m(d)===c},I.isSuspenseList=function(d){return m(d)===l},I.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===c||d===l||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===f||d.$$typeof===s||d.$$typeof===a||d.$$typeof===u||d.$$typeof===y||d.getModuleId!==void 0)},I.typeOf=m,I}var ml;function I1(){return ml||(ml=1,kn.exports=O1()),kn.exports}var Tw=I1(),Bn,yl;function lm(){if(yl)return Bn;yl=1;var e=Ae(),t=we(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Bn=n,Bn}var Nn,gl;function D1(){if(gl)return Nn;gl=1;var e=lm();function t(r){return e(r)&&r!=+r}return Nn=t,Nn}var V1=D1();const _w=F(V1);var j1=lm();const Aw=F(j1);var Un,vl;function L1(){if(vl)return Un;vl=1;function e(t,r,n){var i=-1,s=t.length;r<0&&(r=-r>s?0:s+r),n=n>s?s:n,n<0&&(n+=s),s=r>n?0:n-r>>>0,r>>>=0;for(var a=Array(s);++i<s;)a[i]=t[i+r];return a}return Un=e,Un}var $n,bl;function F1(){if(bl)return $n;bl=1;var e=L1();function t(r,n,i){var s=r.length;return i=i===void 0?s:i,!n&&i>=s?r:e(r,n,i)}return $n=t,$n}var Gn,Sl;function fm(){if(Sl)return Gn;Sl=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\ufe0e\\ufe0f",a="\\u200d",o=RegExp("["+a+e+i+s+"]");function u(c){return o.test(c)}return Gn=u,Gn}var Wn,Tl;function k1(){if(Tl)return Wn;Tl=1;function e(t){return t.split("")}return Wn=e,Wn}var Hn,_l;function B1(){if(_l)return Hn;_l=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\ufe0e\\ufe0f",a="["+e+"]",o="["+i+"]",u="\\ud83c[\\udffb-\\udfff]",c="(?:"+o+"|"+u+")",l="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=c+"?",m="["+s+"]?",d="(?:"+p+"(?:"+[l,f,h].join("|")+")"+m+y+")*",g=m+y+d,v="(?:"+[l+o+"?",o,f,h,a].join("|")+")",b=RegExp(u+"(?="+u+")|"+v+g,"g");function S(T){return T.match(b)||[]}return Hn=S,Hn}var Kn,Al;function N1(){if(Al)return Kn;Al=1;var e=k1(),t=fm(),r=B1();function n(i){return t(i)?r(i):e(i)}return Kn=n,Kn}var zn,wl;function U1(){if(wl)return zn;wl=1;var e=F1(),t=fm(),r=N1(),n=om();function i(s){return function(a){a=n(a);var o=t(a)?r(a):void 0,u=o?o[0]:a.charAt(0),c=o?e(o,1).join(""):a.slice(1);return u[s]()+c}}return zn=i,zn}var Xn,xl;function $1(){if(xl)return Xn;xl=1;var e=U1(),t=e("toUpperCase");return Xn=t,Xn}var G1=$1();const ww=F(G1);var Yn,Pl;function W1(){if(Pl)return Yn;Pl=1;var e=pr();function t(){this.__data__=new e,this.size=0}return Yn=t,Yn}var Zn,Rl;function H1(){if(Rl)return Zn;Rl=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Zn=e,Zn}var Jn,El;function K1(){if(El)return Jn;El=1;function e(t){return this.__data__.get(t)}return Jn=e,Jn}var Qn,Cl;function z1(){if(Cl)return Qn;Cl=1;function e(t){return this.__data__.has(t)}return Qn=e,Qn}var ei,Ml;function X1(){if(Ml)return ei;Ml=1;var e=pr(),t=ko(),r=Bo(),n=200;function i(s,a){var o=this.__data__;if(o instanceof e){var u=o.__data__;if(!t||u.length<n-1)return u.push([s,a]),this.size=++o.size,this;o=this.__data__=new r(u)}return o.set(s,a),this.size=o.size,this}return ei=i,ei}var ti,ql;function hm(){if(ql)return ti;ql=1;var e=pr(),t=W1(),r=H1(),n=K1(),i=z1(),s=X1();function a(o){var u=this.__data__=new e(o);this.size=u.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=i,a.prototype.set=s,ti=a,ti}var ri,Ol;function Y1(){if(Ol)return ri;Ol=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return ri=t,ri}var ni,Il;function Z1(){if(Il)return ni;Il=1;function e(t){return this.__data__.has(t)}return ni=e,ni}var ii,Dl;function dm(){if(Dl)return ii;Dl=1;var e=Bo(),t=Y1(),r=Z1();function n(i){var s=-1,a=i==null?0:i.length;for(this.__data__=new e;++s<a;)this.add(i[s])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,ii=n,ii}var si,Vl;function pm(){if(Vl)return si;Vl=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return si=e,si}var ai,jl;function mm(){if(jl)return ai;jl=1;function e(t,r){return t.has(r)}return ai=e,ai}var oi,Ll;function ym(){if(Ll)return oi;Ll=1;var e=dm(),t=pm(),r=mm(),n=1,i=2;function s(a,o,u,c,l,f){var h=u&n,p=a.length,y=o.length;if(p!=y&&!(h&&y>p))return!1;var m=f.get(a),d=f.get(o);if(m&&d)return m==o&&d==a;var g=-1,v=!0,b=u&i?new e:void 0;for(f.set(a,o),f.set(o,a);++g<p;){var S=a[g],T=o[g];if(c)var _=h?c(T,S,g,o,a,f):c(S,T,g,a,o,f);if(_!==void 0){if(_)continue;v=!1;break}if(b){if(!t(o,function(A,w){if(!r(b,w)&&(S===A||l(S,A,u,c,f)))return b.push(w)})){v=!1;break}}else if(!(S===T||l(S,T,u,c,f))){v=!1;break}}return f.delete(a),f.delete(o),v}return oi=s,oi}var ui,Fl;function J1(){if(Fl)return ui;Fl=1;var e=be(),t=e.Uint8Array;return ui=t,ui}var ci,kl;function Q1(){if(kl)return ci;kl=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,s){n[++r]=[s,i]}),n}return ci=e,ci}var li,Bl;function $o(){if(Bl)return li;Bl=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return li=e,li}var fi,Nl;function eS(){if(Nl)return fi;Nl=1;var e=Mt(),t=J1(),r=Fo(),n=ym(),i=Q1(),s=$o(),a=1,o=2,u="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",m="[object String]",d="[object Symbol]",g="[object ArrayBuffer]",v="[object DataView]",b=e?e.prototype:void 0,S=b?b.valueOf:void 0;function T(_,A,w,M,R,x,q){switch(w){case v:if(_.byteLength!=A.byteLength||_.byteOffset!=A.byteOffset)return!1;_=_.buffer,A=A.buffer;case g:return!(_.byteLength!=A.byteLength||!x(new t(_),new t(A)));case u:case c:case h:return r(+_,+A);case l:return _.name==A.name&&_.message==A.message;case p:case m:return _==A+"";case f:var O=i;case y:var U=M&a;if(O||(O=s),_.size!=A.size&&!U)return!1;var G=q.get(_);if(G)return G==A;M|=o,q.set(_,A);var Q=n(O(_),O(A),M,R,x,q);return q.delete(_),Q;case d:if(S)return S.call(_)==S.call(A)}return!1}return fi=T,fi}var hi,Ul;function gm(){if(Ul)return hi;Ul=1;function e(t,r){for(var n=-1,i=r.length,s=t.length;++n<i;)t[s+n]=r[n];return t}return hi=e,hi}var di,$l;function tS(){if($l)return di;$l=1;var e=gm(),t=re();function r(n,i,s){var a=i(n);return t(n)?a:e(a,s(n))}return di=r,di}var pi,Gl;function rS(){if(Gl)return pi;Gl=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,s=0,a=[];++n<i;){var o=t[n];r(o,n,t)&&(a[s++]=o)}return a}return pi=e,pi}var mi,Wl;function nS(){if(Wl)return mi;Wl=1;function e(){return[]}return mi=e,mi}var yi,Hl;function iS(){if(Hl)return yi;Hl=1;var e=rS(),t=nS(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(o){return n.call(a,o)}))}:t;return yi=s,yi}var gi,Kl;function sS(){if(Kl)return gi;Kl=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return gi=e,gi}var vi,zl;function aS(){if(zl)return vi;zl=1;var e=Ae(),t=we(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return vi=n,vi}var bi,Xl;function Go(){if(Xl)return bi;Xl=1;var e=aS(),t=we(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(a){return t(a)&&n.call(a,"callee")&&!i.call(a,"callee")};return bi=s,bi}var lt={exports:{}},Si,Yl;function oS(){if(Yl)return Si;Yl=1;function e(){return!1}return Si=e,Si}lt.exports;var Zl;function vm(){return Zl||(Zl=1,(function(e,t){var r=be(),n=oS(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===i,o=a?r.Buffer:void 0,u=o?o.isBuffer:void 0,c=u||n;e.exports=c})(lt,lt.exports)),lt.exports}var Ti,Jl;function Wo(){if(Jl)return Ti;Jl=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var s=typeof n;return i=i??e,!!i&&(s=="number"||s!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Ti=r,Ti}var _i,Ql;function Ho(){if(Ql)return _i;Ql=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return _i=t,_i}var Ai,ef;function uS(){if(ef)return Ai;ef=1;var e=Ae(),t=Ho(),r=we(),n="[object Arguments]",i="[object Array]",s="[object Boolean]",a="[object Date]",o="[object Error]",u="[object Function]",c="[object Map]",l="[object Number]",f="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",m="[object WeakMap]",d="[object ArrayBuffer]",g="[object DataView]",v="[object Float32Array]",b="[object Float64Array]",S="[object Int8Array]",T="[object Int16Array]",_="[object Int32Array]",A="[object Uint8Array]",w="[object Uint8ClampedArray]",M="[object Uint16Array]",R="[object Uint32Array]",x={};x[v]=x[b]=x[S]=x[T]=x[_]=x[A]=x[w]=x[M]=x[R]=!0,x[n]=x[i]=x[d]=x[s]=x[g]=x[a]=x[o]=x[u]=x[c]=x[l]=x[f]=x[h]=x[p]=x[y]=x[m]=!1;function q(O){return r(O)&&t(O.length)&&!!x[e(O)]}return Ai=q,Ai}var wi,tf;function bm(){if(tf)return wi;tf=1;function e(t){return function(r){return t(r)}}return wi=e,wi}var ft={exports:{}};ft.exports;var rf;function cS(){return rf||(rf=1,(function(e,t){var r=im(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===n,a=s&&r.process,o=(function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}})();e.exports=o})(ft,ft.exports)),ft.exports}var xi,nf;function Sm(){if(nf)return xi;nf=1;var e=uS(),t=bm(),r=cS(),n=r&&r.isTypedArray,i=n?t(n):e;return xi=i,xi}var Pi,sf;function lS(){if(sf)return Pi;sf=1;var e=sS(),t=Go(),r=re(),n=vm(),i=Wo(),s=Sm(),a=Object.prototype,o=a.hasOwnProperty;function u(c,l){var f=r(c),h=!f&&t(c),p=!f&&!h&&n(c),y=!f&&!h&&!p&&s(c),m=f||h||p||y,d=m?e(c.length,String):[],g=d.length;for(var v in c)(l||o.call(c,v))&&!(m&&(v=="length"||p&&(v=="offset"||v=="parent")||y&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||i(v,g)))&&d.push(v);return d}return Pi=u,Pi}var Ri,af;function fS(){if(af)return Ri;af=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Ri=t,Ri}var Ei,of;function Tm(){if(of)return Ei;of=1;function e(t,r){return function(n){return t(r(n))}}return Ei=e,Ei}var Ci,uf;function hS(){if(uf)return Ci;uf=1;var e=Tm(),t=e(Object.keys,Object);return Ci=t,Ci}var Mi,cf;function dS(){if(cf)return Mi;cf=1;var e=fS(),t=hS(),r=Object.prototype,n=r.hasOwnProperty;function i(s){if(!e(s))return t(s);var a=[];for(var o in Object(s))n.call(s,o)&&o!="constructor"&&a.push(o);return a}return Mi=i,Mi}var qi,lf;function qt(){if(lf)return qi;lf=1;var e=Lo(),t=Ho();function r(n){return n!=null&&t(n.length)&&!e(n)}return qi=r,qi}var Oi,ff;function gr(){if(ff)return Oi;ff=1;var e=lS(),t=dS(),r=qt();function n(i){return r(i)?e(i):t(i)}return Oi=n,Oi}var Ii,hf;function pS(){if(hf)return Ii;hf=1;var e=tS(),t=iS(),r=gr();function n(i){return e(i,r,t)}return Ii=n,Ii}var Di,df;function mS(){if(df)return Di;df=1;var e=pS(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(s,a,o,u,c,l){var f=o&t,h=e(s),p=h.length,y=e(a),m=y.length;if(p!=m&&!f)return!1;for(var d=p;d--;){var g=h[d];if(!(f?g in a:n.call(a,g)))return!1}var v=l.get(s),b=l.get(a);if(v&&b)return v==a&&b==s;var S=!0;l.set(s,a),l.set(a,s);for(var T=f;++d<p;){g=h[d];var _=s[g],A=a[g];if(u)var w=f?u(A,_,g,a,s,l):u(_,A,g,s,a,l);if(!(w===void 0?_===A||c(_,A,o,u,l):w)){S=!1;break}T||(T=g=="constructor")}if(S&&!T){var M=s.constructor,R=a.constructor;M!=R&&"constructor"in s&&"constructor"in a&&!(typeof M=="function"&&M instanceof M&&typeof R=="function"&&R instanceof R)&&(S=!1)}return l.delete(s),l.delete(a),S}return Di=i,Di}var Vi,pf;function yS(){if(pf)return Vi;pf=1;var e=Ge(),t=be(),r=e(t,"DataView");return Vi=r,Vi}var ji,mf;function gS(){if(mf)return ji;mf=1;var e=Ge(),t=be(),r=e(t,"Promise");return ji=r,ji}var Li,yf;function _m(){if(yf)return Li;yf=1;var e=Ge(),t=be(),r=e(t,"Set");return Li=r,Li}var Fi,gf;function vS(){if(gf)return Fi;gf=1;var e=Ge(),t=be(),r=e(t,"WeakMap");return Fi=r,Fi}var ki,vf;function bS(){if(vf)return ki;vf=1;var e=yS(),t=ko(),r=gS(),n=_m(),i=vS(),s=Ae(),a=sm(),o="[object Map]",u="[object Object]",c="[object Promise]",l="[object Set]",f="[object WeakMap]",h="[object DataView]",p=a(e),y=a(t),m=a(r),d=a(n),g=a(i),v=s;return(e&&v(new e(new ArrayBuffer(1)))!=h||t&&v(new t)!=o||r&&v(r.resolve())!=c||n&&v(new n)!=l||i&&v(new i)!=f)&&(v=function(b){var S=s(b),T=S==u?b.constructor:void 0,_=T?a(T):"";if(_)switch(_){case p:return h;case y:return o;case m:return c;case d:return l;case g:return f}return S}),ki=v,ki}var Bi,bf;function SS(){if(bf)return Bi;bf=1;var e=hm(),t=ym(),r=eS(),n=mS(),i=bS(),s=re(),a=vm(),o=Sm(),u=1,c="[object Arguments]",l="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(m,d,g,v,b,S){var T=s(m),_=s(d),A=T?l:i(m),w=_?l:i(d);A=A==c?f:A,w=w==c?f:w;var M=A==f,R=w==f,x=A==w;if(x&&a(m)){if(!a(d))return!1;T=!0,M=!1}if(x&&!M)return S||(S=new e),T||o(m)?t(m,d,g,v,b,S):r(m,d,A,g,v,b,S);if(!(g&u)){var q=M&&p.call(m,"__wrapped__"),O=R&&p.call(d,"__wrapped__");if(q||O){var U=q?m.value():m,G=O?d.value():d;return S||(S=new e),b(U,G,g,v,S)}}return x?(S||(S=new e),n(m,d,g,v,b,S)):!1}return Bi=y,Bi}var Ni,Sf;function Ko(){if(Sf)return Ni;Sf=1;var e=SS(),t=we();function r(n,i,s,a,o){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,s,a,r,o)}return Ni=r,Ni}var Ui,Tf;function TS(){if(Tf)return Ui;Tf=1;var e=hm(),t=Ko(),r=1,n=2;function i(s,a,o,u){var c=o.length,l=c,f=!u;if(s==null)return!l;for(s=Object(s);c--;){var h=o[c];if(f&&h[2]?h[1]!==s[h[0]]:!(h[0]in s))return!1}for(;++c<l;){h=o[c];var p=h[0],y=s[p],m=h[1];if(f&&h[2]){if(y===void 0&&!(p in s))return!1}else{var d=new e;if(u)var g=u(y,m,p,s,a,d);if(!(g===void 0?t(m,y,r|n,u,d):g))return!1}}return!0}return Ui=i,Ui}var $i,_f;function Am(){if(_f)return $i;_f=1;var e=Oe();function t(r){return r===r&&!e(r)}return $i=t,$i}var Gi,Af;function _S(){if(Af)return Gi;Af=1;var e=Am(),t=gr();function r(n){for(var i=t(n),s=i.length;s--;){var a=i[s],o=n[a];i[s]=[a,o,e(o)]}return i}return Gi=r,Gi}var Wi,wf;function wm(){if(wf)return Wi;wf=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Wi=e,Wi}var Hi,xf;function AS(){if(xf)return Hi;xf=1;var e=TS(),t=_S(),r=wm();function n(i){var s=t(i);return s.length==1&&s[0][2]?r(s[0][0],s[0][1]):function(a){return a===i||e(a,i,s)}}return Hi=n,Hi}var Ki,Pf;function wS(){if(Pf)return Ki;Pf=1;function e(t,r){return t!=null&&r in Object(t)}return Ki=e,Ki}var zi,Rf;function xS(){if(Rf)return zi;Rf=1;var e=um(),t=Go(),r=re(),n=Wo(),i=Ho(),s=yr();function a(o,u,c){u=e(u,o);for(var l=-1,f=u.length,h=!1;++l<f;){var p=s(u[l]);if(!(h=o!=null&&c(o,p)))break;o=o[p]}return h||++l!=f?h:(f=o==null?0:o.length,!!f&&i(f)&&n(p,f)&&(r(o)||t(o)))}return zi=a,zi}var Xi,Ef;function PS(){if(Ef)return Xi;Ef=1;var e=wS(),t=xS();function r(n,i){return n!=null&&t(n,i,e)}return Xi=r,Xi}var Yi,Cf;function RS(){if(Cf)return Yi;Cf=1;var e=Ko(),t=cm(),r=PS(),n=jo(),i=Am(),s=wm(),a=yr(),o=1,u=2;function c(l,f){return n(l)&&i(f)?s(a(l),f):function(h){var p=t(h,l);return p===void 0&&p===f?r(h,l):e(f,p,o|u)}}return Yi=c,Yi}var Zi,Mf;function it(){if(Mf)return Zi;Mf=1;function e(t){return t}return Zi=e,Zi}var Ji,qf;function ES(){if(qf)return Ji;qf=1;function e(t){return function(r){return r==null?void 0:r[t]}}return Ji=e,Ji}var Qi,Of;function CS(){if(Of)return Qi;Of=1;var e=Uo();function t(r){return function(n){return e(n,r)}}return Qi=t,Qi}var es,If;function MS(){if(If)return es;If=1;var e=ES(),t=CS(),r=jo(),n=yr();function i(s){return r(s)?e(n(s)):t(s)}return es=i,es}var ts,Df;function Se(){if(Df)return ts;Df=1;var e=AS(),t=RS(),r=it(),n=re(),i=MS();function s(a){return typeof a=="function"?a:a==null?r:typeof a=="object"?n(a)?t(a[0],a[1]):e(a):i(a)}return ts=s,ts}var rs,Vf;function xm(){if(Vf)return rs;Vf=1;function e(t,r,n,i){for(var s=t.length,a=n+(i?1:-1);i?a--:++a<s;)if(r(t[a],a,t))return a;return-1}return rs=e,rs}var ns,jf;function qS(){if(jf)return ns;jf=1;function e(t){return t!==t}return ns=e,ns}var is,Lf;function OS(){if(Lf)return is;Lf=1;function e(t,r,n){for(var i=n-1,s=t.length;++i<s;)if(t[i]===r)return i;return-1}return is=e,is}var ss,Ff;function IS(){if(Ff)return ss;Ff=1;var e=xm(),t=qS(),r=OS();function n(i,s,a){return s===s?r(i,s,a):e(i,t,a)}return ss=n,ss}var as,kf;function DS(){if(kf)return as;kf=1;var e=IS();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return as=t,as}var os,Bf;function VS(){if(Bf)return os;Bf=1;function e(t,r,n){for(var i=-1,s=t==null?0:t.length;++i<s;)if(n(r,t[i]))return!0;return!1}return os=e,os}var us,Nf;function jS(){if(Nf)return us;Nf=1;function e(){}return us=e,us}var cs,Uf;function LS(){if(Uf)return cs;Uf=1;var e=_m(),t=jS(),r=$o(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(s){return new e(s)}:t;return cs=i,cs}var ls,$f;function FS(){if($f)return ls;$f=1;var e=dm(),t=DS(),r=VS(),n=mm(),i=LS(),s=$o(),a=200;function o(u,c,l){var f=-1,h=t,p=u.length,y=!0,m=[],d=m;if(l)y=!1,h=r;else if(p>=a){var g=c?null:i(u);if(g)return s(g);y=!1,h=n,d=new e}else d=c?[]:m;e:for(;++f<p;){var v=u[f],b=c?c(v):v;if(v=l||v!==0?v:0,y&&b===b){for(var S=d.length;S--;)if(d[S]===b)continue e;c&&d.push(b),m.push(v)}else h(d,b,l)||(d!==m&&d.push(b),m.push(v))}return m}return ls=o,ls}var fs,Gf;function kS(){if(Gf)return fs;Gf=1;var e=Se(),t=FS();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return fs=r,fs}var BS=kS();const xw=F(BS);var hs,Wf;function NS(){if(Wf)return hs;Wf=1;var e=Mt(),t=Go(),r=re(),n=e?e.isConcatSpreadable:void 0;function i(s){return r(s)||t(s)||!!(n&&s&&s[n])}return hs=i,hs}var ds,Hf;function Pm(){if(Hf)return ds;Hf=1;var e=gm(),t=NS();function r(n,i,s,a,o){var u=-1,c=n.length;for(s||(s=t),o||(o=[]);++u<c;){var l=n[u];i>0&&s(l)?i>1?r(l,i-1,s,a,o):e(o,l):a||(o[o.length]=l)}return o}return ds=r,ds}var ps,Kf;function US(){if(Kf)return ps;Kf=1;function e(t){return function(r,n,i){for(var s=-1,a=Object(r),o=i(r),u=o.length;u--;){var c=o[t?u:++s];if(n(a[c],c,a)===!1)break}return r}}return ps=e,ps}var ms,zf;function $S(){if(zf)return ms;zf=1;var e=US(),t=e();return ms=t,ms}var ys,Xf;function Rm(){if(Xf)return ys;Xf=1;var e=$S(),t=gr();function r(n,i){return n&&e(n,i,t)}return ys=r,ys}var gs,Yf;function GS(){if(Yf)return gs;Yf=1;var e=qt();function t(r,n){return function(i,s){if(i==null)return i;if(!e(i))return r(i,s);for(var a=i.length,o=n?a:-1,u=Object(i);(n?o--:++o<a)&&s(u[o],o,u)!==!1;);return i}}return gs=t,gs}var vs,Zf;function zo(){if(Zf)return vs;Zf=1;var e=Rm(),t=GS(),r=t(e);return vs=r,vs}var bs,Jf;function Em(){if(Jf)return bs;Jf=1;var e=zo(),t=qt();function r(n,i){var s=-1,a=t(n)?Array(n.length):[];return e(n,function(o,u,c){a[++s]=i(o,u,c)}),a}return bs=r,bs}var Ss,Qf;function WS(){if(Qf)return Ss;Qf=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Ss=e,Ss}var Ts,eh;function HS(){if(eh)return Ts;eh=1;var e=nt();function t(r,n){if(r!==n){var i=r!==void 0,s=r===null,a=r===r,o=e(r),u=n!==void 0,c=n===null,l=n===n,f=e(n);if(!c&&!f&&!o&&r>n||o&&u&&l&&!c&&!f||s&&u&&l||!i&&l||!a)return 1;if(!s&&!o&&!f&&r<n||f&&i&&a&&!s&&!o||c&&i&&a||!u&&a||!l)return-1}return 0}return Ts=t,Ts}var _s,th;function KS(){if(th)return _s;th=1;var e=HS();function t(r,n,i){for(var s=-1,a=r.criteria,o=n.criteria,u=a.length,c=i.length;++s<u;){var l=e(a[s],o[s]);if(l){if(s>=c)return l;var f=i[s];return l*(f=="desc"?-1:1)}}return r.index-n.index}return _s=t,_s}var As,rh;function zS(){if(rh)return As;rh=1;var e=No(),t=Uo(),r=Se(),n=Em(),i=WS(),s=bm(),a=KS(),o=it(),u=re();function c(l,f,h){f.length?f=e(f,function(m){return u(m)?function(d){return t(d,m.length===1?m[0]:m)}:m}):f=[o];var p=-1;f=e(f,s(r));var y=n(l,function(m,d,g){var v=e(f,function(b){return b(m)});return{criteria:v,index:++p,value:m}});return i(y,function(m,d){return a(m,d,h)})}return As=c,As}var ws,nh;function XS(){if(nh)return ws;nh=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return ws=e,ws}var xs,ih;function YS(){if(ih)return xs;ih=1;var e=XS(),t=Math.max;function r(n,i,s){return i=t(i===void 0?n.length-1:i,0),function(){for(var a=arguments,o=-1,u=t(a.length-i,0),c=Array(u);++o<u;)c[o]=a[i+o];o=-1;for(var l=Array(i+1);++o<i;)l[o]=a[o];return l[i]=s(c),e(n,this,l)}}return xs=r,xs}var Ps,sh;function ZS(){if(sh)return Ps;sh=1;function e(t){return function(){return t}}return Ps=e,Ps}var Rs,ah;function Cm(){if(ah)return Rs;ah=1;var e=Ge(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Rs=t,Rs}var Es,oh;function JS(){if(oh)return Es;oh=1;var e=ZS(),t=Cm(),r=it(),n=t?function(i,s){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:r;return Es=n,Es}var Cs,uh;function QS(){if(uh)return Cs;uh=1;var e=800,t=16,r=Date.now;function n(i){var s=0,a=0;return function(){var o=r(),u=t-(o-a);if(a=o,u>0){if(++s>=e)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}return Cs=n,Cs}var Ms,ch;function eT(){if(ch)return Ms;ch=1;var e=JS(),t=QS(),r=t(e);return Ms=r,Ms}var qs,lh;function tT(){if(lh)return qs;lh=1;var e=it(),t=YS(),r=eT();function n(i,s){return r(t(i,s,e),i+"")}return qs=n,qs}var Os,fh;function vr(){if(fh)return Os;fh=1;var e=Fo(),t=qt(),r=Wo(),n=Oe();function i(s,a,o){if(!n(o))return!1;var u=typeof a;return(u=="number"?t(o)&&r(a,o.length):u=="string"&&a in o)?e(o[a],s):!1}return Os=i,Os}var Is,hh;function rT(){if(hh)return Is;hh=1;var e=Pm(),t=zS(),r=tT(),n=vr(),i=r(function(s,a){if(s==null)return[];var o=a.length;return o>1&&n(s,a[0],a[1])?a=[]:o>2&&n(a[0],a[1],a[2])&&(a=[a[0]]),t(s,e(a,1),[])});return Is=i,Is}var nT=rT();const Pw=F(nT);var Ds,dh;function iT(){if(dh)return Ds;dh=1;var e=be(),t=function(){return e.Date.now()};return Ds=t,Ds}var Vs,ph;function sT(){if(ph)return Vs;ph=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Vs=t,Vs}var js,mh;function aT(){if(mh)return js;mh=1;var e=sT(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return js=r,js}var Ls,yh;function Mm(){if(yh)return Ls;yh=1;var e=aT(),t=Oe(),r=nt(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt;function u(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var l=typeof c.valueOf=="function"?c.valueOf():c;c=t(l)?l+"":l}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=s.test(c);return f||a.test(c)?o(c.slice(2),f?2:8):i.test(c)?n:+c}return Ls=u,Ls}var Fs,gh;function oT(){if(gh)return Fs;gh=1;var e=Oe(),t=iT(),r=Mm(),n="Expected a function",i=Math.max,s=Math.min;function a(o,u,c){var l,f,h,p,y,m,d=0,g=!1,v=!1,b=!0;if(typeof o!="function")throw new TypeError(n);u=r(u)||0,e(c)&&(g=!!c.leading,v="maxWait"in c,h=v?i(r(c.maxWait)||0,u):h,b="trailing"in c?!!c.trailing:b);function S(O){var U=l,G=f;return l=f=void 0,d=O,p=o.apply(G,U),p}function T(O){return d=O,y=setTimeout(w,u),g?S(O):p}function _(O){var U=O-m,G=O-d,Q=u-U;return v?s(Q,h-G):Q}function A(O){var U=O-m,G=O-d;return m===void 0||U>=u||U<0||v&&G>=h}function w(){var O=t();if(A(O))return M(O);y=setTimeout(w,_(O))}function M(O){return y=void 0,b&&l?S(O):(l=f=void 0,p)}function R(){y!==void 0&&clearTimeout(y),d=0,l=m=f=y=void 0}function x(){return y===void 0?p:M(t())}function q(){var O=t(),U=A(O);if(l=arguments,f=this,m=O,U){if(y===void 0)return T(m);if(v)return clearTimeout(y),y=setTimeout(w,u),S(m)}return y===void 0&&(y=setTimeout(w,u)),p}return q.cancel=R,q.flush=x,q}return Fs=a,Fs}var ks,vh;function uT(){if(vh)return ks;vh=1;var e=oT(),t=Oe(),r="Expected a function";function n(i,s,a){var o=!0,u=!0;if(typeof i!="function")throw new TypeError(r);return t(a)&&(o="leading"in a?!!a.leading:o,u="trailing"in a?!!a.trailing:u),e(i,s,{leading:o,maxWait:s,trailing:u})}return ks=n,ks}var cT=uT();const Rw=F(cT);class Ew extends Map{constructor(t,r=hT){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(bh(this,t))}has(t){return super.has(bh(this,t))}set(t,r){return super.set(lT(this,t),r)}delete(t){return super.delete(fT(this,t))}}function bh({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function lT({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function fT({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function hT(e){return e!==null&&typeof e=="object"?e.valueOf():e}var Bs,Sh;function br(){if(Sh)return Bs;Sh=1;var e=nt();function t(r,n,i){for(var s=-1,a=r.length;++s<a;){var o=r[s],u=n(o);if(u!=null&&(c===void 0?u===u&&!e(u):i(u,c)))var c=u,l=o}return l}return Bs=t,Bs}var Ns,Th;function qm(){if(Th)return Ns;Th=1;function e(t,r){return t>r}return Ns=e,Ns}var Us,_h;function dT(){if(_h)return Us;_h=1;var e=br(),t=qm(),r=it();function n(i){return i&&i.length?e(i,r,t):void 0}return Us=n,Us}var pT=dT();const Cw=F(pT);var $s,Ah;function Om(){if(Ah)return $s;Ah=1;function e(t,r){return t<r}return $s=e,$s}var Gs,wh;function mT(){if(wh)return Gs;wh=1;var e=br(),t=Om(),r=it();function n(i){return i&&i.length?e(i,r,t):void 0}return Gs=n,Gs}var yT=mT();const Mw=F(yT);var Ws,xh;function gT(){if(xh)return Ws;xh=1;var e=No(),t=Se(),r=Em(),n=re();function i(s,a){var o=n(s)?e:r;return o(s,t(a,3))}return Ws=i,Ws}var Hs,Ph;function vT(){if(Ph)return Hs;Ph=1;var e=Pm(),t=gT();function r(n,i){return e(t(n,i),1)}return Hs=r,Hs}var bT=vT();const qw=F(bT);var Ks,Rh;function ST(){if(Rh)return Ks;Rh=1;var e=Ko();function t(r,n){return e(r,n)}return Ks=t,Ks}var TT=ST();const Ow=F(TT);var st=1e9,_T={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Yo,N=!0,ue="[DecimalError] ",Ue=ue+"Invalid argument: ",Xo=ue+"Exponent out of range: ",at=Math.floor,Le=Math.pow,AT=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ne,z=1e7,k=7,Im=9007199254740991,rr=at(Im/k),E={};E.absoluteValue=E.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};E.comparedTo=E.cmp=function(e){var t,r,n,i,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(n=s.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return n===i?0:n>i^s.s<0?1:-1};E.decimalPlaces=E.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*k;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};E.dividedBy=E.div=function(e){return _e(this,new this.constructor(e))};E.dividedToIntegerBy=E.idiv=function(e){var t=this,r=t.constructor;return L(_e(t,new r(e),0,1),r.precision)};E.equals=E.eq=function(e){return!this.cmp(e)};E.exponent=function(){return H(this)};E.greaterThan=E.gt=function(e){return this.cmp(e)>0};E.greaterThanOrEqualTo=E.gte=function(e){return this.cmp(e)>=0};E.isInteger=E.isint=function(){return this.e>this.d.length-2};E.isNegative=E.isneg=function(){return this.s<0};E.isPositive=E.ispos=function(){return this.s>0};E.isZero=function(){return this.s===0};E.lessThan=E.lt=function(e){return this.cmp(e)<0};E.lessThanOrEqualTo=E.lte=function(e){return this.cmp(e)<1};E.logarithm=E.log=function(e){var t,r=this,n=r.constructor,i=n.precision,s=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(ne))throw Error(ue+"NaN");if(r.s<1)throw Error(ue+(r.s?"NaN":"-Infinity"));return r.eq(ne)?new n(0):(N=!1,t=_e(_t(r,s),_t(e,s),s),N=!0,L(t,i))};E.minus=E.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?jm(t,e):Dm(t,(e.s=-e.s,e))};E.modulo=E.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(ue+"NaN");return r.s?(N=!1,t=_e(r,e,0,1).times(e),N=!0,r.minus(t)):L(new n(r),i)};E.naturalExponential=E.exp=function(){return Vm(this)};E.naturalLogarithm=E.ln=function(){return _t(this)};E.negated=E.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};E.plus=E.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Dm(t,e):jm(t,(e.s=-e.s,e))};E.precision=E.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ue+e);if(t=H(i)+1,n=i.d.length-1,r=n*k+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};E.squareRoot=E.sqrt=function(){var e,t,r,n,i,s,a,o=this,u=o.constructor;if(o.s<1){if(!o.s)return new u(0);throw Error(ue+"NaN")}for(e=H(o),N=!1,i=Math.sqrt(+o),i==0||i==1/0?(t=me(o.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=at((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(i.toString()),r=u.precision,i=a=r+3;;)if(s=n,n=s.plus(_e(o,s,a+2)).times(.5),me(s.d).slice(0,a)===(t=me(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(L(s,r+1,0),s.times(s).eq(o)){n=s;break}}else if(t!="9999")break;a+=4}return N=!0,L(n,r)};E.times=E.mul=function(e){var t,r,n,i,s,a,o,u,c,l=this,f=l.constructor,h=l.d,p=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,r=l.e+e.e,u=h.length,c=p.length,u<c&&(s=h,h=p,p=s,a=u,u=c,c=a),s=[],a=u+c,n=a;n--;)s.push(0);for(n=c;--n>=0;){for(t=0,i=u+n;i>n;)o=s[i]+p[n]*h[i-n-1]+t,s[i--]=o%z|0,t=o/z|0;s[i]=(s[i]+t)%z|0}for(;!s[--a];)s.pop();return t?++r:s.shift(),e.d=s,e.e=r,N?L(e,f.precision):e};E.toDecimalPlaces=E.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ve(e,0,st),t===void 0?t=n.rounding:ve(t,0,8),L(r,e+H(r)+1,t))};E.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=$e(n,!0):(ve(e,0,st),t===void 0?t=i.rounding:ve(t,0,8),n=L(new i(n),e+1,t),r=$e(n,!0,e+1)),r};E.toFixed=function(e,t){var r,n,i=this,s=i.constructor;return e===void 0?$e(i):(ve(e,0,st),t===void 0?t=s.rounding:ve(t,0,8),n=L(new s(i),e+H(i)+1,t),r=$e(n.abs(),!1,e+H(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};E.toInteger=E.toint=function(){var e=this,t=e.constructor;return L(new t(e),H(e)+1,t.rounding)};E.toNumber=function(){return+this};E.toPower=E.pow=function(e){var t,r,n,i,s,a,o=this,u=o.constructor,c=12,l=+(e=new u(e));if(!e.s)return new u(ne);if(o=new u(o),!o.s){if(e.s<1)throw Error(ue+"Infinity");return o}if(o.eq(ne))return o;if(n=u.precision,e.eq(ne))return L(o,n);if(t=e.e,r=e.d.length-1,a=t>=r,s=o.s,a){if((r=l<0?-l:l)<=Im){for(i=new u(ne),t=Math.ceil(n/k+4),N=!1;r%2&&(i=i.times(o),Ch(i.d,t)),r=at(r/2),r!==0;)o=o.times(o),Ch(o.d,t);return N=!0,e.s<0?new u(ne).div(i):L(i,n)}}else if(s<0)throw Error(ue+"NaN");return s=s<0&&e.d[Math.max(t,r)]&1?-1:1,o.s=1,N=!1,i=e.times(_t(o,n+c)),N=!0,i=Vm(i),i.s=s,i};E.toPrecision=function(e,t){var r,n,i=this,s=i.constructor;return e===void 0?(r=H(i),n=$e(i,r<=s.toExpNeg||r>=s.toExpPos)):(ve(e,1,st),t===void 0?t=s.rounding:ve(t,0,8),i=L(new s(i),e,t),r=H(i),n=$e(i,e<=r||r<=s.toExpNeg,e)),n};E.toSignificantDigits=E.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ve(e,1,st),t===void 0?t=n.rounding:ve(t,0,8)),L(new n(r),e,t)};E.toString=E.valueOf=E.val=E.toJSON=E[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=H(e),r=e.constructor;return $e(e,t<=r.toExpNeg||t>=r.toExpPos)};function Dm(e,t){var r,n,i,s,a,o,u,c,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),N?L(t,f):t;if(u=e.d,c=t.d,a=e.e,i=t.e,u=u.slice(),s=a-i,s){for(s<0?(n=u,s=-s,o=c.length):(n=c,i=a,o=u.length),a=Math.ceil(f/k),o=a>o?a+1:o+1,s>o&&(s=o,n.length=1),n.reverse();s--;)n.push(0);n.reverse()}for(o=u.length,s=c.length,o-s<0&&(s=o,n=c,c=u,u=n),r=0;s;)r=(u[--s]=u[s]+c[s]+r)/z|0,u[s]%=z;for(r&&(u.unshift(r),++i),o=u.length;u[--o]==0;)u.pop();return t.d=u,t.e=i,N?L(t,f):t}function ve(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ue+e)}function me(e){var t,r,n,i=e.length-1,s="",a=e[0];if(i>0){for(s+=a,t=1;t<i;t++)n=e[t]+"",r=k-n.length,r&&(s+=Re(r)),s+=n;a=e[t],n=a+"",r=k-n.length,r&&(s+=Re(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return s+a}var _e=(function(){function e(n,i){var s,a=0,o=n.length;for(n=n.slice();o--;)s=n[o]*i+a,n[o]=s%z|0,a=s/z|0;return a&&n.unshift(a),n}function t(n,i,s,a){var o,u;if(s!=a)u=s>a?1:-1;else for(o=u=0;o<s;o++)if(n[o]!=i[o]){u=n[o]>i[o]?1:-1;break}return u}function r(n,i,s){for(var a=0;s--;)n[s]-=a,a=n[s]<i[s]?1:0,n[s]=a*z+n[s]-i[s];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,s,a){var o,u,c,l,f,h,p,y,m,d,g,v,b,S,T,_,A,w,M=n.constructor,R=n.s==i.s?1:-1,x=n.d,q=i.d;if(!n.s)return new M(n);if(!i.s)throw Error(ue+"Division by zero");for(u=n.e-i.e,A=q.length,T=x.length,p=new M(R),y=p.d=[],c=0;q[c]==(x[c]||0);)++c;if(q[c]>(x[c]||0)&&--u,s==null?v=s=M.precision:a?v=s+(H(n)-H(i))+1:v=s,v<0)return new M(0);if(v=v/k+2|0,c=0,A==1)for(l=0,q=q[0],v++;(c<T||l)&&v--;c++)b=l*z+(x[c]||0),y[c]=b/q|0,l=b%q|0;else{for(l=z/(q[0]+1)|0,l>1&&(q=e(q,l),x=e(x,l),A=q.length,T=x.length),S=A,m=x.slice(0,A),d=m.length;d<A;)m[d++]=0;w=q.slice(),w.unshift(0),_=q[0],q[1]>=z/2&&++_;do l=0,o=t(q,m,A,d),o<0?(g=m[0],A!=d&&(g=g*z+(m[1]||0)),l=g/_|0,l>1?(l>=z&&(l=z-1),f=e(q,l),h=f.length,d=m.length,o=t(f,m,h,d),o==1&&(l--,r(f,A<h?w:q,h))):(l==0&&(o=l=1),f=q.slice()),h=f.length,h<d&&f.unshift(0),r(m,f,d),o==-1&&(d=m.length,o=t(q,m,A,d),o<1&&(l++,r(m,A<d?w:q,d))),d=m.length):o===0&&(l++,m=[0]),y[c++]=l,o&&m[0]?m[d++]=x[S]||0:(m=[x[S]],d=1);while((S++<T||m[0]!==void 0)&&v--)}return y[0]||y.shift(),p.e=u,L(p,a?s+H(p)+1:s)}})();function Vm(e,t){var r,n,i,s,a,o,u=0,c=0,l=e.constructor,f=l.precision;if(H(e)>16)throw Error(Xo+H(e));if(!e.s)return new l(ne);for(N=!1,o=f,a=new l(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(n=Math.log(Le(2,c))/Math.LN10*2+5|0,o+=n,r=i=s=new l(ne),l.precision=o;;){if(i=L(i.times(e),o),r=r.times(++u),a=s.plus(_e(i,r,o)),me(a.d).slice(0,o)===me(s.d).slice(0,o)){for(;c--;)s=L(s.times(s),o);return l.precision=f,t==null?(N=!0,L(s,f)):s}s=a}}function H(e){for(var t=e.e*k,r=e.d[0];r>=10;r/=10)t++;return t}function zs(e,t,r){if(t>e.LN10.sd())throw N=!0,r&&(e.precision=r),Error(ue+"LN10 precision limit exceeded");return L(new e(e.LN10),t)}function Re(e){for(var t="";e--;)t+="0";return t}function _t(e,t){var r,n,i,s,a,o,u,c,l,f=1,h=10,p=e,y=p.d,m=p.constructor,d=m.precision;if(p.s<1)throw Error(ue+(p.s?"NaN":"-Infinity"));if(p.eq(ne))return new m(0);if(t==null?(N=!1,c=d):c=t,p.eq(10))return t==null&&(N=!0),zs(m,c);if(c+=h,m.precision=c,r=me(y),n=r.charAt(0),s=H(p),Math.abs(s)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=me(p.d),n=r.charAt(0),f++;s=H(p),n>1?(p=new m("0."+r),s++):p=new m(n+"."+r.slice(1))}else return u=zs(m,c+2,d).times(s+""),p=_t(new m(n+"."+r.slice(1)),c-h).plus(u),m.precision=d,t==null?(N=!0,L(p,d)):p;for(o=a=p=_e(p.minus(ne),p.plus(ne),c),l=L(p.times(p),c),i=3;;){if(a=L(a.times(l),c),u=o.plus(_e(a,new m(i),c)),me(u.d).slice(0,c)===me(o.d).slice(0,c))return o=o.times(2),s!==0&&(o=o.plus(zs(m,c+2,d).times(s+""))),o=_e(o,new m(f),c),m.precision=d,t==null?(N=!0,L(o,d)):o;o=u,i+=2}}function Eh(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=at(r/k),e.d=[],n=(r+1)%k,r<0&&(n+=k),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=k;n<i;)e.d.push(+t.slice(n,n+=k));t=t.slice(n),n=k-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),N&&(e.e>rr||e.e<-rr))throw Error(Xo+r)}else e.s=0,e.e=0,e.d=[0];return e}function L(e,t,r){var n,i,s,a,o,u,c,l,f=e.d;for(a=1,s=f[0];s>=10;s/=10)a++;if(n=t-a,n<0)n+=k,i=t,c=f[l=0];else{if(l=Math.ceil((n+1)/k),s=f.length,l>=s)return e;for(c=s=f[l],a=1;s>=10;s/=10)a++;n%=k,i=n-k+a}if(r!==void 0&&(s=Le(10,a-i-1),o=c/s%10|0,u=t<0||f[l+1]!==void 0||c%s,u=r<4?(o||u)&&(r==0||r==(e.s<0?3:2)):o>5||o==5&&(r==4||u||r==6&&(n>0?i>0?c/Le(10,a-i):0:f[l-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return u?(s=H(e),f.length=1,t=t-s-1,f[0]=Le(10,(k-t%k)%k),e.e=at(-t/k)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=l,s=1,l--):(f.length=l+1,s=Le(10,k-n),f[l]=i>0?(c/Le(10,a-i)%Le(10,i)|0)*s:0),u)for(;;)if(l==0){(f[0]+=s)==z&&(f[0]=1,++e.e);break}else{if(f[l]+=s,f[l]!=z)break;f[l--]=0,s=1}for(n=f.length;f[--n]===0;)f.pop();if(N&&(e.e>rr||e.e<-rr))throw Error(Xo+H(e));return e}function jm(e,t){var r,n,i,s,a,o,u,c,l,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),N?L(t,p):t;if(u=e.d,f=t.d,n=t.e,c=e.e,u=u.slice(),a=c-n,a){for(l=a<0,l?(r=u,a=-a,o=f.length):(r=f,n=c,o=u.length),i=Math.max(Math.ceil(p/k),o)+2,a>i&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for(i=u.length,o=f.length,l=i<o,l&&(o=i),i=0;i<o;i++)if(u[i]!=f[i]){l=u[i]<f[i];break}a=0}for(l&&(r=u,u=f,f=r,t.s=-t.s),o=u.length,i=f.length-o;i>0;--i)u[o++]=0;for(i=f.length;i>a;){if(u[--i]<f[i]){for(s=i;s&&u[--s]===0;)u[s]=z-1;--u[s],u[i]+=z}u[i]-=f[i]}for(;u[--o]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(t.d=u,t.e=n,N?L(t,p):t):new h(0)}function $e(e,t,r){var n,i=H(e),s=me(e.d),a=s.length;return t?(r&&(n=r-a)>0?s=s.charAt(0)+"."+s.slice(1)+Re(n):a>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(i<0?"e":"e+")+i):i<0?(s="0."+Re(-i-1)+s,r&&(n=r-a)>0&&(s+=Re(n))):i>=a?(s+=Re(i+1-a),r&&(n=r-i-1)>0&&(s=s+"."+Re(n))):((n=i+1)<a&&(s=s.slice(0,n)+"."+s.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(s+="."),s+=Re(n))),e.s<0?"-"+s:s}function Ch(e,t){if(e.length>t)return e.length=t,!0}function Lm(e){var t,r,n;function i(s){var a=this;if(!(a instanceof i))return new i(s);if(a.constructor=i,s instanceof i){a.s=s.s,a.e=s.e,a.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(Ue+s);if(s>0)a.s=1;else if(s<0)s=-s,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(s===~~s&&s<1e7){a.e=0,a.d=[s];return}return Eh(a,s.toString())}else if(typeof s!="string")throw Error(Ue+s);if(s.charCodeAt(0)===45?(s=s.slice(1),a.s=-1):a.s=1,AT.test(s))Eh(a,s);else throw Error(Ue+s)}if(i.prototype=E,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Lm,i.config=i.set=wT,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function wT(e){if(!e||typeof e!="object")throw Error(ue+"Object expected");var t,r,n,i=["precision",1,st,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(at(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Ue+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ue+r+": "+n);return this}var Yo=Lm(_T);ne=new Yo(1);const V=Yo;function xT(e){return CT(e)||ET(e)||RT(e)||PT()}function PT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
18
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RT(e,t){if(e){if(typeof e=="string")return Ha(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ha(e,t)}}function ET(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function CT(e){if(Array.isArray(e))return Ha(e)}function Ha(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var MT=function(t){return t},Fm={},km=function(t){return t===Fm},Mh=function(t){return function r(){return arguments.length===0||arguments.length===1&&km(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},qT=function e(t,r){return t===1?r:Mh(function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];var a=i.filter(function(o){return o!==Fm}).length;return a>=t?r.apply(void 0,i):e(t-a,Mh(function(){for(var o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];var l=i.map(function(f){return km(f)?u.shift():f});return r.apply(void 0,xT(l).concat(u))}))})},Sr=function(t){return qT(t.length,t)},Ka=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},OT=Sr(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),IT=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return MT;var i=r.reverse(),s=i[0],a=i.slice(1);return function(){return a.reduce(function(o,u){return u(o)},s.apply(void 0,arguments))}},za=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Bm=function(t){var r=null,n=null;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return r&&s.every(function(o,u){return o===r[u]})||(r=s,n=t.apply(void 0,s)),n}};function DT(e){var t;return e===0?t=1:t=Math.floor(new V(e).abs().log(10).toNumber())+1,t}function VT(e,t,r){for(var n=new V(e),i=0,s=[];n.lt(t)&&i<1e5;)s.push(n.toNumber()),n=n.add(r),i++;return s}var jT=Sr(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),LT=Sr(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),FT=Sr(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Tr={rangeStep:VT,getDigitCount:DT,interpolateNumber:jT,uninterpolateNumber:LT,uninterpolateTruncation:FT};function Xa(e){return NT(e)||BT(e)||Nm(e)||kT()}function kT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
19
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BT(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function NT(e){if(Array.isArray(e))return Ya(e)}function At(e,t){return GT(e)||$T(e,t)||Nm(e,t)||UT()}function UT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nm(e,t){if(e){if(typeof e=="string")return Ya(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ya(e,t)}}function Ya(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $T(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,s=void 0;try{for(var a=e[Symbol.iterator](),o;!(n=(o=a.next()).done)&&(r.push(o.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,s=u}finally{try{!n&&a.return!=null&&a.return()}finally{if(i)throw s}}return r}}function GT(e){if(Array.isArray(e))return e}function Um(e){var t=At(e,2),r=t[0],n=t[1],i=r,s=n;return r>n&&(i=n,s=r),[i,s]}function $m(e,t,r){if(e.lte(0))return new V(0);var n=Tr.getDigitCount(e.toNumber()),i=new V(10).pow(n),s=e.div(i),a=n!==1?.05:.1,o=new V(Math.ceil(s.div(a).toNumber())).add(r).mul(a),u=o.mul(i);return t?u:new V(Math.ceil(u))}function WT(e,t,r){var n=1,i=new V(e);if(!i.isint()&&r){var s=Math.abs(e);s<1?(n=new V(10).pow(Tr.getDigitCount(e)-1),i=new V(Math.floor(i.div(n).toNumber())).mul(n)):s>1&&(i=new V(Math.floor(e)))}else e===0?i=new V(Math.floor((t-1)/2)):r||(i=new V(Math.floor(e)));var a=Math.floor((t-1)/2),o=IT(OT(function(u){return i.add(new V(u-a).mul(n)).toNumber()}),Ka);return o(0,t)}function Gm(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new V(0),tickMin:new V(0),tickMax:new V(0)};var s=$m(new V(t).sub(e).div(r-1),n,i),a;e<=0&&t>=0?a=new V(0):(a=new V(e).add(t).div(2),a=a.sub(new V(a).mod(s)));var o=Math.ceil(a.sub(e).div(s).toNumber()),u=Math.ceil(new V(t).sub(a).div(s).toNumber()),c=o+u+1;return c>r?Gm(e,t,r,n,i+1):(c<r&&(u=t>0?u+(r-c):u,o=t>0?o:o+(r-c)),{step:s,tickMin:a.sub(new V(o).mul(s)),tickMax:a.add(new V(u).mul(s))})}function HT(e){var t=At(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),o=Um([r,n]),u=At(o,2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var f=l===1/0?[c].concat(Xa(Ka(0,i-1).map(function(){return 1/0}))):[].concat(Xa(Ka(0,i-1).map(function(){return-1/0})),[l]);return r>n?za(f):f}if(c===l)return WT(c,i,s);var h=Gm(c,l,a,s),p=h.step,y=h.tickMin,m=h.tickMax,d=Tr.rangeStep(y,m.add(new V(.1).mul(p)),p);return r>n?za(d):d}function KT(e,t){var r=At(e,2),n=r[0],i=r[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Um([n,i]),o=At(a,2),u=o[0],c=o[1];if(u===-1/0||c===1/0)return[n,i];if(u===c)return[u];var l=Math.max(t,2),f=$m(new V(c).sub(u).div(l-1),s,0),h=[].concat(Xa(Tr.rangeStep(new V(u),new V(c).sub(new V(.99).mul(f)),f)),[c]);return n>i?za(h):h}var Iw=Bm(HT),Dw=Bm(KT),zT="Invariant failed";function Vw(e,t){throw new Error(zT)}var Xs,qh;function XT(){if(qh)return Xs;qh=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Xs=e,Xs}var YT=XT();const jw=F(YT);var Ys={exports:{}},Zs,Oh;function ZT(){if(Oh)return Zs;Oh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zs=e,Zs}var Js,Ih;function JT(){if(Ih)return Js;Ih=1;var e=ZT();function t(){}function r(){}return r.resetWarningCache=t,Js=function(){function n(a,o,u,c,l,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Js}var Dh;function QT(){return Dh||(Dh=1,Ys.exports=JT()()),Ys.exports}var e_=QT();const D=F(e_),{getOwnPropertyNames:t_,getOwnPropertySymbols:r_}=Object,{hasOwnProperty:n_}=Object.prototype;function Qs(e,t){return function(n,i,s){return e(n,i,s)&&t(n,i,s)}}function Ft(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:s}=i,a=s.get(r),o=s.get(n);if(a&&o)return a===n&&o===r;s.set(r,n),s.set(n,r);const u=e(r,n,i);return s.delete(r),s.delete(n),u}}function i_(e){return e!=null?e[Symbol.toStringTag]:void 0}function Vh(e){return t_(e).concat(r_(e))}const s_=Object.hasOwn||((e,t)=>n_.call(e,t));function We(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const a_="__v",o_="__o",u_="_owner",{getOwnPropertyDescriptor:jh,keys:Lh}=Object;function c_(e,t){return e.byteLength===t.byteLength&&nr(new Uint8Array(e),new Uint8Array(t))}function l_(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function f_(e,t){return e.byteLength===t.byteLength&&nr(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function h_(e,t){return We(e.getTime(),t.getTime())}function d_(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function p_(e,t){return e===t}function Fh(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),s=e.entries();let a,o,u=0;for(;(a=s.next())&&!a.done;){const c=t.entries();let l=!1,f=0;for(;(o=c.next())&&!o.done;){if(i[f]){f++;continue}const h=a.value,p=o.value;if(r.equals(h[0],p[0],u,f,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){l=i[f]=!0;break}f++}if(!l)return!1;u++}return!0}const m_=We;function y_(e,t,r){const n=Lh(e);let i=n.length;if(Lh(t).length!==i)return!1;for(;i-- >0;)if(!Wm(e,t,r,n[i]))return!1;return!0}function ut(e,t,r){const n=Vh(e);let i=n.length;if(Vh(t).length!==i)return!1;let s,a,o;for(;i-- >0;)if(s=n[i],!Wm(e,t,r,s)||(a=jh(e,s),o=jh(t,s),(a||o)&&(!a||!o||a.configurable!==o.configurable||a.enumerable!==o.enumerable||a.writable!==o.writable)))return!1;return!0}function g_(e,t){return We(e.valueOf(),t.valueOf())}function v_(e,t){return e.source===t.source&&e.flags===t.flags}function kh(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),s=e.values();let a,o;for(;(a=s.next())&&!a.done;){const u=t.values();let c=!1,l=0;for(;(o=u.next())&&!o.done;){if(!i[l]&&r.equals(a.value,o.value,a.value,o.value,e,t,r)){c=i[l]=!0;break}l++}if(!c)return!1}return!0}function nr(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function b_(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Wm(e,t,r,n){return(n===u_||n===o_||n===a_)&&(e.$$typeof||t.$$typeof)?!0:s_(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const S_="[object ArrayBuffer]",T_="[object Arguments]",__="[object Boolean]",A_="[object DataView]",w_="[object Date]",x_="[object Error]",P_="[object Map]",R_="[object Number]",E_="[object Object]",C_="[object RegExp]",M_="[object Set]",q_="[object String]",O_={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},I_="[object URL]",D_=Object.prototype.toString;function V_({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:s,areMapsEqual:a,areNumbersEqual:o,areObjectsEqual:u,arePrimitiveWrappersEqual:c,areRegExpsEqual:l,areSetsEqual:f,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:y}){return function(d,g,v){if(d===g)return!0;if(d==null||g==null)return!1;const b=typeof d;if(b!==typeof g)return!1;if(b!=="object")return b==="number"?o(d,g,v):b==="function"?s(d,g,v):!1;const S=d.constructor;if(S!==g.constructor)return!1;if(S===Object)return u(d,g,v);if(Array.isArray(d))return t(d,g,v);if(S===Date)return n(d,g,v);if(S===RegExp)return l(d,g,v);if(S===Map)return a(d,g,v);if(S===Set)return f(d,g,v);const T=D_.call(d);if(T===w_)return n(d,g,v);if(T===C_)return l(d,g,v);if(T===P_)return a(d,g,v);if(T===M_)return f(d,g,v);if(T===E_)return typeof d.then!="function"&&typeof g.then!="function"&&u(d,g,v);if(T===I_)return p(d,g,v);if(T===x_)return i(d,g,v);if(T===T_)return u(d,g,v);if(O_[T])return h(d,g,v);if(T===S_)return e(d,g,v);if(T===A_)return r(d,g,v);if(T===__||T===R_||T===q_)return c(d,g,v);if(y){let _=y[T];if(!_){const A=i_(d);A&&(_=y[A])}if(_)return _(d,g,v)}return!1}}function j_({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:c_,areArraysEqual:r?ut:l_,areDataViewsEqual:f_,areDatesEqual:h_,areErrorsEqual:d_,areFunctionsEqual:p_,areMapsEqual:r?Qs(Fh,ut):Fh,areNumbersEqual:m_,areObjectsEqual:r?ut:y_,arePrimitiveWrappersEqual:g_,areRegExpsEqual:v_,areSetsEqual:r?Qs(kh,ut):kh,areTypedArraysEqual:r?Qs(nr,ut):nr,areUrlsEqual:b_,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Ft(n.areArraysEqual),s=Ft(n.areMapsEqual),a=Ft(n.areObjectsEqual),o=Ft(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:a,areSetsEqual:o})}return n}function L_(e){return function(t,r,n,i,s,a,o){return e(t,r,o)}}function F_({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(o,u){const{cache:c=e?new WeakMap:void 0,meta:l}=r();return t(o,u,{cache:c,equals:n,meta:l,strict:i})};if(e)return function(o,u){return t(o,u,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const s={cache:void 0,equals:n,meta:void 0,strict:i};return function(o,u){return t(o,u,s)}}const k_=Ie();Ie({strict:!0});Ie({circular:!0});Ie({circular:!0,strict:!0});Ie({createInternalComparator:()=>We});Ie({strict:!0,createInternalComparator:()=>We});Ie({circular:!0,createInternalComparator:()=>We});Ie({circular:!0,createInternalComparator:()=>We,strict:!0});function Ie(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,s=j_(e),a=V_(s),o=r?r(a):L_(a);return F_({circular:t,comparator:a,createState:n,equals:o,strict:i})}function B_(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Bh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(s){r<0&&(r=s),s-r>t?(e(s),r=-1):B_(i)};requestAnimationFrame(n)}function Za(e){"@babel/helpers - typeof";return Za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Za(e)}function N_(e){return W_(e)||G_(e)||$_(e)||U_()}function U_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
21
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $_(e,t){if(e){if(typeof e=="string")return Nh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nh(e,t)}}function Nh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function G_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function W_(e){if(Array.isArray(e))return e}function H_(){var e={},t=function(){return null},r=!1,n=function i(s){if(!r){if(Array.isArray(s)){if(!s.length)return;var a=s,o=N_(a),u=o[0],c=o.slice(1);if(typeof u=="number"){Bh(i.bind(null,c),u);return}i(u),Bh(i.bind(null,c));return}Za(s)==="object"&&(e=s,t(e)),typeof s=="function"&&s()}};return{stop:function(){r=!0},start:function(s){r=!1,n(s)},subscribe:function(s){return t=s,function(){t=function(){return null}}}}}function wt(e){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wt(e)}function Uh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $h(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uh(Object(r),!0).forEach(function(n){Hm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hm(e,t,r){return t=K_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K_(e){var t=z_(e,"string");return wt(t)==="symbol"?t:String(t)}function z_(e,t){if(wt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X_=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(s){return i.includes(s)})})},Y_=function(t){return t},Z_=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},gt=function(t,r){return Object.keys(r).reduce(function(n,i){return $h($h({},n),{},Hm({},i,t(i,r[i])))},{})},Gh=function(t,r,n){return t.map(function(i){return"".concat(Z_(i)," ").concat(r,"ms ").concat(n)}).join(",")};function J_(e,t){return tA(e)||eA(e,t)||Km(e,t)||Q_()}function Q_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,s,a,o=[],u=!0,c=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(u=(n=s.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}function tA(e){if(Array.isArray(e))return e}function rA(e){return sA(e)||iA(e)||Km(e)||nA()}function nA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
23
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Km(e,t){if(e){if(typeof e=="string")return Ja(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ja(e,t)}}function iA(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sA(e){if(Array.isArray(e))return Ja(e)}function Ja(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ir=1e-4,zm=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},Xm=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Wh=function(t,r){return function(n){var i=zm(t,r);return Xm(i,n)}},aA=function(t,r){return function(n){var i=zm(t,r),s=[].concat(rA(i.map(function(a,o){return a*o}).slice(1)),[0]);return Xm(s,n)}},Hh=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],s=r[1],a=r[2],o=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,s=0,a=1,o=1;break;case"ease":i=.25,s=.1,a=.25,o=1;break;case"ease-in":i=.42,s=0,a=1,o=1;break;case"ease-out":i=.42,s=0,a=.58,o=1;break;case"ease-in-out":i=0,s=0,a=.58,o=1;break;default:{var u=r[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var c=u[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),l=J_(c,4);i=l[0],s=l[1],a=l[2],o=l[3]}}}var f=Wh(i,a),h=Wh(s,o),p=aA(i,a),y=function(g){return g>1?1:g<0?0:g},m=function(g){for(var v=g>1?1:g,b=v,S=0;S<8;++S){var T=f(b)-v,_=p(b);if(Math.abs(T-v)<ir||_<ir)return h(b);b=y(b-T/_)}return h(b)};return m.isStepper=!1,m},oA=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,s=i===void 0?8:i,a=t.dt,o=a===void 0?17:a,u=function(l,f,h){var p=-(l-f)*n,y=h*s,m=h+(p-y)*o/1e3,d=h*o/1e3+l;return Math.abs(d-f)<ir&&Math.abs(m)<ir?[f,0]:[d,m]};return u.isStepper=!0,u.dt=o,u},uA=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Hh(i);case"spring":return oA();default:if(i.split("(")[0]==="cubic-bezier")return Hh(i)}return typeof i=="function"?i:null};function xt(e){"@babel/helpers - typeof";return xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xt(e)}function Kh(e){return fA(e)||lA(e)||Ym(e)||cA()}function cA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
24
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lA(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fA(e){if(Array.isArray(e))return eo(e)}function zh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zh(Object(r),!0).forEach(function(n){Qa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qa(e,t,r){return t=hA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hA(e){var t=dA(e,"string");return xt(t)==="symbol"?t:String(t)}function dA(e,t){if(xt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pA(e,t){return gA(e)||yA(e,t)||Ym(e,t)||mA()}function mA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
25
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ym(e,t){if(e){if(typeof e=="string")return eo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eo(e,t)}}function eo(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,s,a,o=[],u=!0,c=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(u=(n=s.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}function gA(e){if(Array.isArray(e))return e}var sr=function(t,r,n){return t+(r-t)*n},to=function(t){var r=t.from,n=t.to;return r!==n},vA=function e(t,r,n){var i=gt(function(s,a){if(to(a)){var o=t(a.from,a.to,a.velocity),u=pA(o,2),c=u[0],l=u[1];return Y(Y({},a),{},{from:c,velocity:l})}return a},r);return n<1?gt(function(s,a){return to(a)?Y(Y({},a),{},{velocity:sr(a.velocity,i[s].velocity,n),from:sr(a.from,i[s].from,n)}):a},r):e(t,i,n-1)};const bA=(function(e,t,r,n,i){var s=X_(e,t),a=s.reduce(function(d,g){return Y(Y({},d),{},Qa({},g,[e[g],t[g]]))},{}),o=s.reduce(function(d,g){return Y(Y({},d),{},Qa({},g,{from:e[g],velocity:0,to:t[g]}))},{}),u=-1,c,l,f=function(){return null},h=function(){return gt(function(g,v){return v.from},o)},p=function(){return!Object.values(o).filter(to).length},y=function(g){c||(c=g);var v=g-c,b=v/r.dt;o=vA(r,o,b),i(Y(Y(Y({},e),t),h())),c=g,p()||(u=requestAnimationFrame(f))},m=function(g){l||(l=g);var v=(g-l)/n,b=gt(function(T,_){return sr.apply(void 0,Kh(_).concat([r(v)]))},a);if(i(Y(Y(Y({},e),t),b)),v<1)u=requestAnimationFrame(f);else{var S=gt(function(T,_){return sr.apply(void 0,Kh(_).concat([r(1)]))},a);i(Y(Y(Y({},e),t),S))}};return f=r.isStepper?y:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(u)}}});function Qe(e){"@babel/helpers - typeof";return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qe(e)}var SA=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function TA(e,t){if(e==null)return{};var r=_A(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _A(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function ea(e){return PA(e)||xA(e)||wA(e)||AA()}function AA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
26
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wA(e,t){if(e){if(typeof e=="string")return ro(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ro(e,t)}}function xA(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PA(e){if(Array.isArray(e))return ro(e)}function ro(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xh(Object(r),!0).forEach(function(n){ht(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ht(e,t,r){return t=Zm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Zm(n.key),n)}}function CA(e,t,r){return t&&EA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zm(e){var t=MA(e,"string");return Qe(t)==="symbol"?t:String(t)}function MA(e,t){if(Qe(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qe(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&no(e,t)}function no(e,t){return no=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},no(e,t)}function OA(e){var t=IA();return function(){var n=ar(e),i;if(t){var s=ar(this).constructor;i=Reflect.construct(n,arguments,s)}else i=n.apply(this,arguments);return io(this,i)}}function io(e,t){if(t&&(Qe(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return so(e)}function so(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IA(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ar(e){return ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ar(e)}var Zo=(function(e){qA(r,e);var t=OA(r);function r(n,i){var s;RA(this,r),s=t.call(this,n,i);var a=s.props,o=a.isActive,u=a.attributeName,c=a.from,l=a.to,f=a.steps,h=a.children,p=a.duration;if(s.handleStyleChange=s.handleStyleChange.bind(so(s)),s.changeStyle=s.changeStyle.bind(so(s)),!o||p<=0)return s.state={style:{}},typeof h=="function"&&(s.state={style:l}),io(s);if(f&&f.length)s.state={style:f[0].style};else if(c){if(typeof h=="function")return s.state={style:c},io(s);s.state={style:u?ht({},u,c):c}}else s.state={style:{}};return s}return CA(r,[{key:"componentDidMount",value:function(){var i=this.props,s=i.isActive,a=i.canBegin;this.mounted=!0,!(!s||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var s=this.props,a=s.isActive,o=s.canBegin,u=s.attributeName,c=s.shouldReAnimate,l=s.to,f=s.from,h=this.state.style;if(o){if(!a){var p={style:u?ht({},u,l):l};this.state&&h&&(u&&h[u]!==l||!u&&h!==l)&&this.setState(p);return}if(!(k_(i.to,l)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||c?f:i.to;if(this.state&&h){var d={style:u?ht({},u,m):m};(u&&h[u]!==m||!u&&h!==m)&&this.setState(d)}this.runAnimation(le(le({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var s=this,a=i.from,o=i.to,u=i.duration,c=i.easing,l=i.begin,f=i.onAnimationEnd,h=i.onAnimationStart,p=bA(a,o,uA(c),u,this.changeStyle),y=function(){s.stopJSAnimation=p()};this.manager.start([h,l,y,u,f])}},{key:"runStepAnimation",value:function(i){var s=this,a=i.steps,o=i.begin,u=i.onAnimationStart,c=a[0],l=c.style,f=c.duration,h=f===void 0?0:f,p=function(m,d,g){if(g===0)return m;var v=d.duration,b=d.easing,S=b===void 0?"ease":b,T=d.style,_=d.properties,A=d.onAnimationEnd,w=g>0?a[g-1]:d,M=_||Object.keys(T);if(typeof S=="function"||S==="spring")return[].concat(ea(m),[s.runJSAnimation.bind(s,{from:w.style,to:T,duration:v,easing:S}),v]);var R=Gh(M,v,S),x=le(le(le({},w.style),T),{},{transition:R});return[].concat(ea(m),[x,v,A]).filter(Y_)};return this.manager.start([u].concat(ea(a.reduce(p,[l,Math.max(h,o)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=H_());var s=i.begin,a=i.duration,o=i.attributeName,u=i.to,c=i.easing,l=i.onAnimationStart,f=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var m=o?ht({},o,u):u,d=Gh(Object.keys(m),a,c);y.start([l,s,le(le({},m),{},{transition:d}),a,f])}},{key:"render",value:function(){var i=this.props,s=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var o=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=TA(i,SA),c=P.Children.count(s),l=this.state.style;if(typeof s=="function")return s(l);if(!o||c===0||a<=0)return s;var f=function(p){var y=p.props,m=y.style,d=m===void 0?{}:m,g=y.className,v=P.cloneElement(p,le(le({},u),{},{style:le(le({},d),l),className:g}));return v};return c===1?f(P.Children.only(s)):ey.createElement("div",null,P.Children.map(s,function(h){return f(h)}))}}]),r})(P.PureComponent);Zo.displayName="Animate";Zo.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Zo.propTypes={from:D.oneOfType([D.object,D.string]),to:D.oneOfType([D.object,D.string]),attributeName:D.string,duration:D.number,begin:D.number,easing:D.oneOfType([D.string,D.func]),steps:D.arrayOf(D.shape({duration:D.number.isRequired,style:D.object.isRequired,easing:D.oneOfType([D.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),D.func]),properties:D.arrayOf("string"),onAnimationEnd:D.func})),children:D.oneOfType([D.node,D.func]),isActive:D.bool,canBegin:D.bool,onAnimationEnd:D.func,shouldReAnimate:D.bool,onAnimationStart:D.func,onAnimationReStart:D.func};var ta,Yh;function DA(){if(Yh)return ta;Yh=1;var e=br(),t=qm(),r=Se();function n(i,s){return i&&i.length?e(i,r(s,2),t):void 0}return ta=n,ta}var VA=DA();const Lw=F(VA);var ra,Zh;function jA(){if(Zh)return ra;Zh=1;var e=br(),t=Se(),r=Om();function n(i,s){return i&&i.length?e(i,t(s,2),r):void 0}return ra=n,ra}var LA=jA();const Fw=F(LA);var na,Jh;function FA(){if(Jh)return na;Jh=1;var e=Tm(),t=e(Object.getPrototypeOf,Object);return na=t,na}var ia,Qh;function kA(){if(Qh)return ia;Qh=1;var e=Ae(),t=FA(),r=we(),n="[object Object]",i=Function.prototype,s=Object.prototype,a=i.toString,o=s.hasOwnProperty,u=a.call(Object);function c(l){if(!r(l)||e(l)!=n)return!1;var f=t(l);if(f===null)return!0;var h=o.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&a.call(h)==u}return ia=c,ia}var BA=kA();const kw=F(BA);var sa,ed;function NA(){if(ed)return sa;ed=1;var e=Ae(),t=we(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return sa=n,sa}var UA=NA();const Bw=F(UA);var aa,td;function $A(){if(td)return aa;td=1;var e=Math.ceil,t=Math.max;function r(n,i,s,a){for(var o=-1,u=t(e((i-n)/(s||1)),0),c=Array(u);u--;)c[a?u:++o]=n,n+=s;return c}return aa=r,aa}var oa,rd;function Jm(){if(rd)return oa;rd=1;var e=Mm(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var s=i<0?-1:1;return s*r}return i===i?i:0}return oa=n,oa}var ua,nd;function GA(){if(nd)return ua;nd=1;var e=$A(),t=vr(),r=Jm();function n(i){return function(s,a,o){return o&&typeof o!="number"&&t(s,a,o)&&(a=o=void 0),s=r(s),a===void 0?(a=s,s=0):a=r(a),o=o===void 0?s<a?1:-1:r(o),e(s,a,o,i)}}return ua=n,ua}var ca,id;function WA(){if(id)return ca;id=1;var e=GA(),t=e();return ca=t,ca}var HA=WA();const Nw=F(HA);var la,sd;function KA(){if(sd)return la;sd=1;var e=zo();function t(r,n){var i;return e(r,function(s,a,o){return i=n(s,a,o),!i}),!!i}return la=t,la}var fa,ad;function zA(){if(ad)return fa;ad=1;var e=pm(),t=Se(),r=KA(),n=re(),i=vr();function s(a,o,u){var c=n(a)?e:r;return u&&i(a,o,u)&&(o=void 0),c(a,t(o,3))}return fa=s,fa}var XA=zA();const Uw=F(XA);var ha,od;function YA(){if(od)return ha;od=1;var e=Cm();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return ha=t,ha}var da,ud;function ZA(){if(ud)return da;ud=1;var e=YA(),t=Rm(),r=Se();function n(i,s){var a={};return s=r(s,3),t(i,function(o,u,c){e(a,u,s(o,u,c))}),a}return da=n,da}var JA=ZA();const $w=F(JA);var pa,cd;function QA(){if(cd)return pa;cd=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return pa=e,pa}var ma,ld;function ew(){if(ld)return ma;ld=1;var e=zo();function t(r,n){var i=!0;return e(r,function(s,a,o){return i=!!n(s,a,o),i}),i}return ma=t,ma}var ya,fd;function tw(){if(fd)return ya;fd=1;var e=QA(),t=ew(),r=Se(),n=re(),i=vr();function s(a,o,u){var c=n(a)?e:t;return u&&i(a,o,u)&&(o=void 0),c(a,r(o,3))}return ya=s,ya}var rw=tw();const Gw=F(rw);var ga,hd;function nw(){if(hd)return ga;hd=1;var e=Se(),t=qt(),r=gr();function n(i){return function(s,a,o){var u=Object(s);if(!t(s)){var c=e(a,3);s=r(s),a=function(f){return c(u[f],f,u)}}var l=i(s,a,o);return l>-1?u[c?s[l]:l]:void 0}}return ga=n,ga}var va,dd;function iw(){if(dd)return va;dd=1;var e=Jm();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return va=t,va}var ba,pd;function sw(){if(pd)return ba;pd=1;var e=xm(),t=Se(),r=iw(),n=Math.max;function i(s,a,o){var u=s==null?0:s.length;if(!u)return-1;var c=o==null?0:r(o);return c<0&&(c=n(u+c,0)),e(s,t(a,3),c)}return ba=i,ba}var Sa,md;function aw(){if(md)return Sa;md=1;var e=nw(),t=sw(),r=e(t);return Sa=r,Sa}aw();var ow=am();const Ww=F(ow);var Ta={exports:{}},yd;function uw(){return yd||(yd=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(u,c,l){this.fn=u,this.context=c,this.once=l||!1}function s(u,c,l,f,h){if(typeof l!="function")throw new TypeError("The listener must be a function");var p=new i(l,f||u,h),y=r?r+c:c;return u._events[y]?u._events[y].fn?u._events[y]=[u._events[y],p]:u._events[y].push(p):(u._events[y]=p,u._eventsCount++),u}function a(u,c){--u._eventsCount===0?u._events=new n:delete u._events[c]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],l,f;if(this._eventsCount===0)return c;for(f in l=this._events)t.call(l,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(l)):c},o.prototype.listeners=function(c){var l=r?r+c:c,f=this._events[l];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,y=new Array(p);h<p;h++)y[h]=f[h].fn;return y},o.prototype.listenerCount=function(c){var l=r?r+c:c,f=this._events[l];return f?f.fn?1:f.length:0},o.prototype.emit=function(c,l,f,h,p,y){var m=r?r+c:c;if(!this._events[m])return!1;var d=this._events[m],g=arguments.length,v,b;if(d.fn){switch(d.once&&this.removeListener(c,d.fn,void 0,!0),g){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,l),!0;case 3:return d.fn.call(d.context,l,f),!0;case 4:return d.fn.call(d.context,l,f,h),!0;case 5:return d.fn.call(d.context,l,f,h,p),!0;case 6:return d.fn.call(d.context,l,f,h,p,y),!0}for(b=1,v=new Array(g-1);b<g;b++)v[b-1]=arguments[b];d.fn.apply(d.context,v)}else{var S=d.length,T;for(b=0;b<S;b++)switch(d[b].once&&this.removeListener(c,d[b].fn,void 0,!0),g){case 1:d[b].fn.call(d[b].context);break;case 2:d[b].fn.call(d[b].context,l);break;case 3:d[b].fn.call(d[b].context,l,f);break;case 4:d[b].fn.call(d[b].context,l,f,h);break;default:if(!v)for(T=1,v=new Array(g-1);T<g;T++)v[T-1]=arguments[T];d[b].fn.apply(d[b].context,v)}}return!0},o.prototype.on=function(c,l,f){return s(this,c,l,f,!1)},o.prototype.once=function(c,l,f){return s(this,c,l,f,!0)},o.prototype.removeListener=function(c,l,f,h){var p=r?r+c:c;if(!this._events[p])return this;if(!l)return a(this,p),this;var y=this._events[p];if(y.fn)y.fn===l&&(!h||y.once)&&(!f||y.context===f)&&a(this,p);else{for(var m=0,d=[],g=y.length;m<g;m++)(y[m].fn!==l||h&&!y[m].once||f&&y[m].context!==f)&&d.push(y[m]);d.length?this._events[p]=d.length===1?d[0]:d:a(this,p)}return this},o.prototype.removeAllListeners=function(c){var l;return c?(l=r?r+c:c,this._events[l]&&a(this,l)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,e.exports=o})(Ta)),Ta.exports}var cw=uw();const Hw=F(cw);export{Zo as A,Gw as B,$w as C,Ww as D,Uw as E,Hw as F,dw as G,pw as H,Ew as I,Aw as a,_w as b,gw as c,Sw as d,bw as e,mw as f,yw as g,xw as h,vw as i,Vw as j,qw as k,Cw as l,Mw as m,Ow as n,Iw as o,Dw as p,jw as q,Tw as r,Pw as s,Rw as t,ww as u,Lw as v,Fw as w,kw as x,Bw as y,Nw as z};
27
+ //# sourceMappingURL=vendor-Cs8vYp-N.js.map