PageSourceSearch

https://tryscarlett.ai/_next/static/chunks/0iuw-l4kja98g.js

js tryscarlett.ai collected 2026-10-05 13:08:04 UTC 40,385 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,461576,t=>{"use strict";var e=t.i(271645);t.s(["Icon",0,({children:t,size:r=18,title:n,width:o,height:i,...a})=>e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o||r,height:i||r,viewBox:"0 0 18 18",...a},n&&e.default.createElement("title",null,n),t)])},838107,178534,t=>{"use strict";var e=t.i(271645);function r(t,e,r,n,o,i,a){return Math.min(0===t&&0===e?0:r>=0?n-r:t/(t+e)*n,0===t&&0===o?0:i>=0?a-i:t/(t+o)*a)}function n(t){return t*Math.PI/180}function o(t){let e=1e4*t,r=Math.round(e),n=e-r;if(n>.4999999||n<-.4999999||!Number.isSafeInteger(r))return t.toFixed(4);let o=t<0,i=o?-r:r,a=i%1e4;return(o?"-":"")+(i-a)/1e4+"."+(a<10?"000":a<100?"00":a<1e3?"0":"")+a}var i={p:0,pathSegment:()=>""};function a(t,e){return 0===t||Number.isNaN(t)?e:45===e.charCodeAt(0)?e.slice(1):"-"+e}function l(t,e,r,n,i,l){let s=o(t),d=o(e),u=o(r),c=o(n),h=o(i),p=o(l);return{x1:s,x1n:a(t,s),y1:d,y1n:a(e,d),x2:u,x2n:a(r,u),y2:c,y2n:a(n,c),x3:h,x3n:a(i,h),y3:p,y3n:a(l,p)}}function s(t,e){switch(e){case"TR":return`c ${t.x1} ${t.y1} ${t.x2} ${t.y2} ${t.x3} ${t.y3}`;case"BR":return`c ${t.y1n} ${t.x1} ${t.y2n} ${t.x2} ${t.y3n} ${t.x3}`;case"BL":return`c ${t.x1n} ${t.y1n} ${t.x2n} ${t.y2n} ${t.x3n} ${t.y3n}`;case"TL":return`c ${t.y1} ${t.x1n} ${t.y2} ${t.x2n} ${t.y3} ${t.x3n}`}}function d(t,e){switch(e){case"TR":return`a ${t.radius} ${t.radius} 0 0 1 ${t.d} ${t.d}`;case"BR":return`a ${t.radius} ${t.radius} 0 0 1 ${t.dn} ${t.d}`;case"BL":return`a ${t.radius} ${t.radius} 0 0 1 ${t.dn} ${t.dn}`;case"TL":return`a ${t.radius} ${t.radius} 0 0 1 ${t.d} ${t.dn}`}}function u({cornerRadius:t,cornerSmoothing:e,preserveSmoothing:r,roundingAndSmoothingBudget:o}){if(t<=0)return{a:0,b:0,c:0,d:0,p:0,arcSectionLength:0,cornerRadius:0};let i=(1+e)*t;r||(e=Math.min(e,o/t-1),i=Math.min(i,o));let a=90*(1-e),l=Math.sin(n(a/2))*t*Math.sqrt(2),s=t*Math.tan(n((90-a)/2/2)),d=45*e,c=s*Math.cos(n(d)),h=c*Math.tan(n(d)),p=(i-l-c-h)/3,f=2*p;if(r&&i>o){let t=o-h-l-c;p=Math.min(p,t-t/6),f=t-p,i=Math.min(i,o)}return{a:f,b:p,c:c,d:h,p:i,arcSectionLength:l,cornerRadius:t}}var c=[0,Math.PI/6,Math.PI/3,Math.PI/2],h=c.map(t=>Math.sin(t)),p=c.map(t=>Math.cos(t)),f=[(c[0]+c[1])/2,(c[1]+c[2])/2,(c[2]+c[3])/2],g=f.map(t=>Math.sin(t)),b=f.map(t=>Math.cos(t));function m(t,e,r,n){if(n<=0)return{x:0,y:0,theta:t};let o=n/32,i=0,a=0;for(let n=1;n<=32;n++){let l=(n-1)*o,s=l+o,d=(l+s)/2,u=t+e*l+r/2*l*l,c=t+e*s+r/2*s*s,h=t+e*d+r/2*d*d;i+=o/6*(Math.cos(u)+4*Math.cos(h)+Math.cos(c)),a+=o/6*(Math.sin(u)+4*Math.sin(h)+Math.sin(c))}return{x:i,y:a,theta:t+e*n+r/2*n*n}}var y={arc:({cornerRadius:t,roundingAndSmoothingBudget:e})=>{let r=Math.min(t,e);if(r<=0)return i;let n=o(r),l={radius:n,d:n,dn:a(r,n)};return{p:r,pathSegment:t=>d(l,t)}},squircle:({cornerRadius:t,smoothing:e,preserveSmoothing:r,roundingAndSmoothingBudget:n})=>{let l=u({cornerRadius:t,cornerSmoothing:e,preserveSmoothing:r,roundingAndSmoothingBudget:n});if(l.cornerRadius<=0)return i;let s=function({cornerRadius:t,a:e,b:r,c:n,d:i,arcSectionLength:l}){let s=e+r,d=s+n,u=r+n,c=o(e),h=o(s),p=o(d),f=o(n),g=o(u),b=o(i),m=o(l);return{a:c,an:a(e,c),ab:h,abn:a(s,h),abc:p,abcn:a(d,p),c:f,cn:a(n,f),bc:g,bcn:a(u,g),d:b,dn:a(i,b),r:o(t),arc:m,arcn:"-"+m}}(l);return{p:l.p,pathSegment:t=>{switch(t){case"TR":return`c ${s.a} 0 ${s.ab} 0 ${s.abc} ${s.d} a ${s.r} ${s.r} 0 0 1 ${s.arc} ${s.arc} c ${s.d} ${s.c} ${s.d} ${s.bc} ${s.d} ${s.abc}`;case"BR":return`c 0 ${s.a} 0 ${s.ab} ${s.dn} ${s.abc} a ${s.r} ${s.r} 0 0 1 ${s.arcn} ${s.arc} c ${s.cn} ${s.d} ${s.bcn} ${s.d} ${s.abcn} ${s.d}`;case"BL":return`c ${s.an} 0 ${s.abn} 0 ${s.abcn} ${s.dn} a ${s.r} ${s.r} 0 0 1 ${s.arcn} ${s.arcn} c ${s.dn} ${s.cn} ${s.dn} ${s.bcn} ${s.dn} ${s.abcn}`;case"TL":return`c 0 ${s.an} 0 ${s.abn} ${s.d} ${s.abcn} a ${s.r} ${s.r} 0 0 1 ${s.arc} ${s.arcn} c ${s.c} ${s.dn} ${s.bc} ${s.dn} ${s.abc} ${s.dn}`}}}},superellipse:({cornerRadius:t,exponent:e,roundingAndSmoothingBudget:r})=>{let n=Math.min(t,r);if(n<=0)return i;let o=Number.isFinite(e)?Math.max(2,e):4,a=2/o,d=2===o?t=>t:4===o?Math.sqrt:8===o?t=>Math.sqrt(Math.sqrt(t)):t=>Math.pow(t,a),u=a-1,f=2===o?()=>1:4===o?t=>1/Math.sqrt(t):t=>Math.pow(t,u),m=c.map((t,e)=>0===e?[0,0]:e===c.length-1?[n,n]:[n*d(h[e]),n*(1-d(p[e]))]),y=c.map((t,e)=>{if(0===e)return[1,0];if(e===c.length-1)return[0,1];let r=a*f(h[e])*p[e]*n,o=a*f(p[e])*h[e]*n,i=Math.sqrt(r*r+o*o)||1;return[r/i,o/i]}),$=[];for(let t=0;t<c.length-1;t++){let[e,r]=m[t],[o,i]=m[t+1],[a,s]=y[t],[u,c]=y[t+1],h=n*d(g[t]),p=n*(1-d(b[t])),f=8/3*(h-(e+o)/2),v=8/3*(p-(r+i)/2),S=u*s-c*a,R=0!==S?(-c*f+u*v)/S:0,w=0!==S?(a*v-s*f)/S:0,x=e+R*a-e,A=r+R*s-r,k=o-w*u-e,L=i-w*c-r,M=o-e,E=i-r;$.push(l(x,A,k,L,M,E))}return{p:n,pathSegment:t=>{let e=s($[0],t);for(let r=1;r<$.length;r++)e+=" "+s($[r],t);return e}}},clothoid:({cornerRadius:t,smoothing:e,roundingAndSmoothingBudget:r})=>{if(t<=0)return i;
1let n=Math.max(0,Math.min(1,e)),u=Math.PI/4*n,c=Math.PI/2*t*n,h=c>0?1/(t*c):0,{x:p,y:f}=c>0?m(0,0,h,c):{x:0,y:0},{x:g,y:b}=c>0?m(0,0,h,c/2):{x:0,y:0},y=p-t*Math.sin(u)+(f+t*Math.cos(u)),$=y,v=t,S=p,R=f,w=g,x=b;if(y>r&&y>0){let e=r/y;$=r,v=t*e,S=p*e,R=f*e,w=g*e,x=b*e}if($<=0)return i;let A=Math.cos(u),k=Math.sin(u),L=0,M=0;c>0&&(k>1e-12&&(M=8/3*(R/2-x)/k),L=8/3*(w-S/2)+M*A);let E=Math.abs(Math.PI/2-2*u)>1e-6,B=c>0?{head:l(L,0,S-M*A,R-M*k,S,R),tail:l(M*k,M*A,R,S-L,R,S)}:null,C=null;if(E){let t=$-S-R,e=o(t);C={radius:o(v),d:e,dn:a(t,e)}}return{p:$,pathSegment:t=>{if(null===B)return null===C?"":d(C,t);let e=s(B.head,t),r=s(B.tail,t);return null===C?e+" "+r:e+" "+d(C,t)+" "+r}}}};Object.keys(y);var $=new Map,v=null;function S(t,e,r,n){let o=Math.min(e,n/t-1),i=u({cornerRadius:t,cornerSmoothing:o,preserveSmoothing:r,roundingAndSmoothingBudget:n}),a=i.a+i.b+i.c;return{p:i.p,a:i.a,b:i.b,c:i.c,d:i.d,e:a,ax:i.p-a,ay:t-i.d,R:t}}function R({a:t,b:e,c:r,d:n,e:i,ax:l,ay:s,R:d}){let u=t+e,c=e+r,h=o(t),p=o(u),f=o(i),g=o(r),b=o(c),m=o(n),y=o(l),$=o(s);return{a:h,an:a(t,h),ab:p,abn:a(u,p),e:f,en:a(i,f),c:g,cn:a(r,g),bc:b,bcn:a(c,b),d:m,dn:a(n,m),r:o(d),ax:y,axn:a(l,y),ay:$,ayn:a(s,$)}}function w(t,e,r,o){let i=u({cornerRadius:t,cornerSmoothing:e,preserveSmoothing:r,roundingAndSmoothingBudget:o}),a=n(45*e);return{a:i.a,b:i.b,p:i.p,sin:Math.sin(a),cos:Math.cos(a)}}var x=(t,e,r)=>Math.max(0,Math.min(t/e-1,r)),A=t=>o(Object.is(t,-0)?0:t);function k(t){return{radius:t.radius,curve:t.curve??"squircle",smoothing:t.smoothing??.65,exponent:t.exponent??4,preserveSmoothing:t.preserveSmoothing??!0}}function L(t){return k("number"==typeof t?{radius:t}:t??{radius:0})}function M(t){return t.length>0?" "+t:""}function E(t,e){let r=y[t.curve];return function(t,e,r){var n;let o;if(!Number.isFinite(r.cornerRadius)||!Number.isFinite(r.smoothing)||!Number.isFinite(r.exponent)||!Number.isFinite(r.roundingAndSmoothingBudget))return e(r);let i=t+"|"+r.cornerRadius+"|"+r.smoothing+"|"+r.exponent+"|"+ +!!r.preserveSmoothing+"|"+r.roundingAndSmoothingBudget,a=$.get(i);if(a)return i!==v&&($.delete(i),$.set(i,a),v=i),a;let l=(n=e(r),o={},{p:n.p,pathSegment:t=>{let e=o[t];if(void 0!==e)return e;let r=n.pathSegment(t);return o[t]=r,r}});return $.size>=64&&$.delete($.keys().next().value),$.set(i,l),v=i,l}(t.curve,r,{cornerRadius:e.radius,smoothing:t.smoothing,exponent:t.exponent,preserveSmoothing:t.preserveSmoothing,roundingAndSmoothingBudget:e.roundingAndSmoothingBudget})}function B(t,e,r,n,o){return"squircle"===t.curve&&"squircle"===e.curve&&1e-9>Math.abs(r.radius-o)&&1e-9>Math.abs(n.radius-o)&&t.smoothing===e.smoothing&&t.preserveSmoothing===e.preserveSmoothing}function C(t,e,r,n){return(t===r||t.curve===r.curve&&t.smoothing===r.smoothing&&t.exponent===r.exponent&&t.preserveSmoothing===r.preserveSmoothing)&&(e===n||e.radius===n.radius&&e.roundingAndSmoothingBudget===n.roundingAndSmoothingBudget)}function N(t,e,n){var i,a,l;let s,d,u,c;if(t<=0||e<=0)return"M 0 0 H 0 V 0 H 0 Z";let h=function(t){if("radius"in t){let e=k(t);return{topLeft:e,topRight:e,bottomRight:e,bottomLeft:e}}return{topLeft:L(t.topLeft),topRight:L(t.topRight),bottomRight:L(t.bottomRight),bottomLeft:L(t.bottomLeft)}}(n);if(h.topLeft.radius<=0&&h.topRight.radius<=0&&h.bottomRight.radius<=0&&h.bottomLeft.radius<=0)return`M 0 0 H ${t} V ${e} H 0 Z`;let p=function({topLeftCornerRadius:t,topRightCornerRadius:e,bottomRightCornerRadius:n,bottomLeftCornerRadius:o,width:i,height:a}){if(t===e&&e===n&&n===o&&t>0&&i>0&&a>0){let e=Math.min(i,a)/2,r={radius:Math.min(t,e),roundingAndSmoothingBudget:e};return{topLeft:r,topRight:r,bottomLeft:r,bottomRight:r}}let l=+(e>t)+ +(o>t)+ +(n>t),s=+(t>=e)+ +(o>e)+ +(n>e),d=+(t>=o)+ +(e>=o)+ +(n>o),u=t,c=e,h=o,p=n,f=-1,g=-1,b=-1,m=-1;for(let y=0;y<4;y++){let $=l===y?0:s===y?1:d===y?2:3;0===$?(f=r(t,c,g,i,h,b,a),u=Math.min(t,f)):1===$?(g=r(e,u,f,i,p,m,a),c=Math.min(e,g)):2===$?(b=r(o,p,m,i,u,f,a),h=Math.min(o,b)):(m=r(n,h,b,i,c,g,a),p=Math.min(n,m))}return{topLeft:{radius:u,roundingAndSmoothingBudget:f},topRight:{radius:c,roundingAndSmoothingBudget:g},bottomLeft:{radius:h,roundingAndSmoothingBudget:b}
1,bottomRight:{radius:p,roundingAndSmoothingBudget:m}}}({topLeftCornerRadius:h.topLeft.radius,topRightCornerRadius:h.topRight.radius,bottomRightCornerRadius:h.bottomRight.radius,bottomLeftCornerRadius:h.bottomLeft.radius,width:t,height:e}),f=h.topLeft;if(s=(i=h).topLeft,d=i.topRight,u=i.bottomRight,c=i.bottomLeft,"squircle"===s.curve&&"squircle"===d.curve&&d.radius===s.radius&&d.smoothing===s.smoothing&&d.preserveSmoothing===s.preserveSmoothing&&"squircle"===u.curve&&u.radius===s.radius&&u.smoothing===s.smoothing&&u.preserveSmoothing===s.preserveSmoothing&&"squircle"===c.curve&&c.radius===s.radius&&c.smoothing===s.smoothing&&c.preserveSmoothing===s.preserveSmoothing){let r=Math.min(f.radius,t/2,e/2),n=Math.min(t,e)/2;if(r>0&&n>r+1e-9&&n<(1+f.smoothing)*r-1e-9){let n,o,i,s,d,u,c;return a=f.smoothing,l=f.preserveSmoothing,n=w(r,x(t/2,r,a),l,t/2),o=w(r,x(e/2,r,a),l,e/2),s=(i=(t,e,i,a,l,s)=>{let d=0===a?n:o,u=0===s?n:o,c=t+(i+l)*r,h=e+(a+s)*r,p=c-l*r*d.cos-i*r*d.sin,f=h-s*r*d.cos-a*r*d.sin,g=c-i*r*u.cos-l*r*u.sin,b=h-a*r*u.cos-s*r*u.sin,m=t+i*d.p,y=e+a*d.p,$=Math.hypot(g-p,b-f)>1e-6,v=$?g:p,S=$?b:f,R=t+l*u.p,w=e+s*u.p,x=`L ${A(m)} ${A(y)} `;return x+=`c ${A(-i*d.a)} ${A(-a*d.a)} ${A(-i*(d.a+d.b))} ${A(-a*(d.a+d.b))} ${A(p-m)} ${A(f-y)} `,$&&(x+=`a ${A(r)} ${A(r)} 0 0 1 ${A(g-p)} ${A(b-f)} `),x+=`c ${A(R-l*(u.a+u.b)-v)} ${A(w-s*(u.a+u.b)-S)} ${A(R-l*u.a-v)} ${A(w-s*u.a-S)} ${A(R-v)} ${A(w-S)}`})(t,0,-1,0,0,1),d=i(t,e,0,-1,-1,0),u=i(0,e,1,0,0,-1),c=i(0,0,0,1,1,0),`M ${A(n.p)} 0 ${s} ${d} ${u} ${c} Z`}}let g=t>=e,b=g?e/2:t/2;if(g){let r=B(h.topRight,h.bottomRight,p.topRight,p.bottomRight,b),n=B(h.topLeft,h.bottomLeft,p.topLeft,p.bottomLeft,b);if(r||n){let i,a,l=t/2,s=r?S(b,h.topRight.smoothing,h.topRight.preserveSmoothing,l):null,d=n?S(b,h.topLeft.smoothing,h.topLeft.preserveSmoothing,l):null,u=d?null:E(h.topLeft,p.topLeft),c=s?null:E(h.topRight,p.topRight),f=s?null:E(h.bottomRight,p.bottomRight),g=d?null:E(h.bottomLeft,p.bottomLeft),m="M "+o(d?d.p:u.p)+" 0";return m+=" L "+o(t-(s?s.p:c.p))+" 0",s?m+=" "+(i=R(s),`c ${i.a} 0 ${i.ab} 0 ${i.e} ${i.d} a ${i.r} ${i.r} 0 0 1 ${i.ax} ${i.ay} a ${i.r} ${i.r} 0 0 1 ${i.axn} ${i.ay} c ${i.cn} ${i.d} ${i.bcn} ${i.d} ${i.en} ${i.d}`):(m+=M(c.pathSegment("TR")),m+=" L "+o(t)+" "+o(f.p),m+=" L "+o(t)+" "+o(e-f.p),m+=M(f.pathSegment("BR"))),d?(m+=" L "+o(d.p)+" "+o(e),m+=" "+(a=R(d),`c ${a.an} 0 ${a.abn} 0 ${a.en} ${a.dn} a ${a.r} ${a.r} 0 0 1 ${a.axn} ${a.ayn} a ${a.r} ${a.r} 0 0 1 ${a.ax} ${a.ayn} c ${a.c} ${a.dn} ${a.bc} ${a.dn} ${a.e} ${a.dn}`)):(m+=" L "+o(t-g.p)+" "+o(e),m+=" L "+o(g.p)+" "+o(e),m+=M(g.pathSegment("BL")),m+=" L 0 "+o(e-u.p),m+=" L 0 "+o(u.p),m+=M(u.pathSegment("TL"))),m+" Z"}}else{let r=B(h.topLeft,h.topRight,p.topLeft,p.topRight,b),n=B(h.bottomLeft,h.bottomRight,p.bottomLeft,p.bottomRight,b);if(r||n){let i,a,l=e/2,s=r?S(b,h.topLeft.smoothing,h.topLeft.preserveSmoothing,l):null,d=n?S(b,h.bottomLeft.smoothing,h.bottomLeft.preserveSmoothing,l):null,u=s?null:E(h.topLeft,p.topLeft),c=s?null:E(h.topRight,p.topRight),f=d?null:E(h.bottomRight,p.bottomRight),g=d?null:E(h.bottomLeft,p.bottomLeft),m;return m=(s?"M 0 "+o(s.p)+" "+(i=R(s),`c 0 ${i.an} 0 ${i.abn} ${i.d} ${i.en} a ${i.r} ${i.r} 0 0 1 ${i.ay} ${i.axn} a ${i.r} ${i.r} 0 0 1 ${i.ay} ${i.ax} c ${i.d} ${i.c} ${i.d} ${i.bc} ${i.d} ${i.e}`):"M "+o(u.p)+" 0"+(" L "+o(t-c.p))+" 0"+M(c.pathSegment("TR")))+(" L "+o(t)+" ")+o(e-(d?d.p:f.p)),d?m+=" "+(a=R(d),`c 0 ${a.a} 0 ${a.ab} ${a.dn} ${a.e} a ${a.r} ${a.r} 0 0 1 ${a.ayn} ${a.ax} a ${a.r} ${a.r} 0 0 1 ${a.ayn} ${a.axn} c ${a.dn} ${a.cn} ${a.dn} ${a.bcn} ${a.dn} ${a.en}`):(m+=M(f.pathSegment("BR")),m+=" L "+o(g.p)+" "+o(e),m+=M(g.pathSegment("BL"))),s?m+=" L 0 "+o(s.p):(m+=" L 0 "+o(e-u.p),m+=" L 0 "+o(u.p),m+=M(u.pathSegment("TL"))),m+" Z"}}let m=E(h.topLeft,p.topLeft),y=C(h.topLeft,p.topLeft,h.topRight,p.topRight)&&C(h.topLeft,p.topLeft,h.bottomRight,p.bottomRight)&&C(h.topLeft,p.topLeft,h.bottomLeft,p.bottomLeft),$=y?m:E(h.topRight,p.topRight),v=y?m:E(h.bottomRight,p.bottomRight),N=y?m:E(h.bottomLeft,p.bottomLeft);return"M "+o(m.p)+" 0 L "+o(t-$.p)+" 0"+M($.pathSegment("TR"))+" L "+o(t)+" "+o(v.p)+" L "+o(t)+" "+o(e-v.p)+M(v.pathSegment("BR"))+" L "+o(t-N.p)+" "+o(e)+" L "+o(N.p)+" "+o(e)+M(N.pathSegment("BL"))+" L 0 "+o(e-m.p)+" L 0 "+o(m.p)+M(m.pathSegment("TL"))+" Z"}function F(t,e=window.getComputedStyle(t)){let r=t=>t.endsWith("px")?parseFloat(t):NaN,n=r(e.width),o=r(e.height);if(Number.isNaN(n)||Number.isNaN(o))return{width:t.offsetWidth,height:t.offsetHeight};if("border-box"===e.boxSizing)return{width:n,height:o};let i=(parseFloat(e.paddingLeft)||0)+(parseFloat(e.paddingRight)||0),a=(parseFloat(e.paddingTop)||0)+(parseFloat(e.paddingBottom)||
10);return{width:n+i+((parseFloat(e.borderLeftWidth)||0)+(parseFloat(e.borderRightWidth)||0)),height:o+a+((parseFloat(e.borderTopWidth)||0)+(parseFloat(e.borderBottomWidth)||0))}}var P="http://www.w3.org/2000/svg",T=0;function O(t,e){let r;return function(n,o,i,a){let l,s,d,u,c,h;if(n.setAttribute("width",String(o)),n.setAttribute("height",String(i)),e===t){n.style.left=n.style.top="0px";return}r??(r=e.offsetParent===t);let{x:p,y:f}=r?a??{x:e.offsetLeft,y:e.offsetTop}:(l=t.getBoundingClientRect(),s=e.getBoundingClientRect(),u=(d=F(t)).width>0&&l.width>0?l.width/d.width:1,c=d.height>0&&l.height>0?l.height/d.height:1,h=getComputedStyle(t),{x:(s.left-l.left)/u-(parseFloat(h.borderLeftWidth)||0)+t.scrollLeft,y:(s.top-l.top)/c-(parseFloat(h.borderTopWidth)||0)+t.scrollTop});n.style.left=`${p}px`,n.style.top=`${f}px`}}function I(t){let e=t.replace("#","");return 3===e.length?"#"+e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:"#"+e}var z=/^#?[0-9a-f]{3}(?:[0-9a-f]{3})?$/i;function q(t){if(!z.test(t))return t;let e=I(t).replace("#","");return`rgb(${parseInt(e.substring(0,2),16)},${parseInt(e.substring(2,4),16)},${parseInt(e.substring(4,6),16)})`}var H={offsetX:0,offsetY:0,blur:0,spread:0,color:"#000",opacity:0}
1;function G(t){let e=new Map,r,n=t=>{let n=JSON.stringify(t);n!==r&&(r=n,e.clear())},o=(t,r,n,o)=>{let i=`${t}:${r}:${o}`,a=e.get(i);if(void 0!==a)return e.delete(i),e.set(i,a),a;let l=N(t,r,n);return e.size>=128&&e.delete(e.keys().next().value),e.set(i,l),l};return o.setOptions=n,o._size=()=>e.size,void 0!==t&&n(t),o}function W(t,e){if(0===e)return t;if("radius"in t)return{...t,radius:Math.max(0,t.radius+e)};let r=t=>{if(void 0!==t)return"number"==typeof t?Math.max(0,t+e):{...t,radius:Math.max(0,t.radius+e)}};return{topLeft:r(t.topLeft),topRight:r(t.topRight),bottomRight:r(t.bottomRight),bottomLeft:r(t.bottomLeft)}}function K(t){if("radius"in t)return`${t.radius}px`;let e=t=>void 0===t?0:"number"==typeof t?t:t.radius,r=e(t.topLeft),n=e(t.topRight),o=e(t.bottomRight),i=e(t.bottomLeft);return`${r}px ${n}px ${o}px ${i}px`}function U(t){if(!z.test(t))return`color-mix(in oklab, ${t}, black 33%)`;let e=I(t).replace("#",""),r=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),o=parseInt(e.substring(4,6),16);return 0===r&&0===n&&0===o?"#4c4c4c":"#"+(0x1000000|Math.round(2*r/3)<<16|Math.round(2*n/3)<<8|Math.round(2*o/3)).toString(16).slice(1)}function j(t){return"object"==typeof t&&null!==t&&"type"in t}function D(t,e){for(;t.lastChild;)t.removeChild(t.lastChild);for(let r of e){let e=document.createElementNS(P,"stop");e.setAttribute("offset",String(r.offset)),e.setAttribute("stop-color",r.color),void 0!==r.opacity&&1!==r.opacity&&e.setAttribute("stop-opacity",String(r.opacity)),t.appendChild(e)}}function X(t,e){if("linear"===e.type){let r,n={x1:.5-.5*Math.cos(r=(90-(e.angle??0))*Math.PI/180),y1:.5+.5*Math.sin(r),x2:.5+.5*Math.cos(r),y2:.5-.5*Math.sin(r)};t.setAttribute("x1",String(n.x1)),t.setAttribute("y1",String(n.y1)),t.setAttribute("x2",String(n.x2)),t.setAttribute("y2",String(n.y2))}else t.setAttribute("cx",String(e.cx??.5)),t.setAttribute("cy",String(e.cy??.5)),t.setAttribute("r",String(e.r??.5))}function Y(t,e,r,n){t.setAttribute("x",String(-e)),t.setAttribute("y",String(-e)),t.setAttribute("width",String(r+2*e)),t.setAttribute("height",String(n+2*e))}function Z(t,e,r,n,o){Y(t,r,n,o),Y(e,r,n,o)}function J(t,e,r){let n=document.createElementNS(P,"mask");n.setAttribute("id",t),r&&n.setAttribute("maskUnits","userSpaceOnUse");let o=document.createElementNS(P,"rect");o.setAttribute("fill","white");let i=document.createElementNS(P,"path");return i.setAttribute("fill","none"),i.setAttribute("stroke","black"),n.appendChild(o),n.appendChild(i),e.appendChild(n),{mask:n,rect:o,knockout:i}}function V(t){let e=document.createElementNS(P,"g"),r=document.createElementNS(P,"path");r.setAttribute("fill","none"),t&&r.setAttribute(t.attr,t.value),r.style.display="none",e.appendChild(r);let n=document.createElementNS(P,"path");return n.setAttribute("fill","none"),t&&n.setAttribute(t.attr,t.value),n.style.display="none",e.appendChild(n),{group:e,strokePath:r,grooveOverlay:n}}function _(t,e){let r="main"===e?"gradientEl":"overlayGradientEl";t[r]?.remove(),t[r]=null}function Q(t,e,r){var n,o;let i,a;if(!j(t))return _(e,r),t;let l="main"===r?"gradientEl":"overlayGradientEl",s="main"===r?e.gradientId:e.overlayGradientId;return e[l]?(X(n=e[l],t),D(n,t.stops)):e[l]=(o=e.defs,i="linear"===t.type?"linearGradient":"radialGradient",(a=document.createElementNS(P,i)).setAttribute("id",s),X(a,t),D(a,t.stops),o.appendChild(a),a),`url(#${s})`}function tt(t,e,r,n,o){if(!t||t.width<=0||t.opacity<=0){o.strokePath.style.display="none",o.strokeGroup.removeAttribute("mask"),o.grooveOverlay.style.display="none",_(o,"main"),_(o,"overlay");return}let i=o.strokeMultiplier;o.strokePath.style.display="",o.strokePath.setAttribute("d",e),o.strokePath.setAttribute("stroke",Q(t.color,o,"main")),o.strokePath.setAttribute("stroke-width",String(t.width*i)),o.strokePath.setAttribute("stroke-opacity",String(t.opacity));let a=t.style??"solid";switch(o.strokeGroup.removeAttribute("mask"),o.grooveOverlay.style.display="none",o.strokePath.removeAttribute("stroke-dasharray"),o.strokePath.setAttribute("stroke-linecap","butt"),"groove"!==a&&"ridge"!==a&&_(o,"overlay"),a){case"dashed":{let e=Math.max(0,t.dash??3*t.width),r=Math.max(0,t.gap??2*t.width);o.strokePath.setAttribute("stroke-dasharray",`${e} ${r}`),t.lineCap&&o.strokePath.setAttribute("stroke-linecap",t.lineCap);break}case"dotted":{let e=Math.max(0,t.dash??0),r=Math.max(0,t.gap??2*t.width);o.strokePath.setAttribute("stroke-dasharray",`${e} ${r}`),o.strokePath.setAttribute("stroke-linecap",t.lineCap??"round");break}case"double":if(t.width>=3){let a=Math.round(t.width/3);o.dblKnockout.setAttribute("d",e),o.dblKnockout.setAttribute("stroke-width",String(a*i)),o.dblRect.setAttribute("width",String(r)),o.dblRect.setAttribute("height",String(n)),o.padDblMask&&o.padDblMask(t.width,r,n),o.strokeGroup.setAttribute("mask",`url(#${o.dblMaskId})`)}break;case"groove":case"ridge":{var l;let r=j(t.color)?{...l=t.color,stops:l.stops.map(t=>({...t,color:U(t.color)}))}:U(t.color);"groove"===a&&o.strokePath.setAttribute("stroke",Q(r,o,"main")),o.grooveOverlay.style.display="",o.grooveOverlay.setAttribute("d",e),o.grooveOverlay.setAttribute("stroke",Q("groove"===a?t.color:r,o,"overlay")),o.grooveOverlay.setAttribute("stroke-width",String(t.width*i/2)),o.grooveOverlay.setAttribute("stroke-opacity",String(t.opacity))}}}function te(t,e=t){let r=++T,n=`sc-clip-${r}`,o=`sc-mask-${r}`,i=document.createElementNS(P,"svg");i.style.position="absolute",i.style.left="0px",i.style.top="0px",i.style.pointerEvents="none",i.style.overflow="visible",i.style.zIndex="1",i.setAttribute("aria-hidden","true"),i.setAttribute("width","0"),i.setAttribute("height","0");let a=document.createElementNS(P,"defs"),l=document.createElementNS(P,"clipPath");l.setAttribute("id",n);let s=document.createElementNS(P,"path");l.appendChild(s),a.appendChild(l);let d=document.createElementNS(P,"mask");d.setAttribute("id",o),d.setAttribute("maskUnits","userSpaceOnUse");let u=document.createElementNS(P,"rect");u.setAttribute("fill","white");let c=document.createElementNS(P,"path");c.setAttribute("fill","black"),d.appendChild(u),d.appendChild(c),a.appendChild(d);let h=`sc-dbl-inner-${r}`,{rect:p,knockout:f}=J(h,a,!1),g=`sc-dbl-outer-${r}
1`,{mask:b,rect:m,knockout:y}=J(g,a,!0),$=`sc-dbl-middle-${r}`,{mask:v,rect:S,knockout:R}=J($,a,!0);i.appendChild(a);let w=document.createElementNS(P,"g");w.setAttribute("clip-path",`url(#${n})`),i.appendChild(w);let x=[],{group:A,strokePath:k,grooveOverlay:L}=V({attr:"clip-path",value:`url(#${n})`});i.appendChild(A);let{group:M,strokePath:E,grooveOverlay:B}=V({attr:"mask",value:`url(#${o})`});i.appendChild(M);let{group:C,strokePath:N,grooveOverlay:F}=V();i.appendChild(C),t.appendChild(i);let I={strokePath:k,grooveOverlay:L,strokeGroup:A,dblMaskId:h,dblKnockout:f,dblRect:p,strokeMultiplier:2,defs:a,gradientEl:null,gradientId:`sc-grad-inner-${r}`,overlayGradientEl:null,overlayGradientId:`sc-grad-inner-ov-${r}`},z={strokePath:E,grooveOverlay:B,strokeGroup:M,dblMaskId:g,dblKnockout:y,dblRect:m,strokeMultiplier:2,defs:a,gradientEl:null,gradientId:`sc-grad-outer-${r}`,overlayGradientEl:null,overlayGradientId:`sc-grad-outer-ov-${r}`,padDblMask:(t,e,r)=>Z(b,m,t,e,r)},H={strokePath:N,grooveOverlay:F,strokeGroup:C,dblMaskId:$,dblKnockout:R,dblRect:S,strokeMultiplier:1,defs:a,gradientEl:null,gradientId:`sc-grad-middle-${r}`,overlayGradientEl:null,overlayGradientId:`sc-grad-middle-ov-${r}`,padDblMask:(t,e,r)=>Z(v,S,t,e,r)},K=G(),U=O(t,e);return{update(t,e,r,n,o){if(r<=0||n<=0)return;U(i,r,n,o),i.setAttribute("viewBox",`0 0 ${r} ${n}`),K.setOptions(t);let l=K(r,n,t,0);s.setAttribute("d",l),c.setAttribute("d",l),u.setAttribute("width",String(r)),u.setAttribute("height",String(n)),tt(e.innerBorder,l,r,n,I);let h=e.outerBorder;h&&h.width>0&&h.opacity>0&&Z(d,u,h.width,r,n),tt(h,l,r,n,z),tt(e.middleBorder,l,r,n,H);let p=e.innerShadow,f=null==p?[]:Array.isArray(p)?p:[p];for(;x.length<f.length;)x.push(function(t,e){let r=++T,n=`sc-ishadow-mask-${r}`,o=document.createElementNS(P,"mask");o.setAttribute("id",n),o.setAttribute("maskUnits","userSpaceOnUse");let i=document.createElementNS(P,"rect");i.setAttribute("fill","white");let a=document.createElementNS(P,"path");a.setAttribute("fill","black"),o.appendChild(i),o.appendChild(a),t.appendChild(o);let l=`sc-ishadow-blur-${r}`,s=document.createElementNS(P,"filter");s.setAttribute("id",l),s.setAttribute("x","-200%"),s.setAttribute("y","-200%"),s.setAttribute("width","500%"),s.setAttribute("height","500%"),s.setAttribute("color-interpolation-filters","sRGB");let d=document.createElementNS(P,"feGaussianBlur");d.setAttribute("stdDeviation","0"),s.appendChild(d),t.appendChild(s);let u=document.createElementNS(P,"g"),c=document.createElementNS(P,"rect");return c.setAttribute("mask",`url(#${n})`),c.style.display="none",u.appendChild(c),e.appendChild(u),{maskId:n,mask:o,maskRect:i,maskCutout:a,filterId:l,filter:s,feBlur:d,blurGroup:u,rect:c}}(a,w));for(;x.length>f.length;){var g;(g=x.pop()).mask.remove(),g.filter.remove(),g.blurGroup.remove()}for(let e=0;e<f.length;e++){let o=f[e],i=x[e];if(o.opacity<=0){i.rect.style.display="none";continue}i.rect.style.display="";let a=o.spread,l=Math.max(3*o.blur,20)+Math.max(Math.abs(o.offsetX),Math.abs(o.offsetY))+Math.abs(a);Z(i.mask,i.maskRect,l,r,n);let s=Math.max(1,r-2*a),d=Math.max(1,n-2*a),u=0!==a?W(t,-a):t;i.maskCutout.setAttribute("d",K(s,d,u,-a)),i.maskCutout.setAttribute("transform",`translate(${o.offsetX+a},${o.offsetY+a})`),o.blur>0?(i.feBlur.setAttribute("stdDeviation",String(o.blur)),i.blurGroup.setAttribute("filter",`url(#${i.filterId})`)):i.blurGroup.removeAttribute("filter"),Y(i.rect,l,r,n),i.rect.setAttribute("fill",q(o.color)),i.rect.setAttribute("fill-opacity",String(o.opacity))}},destroy(){i.remove()}}}var tr=new WeakMap;function tn(t){let e=tr.get(t)??0;if(e>0)return tr.set(t,e+1),!0;let r=getComputedStyle(t).position;return("static"===r||""===r)&&(tr.set(t,1),t.style.position="relative",!0)}function to(t){let e=tr.get(t);void 0!==e&&(e<=1?(tr.delete(t),t.style.position=""):tr.set(t,e-1))}var ti=new WeakMap,ta=new WeakMap;function tl(t,e=t){let r;0===(r=ti.get(t)??0)&&ta.set(t,t.style.isolation),ti.set(t,r+1),t.style.isolation="isolate";let n=document.createElementNS(P,"svg");n.style.cssText="position:absolute;left:0;top:0;overflow:visible;pointer-events:none;z-index:-1",n.setAttribute("width","0"),n.setAttribute("height","0"),n.setAttribute("aria-hidden","true");let o=document.createElementNS(P,"defs");n.appendChild(o),t.appendChild(n);let i=[],a=G(),l=O(t,e);return{update(t,e,r,s,d){var u,c;let h=Array.isArray(e)?e:[e];if(!(r>0&&s>0&&h.some(t=>t.opacity>0))){n.style.display="none";return}for(l(n,r,s,d);i.length<h.length;)i.push(function(t,e){let r=`sc-shadow-${++T}`,n=document.createElementNS(P,"filter");n.setAttribute("id",r),n.setAttribute("filterUnits","userSpaceOnUse"),n.setAttribute("color-interpolation-filters","sRGB");let o=document.createElementNS(P,"feGaussianBlur");o.setAttribute("stdDeviation","0"),n.appendChild(o),t.appendChild(n);let i=document.createElementNS(P,"path");return e.appendChild(i),{filterId:r,filterEl:n,feBlur:o,pathEl:i}}(o,n));for(;i.length>h.length;)(u=i.pop()).filterEl.remove(),u.pathEl.remove();a.setOptions(t);let p=!1;for(let e=0;e<h.length;e++){let n=h[e],o=i[h.length-1-e];
1if(n.opacity<=0){o.pathEl.style.display="none";continue}let l=n.spread,d=r+2*l,u=s+2*l;if(d<=0||u<=0){o.pathEl.style.display="none";continue}p=!0,o.pathEl.style.display="";let f=q(n.color),g=W(t,l);if(o.pathEl.setAttribute("d",a(d,u,g,l)),o.pathEl.setAttribute("transform",`translate(${n.offsetX-l},${n.offsetY-l})`),o.pathEl.setAttribute("fill",f),o.pathEl.setAttribute("fill-opacity",String(n.opacity)),n.blur>0){let t=Math.ceil(3*n.blur+Math.abs(l)+1);c=o.filterEl,c.setAttribute("x",String(-t)),c.setAttribute("y",String(-t)),c.setAttribute("width",String(d+2*t)),c.setAttribute("height",String(u+2*t)),o.feBlur.setAttribute("stdDeviation",String(n.blur)),o.pathEl.setAttribute("filter",`url(#${o.filterId})`)}else o.pathEl.removeAttribute("filter")}n.style.display=p?"":"none"},destroy(){let e;n.remove(),void 0!==(e=ti.get(t))&&(e<=1?(ti.delete(t),t.style.isolation=ta.get(t)??"",ta.delete(t)):ti.set(t,e-1))}}}var ts,td=null,tu=new Map,tc=new Set,th=new WeakMap;function tp(){ts=void 0;let t=[...tc];tc.clear();let e=new Map;for(let r of t){if(!tu.has(r))continue;let t=window.getComputedStyle(r),n=F(r,t);th.set(r,{width:n.width,height:n.height,horizontal:"horizontal-tb"===t.writingMode||""===t.writingMode}),e.set(r,{...n,offsetLeft:r.offsetLeft,offsetTop:r.offsetTop})}for(let r of t){let t=tu.get(r);if(t){let n=e.get(r);for(let e of[...t])e(n)}}}function tf(t,e){if(typeof ResizeObserver>"u")return()=>{};let r=(td||(td=new ResizeObserver(t=>{let e=!1;for(let r of t){let t=th.get(r.target),n=r.borderBoxSize?.[0];t?.horizontal&&n&&n.inlineSize===t.width&&n.blockSize===t.height||(tc.add(r.target),e=!0)}e&&void 0===ts&&(ts=requestAnimationFrame(tp))})),td),n=tu.get(t);n||(n=new Set,tu.set(t,n),r.observe(t)),n.add(e),tc.add(t),void 0===ts&&(ts=requestAnimationFrame(tp));let o=!1;return()=>{o||(o=!0,n.delete(e),0===n.size&&(tu.delete(t),r.unobserve(t),th.delete(t)),0===tu.size&&(void 0!==ts&&(cancelAnimationFrame(ts),ts=void 0),tc.clear(),td?.disconnect(),td=null))}}function tg(t,e){let r=!0;return tf(t,()=>{if(r){r=!1;return}tu.has(e)&&(tc.add(e),void 0===ts&&(ts=requestAnimationFrame(tp)))})}var tb=/(?:color-mix|light-dark|rgba?|hsla?|hwb|lab|lch|oklab|oklch|color)\((?:[^()]|\([^()]*\))+\)/,tm=/\/\s*([\d.]+%?)\s*\)$/;function ty(t){let e=function(t){let e=t.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)(?:\s*[,/]\s*([\d.]+))?\s*\)$/);if(!e)return;let r=Number(e[1]),n=Number(e[2]),o=Number(e[3]),i=void 0!==e[4]?Number(e[4]):1;return{hex:"#"+(0x1000000|r<<16|n<<8|o).toString(16).slice(1),opacity:i}}(t);if(e)return e.opacity>0?{color:e.hex,opacity:e.opacity}:void 0;if(tb.exec(t)?.[0]!==t)return;let r=t.match(tm)?.[1];return r&&0===parseFloat(r)?void 0:{color:t,opacity:1}}function t$(t){if(!t||"none"===t)return{};let e=[],r=0,n=0;for(let o=0;o<t.length;o++)"("===t[o]?r++:")"===t[o]?r--:","===t[o]&&0===r&&(e.push(t.slice(n,o).trim()),n=o+1);e.push(t.slice(n).trim());let o=[],i=[];for(let t of e){let e=t.includes("inset"),r=t.replace("inset","").trim(),n=r.match(tb);if(!n)continue;let a=ty(n[0]);if(!a)continue;let l=r.replace(n[0],"").trim().split(/\s+/).map(parseFloat).filter(t=>!isNaN(t));if(l.length<2)continue;let s={offsetX:l[0],offsetY:l[1],blur:l[2]??0,spread:l[3]??0,...a};(e?i:o).push(s)}return{shadow:o.length>0?o:void 0,innerShadow:i.length>0?i:void 0}}function tv(t){let e={border:t.style.border,boxShadow:t.style.boxShadow,paddingTop:t.style.paddingTop,paddingRight:t.style.paddingRight,paddingBottom:t.style.paddingBottom,paddingLeft:t.style.paddingLeft},r=getComputedStyle(t),n={borderTopStyle:r.borderTopStyle,borderTopWidth:r.borderTopWidth,borderTopColor:r.borderTopColor},o=r.boxShadow,i=r.boxSizing,a=parseFloat(r.borderTopWidth)||0,l=parseFloat(r.borderRightWidth)||0,s=parseFloat(r.borderBottomWidth)||0,d=parseFloat(r.borderLeftWidth)||0,u=parseFloat(r.paddingTop)||0,c=parseFloat(r.paddingRight)||0,h=parseFloat(r.paddingBottom)||0,p=parseFloat(r.paddingLeft)||0,f=F(t,r),g=function(t,e=getComputedStyle(t)){let r=e.borderTopStyle;if("none"===r||"hidden"===r)return;let n=parseFloat(e.borderTopWidth);if(n<=0||isNaN(n))return;let o=ty(e.borderTopColor);if(!o)return;let i={dashed:"dashed",dotted:"dotted",double:"double",groove:"groove",ridge:"ridge"}[r];return{width:n,color:o.color,opacity:o.opacity,...i?{style:i}:{}}}(t,n),{shadow:b,innerShadow:m}=t$(o);g&&(t.style.border="0"),(b||m)&&(t.style.boxShadow="none"),g&&"content-box"===i&&(a>0||l>0||s>0||d>0)&&(t.style.paddingTop=u+a+"px",t.style.paddingRight=c+l+"px",t.style.paddingBottom=h+s+"px",t.style.paddingLeft=p+d+"px");let y={};return g&&(y.innerBorder=g),b&&(y.shadow=b),m&&(y.innerShadow=m),{effects:y,size:f,savedStyles:e}}function tS(t){return!!t&&!!(t.innerBorder||t.outerBorder||t.middleBorder||t.innerShadow||t.shadow)}function tR(t,e){return{...t?.effects,...e}}function tw(t,e){t.style.border=e.border,t.style.boxShadow=e.boxShadow,t.style.paddingTop=e.paddingTop,t.style.paddingRight=e.paddingRight,t.style.paddingBottom=e.paddingBottom,t.style.paddingLeft=e.paddingLeft}t.s(["acquirePosition",0,tn,"createDropShadow",0,tl,"createSvgEffects",0,te,"extractAndStripEffects",0,tv,"hasEffects",0,tS,"mergeEffects",0,tR,"observeAnchor",0,tg,"observeResize",0,tf,"parseBoxShadow",0,t$,"releasePosition",0,to,"restoreStyles",0,tw],178534);var tx="u">typeof window?e.useLayoutEffect:e.useEffect;function tA(t,e,r){var n,o,i,a,l;let s=tR(t.extracted,e.effectsPropRef.current);
1tS(s)&&tk(t,s,e.wrapperRefRef.current,e.skipShadowHandleRef.current);let d=t.pendingSize;t.pendingSize=void 0;let{width:u,height:c}=r??d??F(t.el);if(u<=0||c<=0)return;let h=r&&"offsetLeft"in r?r:void 0,p=void 0!==t.effectsHandle,f=p?h?.offsetLeft??t.el.offsetLeft:0,g=p?h?.offsetTop??t.el.offsetTop:0,b=e.syncKeyRef.current;u===t.lastWidth&&c===t.lastHeight&&b===t.lastSyncKey&&f===t.lastOffsetX&&g===t.lastOffsetY||(t.lastWidth=u,t.lastHeight=c,t.lastSyncKey=b,t.lastOffsetX=f,t.lastOffsetY=g,t.el.style.clipPath=(n=e.optionsRef.current,`path("${N(u,c,n)}")`),t.el.setAttribute("data-state","ready"),void 0===t.fallbackBorderRadius||t.clearedFallbackRadius||(t.el.style.borderRadius="",t.clearedFallbackRadius=!0),t.effectsHandle&&(o=e.optionsRef.current,i=t.effectsHandle,a=t.shadowHandle,l={x:f,y:g},i.update(o,s,u,c,l),a?.update(o,s.shadow??H,u,c,l)))}function tk(t,e,r,n){if(!t.anchor){let e=r?.current,n=(e&&e!==t.el?e:null)??t.el.parentElement;if(!n)return;t.anchor=n,t.didAcquire=tn(n),t.unobserveAnchor=tg(n,t.el)}t.effectsHandle||(t.effectsHandle=te(t.anchor,t.el)),t.shadowHandle||!e.shadow||n||(t.shadowHandle=tl(t.anchor,t.el))}function tL(t,r,n){let{wrapperRef:o,effects:i,autoEffects:a,skipShadowHandle:l,onExtractedShadow:s,fallbackBorderRadius:d}=n??{},u=(0,e.useRef)(r);u.current=r;let c=(0,e.useRef)(i);c.current=i;let h=(0,e.useRef)(o);h.current=o;let p=(0,e.useRef)(l??!1);p.current=l??!1;let f=(0,e.useRef)(s);f.current=s;let g=(0,e.useRef)(d);g.current=d;let b=JSON.stringify(r),m=JSON.stringify(i??null),y=a??!0,$=l??!1,v=(0,e.useRef)("");v.current=`${b}|${m}|${+!!$}`;let S=(0,e.useRef)({optionsRef:u,effectsPropRef:c,wrapperRefRef:h,skipShadowHandleRef:p,onExtractedShadowRef:f,syncKeyRef:v,fallbackBorderRadiusRef:g}),R=(0,e.useRef)(null);tx(()=>{let e=t.current;if(!e)return;let r=e.style.clipPath;e.setAttribute("data-slot","smooth-corners"),e.setAttribute("data-state","pending");let n=y?tv(e):void 0,o={el:e,savedClipPath:r,extracted:n,effectsHandle:void 0,shadowHandle:void 0,anchor:null,didAcquire:!1,unobserveAnchor:void 0,pendingSize:n?.size,lastWidth:0,lastHeight:0,lastSyncKey:null,lastOffsetX:0,lastOffsetY:0,fallbackBorderRadius:g.current,clearedFallbackRadius:!1};R.current=o;let i=tR(o.extracted,c.current);tS(i)&&tk(o,i,h.current,p.current),f.current?.(o.extracted?.effects.shadow);let a=tf(e,t=>tA(o,S.current,t));return()=>{a(),o.unobserveAnchor?.(),o.effectsHandle?.destroy(),o.shadowHandle?.destroy(),o.extracted&&tw(e,o.extracted.savedStyles),f.current?.(void 0),o.didAcquire&&o.anchor&&to(o.anchor),R.current=null,o.clearedFallbackRadius&&void 0!==o.fallbackBorderRadius&&(e.style.borderRadius=o.fallbackBorderRadius),e.style.clipPath=r,e.removeAttribute("data-slot"),e.removeAttribute("data-state")}},[t]),tx(()=>{let t=R.current;t&&tA(t,S.current)}),tx(()=>{let t=R.current;if(t)if($){if(!t.shadowHandle)return;t.shadowHandle.destroy(),t.shadowHandle=void 0,t.lastSyncKey=null}else t.lastSyncKey=null},[$]),tx(()=>{let t=R.current;if(!t)return;let e=void 0!==t.extracted;if(y&&!e)t.extracted=tv(t.el),t.pendingSize=t.extracted.size;else{if(y||!e)return;tw(t.el,t.extracted.savedStyles),t.extracted=void 0}f.current?.(t.extracted?.effects.shadow),t.lastSyncKey=null,tA(t,S.current)},[y])}function tM(t,e){if("function"==typeof t)return t(e);t&&(t.current=e)}function tE(...t){return e=>{let r=!1,n=t.map(t=>{let n=tM(t,e);return"function"==typeof n&&(r=!0),n});if(r)return()=>{for(let e=0;e<n.length;e++){let r=n[e];"function"==typeof r?r():tM(t[e],null)}}}}var tB=(0,e.forwardRef)(function(t,r){let{children:n,...o}=t,i=e.Children.toArray(n);if(0===i.length)throw Error("Slot: `asChild` expects a single child element, received none.");if(i.length>1)throw Error("Slot: `asChild` expects a single child element, received "+i.length+".");let a=i[0];if(!(0,e.isValidElement)(a))throw Error("Slot: `asChild` expects a React element as its child (e.g. <button>), not a "+("string"==typeof a?"string.":typeof a+"."));if(a.type===e.Fragment)throw Error("Slot: `asChild` expects a single element as its child, not a Fragment. Unwrap the Fragment so Slot can merge props onto a real element.");let l=a.props??{},s=l.ref??a.ref,d=function(t,e){let r={...t};for(let t of Object.keys(e)){let n=e[t],o=r[t];/^on[A-Z]/.test(t)&&"function"==typeof n?"function"==typeof o?r[t]=(...t)=>{n(...t);let e=t[0];e&&e.defaultPrevented||o(...t)}
1:r[t]=n:"className"===t?r[t]=[o,n].filter(Boolean).join(" "):"style"===t?r[t]={...o,...n}:r[t]=n}return r}(o,l),u=(0,e.useMemo)(()=>tE(r,s),[r,s]);return(0,e.cloneElement)(a,{...d,ref:u})}),tC=/^border[A-Za-z]*Radius$/;function tN(t){if(!t)return!1;for(let e of Object.keys(t))if(void 0!==t[e]&&tC.test(e))return!0;return!1}function tF(t,e){if("function"==typeof t)return t(e)??void 0;null!=t&&(t.current=e)}function tP(...t){return(0,e.useMemo)(()=>(function(...t){return e=>{let r=!1,n=t.map(t=>{let n=tF(t,e);return"function"==typeof n&&(r=!0),n});if(r)return()=>{n.forEach((e,r)=>{"function"==typeof e?e():tF(t[r],null)})}}})(...t),t)}(0,e.forwardRef)(function(t,r){let{as:n,asChild:o,children:i,corners:a,innerBorder:l,outerBorder:s,middleBorder:d,innerShadow:u,shadow:c,autoEffects:h,shadowStrategy:p,...f}=t,g=(0,e.useRef)(null),b=(0,e.useRef)(null),m=(0,e.useMemo)(()=>tE(g,r),[r]),y=a??{radius:0},$="box-shadow"===p,v=(0,e.useRef)(null);null===v.current&&(v.current=K(y));let S=f.style,R=o?function(t){let r=e.Children.toArray(t)[0];if((0,e.isValidElement)(r))return r.props.style}(i):void 0,w=tN(S)||tN(R),x={borderRadius:v.current,...S},[A,k]=(0,e.useState)(void 0),L=(0,e.useCallback)(t=>k(t),[]),M={innerBorder:l,outerBorder:s,middleBorder:d,innerShadow:u,shadow:$?void 0:c},E=tS(M),B=$?c??A:void 0,C=(h??!0)||E||void 0!==B;tL(g,y,{wrapperRef:C?b:void 0,effects:E?M:void 0,autoEffects:h,skipShadowHandle:$,onExtractedShadow:$?L:void 0,fallbackBorderRadius:w?void 0:v.current??void 0});let N=o?(0,e.createElement)(tB,{...f,style:x,ref:m},i):(0,e.createElement)(n??"div",{...f,style:x,ref:m},i);if(!C)return N;let F=null;if($&&void 0!==B){let t=function(t){let e=Array.isArray(t)?t:[t],r=[];for(let t of e){if(t.opacity<=0)continue;let{offsetX:e,offsetY:n,blur:o,spread:i,color:a,opacity:l}=t,s=`${e}px ${n}px ${o}px ${i}px`,d=function(t){if(!/^#?[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(t))return null;let e=t.replace("#",""),r=3===e.length?e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e;return{r:parseInt(r.substring(0,2),16),g:parseInt(r.substring(2,4),16),b:parseInt(r.substring(4,6),16)}}(a),u=d?`rgba(${d.r},${d.g},${d.b},${l})`:l<1?`color-mix(in srgb, ${a} ${100*l}%, transparent)`:a;r.push(`${s} ${u}`)}return r.join(", ")}(B);if(""!==t){let r={position:"absolute",inset:0,borderRadius:K(y),boxShadow:t,pointerEvents:"none",zIndex:-1};F=(0,e.createElement)("div",{"aria-hidden":!0,"data-slot":"smooth-corners-box-shadow",style:r})}}return(0,e.createElement)("div",{ref:b,style:{position:"relative",...F?{isolation:"isolate"}:{}}},F,N)}),t.s(["useMergedRefs",0,tP,"useSquircle",0,function(t={}){let{ref:r,radius:n,smoothing:o=.6,autoEffects:i=!1,effects:a,wrapperRef:l}=t,s=(0,e.useRef)(null),[d,u]=(0,e.useState)(null),[c,h]=(0,e.useState)(0),p=tP(r,s,(0,e.useCallback)(t=>u(t),[]));return(0,e.useLayoutEffect)(()=>{if(null!=n||!d)return;let t=()=>{let t=parseFloat(getComputedStyle(d).borderTopLeftRadius)||0;h(e=>e===t?e:t)};t();let e=new MutationObserver(t);e.observe(d,{attributes:!0,attributeFilter:["style","class"]});let r=tf(d,t);return window.addEventListener("resize",t),()=>{e.disconnect(),r(),window.removeEventListener("resize",t)}},[d,n]),tL(s,{radius:n??c,smoothing:o},{autoEffects:i,effects:a,wrapperRef:l}),p}],838107)},577211,t=>{"use strict";var e=t.i(843476),r=t.i(271645),n=t.i(178534),o=t.i(817854);let i=(0,r.forwardRef)(({className:t,style:r,...n},i)=>(0,e.jsx)("span",{ref:i,"aria-hidden":"true","data-murex-squircle-shadow-probe":"",className:(0,o.cn)("pointer-events-none absolute",t),...n,style:{...r,display:"block",height:0,visibility:"hidden",width:0}}));i.displayName="SquircleShadowProbe",t.s(["SquircleShadowProbe",0,i,"useSquircleShadowEffects",0,function(t){let[e,o]=(0,r.useState)(null),[i,a]=(0,r.useState)(),l=(0,r.useRef)(""),s=(0,r.useCallback)(t=>o(t),[]);return(0,r.useLayoutEffect)(()=>{if(!e){l.current="",a(t=>null==t?t:void 0);return}let t=()=>{let t=(0,n.parseBoxShadow)(getComputedStyle(e).boxShadow),r=t.shadow||t.innerShadow?t:void 0,o=JSON.stringify(r??null);o!==l.current&&(l.current=o,a(r))},r=0,o=()=>{0===r&&(r=requestAnimationFrame(()=>{r=0,t()}))};t();let i=new MutationObserver(o);for(let t=e;t;t=t.parentElement)i.observe(t,{attributes:!0,attributeFilter:["class","style"]});return window.addEventListener("resize",o),()=>{i.disconnect(),window.removeEventListener("resize",o),0!==r&&cancelAnimationFrame(r)}},[e,t]),{effects:i,probeRef:s}}])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.