(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[246],{4981:(e,t,r)=>{"use strict";var o=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))c.call(e,s)||s===r||n(e,s,{get:()=>t[s],enumerable:!(o=i(t,s))||o.enumerable});return e},u={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(u,{composeRefs:()=>h,useComposedRefs:()=>f}),e.exports=l(n({},"__esModule",{value:!0}),u);var p=((e,t,r)=>(r=null!=e?o(s(e)):{},l(!t&&e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)))(r(2115));function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function h(...e){return t=>{let r=!1,o=e.map(e=>{let o=d(e,t);return r||"function"!=typeof o||(r=!0),o});if(r)return()=>{for(let t=0;t{"use strict";var o=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))c.call(e,s)||s===r||n(e,s,{get:()=>t[s],enumerable:!(o=i(t,s))||o.enumerable});return e},u={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(u,{Root:()=>y,Slot:()=>y,Slottable:()=>C,createSlot:()=>g,createSlottable:()=>S}),e.exports=l(n({},"__esModule",{value:!0}),u);var p=((e,t,r)=>(r=null!=e?o(s(e)):{},l(!t&&e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)))(r(2115)),d=r(4981),h=r(5155),f=Symbol.for("react.lazy"),m=p[" use ".trim().toString()];function v(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===f&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function g(e){let t=function(e){let t=p.forwardRef((e,t)=>{let{children:r,...o}=e;if(v(r)&&"function"==typeof m&&(r=m(r._payload)),p.isValidElement(r)){var n;let e,i;let a=(n=r,(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref),s=function(e,t){let r={...t};for(let o in t){let n=e[o],i=t[o];/^on[A-Z]/.test(o)?n&&i?r[o]=(...e)=>{let t=i(...e);return n(...e),t}:n&&(r[o]=n):"style"===o?r[o]={...n,...i}:"className"===o&&(r[o]=[n,i].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props);return r.type!==p.Fragment&&(s.ref=t?(0,d.composeRefs)(t,a):a),p.cloneElement(r,s)}return p.Children.count(r)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=p.forwardRef((e,r)=>{let{children:o,...n}=e;v(o)&&"function"==typeof m&&(o=m(o._payload));let i=p.Children.toArray(o),a=i.find(b);if(a){let e=a.props.children,o=i.map(t=>t!==a?t:p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null);return(0,h.jsx)(t,{...n,ref:r,children:p.isValidElement(e)?p.cloneElement(e,void 0,o):null})}return(0,h.jsx)(t,{...n,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}var y=g("Slot"),w=Symbol("radix.slottable");function S(e){let t=({children:e})=>(0,h.jsx)(h.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=w,t}var C=S("Slottable");function b(e){return p.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===w}},7508:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]])},8867:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},1719:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},1902:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},6889:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},738:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},2598:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},9351:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]])},6744:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]])},8686:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},7223:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},3580:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]])},3831:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]])},3817:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},6764:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},865:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},5686:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},1466:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},767:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let o=(0,r(7401).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},2912:(e,t,r)=>{e.exports=r(6737)},2932:e=>{"use strict";var t=!!("undefined"!=typeof window&&window.document&&window.document.createElement),r={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=r},499:e=>{var t,r,o,n,i,a,s,c,l,u,p,d,h,f,m,v=!1;function g(){if(!v){v=!0;var e=navigator.userAgent,g=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),f=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),p=!!/Win64/.exec(e),g){(t=g[1]?parseFloat(g[1]):g[5]?parseFloat(g[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var w=/(?:Trident\/(\d+.\d+))/.exec(e);a=w?parseFloat(w[1])+4:t,r=g[2]?parseFloat(g[2]):NaN,o=g[3]?parseFloat(g[3]):NaN,i=(n=g[4]?parseFloat(g[4]):NaN)&&(g=/(?:Chrome\/(\d+\.\d+))/.exec(e))&&g[1]?parseFloat(g[1]):NaN}else t=r=o=i=n=NaN;if(y){if(y[1]){var S=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!S||parseFloat(S[1].replace("_","."))}else s=!1;c=!!y[2],l=!!y[3]}else s=c=l=!1}}var y={ie:function(){return g()||t},ieCompatibilityMode:function(){return g()||a>t},ie64:function(){return y.ie()&&p},firefox:function(){return g()||r},opera:function(){return g()||o},webkit:function(){return g()||n},safari:function(){return y.webkit()},chrome:function(){return g()||i},windows:function(){return g()||c},osx:function(){return g()||s},linux:function(){return g()||l},iphone:function(){return g()||d},mobile:function(){return g()||d||h||u||m},nativeApp:function(){return g()||f},android:function(){return g()||u},ipad:function(){return g()||h}};e.exports=y},9641:(e,t,r)=>{"use strict";var o,n=r(2932);n.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!n.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,i=r in document;if(!i){var a=document.createElement("div");a.setAttribute(r,"return;"),i="function"==typeof a[r]}return!i&&o&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},6737:(e,t,r)=>{"use strict";var o=r(499),n=r(9641);function i(e){var t=0,r=0,o=0,n=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),o=10*t,n=10*r,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||n)&&e.deltaMode&&(1==e.deltaMode?(o*=40,n*=40):(o*=800,n*=800)),o&&!t&&(t=o<1?-1:1),n&&!r&&(r=n<1?-1:1),{spinX:t,spinY:r,pixelX:o,pixelY:n}}i.getEventType=function(){return o.firefox()?"DOMMouseScroll":n("wheel")?"wheel":"mousewheel"},e.exports=i},1786:(e,t,r)=>{"use strict";function o(e,[t,r]){return Math.min(r,Math.max(t,e))}r.d(t,{q:()=>o})},6352:(e,t,r)=>{"use strict";r.d(t,{C1:()=>x,bL:()=>C});var o=r(2115),n=r(8068),i=r(8166),a=r(3610),s=r(1488),c=r(858),l=r(7510),u=r(7028),p=r(9997),d=r(5155),h="Checkbox",[f,m]=(0,i.A)(h),[v,g]=f(h);function y(e){let{__scopeCheckbox:t,checked:r,children:n,defaultChecked:i,disabled:a,form:c,name:l,onCheckedChange:u,required:p,value:f="on",internal_do_not_use_render:m}=e,[g,y]=(0,s.i)({prop:r,defaultProp:null!=i&&i,onChange:u,caller:h}),[w,S]=o.useState(null),[C,b]=o.useState(null),x=o.useRef(!1),R=!w||!!c||!!w.closest("form"),z={checked:g,disabled:a,setChecked:y,control:w,setControl:S,name:l,form:c,value:f,hasConsumerStoppedPropagationRef:x,required:p,defaultChecked:!M(i)&&i,isFormControl:R,bubbleInput:C,setBubbleInput:b};return(0,d.jsx)(v,{scope:t,...z,children:"function"==typeof m?m(z):n})}var w="CheckboxTrigger",S=o.forwardRef((e,t)=>{let{__scopeCheckbox:r,onKeyDown:i,onClick:s,...c}=e,{control:l,value:u,disabled:h,checked:f,required:m,setControl:v,setChecked:y,hasConsumerStoppedPropagationRef:S,isFormControl:C,bubbleInput:b}=g(w,r),x=(0,n.s)(t,v),R=o.useRef(f);return o.useEffect(()=>{let e=null==l?void 0:l.form;if(e){let t=()=>y(R.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[l,y]),(0,d.jsx)(p.sG.button,{type:"button",role:"checkbox","aria-checked":M(f)?"mixed":f,"aria-required":m,"data-state":P(f),"data-disabled":h?"":void 0,disabled:h,value:u,...c,ref:x,onKeyDown:(0,a.mK)(i,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,a.mK)(s,e=>{y(e=>!!M(e)||!e),b&&C&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())})})});S.displayName=w;var C=o.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:o,checked:n,defaultChecked:i,required:a,disabled:s,value:c,onCheckedChange:l,form:u,...p}=e;return(0,d.jsx)(y,{__scopeCheckbox:r,checked:n,defaultChecked:i,disabled:s,required:a,onCheckedChange:l,name:o,form:u,value:c,internal_do_not_use_render:e=>{let{isFormControl:o}=e;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(S,{...p,ref:t,__scopeCheckbox:r}),o&&(0,d.jsx)(z,{__scopeCheckbox:r})]})}})});C.displayName=h;var b="CheckboxIndicator",x=o.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:o,...n}=e,i=g(b,r);return(0,d.jsx)(u.C,{present:o||M(i.checked)||!0===i.checked,children:(0,d.jsx)(p.sG.span,{"data-state":P(i.checked),"data-disabled":i.disabled?"":void 0,...n,ref:t,style:{pointerEvents:"none",...e.style}})})});x.displayName=b;var R="CheckboxBubbleInput",z=o.forwardRef((e,t)=>{let{__scopeCheckbox:r,...i}=e,{control:a,hasConsumerStoppedPropagationRef:s,checked:u,defaultChecked:h,required:f,disabled:m,name:v,value:y,form:w,bubbleInput:S,setBubbleInput:C}=g(R,r),b=(0,n.s)(t,C),x=(0,c.Z)(u),z=(0,l.X)(a);o.useEffect(()=>{if(!S)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!s.current;if(x!==u&&e){let r=new Event("click",{bubbles:t});S.indeterminate=M(u),e.call(S,!M(u)&&u),S.dispatchEvent(r)}},[S,x,u,s]);let P=o.useRef(!M(u)&&u);return(0,d.jsx)(p.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=h?h:P.current,required:f,disabled:m,name:v,value:y,form:w,...i,tabIndex:-1,ref:b,style:{...i.style,...z,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function M(e){return"indeterminate"===e}function P(e){return M(e)?"indeterminate":e?"checked":"unchecked"}z.displayName=R},7028:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var o=r(2115),n=r(8068),i=r(6611),a=e=>{let{present:t,children:r}=e,a=function(e){var t,r;let[n,a]=o.useState(),c=o.useRef(null),l=o.useRef(e),u=o.useRef("none"),[p,d]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>{let o=r[e][t];return null!=o?o:e},t));return o.useEffect(()=>{let e=s(c.current);u.current="mounted"===p?e:"none"},[p]),(0,i.N)(()=>{let t=c.current,r=l.current;if(r!==e){let o=u.current,n=s(t);e?d("MOUNT"):"none"===n||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):r&&o!==n?d("ANIMATION_OUT"):d("UNMOUNT"),l.current=e}},[e,d]),(0,i.N)(()=>{if(n){var e;let t;let r=null!==(e=n.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=s(c.current).includes(CSS.escape(e.animationName));if(e.target===n&&o&&(d("ANIMATION_END"),!l.current)){let e=n.style.animationFillMode;n.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=e)})}},i=e=>{e.target===n&&(u.current=s(c.current))};return n.addEventListener("animationstart",i),n.addEventListener("animationcancel",o),n.addEventListener("animationend",o),()=>{r.clearTimeout(t),n.removeEventListener("animationstart",i),n.removeEventListener("animationcancel",o),n.removeEventListener("animationend",o)}}d("ANIMATION_END")},[n,d]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:o.useCallback(e=>{c.current=e?getComputedStyle(e):null,a(e)},[])}}(t),c="function"==typeof r?r({present:a.isPresent}):o.Children.only(r),l=(0,n.s)(a.ref,function(e){var t,r;let o=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,n=o&&"isReactWarning"in o&&o.isReactWarning;return n?e.ref:(n=(o=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in o&&o.isReactWarning)?e.props.ref:e.props.ref||e.ref}(c));return"function"==typeof r||a.isPresent?o.cloneElement(c,{ref:l}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},5900:(e,t,r)=>{"use strict";r.d(t,{CC:()=>Z,Q6:()=>K,bL:()=>H,zi:()=>V});var o=r(2115),n=r(1786),i=r(3610),a=r(8068),s=r(8166),c=r(1488),l=r(4256),u=r(858),p=r(7510),d=r(9997),h=r(1295),f=r(5155),m=["PageUp","PageDown"],v=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],g={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},y="Slider",[w,S,C]=(0,h.N)(y),[b,x]=(0,s.A)(y,[C]),[R,z]=b(y),M=o.forwardRef((e,t)=>{let{name:r,min:a=0,max:s=100,step:l=1,orientation:u="horizontal",disabled:p=!1,minStepsBetweenThumbs:d=0,defaultValue:h=[a],value:g,onValueChange:y=()=>{},onValueCommit:S=()=>{},inverted:C=!1,form:b,...x}=e,z=o.useRef(new Set),M=o.useRef(0),P="horizontal"===u?A:E,[D=[],O]=(0,c.i)({prop:g,defaultProp:h,onChange:e=>{var t;null===(t=[...z.current][M.current])||void 0===t||t.focus(),y(e)}}),k=o.useRef(D);function j(e,t){let{commit:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},o=(String(l).split(".")[1]||"").length,i=function(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}(Math.round((e-a)/l)*l+a,o),c=(0,n.q)(i,[a,s]);O(function(){var e,o;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=[...e];return o[r]=t,o.sort((e,t)=>e-t)}(n,c,t);if(e=i,!(!((o=d*l)>0)||Math.min(...e.slice(0,-1).map((t,r)=>e[r+1]-t))>=o))return n;{M.current=i.indexOf(c);let e=String(i)!==String(n);return e&&r&&S(i),e?i:n}})}return(0,f.jsx)(R,{scope:e.__scopeSlider,name:r,disabled:p,min:a,max:s,valueIndexToChangeRef:M,thumbs:z.current,values:D,orientation:u,form:b,children:(0,f.jsx)(w.Provider,{scope:e.__scopeSlider,children:(0,f.jsx)(w.Slot,{scope:e.__scopeSlider,children:(0,f.jsx)(P,{"aria-disabled":p,"data-disabled":p?"":void 0,...x,ref:t,onPointerDown:(0,i.mK)(x.onPointerDown,()=>{p||(k.current=D)}),min:a,max:s,inverted:C,onSlideStart:p?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t)),o=Math.min(...r);return r.indexOf(o)}(D,e);j(e,t)},onSlideMove:p?void 0:function(e){j(e,M.current)},onSlideEnd:p?void 0:function(){let e=k.current[M.current];D[M.current]!==e&&S(D)},onHomeKeyDown:()=>!p&&j(a,0,{commit:!0}),onEndKeyDown:()=>!p&&j(s,D.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:r}=e;if(!p){let e=m.includes(t.key)||t.shiftKey&&v.includes(t.key),o=M.current;j(D[o]+l*(e?10:1)*r,o,{commit:!0})}}})})})})});M.displayName=y;var[P,D]=b(y,{startEdge:"left",endEdge:"right",size:"width",direction:1}),A=o.forwardRef((e,t)=>{let{min:r,max:n,dir:i,inverted:s,onSlideStart:c,onSlideMove:u,onSlideEnd:p,onStepKeyDown:d,...h}=e,[m,v]=o.useState(null),y=(0,a.s)(t,e=>v(e)),w=o.useRef(void 0),S=(0,l.jH)(i),C="ltr"===S,b=C&&!s||!C&&s;function x(e){let t=w.current||m.getBoundingClientRect(),o=U([0,t.width],b?[r,n]:[n,r]);return w.current=t,o(e-t.left)}return(0,f.jsx)(P,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:(0,f.jsx)(O,{dir:S,"data-orientation":"horizontal",...h,ref:y,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=x(e.clientX);null==c||c(t)},onSlideMove:e=>{let t=x(e.clientX);null==u||u(t)},onSlideEnd:()=>{w.current=void 0,null==p||p()},onStepKeyDown:e=>{let t=g[b?"from-left":"from-right"].includes(e.key);null==d||d({event:e,direction:t?-1:1})}})})}),E=o.forwardRef((e,t)=>{let{min:r,max:n,inverted:i,onSlideStart:s,onSlideMove:c,onSlideEnd:l,onStepKeyDown:u,...p}=e,d=o.useRef(null),h=(0,a.s)(t,d),m=o.useRef(void 0),v=!i;function y(e){let t=m.current||d.current.getBoundingClientRect(),o=U([0,t.height],v?[n,r]:[r,n]);return m.current=t,o(e-t.top)}return(0,f.jsx)(P,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:(0,f.jsx)(O,{"data-orientation":"vertical",...p,ref:h,style:{...p.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=y(e.clientY);null==s||s(t)},onSlideMove:e=>{let t=y(e.clientY);null==c||c(t)},onSlideEnd:()=>{m.current=void 0,null==l||l()},onStepKeyDown:e=>{let t=g[v?"from-bottom":"from-top"].includes(e.key);null==u||u({event:e,direction:t?-1:1})}})})}),O=o.forwardRef((e,t)=>{let{__scopeSlider:r,onSlideStart:o,onSlideMove:n,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:c,onStepKeyDown:l,...u}=e,p=z(y,r);return(0,f.jsx)(d.sG.span,{...u,ref:t,onKeyDown:(0,i.mK)(e.onKeyDown,e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(c(e),e.preventDefault()):m.concat(v).includes(e.key)&&(l(e),e.preventDefault())}),onPointerDown:(0,i.mK)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),p.thumbs.has(t)?t.focus():o(e)}),onPointerMove:(0,i.mK)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&n(e)}),onPointerUp:(0,i.mK)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),k="SliderTrack",j=o.forwardRef((e,t)=>{let{__scopeSlider:r,...o}=e,n=z(k,r);return(0,f.jsx)(d.sG.span,{"data-disabled":n.disabled?"":void 0,"data-orientation":n.orientation,...o,ref:t})});j.displayName=k;var _="SliderRange",N=o.forwardRef((e,t)=>{let{__scopeSlider:r,...n}=e,i=z(_,r),s=D(_,r),c=o.useRef(null),l=(0,a.s)(t,c),u=i.values.length,p=i.values.map(e=>F(e,i.min,i.max)),h=u>1?Math.min(...p):0,m=100-Math.max(...p);return(0,f.jsx)(d.sG.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...n,ref:l,style:{...e.style,[s.startEdge]:h+"%",[s.endEdge]:m+"%"}})});N.displayName=_;var T="SliderThumb",L=o.forwardRef((e,t)=>{let r=S(e.__scopeSlider),[n,i]=o.useState(null),s=(0,a.s)(t,e=>i(e)),c=o.useMemo(()=>n?r().findIndex(e=>e.ref.current===n):-1,[r,n]);return(0,f.jsx)(W,{...e,ref:s,index:c})}),W=o.forwardRef((e,t)=>{let{__scopeSlider:r,index:n,name:s,...c}=e,l=z(T,r),u=D(T,r),[h,m]=o.useState(null),v=(0,a.s)(t,e=>m(e)),g=!h||l.form||!!h.closest("form"),y=(0,p.X)(h),S=l.values[n],C=void 0===S?0:F(S,l.min,l.max),b=function(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):2===t?["Minimum","Maximum"][e]:void 0}(n,l.values.length),x=null==y?void 0:y[u.size],R=x?function(e,t,r){let o=e/2,n=U([0,50],[0,o]);return(o-n(t)*r)*r}(x,C,u.direction):0;return o.useEffect(()=>{if(h)return l.thumbs.add(h),()=>{l.thumbs.delete(h)}},[h,l.thumbs]),(0,f.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[u.startEdge]:"calc(".concat(C,"% + ").concat(R,"px)")},children:[(0,f.jsx)(w.ItemSlot,{scope:e.__scopeSlider,children:(0,f.jsx)(d.sG.span,{role:"slider","aria-label":e["aria-label"]||b,"aria-valuemin":l.min,"aria-valuenow":S,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,tabIndex:l.disabled?void 0:0,...c,ref:v,style:void 0===S?{display:"none"}:e.style,onFocus:(0,i.mK)(e.onFocus,()=>{l.valueIndexToChangeRef.current=n})})}),g&&(0,f.jsx)(I,{name:null!=s?s:l.name?l.name+(l.values.length>1?"[]":""):void 0,form:l.form,value:S},n)]})});L.displayName=T;var I=o.forwardRef((e,t)=>{let{__scopeSlider:r,value:n,...i}=e,s=o.useRef(null),c=(0,a.s)(s,t),l=(0,u.Z)(n);return o.useEffect(()=>{let e=s.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(l!==n&&t){let r=new Event("input",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[l,n]),(0,f.jsx)(d.sG.input,{style:{display:"none"},...i,ref:c,defaultValue:n})});function F(e,t,r){return(0,n.q)(100/(r-t)*(e-t),[0,100])}function U(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(r-e[0])}}I.displayName="RadioBubbleInput";var H=M,Z=j,K=N,V=L},858:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var o=r(2115);function n(e){let t=o.useRef({value:e,previous:e});return o.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},9581:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>v});var o=r(6476),n=r(2115),i=r(2912);function a(e,t,r,o,n){void 0===n&&(n=0);var i=h(t.width,t.height,n),a=i.width,c=i.height;return{x:s(e.x,a,r.width,o),y:s(e.y,c,r.height,o)}}function s(e,t,r,o){var n=t*o/2-r/2;return f(e,-n,n)}function c(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function l(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function u(e,t){return Math.min(e,Math.max(0,t))}function p(e,t){return t}function d(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function h(e,t,r){var o=r*Math.PI/180;return{width:Math.abs(Math.cos(o)*e)+Math.abs(Math.sin(o)*t),height:Math.abs(Math.sin(o)*e)+Math.abs(Math.cos(o)*t)}}function f(e,t,r){return Math.min(Math.max(e,t),r)}function m(){for(var e=[],t=0;t0}).join(" ").trim()}var v=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.cropperRef=n.createRef(),r.imageRef=n.createRef(),r.videoRef=n.createRef(),r.containerPosition={x:0,y:0},r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.gestureZoomStart=0,r.gestureRotationStart=0,r.isTouching=!1,r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.currentDoc="undefined"!=typeof document?document:null,r.currentWindow="undefined"!=typeof window?window:null,r.resizeObserver=null,r.previousCropSize=null,r.isInitialized=!1,r.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},r.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&r.containerRef){var e=!0;r.resizeObserver=new window.ResizeObserver(function(t){if(e){e=!1;return}r.computeSizes()}),r.resizeObserver.observe(r.containerRef)}},r.preventZoomSafari=function(e){return e.preventDefault()},r.cleanEvents=function(){r.currentDoc&&(r.currentDoc.removeEventListener("mousemove",r.onMouseMove),r.currentDoc.removeEventListener("mouseup",r.onDragStopped),r.currentDoc.removeEventListener("touchmove",r.onTouchMove),r.currentDoc.removeEventListener("touchend",r.onDragStopped),r.currentDoc.removeEventListener("gesturechange",r.onGestureChange),r.currentDoc.removeEventListener("gestureend",r.onGestureEnd),r.currentDoc.removeEventListener("scroll",r.onScroll))},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){var e=r.computeSizes();e&&(r.previousCropSize=e,r.emitCropData(),r.setInitialCrop(e),r.isInitialized=!0),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(e){if(r.props.initialCroppedAreaPercentages){var t,o,n,i,a,s,c,l=(t=r.props.initialCroppedAreaPercentages,o=r.mediaSize,n=r.props.rotation,i=r.props.minZoom,a=r.props.maxZoom,s=h(o.width,o.height,n),{crop:{x:(c=f(e.width/s.width*(100/t.width),i,a))*s.width/2-e.width/2-s.width*c*(t.x/100),y:c*s.height/2-e.height/2-s.height*c*(t.y/100)},zoom:c}),u=l.crop,p=l.zoom;r.props.onCropChange(u),r.props.onZoomChange&&r.props.onZoomChange(p)}else if(r.props.initialCroppedAreaPixels){var d,m,v,g,y,w,S,C,b,x=(d=r.props.initialCroppedAreaPixels,m=r.mediaSize,v=r.props.rotation,g=r.props.minZoom,y=r.props.maxZoom,void 0===v&&(v=0),w=h(m.naturalWidth,m.naturalHeight,v),C=f((S=m.width>m.height?m.width/m.naturalWidth:m.height/m.naturalHeight,e.height>e.width?e.height/(d.height*S):e.width/(d.width*S)),g,y),b=e.height>e.width?e.height/d.height:e.width/d.width,{crop:{x:((w.width-d.width)/2-d.x)*b,y:((w.height-d.height)/2-d.y)*b},zoom:C}),u=x.crop,p=x.zoom;r.props.onCropChange(u),r.props.onZoomChange&&r.props.onZoomChange(p)}},r.computeSizes=function(){var e,t,n,i,a,s,c=r.imageRef.current||r.videoRef.current;if(c&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect(),r.saveContainerPosition();var l,u,p,d,f,m,v,g,y,w,S,C=r.containerRect.width/r.containerRect.height,b=(null===(e=r.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=r.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,x=(null===(n=r.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(i=r.videoRef.current)||void 0===i?void 0:i.videoHeight)||0,R=c.offsetWidthz?{width:r.containerRect.height*z,height:r.containerRect.height}:{width:r.containerRect.width,height:r.containerRect.width/z};break;case"horizontal-cover":M={width:r.containerRect.width,height:r.containerRect.width/z};break;case"vertical-cover":M={width:r.containerRect.height*z,height:r.containerRect.height}}else M={width:c.offsetWidth,height:c.offsetHeight};r.mediaSize=(0,o.Cl)((0,o.Cl)({},M),{naturalWidth:b,naturalHeight:x}),r.props.setMediaSize&&r.props.setMediaSize(r.mediaSize);var P=r.props.cropSize?r.props.cropSize:(l=r.mediaSize.width,u=r.mediaSize.height,p=r.containerRect.width,d=r.containerRect.height,f=r.props.aspect,void 0===(m=r.props.rotation)&&(m=0),g=(v=h(l,u,m)).width,y=v.height,(w=Math.min(g,p))>(S=Math.min(y,d))*f?{width:S*f,height:S}:{width:w,height:w/f});return((null===(a=r.state.cropSize)||void 0===a?void 0:a.height)!==P.height||(null===(s=r.state.cropSize)||void 0===s?void 0:s.width)!==P.width)&&r.props.onCropSizeChange&&r.props.onCropSizeChange(P),r.setState({cropSize:P},r.recomputeCropPosition),r.props.setCropSize&&r.props.setCropSize(P),P}},r.saveContainerPosition=function(){if(r.containerRef){var e=r.containerRef.getBoundingClientRect();r.containerPosition={x:e.left,y:e.top}}},r.onMouseDown=function(e){r.currentDoc&&(e.preventDefault(),r.currentDoc.addEventListener("mousemove",r.onMouseMove),r.currentDoc.addEventListener("mouseup",r.onDragStopped),r.saveContainerPosition(),r.onDragStart(t.getMousePoint(e)))},r.onMouseMove=function(e){return r.onDrag(t.getMousePoint(e))},r.onScroll=function(e){r.currentDoc&&(e.preventDefault(),r.saveContainerPosition())},r.onTouchStart=function(e){r.currentDoc&&(r.isTouching=!0,(!r.props.onTouchRequest||r.props.onTouchRequest(e))&&(r.currentDoc.addEventListener("touchmove",r.onTouchMove,{passive:!1}),r.currentDoc.addEventListener("touchend",r.onDragStopped),r.saveContainerPosition(),2===e.touches.length?r.onPinchStart(e):1===e.touches.length&&r.onDragStart(t.getTouchPoint(e.touches[0]))))},r.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?r.onPinchMove(e):1===e.touches.length&&r.onDrag(t.getTouchPoint(e.touches[0]))},r.onGestureStart=function(e){r.currentDoc&&(e.preventDefault(),r.currentDoc.addEventListener("gesturechange",r.onGestureChange),r.currentDoc.addEventListener("gestureend",r.onGestureEnd),r.gestureZoomStart=r.props.zoom,r.gestureRotationStart=r.props.rotation)},r.onGestureChange=function(e){if(e.preventDefault(),!r.isTouching){var o=t.getMousePoint(e),n=r.gestureZoomStart-1+e.scale;if(r.setNewZoom(n,o,{shouldUpdatePosition:!0}),r.props.onRotationChange){var i=r.gestureRotationStart+e.rotation;r.props.onRotationChange(i)}}},r.onGestureEnd=function(e){r.cleanEvents()},r.onDragStart=function(e){var t,n,i=e.x,a=e.y;r.dragStartPosition={x:i,y:a},r.dragStartCrop=(0,o.Cl)({},r.props.crop),null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t)},r.onDrag=function(e){var t=e.x,o=e.y;r.currentWindow&&(r.rafDragTimeout&&r.currentWindow.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=r.currentWindow.requestAnimationFrame(function(){if(r.state.cropSize&&void 0!==t&&void 0!==o){var e=t-r.dragStartPosition.x,n=o-r.dragStartPosition.y,i={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+n},s=r.props.restrictPosition?a(i,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):i;r.props.onCropChange(s)}}))},r.onDragStopped=function(){var e,t;r.isTouching=!1,r.cleanEvents(),r.emitCropData(),null===(t=(e=r.props).onInteractionEnd)||void 0===t||t.call(e)},r.onWheel=function(e){if(r.currentWindow&&(!r.props.onWheelRequest||r.props.onWheelRequest(e))){e.preventDefault();var o=t.getMousePoint(e),n=i(e).pixelY,a=r.props.zoom-n*r.props.zoomSpeed/200;r.setNewZoom(a,o,{shouldUpdatePosition:!0}),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},function(){var e,t;return null===(t=(e=r.props).onInteractionStart)||void 0===t?void 0:t.call(e)}),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=r.currentWindow.setTimeout(function(){return r.setState({hasWheelJustStarted:!1},function(){var e,t;return null===(t=(e=r.props).onInteractionEnd)||void 0===t?void 0:t.call(e)})},250)}},r.getPointOnContainer=function(e,t){var o=e.x,n=e.y;if(!r.containerRect)throw Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(o-t.x),y:r.containerRect.height/2-(n-t.y)}},r.getPointOnMedia=function(e){var t=e.x,o=e.y,n=r.props,i=n.crop,a=n.zoom;return{x:(t+i.x)/a,y:(o+i.y)/a}},r.setNewZoom=function(e,t,o){var n=(void 0===o?{}:o).shouldUpdatePosition;if(r.state.cropSize&&r.props.onZoomChange){var i=f(e,r.props.minZoom,r.props.maxZoom);if(void 0===n||n){var s=r.getPointOnContainer(t,r.containerPosition),c=r.getPointOnMedia(s),l={x:c.x*i-s.x,y:c.y*i-s.y},u=r.props.restrictPosition?a(l,r.mediaSize,r.state.cropSize,i,r.props.rotation):l;r.props.onCropChange(u)}r.props.onZoomChange(i)}},r.getCropData=function(){var e,t,n,i,s,c,l,d,f,m,v,g,y,w,S;return r.state.cropSize?(e=r.props.restrictPosition?a(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop,t=r.mediaSize,n=r.state.cropSize,i=r.getAspect(),s=r.props.zoom,c=r.props.rotation,l=r.props.restrictPosition,void 0===c&&(c=0),void 0===l&&(l=!0),d=l?u:p,f=h(t.width,t.height,c),m=h(t.naturalWidth,t.naturalHeight,c),v={x:d(100,((f.width-n.width/s)/2-e.x/s)/f.width*100),y:d(100,((f.height-n.height/s)/2-e.y/s)/f.height*100),width:d(100,n.width/f.width*100/s),height:d(100,n.height/f.height*100/s)},g=Math.round(d(m.width,v.width*m.width/100)),y=Math.round(d(m.height,v.height*m.height/100)),w=m.width>=m.height*i?{width:Math.round(y*i),height:y}:{width:g,height:Math.round(g/i)},S=(0,o.Cl)((0,o.Cl)({},w),{x:Math.round(d(m.width-w.width,v.x*m.width/100)),y:Math.round(d(m.height-w.height,v.y*m.height/100))}),{croppedAreaPercentages:v,croppedAreaPixels:S}):null},r.emitCropData=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,o),r.props.onCropAreaChange&&r.props.onCropAreaChange(t,o)}},r.emitCropAreaChange=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;r.props.onCropAreaChange&&r.props.onCropAreaChange(t,o)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var e,t,o=r.props.crop;if(r.isInitialized&&(null===(e=r.previousCropSize)||void 0===e?void 0:e.width)&&(null===(t=r.previousCropSize)||void 0===t?void 0:t.height)&&(Math.abs(r.previousCropSize.width-r.state.cropSize.width)>1e-6||Math.abs(r.previousCropSize.height-r.state.cropSize.height)>1e-6)){var n=r.state.cropSize.width/r.previousCropSize.width,i=r.state.cropSize.height/r.previousCropSize.height;o={x:r.props.crop.x*n,y:r.props.crop.y*i}}var s=r.props.restrictPosition?a(o,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):o;r.previousCropSize=r.state.cropSize,r.props.onCropChange(s),r.emitCropData()}},r.onKeyDown=function(e){var t,n,i=r.props,s=i.crop,c=i.onCropChange,l=i.keyboardStep,u=i.zoom,p=i.rotation,d=l;if(r.state.cropSize){e.shiftKey&&(d*=.2);var h=(0,o.Cl)({},s);switch(e.key){case"ArrowUp":h.y-=d,e.preventDefault();break;case"ArrowDown":h.y+=d,e.preventDefault();break;case"ArrowLeft":h.x-=d,e.preventDefault();break;case"ArrowRight":h.x+=d,e.preventDefault();break;default:return}r.props.restrictPosition&&(h=a(h,r.mediaSize,r.state.cropSize,u,p)),e.repeat||null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t),c(h)}},r.onKeyUp=function(e){var t,o;switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":e.preventDefault();break;default:return}r.emitCropData(),null===(o=(t=r.props).onInteractionEnd)||void 0===o||o.call(t)},r}return(0,o.C6)(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.height)||(null===(o=e.cropSize)||void 0===o?void 0:o.width)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.width)?this.computeSizes():((null===(i=e.crop)||void 0===i?void 0:i.x)!==(null===(a=this.props.crop)||void 0===a?void 0:a.x)||(null===(s=e.crop)||void 0===s?void 0:s.y)!==(null===(c=this.props.crop)||void 0===c?void 0:c.y))&&this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(l=this.videoRef.current)||void 0===l||l.load());var t,r,o,n,i,a,s,c,l,u=this.getObjectFit();u!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:u},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,r=e.aspect;return t?t.width/t.height:r},t.prototype.getObjectFit=function(){var e,t,r,o;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var n=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(r=this.imageRef.current)||void 0===r?void 0:r.naturalHeight)||(null===(o=this.videoRef.current)||void 0===o?void 0:o.videoHeight)||0){"use strict";r.d(t,{C6:()=>n,Cl:()=>i,Tt:()=>a,fX:()=>s});var o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,o=arguments.length;rt.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nt.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}function s(e,t,r){if(r||2==arguments.length)for(var o,n=0,i=t.length;n