From a8a3d4bc1dd2e5fee110b3ccfbaedbd8f69d831d Mon Sep 17 00:00:00 2001 From: tristen Date: Fri, 30 Sep 2022 12:29:23 -0400 Subject: [PATCH] Updates --- asset-manifest.json | 13 ++ index.html | 2 +- static/css/main.7d2db787.css | 2 + static/css/main.7d2db787.css.map | 1 + static/js/main.7d9899cf.js | 3 + static/js/main.7d9899cf.js.LICENSE.txt | 56 +++++++++ static/js/main.7d9899cf.js.map | 1 + underreact-assets/css/main-346c571a.chunk.css | 111 ------------------ .../css/main-346c571a.chunk.css.map | 1 - underreact-assets/js/main-4c717619a1.chunk.js | 2 - .../js/main-4c717619a1.chunk.js.map | 1 - .../js/polyfill-f5088abafc.chunk.js | 2 - .../js/polyfill-f5088abafc.chunk.js.map | 1 - .../js/vendor-53349badcf.chunk.js | 2 - .../js/vendor-53349badcf.chunk.js.map | 1 - 15 files changed, 77 insertions(+), 122 deletions(-) create mode 100644 asset-manifest.json create mode 100644 static/css/main.7d2db787.css create mode 100644 static/css/main.7d2db787.css.map create mode 100644 static/js/main.7d9899cf.js create mode 100644 static/js/main.7d9899cf.js.LICENSE.txt create mode 100644 static/js/main.7d9899cf.js.map delete mode 100644 underreact-assets/css/main-346c571a.chunk.css delete mode 100644 underreact-assets/css/main-346c571a.chunk.css.map delete mode 100644 underreact-assets/js/main-4c717619a1.chunk.js delete mode 100644 underreact-assets/js/main-4c717619a1.chunk.js.map delete mode 100644 underreact-assets/js/polyfill-f5088abafc.chunk.js delete mode 100644 underreact-assets/js/polyfill-f5088abafc.chunk.js.map delete mode 100644 underreact-assets/js/vendor-53349badcf.chunk.js delete mode 100644 underreact-assets/js/vendor-53349badcf.chunk.js.map diff --git a/asset-manifest.json b/asset-manifest.json new file mode 100644 index 00000000..8b6ea2f2 --- /dev/null +++ b/asset-manifest.json @@ -0,0 +1,13 @@ +{ + "files": { + "main.css": "/static/css/main.7d2db787.css", + "main.js": "/static/js/main.7d9899cf.js", + "index.html": "/index.html", + "main.7d2db787.css.map": "/static/css/main.7d2db787.css.map", + "main.7d9899cf.js.map": "/static/js/main.7d9899cf.js.map" + }, + "entrypoints": [ + "static/css/main.7d2db787.css", + "static/js/main.7d9899cf.js" + ] +} \ No newline at end of file diff --git a/index.html b/index.html index c16d7bcd..e5a29a56 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Mr. UI \ No newline at end of file +Mr. UI \ No newline at end of file diff --git a/static/css/main.7d2db787.css b/static/css/main.7d2db787.css new file mode 100644 index 00000000..e800b21e --- /dev/null +++ b/static/css/main.7d2db787.css @@ -0,0 +1,2 @@ +code[class*=language-],pre[class*=language-]{color:#273d56;direction:ltr;-webkit-hyphens:none;hyphens:none;tab-size:2;text-align:left;white-space:pre;word-break:normal;word-spacing:normal}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{background:#aab7ef}pre[class*=language-]{border:1px solid #ddd;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-]{background:#f8f8f8;border:1px solid #ddd;padding:1px .2em}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#998;font-style:italic}.token.namespace{opacity:.7}.token.selector,.token.tag .token.tag{color:#7753eb}.token.attr-value,.token.string{color:#ee4e8b}.token.operator,.token.punctuation{color:#607d9c}.token.boolean,.token.constant,.token.entity,.token.inserted,.token.number,.token.property,.token.regex,.token.symbol,.token.url,.token.variable{color:#33c377}.language-autohotkey .token.selector,.token.atrule,.token.keyword{color:#314ccd}.language-autohotkey .token.tag,.token.deleted,.token.function{color:#ba3b3f}.token.bold,.token.function,.token.important{font-weight:700}.token.italic{font-style:italic} +/*# sourceMappingURL=main.7d2db787.css.map*/ \ No newline at end of file diff --git a/static/css/main.7d2db787.css.map b/static/css/main.7d2db787.css.map new file mode 100644 index 00000000..97871547 --- /dev/null +++ b/static/css/main.7d2db787.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/main.7d2db787.css","mappings":"AAAA,6CAEI,aAAc,CACd,aAAc,CAUd,oBAAqB,CAGrB,YAAa,CALb,UAAW,CAPX,eAAgB,CAChB,eAAgB,CAEhB,iBAAkB,CADlB,mBAWJ,CAOA,wIAEI,kBACJ,CAGA,sBAII,qBAAyB,CAFzB,aAAc,CACd,aAGJ,CAOA,iCAGI,kBAAmB,CACnB,qBAAyB,CAFP,gBAGtB,CAEA,yDAII,UAAc,CAAE,iBACpB,CAEA,iBACI,UACJ,CAEA,sCAEI,aACJ,CAEA,gCAEI,aACJ,CACA,mCAEI,aACJ,CAEA,iJAUI,aACJ,CAEA,kEAGI,aACJ,CAEA,+DAGI,aACJ,CAEA,6CAGI,eACJ,CAEA,cACI,iBACJ","sources":["docs/prism-theme.css"],"sourcesContent":["code[class*=\"language-\"],\npre[class*=\"language-\"] {\n color: #273d56;\n direction: ltr;\n text-align: left;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n\n -moz-tab-size: 2;\n -o-tab-size: 2;\n tab-size: 2;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n}\n\npre[class*=\"language-\"]::-moz-selection, pre[class*=\"language-\"] ::-moz-selection,\ncode[class*=\"language-\"]::-moz-selection, code[class*=\"language-\"] ::-moz-selection {\n background: #aab7ef;\n}\n\npre[class*=\"language-\"]::selection, pre[class*=\"language-\"] ::selection,\ncode[class*=\"language-\"]::selection, code[class*=\"language-\"] ::selection {\n background: #aab7ef;\n}\n\n/* Code blocks */\npre[class*=\"language-\"] {\n /* padding: 1em; */\n margin: .5em 0;\n overflow: auto;\n border: 1px solid #dddddd;\n /* background-color: white; */\n}\n\n:not(pre) > code[class*=\"language-\"],\npre[class*=\"language-\"] {\n}\n\n/* Inline code */\n:not(pre) > code[class*=\"language-\"] {\n padding: .2em;\n padding-top: 1px; padding-bottom: 1px;\n background: #f8f8f8;\n border: 1px solid #dddddd;\n}\n\n.token.comment,\n.token.prolog,\n.token.doctype,\n.token.cdata {\n color: #999988; font-style: italic;\n}\n\n.token.namespace {\n opacity: .7;\n}\n\n.token.tag .token.tag,\n.token.selector {\n color: #7753eb;\n}\n\n.token.string,\n.token.attr-value {\n color: #ee4e8b;\n}\n.token.punctuation,\n.token.operator {\n color: #607d9c; /* no highlight */\n}\n\n.token.entity,\n.token.url,\n.token.symbol,\n.token.number,\n.token.boolean,\n.token.variable,\n.token.constant,\n.token.property,\n.token.regex,\n.token.inserted {\n color: #33c377;\n}\n\n.token.atrule,\n.token.keyword,\n.language-autohotkey .token.selector {\n color: #314ccd;\n}\n\n.token.function,\n.token.deleted,\n.language-autohotkey .token.tag {\n color: #ba3b3f;\n}\n\n.token.important,\n.token.function,\n.token.bold {\n font-weight: bold;\n}\n\n.token.italic {\n font-style: italic;\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/main.7d9899cf.js b/static/js/main.7d9899cf.js new file mode 100644 index 00000000..4c699c53 --- /dev/null +++ b/static/js/main.7d9899cf.js @@ -0,0 +1,3 @@ +/*! For license information please see main.7d9899cf.js.LICENSE.txt */ +!function(){var e={9292:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return je}});var a=t(885),s=t(2791),o=t(4942),r=t(1694),i=t.n(r),l=t(1413),c=t(2982),u=t(4925),p=t(7462),d=t(2382),_=t(5709),m=t(5449),g=t(9991),f=t(5240),E=t(3523),b=t(2999),S=t(2008),h=t(6147),k=["__scopeCollapsible","open","defaultOpen","disabled","onOpenChange"],v=["__scopeCollapsible"],D=["forceMount"],C=["__scopeCollapsible","present","children"],y="Collapsible",T=(0,d.b)(y),A=(0,a.Z)(T,2),N=A[0],R=A[1],x=N(y),O=(0,a.Z)(x,2),I=O[0],w=O[1],F=(0,s.forwardRef)((function(e,n){var t=e.__scopeCollapsible,o=e.open,r=e.defaultOpen,i=e.disabled,l=e.onOpenChange,c=(0,u.Z)(e,k),d=(0,f.T)({prop:o,defaultProp:r,onChange:l}),_=(0,a.Z)(d,2),m=_[0],g=void 0!==m&&m,b=_[1];return(0,s.createElement)(I,{scope:t,disabled:i,contentId:(0,h.M)(),open:g,onOpenToggle:(0,s.useCallback)((function(){return b((function(e){return!e}))}),[b])},(0,s.createElement)(E.WV.div,(0,p.Z)({"data-state":j(g),"data-disabled":i?"":void 0},c,{ref:n})))})),M="CollapsibleTrigger",L=(0,s.forwardRef)((function(e,n){var t=e.__scopeCollapsible,a=(0,u.Z)(e,v),o=w(M,t);return(0,s.createElement)(E.WV.button,(0,p.Z)({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":j(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},a,{ref:n,onClick:(0,g.M)(e.onClick,o.onOpenToggle)}))})),P="CollapsibleContent",B=(0,s.forwardRef)((function(e,n){var t=e.forceMount,a=(0,u.Z)(e,D),o=w(P,e.__scopeCollapsible);return(0,s.createElement)(S.z,{present:t||o.open},(function(e){var t=e.present;return(0,s.createElement)(U,(0,p.Z)({},a,{ref:n,present:t}))}))})),U=(0,s.forwardRef)((function(e,n){var t,r=e.__scopeCollapsible,i=e.present,c=e.children,d=(0,u.Z)(e,C),_=w(P,r),g=(0,s.useState)(i),f=(0,a.Z)(g,2),S=f[0],h=f[1],k=(0,s.useRef)(null),v=(0,m.e)(n,k),D=(0,s.useRef)(0),y=D.current,T=(0,s.useRef)(0),A=T.current,N=_.open||S,R=(0,s.useRef)(N),x=(0,s.useRef)();return(0,s.useEffect)((function(){var e=requestAnimationFrame((function(){return R.current=!1}));return function(){return cancelAnimationFrame(e)}}),[]),(0,b.b)((function(){var e=k.current;if(e){x.current=x.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";var n=e.getBoundingClientRect();D.current=n.height,T.current=n.width,R.current||(e.style.transitionDuration=x.current.transitionDuration,e.style.animationDuration=x.current.animationDuration,e.style.animationFillMode=x.current.animationFillMode),h(i)}}),[_.open,i]),(0,s.createElement)(E.WV.div,(0,p.Z)({"data-state":j(_.open),"data-disabled":_.disabled?"":void 0,id:_.contentId,hidden:!N},d,{ref:v,style:(0,l.Z)((t={},(0,o.Z)(t,"--radix-collapsible-content-height",y?"".concat(y,"px"):void 0),(0,o.Z)(t,"--radix-collapsible-content-width",A?"".concat(A,"px"):void 0),t),e.style)}),N&&c)}));function j(e){return e?"open":"closed"}var G=F,Y=L,q=B,V=["type"],H=["value","defaultValue","onValueChange","collapsible"],z=["value","defaultValue","onValueChange"],W=["__scopeAccordion","disabled"],Z=["__scopeAccordion","value"],$=["__scopeAccordion"],Q=["__scopeAccordion"],K="Accordion",X=["Home","End","ArrowDown","ArrowUp"],J=(0,_.B)(K),ee=(0,a.Z)(J,3),ne=ee[0],te=ee[1],ae=ee[2],se=(0,d.b)(K,[ae,R]),oe=(0,a.Z)(se,2),re=oe[0],ie=(oe[1],R()),le=s.forwardRef((function(e,n){var t=e.type,a=(0,u.Z)(e,V),o=a,r=a;return s.createElement(ne.Provider,{scope:e.__scopeAccordion},"multiple"===t?s.createElement(be,(0,p.Z)({},r,{ref:n})):s.createElement(Ee,(0,p.Z)({},o,{ref:n})))}));le.propTypes={type:function(e){var n=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"===typeof n?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(n)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};var ce=re(K),ue=(0,a.Z)(ce,2),pe=ue[0],de=ue[1],_e=re(K,{collapsible:!1}),me=(0,a.Z)(_e,2),ge=me[0],fe=me[1],Ee=s.forwardRef((function(e,n){var t=e.value,o=e.defaultValue,r=e.onValueChange,i=void 0===r?function(){}:r,l=e.collapsible,c=void 0!==l&&l,d=(0,u.Z)(e,H),_=(0,f.T)({prop:t,defaultProp:o,onChange:i}),m=(0,a.Z)(_,2),g=m[0],E=m[1];return s.createElement(pe,{scope:e.__scopeAccordion,value:g?[g]:[],onItemOpen:E,onItemClose:s.useCallback((function(){return c&&E("")}),[c,E])},s.createElement(ge,{scope:e.__scopeAccordion,collapsible:c},s.createElement(De,(0,p.Z)({},d,{ref:n}))))})),be=s.forwardRef((function(e,n){var t=e.value,o=e.defaultValue,r=e.onValueChange,i=void 0===r?function(){}:r,l=(0,u.Z)(e,z),d=(0,f.T)({prop:t,defaultProp:o,onChange:i}),_=(0,a.Z)(d,2),m=_[0],g=void 0===m?[]:m,E=_[1],b=s.useCallback((function(e){return E((function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[].concat((0,c.Z)(n),[e])}))}),[E]),S=s.useCallback((function(e){return E((function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n.filter((function(n){return n!==e}))}))}),[E]);return s.createElement(pe,{scope:e.__scopeAccordion,value:g,onItemOpen:b,onItemClose:S},s.createElement(ge,{scope:e.__scopeAccordion,collapsible:!0},s.createElement(De,(0,p.Z)({},l,{ref:n}))))})),Se=re(K),he=(0,a.Z)(Se,2),ke=he[0],ve=he[1],De=s.forwardRef((function(e,n){var t=e.__scopeAccordion,a=e.disabled,o=(0,u.Z)(e,W),r=s.useRef(null),i=(0,m.e)(r,n),l=te(t),c=(0,g.M)(e.onKeyDown,(function(e){var n;if(X.includes(e.key)){var t=e.target,a=l().filter((function(e){var n;return!(null!==(n=e.ref.current)&&void 0!==n&&n.disabled)})),s=a.findIndex((function(e){return e.ref.current===t})),o=a.length;if(-1!==s){e.preventDefault();var r=s;switch(e.key){case"Home":r=0;break;case"End":r=o-1;break;case"ArrowDown":r=s+1;break;case"ArrowUp":(r=s-1)<0&&(r=o-1)}null===(n=a[r%o].ref.current)||void 0===n||n.focus()}}}));return s.createElement(ke,{scope:t,disabled:a},s.createElement(ne.Slot,{scope:t},s.createElement(E.WV.div,(0,p.Z)({},o,{ref:i,onKeyDown:a?void 0:c}))))})),Ce="AccordionItem",ye=re(Ce),Te=(0,a.Z)(ye,2),Ae=Te[0],Ne=Te[1],Re=s.forwardRef((function(e,n){var t=e.__scopeAccordion,a=e.value,o=(0,u.Z)(e,Z),r=ve(Ce,t),i=de(Ce,t),l=ie(t),c=(0,h.M)(),d=a&&i.value.includes(a)||!1,_=r.disabled||e.disabled;return s.createElement(Ae,{scope:t,open:d,disabled:_,triggerId:c},s.createElement(G,(0,p.Z)({"data-state":d?"open":"closed"},l,o,{ref:n,disabled:_,open:d,onOpenChange:function(e){e?i.onItemOpen(a):i.onItemClose(a)}})))})),xe="AccordionTrigger",Oe=s.forwardRef((function(e,n){var t=e.__scopeAccordion,a=(0,u.Z)(e,$),o=Ne(xe,t),r=fe(xe,t),i=ie(t);return s.createElement(ne.ItemSlot,{scope:t},s.createElement(Y,(0,p.Z)({"aria-disabled":o.open&&!r.collapsible||void 0,id:o.triggerId},i,a,{ref:n})))})),Ie="AccordionContent",we=s.forwardRef((function(e,n){var t,a=e.__scopeAccordion,r=(0,u.Z)(e,Q),i=Ne(Ie,a),c=ie(a);return s.createElement(q,(0,p.Z)({role:"region","aria-labelledby":i.triggerId},c,r,{ref:n,style:(0,l.Z)((t={},(0,o.Z)(t,"--radix-accordion-content-height","var(--radix-collapsible-content-height)"),(0,o.Z)(t,"--radix-accordion-content-width","var(--radix-collapsible-content-width)"),t),e.style)}))}));var Fe=le,Me=Re,Le=Oe,Pe=we,Be=t(184);function Ue(e){var n=e.items,t=e.onToggle,a=e.activeItem,s=e.themeItem,r=e.themeItemBody,l=e.themeItemHeader,c=void 0===l?"txt-s txt-bold txt-truncate link link--gray py6":l,u=e.themeItemHeaderDisabled,p=void 0===u?"color-gray-light":u;return(0,Be.jsx)(Fe,{type:"single",value:a,onValueChange:t,collapsible:!0,children:n.map((function(e){var n,t=e.id,l=e.header,u=e.body,d=e.disabled,_=t===a,m=i()("w-full ".concat(c),(n={},(0,o.Z)(n,"cursor-default ".concat(p),d),(0,o.Z)(n,"cursor-pointer",!d),n));return(0,Be.jsxs)(Me,{className:s,value:t,children:[(0,Be.jsx)(Le,{disabled:d,"data-testid":"accordion-trigger-".concat(t),className:m,children:l(_)}),(0,Be.jsx)(Pe,{children:_&&(0,Be.jsx)("div",{className:r,children:u})})]},t)}))})}function je(){var e=(0,s.useState)(null),n=(0,a.Z)(e,2),t=n[0],o=n[1];return(0,Be.jsx)(Ue,{onToggle:function(e){return o(e===t?"":e)},activeItem:t,items:[{id:"one",header:function(){return(0,Be.jsx)("span",{children:"one"})},body:"First body"},{id:"two",header:function(){return(0,Be.jsx)("span",{children:"two"})},body:"Second body"},{id:"three",header:function(){return(0,Be.jsx)("span",{children:"three"})},body:"Third body"}]})}},4509:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var a=t(1413),s=t(4942),o=(t(2791),t(1694)),r=t.n(o),i=t(184);function l(e){var n,t=e.variant,o=void 0===t?"primary":t,l=e.ariaLabel,c=e.size,u=void 0===c?function(e){switch(e){case"appPrimary":case"appSecondary":return"small";default:return"large"}}(o):c,p=e.width,d=void 0===p?function(e){switch(e){case"appPrimary":case"appSecondary":return"small";default:return"medium"}}(o):p,_=e.color,m=void 0===_?function(e){switch(e){case"secondary":case"appPrimary":case"appSecondary":return"gray";case"tertiary":return"transparent";case"destructive":return"red";default:return"blue"}}(o):_,g=e.outline,f=void 0===g?function(e){switch(e){case"secondary":case"appSecondary":return!0;default:return!1}}(o):g,E=e.corners,b=void 0===E?function(e){switch(e){case"appPrimary":case"appSecondary":return!0;default:return!1}}(o):E,S=e.block,h=void 0!==S&&S,k=e.disabled,v=void 0!==k&&k,D=e.onClick,C=e.passthroughProps,y=e.href,T=e.children,A="small"===u,N="medium"===u,R="large"===u,x="small"===d,O="medium"===d,I="large"===d,w=r()("btn",(n={},(0,s.Z)(n,"btn--".concat(m),m),(0,s.Z)(n,"btn--stroke",f),(0,s.Z)(n,"link link--gray transition","tertiary"===o),(0,s.Z)(n,"round",b),(0,s.Z)(n,"round-full",!b),(0,s.Z)(n,"h24",A),(0,s.Z)(n,"py12",R),(0,s.Z)(n,"py6",N),(0,s.Z)(n,"px6",x&&A),(0,s.Z)(n,"px12",O&&A||x&&!A),(0,s.Z)(n,"px24",I&&A||O&&!A),(0,s.Z)(n,"px36",!A&&I),(0,s.Z)(n,"w-full block","full"===d),(0,s.Z)(n,"block",h),(0,s.Z)(n,"txt-s",!A),(0,s.Z)(n,"py3 txt-xs",A),n)),F=(0,a.Z)({className:w,"aria-label":l||o,onClick:D},C);if(y)return(0,i.jsx)("a",(0,a.Z)((0,a.Z)({href:y},F),{},{children:T}));var M=(0,a.Z)((0,a.Z)({},F),{},{children:T,disabled:v});return(0,i.jsx)("button",(0,a.Z)({type:"button"},M))}},2623:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return o}});t(2791);var a=t(4509),s=t(184);function o(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"my6",children:(0,s.jsx)(a.Z,{onClick:r,passthroughProps:{role:"button"},children:"Primary"})}),(0,s.jsx)("div",{className:"my6",children:(0,s.jsx)(a.Z,{variant:"secondary",onClick:r,children:"Secondary"})}),(0,s.jsx)("div",{className:"my6",children:(0,s.jsx)(a.Z,{variant:"tertiary",onClick:r,children:"Tertiary"})}),(0,s.jsx)("div",{className:"my6",children:(0,s.jsx)(a.Z,{variant:"destructive",onClick:r,children:"Destructive"})}),(0,s.jsx)("div",{className:"my6",children:(0,s.jsx)(a.Z,{variant:"appPrimary",onClick:r,children:"AppPrimary"})}),(0,s.jsx)("div",{className:"my6",children:(0,s.jsx)(a.Z,{variant:"appSecondary",onClick:r,children:"AppSecondary"})}),(0,s.jsx)("div",{className:"my6",children:(0,s.jsx)(a.Z,{onClick:r,disabled:!0,children:"Disabled"})})]})}function r(){}},7:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return r}});t(2791);var a=t(4509),s=t(7514),o=t(184);function r(){return(0,o.jsx)(a.Z,{onClick:function(){},width:"large",outline:!0,color:"purple",passthroughProps:{"aria-label":"Save your map"},children:(0,o.jsx)(s.Z,{iconBefore:"floppy",children:"Save your map"})})}},3439:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return o}});t(2791);var a=t(4509),s=t(184);function o(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mb24 flex",children:[(0,s.jsx)("div",{className:"w120 mr12",children:(0,s.jsx)(a.Z,{size:"medium",width:"full",onClick:r,passthroughProps:{"aria-label":"Click door button"},children:"Door"})}),(0,s.jsx)("div",{className:"w120 mr12",children:(0,s.jsx)(a.Z,{size:"medium",width:"full",onClick:r,passthroughProps:{"aria-label":"Click dog button"},children:"Dog"})}),(0,s.jsx)("div",{className:"w120 mr12",children:(0,s.jsx)(a.Z,{size:"medium",width:"full",onClick:r,passthroughProps:{"aria-label":"Click dash button"},children:"Dash"})})]}),(0,s.jsxs)("div",{className:"w60",children:[(0,s.jsx)("div",{className:"my3",children:(0,s.jsx)(a.Z,{variant:"secondary",size:"medium",width:"full",onClick:r,passthroughProps:{"aria-label":"Click button A"},children:"A"})}),(0,s.jsx)("div",{className:"my3",children:(0,s.jsx)(a.Z,{variant:"secondary",size:"medium",width:"full",onClick:r,passthroughProps:{"aria-label":"Click button B"},children:"B"})}),(0,s.jsx)("div",{className:"my3",children:(0,s.jsx)(a.Z,{variant:"secondary",size:"medium",width:"full",onClick:r,passthroughProps:{"aria-label":"Click button C"},children:"C"})})]})]})}function r(){}},2406:function(e,n,t){"use strict";var a=t(4509);n.Z=a.Z},6143:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});t(2791);var a=t(5232),s=t(184);function o(e){var n=e.text,t=e.iconBefore,o=void 0!==t&&t,r=e.iconSize,i=void 0===r?"1.5em":r,l=n.split(" "),c=o?l.shift():l.pop(),u=l.join(" ");return o?(0,s.jsxs)("span",{children:[(0,s.jsxs)("span",{className:"txt-nowrap",children:[(0,s.jsx)(a.Z,{name:"chevron-left",inline:!0,size:i}),c]})," ",u]}):(0,s.jsxs)("span",{children:[u," ",(0,s.jsxs)("span",{className:"txt-nowrap",children:[c,(0,s.jsx)(a.Z,{name:"chevron-right",inline:!0,size:i})]})]})}},3222:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return o}});t(2791);var a=t(6143),s=t(184);function o(){return(0,s.jsx)("div",{style:{lineHeight:"24px"},children:(0,s.jsx)(a.Z,{text:"Hello explorer"})})}},7869:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return o}});t(2791);var a=t(6143),s=t(184);function o(){return(0,s.jsx)("div",{className:"txt-xl",children:(0,s.jsx)(a.Z,{text:"Hello Explorer",iconBefore:!0,iconSize:45})})}},8045:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var a=t(2791),s=t(7494),o=t.n(s),r=t(6940),i=t(184),l=[];function c(e){var n=e.code,t=e.highlightedCode,s=e.copyRanges,c=e.maxHeight,u=e.onCopy,p=e.highlightThemeCss,d=void 0===p?"\n.hljs-comment,\n.hljs-quote {\n color: #7285b7;\n}\n\n.hljs-variable,\n.hljs-template-variable,\n.hljs-tag,\n.hljs-name,\n.hljs-selector-id,\n.hljs-selector-class,\n.hljs-regexp,\n.hljs-deletion {\n color: #ff9da4;\n}\n\n.hljs-number,\n.hljs-built_in,\n.hljs-builtin-name,\n.hljs-literal,\n.hljs-type,\n.hljs-params,\n.hljs-meta,\n.hljs-link {\n color: #ffc58f;\n}\n\n.hljs-attribute {\n color: #ffeead;\n}\n\n.hljs-string,\n.hljs-symbol,\n.hljs-bullet,\n.hljs-addition {\n color: #d1f1a9;\n}\n\n.hljs-title,\n.hljs-section {\n color: #bbdaff;\n}\n\n.hljs-keyword,\n.hljs-selector-tag {\n color: #ebbbff;\n}\n\n.hljs {\n display: block;\n font-family: 'Menlo', 'Bitstream Vera Sans Mono', 'Monaco', 'Consolas', monospace;\n font-size: 12px;\n line-height: 1.5em;\n overflow-x: auto;\n background: #273d56;\n color: #fff;\n padding: 12px;\n border-radius: 3px;\n}\n\n.hljs-emphasis {\n font-style: italic;\n}\n\n.hljs-strong {\n font-weight: bold;\n}":p,_=e.characterWidth,m=void 0===_?7.225:_,g=(0,a.useRef)(r.Z.isCopySupported()),f=(0,a.useRef)(null),E=o()((function(){if(f.current)for(var e=f.current.querySelectorAll("[data-chunk-overlay]"),n=0,t=e.length;nk[1]&&(C({live:!0}),k=h&&h.shift()),v.push({highlighted:A,raw:b[y]})}v.length&&C({live:!1});var R=[],x=[],O=[],I=-1;D.forEach((function(e,n){var t="chunk-".concat(n),a=e.highlightedLines.map((function(n,t){var a="pr12";e.live&&(a+=" py3"),e.live||void 0===s||(a+=" opacity75");var o=n.match(/^[ ]*/),r=(o?o[0]:"").length*m+12,l=n.replace(/^[ ]*/,"");return(0,i.jsx)("div",{className:a,style:{paddingLeft:r},children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:l||" "},style:{textIndent:-2*m,marginLeft:2*m}})},t)}));if(R.push((0,i.jsx)("div",{className:"relative z2","data-chunk-code":t,children:a},n)),e.live){x.push((0,i.jsx)("div",{"data-chunk-overlay":t,className:"bg-darken75 absolute left right",style:{opacity:0,transition:"opacity 300ms linear"},children:(0,i.jsx)("div",{className:"bg-blue h-full w6"})},n));var o=++I;u&&O.push((0,i.jsx)("div",{"data-chunk-copy":t,className:"absolute z3 right mr3 color-white",style:{opacity:0,transition:"opacity 300ms linear"},children:(0,i.jsx)(r.Z,{text:e.raw,onCopy:function(e){return u(e,o)}})},n))}}));var w=null;void 0===s&&u&&(w=(0,i.jsx)("div",{className:"absolute z2 top right mr6 mt6 color-white",children:(0,i.jsx)(r.Z,{text:n,onCopy:u})}));var F="relative round z0 scroll-styled";void 0!==c&&(F+=" overflow-auto");var M={};return void 0!==c&&(M.maxHeight=c),(0,i.jsxs)("div",{className:F,ref:f,style:M,children:[(0,i.jsx)("pre",{children:(0,i.jsx)("code",{className:"px0 hljs",children:R})}),g.current&&w,x,g.current&&O]})}},2883:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return i}});t(2791);var a=t(339),s=t(8045),o=t(184),r=a.highlightAuto("\nfunction fibonacci(n) {\n return n < 1 ? 0\n : n <= 2 ? 1\n : fibonacci(n - 1) + fibonacci(n - 2)\n}\n\nconsole.log(fibonacci(4))\n");function i(){return(0,o.jsx)(s.Z,{code:r.value})}},4900:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return o}});t(2791);var a=t(8045),s=t(184);function o(){return(0,s.jsx)(a.Z,{maxHeight:300,onCopy:function(){return console.log("Copy!")},copyRanges:[[1,10],[29,28]],code:"\npackage com.mapbox.mapboxandroiddemo.examples.basics;\n\nimport android.os.Bundle;\n\nimport com.mapbox.mapboxandroiddemo.R;\nimport com.mapbox.mapboxsdk.Mapbox;\nimport com.mapbox.mapboxsdk.maps.MapView;\nimport com.mapbox.mapboxsdk.maps.MapboxMap;\nimport com.mapbox.mapboxsdk.maps.OnMapReadyCallback;\nimport com.mapbox.mapboxsdk.maps.Style;\n\nimport androidx.annotation.NonNull;\nimport androidx.appcompat.app.AppCompatActivity;\n\n\n/**\n* The most basic example of adding a map to an activity.\n*/\npublic class SimpleMapViewActivity extends AppCompatActivity {\n\nprivate MapView mapView;\n\n@Override\nprotected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n // Mapbox access token is configured here. This needs to be called either in your application\n // object or in the same activity which contains the mapview.\n Mapbox.getInstance(this, getString(R.string.access_token));\n\n // This contains the MapView in XML and needs to be called after the access token is configured.\n setContentView(R.layout.activity_basic_simple_mapview);\n\n mapView = findViewById(R.id.mapView);\n mapView.onCreate(savedInstanceState);\n mapView.getMapAsync(new OnMapReadyCallback() {\n @Override\n public void onMapReady(@NonNull MapboxMap mapboxMap) {\n mapboxMap.setStyle(Style.MAPBOX_STREETS, new Style.OnStyleLoaded() {\n @Override\n public void onStyleLoaded(@NonNull Style style) {\n\n // Map is set up and the style has loaded. Now you can add data or make other map adjustments.\n\n }\n });\n }\n });\n}\n\n// Add the mapView lifecycle to the activity's lifecycle methods\n@Override\npublic void onResume() {\n super.onResume();\n mapView.onResume();\n}\n\n@Override\nprotected void onStart() {\n super.onStart();\n mapView.onStart();\n}\n\n@Override\nprotected void onStop() {\n super.onStop();\n mapView.onStop();\n}\n\n@Override\npublic void onPause() {\n super.onPause();\n mapView.onPause();\n}\n\n@Override\npublic void onLowMemory() {\n super.onLowMemory();\n mapView.onLowMemory();\n}\n\n@Override\nprotected void onDestroy() {\n super.onDestroy();\n mapView.onDestroy();\n}\n\n@Override\nprotected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n mapView.onSaveInstanceState(outState);\n}\n}\n"})}},646:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var a=t(1694),s=t.n(a),o=t(2791),r=t(5232),i=t(3709),l=t(184);function c(e){var n=e.theme,t=e.children,a=e.autoFocus,c=void 0!==a&&a,u=e.onButtonClick,p=(0,o.useRef)(null);(0,o.useEffect)((function(){c&&p.current&&p.current.focus()}),[c]);var d=s()("round px24 py24 flex",{"bg-green-faint":"success"===n,"bg-red-faint":"error"===n,"bg-yellow-faint":"warning"===n||"locked"===n}),_="alert";return"success"===n?_="check":"locked"===n&&(_="lock"),(0,l.jsxs)("div",{className:d,children:[(0,l.jsx)("div",{className:"flex-child-no-shrink",children:(0,l.jsx)(r.Z,{name:_,inline:!0,size:"1.3em"})}),(0,l.jsx)("div",{className:"flex-child-grow",ref:p,role:c?"alert":null,tabIndex:c?-1:null,children:t}),u&&(0,l.jsx)(i.Z,{content:"Dismiss",children:(0,l.jsx)("button",{"aria-label":"Dismiss",className:"bg-transparent color-gray-dark color-blue-on-hover px0 py0","data-testid":"alert-dismiss",onClick:u,children:(0,l.jsx)(r.Z,{name:"close",inline:!0,size:"1.3em"})})})]})}},1326:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return o}});t(2791);var a=t(646),s=t(184);function o(){return(0,s.jsx)(a.Z,{theme:"success",children:(0,s.jsxs)("p",{className:"mx6",children:[(0,s.jsx)("a",{className:"link",href:"http://www.mapbox.com",children:"You're the best!"})," ","Around! Nothing's gonna keep you down. You're the best! Around! Nothing's gonna keep you down."]})})}},9834:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return l}});var a=t(885),s=t(2791),o=t(646),r=t(5232),i=t(184);function l(){var e=(0,s.useState)(!0),n=(0,a.Z)(e,2),t=n[0],l=n[1];return(0,i.jsxs)("div",{children:[!t&&(0,i.jsx)("div",{className:"flex flex--end-main mr18 mb18",children:(0,i.jsx)("button",{"aria-label":"Show alert again",className:"color-gray-dark color-blue-on-hover",onClick:function(){return l(!0)},type:"button",children:(0,i.jsxs)("span",{className:"inline-block txt-s",children:["Show alert again ",(0,i.jsx)(r.Z,{name:"refresh",inline:!0})]})})}),t&&(0,i.jsx)("div",{className:"animation-fade-in animation--speed-1 txt-s",children:(0,i.jsx)(o.Z,{onButtonClick:function(){return l(!1)},theme:"warning",children:(0,i.jsx)("p",{className:"mx6",children:"The yellow power ranger is the best."})})})]})}},6391:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var a=t(1413),s=t(4925),o=(t(2791),t(4325)),r=t(5232),i=t(1694),l=t.n(i),c=t(818),u=t(184),p=["label"];function d(e){var n=e.id,t=e.onChange,i=e.value,d=void 0===i?[]:i,_=e.options,m=e.autoFocus,g=void 0!==m&&m,f=e.icon,E=void 0===f?"check":f,b=e.validationError,S=e.themeCheckboxContainer,h=void 0===S?"txt-s block mb6 flex":S,k=e.themeCheckbox,v=void 0===k?"mr6 inline-block checkbox--blue checkbox--s-label":k,D=e.themeControlWrapper,C=function(e){var a=e.target.value,s=d.indexOf(a),o=d;return-1===s?o.push(a):o.splice(s,1),t(o,n)},y={id:n,"data-testid":"".concat(n,"-input")};b&&(y["aria-invalid"]=!0);return(0,u.jsx)(c.Z,{themeControlWrapper:D,id:n,validationError:b,children:(0,u.jsx)("div",(0,a.Z)((0,a.Z)({},y),{},{children:_.map((function(e,t){var i=e.label,c=(0,s.Z)(e,p),_=d.includes(c.value),m=(0,o.Z)(c,["value","label"]),f=l()("checkbox-container ".concat(h),{"cursor-pointer":!c.disabled});return(0,u.jsxs)("label",{className:f,children:[(0,u.jsx)("input",(0,a.Z)({value:c.value,checked:_,"aria-checked":_,autoFocus:g&&_,onChange:C,name:n,"data-testid":"".concat(n,"-").concat(t,"-input"),type:"checkbox"},m)),(0,u.jsx)("div",{className:"".concat(v," checkbox"),children:(0,u.jsx)(r.Z,{name:E})}),i]},c.value)}))}))})}},564:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return l}});var a=t(2982),s=t(885),o=t(2791),r=t(6391),i=t(184);function l(){var e=(0,o.useState)([]),n=(0,s.Z)(e,2),t=n[0],l=n[1];return(0,i.jsx)(r.Z,{id:"basic",onChange:l,value:(0,a.Z)(t),options:[{label:"Whale",value:"humpback-whale"},{label:"Bird",value:"rufous-hummingbird"},{label:"Otter",value:"sea-otter"},{label:"Hare",value:"snowshoe-hare"}]})}},9122:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return l}});var a=t(2982),s=t(885),o=t(2791),r=t(6391),i=t(184);function l(){var e=(0,o.useState)(["sea-otter","humpback-whale"]),n=(0,s.Z)(e,2),t=n[0],l=n[1];return(0,i.jsx)(r.Z,{id:"more-options",onChange:l,value:(0,a.Z)(t),validationError:"oh no!",themeControlWrapper:"bg-gray-lighter round px12 py12",themeCheckboxContainer:"w-full",themeCheckbox:"radio--white radio--active-red mr6",options:[{label:"Humpback whale",value:"humpback-whale"},{label:"Rufous Hummingbird",value:"rufous-hummingbird",disabled:!0},{label:"Sea Otter",value:"sea-otter"},{label:"Snowshoe Hare",value:"snowshoe-hare"}]})}},829:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return _}});var a=t(2791),s=t(1413),o=t(4925),r=t(4325),i=t(818),l=t(7514),c=t(184),u=["id","optional","disabled","validationError","displayValue","themeControlFile","themeControlWrapper"],p=["id","onChange","value","optional","disabled","validationError","displayValue","themeControlFile","themeControlWrapper","validator"];function d(e){var n=e.id,t=e.optional,d=void 0!==t&&t,_=e.disabled,m=void 0!==_&&_,g=e.validationError,f=e.displayValue,E=void 0===f?"Select a file":f,b=e.themeControlFile,S=void 0===b?"btn":b,h=e.themeControlWrapper,k=(0,o.Z)(e,u),v=(0,r.Z)(k,p),D=(0,a.useRef)(null),C={id:n,name:n,onChange:function(e){var t=e.target.files;if(t.length){for(var a=[],s=0,o=t.length;s0&&void 0!==arguments[0]?arguments[0]:[],t=oe(e,s,n);return ie(t,v*g)?(B.current=t.indexOf(s),String(t)===String(e)?e:t):e}))}return(0,o.createElement)(G,{scope:e.__scopeSlider,disabled:h,min:r,max:d,valueIndexToChangeRef:B,thumbs:P.current,values:z,orientation:E},(0,o.createElement)(w.Provider,{scope:e.__scopeSlider},(0,o.createElement)(w.Slot,{scope:e.__scopeSlider},(0,o.createElement)(Y,(0,c.Z)({"aria-disabled":h,"data-disabled":h?"":void 0},x,{ref:L,min:r,max:d,onSlideStart:h?void 0:function(e){var n=function(e,n){if(1===e.length)return 0;var t=e.map((function(e){return Math.abs(e-n)})),a=Math.min.apply(Math,(0,i.Z)(t));return t.indexOf(a)}(z,e);Q(e,n)},onSlideMove:h?void 0:function(e){Q(e,B.current)},onHomeKeyDown:function(){return!h&&Q(r,0)},onEndKeyDown:function(){return!h&&Q(d,z.length-1)},onStepKeyDown:function(e){var n=e.event,t=e.direction;if(!h){var a=A.includes(n.key)||n.shiftKey&&N.includes(n.key)?10:1,s=B.current;Q(z[s]+g*a*t,s)}}})))),j&&z.map((function(e,n){return(0,o.createElement)(se,{key:n,name:t?t+(z.length>1?"[]":""):void 0,value:e})})))})),V=B(x,{startEdge:"left",endEdge:"right",size:"width",direction:1}),H=(0,l.Z)(V,2),z=H[0],W=H[1],Z=(0,o.forwardRef)((function(e,n){var t=e.min,i=e.max,u=e.dir,d=e.onSlideStart,_=e.onSlideMove,g=e.onStepKeyDown,f=(0,s.Z)(e,h),E=(0,o.useState)(null),b=(0,l.Z)(E,2),S=b[0],k=b[1],v=(0,p.e)(n,(function(e){return k(e)})),D=(0,o.useRef)(),C=(0,m.gm)(u),y="ltr"===C;function T(e){var n=D.current||S.getBoundingClientRect(),a=le([0,n.width],y?[t,i]:[i,t]);return D.current=n,a(e-n.left)}return(0,o.createElement)(z,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width"},(0,o.createElement)(Q,(0,c.Z)({dir:C,"data-orientation":"horizontal"},f,{ref:v,style:(0,a.Z)((0,a.Z)({},f.style),{},(0,r.Z)({},"--radix-slider-thumb-transform","translateX(-50%)")),onSlideStart:function(e){var n=T(e.clientX);null===d||void 0===d||d(n)},onSlideMove:function(e){var n=T(e.clientX);null===_||void 0===_||_(n)},onSlideEnd:function(){return D.current=void 0},onStepKeyDown:function(e){var n=R[C].includes(e.key);null===g||void 0===g||g({event:e,direction:n?-1:1})}})))})),$=(0,o.forwardRef)((function(e,n){var t=e.min,i=e.max,l=e.onSlideStart,u=e.onSlideMove,d=e.onStepKeyDown,_=(0,s.Z)(e,k),m=(0,o.useRef)(null),g=(0,p.e)(n,m),f=(0,o.useRef)();function E(e){var n=f.current||m.current.getBoundingClientRect(),a=le([0,n.height],[i,t]);return f.current=n,a(e-n.top)}return(0,o.createElement)(z,{scope:e.__scopeSlider,startEdge:"bottom",endEdge:"top",size:"height",direction:1},(0,o.createElement)(Q,(0,c.Z)({"data-orientation":"vertical"},_,{ref:g,style:(0,a.Z)((0,a.Z)({},_.style),{},(0,r.Z)({},"--radix-slider-thumb-transform","translateY(50%)")),onSlideStart:function(e){var n=E(e.clientY);null===l||void 0===l||l(n)},onSlideMove:function(e){var n=E(e.clientY);null===u||void 0===u||u(n)},onSlideEnd:function(){return f.current=void 0},onStepKeyDown:function(e){var n=R.ltr.includes(e.key);null===d||void 0===d||d({event:e,direction:n?-1:1})}})))})),Q=(0,o.forwardRef)((function(e,n){var t=e.__scopeSlider,a=e.onSlideStart,r=e.onSlideMove,i=e.onSlideEnd,l=e.onHomeKeyDown,p=e.onEndKeyDown,d=e.onStepKeyDown,_=(0,s.Z)(e,v),m=Y(x,t);return(0,o.createElement)(E.WV.span,(0,c.Z)({},_,{ref:n,onKeyDown:(0,u.M)(e.onKeyDown,(function(e){"Home"===e.key?(l(e),e.preventDefault()):"End"===e.key?(p(e),e.preventDefault()):A.concat(N).includes(e.key)&&(d(e),e.preventDefault())})),onPointerDown:(0,u.M)(e.onPointerDown,(function(e){var n=e.target;n.setPointerCapture(e.pointerId),e.preventDefault(),m.thumbs.has(n)?n.focus():a(e)})),onPointerMove:(0,u.M)(e.onPointerMove,(function(e){e.target.hasPointerCapture(e.pointerId)&&r(e)})),onPointerUp:(0,u.M)(e.onPointerUp,(function(e){var n=e.target;n.hasPointerCapture(e.pointerId)&&(n.releasePointerCapture(e.pointerId),i(e))}))}))})),K="SliderTrack",X=(0,o.forwardRef)((function(e,n){var t=e.__scopeSlider,a=(0,s.Z)(e,D),r=Y(K,t);return(0,o.createElement)(E.WV.span,(0,c.Z)({"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation},a,{ref:n}))})),J="SliderRange",ee=(0,o.forwardRef)((function(e,n){var t,l=e.__scopeSlider,u=(0,s.Z)(e,C),d=Y(J,l),_=W(J,l),m=(0,o.useRef)(null),g=(0,p.e)(n,m),f=d.values.length,b=d.values.map((function(e){return re(e,d.min,d.max)})),S=f>1?Math.min.apply(Math,(0,i.Z)(b)):0,h=100-Math.max.apply(Math,(0,i.Z)(b));return(0,o.createElement)(E.WV.span,(0,c.Z)({"data-orientation":d.orientation,"data-disabled":d.disabled?"":void 0},u,{ref:g,style:(0,a.Z)((0,a.Z)({},e.style),{},(t={},(0,r.Z)(t,_.startEdge,S+"%"),(0,r.Z)(t,_.endEdge,h+"%"),t))}))})),ne="SliderThumb",te=(0,o.forwardRef)((function(e,n){var t=F(e.__scopeSlider),a=(0,o.useState)(null),s=(0,l.Z)(a,2),r=s[0],i=s[1],u=(0,p.e)(n,(function(e){return i(e)})),d=(0,o.useMemo)((function(){return r?t().findIndex((function(e){return e.ref.current===r})):-1}),[t,r]);return(0,o.createElement)(ae,(0,c.Z)({},e,{ref:u,index:d}))})),ae=(0,o.forwardRef)((function(e,n){var t=e.__scopeSlider,a=e.index,i=(0,s.Z)(e,y),d=Y(ne,t),_=W(ne,t),m=(0,o.useState)(null),g=(0,l.Z)(m,2),b=g[0],S=g[1],h=(0,p.e)(n,(function(e){return S(e)})),k=(0,f.t)(b),v=d.values[a],D=void 0===v?0:re(v,d.min,d.max),C=function(e,n){return n>2?"Value ".concat(e+1," of ").concat(n):2===n?["Minimum","Maximum"][e]:void 0}(a,d.values.length),T=null===k||void 0===k?void 0:k[_.size],A=T?function(e,n,t){var a=e/2,s=le([0,50],[0,a]);return(a-s(n)*t)*t}(T,D,_.direction):0;return(0,o.useEffect)((function(){if(b)return d.thumbs.add(b),function(){d.thumbs.delete(b)}}),[b,d.thumbs]),(0,o.createElement)("span",{style:(0,r.Z)({transform:"var(--radix-slider-thumb-transform)",position:"absolute"},_.startEdge,"calc(".concat(D,"% + ").concat(A,"px)"))},(0,o.createElement)(w.ItemSlot,{scope:e.__scopeSlider},(0,o.createElement)(E.WV.span,(0,c.Z)({role:"slider","aria-label":e["aria-label"]||C,"aria-valuemin":d.min,"aria-valuenow":v,"aria-valuemax":d.max,"aria-orientation":d.orientation,"data-orientation":d.orientation,"data-disabled":d.disabled?"":void 0,tabIndex:d.disabled?void 0:0},i,{ref:h,style:void 0===v?{display:"none"}:e.style,onFocus:(0,u.M)(e.onFocus,(function(){d.valueIndexToChangeRef.current=a}))}))))})),se=function(e){var n=e.value,t=(0,s.Z)(e,T),a=(0,o.useRef)(null),r=(0,g.D)(n);return(0,o.useEffect)((function(){var e=a.current,t=window.HTMLInputElement.prototype,s=Object.getOwnPropertyDescriptor(t,"value").set;if(r!==n&&s){var o=new Event("input",{bubbles:!0});s.call(e,n),e.dispatchEvent(o)}}),[r,n]),(0,o.createElement)("input",(0,c.Z)({style:{display:"none"}},t,{ref:a,defaultValue:n}))};function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,a=(0,i.Z)(e);return a[t]=n,a.sort((function(e,n){return e-n}))}function re(e,n,t){return 100/(t-n)*(e-n)}function ie(e,n){if(n>0){var t=function(e){return e.slice(0,-1).map((function(n,t){return e[t+1]-n}))}(e);return Math.min.apply(Math,(0,i.Z)(t))>=n}return!0}function le(e,n){return function(t){if(e[0]===e[1]||n[0]===n[1])return n[0];var a=(n[1]-n[0])/(e[1]-e[0]);return n[0]+a*(t-e[0])}}var ce=q,ue=X,pe=ee,de=te,_e=t(4325),me=t(1302),ge=t(818),fe=t(184),Ee=["id","onChange","value","label","optional","aside","tooltip","validationError","themeControlRange","themeControlRangeActive","themeControlWrapper","themeLabel"],be=["id","value","onChange","label","optional","aside","validationError","themeControlRange","themeControlRangeActive","themeControlWrapper","themeLabel","tooltip","initialValue","validator"];function Se(e){var n=e.id,t=e.onChange,o=e.value,r=void 0===o?[]:o,i=e.label,l=e.optional,c=void 0!==l&&l,u=e.aside,p=(e.tooltip,e.validationError),d=e.themeControlRange,_=void 0===d?"range--s range--gray w-full h-full":d,m=e.themeControlRangeActive,g=e.themeControlWrapper,f=e.themeLabel,E=(0,s.Z)(e,Ee),b=(0,_e.Z)(E,be),S=(0,a.Z)({id:n,name:n,onValueChange:function(e){return t(e,n)},value:r,"aria-required":!c,"data-test":"".concat(n,"-input")},b);p&&(S["aria-invalid"]=!0);return(0,fe.jsxs)(ge.Z,{themeControlWrapper:g,id:n,validationError:p,children:[i&&(0,fe.jsx)(me.Z,{text:i,id:n,aside:u,optional:c,themeLabel:f}),(0,fe.jsx)("div",{className:"range ".concat(_),children:(0,fe.jsxs)(ce,(0,a.Z)((0,a.Z)({},S),{},{children:[(0,fe.jsx)(ue,{children:(0,fe.jsx)(pe,{className:"absolute h-full ".concat(m)})}),r.map((function(e,n){return(0,fe.jsx)(de,{},n)}))]}))})]})}},2578:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return l}});var a=t(2982),s=t(885),o=t(2791),r=t(3073),i=t(184);function l(){var e=(0,o.useState)([500]),n=(0,s.Z)(e,2),t=n[0],l=n[1];return(0,i.jsx)(r.Z,{id:"name",value:(0,a.Z)(t),min:10,max:1e3,step:10,onChange:l})}},6653:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return l}});var a=t(2982),s=t(885),o=t(2791),r=t(3073),i=t(184);function l(){var e=(0,o.useState)([25,50,75]),n=(0,s.Z)(e,2),t=n[0],l=n[1];return(0,i.jsx)(r.Z,{id:"name",label:"Which thumb should you move?",optional:!0,value:(0,a.Z)(t),min:10,max:100,step:1,onChange:l,tooltip:!0,themeControlRange:"range--purple w-full h-full",themeControlRangeActive:"bg-purple-dark"})}},4321:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});var a=t(1413),s=t(4925),o=(t(2791),t(4325)),r=t(1302),i=t(818),l=t(184),c=["id","onChange","options","value","label","optional","aside","disabled","validationError","themeControlSelectContainer","themeControlSelect","themeControlWrapper","themeLabel"],u=["id","options","value","onChange","optional","label","aside","disabled","validationError","themeControlSelect","themeControlSelectContainer","themeControlWrapper","themeLabel","initialValue","validator"];function p(e){var n=e.id,t=e.onChange,p=e.options,d=e.value,_=void 0===d?"":d,m=e.label,g=e.optional,f=void 0!==g&&g,E=e.aside,b=e.disabled,S=void 0!==b&&b,h=e.validationError,k=e.themeControlSelectContainer,v=void 0===k?"":k,D=e.themeControlSelect,C=void 0===D?"":D,y=e.themeControlWrapper,T=e.themeLabel,A=(0,s.Z)(e,c),N=(0,o.Z)(A,u),R={id:n,disabled:S,value:_,className:"select ".concat(C),onChange:function(e){return t(e.target.value,n)},"aria-required":!f,"data-testid":"".concat(n,"-select")};h&&(R["aria-invalid"]=!0);return(0,l.jsxs)(i.Z,{id:n,themeControlWrapper:y,validationError:h,children:[m&&(0,l.jsx)(r.Z,{text:m,id:n,aside:E,optional:f,themeLabel:T}),(0,l.jsxs)("div",{className:"select-container ".concat(v),children:[(0,l.jsx)("select",(0,a.Z)((0,a.Z)((0,a.Z)({},R),N),{},{children:p.map((function e(n){var t=n.label,a=n.value,s=n.disabled,o=n.options;return o?(0,l.jsx)("optgroup",{label:t,children:o.map(e)},t):(0,l.jsx)("option",{disabled:s,value:a,children:t},a)}))})),(0,l.jsx)("div",{className:"select-arrow"})]})]})}},4326:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return i}});var a=t(885),s=t(2791),o=t(4321),r=t(184);function i(){var e=(0,s.useState)(""),n=(0,a.Z)(e,2),t=n[0],i=n[1];return(0,r.jsx)(o.Z,{id:"animals",label:"Choose an animal",value:t,onChange:i,options:[{label:"Humpback whale",value:"humpback-whale"},{label:"Rufous Hummingbird",value:"rufous-hummingbird"},{label:"Sea Otter",value:"sea-otter"},{label:"Snowshoe Hare",value:"snowshoe-hare"}]})}},680:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return l}});var a=t(885),s=t(2791),o=t(4321),r=t(184),i=[{label:"Group One",options:[{label:"Foo",value:"foo"},{label:"Bar",value:"bar"}]},{label:"Group two",options:[{label:"Baz",value:"baz"},{label:"Qux",value:"qux",disabled:!0}]}];function l(){var e=(0,s.useState)("baz"),n=(0,a.Z)(e,2),t=n[0],l=n[1];return(0,r.jsx)(o.Z,{id:"group",label:"Choose from a group",validationError:"oh no!",value:t,optional:!0,aside:(0,r.jsx)("span",{children:"Aside text"}),themeControlSelect:"select--white bg-blue px12",onChange:l,options:i})}},4046:function(e,n,t){"use strict";t.d(n,{Z:function(){return B}});var a=t(1413),s=t(2791),o=t(1694),r=t.n(o),i=t(818),l=t(4925),c=t(885),u=t(7462),p=t(9991),d=t(5449),_=t(2382),m=t(5240),g=t(8750),f=t(9439),E=t(3523),b=t(5965),S=["__scopeSwitch","aria-labelledby","name","checked","defaultChecked","required","disabled","value","onCheckedChange"],h=["__scopeSwitch"],k=["control","checked","bubbles"],v="Switch",D=(0,_.b)(v),C=(0,c.Z)(D,2),y=C[0],T=(C[1],y(v)),A=(0,c.Z)(T,2),N=A[0],R=A[1],x=(0,s.forwardRef)((function(e,n){var t=e.__scopeSwitch,a=e["aria-labelledby"],o=e.name,r=e.checked,i=e.defaultChecked,_=e.required,g=e.disabled,f=e.value,h=void 0===f?"on":f,k=e.onCheckedChange,v=(0,l.Z)(e,S),D=(0,s.useState)(null),C=(0,c.Z)(D,2),y=C[0],T=C[1],A=(0,d.e)(n,(function(e){return T(e)})),R=(0,b.t0)(y),x=a||R,O=(0,s.useRef)(!1),I=!y||Boolean(y.closest("form")),M=(0,m.T)({prop:r,defaultProp:i,onChange:k}),L=(0,c.Z)(M,2),P=L[0],B=void 0!==P&&P,U=L[1];return(0,s.createElement)(N,{scope:t,checked:B,disabled:g},(0,s.createElement)(E.WV.button,(0,u.Z)({type:"button",role:"switch","aria-checked":B,"aria-labelledby":x,"aria-required":_,"data-state":F(B),"data-disabled":g?"":void 0,disabled:g,value:h},v,{ref:A,onClick:(0,p.M)(e.onClick,(function(e){U((function(e){return!e})),I&&(O.current=e.isPropagationStopped(),O.current||e.stopPropagation())}))})),I&&(0,s.createElement)(w,{control:y,bubbles:!O.current,name:o,value:h,checked:B,required:_,disabled:g,style:{transform:"translateX(-100%)"}}))})),O="SwitchThumb",I=(0,s.forwardRef)((function(e,n){var t=e.__scopeSwitch,a=(0,l.Z)(e,h),o=R(O,t);return(0,s.createElement)(E.WV.span,(0,u.Z)({"data-state":F(o.checked),"data-disabled":o.disabled?"":void 0},a,{ref:n}))})),w=function(e){var n=e.control,t=e.checked,o=e.bubbles,r=void 0===o||o,i=(0,l.Z)(e,k),c=(0,s.useRef)(null),p=(0,g.D)(t),d=(0,f.t)(n);return(0,s.useEffect)((function(){var e=c.current,n=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(n,"checked").set;if(p!==t&&a){var s=new Event("click",{bubbles:r});a.call(e,t),e.dispatchEvent(s)}}),[p,t,r]),(0,s.createElement)("input",(0,u.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:t},i,{tabIndex:-1,ref:c,style:(0,a.Z)((0,a.Z)((0,a.Z)({},e.style),d),{},{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}))};function F(e){return e?"checked":"unchecked"}var M=x,L=I,P=t(184);function B(e){var n=e.id,t=e.onChange,s=e.disabled,o=void 0!==s&&s,l=e.validationError,c=e.label,u=e.value,p=void 0!==u&&u,d=e.themeControlWrapper,_=void 0===d?"":d,m=e.themeControlSwitchContainer,g=void 0===m?"":m,f=e.themeControlSwitch,E=void 0===f?"switch--s-label":f,b=e.themeLabel,S=void 0===b?"txt-s ml6":b,h={id:n,checked:p,disabled:o,onCheckedChange:function(e){return t(e,n)},"data-testid":"".concat(n,"-switch")},k=r()("switch-container ".concat(g),{"cursor-pointer":!o});return(0,P.jsx)(i.Z,{themeControlWrapper:_,id:n,validationError:l,children:(0,P.jsx)("fieldset",{className:"flex flex--center-cross",children:(0,P.jsxs)("label",{htmlFor:n,className:k,children:[(0,P.jsx)(M,(0,a.Z)((0,a.Z)({},h),{},{className:"switch ".concat(E),children:(0,P.jsx)(L,{})})),(0,P.jsx)("span",{className:S,children:c})]})})})}},684:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return i}});var a=t(885),s=t(2791),o=t(4046),r=t(184);function i(){var e=(0,s.useState)(!1),n=(0,a.Z)(e,2),t=n[0],i=n[1];return(0,r.jsx)(o.Z,{id:"active-animal",label:"Active animal",value:t,onChange:function(e){return i(e)}})}},8093:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return i}});var a=t(885),s=t(2791),o=t(4046),r=t(184);function i(){var e=(0,s.useState)(!1),n=(0,a.Z)(e,2),t=n[0],i=n[1];return(0,r.jsx)(o.Z,{id:"disabled-switch",value:t,disabled:!0,onChange:function(e){return i(e)}})}},5307:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return i}});var a=t(885),s=t(2791),o=t(4046),r=t(184);function i(){var e=(0,s.useState)(""),n=(0,a.Z)(e,2),t=n[0],i=n[1];return(0,r.jsx)(o.Z,{id:"fancy-animal",label:(0,r.jsx)("div",{className:"txt-bold color-purple",children:"Active fancy animal"}),validationError:t,value:!0,themeControlWrapper:"border border--purple px6 py6",themeControlSwitchContainer:"bg-pink-faint px12 py6 round",themeControlSwitch:"switch--purple switch--s-label",onChange:function(){return i("Can't deactivate a fancy animal!")}})}},13:function(e,n,t){"use strict";t.d(n,{Z:function(){return f}});var a=t(1413),s=t(885),o=t(4925),r=t(2791),i=t(4325),l=t(1302),c=t(818),u=t(304),p=t(5232),d=t(6558),_=t(184),m=["id","onChange","value","label","aside","type","optional","validationError","errorStyle","noAuto","themeLabel","themeControlInput","themeControlWrapper"],g=["id","value","onChange","type","label","noAuto","optional","aside","validationError","errorStyle","popoverProps","themeControlInput","themeControlWrapper","themeLabel","initialValue","validator"];function f(e){var n=e.id,t=e.onChange,f=e.value,E=void 0===f?"":f,b=e.label,S=e.aside,h=e.type,k=void 0===h?"text":h,v=e.optional,D=void 0!==v&&v,C=e.validationError,y=e.errorStyle,T=void 0===y?"default":y,A=e.noAuto,N=void 0!==A&&A,R=e.themeLabel,x=e.themeControlInput,O=void 0===x?"input":x,I=e.themeControlWrapper,w=(0,o.Z)(e,m),F=(0,r.useState)(!1),M=(0,s.Z)(F,2),L=M[0],P=M[1],B=(0,i.Z)(w,g),U=(0,r.useRef)(null),j=(0,r.useRef)(null),G=function(){return(0,d.Z)().document.activeElement===U.current||(0,d.Z)().document.activeElement===j.current},Y={id:n,name:n,onChange:function(e){return t(e.target.value,n)},value:E,type:k,className:O,"aria-required":!D,"data-testid":"".concat(n,"-input")};N&&(Y.autoCapitalize="none",Y.autoCorrect="off",Y.spellCheck=!1),C&&(Y["aria-invalid"]=!0),C&&"inline"===T&&(Y.className="".concat(O," round-l flex-child-grow"),Y.style={boxShadow:"inset 0 0 0 1px #f74e4e"});var q=b?(0,_.jsx)(l.Z,{text:b,id:n,aside:S,optional:D,themeLabel:R}):null,V=(0,_.jsx)("input",(0,a.Z)((0,a.Z)({},Y),B));return"inline"===T?(C&&(V=(0,_.jsxs)("div",{onMouseOver:function(){G()||P(!0)},onMouseOut:function(){G()||P(!1)},"data-testid":"control-text-container",className:"flex",children:[(0,_.jsx)("input",(0,a.Z)((0,a.Z)({ref:U,onFocus:function(){return P(!0)},onBlur:function(){return P(!1)}},Y),B)),(0,_.jsx)(u.Z,(0,a.Z)((0,a.Z)({active:L,content:C,placement:"top","aria-label":"Validation error"},w.popoverProps),{},{children:(0,_.jsx)("button",{type:"button",onFocus:function(){return P(!0)},onBlur:function(){return P(!1)},ref:j,onClick:function(){U.current&&U.current.select()},"data-testid":"validation-error",role:"alert",className:"h-full bg-red color-white round-r px6",children:(0,_.jsx)("span",{className:"flex flex--center-cross flex--center-main",children:(0,_.jsx)(p.Z,{name:"alert",passthroughProps:{fill:"white",className:"cursor-pointer"}})})})}))]})),(0,_.jsxs)(c.Z,{themeControlWrapper:I,id:n,children:[q,V]})):(0,_.jsxs)(c.Z,{themeControlWrapper:I,id:n,validationError:C,children:[q,V]})}},2501:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return i}});var a=t(885),s=t(2791),o=t(13),r=t(184);function i(){var e=(0,s.useState)(""),n=(0,a.Z)(e,2),t=n[0],i=n[1];return(0,r.jsx)(o.Z,{id:"basic",value:t,onChange:i})}},6310:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return i}});var a=t(885),s=t(2791),o=t(13),r=t(184);function i(){var e=(0,s.useState)("foo@bar.baz"),n=(0,a.Z)(e,2),t=n[0],i=n[1];return(0,r.jsx)(o.Z,{id:"more-options",label:"Enter your email",type:"email",validationError:"Oh no!",errorStyle:"inline",themeControlWrapper:"bg-gray-faint px12 py12",themeControlInput:"input input--s",themeLabel:"txt-bold",popoverProps:{coloring:"dark",padding:"small"},onChange:i,placeholder:"Enter an email address",value:t,optional:!0,noAuto:!0,aside:(0,r.jsx)("span",{children:"Aside text"})})}},3450:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var a=t(885),s=t(2791),o=t(1413),r=t(4925),i=t(4325),l=t(1302),c=t(818),u=t(184),p=["id","onChange","value","label","optional","aside","validationError","noAuto","themeControlTextarea","themeControlWrapper","themeLabel"],d=["id","value","onChange","label","noAuto","optional","aside","validationError","themeControlTextarea","themeControlWrapper","themeLabel","initialValue","validator"];function _(e){var n=e.id,t=e.onChange,a=e.value,s=void 0===a?"":a,_=e.label,m=e.optional,g=void 0!==m&&m,f=e.aside,E=e.validationError,b=e.noAuto,S=void 0!==b&&b,h=e.themeControlTextarea,k=void 0===h?"textarea hmin120":h,v=e.themeControlWrapper,D=e.themeLabel,C=(0,r.Z)(e,p),y=(0,i.Z)(C,d),T={id:n,name:n,onChange:function(e){return t(e.target.value,n)},value:s,className:k,"aria-required":!g,"data-testid":"".concat(n,"-textarea")};return S&&(T.autoCapitalize="none",T.autoCorrect="off",T.spellCheck=!1),E&&(T["aria-invalid"]=!0),(0,u.jsxs)(c.Z,{themeControlWrapper:v,id:n,validationError:E,children:[_&&(0,u.jsx)(l.Z,{text:_,id:n,aside:f,optional:g,themeLabel:D}),(0,u.jsx)("textarea",(0,o.Z)((0,o.Z)({},T),y))]})}function m(){var e=(0,s.useState)(""),n=(0,a.Z)(e,2),t=n[0],o=n[1];return(0,u.jsx)(_,{id:"story",label:"Your story",onChange:o,value:t})}},766:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var a=t(885),s=t(2791),o=t(1413),r=t(4925),i=t(4325),l=t(818),c=t(184),u=["label"];function p(e){var n=e.id,t=e.options,a=e.onChange,s=e.value,p=void 0===s?"":s,d=e.optional,_=void 0!==d&&d,m=e.validationError,g=e.autoFocus,f=void 0!==g&&g,E=e.themeToggleGroup,b=void 0===E?"border border--gray-light py3 px3":E,S=e.themeToggleContainer,h=void 0===S?"":S,k=e.themeToggle,v=void 0===k?"txt-s py0 round-full toggle--s toggle--gray":k,D=e.themeControlWrapper,C={id:n,className:"toggle-group round-full ".concat(b),role:"radiogroup","aria-required":!_,"data-testid":"".concat(n,"-input")};m&&(C["aria-invalid"]=!0);return(0,c.jsx)(l.Z,{themeControlWrapper:D,id:n,validationError:m,children:(0,c.jsx)("div",(0,o.Z)((0,o.Z)({},C),{},{children:t.map((function(e,t){var s=e.label,l=(0,r.Z)(e,u),d=(0,i.Z)(l,["value","label"]);return(0,c.jsxs)("label",{className:"toggle-container ".concat(h),children:[(0,c.jsx)("input",(0,o.Z)({value:l.value,checked:l.value===p,autoFocus:f&&l.value===p,onChange:function(e){return a(e.target.value,n)},name:n,type:"radio","data-testid":"".concat(n,"-").concat(t,"-input")},d)),(0,c.jsx)("div",{className:"".concat(v," toggle"),children:s})]},l.value)}))}))})}function d(){var e=(0,s.useState)("humpback-whale"),n=(0,a.Z)(e,2),t=n[0],o=n[1];return(0,c.jsx)(p,{id:"animals",value:t,onChange:o,options:[{label:"Whale",value:"humpback-whale"},{label:"Bird",value:"rufous-hummingbird"},{label:"Otter",value:"sea-otter"},{label:"Hare",value:"snowshoe-hare"}]})}},7003:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});t(2791);var a=t(184);function s(e){var n=e.id,t=e.themeControlWrapper,s=void 0===t?"":t,o=e.validationError,r=e.children,i=null;if(o){var l="".concat(n,"-error"),c="string"===typeof o?function(e){if(!e)return e;var n=e.trim(),t=n[n.length-1];return"."===t||"!"===t||"?"===t?n:n+"."}(o):o;i=(0,a.jsx)("div",{className:"bg txt-s mt3 py6 px12 bg-red-faint round border border--red color-red",id:l,"data-testid":l,children:c})}var u="relative ".concat(s);return(0,a.jsxs)("div",{className:u,children:[r,(0,a.jsx)("div",{role:"alert",children:i})]})}},4409:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return o}});t(2791);var a=t(7003),s=t(184);function o(){return(0,s.jsx)(a.Z,{id:"name",validationError:"A value was not entered",children:(0,s.jsx)("input",{id:"name",type:"text",placeholder:"Enter name"})})}},818:function(e,n,t){"use strict";var a=t(7003);n.Z=a.Z},2530:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return E}});var a=t(2791),s=t(885),o=t(1694),r=t.n(o),i=t(6940),l=t(304),c=t(2029),u=t.n(c),p=t(8847),d=t.n(p),_=t(6558),m=t(184);function g(e){var n=u()(e);if(n)return n.primaryMeta?"".concat(n.meta.symbol,"+C"):"".concat(n.ctrl.abbreviation,"+C")}function f(e){var n=e.value,t=e.focusTrapPaused,o=e.truncated,c=void 0!==o&&o,u=(0,a.useRef)(null),p=(0,a.useRef)(i.Z.isCopySupported()),f=(0,a.useState)(!1),E=(0,s.Z)(f,2),b=E[0],S=E[1];(0,a.useEffect)((function(){var e;return b&&(e=setTimeout((function(){S(!1)}),2e3)),function(){return clearTimeout(e)}}),[b]);var h=(0,m.jsx)("div",{className:"absolute top right px6 py6",children:(0,m.jsx)(i.Z,{text:n,block:!0,focusTrapPaused:t})}),k=(0,m.jsxs)("span",{children:[(0,m.jsx)("span",{className:"txt-kbd",children:g((0,_.Z)().navigator.userAgent)})," ","to copy"]}),v=r()("my3 txt-mono txt-s mr24",{"txt-truncate":c}),D={};return c||(D.wordWrap="break-word",D.overflowWrap="break-word"),(0,m.jsxs)("div",{className:"relative clearfix bg-darken5 round",children:[p.current&&h,(0,m.jsx)(l.Z,{content:(0,m.jsx)("div",{className:"txt-s",children:p.current&&k}),active:b,placement:"top",alignment:"center",hideWhenAnchorIsOffscreen:!0,"aria-label":"Copy the selected text",padding:"small",children:(0,m.jsx)("div",{tabIndex:-1,ref:u,onFocus:function(){(0,_.Z)().innerWidth<640||(d()((function(){return u.current})),S(!0))},onBlur:function(e){u.current.contains(e.relatedTarget)||S(!1)},className:"py6 px12","data-testid":"copiable-text-el",children:(0,m.jsx)("div",{className:v,style:D,children:n})})})]})}function E(){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"mb12",children:(0,m.jsx)(f,{value:"The length of this copiable text is to illustrate to you how this component's styling works when the text wraps to multiple lines"})}),(0,m.jsx)("div",{children:(0,m.jsx)(f,{value:"https://www.mapbox.com/something/special/for/you/to/see/be/truncated/in/length/if/you/shrink/your/browser/window/today",truncated:!0})})]})}},1121:function(e,n,t){"use strict";t.d(n,{Z:function(){return m}});var a=t(1413),s=t(885),o=t(2791),r=t(1694),i=t.n(r),l=t(6065),c=t.n(l),u=t(5232),p=t(304),d=t(3709),_=t(184);function m(e){var n=e.text,t=e.onCopy,r=e.block,l=void 0!==r&&r,m=e.focusTrapPaused,g=e.className,f=void 0===g?"btn btn--xs py3 px3 round":g,E=e.passthroughProps,b=(0,o.useState)(null),S=(0,s.Z)(b,2),h=S[0],k=S[1],v=(0,o.useState)(null),D=(0,s.Z)(v,2),C=D[0],y=D[1],T=(0,o.useState)(!1),A=(0,s.Z)(T,2),N=A[0],R=A[1],x=(0,o.useCallback)((function(){C&&k(new(c())(C,(0,a.Z)({},!m&&{container:C})))}),[m,C]);(0,o.useEffect)((function(){return function(){h&&h.destroy()}}),[]),(0,o.useEffect)((function(){C&&!h&&x()}),[C,h,x]),(0,o.useEffect)((function(){var e;return N&&(e=setTimeout((function(){R(!1)}),800)),function(){return clearTimeout(e)}}),[N]);var O=N?"check":"clipboard",I=i()(f,{block:l});return(0,_.jsx)("div",{role:"button","aria-label":"Copy","data-testid":"copy-button",ref:function(e){return y(e)},"data-clipboard-text":n,onClick:function(){t&&t(n),R(!0),h&&(h.destroy(),x())},children:(0,_.jsx)(p.Z,{content:(0,_.jsx)("div",{className:"txt-s",children:"Copied!"}),active:N,placement:"top",alignment:"center",hideWhenAnchorIsOffscreen:!0,padding:"small",children:(0,_.jsx)("div",{children:(0,_.jsx)(d.Z,{disabled:N,content:"Copy",children:(0,_.jsx)("button",(0,a.Z)((0,a.Z)({type:"button",className:I},E),{},{children:(0,_.jsx)(u.Z,{name:O})}))})})})})}m.isCopySupported=function(){return c().isSupported()}},921:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return o}});t(2791);var a=t(1121),s=t(184);function o(){return(0,s.jsxs)("div",{className:"flex flex--center-cross",children:[(0,s.jsx)("div",{className:"mr24",children:(0,s.jsx)(a.Z,{text:"Hello explorer",block:!0})}),(0,s.jsx)("div",{className:"flex-child-grow",children:(0,s.jsx)("input",{className:"input input--s wmax360",placeholder:"Paste text here"})})]})}},5396:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return o}});t(2791);var a=t(1121),s=t(184);function o(){return(0,s.jsxs)("div",{className:"flex flex--center-cross",children:[(0,s.jsx)("div",{className:"mr24",children:(0,s.jsx)(a.Z,{text:"Hello fancy explorer",className:"px6 py6 btn btn--purple btn--stroke"})}),(0,s.jsx)("div",{className:"flex-child-grow",children:(0,s.jsx)("input",{className:"input input--s wmax360",placeholder:"Paste text here"})})]})}},6940:function(e,n,t){"use strict";var a=t(1121);n.Z=a.Z},6930:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return o}});t(2791);var a=t(8558),s=t(184);function o(){return(0,s.jsx)(a.Z,{onSubmit:function(e){console.log(e)},label:"Submit me"})}},8558:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var a=t(1413),s=(t(2791),t(184));function o(e){var n=e.label,t=void 0===n?"Submit":n,o=e.testId,r=void 0===o?"":o,i=e.disabled,l=void 0!==i&&i,c=e.themeButton,u=void 0===c?"btn":c,p={onClick:e.onSubmit,disabled:l,"data-testid":r||"form-submit-handler"};return(0,s.jsx)("button",(0,a.Z)((0,a.Z)({"aria-label":t,type:"button",className:u},p),{},{children:t}))}},5200:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return T}});var a=t(1413),s=t(2791),o=t(4165),r=t(5861),i=t(885),l=t(5884),c=t.n(l),u=t(2712),p=t.n(u),d=t(3159).Z,_=t(4389).Z,m=t(4937),g=t(184),f="PRE_SUBMISSION",E="SUBMITTED_WITH_ERRORS",b="PENDING",S="COMPLETE";function h(e,n){var t={},a={};return Object.keys(e).forEach((function(s){var o=e[s];n&&n[s]?t[s]=n[s]:t[s]=void 0!==o.initialValue?o.initialValue:"",a[s]=""})),{controlValues:t,controlValidationErrors:a}}function k(e,n,t){if(!n)return"";Array.isArray(n)||(n=[n]);for(var a=0,s=n.length;an.x?1:e.yn.y?1:0})),function(e){if(e.length<=1)return e.slice();for(var n=[],t=0;t=2;){var s=n[n.length-1],o=n[n.length-2];if(!((s.x-o.x)*(a.y-o.y)>=(s.y-o.y)*(a.x-o.x)))break;n.pop()}n.push(a)}n.pop();for(var r=[],i=e.length-1;i>=0;i--){for(var l=e[i];r.length>=2;){var c=r[r.length-1],u=r[r.length-2];if(!((c.x-u.x)*(l.y-u.y)>=(c.y-u.y)*(l.x-u.x)))break;r.pop()}r.push(l)}return r.pop(),1===n.length&&1===r.length&&n[0].x===r[0].x&&n[0].y===r[0].y?n:n.concat(r)}(n)}([o].concat((0,c.Z)(r)));_(i),b(!0)}),[b]);return(0,s.useEffect)((function(){return function(){return S()}}),[S]),(0,s.useEffect)((function(){if(g&&E){var e=function(e){return h(e,E)},n=function(e){return h(e,g)};return g.addEventListener("pointerleave",e),E.addEventListener("pointerleave",n),function(){g.removeEventListener("pointerleave",e),E.removeEventListener("pointerleave",n)}}}),[g,E,h,S]),(0,s.useEffect)((function(){if(u){var e=function(e){var n=e.target,t={x:e.clientX,y:e.clientY},a=(null===g||void 0===g?void 0:g.contains(n))||(null===E||void 0===E?void 0:E.contains(n)),s=!function(e,n){for(var t=e.x,a=e.y,s=!1,o=0,r=n.length-1;oa!==u>a&&t<(c-i)*(a-l)/(u-l)+i&&(s=!s)}return s}(t,u);a?S():s&&(S(),f())};return document.addEventListener("pointermove",e),function(){return document.removeEventListener("pointermove",e)}}}),[g,E,u,f,S]),(0,s.createElement)(ie,(0,d.Z)({},e,{ref:r}))})),ae=O(j,{isInside:!1}),se=(0,p.Z)(ae,2),oe=se[0],re=se[1],ie=(0,s.forwardRef)((function(e,n){var t=e.__scopeTooltip,o=e.children,r=e["aria-label"],i=e.onEscapeKeyDown,c=e.onPointerDownOutside,p=(0,u.Z)(e,A),_=V(ee,t),m=I(t),g=_.onClose;return(0,s.useEffect)((function(){return document.addEventListener(F,g),function(){return document.removeEventListener(F,g)}}),[g]),(0,s.useEffect)((function(){if(_.trigger){var e=function(e){var n=e.target;null!==n&&void 0!==n&&n.contains(_.trigger)&&g()};return window.addEventListener("scroll",e,{capture:!0}),function(){return window.removeEventListener("scroll",e,{capture:!0})}}}),[_.trigger,g]),(0,s.createElement)(f.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:function(e){return e.preventDefault()},onDismiss:g},(0,s.createElement)(b.VY,(0,d.Z)({"data-state":_.stateAttribute},m,p,{ref:n,style:(0,a.Z)((0,a.Z)({},p.style),{},(0,l.Z)({},"--radix-tooltip-content-transform-origin","var(--radix-popper-transform-origin)"))}),(0,s.createElement)(v.A4,null,o),(0,s.createElement)(oe,{scope:t,isInside:!0},(0,s.createElement)(C.f,{id:_.contentId,role:"tooltip"},r||o))))})),le="TooltipArrow",ce=(0,s.forwardRef)((function(e,n){var t=e.__scopeTooltip,a=(0,u.Z)(e,N),o=I(t);return re(le,t).isInside?null:(0,s.createElement)(b.Eh,(0,d.Z)({},o,a,{ref:n}))}));var ue=U,pe=H,de=W,_e=J,me=ne,ge=ce,fe=t(184);function Ee(e){var n=e.placement,t=void 0===n?"top":n,o=e.alignment,l=void 0===o?"center":o,c=e.coloring,u=void 0===c?"light":c,p=e.disabled,d=void 0!==p&&p,_=e.padding,m=void 0===_?"small":_,g=e.textSize,f=void 0===g?"s":g,E=e.maxWidth,b=void 0===E?"medium":E,S=e.content,h=e.children,k=e.ariaLabel,v=(0,i.gh)(u),D=v.background,C=v.borderColor,y=v.color,T=v.fill,A=(0,s.useRef)(null),N=r()("".concat(D," ").concat(C," ").concat(y," border shadow-darken25 round"),{"txt-s":"s"===f,"txt-xs":"xs"===f,"px12 py6":"small"===m,wmax120:"small"===b,wmax240:"medium"===b}),R=(0,s.forwardRef)((function(e,n){var t=s.Children.only(h);return(0,s.isValidElement)(t)&&t.props.disabled&&(t=(0,fe.jsx)("span",(0,a.Z)((0,a.Z)({},e),{},{ref:n,role:"button",className:"inline-block",tabIndex:0,children:t}))),(0,fe.jsx)(de,{ref:n,asChild:!0,children:t})}));return(0,fe.jsx)(ue,{children:(0,fe.jsxs)(pe,{delayDuration:150,children:[d?(0,fe.jsx)(fe.Fragment,{children:h}):(0,fe.jsx)(R,{ref:A}),(0,fe.jsx)(_e,{children:(0,fe.jsxs)(me,{"aria-label":k,side:t,align:l,sideOffset:6,className:N,children:["function"===typeof S?S():S,(0,fe.jsx)(ge,{width:12,height:6,offset:6,fill:T})]})})]})})}},6558:function(e,n,t){"use strict";function a(){if("object"!==typeof window)throw new Error("window not available");return window}t.d(n,{Z:function(){return a}})},4325:function(e,n,t){"use strict";function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object.keys(e).reduce((function(t,a){return-1===n.indexOf(a)&&(t[a]=e[a]),t}),{})}t.d(n,{Z:function(){return a}})},3421:function(e,n,t){"use strict";t.d(n,{gh:function(){return s}});var a=t(2669);function s(e){switch(e){case"dark":return{background:"bg-gray-dark",borderColor:"border--gray-dark",color:"color-white",fill:a["--gray-dark"]};case"warning":return{background:"bg-orange-faint",borderColor:"border--orange-deep",color:"color-orange-deep",fill:a["--orange-deep"]};case"error":return{background:"bg-red-faint",borderColor:"border--red-deep",color:"color-red-deep",fill:a["--red-deep"]};default:return{background:"bg-white",borderColor:"border--white",color:"color-text",fill:"#fff"}}}},4937:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var a=t(2791);function s(e){var n=(0,a.useRef)();return(0,a.useEffect)((function(){n.current=e})),n.current}},4250:function(e){e.exports=function(e,n){var t,a=document.querySelectorAll(e),s=a.length;for(t=0;t2&&void 0!==arguments[2]?arguments[2]:{},a=t.checkForDefaultPrevented,s=void 0===a||a;return function(t){if(null===e||void 0===e||e(t),!1===s||!t.defaultPrevented)return null===n||void 0===n?void 0:n(t)}}t.d(n,{M:function(){return a}})},5709:function(e,n,t){"use strict";t.d(n,{B:function(){return d}});var a=t(4942),s=t(1413),o=t(4925),r=t(885),i=t(2791),l=t(2382),c=t(5449),u=t(4682),p=["scope","children"];function d(e){var n=e+"CollectionProvider",t=(0,l.b)(n),d=(0,r.Z)(t,2),_=d[0],m=d[1],g=_(n,{collectionRef:{current:null},itemMap:new Map}),f=(0,r.Z)(g,2),E=f[0],b=f[1],S=function(e){var n=e.scope,t=e.children,a=i.useRef(null),s=i.useRef(new Map).current;return i.createElement(E,{scope:n,itemMap:s,collectionRef:a},t)},h=e+"CollectionSlot",k=i.forwardRef((function(e,n){var t=e.scope,a=e.children,s=b(h,t),o=(0,c.e)(n,s.collectionRef);return i.createElement(u.g7,{ref:o},a)})),v=e+"CollectionItemSlot",D="data-radix-collection-item",C=i.forwardRef((function(e,n){var t,r=e.scope,l=e.children,d=(0,o.Z)(e,p),_=i.useRef(null),m=(0,c.e)(n,_),g=b(v,r);return i.useEffect((function(){return g.itemMap.set(_,(0,s.Z)({ref:_},d)),function(){g.itemMap.delete(_)}})),i.createElement(u.g7,(t={},(0,a.Z)(t,D,""),(0,a.Z)(t,"ref",m),t),l)}));return[{Provider:S,Slot:k,ItemSlot:C},function(n){var t=b(e+"CollectionConsumer",n);return i.useCallback((function(){var e=t.collectionRef.current;if(!e)return[];var n=Array.from(e.querySelectorAll("[".concat(D,"]")));return Array.from(t.itemMap.values()).sort((function(e,t){return n.indexOf(e.ref.current)-n.indexOf(t.ref.current)}))}),[t.collectionRef,t.itemMap])},m]}},5449:function(e,n,t){"use strict";t.d(n,{F:function(){return o},e:function(){return r}});var a=t(2791);function s(e,n){"function"===typeof e?e(n):null!==e&&void 0!==e&&(e.current=n)}function o(){for(var e=arguments.length,n=new Array(e),t=0;t1&&void 0!==arguments[1]?arguments[1]:[],t=[];function l(n,a){var s=(0,i.createContext)(a),l=t.length;function u(n){var t=n.scope,a=n.children,o=(0,r.Z)(n,c),u=(null===t||void 0===t?void 0:t[e][l])||s,p=(0,i.useMemo)((function(){return o}),Object.values(o));return(0,i.createElement)(u.Provider,{value:p},a)}return t=[].concat((0,o.Z)(t),[a]),u.displayName=n+"Provider",[u,function(t,o){var r=(null===o||void 0===o?void 0:o[e][l])||s,c=(0,i.useContext)(r);if(c)return c;if(void 0!==a)return a;throw new Error("`".concat(t,"` must be used within `").concat(n,"`"))}]}var u=function(){var n=t.map((function(e){return(0,i.createContext)(e)}));return function(t){var o=(null===t||void 0===t?void 0:t[e])||n;return(0,i.useMemo)((function(){return(0,a.Z)({},"__scope".concat(e),(0,s.Z)((0,s.Z)({},t),{},(0,a.Z)({},e,o)))}),[t,o])}};return u.scopeName=e,[l,d.apply(void 0,[u].concat((0,o.Z)(n)))]}function d(){for(var e=arguments.length,n=new Array(e),t=0;t0,Y=j>=U,q=function(e){var n=(0,d.W)(e),t=(0,l.useRef)(!1),a=(0,l.useRef)((function(){}));return(0,l.useEffect)((function(){var e=function(e){if(e.target&&!t.current){var s=function(){k(f,n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(document.removeEventListener("click",a.current),a.current=s,document.addEventListener("click",a.current,{once:!0})):s()}t.current=!1},s=window.setTimeout((function(){document.addEventListener("pointerdown",e)}),0);return function(){window.clearTimeout(s),document.removeEventListener("pointerdown",e),document.removeEventListener("click",a.current)}}),[n]),{onPointerDownCapture:function(){return t.current=!0}}}((function(e){var n=e.target,t=(0,s.Z)(N.branches).some((function(e){return e.contains(n)}));Y&&!t&&(null===D||void 0===D||D(e),null===y||void 0===y||y(e),e.defaultPrevented||null===T||void 0===T||T())})),V=function(e){var n=(0,d.W)(e),t=(0,l.useRef)(!1);return(0,l.useEffect)((function(){var e=function(e){e.target&&!t.current&&k(E,n,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),function(){return document.removeEventListener("focusin",e)}}),[n]),{onFocusCapture:function(){return t.current=!0},onBlurCapture:function(){return t.current=!1}}}((function(e){var n=e.target;(0,s.Z)(N.branches).some((function(e){return e.contains(n)}))||(null===C||void 0===C||C(e),null===y||void 0===y||y(e),e.defaultPrevented||null===T||void 0===T||T())}));return function(e){var n=(0,d.W)(e);(0,l.useEffect)((function(){var e=function(e){"Escape"===e.key&&n(e)};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[n])}((function(e){j===N.layers.size-1&&(null===v||void 0===v||v(e),!e.defaultPrevented&&T&&(e.preventDefault(),T()))})),(0,l.useEffect)((function(){if(O)return S&&(0===N.layersWithOutsidePointerEventsDisabled.size&&(_=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),N.layersWithOutsidePointerEventsDisabled.add(O)),N.layers.add(O),h(),function(){S&&1===N.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=_)}}),[O,S,N]),(0,l.useEffect)((function(){return function(){O&&(N.layers.delete(O),N.layersWithOutsidePointerEventsDisabled.delete(O),h())}}),[O,N]),(0,l.useEffect)((function(){var e=function(){return F({})};return document.addEventListener(g,e),function(){return document.removeEventListener(g,e)}}),[]),(0,l.createElement)(u.WV.div,(0,i.Z)({},A,{ref:M,style:(0,a.Z)({pointerEvents:G?Y?"auto":"none":void 0},e.style),onFocusCapture:(0,c.M)(e.onFocusCapture,V.onFocusCapture),onBlurCapture:(0,c.M)(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:(0,c.M)(e.onPointerDownCapture,q.onPointerDownCapture)}))}));function h(){var e=new CustomEvent(g);document.dispatchEvent(e)}function k(e,n,t,a){var s=a.discrete,o=t.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});n&&o.addEventListener(e,n,{once:!0}),s?(0,u.jH)(o,r):o.dispatchEvent(r)}},1623:function(e,n,t){"use strict";t.d(n,{EW:function(){return o}});var a=t(2791),s=0;function o(){(0,a.useEffect)((function(){var e,n,t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=t[0])&&void 0!==e?e:r()),document.body.insertAdjacentElement("beforeend",null!==(n=t[1])&&void 0!==n?n:r()),s++,function(){1===s&&document.querySelectorAll("[data-radix-focus-guard]").forEach((function(e){return e.remove()})),s--}}),[])}function r(){var e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},4249:function(e,n,t){"use strict";t.d(n,{M:function(){return f}});var a=t(2982),s=t(7762),o=t(885),r=t(4925),i=t(7462),l=t(2791),c=t(5449),u=t(3523),p=t(8112),d=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"],_="focusScope.autoFocusOnMount",m="focusScope.autoFocusOnUnmount",g={bubbles:!1,cancelable:!0},f=(0,l.forwardRef)((function(e,n){var t=e.loop,a=void 0!==t&&t,f=e.trapped,S=void 0!==f&&f,h=e.onMountAutoFocus,D=e.onUnmountAutoFocus,C=(0,r.Z)(e,d),y=(0,l.useState)(null),T=(0,o.Z)(y,2),A=T[0],N=T[1],R=(0,p.W)(h),x=(0,p.W)(D),O=(0,l.useRef)(null),I=(0,c.e)(n,(function(e){return N(e)})),w=(0,l.useRef)({paused:!1,pause:function(){this.paused=!0},resume:function(){this.paused=!1}}).current;(0,l.useEffect)((function(){if(S){var e=function(e){if(!w.paused&&A){var n=e.target;A.contains(n)?O.current=n:k(O.current,{select:!0})}},n=function(e){!w.paused&&A&&(A.contains(e.relatedTarget)||k(O.current,{select:!0}))};return document.addEventListener("focusin",e),document.addEventListener("focusout",n),function(){document.removeEventListener("focusin",e),document.removeEventListener("focusout",n)}}}),[S,A,w.paused]),(0,l.useEffect)((function(){if(A){v.add(w);var e=document.activeElement;if(!A.contains(e)){var n=new CustomEvent(_,g);A.addEventListener(_,R),A.dispatchEvent(n),n.defaultPrevented||(!function(e){var n,t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).select,a=void 0!==t&&t,o=document.activeElement,r=(0,s.Z)(e);try{for(r.s();!(n=r.n()).done;){if(k(n.value,{select:a}),document.activeElement!==o)return}}catch(i){r.e(i)}finally{r.f()}}((t=E(A),t.filter((function(e){return"A"!==e.tagName}))),{select:!0}),document.activeElement===e&&k(A))}return function(){A.removeEventListener(_,R),setTimeout((function(){var n=new CustomEvent(m,g);A.addEventListener(m,x),A.dispatchEvent(n),n.defaultPrevented||k(null!==e&&void 0!==e?e:document.body,{select:!0}),A.removeEventListener(m,x),v.remove(w)}),0)}}var t}),[A,R,x,w]);var F=(0,l.useCallback)((function(e){if((a||S)&&!w.paused){var n="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,t=document.activeElement;if(n&&t){var s=e.currentTarget,r=function(e){var n=E(e),t=b(n,e),a=b(n.reverse(),e);return[t,a]}(s),i=(0,o.Z)(r,2),l=i[0],c=i[1];l&&c?e.shiftKey||t!==c?e.shiftKey&&t===l&&(e.preventDefault(),a&&k(c,{select:!0})):(e.preventDefault(),a&&k(l,{select:!0})):t===s&&e.preventDefault()}}}),[a,S,w.paused]);return(0,l.createElement)(u.WV.div,(0,i.Z)({tabIndex:-1},C,{ref:I,onKeyDown:F}))}));function E(e){for(var n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){var n="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||n?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});t.nextNode();)n.push(t.currentNode);return n}function b(e,n){var t,a=(0,s.Z)(e);try{for(a.s();!(t=a.n()).done;){var o=t.value;if(!S(o,{upTo:n}))return o}}catch(r){a.e(r)}finally{a.f()}}function S(e,n){var t=n.upTo;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function h(e){return e instanceof HTMLInputElement&&"select"in e}function k(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.select,a=void 0!==t&&t;if(e&&e.focus){var s=document.activeElement;e.focus({preventScroll:!0}),e!==s&&h(e)&&a&&e.select()}}var v=function(){var e=[];return{add:function(n){var t=e[0];n!==t&&(null===t||void 0===t||t.pause()),(e=D(e,n)).unshift(n)},remove:function(n){var t;null===(t=(e=D(e,n))[0])||void 0===t||t.resume()}}}();function D(e,n){var t=(0,a.Z)(e),s=t.indexOf(n);return-1!==s&&t.splice(s,1),t}},6147:function(e,n,t){"use strict";var a;t.d(n,{M:function(){return c}});var s=t(885),o=t(2791),r=t(2999),i=(a||(a=t.t(o,2)))["useId".toString()]||function(){},l=0;function c(e){var n=o.useState(i()),t=(0,s.Z)(n,2),a=t[0],c=t[1];return(0,r.b)((function(){e||c((function(e){return null!==e&&void 0!==e?e:String(l++)}))}),[e]),e||(a?"radix-".concat(a):"")}},5965:function(e,n,t){"use strict";t.d(n,{fC:function(){return S},t0:function(){return b}});var a=t(4925),s=t(885),o=t(7462),r=t(2791),i=t(2382),l=t(5449),c=t(3523),u=t(6147),p=["htmlFor","id"],d="Label",_=(0,i.k)(d,{id:void 0,controlRef:{current:null}}),m=(0,s.Z)(_,2),g=m[0],f=m[1],E=(0,r.forwardRef)((function(e,n){var t=e.htmlFor,s=e.id,i=(0,a.Z)(e,p),d=(0,r.useRef)(null),_=(0,r.useRef)(null),m=(0,l.e)(n,_),f=(0,u.M)(s);return(0,r.useEffect)((function(){if(t){var e=document.getElementById(t);if(_.current&&e){var n=function(){return e.getAttribute("aria-labelledby")},a=[f,n()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",a),d.current=e,function(){var t,a=null===(t=n())||void 0===t?void 0:t.replace(f,"");""===a?e.removeAttribute("aria-labelledby"):a&&e.setAttribute("aria-labelledby",a)}}}}),[f,t]),(0,r.createElement)(g,{id:f,controlRef:d},(0,r.createElement)(c.WV.span,(0,o.Z)({role:"label",id:f},i,{ref:m,onMouseDown:function(n){var t;null===(t=e.onMouseDown)||void 0===t||t.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()},onClick:function(n){var t;if(null===(t=e.onClick)||void 0===t||t.call(e,n),d.current&&!n.defaultPrevented){var a=d.current.contains(n.target),s=!0===n.isTrusted;!a&&s&&(d.current.click(),d.current.focus())}}})))})),b=function(e){var n=f("LabelConsumer"),t=n.controlRef;return(0,r.useEffect)((function(){e&&(t.current=e)}),[e,t]),n.id},S=E},238:function(e,n,t){"use strict";t.d(n,{ee:function(){return pn},Eh:function(){return _n},VY:function(){return dn},fC:function(){return un},D7:function(){return Be}});var a=t(4942),s=t(1413),o=t(4925),r=t(885),i=t(7462),l=t(2791),c=t(2982),u=t(4165),p=t(5861),d=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"],_=["strategy"],m=["mainAxis","crossAxis","limiter"];function g(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function E(e){return["top","bottom"].includes(g(e))?"x":"y"}function b(e){return"y"===e?"height":"width"}function S(e,n,t){var a,s=e.reference,o=e.floating,r=s.x+s.width/2-o.width/2,i=s.y+s.height/2-o.height/2,l=E(n),c=b(l),u=s[c]/2-o[c]/2,p="x"===l;switch(g(n)){case"top":a={x:r,y:s.y-o.height};break;case"bottom":a={x:r,y:s.y+s.height};break;case"right":a={x:s.x+s.width,y:i};break;case"left":a={x:s.x-o.width,y:i};break;default:a={x:s.x,y:s.y}}switch(f(n)){case"start":a[l]-=u*(t&&p?-1:1);break;case"end":a[l]+=u*(t&&p?-1:1)}return a}var h=function(){var e=(0,p.Z)((0,u.Z)().mark((function e(n,t,o){var r,i,l,c,p,d,_,m,g,f,E,b,h,k,v,D,C,y,T,A,N,R,x,O,I;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.placement,i=void 0===r?"bottom":r,l=o.strategy,c=void 0===l?"absolute":l,p=o.middleware,d=void 0===p?[]:p,_=o.platform,e.next=9,null==_.isRTL?void 0:_.isRTL(t);case 9:return m=e.sent,e.next=12,_.getElementRects({reference:n,floating:t,strategy:c});case 12:g=e.sent,f=S(g,i,m),E=f.x,b=f.y,h=i,k={},v=0,D=0;case 20:if(!(D0&&L!==P&&m.reference[C]<=m.floating[C],t.abrupt("return",(o={},(0,a.Z)(o,v,h[v]-(B?Ln.floating[o]&&(r=x(r)),{main:r,cross:x(r)}}var I={start:"end",end:"start"};function w(e){return e.replace(/start|end/g,(function(e){return I[e]}))}var F=["top","right","bottom","left"],M=(F.reduce((function(e,n){return e.concat(n,n+"-start",n+"-end")}),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn:function(n){return(0,p.Z)((0,u.Z)().mark((function t(){var a,s,r,i,l,p,_,m,f,E,b,S,h,k,v,C,y,T,A,N,R,I,F,M,L,P,B,U,j,G,Y,q,V,H;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=n.placement,r=n.middlewareData,i=n.rects,l=n.initialPlacement,p=n.platform,_=n.elements,f=(m=e).mainAxis,E=void 0===f||f,b=m.crossAxis,S=void 0===b||b,h=m.fallbackPlacements,k=m.fallbackStrategy,v=void 0===k?"bestFit":k,C=m.flipAlignment,y=void 0===C||C,T=(0,o.Z)(m,d),A=g(s),N=h||(A!==l&&y?function(e){var n=x(e);return[w(e),n,w(n)]}(l):[x(l)]),R=[l].concat((0,c.Z)(N)),t.next=22,D(n,T);case 22:if(I=t.sent,F=[],M=(null==(a=r.flip)?void 0:a.overflows)||[],E&&F.push(I[A]),!S){t.next=36;break}return t.t0=O,t.t1=s,t.t2=i,t.next=31,null==p.isRTL?void 0:p.isRTL(_.floating);case 31:t.t3=t.sent,L=(0,t.t0)(t.t1,t.t2,t.t3),P=L.main,B=L.cross,F.push(I[P],I[B]);case 36:if(M=[].concat((0,c.Z)(M),[{placement:s,overflows:F}]),F.every((function(e){return e<=0}))){t.next=50;break}if(G=(null!=(U=null==(j=r.flip)?void 0:j.index)?U:0)+1,!(Y=R[G])){t.next=40;break}return t.abrupt("return",{data:{index:G,overflows:M},reset:{placement:Y}});case 40:q="bottom",t.t4=v,t.next="bestFit"===t.t4?44:"initialPlacement"===t.t4?47:48;break;case 44:return H=null==(V=M.map((function(e){return[e,e.overflows.filter((function(e){return e>0})).reduce((function(e,n){return e+n}),0)]})).sort((function(e,n){return e[1]-n[1]}))[0])?void 0:V[0].placement,H&&(q=H),t.abrupt("break",48);case 47:q=l;case 48:if(s===q){t.next=50;break}return t.abrupt("return",{reset:{placement:q}});case 50:return t.abrupt("return",{});case 51:case"end":return t.stop()}}),t)})))()}}});function L(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function P(e){return F.some((function(n){return e[n]>=0}))}var B=function(e){var n=void 0===e?{}:e,t=n.strategy,a=void 0===t?"referenceHidden":t,r=(0,o.Z)(n,_);return{name:"hide",fn:function(e){return(0,p.Z)((0,u.Z)().mark((function n(){var t,o,i;return(0,u.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=e.rects,n.t0=a,n.next="referenceHidden"===n.t0?4:"escaped"===n.t0?11:18;break;case 4:return n.t1=L,n.next=7,D(e,(0,s.Z)((0,s.Z)({},r),{},{elementContext:"reference"}));case 7:return n.t2=n.sent,n.t3=t.reference,o=(0,n.t1)(n.t2,n.t3),n.abrupt("return",{data:{referenceHiddenOffsets:o,referenceHidden:P(o)}});case 11:return n.t4=L,n.next=14,D(e,(0,s.Z)((0,s.Z)({},r),{},{altBoundary:!0}));case 14:return n.t5=n.sent,n.t6=t.floating,i=(0,n.t4)(n.t5,n.t6),n.abrupt("return",{data:{escapedOffsets:i,escaped:P(i)}});case 18:return n.abrupt("return",{});case 19:case"end":return n.stop()}}),n)})))()}}},U=function(e){return void 0===e&&(e=0),{name:"offset",options:e,fn:function(n){return(0,p.Z)((0,u.Z)().mark((function t(){var a,o,r;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=n.x,o=n.y,t.next=4,function(){var e=(0,p.Z)((0,u.Z)().mark((function e(n,t){var a,o,r,i,l,c,p,d,_,m,b,S,h,k;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.placement,o=n.platform,r=n.elements,e.next=5,null==o.isRTL?void 0:o.isRTL(r.floating);case 5:return i=e.sent,l=g(a),c=f(a),p="x"===E(a),d=["left","top"].includes(l)?-1:1,_=i&&p?-1:1,m="function"==typeof t?t(n):t,b="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:(0,s.Z)({mainAxis:0,crossAxis:0,alignmentAxis:null},m),S=b.mainAxis,h=b.crossAxis,k=b.alignmentAxis,e.abrupt("return",(c&&"number"==typeof k&&(h="end"===c?-1*k:k),p?{x:h*_,y:S*d}:{x:S*d,y:h*_}));case 14:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}()(n,e);case 4:return r=t.sent,t.abrupt("return",{x:a+r.x,y:o+r.y,data:r});case 6:case"end":return t.stop()}}),t)})))()}}};function j(e){return"x"===e?"y":"x"}var G=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn:function(n){return(0,p.Z)((0,u.Z)().mark((function t(){var r,i,l,c,p,d,_,f,b,S,h,k,v,C,y,T,N,R,x,O,I;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.x,l=n.y,c=n.placement,d=(p=e).mainAxis,_=void 0===d||d,f=p.crossAxis,b=void 0!==f&&f,S=p.limiter,h=void 0===S?{fn:function(e){return{x:e.x,y:e.y}}}:S,k=(0,o.Z)(p,m),v={x:i,y:l},t.next=14,D(n,k);case 14:return C=t.sent,y=E(g(c)),T=j(y),N=v[y],R=v[T],_&&(x="y"===y?"bottom":"right",N=A(N+C["y"===y?"top":"left"],N,N-C[x])),b&&(O="y"===T?"bottom":"right",R=A(R+C["y"===T?"top":"left"],R,R-C[O])),I=h.fn((0,s.Z)((0,s.Z)({},n),{},(r={},(0,a.Z)(r,y,N),(0,a.Z)(r,T,R),r))),t.abrupt("return",(0,s.Z)((0,s.Z)({},I),{},{data:{x:I.x-i,y:I.y-l}}));case 22:case"end":return t.stop()}}),t)})))()}}},Y=function(e){return void 0===e&&(e={}),{options:e,fn:function(n){var t,o=n.x,r=n.y,i=n.placement,l=n.rects,c=n.middlewareData,u=e,p=u.offset,d=void 0===p?0:p,_=u.mainAxis,m=void 0===_||_,f=u.crossAxis,b=void 0===f||f,S={x:o,y:r},h=E(i),k=j(h),v=S[h],D=S[k],C="function"==typeof d?d((0,s.Z)((0,s.Z)({},l),{},{placement:i})):d,y="number"==typeof C?{mainAxis:C,crossAxis:0}:(0,s.Z)({mainAxis:0,crossAxis:0},C);if(m){var T="y"===h?"height":"width",A=l.reference[h]-l.floating[T]+y.mainAxis,N=l.reference[h]+l.reference[T]-y.mainAxis;vN&&(v=N)}if(b){var R,x,O,I,w="y"===h?"width":"height",F=["top","left"].includes(g(i)),M=l.reference[k]-l.floating[w]+(F&&null!=(R=null==(x=c.offset)?void 0:x[k])?R:0)+(F?0:y.crossAxis),L=l.reference[k]+l.reference[w]+(F?0:null!=(O=null==(I=c.offset)?void 0:I[k])?O:0)-(F?y.crossAxis:0);DL&&(D=L)}return t={},(0,a.Z)(t,h,v),(0,a.Z)(t,k,D),t}}};function q(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function V(e){if(null==e)return window;if(!q(e)){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function H(e){return V(e).getComputedStyle(e)}function z(e){return q(e)?"":e?(e.nodeName||"").toLowerCase():""}function W(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Z(e){return e instanceof V(e).HTMLElement}function $(e){return e instanceof V(e).Element}function Q(e){return"undefined"!=typeof ShadowRoot&&(e instanceof V(e).ShadowRoot||e instanceof ShadowRoot)}function K(e){var n=H(e),t=n.overflow,a=n.overflowX,s=n.overflowY;return/auto|scroll|overlay|hidden/.test(t+s+a)}function X(e){return["table","td","th"].includes(z(e))}function J(e){var n=/firefox/i.test(W()),t=H(e);return"none"!==t.transform||"none"!==t.perspective||"paint"===t.contain||["transform","perspective"].includes(t.willChange)||n&&"filter"===t.willChange||n&&!!t.filter&&"none"!==t.filter}function ee(){return!/^((?!chrome|android).)*safari/i.test(W())}var ne=Math.min,te=Math.max,ae=Math.round;function se(e,n,t){var a,s,o,r;void 0===n&&(n=!1),void 0===t&&(t=!1);var i=e.getBoundingClientRect(),l=1,c=1;n&&Z(e)&&(l=e.offsetWidth>0&&ae(i.width)/e.offsetWidth||1,c=e.offsetHeight>0&&ae(i.height)/e.offsetHeight||1);var u=$(e)?V(e):window,p=!ee()&&t,d=(i.left+(p&&null!=(a=null==(s=u.visualViewport)?void 0:s.offsetLeft)?a:0))/l,_=(i.top+(p&&null!=(o=null==(r=u.visualViewport)?void 0:r.offsetTop)?o:0))/c,m=i.width/l,g=i.height/c;return{width:m,height:g,top:_,right:d+m,bottom:_+g,left:d,x:d,y:_}}function oe(e){return(n=e,(n instanceof V(n).Node?e.ownerDocument:e.document)||window.document).documentElement;var n}function re(e){return $(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ie(e){return se(oe(e)).left+re(e).scrollLeft}function le(e,n,t){var a=Z(n),s=oe(n),o=se(e,a&&function(e){var n=se(e);return ae(n.width)!==e.offsetWidth||ae(n.height)!==e.offsetHeight}(n),"fixed"===t),r={scrollLeft:0,scrollTop:0},i={x:0,y:0};if(a||!a&&"fixed"!==t)if(("body"!==z(n)||K(s))&&(r=re(n)),Z(n)){var l=se(n,!0);i.x=l.x+n.clientLeft,i.y=l.y+n.clientTop}else s&&(i.x=ie(s));return{x:o.left+r.scrollLeft-i.x,y:o.top+r.scrollTop-i.y,width:o.width,height:o.height}}function ce(e){return"html"===z(e)?e:e.assignedSlot||e.parentNode||(Q(e)?e.host:null)||oe(e)}function ue(e){return Z(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function pe(e){for(var n=V(e),t=ue(e);t&&X(t)&&"static"===getComputedStyle(t).position;)t=ue(t);return t&&("html"===z(t)||"body"===z(t)&&"static"===getComputedStyle(t).position&&!J(t))?n:t||function(e){var n=ce(e);for(Q(n)&&(n=n.host);Z(n)&&!["html","body"].includes(z(n));){if(J(n))return n;n=n.parentNode}return null}(e)||n}function de(e){if(Z(e))return{width:e.offsetWidth,height:e.offsetHeight};var n=se(e);return{width:n.width,height:n.height}}function _e(e){var n=ce(e);return["html","body","#document"].includes(z(n))?e.ownerDocument.body:Z(n)&&K(n)?n:_e(n)}function me(e,n){var t;void 0===n&&(n=[]);var a=_e(e),s=a===(null==(t=e.ownerDocument)?void 0:t.body),o=V(a),r=s?[o].concat(o.visualViewport||[],K(a)?a:[]):a,i=n.concat(r);return s?i:i.concat(me(r))}function ge(e,n,t){return"viewport"===n?v(function(e,n){var t=V(e),a=oe(e),s=t.visualViewport,o=a.clientWidth,r=a.clientHeight,i=0,l=0;if(s){o=s.width,r=s.height;var c=ee();(c||!c&&"fixed"===n)&&(i=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:i,y:l}}(e,t)):$(n)?function(e,n){var t=se(e,!1,"fixed"===n),a=t.top+e.clientTop,s=t.left+e.clientLeft;return{top:a,left:s,x:s,y:a,right:s+e.clientWidth,bottom:a+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(n,t):v(function(e){var n,t=oe(e),a=re(e),s=null==(n=e.ownerDocument)?void 0:n.body,o=te(t.scrollWidth,t.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=te(t.scrollHeight,t.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),i=-a.scrollLeft+ie(e),l=-a.scrollTop;return"rtl"===H(s||t).direction&&(i+=te(t.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:i,y:l}}(oe(e)))}var fe={getClippingRect:function(e){var n=e.element,t=e.boundary,a=e.rootBoundary,s=e.strategy,o=[].concat((0,c.Z)("clippingAncestors"===t?function(e){var n=me(e),t=["absolute","fixed"].includes(H(e).position)&&Z(e)?pe(e):e;return $(t)?n.filter((function(e){return $(e)&&function(e,n){var t=null==n.getRootNode?void 0:n.getRootNode();if(e.contains(n))return!0;if(t&&Q(t)){var a=n;do{if(a&&e===a)return!0;a=a.parentNode||a.host}while(a)}return!1}(e,t)&&"body"!==z(e)})):[]}(n):[].concat(t)),[a]),r=o[0],i=o.reduce((function(e,t){var a=ge(n,t,s);return e.top=te(a.top,e.top),e.right=ne(a.right,e.right),e.bottom=ne(a.bottom,e.bottom),e.left=te(a.left,e.left),e}),ge(n,r,s));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var n=e.rect,t=e.offsetParent,a=e.strategy,o=Z(t),r=oe(t);if(t===r)return n;var i={scrollLeft:0,scrollTop:0},l={x:0,y:0};if((o||!o&&"fixed"!==a)&&(("body"!==z(t)||K(r))&&(i=re(t)),Z(t))){var c=se(t,!0);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}return(0,s.Z)((0,s.Z)({},n),{},{x:n.x-i.scrollLeft+l.x,y:n.y-i.scrollTop+l.y})},isElement:$,getDimensions:de,getOffsetParent:pe,getDocumentElement:oe,getElementRects:function(e){var n=e.reference,t=e.floating,a=e.strategy;return{reference:le(n,pe(t),a),floating:(0,s.Z)((0,s.Z)({},de(t)),{},{x:0,y:0})}},getClientRects:function(e){return Array.from(e.getClientRects())},isRTL:function(e){return"rtl"===H(e).direction}};function Ee(e,n,t,a){void 0===a&&(a={});var s=a,o=s.ancestorScroll,r=void 0===o||o,i=s.ancestorResize,l=void 0===i||i,u=s.elementResize,p=void 0===u||u,d=s.animationFrame,_=void 0!==d&&d,m=r&&!_,g=l&&!_,f=m||g?[].concat((0,c.Z)($(e)?me(e):[]),(0,c.Z)(me(n))):[];f.forEach((function(e){m&&e.addEventListener("scroll",t,{passive:!0}),g&&e.addEventListener("resize",t)}));var E,b=null;if(p){var S=!0;b=new ResizeObserver((function(){S||t(),S=!1})),$(e)&&!_&&b.observe(e),b.observe(n)}var h=_?se(e):null;return _&&function n(){var a=se(e);!h||a.x===h.x&&a.y===h.y&&a.width===h.width&&a.height===h.height||t(),h=a,E=requestAnimationFrame(n)}(),t(),function(){var e;f.forEach((function(e){m&&e.removeEventListener("scroll",t),g&&e.removeEventListener("resize",t)})),null==(e=b)||e.disconnect(),b=null,_&&cancelAnimationFrame(E)}}var be=t(4164),Se="undefined"!==typeof document?l.useLayoutEffect:l.useEffect;function he(e,n){if(e===n)return!0;if(typeof e!==typeof n)return!1;if("function"===typeof e&&e.toString()===n.toString())return!0;var t,a,s;if(e&&n&&"object"==typeof e){if(Array.isArray(e)){if((t=e.length)!=n.length)return!1;for(a=t;0!==a--;)if(!he(e[a],n[a]))return!1;return!0}if((t=(s=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(a=t;0!==a--;)if(!Object.prototype.hasOwnProperty.call(n,s[a]))return!1;for(a=t;0!==a--;){var o=s[a];if(("_owner"!==o||!e.$$typeof)&&!he(e[o],n[o]))return!1}return!0}return e!==e&&n!==n}function ke(e){var n=void 0===e?{}:e,t=n.middleware,a=n.placement,o=void 0===a?"bottom":a,i=n.strategy,c=void 0===i?"absolute":i,u=n.whileElementsMounted,p=l.useRef(null),d=l.useRef(null),_=function(e){var n=l.useRef(e);return Se((function(){n.current=e})),n}(u),m=l.useRef(null),g=l.useState({x:null,y:null,strategy:c,placement:o,middlewareData:{}}),f=(0,r.Z)(g,2),E=f[0],b=f[1],S=l.useState(t),k=(0,r.Z)(S,2),v=k[0],D=k[1];he(null==v?void 0:v.map((function(e){return e.options})),null==t?void 0:t.map((function(e){return e.options})))||D(t);var C=l.useCallback((function(){p.current&&d.current&&function(e,n,t){return h(e,n,(0,s.Z)({platform:fe},t))}(p.current,d.current,{middleware:v,placement:o,strategy:c}).then((function(e){y.current&&be.flushSync((function(){b(e)}))}))}),[v,o,c]);Se((function(){y.current&&C()}),[C]);var y=l.useRef(!1);Se((function(){return y.current=!0,function(){y.current=!1}}),[]);var T=l.useCallback((function(){if("function"===typeof m.current&&(m.current(),m.current=null),p.current&&d.current)if(_.current){var e=_.current(p.current,d.current,C);m.current=e}else C()}),[C,_]),A=l.useCallback((function(e){p.current=e,T()}),[T]),N=l.useCallback((function(e){d.current=e,T()}),[T]),R=l.useMemo((function(){return{reference:p,floating:d}}),[]);return l.useMemo((function(){return(0,s.Z)((0,s.Z)({},E),{},{update:C,refs:R,reference:A,floating:N})}),[E,C,R,A,N])}var ve=function(e){var n=e.element,t=e.padding;return{name:"arrow",options:e,fn:function(e){return a=n,Object.prototype.hasOwnProperty.call(a,"current")?null!=n.current?N({element:n.current,padding:t}).fn(e):{}:n?N({element:n,padding:t}).fn(e):{};var a}}},De=t(3523),Ce=["children","width","height"],ye=(0,l.forwardRef)((function(e,n){var t=e.children,a=e.width,s=void 0===a?10:a,r=e.height,c=void 0===r?5:r,u=(0,o.Z)(e,Ce);return(0,l.createElement)(De.WV.svg,(0,i.Z)({},u,{ref:n,width:s,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?t:(0,l.createElement)("polygon",{points:"0,0 30,0 15,10"}))})),Te=ye,Ae=t(5449),Ne=t(2382),Re=t(2999),xe=t(9439),Oe=["__scopePopper","virtualRef"],Ie=["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions"],we=["__scopePopper"],Fe="Popper",Me=(0,Ne.b)(Fe),Le=(0,r.Z)(Me,2),Pe=Le[0],Be=Le[1],Ue=Pe(Fe),je=(0,r.Z)(Ue,2),Ge=je[0],Ye=je[1],qe=function(e){var n=e.__scopePopper,t=e.children,a=(0,l.useState)(null),s=(0,r.Z)(a,2),o=s[0],i=s[1];return(0,l.createElement)(Ge,{scope:n,anchor:o,onAnchorChange:i},t)},Ve="PopperAnchor",He=(0,l.forwardRef)((function(e,n){var t=e.__scopePopper,a=e.virtualRef,s=(0,o.Z)(e,Oe),r=Ye(Ve,t),c=(0,l.useRef)(null),u=(0,Ae.e)(n,c);return(0,l.useEffect)((function(){r.onAnchorChange((null===a||void 0===a?void 0:a.current)||c.current)})),a?null:(0,l.createElement)(De.WV.div,(0,i.Z)({},s,{ref:u}))})),ze="PopperContent",We=Pe(ze),Ze=(0,r.Z)(We,2),$e=Ze[0],Qe=Ze[1],Ke=Pe(ze,{hasParent:!1,positionUpdateFns:new Set}),Xe=(0,r.Z)(Ke,2),Je=Xe[0],en=Xe[1],nn=(0,l.forwardRef)((function(e,n){var t,i,c,u,p,d,_,m,g=e.__scopePopper,f=e.side,E=void 0===f?"bottom":f,b=e.sideOffset,S=void 0===b?0:b,h=e.align,k=void 0===h?"center":h,v=e.alignOffset,D=void 0===v?0:v,C=e.arrowPadding,y=void 0===C?0:C,T=e.collisionBoundary,A=void 0===T?[]:T,N=e.collisionPadding,R=void 0===N?0:N,x=e.sticky,O=void 0===x?"partial":x,I=e.hideWhenDetached,w=void 0!==I&&I,F=e.avoidCollisions,L=void 0===F||F,P=(0,o.Z)(e,Ie),j=Ye(ze,g),q=(0,l.useState)(null),V=(0,r.Z)(q,2),H=V[0],z=V[1],W=(0,Ae.e)(n,(function(e){return z(e)})),Z=(0,l.useState)(null),$=(0,r.Z)(Z,2),Q=$[0],K=$[1],X=(0,xe.t)(Q),J=null!==(t=null===X||void 0===X?void 0:X.width)&&void 0!==t?t:0,ee=null!==(i=null===X||void 0===X?void 0:X.height)&&void 0!==i?i:0,ne=E+("center"!==k?"-"+k:""),te="number"===typeof R?R:(0,s.Z)({top:0,right:0,bottom:0,left:0},R),ae=Array.isArray(A)?A:[A],se=ae.length>0,oe={padding:te,boundary:ae.filter(rn),altBoundary:se},re=ke({strategy:"fixed",placement:ne,whileElementsMounted:Ee,middleware:[U({mainAxis:S+ee,alignmentAxis:D}),L?G((0,s.Z)({mainAxis:!0,crossAxis:!1,limiter:"partial"===O?Y():void 0},oe)):void 0,Q?ve({element:Q,padding:y}):void 0,L?M((0,s.Z)({},oe)):void 0,ln({arrowWidth:J,arrowHeight:ee}),w?B({strategy:"referenceHidden"}):void 0].filter(on)}),ie=re.reference,le=re.floating,ce=re.strategy,ue=re.x,pe=re.y,de=re.placement,_e=re.middlewareData,me=re.update;(0,Re.b)((function(){ie(j.anchor)}),[ie,j.anchor]);var ge=null!==ue&&null!==pe,fe=cn(de),be=(0,r.Z)(fe,2),Se=be[0],he=be[1],Ce=null===(c=_e.arrow)||void 0===c?void 0:c.x,ye=null===(u=_e.arrow)||void 0===u?void 0:u.y,Te=0!==(null===(p=_e.arrow)||void 0===p?void 0:p.centerOffset),Ne=(0,l.useState)(),Oe=(0,r.Z)(Ne,2),we=Oe[0],Fe=Oe[1];(0,Re.b)((function(){H&&Fe(window.getComputedStyle(H).zIndex)}),[H]);var Me=en(ze,g),Le=Me.hasParent,Pe=Me.positionUpdateFns,Be=!Le;(0,l.useLayoutEffect)((function(){if(!Be)return Pe.add(me),function(){Pe.delete(me)}}),[Be,Pe,me]),(0,l.useLayoutEffect)((function(){Be&&ge&&Array.from(Pe).reverse().forEach((function(e){return requestAnimationFrame(e)}))}),[Be,ge,Pe]);var Ue=(0,s.Z)((0,s.Z)({"data-side":Se,"data-align":he},P),{},{ref:W,style:(0,s.Z)((0,s.Z)({},P.style),{},{animation:ge?void 0:"none",opacity:null!==(d=_e.hide)&&void 0!==d&&d.referenceHidden?0:void 0})});return(0,l.createElement)("div",{ref:le,"data-radix-popper-content-wrapper":"",style:(0,a.Z)({position:ce,left:0,top:0,transform:ge?"translate3d(".concat(Math.round(ue),"px, ").concat(Math.round(pe),"px, 0)"):"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:we},"--radix-popper-transform-origin",[null===(_=_e.transformOrigin)||void 0===_?void 0:_.x,null===(m=_e.transformOrigin)||void 0===m?void 0:m.y].join(" "))},(0,l.createElement)($e,{scope:g,placedSide:Se,onArrowChange:K,arrowX:Ce,arrowY:ye,shouldHideArrow:Te},Be?(0,l.createElement)(Je,{scope:g,hasParent:!0,positionUpdateFns:Pe},(0,l.createElement)(De.WV.div,Ue)):(0,l.createElement)(De.WV.div,Ue)))})),tn="PopperArrow",an={top:"bottom",right:"left",bottom:"top",left:"right"},sn=(0,l.forwardRef)((function(e,n){var t,r=e.__scopePopper,c=(0,o.Z)(e,we),u=Qe(tn,r),p=an[u.placedSide];return(0,l.createElement)("span",{ref:u.onArrowChange,style:(t={position:"absolute",left:u.arrowX,top:u.arrowY},(0,a.Z)(t,p,0),(0,a.Z)(t,"transformOrigin",{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide]),(0,a.Z)(t,"transform",{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide]),(0,a.Z)(t,"visibility",u.shouldHideArrow?"hidden":void 0),t)},(0,l.createElement)(Te,(0,i.Z)({},c,{ref:n,style:(0,s.Z)((0,s.Z)({},c.style),{},{display:"block"})})))}));function on(e){return void 0!==e}function rn(e){return null!==e}var ln=function(e){return{name:"transformOrigin",options:e,fn:function(n){var t,a,s,o,i,l=n.placement,c=n.rects,u=n.middlewareData,p=0!==(null===(t=u.arrow)||void 0===t?void 0:t.centerOffset),d=p?0:e.arrowWidth,_=p?0:e.arrowHeight,m=cn(l),g=(0,r.Z)(m,2),f=g[0],E={start:"0%",center:"50%",end:"100%"}[g[1]],b=(null!==(a=null===(s=u.arrow)||void 0===s?void 0:s.x)&&void 0!==a?a:0)+d/2,S=(null!==(o=null===(i=u.arrow)||void 0===i?void 0:i.y)&&void 0!==o?o:0)+_/2,h="",k="";return"bottom"===f?(h=p?E:"".concat(b,"px"),k="".concat(-_,"px")):"top"===f?(h=p?E:"".concat(b,"px"),k="".concat(c.floating.height+_,"px")):"right"===f?(h="".concat(-_,"px"),k=p?E:"".concat(S,"px")):"left"===f&&(h="".concat(c.floating.width+_,"px"),k=p?E:"".concat(S,"px")),{data:{x:h,y:k}}}}};function cn(e){var n=e.split("-"),t=(0,r.Z)(n,2),a=t[0],s=t[1];return[a,void 0===s?"center":s]}var un=qe,pn=He,dn=nn,_n=sn},3983:function(e,n,t){"use strict";t.d(n,{f:function(){return u},h:function(){return c}});var a=t(4925),s=t(7462),o=t(2791),r=t(4164),i=t(3523),l=["container"],c=(0,o.forwardRef)((function(e,n){var t,c=e.container,u=void 0===c?null===globalThis||void 0===globalThis||null===(t=globalThis.document)||void 0===t?void 0:t.body:c,p=(0,a.Z)(e,l);return u?r.createPortal((0,o.createElement)(i.WV.div,(0,s.Z)({},p,{ref:n})),u):null})),u=c},2008:function(e,n,t){"use strict";t.d(n,{z:function(){return l}});var a=t(885),s=t(2791),o=t(4164),r=t(5449),i=t(2999);var l=function(e){var n=e.present,t=e.children,l=function(e){var n=(0,s.useState)(),t=(0,a.Z)(n,2),r=t[0],l=t[1],u=(0,s.useRef)({}),p=(0,s.useRef)(e),d=(0,s.useRef)("none"),_=function(e,n){return(0,s.useReducer)((function(e,t){var a=n[e][t];return null!==a&&void 0!==a?a:e}),e)}(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),m=(0,a.Z)(_,2),g=m[0],f=m[1];return(0,s.useEffect)((function(){var e=c(u.current);d.current="mounted"===g?e:"none"}),[g]),(0,i.b)((function(){var n=u.current,t=p.current;if(t!==e){var a=d.current,s=c(n);if(e)f("MOUNT");else if("none"===s||"none"===(null===n||void 0===n?void 0:n.display))f("UNMOUNT");else{f(t&&a!==s?"ANIMATION_OUT":"UNMOUNT")}p.current=e}}),[e,f]),(0,i.b)((function(){if(r){var e=function(e){var n=c(u.current).includes(e.animationName);e.target===r&&n&&(0,o.flushSync)((function(){return f("ANIMATION_END")}))},n=function(e){e.target===r&&(d.current=c(u.current))};return r.addEventListener("animationstart",n),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),function(){r.removeEventListener("animationstart",n),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}f("ANIMATION_END")}),[r,f]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:(0,s.useCallback)((function(e){e&&(u.current=getComputedStyle(e)),l(e)}),[])}}(n),u="function"===typeof t?t({present:l.isPresent}):s.Children.only(t),p=(0,r.e)(l.ref,u.ref);return"function"===typeof t||l.isPresent?(0,s.cloneElement)(u,{ref:p}):null};function c(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}l.displayName="Presence"},3523:function(e,n,t){"use strict";t.d(n,{WV:function(){return p},jH:function(){return d}});var a=t(4942),s=t(1413),o=t(4925),r=t(7462),i=t(2791),l=t(4164),c=t(4682),u=["asChild"],p=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((function(e,n){var t=(0,i.forwardRef)((function(e,t){var a=e.asChild,s=(0,o.Z)(e,u),l=a?c.g7:n;return(0,i.useEffect)((function(){window[Symbol.for("radix-ui")]=!0}),[]),(0,i.createElement)(l,(0,r.Z)({},s,{ref:t}))}));return t.displayName="Primitive.".concat(n),(0,s.Z)((0,s.Z)({},e),{},(0,a.Z)({},n,t))}),{});function d(e,n){e&&(0,l.flushSync)((function(){return e.dispatchEvent(n)}))}},4682:function(e,n,t){"use strict";t.d(n,{A4:function(){return d},g7:function(){return u}});var a=t(1413),s=t(4925),o=t(7462),r=t(2791),i=t(5449),l=["children"],c=["children"],u=(0,r.forwardRef)((function(e,n){var t=e.children,a=(0,s.Z)(e,l),i=r.Children.toArray(t),c=i.find(_);if(c){var u=c.props.children,d=i.map((function(e){return e===c?r.Children.count(u)>1?r.Children.only(null):(0,r.isValidElement)(u)?u.props.children:null:e}));return(0,r.createElement)(p,(0,o.Z)({},a,{ref:n}),(0,r.isValidElement)(u)?(0,r.cloneElement)(u,void 0,d):null)}return(0,r.createElement)(p,(0,o.Z)({},a,{ref:n}),t)}));u.displayName="Slot";var p=(0,r.forwardRef)((function(e,n){var t=e.children,o=(0,s.Z)(e,c);return(0,r.isValidElement)(t)?(0,r.cloneElement)(t,(0,a.Z)((0,a.Z)({},function(e,n){var t=(0,a.Z)({},n),s=function(s){var o=e[s],r=n[s];/^on[A-Z]/.test(s)?t[s]=function(){null===r||void 0===r||r.apply(void 0,arguments),null===o||void 0===o||o.apply(void 0,arguments)}:"style"===s?t[s]=(0,a.Z)((0,a.Z)({},o),r):"className"===s&&(t[s]=[o,r].filter(Boolean).join(" "))};for(var o in n)s(o);return(0,a.Z)((0,a.Z)({},e),t)}(o,t.props)),{},{ref:(0,i.F)(n,t.ref)})):r.Children.count(t)>1?r.Children.only(null):null}));p.displayName="SlotClone";var d=function(e){var n=e.children;return(0,r.createElement)(r.Fragment,null,n)};function _(e){return(0,r.isValidElement)(e)&&e.type===d}},8112:function(e,n,t){"use strict";t.d(n,{W:function(){return s}});var a=t(2791);function s(e){var n=(0,a.useRef)(e);return(0,a.useEffect)((function(){n.current=e})),(0,a.useMemo)((function(){return function(){for(var e,t,a=arguments.length,s=new Array(a),o=0;o=0||Array.prototype.forEach.call(n.children,(function(n){if(u.has(n))e(n);else{var o=n.getAttribute("aria-hidden"),r=null!==o&&"false"!==o,i=(a.get(n)||0)+1,p=(l.get(n)||0)+1;a.set(n,i),l.set(n,p),c.push(n),1===i&&r&&s.set(n,!0),1===p&&n.setAttribute(t,"true"),r||n.setAttribute("aria-hidden","true")}}))}(n),u.clear(),r++,function(){c.forEach((function(e){var n=a.get(e)-1,o=l.get(e)-1;a.set(e,n),l.set(e,o),n||(s.has(e)||e.removeAttribute("aria-hidden"),s.delete(e)),o||e.removeAttribute(t)})),--r||(a=new WeakMap,a=new WeakMap,s=new WeakMap,o={})}}},1694:function(e,n){var t;!function(){"use strict";var a={}.hasOwnProperty;function s(){for(var e=[],n=0;n=0?a=setTimeout(l,n-c):(a=null,t||(i=e.apply(o,s),o=s=null))}null==n&&(n=100);var c=function(){o=this,s=arguments,r=Date.now();var c=t&&!a;return a||(a=setTimeout(l,n)),c&&(i=e.apply(o,s),o=s=null),i};return c.clear=function(){a&&(clearTimeout(a),a=null)},c.flush=function(){a&&(i=e.apply(o,s),o=s=null,clearTimeout(a),a=null)},c}n.debounce=n,e.exports=n},7197:function(e,n,t){var a=t(7009).Symbol;e.exports=a},3665:function(e){e.exports=function(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}},7538:function(e,n,t){var a=t(6478),s=t(4916),o=t(3629),r=t(5174),i=t(6800),l=t(9102),c=Object.prototype.hasOwnProperty;e.exports=function(e,n){var t=o(e),u=!t&&s(e),p=!t&&!u&&r(e),d=!t&&!u&&!p&&l(e),_=t||u||p||d,m=_?a(e.length,String):[],g=m.length;for(var f in e)!n&&!c.call(e,f)||_&&("length"==f||p&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||i(f,g))||m.push(f);return m}},8463:function(e,n,t){var a=t(2526),s=t(9231),o=Object.prototype.hasOwnProperty;e.exports=function(e,n,t){var r=e[n];o.call(e,n)&&s(r,t)&&(void 0!==t||n in e)||a(e,n,t)}},2526:function(e,n,t){var a=t(8528);e.exports=function(e,n,t){"__proto__"==n&&a?a(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}},9066:function(e,n,t){var a=t(7197),s=t(1587),o=t(3581),r=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?s(e):o(e)}},4906:function(e,n,t){var a=t(9066),s=t(3141);e.exports=function(e){return s(e)&&"[object Arguments]"==a(e)}},6703:function(e,n,t){var a=t(4786),s=t(257),o=t(8092),r=t(3100),i=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,p=c.hasOwnProperty,d=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||s(e))&&(a(e)?d:i).test(r(e))}},8150:function(e,n,t){var a=t(9066),s=t(4635),o=t(3141),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&s(e.length)&&!!r[a(e)]}},3654:function(e,n,t){var a=t(2936),s=t(5964),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!a(e))return s(e);var n=[];for(var t in Object(e))o.call(e,t)&&"constructor"!=t&&n.push(t);return n}},8794:function(e,n,t){var a=t(2100),s=t(9833),o=t(9156);e.exports=function(e,n){return o(s(e,n,a),e+"")}},7532:function(e,n,t){var a=t(1547),s=t(8528),o=t(2100),r=s?function(e,n){return s(e,"toString",{configurable:!0,enumerable:!1,value:a(n),writable:!0})}:o;e.exports=r},6478:function(e){e.exports=function(e,n){for(var t=-1,a=Array(e);++t1?t[o-1]:void 0,i=o>2?t[2]:void 0;for(r=e.length>3&&"function"==typeof r?(o--,r):void 0,i&&s(t[0],t[1],i)&&(r=o<3?void 0:r,o=1),n=Object(n);++a-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},3100:function(e){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},5687:function(e,n,t){var a=t(8463),s=t(4503),o=t(9934),r=t(4145),i=t(2936),l=t(2742),c=Object.prototype.hasOwnProperty,u=o((function(e,n){if(i(n)||r(n))s(n,l(n),e);else for(var t in n)c.call(n,t)&&a(e,t,n[t])}));e.exports=u},1547:function(e){e.exports=function(e){return function(){return e}}},9231:function(e){e.exports=function(e,n){return e===n||e!==e&&n!==n}},2100:function(e){e.exports=function(e){return e}},4916:function(e,n,t){var a=t(4906),s=t(3141),o=Object.prototype,r=o.hasOwnProperty,i=o.propertyIsEnumerable,l=a(function(){return arguments}())?a:function(e){return s(e)&&r.call(e,"callee")&&!i.call(e,"callee")};e.exports=l},3629:function(e){var n=Array.isArray;e.exports=n},4145:function(e,n,t){var a=t(4786),s=t(4635);e.exports=function(e){return null!=e&&s(e.length)&&!a(e)}},5174:function(e,n,t){e=t.nmd(e);var a=t(7009),s=t(9488),o=n&&!n.nodeType&&n,r=o&&e&&!e.nodeType&&e,i=r&&r.exports===o?a.Buffer:void 0,l=(i?i.isBuffer:void 0)||s;e.exports=l},4786:function(e,n,t){var a=t(9066),s=t(8092);e.exports=function(e){if(!s(e))return!1;var n=a(e);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},4635:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},8092:function(e){e.exports=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}},3141:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},9102:function(e,n,t){var a=t(8150),s=t(6194),o=t(9494),r=o&&o.isTypedArray,i=r?s(r):a;e.exports=i},2742:function(e,n,t){var a=t(7538),s=t(3654),o=t(4145);e.exports=function(e){return o(e)?a(e):s(e)}},9488:function(e){e.exports=function(){return!1}},1725:function(e){"use strict";var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function s(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(s){return!1}}()?Object.assign:function(e,o){for(var r,i,l=s(e),c=1;c