File "ScopeEnum-1.0.13-d05c4b00.js"

Full Path: /home/vantageo/public_html/wp-admin/.wp-cli/wp-content/plugins/wp-data-access/assets/dist/ScopeEnum-1.0.13-d05c4b00.js
File size: 20.43 KB
MIME-type: text/plain
Charset: utf-8

import{q as pe,L as St,d as at,o as Lt,K as Ge,Y as Je,_ as c,Z as Ce,g as wt,e as Pt,c as oe,s as J,z as B,Q as ot,R as nt,J as lt,$ as dt,a as $t,b as Ct}from"./iconBase-1.0.13-98e06aa9.js";import{r as S,j as P}from"./main-1.0.13.js";import{ac as Tt,aa as Te,ad as _t,N as Y}from"./main-1.0.13-4cbe632d.js";import{a as Rt}from"./Close-1.0.13-b137ce2f.js";function At(e,t,a=(l,d)=>l===d){return e.length===t.length&&e.every((l,d)=>a(l,t[d]))}const It={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},zt=It,Mt=2;function pt(e,t){return e-t}function st(e,t){var a;const{index:l}=(a=e.reduce((d,L,$)=>{const b=Math.abs(t-L);return d===null||b<d.distance||b===d.distance?{distance:b,index:$}:d},null))!=null?a:{};return l}function Le(e,t){if(t.current!==void 0&&e.changedTouches){const a=e;for(let l=0;l<a.changedTouches.length;l+=1){const d=a.changedTouches[l];if(d.identifier===t.current)return{x:d.clientX,y:d.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function _e(e,t,a){return(e-t)*100/(a-t)}function Nt(e,t,a){return(a-t)*e+t}function Et(e){if(Math.abs(e)<1){const a=e.toExponential().split("e-"),l=a[0].split(".")[1];return(l?l.length:0)+parseInt(a[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Vt(e,t,a){const l=Math.round((e-a)/t)*t+a;return Number(l.toFixed(Et(t)))}function it({values:e,newValue:t,index:a}){const l=e.slice();return l[a]=t,l.sort(pt)}function we({sliderRef:e,activeIndex:t,setActive:a}){var l,d;const L=Te(e.current);if(!((l=e.current)!=null&&l.contains(L.activeElement))||Number(L==null||(d=L.activeElement)==null?void 0:d.getAttribute("data-index"))!==t){var $;($=e.current)==null||$.querySelector(`[type="range"][data-index="${t}"]`).focus()}a&&a(t)}function Pe(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?At(e,t):!1}const Ft={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Ht=e=>e;let $e;function ut(){return $e===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?$e=CSS.supports("touch-action","none"):$e=!0),$e}function Ot(e){const{"aria-labelledby":t,defaultValue:a,disabled:l=!1,disableSwap:d=!1,isRtl:L=!1,marks:$=!1,max:b=100,min:f=0,name:U,onChange:ne,onChangeCommitted:K,orientation:Q="horizontal",rootRef:fe,scale:le=Ht,step:M=1,shiftStep:se=10,tabIndex:me,value:be}=e,V=S.useRef(),[W,O]=S.useState(-1),[ve,j]=S.useState(-1),[ie,ue]=S.useState(!1),X=S.useRef(0),[_,Z]=Tt({controlled:be,default:a??f,name:"Slider"}),N=ne&&((r,o,n)=>{const i=r.nativeEvent||r,u=new i.constructor(i.type,i);Object.defineProperty(u,"target",{writable:!0,value:{value:o,name:U}}),ne(u,o,n)}),q=Array.isArray(_);let y=q?_.slice().sort(pt):[_];y=y.map(r=>r==null?f:pe(r,f,b));const ce=$===!0&&M!==null?[...Array(Math.floor((b-f)/M)+1)].map((r,o)=>({value:f+M*o})):$||[],g=ce.map(r=>r.value),{isFocusVisibleRef:R,onBlur:Re,onFocus:Ae,ref:Ie}=St(),[he,G]=S.useState(-1),w=S.useRef(),ge=at(Ie,w),ye=at(fe,ge),ee=r=>o=>{var n;const i=Number(o.currentTarget.getAttribute("data-index"));Ae(o),R.current===!0&&G(i),j(i),r==null||(n=r.onFocus)==null||n.call(r,o)},te=r=>o=>{var n;Re(o),R.current===!1&&G(-1),j(-1),r==null||(n=r.onBlur)==null||n.call(r,o)},ke=(r,o)=>{const n=Number(r.currentTarget.getAttribute("data-index")),i=y[n],u=g.indexOf(i);let s=o;if(ce&&M==null){const z=g[g.length-1];s>z?s=z:s<g[0]?s=g[0]:s=s<i?g[u-1]:g[u+1]}if(s=pe(s,f,b),q){d&&(s=pe(s,y[n-1]||-1/0,y[n+1]||1/0));const z=s;s=it({values:y,newValue:s,index:n});let E=n;d||(E=s.indexOf(z)),we({sliderRef:w,activeIndex:E})}Z(s),G(n),N&&!Pe(s,_)&&N(r,s,n),K&&K(r,s)},ze=r=>o=>{var n;if(M!==null){const i=Number(o.currentTarget.getAttribute("data-index")),u=y[i];let s=null;(o.key==="ArrowLeft"||o.key==="ArrowDown")&&o.shiftKey||o.key==="PageDown"?s=Math.max(u-se,f):((o.key==="ArrowRight"||o.key==="ArrowUp")&&o.shiftKey||o.key==="PageUp")&&(s=Math.min(u+se,b)),s!==null&&(ke(o,s),o.preventDefault())}r==null||(n=r.onKeyDown)==null||n.call(r,o)};Lt(()=>{if(l&&w.current.contains(document.activeElement)){var r;(r=document.activeElement)==null||r.blur()}},[l]),l&&W!==-1&&O(-1),l&&he!==-1&&G(-1);const Me=r=>o=>{var n;(n=r.onChange)==null||n.call(r,o),ke(o,o.target.valueAsNumber)},xe=S.useRef();let F=Q;L&&Q==="horizontal"&&(F+="-reverse");const v=({finger:r,move:o=!1})=>{const{current:n}=w,{width:i,height:u,bottom:s,left:z}=n.getBoundingClientRect();let E;F.indexOf("vertical")===0?E=(s-r.y)/u:E=(r.x-z)/i,F.indexOf("-reverse")!==-1&&(E=1-E);let p;if(p=Nt(E,f,b),M)p=Vt(p,M,f);else{const ae=st(g,p);p=g[ae]}p=pe(p,f,b);let C=0;if(q){o?C=xe.current:C=st(y,p),d&&(p=pe(p,y[C-1]||-1/0,y[C+1]||1/0));const ae=p;p=it({values:y,newValue:p,index:C}),d&&o||(C=p.indexOf(ae),xe.current=C)}return{newValue:p,activeIndex:C}},m=Ge(r=>{const o=Le(r,V);if(!o)return;if(X.current+=1,r.type==="mousemove"&&r.buttons===0){A(r);return}const{newValue:n,activeIndex:i}=v({finger:o,move:!0});we({sliderRef:w,activeIndex:i,setActive:O}),Z(n),!ie&&X.current>Mt&&ue(!0),N&&!Pe(n,_)&&N(r,n,i)}),A=Ge(r=>{const o=Le(r,V);if(ue(!1),!o)return;const{newValue:n}=v({finger:o,move:!0});O(-1),r.type==="touchend"&&j(-1),K&&K(r,n),V.current=void 0,I()}),D=Ge(r=>{if(l)return;ut()||r.preventDefault();const o=r.changedTouches[0];o!=null&&(V.current=o.identifier);const n=Le(r,V);if(n!==!1){const{newValue:u,activeIndex:s}=v({finger:n});we({sliderRef:w,activeIndex:s,setActive:O}),Z(u),N&&!Pe(u,_)&&N(r,u,s)}X.current=0;const i=Te(w.current);i.addEventListener("touchmove",m,{passive:!0}),i.addEventListener("touchend",A,{passive:!0})}),I=S.useCallback(()=>{const r=Te(w.current);r.removeEventListener("mousemove",m),r.removeEventListener("mouseup",A),r.removeEventListener("touchmove",m),r.removeEventListener("touchend",A)},[A,m]);S.useEffect(()=>{const{current:r}=w;return r.addEventListener("touchstart",D,{passive:ut()}),()=>{r.removeEventListener("touchstart",D),I()}},[I,D]),S.useEffect(()=>{l&&I()},[l,I]);const Ne=r=>o=>{var n;if((n=r.onMouseDown)==null||n.call(r,o),l||o.defaultPrevented||o.button!==0)return;o.preventDefault();const i=Le(o,V);if(i!==!1){const{newValue:s,activeIndex:z}=v({finger:i});we({sliderRef:w,activeIndex:z,setActive:O}),Z(s),N&&!Pe(s,_)&&N(o,s,z)}X.current=0;const u=Te(w.current);u.addEventListener("mousemove",m,{passive:!0}),u.addEventListener("mouseup",A)},x=_e(q?y[0]:f,f,b),re=_e(y[y.length-1],f,b)-x,Ee=(r={})=>{const o=Je(r),n={onMouseDown:Ne(o||{})},i=c({},o,n);return c({},r,{ref:ye},i)},Ve=r=>o=>{var n;(n=r.onMouseOver)==null||n.call(r,o);const i=Number(o.currentTarget.getAttribute("data-index"));j(i)},Fe=r=>o=>{var n;(n=r.onMouseLeave)==null||n.call(r,o),j(-1)};return{active:W,axis:F,axisProps:Ft,dragging:ie,focusedThumbIndex:he,getHiddenInputProps:(r={})=>{var o;const n=Je(r),i={onChange:Me(n||{}),onFocus:ee(n||{}),onBlur:te(n||{}),onKeyDown:ze(n||{})},u=c({},n,i);return c({tabIndex:me,"aria-labelledby":t,"aria-orientation":Q,"aria-valuemax":le(b),"aria-valuemin":le(f),name:U,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(o=e.step)!=null?o:void 0,disabled:l},r,u,{style:c({},zt,{direction:L?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ee,getThumbProps:(r={})=>{const o=Je(r),n={onMouseOver:Ve(o||{}),onMouseLeave:Fe(o||{})};return c({},r,o,n)},marks:ce,open:ve,range:q,rootRef:ye,trackLeap:re,trackOffset:x,values:y,getThumbStyle:r=>({pointerEvents:W!==-1&&W!==r?"none":void 0})}}const jt=e=>!e||!Ce(e),Dt=jt;function Yt(e){return Pt("MuiSlider",e)}const Bt=wt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),T=Bt,Ut=e=>{const{open:t}=e;return{offset:oe(t&&T.valueLabelOpen),circle:T.valueLabelCircle,label:T.valueLabelLabel}};function Kt(e){const{children:t,className:a,value:l}=e,d=Ut(e);return t?S.cloneElement(t,{className:oe(t.props.className)},P.jsxs(S.Fragment,{children:[t.props.children,P.jsx("span",{className:oe(d.offset,a),"aria-hidden":!0,children:P.jsx("span",{className:d.circle,children:P.jsx("span",{className:d.label,children:l})})})]})):null}const Wt=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"],Xt=Rt();function ct(e){return e}const qt=J("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`color${B(a.color)}`],a.size!=="medium"&&t[`size${B(a.size)}`],a.marked&&t.marked,a.orientation==="vertical"&&t.vertical,a.track==="inverted"&&t.trackInverted,a.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${T.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${T.dragging}`]:{[`& .${T.thumb}, & .${T.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{color:(e.vars||e).palette[a].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),Gt=J("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Jt=J("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a,track:"inverted"},style:c({},e.vars?{backgroundColor:e.vars.palette.Slider[`${a}Track`],borderColor:e.vars.palette.Slider[`${a}Track`]}:c({backgroundColor:ot(e.palette[a].main,.62),borderColor:ot(e.palette[a].main,.62)},e.applyStyles("dark",{backgroundColor:nt(e.palette[a].main,.5)}),e.applyStyles("dark",{borderColor:nt(e.palette[a].main,.5)})))}))]}}),Qt=J("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.thumb,t[`thumbColor${B(a.color)}`],a.size!=="medium"&&t[`thumbSize${B(a.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${T.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{[`&:hover, &.${T.focusVisible}`]:c({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${lt(e.palette[a].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${T.active}`]:c({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[a].mainChannel} / 0.16)}`}:{boxShadow:`0px 0px 0px 14px ${lt(e.palette[a].main,.16)}`})}})),{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}}]}}),Zt=J(Kt,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>c({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),er=J("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>dt(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:a}=e;return[t.mark,a&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),tr=J("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>dt(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>c({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),rr=e=>{const{disabled:t,dragging:a,marked:l,orientation:d,track:L,classes:$,color:b,size:f}=e,U={root:["root",t&&"disabled",a&&"dragging",l&&"marked",d==="vertical"&&"vertical",L==="inverted"&&"trackInverted",L===!1&&"trackFalse",b&&`color${B(b)}`,f&&`size${B(f)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",f&&`thumbSize${B(f)}`,b&&`thumbColor${B(b)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ct(U,Yt,$)},ar=({children:e})=>e,or=S.forwardRef(function(t,a){var l,d,L,$,b,f,U,ne,K,Q,fe,le,M,se,me,be,V,W,O,ve,j,ie,ue,X;const _=Xt({props:t,name:"MuiSlider"}),Z=_t(),{"aria-label":N,"aria-valuetext":q,"aria-labelledby":y,component:ce="span",components:g={},componentsProps:R={},color:Re="primary",classes:Ae,className:Ie,disableSwap:he=!1,disabled:G=!1,getAriaLabel:w,getAriaValueText:ge,marks:ye=!1,max:ee=100,min:te=0,orientation:ke="horizontal",shiftStep:ze=10,size:Me="medium",step:xe=1,scale:F=ct,slotProps:v,slots:m,track:A="normal",valueLabelDisplay:D="off",valueLabelFormat:I=ct}=_,Ne=$t(_,Wt),x=c({},_,{isRtl:Z,max:ee,min:te,classes:Ae,disabled:G,disableSwap:he,orientation:ke,marks:ye,color:Re,size:Me,step:xe,shiftStep:ze,scale:F,track:A,valueLabelDisplay:D,valueLabelFormat:I}),{axisProps:re,getRootProps:Ee,getHiddenInputProps:Ve,getThumbProps:Fe,open:Qe,active:He,axis:de,focusedThumbIndex:r,range:o,dragging:n,marks:i,values:u,trackOffset:s,trackLeap:z,getThumbStyle:E}=Ot(c({},x,{rootRef:a}));x.marked=i.length>0&&i.some(h=>h.label),x.dragging=n,x.focusedThumbIndex=r;const p=rr(x),C=(l=(d=m==null?void 0:m.root)!=null?d:g.Root)!=null?l:qt,ae=(L=($=m==null?void 0:m.rail)!=null?$:g.Rail)!=null?L:Gt,Ze=(b=(f=m==null?void 0:m.track)!=null?f:g.Track)!=null?b:Jt,et=(U=(ne=m==null?void 0:m.thumb)!=null?ne:g.Thumb)!=null?U:Qt,tt=(K=(Q=m==null?void 0:m.valueLabel)!=null?Q:g.ValueLabel)!=null?K:Zt,Oe=(fe=(le=m==null?void 0:m.mark)!=null?le:g.Mark)!=null?fe:er,je=(M=(se=m==null?void 0:m.markLabel)!=null?se:g.MarkLabel)!=null?M:tr,rt=(me=(be=m==null?void 0:m.input)!=null?be:g.Input)!=null?me:"input",De=(V=v==null?void 0:v.root)!=null?V:R.root,ft=(W=v==null?void 0:v.rail)!=null?W:R.rail,Ye=(O=v==null?void 0:v.track)!=null?O:R.track,Be=(ve=v==null?void 0:v.thumb)!=null?ve:R.thumb,Ue=(j=v==null?void 0:v.valueLabel)!=null?j:R.valueLabel,mt=(ie=v==null?void 0:v.mark)!=null?ie:R.mark,bt=(ue=v==null?void 0:v.markLabel)!=null?ue:R.markLabel,vt=(X=v==null?void 0:v.input)!=null?X:R.input,ht=Y({elementType:C,getSlotProps:Ee,externalSlotProps:De,externalForwardedProps:Ne,additionalProps:c({},Dt(C)&&{as:ce}),ownerState:c({},x,De==null?void 0:De.ownerState),className:[p.root,Ie]}),gt=Y({elementType:ae,externalSlotProps:ft,ownerState:x,className:p.rail}),yt=Y({elementType:Ze,externalSlotProps:Ye,additionalProps:{style:c({},re[de].offset(s),re[de].leap(z))},ownerState:c({},x,Ye==null?void 0:Ye.ownerState),className:p.track}),Ke=Y({elementType:et,getSlotProps:Fe,externalSlotProps:Be,ownerState:c({},x,Be==null?void 0:Be.ownerState),className:p.thumb}),kt=Y({elementType:tt,externalSlotProps:Ue,ownerState:c({},x,Ue==null?void 0:Ue.ownerState),className:p.valueLabel}),We=Y({elementType:Oe,externalSlotProps:mt,ownerState:x,className:p.mark}),Xe=Y({elementType:je,externalSlotProps:bt,ownerState:x,className:p.markLabel}),xt=Y({elementType:rt,getSlotProps:Ve,externalSlotProps:vt,ownerState:x});return P.jsxs(C,c({},ht,{children:[P.jsx(ae,c({},gt)),P.jsx(Ze,c({},yt)),i.filter(h=>h.value>=te&&h.value<=ee).map((h,k)=>{const qe=_e(h.value,te,ee),Se=re[de].offset(qe);let H;return A===!1?H=u.indexOf(h.value)!==-1:H=A==="normal"&&(o?h.value>=u[0]&&h.value<=u[u.length-1]:h.value<=u[0])||A==="inverted"&&(o?h.value<=u[0]||h.value>=u[u.length-1]:h.value>=u[0]),P.jsxs(S.Fragment,{children:[P.jsx(Oe,c({"data-index":k},We,!Ce(Oe)&&{markActive:H},{style:c({},Se,We.style),className:oe(We.className,H&&p.markActive)})),h.label!=null?P.jsx(je,c({"aria-hidden":!0,"data-index":k},Xe,!Ce(je)&&{markLabelActive:H},{style:c({},Se,Xe.style),className:oe(p.markLabel,Xe.className,H&&p.markLabelActive),children:h.label})):null]},k)}),u.map((h,k)=>{const qe=_e(h,te,ee),Se=re[de].offset(qe),H=D==="off"?ar:tt;return P.jsx(H,c({},!Ce(H)&&{valueLabelFormat:I,valueLabelDisplay:D,value:typeof I=="function"?I(F(h),k):I,index:k,open:Qe===k||He===k||D==="on",disabled:G},kt,{children:P.jsx(et,c({"data-index":k},Ke,{className:oe(p.thumb,Ke.className,He===k&&p.active,r===k&&p.focusVisible),style:c({},Se,E(k),Ke.style),children:P.jsx(rt,c({"data-index":k,"aria-label":w?w(k):N,"aria-valuenow":F(h),"aria-labelledby":y,"aria-valuetext":ge?ge(F(h),k):q,value:u[k]},xt))}))}),k)})]}))}),cr=or;var nr=(e=>(e.GLOBAL="global",e.USER="user",e))(nr||{});export{nr as S,cr as a};