slice-machine-ui 2.18.1-beta.6 → 2.18.1-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/out/404.html +1 -1
  2. package/out/_next/static/Zy4opMpDS8I-mxQ1kA3m2/_buildManifest.js +1 -0
  3. package/out/_next/static/chunks/157-fa8b348c960c8283.js +3 -0
  4. package/out/_next/static/chunks/256-07f768a2b19b0a0e.js +4 -0
  5. package/out/_next/static/chunks/344-fdb3008f4bb3b0c1.js +1 -0
  6. package/out/_next/static/chunks/484-3e011e79c41f0342.js +1 -0
  7. package/out/_next/static/chunks/500-d3989390f5e8da53.js +1 -0
  8. package/out/_next/static/chunks/52d4c156-89c6ec6efca0a0bb.js +1 -0
  9. package/out/_next/static/chunks/pages/{_app-174a369b49b73427.js → _app-64feff311539f17b.js} +90 -90
  10. package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-816acb31b652239b.js → [customTypeId]-af9376721beb489e.js} +1 -1
  11. package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-669d5479e81b638b.js → [pageTypeId]-a24665e91b882169.js} +1 -1
  12. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-da423aa0da7bc11e.js +1 -0
  13. package/out/_next/static/chunks/pages/slices-59b857edc9f72d5f.js +1 -0
  14. package/out/_next/static/css/{303dad78be1eb854.css → bc89f2cd4e4781f5.css} +1 -1
  15. package/out/_next/static/css/e8e03c0d4003d1eb.css +1 -0
  16. package/out/changelog.html +1 -1
  17. package/out/changes.html +1 -1
  18. package/out/custom-types/[customTypeId].html +1 -1
  19. package/out/custom-types.html +1 -1
  20. package/out/index.html +1 -1
  21. package/out/labs.html +1 -1
  22. package/out/page-types/[pageTypeId].html +1 -1
  23. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  24. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  25. package/out/slices.html +1 -1
  26. package/package.json +3 -3
  27. package/src/legacy/components/Navigation/ChangesItem.tsx +42 -94
  28. package/out/_next/static/AMILL72qfLjZDeK2IRMSB/_buildManifest.js +0 -1
  29. package/out/_next/static/chunks/157-54b8336d20b41933.js +0 -3
  30. package/out/_next/static/chunks/349-7118116b93278f73.js +0 -4
  31. package/out/_next/static/chunks/50-586dc7ab5e584e76.js +0 -1
  32. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-11802744e89707f7.js +0 -1
  33. package/out/_next/static/chunks/pages/slices-f6552e2fbc491c4d.js +0 -1
  34. package/out/_next/static/css/cdee5b195444f185.css +0 -1
  35. /package/out/_next/static/{AMILL72qfLjZDeK2IRMSB → Zy4opMpDS8I-mxQ1kA3m2}/_ssgManifest.js +0 -0
@@ -1,4 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[349],{10727:function(t,e,r){"use strict";r.d(e,{Oq:function(){return f},dO:function(){return s},jn:function(){return o},iz:function(){return d},Dz:function(){return n},cv:function(){return l},oc:function(){return c}});var n=function(t){var e=t.top,r=t.right,n=t.bottom,o=t.left;return{top:e,right:r,bottom:n,left:o,width:r-o,height:n-e,x:o,y:e,center:{x:(r+o)/2,y:(n+e)/2}}},o=function(t,e){return{top:t.top-e.top,left:t.left-e.left,bottom:t.bottom+e.bottom,right:t.right+e.right}},i=function(t,e){return{top:t.top+e.top,left:t.left+e.left,bottom:t.bottom-e.bottom,right:t.right-e.right}},a={top:0,right:0,bottom:0,left:0},s=function(t){var e=t.borderBox,r=t.margin,s=void 0===r?a:r,u=t.border,l=void 0===u?a:u,c=t.padding,f=void 0===c?a:c,d=n(o(e,s)),p=n(i(e,l)),h=n(i(p,f));return{marginBox:d,borderBox:n(e),paddingBox:p,contentBox:h,margin:s,border:l,padding:f}},u=function(t){var e=t.slice(0,-2);if("px"!==t.slice(-2))return 0;var r=Number(e);return isNaN(r)&&function(t,e){if(!t)throw Error("Invariant failed")}(!1),r},l=function(t,e){var r=t.borderBox,n=t.border,o=t.margin,i=t.padding;return s({borderBox:{top:r.top+e.y,left:r.left+e.x,bottom:r.bottom+e.y,right:r.right+e.x},border:n,margin:o,padding:i})},c=function(t,e){return void 0===e&&(e={x:window.pageXOffset,y:window.pageYOffset}),l(t,e)},f=function(t,e){return s({borderBox:t,margin:{top:u(e.marginTop),right:u(e.marginRight),bottom:u(e.marginBottom),left:u(e.marginLeft)},padding:{top:u(e.paddingTop),right:u(e.paddingRight),bottom:u(e.paddingBottom),left:u(e.paddingLeft)},border:{top:u(e.borderTopWidth),right:u(e.borderRightWidth),bottom:u(e.borderBottomWidth),left:u(e.borderLeftWidth)}})},d=function(t){return f(t.getBoundingClientRect(),window.getComputedStyle(t))}},32726:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,r){return null!=t&&e.call(t,r)}},93352:function(t,e,r){var n=r(32726),o=r(1369);t.exports=function(t,e){return null!=t&&o(t,e,n)}},19950:function(t,e,r){var n=r(13940),o=r(26548),i=r(68286);t.exports=function(t,e){var r={};return e=i(e,3),o(t,function(t,o,i){n(r,e(t,o,i),t)}),r}},57370:function(t,e,r){var n=r(34311)(function(t,e,r){return t+(r?"_":"")+e.toLowerCase()});t.exports=n},36631:function(t,e){"use strict";var r=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function n(t,e){if(t.length!==e.length)return!1;for(var n,o,i=0;i<t.length;i++)if(!((n=t[i])===(o=e[i])||r(n)&&r(o)))return!1;return!0}e.Z=function(t,e){void 0===e&&(e=n);var r,o,i=[],a=!1;return function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return a&&r===this&&e(n,i)||(o=t.apply(this,n),a=!0,r=this,i=n),o}}},17296:function(t){"use strict";function e(t){this._maxSize=t,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(t){return this._values[t]},e.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),!(t in this._values)&&this._size++,this._values[t]=e};var r=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,o=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new e(512),u=new e(512),l=new e(512);function c(t){return s.get(t)||s.set(t,f(t).map(function(t){return t.replace(a,"$2")}))}function f(t){return t.match(r)||[""]}function d(t){return"string"==typeof t&&t&&-1!==["'",'"'].indexOf(t.charAt(0))}t.exports={Cache:e,split:f,normalizePath:c,setter:function(t){var e=c(t);return u.get(t)||u.set(t,function(t,r){for(var n=0,o=e.length,i=t;n<o-1;){var a=e[n];if("__proto__"===a||"constructor"===a||"prototype"===a)return t;i=i[e[n++]]}i[e[n]]=r})},getter:function(t,e){var r=c(t);return l.get(t)||l.set(t,function(t){for(var n=0,o=r.length;n<o;){if(null==t&&e)return;t=t[r[n++]]}return t})},join:function(t){return t.reduce(function(t,e){return t+(d(e)||n.test(e)?"["+e+"]":(t?".":"")+e)},"")},forEach:function(t,e,r){!function(t,e,r){var a,s,u,l,c,f=t.length;for(u=0;u<f;u++){(s=t[u])&&(!d(a=s)&&(a.match(o)&&!a.match(n)||i.test(a))&&(s='"'+s+'"'),l=!(c=d(s))&&/^\d+$/.test(s),e.call(r,s,c,l,u,t))}}(Array.isArray(t)?t:f(t),e,r)}}},26947:function(t,e){"use strict";e.Z=function(t){var e=[],r=null,n=function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];e=o,r||(r=requestAnimationFrame(function(){r=null,t.apply(void 0,e)}))};return n.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},n}},34543:function(t,e,r){"use strict";r.d(e,{LFN:function(){return i},SnF:function(){return s},eR7:function(){return a},xqv:function(){return o}});var n=r(68281);function o(t){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"16 18 22 12 16 6"}},{tag:"polyline",attr:{points:"8 6 2 12 8 18"}}]})(t)}function i(t){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}},{tag:"circle",attr:{cx:"8.5",cy:"8.5",r:"1.5"}},{tag:"polyline",attr:{points:"21 15 16 10 5 21"}}]})(t)}function a(t){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"}},{tag:"line",attr:{x1:"8",y1:"12",x2:"16",y2:"12"}}]})(t)}function s(t){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"8",y1:"6",x2:"21",y2:"6"}},{tag:"line",attr:{x1:"8",y1:"12",x2:"21",y2:"12"}},{tag:"line",attr:{x1:"8",y1:"18",x2:"21",y2:"18"}},{tag:"line",attr:{x1:"3",y1:"6",x2:"3.01",y2:"6"}},{tag:"line",attr:{x1:"3",y1:"12",x2:"3.01",y2:"12"}},{tag:"line",attr:{x1:"3",y1:"18",x2:"3.01",y2:"18"}}]})(t)}},92928:function(t,e,r){"use strict";r.d(e,{OK:function(){return F},x4:function(){return C},mQ:function(){return g}});var n,o=r(2784);function i(t){return function(e){return!!e.type&&e.type.tabsRole===t}}var a=i("Tab"),s=i("TabList"),u=i("TabPanel");function l(t,e){return o.Children.map(t,function(t){return null===t?null:a(t)||s(t)||u(t)?e(t):t.props&&t.props.children&&"object"==typeof t.props.children?(0,o.cloneElement)(t,Object.assign({},t.props,{children:l(t.props.children,e)})):t})}var c=r(6277);function f(t){var e=0;return!function t(e,r){return o.Children.forEach(e,function(e){null!==e&&(a(e)||u(e)?r(e):e.props&&e.props.children&&"object"==typeof e.props.children&&(s(e)&&r(e),t(e.props.children,r)))})}(t,function(t){a(t)&&e++}),e}var d=["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys","disableLeftRightKeys"];function p(t){return t&&"getAttribute"in t}function h(t){return p(t)&&t.getAttribute("data-rttab")}function m(t){return p(t)&&"true"===t.getAttribute("aria-disabled")}var v=function(t){var e=(0,o.useRef)([]),r=(0,o.useRef)([]),i=(0,o.useRef)();function p(e,r){e<0||e>=b()||(0,t.onSelect)(e,t.selectedIndex,r)}function v(t){for(var e=b(),r=t+1;r<e;r++)if(!m(g(r)))return r;for(var n=0;n<t;n++)if(!m(g(n)))return n;return t}function y(t){for(var e=t;e--;)if(!m(g(e)))return e;for(e=b();e-- >t;)if(!m(g(e)))return e;return t}function b(){return f(t.children)}function g(t){return e.current["tabs-"+t]}function w(t){var e=t.target;do if(E(e)){if(m(e))return;p([].slice.call(e.parentNode.children).filter(h).indexOf(e),t);return}while(null!=(e=e.parentNode))}function E(t){if(!h(t))return!1;var e=t.parentElement;do{if(e===i.current)return!0;if(e.getAttribute("data-rttabs"))break;e=e.parentElement}while(e);return!1}t.children;var x=t.className,T=(t.disabledTabClassName,t.domRef),_=(t.focus,t.forceRenderTabPanel,t.onSelect,t.selectedIndex,t.selectedTabClassName,t.selectedTabPanelClassName,t.environment,t.disableUpDownKeys,t.disableLeftRightKeys,function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,d));return o.createElement("div",Object.assign({},_,{className:(0,c.Z)(x),onClick:w,onKeyDown:function(e){var r=t.direction,n=t.disableUpDownKeys,o=t.disableLeftRightKeys;if(E(e.target)){var i=t.selectedIndex,a=!1,s=!1;("Space"===e.code||32===e.keyCode||"Enter"===e.code||13===e.keyCode)&&(a=!0,s=!1,w(e)),(o||37!==e.keyCode&&"ArrowLeft"!==e.code)&&(n||38!==e.keyCode&&"ArrowUp"!==e.code)?(o||39!==e.keyCode&&"ArrowRight"!==e.code)&&(n||40!==e.keyCode&&"ArrowDown"!==e.code)?35===e.keyCode||"End"===e.code?(i=function(){for(var t=b();t--;)if(!m(g(t)))return t;return null}(),a=!0,s=!0):(36===e.keyCode||"Home"===e.code)&&(i=function(){for(var t=b(),e=0;e<t;e++)if(!m(g(e)))return e;return null}(),a=!0,s=!0):(i="rtl"===r?y(i):v(i),a=!0,s=!0):(i="rtl"===r?v(i):y(i),a=!0,s=!0),a&&e.preventDefault(),s&&p(i,e)}},ref:function(t){i.current=t,T&&T(t)},"data-rttabs":!0}),function(){var i=0,c=t.children,f=t.disabledTabClassName,d=t.focus,p=t.forceRenderTabPanel,h=t.selectedIndex,m=t.selectedTabClassName,v=t.selectedTabPanelClassName,y=t.environment;r.current=r.current||[];for(var w=r.current.length-b(),E=(0,o.useId)();w++<0;)r.current.push(""+E+r.current.length);return l(c,function(t){var c=t;if(s(t)){var b=0,w=!1;null==n&&function(t){var e=t||("undefined"!=typeof window?window:void 0);try{n=!!(void 0!==e&&e.document&&e.document.activeElement)}catch(t){n=!1}}(y);var E=y||("undefined"!=typeof window?window:void 0);n&&E&&(w=o.Children.toArray(t.props.children).filter(a).some(function(t,e){return E.document.activeElement===g(e)})),c=(0,o.cloneElement)(t,{children:l(t.props.children,function(t){var n="tabs-"+b,i=h===b,a={tabRef:function(t){e.current[n]=t},id:r.current[b],selected:i,focus:i&&(d||w)};return m&&(a.selectedClassName=m),f&&(a.disabledClassName=f),b++,(0,o.cloneElement)(t,a)})})}else if(u(t)){var x={id:r.current[i],selected:h===i};p&&(x.forceRender=p),v&&(x.selectedClassName=v),i++,c=(0,o.cloneElement)(t,x)}return c})}())};v.defaultProps={className:"react-tabs",focus:!1},v.propTypes={};var y=function(t,e){},b=function(t){var e=t.children,r=t.defaultFocus,n=t.defaultIndex,i=t.focusTabOnClick,a=t.onSelect,s=(0,o.useState)(r),u=s[0],l=s[1],c=(0,o.useState)(null===t.selectedIndex?1:0)[0],d=(0,o.useState)(1===c?n||0:null),p=d[0],h=d[1];if((0,o.useEffect)(function(){l(!1)},[]),1===c){var m=f(e);(0,o.useEffect)(function(){null!=p&&h(Math.min(p,Math.max(0,m-1)))},[m])}y(t,c);var b=Object.assign({},t);return b.focus=u,b.onSelect=function(t,e,r){("function"!=typeof a||!1!==a(t,e,r))&&(i&&l(!0),1===c&&h(t))},null!=p&&(b.selectedIndex=p),delete b.defaultFocus,delete b.defaultIndex,delete b.focusTabOnClick,o.createElement(v,b,e)};b.propTypes={},b.defaultProps={defaultFocus:!1,focusTabOnClick:!0,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:!1,disableLeftRightKeys:!1},b.tabsRole="Tabs";var g=b,w=["children","className"],E=function(t){var e=t.children,r=t.className,n=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,w);return o.createElement("ul",Object.assign({},n,{className:(0,c.Z)(r),role:"tablist"}),e)};E.tabsRole="TabList",E.propTypes={},E.defaultProps={className:"react-tabs__tab-list"};var x=["children","className","disabled","disabledClassName","focus","id","selected","selectedClassName","tabIndex","tabRef"],T="react-tabs__tab",_=function(t){var e,r=(0,o.useRef)(),n=t.children,i=t.className,a=t.disabled,s=t.disabledClassName,u=t.focus,l=t.id,f=t.selected,d=t.selectedClassName,p=t.tabIndex,h=t.tabRef,m=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,x);return(0,o.useEffect)(function(){f&&u&&r.current.focus()},[f,u]),o.createElement("li",Object.assign({},m,{className:(0,c.Z)(i,((e={})[d]=f,e[s]=a,e)),ref:function(t){r.current=t,h&&h(t)},role:"tab",id:"tab"+l,"aria-selected":f?"true":"false","aria-disabled":a?"true":"false","aria-controls":"panel"+l,tabIndex:p||(f?"0":null),"data-rttab":!0}),n)};_.propTypes={},_.tabsRole="Tab",_.defaultProps={className:T,disabledClassName:T+"--disabled",focus:!1,id:null,selected:!1,selectedClassName:T+"--selected"};var F=_,O=["children","className","forceRender","id","selected","selectedClassName"],S="react-tabs__tab-panel",k=function(t){var e,r=t.children,n=t.className,i=t.forceRender,a=t.id,s=t.selected,u=t.selectedClassName,l=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,O);return o.createElement("div",Object.assign({},l,{className:(0,c.Z)(n,((e={})[u]=s,e)),role:"tabpanel",id:"panel"+a,"aria-labelledby":"tab"+a}),i||s?r:null)};k.tabsRole="TabPanel",k.propTypes={},k.defaultProps={className:S,forceRender:!1,selectedClassName:S+"--selected"};var C=k},33710:function(t,e,r){"use strict";r.d(e,{Z:function(){return r0}});for(var n,o,i,a,s,u,l,c=r(2784),f=r(13980),d=r.n(f),p="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),h=new Uint8Array(16),m=[],v=0;v<256;++v)m[v]=(v+256).toString(16).substr(1);var y=function(t,e){var r=e||0;return[m[t[r++]],m[t[r++]],m[t[r++]],m[t[r++]],"-",m[t[r++]],m[t[r++]],"-",m[t[r++]],m[t[r++]],"-",m[t[r++]],m[t[r++]],"-",m[t[r++]],m[t[r++]],m[t[r++]],m[t[r++]],m[t[r++]],m[t[r++]]].join("")},b=function(t,e,r){var n=e&&r||0;"string"==typeof t&&(e="binary"===t?Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||function(){if(!p)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return p(h)})();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var i=0;i<16;++i)e[n+i]=o[i];return e||y(o)};function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function w(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach(function(e){x(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function E(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function x(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function T(){return(T=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function F(t,e){return(F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},k=function(t){return t&&t.Math==Math&&t},C=k("object"==typeof globalThis&&globalThis)||k("object"==typeof window&&window)||k("object"==typeof self&&self)||k("object"==typeof S&&S)||function(){return this}()||Function("return this")(),A={},D=function(t){try{return!!t()}catch(t){return!0}},R=!D(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),j=!D(function(){var t=(function(){}).bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),N=Function.prototype.call,L=j?N.bind(N):function(){return N.apply(N,arguments)},I={},P={}.propertyIsEnumerable,$=Object.getOwnPropertyDescriptor,M=$&&!P.call({1:2},1);I.f=M?function(t){var e=$(this,t);return!!e&&e.enumerable}:P;var z=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},U=Function.prototype,B=U.call,V=j&&U.bind.bind(B,B),H=function(t){return j?V(t):function(){return B.apply(t,arguments)}},q=H({}.toString),W=H("".slice),K=function(t){return W(q(t),8,-1)},Y=function(t){if("Function"===K(t))return H(t)},X=Object,Z=Y("".split),J=D(function(){return!X("z").propertyIsEnumerable(0)})?function(t){return"String"==K(t)?Z(t,""):X(t)}:X,G=function(t){return null==t},Q=TypeError,tt=function(t){if(G(t))throw Q("Can't call method on "+t);return t},te=function(t){return J(tt(t))},tr="object"==typeof document&&document.all,tn={all:tr,IS_HTMLDDA:void 0===tr&&void 0!==tr},to=tn.all,ti=tn.IS_HTMLDDA?function(t){return"function"==typeof t||t===to}:function(t){return"function"==typeof t},ta=tn.all,ts=tn.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:ti(t)||t===ta}:function(t){return"object"==typeof t?null!==t:ti(t)},tu=function(t,e){var r;return arguments.length<2?ti(r=C[t])?r:void 0:C[t]&&C[t][e]},tl=Y({}.isPrototypeOf),tc=tu("navigator","userAgent")||"",tf=C.process,td=C.Deno,tp=tf&&tf.versions||td&&td.version,th=tp&&tp.v8;th&&(o=(n=th.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&tc&&(!(n=tc.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=tc.match(/Chrome\/(\d+)/))&&(o=+n[1]);var tm=o,tv=!!Object.getOwnPropertySymbols&&!D(function(){var t=Symbol();return!String(t)||!(Object(t) instanceof Symbol)||!Symbol.sham&&tm&&tm<41}),ty=tv&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,tb=Object,tg=ty?function(t){return"symbol"==typeof t}:function(t){var e=tu("Symbol");return ti(e)&&tl(e.prototype,tb(t))},tw=String,tE=function(t){try{return tw(t)}catch(t){return"Object"}},tx=TypeError,tT=function(t){if(ti(t))return t;throw tx(tE(t)+" is not a function")},t_=TypeError,tF={exports:{}},tO=Object.defineProperty,tS=function(t,e){try{tO(C,t,{value:e,configurable:!0,writable:!0})}catch(r){C[t]=e}return e},tk="__core-js_shared__",tC=C[tk]||tS(tk,{});(tF.exports=function(t,e){return tC[t]||(tC[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var tA=Object,tD=function(t){return tA(tt(t))},tR=Y({}.hasOwnProperty),tj=Object.hasOwn||function(t,e){return tR(tD(t),e)},tN=0,tL=Math.random(),tI=Y(1..toString),tP=function(t){return"Symbol("+(void 0===t?"":t)+")_"+tI(++tN+tL,36)},t$=(0,tF.exports)("wks"),tM=C.Symbol,tz=tM&&tM.for,tU=ty?tM:tM&&tM.withoutSetter||tP,tB=function(t){if(!tj(t$,t)||!(tv||"string"==typeof t$[t])){var e="Symbol."+t;tv&&tj(tM,t)?t$[t]=tM[t]:ty&&tz?t$[t]=tz(e):t$[t]=tU(e)}return t$[t]},tV=function(t,e){var r=t[e];return G(r)?void 0:tT(r)},tH=function(t,e){var r,n;if("string"===e&&ti(r=t.toString)&&!ts(n=L(r,t))||ti(r=t.valueOf)&&!ts(n=L(r,t))||"string"!==e&&ti(r=t.toString)&&!ts(n=L(r,t)))return n;throw t_("Can't convert object to primitive value")},tq=TypeError,tW=tB("toPrimitive"),tK=function(t,e){if(!ts(t)||tg(t))return t;var r,n=tV(t,tW);if(n){if(void 0===e&&(e="default"),!ts(r=L(n,t,e))||tg(r))return r;throw tq("Can't convert object to primitive value")}return void 0===e&&(e="number"),tH(t,e)},tY=function(t){var e=tK(t,"string");return tg(e)?e:e+""},tX=C.document,tZ=ts(tX)&&ts(tX.createElement),tJ=function(t){return tZ?tX.createElement(t):{}},tG=!R&&!D(function(){return 7!=Object.defineProperty(tJ("div"),"a",{get:function(){return 7}}).a}),tQ=Object.getOwnPropertyDescriptor;A.f=R?tQ:function(t,e){if(t=te(t),e=tY(e),tG)try{return tQ(t,e)}catch(t){}if(tj(t,e))return z(!L(I.f,t,e),t[e])};var t0={},t1=R&&D(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),t2=String,t9=TypeError,t3=function(t){if(ts(t))return t;throw t9(t2(t)+" is not an object")},t5=TypeError,t7=Object.defineProperty,t6=Object.getOwnPropertyDescriptor,t4="enumerable",t8="configurable",et="writable";t0.f=R?t1?function(t,e,r){if(t3(t),e=tY(e),t3(r),"function"==typeof t&&"prototype"===e&&"value"in r&&et in r&&!r[et]){var n=t6(t,e);n&&n[et]&&(t[e]=r.value,r={configurable:t8 in r?r[t8]:n[t8],enumerable:t4 in r?r[t4]:n[t4],writable:!1})}return t7(t,e,r)}:t7:function(t,e,r){if(t3(t),e=tY(e),t3(r),tG)try{return t7(t,e,r)}catch(t){}if("get"in r||"set"in r)throw t5("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var ee=R?function(t,e,r){return t0.f(t,e,z(1,r))}:function(t,e,r){return t[e]=r,t},er={exports:{}},en=Function.prototype,eo=R&&Object.getOwnPropertyDescriptor,ei=tj(en,"name")&&(!R||R&&eo(en,"name").configurable),ea=Y(Function.toString);ti(tC.inspectSource)||(tC.inspectSource=function(t){return ea(t)});var es=tC.inspectSource,eu=C.WeakMap,el=ti(eu)&&/native code/.test(String(eu)),ec=(0,tF.exports)("keys"),ef=function(t){return ec[t]||(ec[t]=tP(t))},ed={},ep="Object already initialized",eh=C.TypeError,em=C.WeakMap;if(el||tC.state){var ev=tC.state||(tC.state=new em);ev.get=ev.get,ev.has=ev.has,ev.set=ev.set,i=function(t,e){if(ev.has(t))throw eh(ep);return e.facade=t,ev.set(t,e),e},a=function(t){return ev.get(t)||{}},s=function(t){return ev.has(t)}}else{var ey=ef("state");ed[ey]=!0,i=function(t,e){if(tj(t,ey))throw eh(ep);return e.facade=t,ee(t,ey,e),e},a=function(t){return tj(t,ey)?t[ey]:{}},s=function(t){return tj(t,ey)}}var eb=a,eg=Object.defineProperty,ew=R&&!D(function(){return 8!==eg(function(){},"length",{value:8}).length}),eE=String(String).split("String"),ex=er.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!tj(t,"name")||ei&&t.name!==e)&&(R?eg(t,"name",{value:e,configurable:!0}):t.name=e),ew&&r&&tj(r,"arity")&&t.length!==r.arity&&eg(t,"length",{value:r.arity});try{r&&tj(r,"constructor")&&r.constructor?R&&eg(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n,o=s(n=t)?a(n):i(n,{});return tj(o,"source")||(o.source=eE.join("string"==typeof e?e:"")),t};Function.prototype.toString=ex(function(){return ti(this)&&eb(this).source||es(this)},"toString");var eT=er.exports,e_={},eF=Math.ceil,eO=Math.floor,eS=Math.trunc||function(t){var e=+t;return(e>0?eO:eF)(e)},ek=function(t){var e=+t;return e!=e||0===e?0:eS(e)},eC=Math.max,eA=Math.min,eD=Math.min,eR=function(t){var e;return(e=t.length)>0?eD(ek(e),9007199254740991):0},ej=function(t,e){var r=ek(t);return r<0?eC(r+e,0):eA(r,e)},eN=function(t){return function(e,r,n){var o,i=te(e),a=eR(i),s=ej(n,a);if(t&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===r)return t||s||0;return!t&&-1}},eL={includes:eN(!0),indexOf:eN(!1)}.indexOf,eI=Y([].push),eP=function(t,e){var r,n=te(t),o=0,i=[];for(r in n)!tj(ed,r)&&tj(n,r)&&eI(i,r);for(;e.length>o;)tj(n,r=e[o++])&&(~eL(i,r)||eI(i,r));return i},e$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],eM=e$.concat("length","prototype");e_.f=Object.getOwnPropertyNames||function(t){return eP(t,eM)};var ez={};ez.f=Object.getOwnPropertySymbols;var eU=Y([].concat),eB=tu("Reflect","ownKeys")||function(t){var e=e_.f(t3(t)),r=ez.f;return r?eU(e,r(t)):e},eV=/#|\.prototype\./,eH=function(t,e){var r=eW[eq(t)];return r==eY||r!=eK&&(ti(e)?D(e):!!e)},eq=eH.normalize=function(t){return String(t).replace(eV,".").toLowerCase()},eW=eH.data={},eK=eH.NATIVE="N",eY=eH.POLYFILL="P",eX=A.f,eZ=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(ti(r)&&eT(r,i,n),n.global)o?t[e]=r:tS(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:t0.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},eJ=function(t,e,r){for(var n=eB(e),o=t0.f,i=A.f,a=0;a<n.length;a++){var s=n[a];tj(t,s)||r&&tj(r,s)||o(t,s,i(e,s))}},eG=Y(Y.bind),eQ=Array.isArray||function(t){return"Array"==K(t)},e0=tB("toStringTag"),e1={};e1[e0]="z";var e2="[object z]"===String(e1),e9=tB("toStringTag"),e3=Object,e5="Arguments"==K(function(){return arguments}()),e7=function(t,e){try{return t[e]}catch(t){}},e6=e2?K:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=e7(e=e3(t),e9))?r:e5?K(e):"Object"==(n=K(e))&&ti(e.callee)?"Arguments":n},e4=function(){},e8=[],rt=tu("Reflect","construct"),re=/^\s*(?:class|function)\b/,rr=Y(re.exec),rn=!re.exec(e4),ro=function(t){if(!ti(t))return!1;try{return rt(e4,e8,t),!0}catch(t){return!1}},ri=function(t){if(!ti(t))return!1;switch(e6(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return rn||!!rr(re,es(t))}catch(t){return!0}};ri.sham=!0;var ra=!rt||D(function(){var t;return ro(ro.call)||!ro(Object)||!ro(function(){t=!0})||t})?ri:ro,rs=tB("species"),ru=Array,rl=function(t){var e;return eQ(t)&&(ra(e=t.constructor)&&(e===ru||eQ(e.prototype))?e=void 0:ts(e)&&null===(e=e[rs])&&(e=void 0)),void 0===e?ru:e},rc=function(t,e){return new(rl(t))(0===e?0:e)},rf=Y([].push),rd=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,s=5==t||i;return function(u,l,c,f){for(var d,p,h=tD(u),m=J(h),v=(tT(l),void 0===c?l:j?eG(l,c):function(){return l.apply(c,arguments)}),y=eR(m),b=0,g=f||rc,w=e?g(u,y):r||a?g(u,0):void 0;y>b;b++)if((s||b in m)&&(p=v(d=m[b],b,h),t)){if(e)w[b]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return b;case 2:rf(w,d)}else switch(t){case 4:return!1;case 7:rf(w,d)}}return i?-1:n||o?o:w}},rp={forEach:rd(0),map:rd(1),filter:rd(2),some:rd(3),every:rd(4),find:rd(5),findIndex:rd(6),filterReject:rd(7)},rh={},rm=Object.keys||function(t){return eP(t,e$)};rh.f=R&&!t1?Object.defineProperties:function(t,e){t3(t);for(var r,n=te(e),o=rm(e),i=o.length,a=0;i>a;)t0.f(t,r=o[a++],n[r]);return t};var rv=tu("document","documentElement"),ry="prototype",rb="script",rg=ef("IE_PROTO"),rw=function(){},rE=function(t){return"<"+rb+">"+t+"</"+rb+">"},rx=function(t){t.write(rE("")),t.close();var e=t.parentWindow.Object;return t=null,e},rT=function(){var t,e=tJ("iframe");return e.style.display="none",rv.appendChild(e),e.src=String("java"+rb+":"),(t=e.contentWindow.document).open(),t.write(rE("document.F=Object")),t.close(),t.F},r_=function(){try{u=new ActiveXObject("htmlfile")}catch(t){}r_="undefined"!=typeof document?document.domain&&u?rx(u):rT():rx(u);for(var t=e$.length;t--;)delete r_[ry][e$[t]];return r_()};ed[rg]=!0;var rF=Object.create||function(t,e){var r;return null!==t?(rw[ry]=t3(t),r=new rw,rw[ry]=null,r[rg]=t):r=r_(),void 0===e?r:rh.f(r,e)},rO=t0.f,rS=tB("unscopables"),rk=Array.prototype;void 0==rk[rS]&&rO(rk,rS,{configurable:!0,value:rF(null)});var rC=rp.find,rA="find",rD=!0;rA in[]&&[,][rA](function(){rD=!1}),function(t,e){var r,n,o,i,a,s=t.target,u=t.global,l=t.stat;if(r=u?C:l?C[s]||tS(s,{}):(C[s]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=eX(r,n))&&a.value:r[n],!eH(u?n:s+(l?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;eJ(i,o)}(t.sham||o&&o.sham)&&ee(i,"sham",!0),eZ(r,n,i,t)}}({target:"Array",proto:!0,forced:rD},{find:function(t){return rC(this,t,arguments.length>1?arguments[1]:void 0)}}),rk[rS][rA]=!0;var rR="__react_tooltip_hide_event",rj="__react_tooltip_rebuild_event",rN="__react_tooltip_show_event",rL=function(t,e){var r;"function"==typeof window.CustomEvent?r=new window.CustomEvent(t,{detail:e}):(r=document.createEvent("Event")).initEvent(t,!1,!0,e),window.dispatchEvent(r)},rI=function(t,e){var r=this.state.show,n=this.props.id,o=this.isCapture(e.currentTarget),i=e.currentTarget.getAttribute("currentItem");o||e.stopPropagation(),r&&"true"===i?t||this.hideTooltip(e):(e.currentTarget.setAttribute("currentItem","true"),rP(e.currentTarget,this.getTargetArray(n)),this.showTooltip(e))},rP=function(t,e){for(var r=0;r<e.length;r++)t!==e[r]?e[r].setAttribute("currentItem","false"):e[r].setAttribute("currentItem","true")},r$={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(t,e,r){this.id in t?t[this.id][e]=r:Object.defineProperty(t,this.id,{configurable:!0,value:x({},e,r)})},get:function(t,e){var r=t[this.id];if(void 0!==r)return r[e]}},rM=function(t){var e={};for(var r in t)"function"==typeof t[r]?e[r]=t[r].bind(t):e[r]=t[r];return e},rz=function(t,e,r){for(var n,o,i=e.respectEffect,a=e.customEvent,s=this.props.id,u=null,l=r.target;null===u&&null!==l;)o=l,u=l.getAttribute("data-tip")||null,n=l.getAttribute("data-for")||null,l=l.parentElement;if(l=o||r.target,!this.isCustomEvent(l)||void 0!==a&&a){var c=null==s&&null==n||n===s;if(null!=u&&(!(void 0!==i&&i)||"float"===this.getEffect(l))&&c){var f=rM(r);f.currentTarget=l,t(f)}}},rU=function(t,e){var r={};return t.forEach(function(t){var n=t.getAttribute(e);n&&n.split(" ").forEach(function(t){return r[t]=!0})}),r},rB=function(){return document.getElementsByTagName("body")[0]};function rV(t,e,r,n,o,i,a){var s,u=rH(r),l=u.width,c=u.height,f=rH(e),d=f.width,p=f.height,h=rq(t,e,i),m=h.mouseX,v=h.mouseY,y=rW(i,d,p,l,c),b=rK(a),g=b.extraOffsetX,w=b.extraOffsetY,E=window.innerWidth,x=window.innerHeight,T=rY(r),_=T.parentTop,F=T.parentLeft,S=function(t){return m+y[t].l+g},k=function(t){return v+y[t].t+w},C=function(t){var e;return!(0>S(e=t)||m+y[e].r+g>E||0>k(e)||v+y[e].b+w>x)},A={top:C("top"),bottom:C("bottom"),left:C("left"),right:C("right")},D=function(){var t,e=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return O(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O(t,void 0)}}(t))){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(o.split(",").concat(n,["top","bottom","left","right"]));try{for(e.s();!(t=e.n()).done;){var r=t.value;if(A[r])return r}}catch(t){e.e(t)}finally{e.f()}return n}(),R=!1;return(D&&D!==n&&(R=!0,s=D),R)?{isNewState:!0,newState:{place:s}}:{isNewState:!1,position:{left:parseInt(S(n)-F,10),top:parseInt(k(n)-_,10)}}}var rH=function(t){var e=t.getBoundingClientRect(),r=e.height,n=e.width;return{height:parseInt(r,10),width:parseInt(n,10)}},rq=function(t,e,r){var n=e.getBoundingClientRect(),o=n.top,i=n.left,a=rH(e),s=a.width,u=a.height;return"float"===r?{mouseX:t.clientX,mouseY:t.clientY}:{mouseX:i+s/2,mouseY:o+u/2}},rW=function(t,e,r,n,o){var i,a,s,u;return"float"===t?(i={l:-(n/2),r:n/2,t:-(o+3+2),b:-3},s={l:-(n/2),r:n/2,t:15,b:o+3+2+12},u={l:-(n+3+2),r:-3,t:-(o/2),b:o/2},a={l:3,r:n+3+2,t:-(o/2),b:o/2}):"solid"===t&&(i={l:-(n/2),r:n/2,t:-(r/2+o+2),b:-(r/2)},s={l:-(n/2),r:n/2,t:r/2,b:r/2+o+2},u={l:-(n+e/2+2),r:-(e/2),t:-(o/2),b:o/2},a={l:e/2,r:n+e/2+2,t:-(o/2),b:o/2}),{top:i,bottom:s,left:u,right:a}},rK=function(t){var e=0,r=0;for(var n in"[object String]"===Object.prototype.toString.apply(t)&&(t=JSON.parse(t.toString().replace(/'/g,'"'))),t)"top"===n?r-=parseInt(t[n],10):"bottom"===n?r+=parseInt(t[n],10):"left"===n?e-=parseInt(t[n],10):"right"===n&&(e+=parseInt(t[n],10));return{extraOffsetX:e,extraOffsetY:r}},rY=function(t){for(var e=t;e;){var r=window.getComputedStyle(e);if("none"!==r.getPropertyValue("transform")||"transform"===r.getPropertyValue("will-change"))break;e=e.parentElement}return{parentTop:e&&e.getBoundingClientRect().top||0,parentLeft:e&&e.getBoundingClientRect().left||0}};function rX(t,e,r,n){if(e)return e;if(null!=r)return r;if(null===r)return null;var o=/<br\s*\/?>/;return n&&"false"!==n&&o.test(t)?t.split(o).map(function(t,e){return c.createElement("span",{key:e,className:"multi-line"},t)}):t}function rZ(t){var e={};return Object.keys(t).filter(function(t){return/(^aria-\w+$|^role$)/.test(t)}).forEach(function(r){e[r]=t[r]}),e}function rJ(t){var e=t.length;return t.hasOwnProperty?Array.prototype.slice.call(t):Array(e).fill().map(function(e){return t[e]})}var rG={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}},rQ={tooltip:3,arrow:0},r0=((((((((x(l=function(t){(function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&F(t,e)})(i,t);var e,r,n,o=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=_(i);return t=e?Reflect.construct(r,arguments,_(this).constructor):r.apply(this,arguments),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function i(t){var e;return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this,t)).state={uuid:t.uuid||"t"+b(),place:t.place||"top",desiredPlace:t.place||"top",type:t.type||"dark",effect:t.effect||"float",show:!1,border:!1,borderClass:"border",customColors:{},customRadius:{},offset:{},padding:t.padding,extraClass:"",html:!1,delayHide:0,delayShow:0,event:t.event||null,eventOff:t.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:rZ(t),isEmptyTip:!1,disable:!1,possibleCustomEvents:t.possibleCustomEvents||"",possibleCustomEventsOff:t.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},e.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),e.mount=!0,e.delayShowLoop=null,e.delayHideLoop=null,e.delayReshow=null,e.intervalUpdateContent=null,e}return r=[{key:"bind",value:function(t){var e=this;t.forEach(function(t){e[t]=e[t].bind(e)})}},{key:"componentDidMount",value:function(){var t=this.props;t.insecure;var e=t.resizeHide,r=t.disableInternalStyle;this.mount=!0,this.bindListener(),this.bindWindowEvents(e),r||this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var t,e=this.tooltipRef;if(e){for(var r=e.parentNode;r.parentNode;)r=r.parentNode;switch(r.constructor.name){case"Document":case"HTMLDocument":case void 0:t=r.head;break;default:t=r}if(!t.querySelector("style[data-react-tooltip]")){var n=document.createElement("style");n.textContent='.__react_component_tooltip {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n left: -999em;\n opacity: 0;\n position: fixed;\n pointer-events: none;\n transition: opacity 0.3s ease-out;\n top: -999em;\n visibility: hidden;\n z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n}\n.__react_component_tooltip.show {\n opacity: 0.9;\n margin-top: 0;\n margin-left: 0;\n visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n bottom: 0;\n left: 50%;\n margin-left: -11px;\n}\n.__react_component_tooltip.place-bottom::before {\n top: 0;\n left: 50%;\n margin-left: -11px;\n}\n.__react_component_tooltip.place-left::before {\n right: 0;\n top: 50%;\n margin-top: -9px;\n}\n.__react_component_tooltip.place-right::before {\n left: 0;\n top: 50%;\n margin-top: -9px;\n}\n.__react_component_tooltip .multi-line {\n display: block;\n padding: 2px 0;\n text-align: center;\n}',n.setAttribute("data-react-tooltip","true"),t.appendChild(n)}}}},{key:"mouseOnToolTip",value:function(){return!!this.state.show&&!!this.tooltipRef&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(t){var e,r=[];if(t){var n=t.replace(/\\/g,"\\\\").replace(/"/g,'\\"');e='[data-tip][data-for="'.concat(n,'"]')}else e="[data-tip]:not([data-for])";return rJ(document.getElementsByTagName("*")).filter(function(t){return t.shadowRoot}).forEach(function(t){r=r.concat(rJ(t.shadowRoot.querySelectorAll(e)))}),r.concat(rJ(document.querySelectorAll(e)))}},{key:"bindListener",value:function(){var t=this,e=this.props,r=e.id,n=e.globalEventOff,o=e.isCapture,i=this.getTargetArray(r);i.forEach(function(e){null===e.getAttribute("currentItem")&&e.setAttribute("currentItem","false"),t.unbindBasicListener(e),t.isCustomEvent(e)&&t.customUnbindListener(e)}),this.isBodyMode()?this.bindBodyListener(i):i.forEach(function(e){var r=t.isCapture(e),n=t.getEffect(e);if(t.isCustomEvent(e)){t.customBindListener(e);return}e.addEventListener("mouseenter",t.showTooltip,r),e.addEventListener("focus",t.showTooltip,r),"float"===n&&e.addEventListener("mousemove",t.updateTooltip,r),e.addEventListener("mouseleave",t.hideTooltip,r),e.addEventListener("blur",t.hideTooltip,r)}),n&&(window.removeEventListener(n,this.hideTooltip),window.addEventListener(n,this.hideTooltip,o)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var t=this,e=this.props,r=e.id,n=e.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(r).forEach(function(e){t.unbindBasicListener(e),t.isCustomEvent(e)&&t.customUnbindListener(e)}),n&&window.removeEventListener(n,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(t){var e=this.isCapture(t);t.removeEventListener("mouseenter",this.showTooltip,e),t.removeEventListener("mousemove",this.updateTooltip,e),t.removeEventListener("mouseleave",this.hideTooltip,e)}},{key:"getTooltipContent",value:function(){var t,e=this.props,r=e.getContent,n=e.children;return r&&(t=Array.isArray(r)?r[0]&&r[0](this.state.originTooltip):r(this.state.originTooltip)),rX(this.state.originTooltip,n,t,this.state.isMultiline)}},{key:"isEmptyTip",value:function(t){return"string"==typeof t&&""===t||null===t}},{key:"showTooltip",value:function(t,e){if(this.tooltipRef&&(!e||this.getTargetArray(this.props.id).some(function(e){return e===t.currentTarget}))){var r=this.props,n=r.multiline,o=r.getContent,i=t.currentTarget.getAttribute("data-tip"),a=t.currentTarget.getAttribute("data-multiline")||n||!1,s=t instanceof window.FocusEvent||e,u=!0;t.currentTarget.getAttribute("data-scroll-hide")?u="true"===t.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(u=this.props.scrollHide),t&&t.currentTarget&&t.currentTarget.setAttribute&&t.currentTarget.setAttribute("aria-describedby",this.props.id||this.state.uuid);var l=t.currentTarget.getAttribute("data-place")||this.props.place||"top",c=s&&"solid"||this.getEffect(t.currentTarget),f=t.currentTarget.getAttribute("data-offset")||this.props.offset||{},d=rV(t,t.currentTarget,this.tooltipRef,l.split(",")[0],l,c,f);d.position&&this.props.overridePosition&&(d.position=this.props.overridePosition(d.position,t,t.currentTarget,this.tooltipRef,l,l,c,f));var p=d.isNewState?d.newState.place:l.split(",")[0];this.clearTimer();var h=t.currentTarget,m=this.state.show?h.getAttribute("data-delay-update")||this.props.delayUpdate:0,v=this,y=function(){v.setState({originTooltip:i,isMultiline:a,desiredPlace:l,place:p,type:h.getAttribute("data-type")||v.props.type||"dark",customColors:{text:h.getAttribute("data-text-color")||v.props.textColor||null,background:h.getAttribute("data-background-color")||v.props.backgroundColor||null,border:h.getAttribute("data-border-color")||v.props.borderColor||null,arrow:h.getAttribute("data-arrow-color")||v.props.arrowColor||null},customRadius:{tooltip:h.getAttribute("data-tooltip-radius")||v.props.tooltipRadius||"3",arrow:h.getAttribute("data-arrow-radius")||v.props.arrowRadius||"0"},effect:c,offset:f,padding:h.getAttribute("data-padding")||v.props.padding,html:(h.getAttribute("data-html")?"true"===h.getAttribute("data-html"):v.props.html)||!1,delayShow:h.getAttribute("data-delay-show")||v.props.delayShow||0,delayHide:h.getAttribute("data-delay-hide")||v.props.delayHide||0,delayUpdate:h.getAttribute("data-delay-update")||v.props.delayUpdate||0,border:(h.getAttribute("data-border")?"true"===h.getAttribute("data-border"):v.props.border)||!1,borderClass:h.getAttribute("data-border-class")||v.props.borderClass||"border",extraClass:h.getAttribute("data-class")||v.props.class||v.props.className||"",disable:(h.getAttribute("data-tip-disable")?"true"===h.getAttribute("data-tip-disable"):v.props.disable)||!1,currentTarget:h},function(){u&&v.addScrollListener(v.state.currentTarget),v.updateTooltip(t),o&&Array.isArray(o)&&(v.intervalUpdateContent=setInterval(function(){if(v.mount){var t=rX(i,"",v.props.getContent[0](),a),e=v.isEmptyTip(t);v.setState({isEmptyTip:e}),v.updatePosition()}},o[1]))})};m?this.delayReshow=setTimeout(y,m):y()}}},{key:"updateTooltip",value:function(t){var e=this,r=this.state,n=r.delayShow,o=r.disable,i=this.props,a=i.afterShow,s=i.disable,u=this.getTooltipContent(),l=t.currentTarget||t.target;if(!(this.mouseOnToolTip()||this.isEmptyTip(u)||o||s)){var c=this.state.show?0:parseInt(n,10),f=function(){if(Array.isArray(u)&&u.length>0||u){var r=!e.state.show;e.setState({currentEvent:t,currentTarget:l,show:!0},function(){e.updatePosition(function(){r&&a&&a(t)})})}};this.delayShowLoop&&clearTimeout(this.delayShowLoop),c?this.delayShowLoop=setTimeout(f,c):(this.delayShowLoop=null,f())}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},o=this.state.disable,i=n.isScroll?0:this.state.delayHide,a=this.props,s=a.afterHide,u=a.disable,l=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(l)&&!o&&!u){if(e&&(!this.getTargetArray(this.props.id).some(function(e){return e===t.currentTarget})||!this.state.show))return;t&&t.currentTarget&&t.currentTarget.removeAttribute&&t.currentTarget.removeAttribute("aria-describedby");var c=function(){var e=r.state.show;if(r.mouseOnToolTip()){r.listenForTooltipExit();return}r.removeListenerForTooltipExit(),r.setState({show:!1},function(){r.removeScrollListener(r.state.currentTarget),e&&s&&s(t)})};this.clearTimer(),i?this.delayHideLoop=setTimeout(c,parseInt(i,10)):c()}}},{key:"hideTooltipOnScroll",value:function(t,e){this.hideTooltip(t,e,{isScroll:!0})}},{key:"addScrollListener",value:function(t){var e=this.isCapture(t);window.addEventListener("scroll",this.hideTooltipOnScroll,e)}},{key:"removeScrollListener",value:function(t){var e=this.isCapture(t);window.removeEventListener("scroll",this.hideTooltipOnScroll,e)}},{key:"updatePosition",value:function(t){var e=this,r=this.state,n=r.currentEvent,o=r.currentTarget,i=r.place,a=r.desiredPlace,s=r.effect,u=r.offset,l=this.tooltipRef,c=rV(n,o,l,i,a,s,u);if(c.position&&this.props.overridePosition&&(c.position=this.props.overridePosition(c.position,n,o,l,i,a,s,u)),c.isNewState)return this.setState(c.newState,function(){e.updatePosition(t)});t&&"function"==typeof t&&t(),l.style.left=c.position.left+"px",l.style.top=c.position.top+"px"}},{key:"clearTimer",value:function(){this.delayShowLoop&&(clearTimeout(this.delayShowLoop),this.delayShowLoop=null),this.delayHideLoop&&(clearTimeout(this.delayHideLoop),this.delayHideLoop=null),this.delayReshow&&(clearTimeout(this.delayReshow),this.delayReshow=null),this.intervalUpdateContent&&(clearInterval(this.intervalUpdateContent),this.intervalUpdateContent=null)}},{key:"hasCustomColors",value:function(){var t=this;return!!(Object.keys(this.state.customColors).find(function(e){return"border"!==e&&t.state.customColors[e]})||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var t,e,r,n,o,a,s,u,l,f,d,p,h,m,v=this,y=this.state,b=y.extraClass,g=y.html,E=y.ariaProps,x=y.disable,_=y.uuid,F=this.getTooltipContent(),O=this.isEmptyTip(F),S=this.props.disableInternalStyle?"":(l=this.state.uuid,f=this.state.customColors,d=this.state.type,p=this.state.border,h=this.state.padding,m=this.state.customRadius,function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"8px 21px",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rQ,o=e.text,i=e.background,a=e.border,s=e.arrow,u=n.arrow,l=n.tooltip;return"\n .".concat(t," {\n color: ").concat(o,";\n background: ").concat(i,";\n border: 1px solid ").concat(a,";\n border-radius: ").concat(l,"px;\n padding: ").concat(r,";\n }\n\n .").concat(t,".place-top {\n margin-top: -10px;\n }\n .").concat(t,'.place-top::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: 2;\n width: 20px;\n height: 12px;\n }\n .').concat(t,'.place-top::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(u,"px;\n border: 1px solid ").concat(a,";\n background-color: ").concat(s,";\n z-index: -2;\n bottom: -6px;\n left: 50%;\n margin-left: -6px;\n transform: rotate(135deg);\n }\n\n .").concat(t,".place-bottom {\n margin-top: 10px;\n }\n .").concat(t,'.place-bottom::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: -1;\n width: 18px;\n height: 10px;\n }\n .').concat(t,'.place-bottom::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(u,"px;\n border: 1px solid ").concat(a,";\n background-color: ").concat(s,";\n z-index: -2;\n top: -6px;\n left: 50%;\n margin-left: -6px;\n transform: rotate(45deg);\n }\n\n .").concat(t,".place-left {\n margin-left: -10px;\n }\n .").concat(t,'.place-left::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: -1;\n width: 10px;\n height: 18px;\n }\n .').concat(t,'.place-left::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(u,"px;\n border: 1px solid ").concat(a,";\n background-color: ").concat(s,";\n z-index: -2;\n right: -6px;\n top: 50%;\n margin-top: -6px;\n transform: rotate(45deg);\n }\n\n .").concat(t,".place-right {\n margin-left: 10px;\n }\n .").concat(t,'.place-right::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: -1;\n width: 10px;\n height: 18px;\n }\n .').concat(t,'.place-right::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(u,"px;\n border: 1px solid ").concat(a,";\n background-color: ").concat(s,";\n z-index: -2;\n left: -6px;\n top: 50%;\n margin-top: -6px;\n transform: rotate(-135deg);\n }\n ")}(l,(t=f,e=d,r=p,n=t.text,o=t.background,a=t.border,s=t.arrow?t.arrow:t.background,u=rG[e]?w({},rG[e]):void 0,n&&(u.text=n),o&&(u.background=o),r&&(a?u.border=a:u.border="light"===e?"black":"white"),s&&(u.arrow=s),u),h,m)),k="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||x||O?"":" show")+(this.state.border?" "+this.state.borderClass:"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),C=this.props.wrapper;0>i.supportedWrappers.indexOf(C)&&(C=i.defaultProps.wrapper);var A=[k,b].filter(Boolean).join(" ");if(!g)return c.createElement(C,T({className:"".concat(A),id:this.props.id||_},E,{ref:function(t){return v.tooltipRef=t},"data-id":"tooltip"}),S&&c.createElement("style",{dangerouslySetInnerHTML:{__html:S},"aria-hidden":"true"}),F);var D="".concat(F).concat(S?'\n<style aria-hidden="true">'.concat(S,"</style>"):"");return c.createElement(C,T({className:"".concat(A),id:this.props.id||_,ref:function(t){return v.tooltipRef=t}},E,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:D}}))}}],n=[{key:"propTypes",get:function(){return{uuid:d().string,children:d().any,place:d().string,type:d().string,effect:d().string,offset:d().object,padding:d().string,multiline:d().bool,border:d().bool,borderClass:d().string,textColor:d().string,backgroundColor:d().string,borderColor:d().string,arrowColor:d().string,arrowRadius:d().string,tooltipRadius:d().string,insecure:d().bool,class:d().string,className:d().string,id:d().string,html:d().bool,delayHide:d().number,delayUpdate:d().number,delayShow:d().number,event:d().string,eventOff:d().string,isCapture:d().bool,globalEventOff:d().string,getContent:d().any,afterShow:d().func,afterHide:d().func,overridePosition:d().func,disable:d().bool,scrollHide:d().bool,resizeHide:d().bool,wrapper:d().string,bodyMode:d().bool,possibleCustomEvents:d().string,possibleCustomEventsOff:d().string,clickable:d().bool,disableInternalStyle:d().bool}}},{key:"getDerivedStateFromProps",value:function(t,e){var r=e.ariaProps,n=rZ(t);return Object.keys(n).some(function(t){return n[t]!==r[t]})?w(w({},e),{},{ariaProps:n}):null}}],r&&E(i.prototype,r),n&&E(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(c.Component),"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),x(l,"supportedWrappers",["div","span"]),x(l,"displayName","ReactTooltip"),l).prototype.bindRemovalTracker=function(){var t=this,e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=e){var r=new e(function(e){for(var r=0;r<e.length;r++)for(var n=e[r],o=0;o<n.removedNodes.length;o++)if(n.removedNodes[o]===t.state.currentTarget){t.hideTooltip();return}});r.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=r}},l.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)},l).prototype.isBodyMode=function(){return!!this.props.bodyMode},l.prototype.bindBodyListener=function(t){var e=this,r=this.state,n=r.event,o=r.eventOff,i=r.possibleCustomEvents,a=r.possibleCustomEventsOff,s=rB(),u=rU(t,"data-event"),l=rU(t,"data-event-off");null!=n&&(u[n]=!0),null!=o&&(l[o]=!0),i.split(" ").forEach(function(t){return u[t]=!0}),a.split(" ").forEach(function(t){return l[t]=!0}),this.unbindBodyListener(s);var c=this.bodyModeListeners={};for(var f in null==n&&(c.mouseover=rz.bind(this,this.showTooltip,{}),c.mousemove=rz.bind(this,this.updateTooltip,{respectEffect:!0}),c.mouseout=rz.bind(this,this.hideTooltip,{})),u)c[f]=rz.bind(this,function(t){var r=t.currentTarget.getAttribute("data-event-off")||o;rI.call(e,r,t)},{customEvent:!0});for(var d in l)c[d]=rz.bind(this,this.hideTooltip,{customEvent:!0});for(var p in c)s.addEventListener(p,c[p])},l.prototype.unbindBodyListener=function(t){t=t||rB();var e=this.bodyModeListeners;for(var r in e)t.removeEventListener(r,e[r])},l).prototype.getEffect=function(t){return t.getAttribute("data-effect")||this.props.effect||"float"},l).prototype.isCapture=function(t){return t&&"true"===t.getAttribute("data-iscapture")||this.props.isCapture||!1},l).prototype.isCustomEvent=function(t){return this.state.event||!!t.getAttribute("data-event")},l.prototype.customBindListener=function(t){var e=this,r=this.state,n=r.event,o=r.eventOff,i=t.getAttribute("data-event")||n,a=t.getAttribute("data-event-off")||o;i.split(" ").forEach(function(r){t.removeEventListener(r,r$.get(t,r));var n=rI.bind(e,a);r$.set(t,r,n),t.addEventListener(r,n,!1)}),a&&a.split(" ").forEach(function(r){t.removeEventListener(r,e.hideTooltip),t.addEventListener(r,e.hideTooltip,!1)})},l.prototype.customUnbindListener=function(t){var e=this.state,r=e.event,n=e.eventOff,o=r||t.getAttribute("data-event"),i=n||t.getAttribute("data-event-off");t.removeEventListener(o,r$.get(t,r)),i&&t.removeEventListener(i,this.hideTooltip)},l).prototype.bindWindowEvents=function(t){window.removeEventListener(rR,this.globalHide),window.addEventListener(rR,this.globalHide,!1),window.removeEventListener(rj,this.globalRebuild),window.addEventListener(rj,this.globalRebuild,!1),window.removeEventListener(rN,this.globalShow),window.addEventListener(rN,this.globalShow,!1),t&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},l.prototype.unbindWindowEvents=function(){window.removeEventListener(rR,this.globalHide),window.removeEventListener(rj,this.globalRebuild),window.removeEventListener(rN,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},l.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()},l).hide=function(t){rL(rR,{target:t})},l.rebuild=function(){rL(rj)},l.show=function(t){rL(rN,{target:t})},l.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},l.prototype.globalShow=function(t){if(this.mount){var e=t&&t.detail&&t.detail.target&&!0||!1;this.showTooltip({currentTarget:e&&t.detail.target},!0)}},l.prototype.globalHide=function(t){if(this.mount){var e=t&&t.detail&&t.detail.target&&!0||!1;this.hideTooltip({currentTarget:e&&t.detail.target},e)}},l)},95159:function(t){function e(t,e){var r=t.length,n=Array(r),o={},i=r,a=function(t){for(var e=new Map,r=0,n=t.length;r<n;r++){var o=t[r];e.has(o[0])||e.set(o[0],new Set),e.has(o[1])||e.set(o[1],new Set),e.get(o[0]).add(o[1])}return e}(e),s=function(t){for(var e=new Map,r=0,n=t.length;r<n;r++)e.set(t[r],r);return e}(t);for(e.forEach(function(t){if(!s.has(t[0])||!s.has(t[1]))throw Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||function t(e,i,u){if(u.has(e)){var l;try{l=", node was:"+JSON.stringify(e)}catch(t){l=""}throw Error("Cyclic dependency"+l)}if(!s.has(e))throw Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!o[i]){o[i]=!0;var c=a.get(e)||new Set;if(i=(c=Array.from(c)).length){u.add(e);do{var f=c[--i];t(f,s.get(f),u)}while(i);u.delete(e)}n[--r]=e}}(t[i],i,new Set);return n}t.exports=function(t){return e(function(t){for(var e=new Set,r=0,n=t.length;r<n;r++){var o=t[r];e.add(o[0]),e.add(o[1])}return Array.from(e)}(t),t)},t.exports.array=e},31118:function(t,e,r){"use strict";r.d(e,{I4:function(){return a},Ye:function(){return i}});var n=r(2784);function o(t,e){var r=(0,n.useState)(function(){return{inputs:e,result:t()}})[0],o=(0,n.useRef)(!0),i=(0,n.useRef)(r),a=o.current||e&&i.current.inputs&&function(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}(e,i.current.inputs)?i.current:{inputs:e,result:t()};return(0,n.useEffect)(function(){o.current=!1,i.current=a},[a]),a.result}var i=o,a=function(t,e){return o(function(){return t},e)}},65413:function(t,e,r){"use strict";r.r(e),r.d(e,{ArraySchema:function(){return tk},BaseSchema:function(){return H},BooleanSchema:function(){return X},DateSchema:function(){return tc},MixedSchema:function(){return q},NumberSchema:function(){return ti},ObjectSchema:function(){return t_},StringSchema:function(){return tr},ValidationError:function(){return k},addMethod:function(){return tR},array:function(){return tS},bool:function(){return Y},boolean:function(){return Y},date:function(){return tl},isSchema:function(){return T},lazy:function(){return tC},mixed:function(){return W},number:function(){return to},object:function(){return tF},reach:function(){return U},ref:function(){return L},setLocale:function(){return tD},string:function(){return te}});try{b=Map}catch(t){}try{g=Set}catch(t){}function n(t){return function t(e,r,o){if(!e||"object"!=typeof e||"function"==typeof e)return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(n);if(b&&e instanceof b)return new Map(Array.from(e.entries()));if(g&&e instanceof g)return new Set(Array.from(e.values()));if(e instanceof Object){r.push(e);var i=Object.create(e);for(var a in o.push(i),e){var s=r.findIndex(function(t){return t===e[a]});i[a]=s>-1?o[s]:t(e[a],r,o)}return i}return e}(t,[],[])}let o=Object.prototype.toString,i=Error.prototype.toString,a=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",u=/^Symbol\((.*)\)(.*)$/;function l(t,e=!1){if(null==t||!0===t||!1===t)return""+t;let r=typeof t;if("number"===r)return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t;if("string"===r)return e?`"${t}"`:t;if("function"===r)return"[Function "+(t.name||"anonymous")+"]";if("symbol"===r)return s.call(t).replace(u,"Symbol($1)");let n=o.call(t).slice(8,-1);return"Date"===n?isNaN(t.getTime())?""+t:t.toISOString(t):"Error"===n||t instanceof Error?"["+i.call(t)+"]":"RegExp"===n?a.call(t):null}function c(t,e){let r=l(t,e);return null!==r?r:JSON.stringify(t,function(t,r){let n=l(this[t],e);return null!==n?n:r},2)}let f={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:r,originalValue:n})=>{let o=null!=n&&n!==r,i=`${t} must be a \`${e}\` type, but the final value was: \`${c(r,!0)}\``+(o?` (cast from the value \`${c(n,!0)}\`).`:".");return null===r&&(i+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),i},defined:"${path} must be defined"},d={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},p={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},h={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},m={isValue:"${path} field must be ${value}"},v={noUnknown:"${path} field has unspecified keys: ${unknown}"},y={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};var b,g,w=Object.assign(Object.create(null),{mixed:f,string:d,number:p,date:h,object:v,array:y,boolean:m}),E=r(93352),x=r.n(E),T=t=>t&&t.__isYupSchema__;class _{constructor(t,e){if(this.fn=void 0,this.refs=t,this.refs=t,"function"==typeof e){this.fn=e;return}if(!x()(e,"is"))throw TypeError("`is:` is required for `when()` conditions");if(!e.then&&!e.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:n,otherwise:o}=e,i="function"==typeof r?r:(...t)=>t.every(t=>t===r);this.fn=function(...t){let e=t.pop(),r=t.pop(),a=i(...t)?n:o;if(a)return"function"==typeof a?a(r):r.concat(a.resolve(e))}}resolve(t,e){let r=this.refs.map(t=>t.getValue(null==e?void 0:e.value,null==e?void 0:e.parent,null==e?void 0:e.context)),n=this.fn.apply(t,r.concat(t,e));if(void 0===n||n===t)return t;if(!T(n))throw TypeError("conditions must return a schema object");return n.resolve(e)}}function F(t){return null==t?[]:[].concat(t)}function O(){return(O=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}let S=/\$\{\s*(\w+)\s*\}/g;class k extends Error{static formatError(t,e){let r=e.label||e.path||"this";return(r!==e.path&&(e=O({},e,{path:r})),"string"==typeof t)?t.replace(S,(t,r)=>c(e[r])):"function"==typeof t?t(e):t}static isError(t){return t&&"ValidationError"===t.name}constructor(t,e,r,n){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=e,this.path=r,this.type=n,this.errors=[],this.inner=[],F(t).forEach(t=>{k.isError(t)?(this.errors.push(...t.errors),this.inner=this.inner.concat(t.inner.length?t.inner:t)):this.errors.push(t)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,k)}}let C=t=>{let e=!1;return(...r)=>{e||(e=!0,t(...r))}};function A(t,e){let{endEarly:r,tests:n,args:o,value:i,errors:a,sort:s,path:u}=t,l=C(e),c=n.length,f=[];if(a=a||[],!c)return a.length?l(new k(a,i,u)):l(null,i);for(let t=0;t<n.length;t++)(0,n[t])(o,function(t){if(t){if(!k.isError(t))return l(t,i);if(r)return t.value=i,l(t,i);f.push(t)}if(--c<=0){if(f.length&&(s&&f.sort(s),a.length&&f.push(...a),a=f),a.length){l(new k(a,i,u),i);return}l(null,i)}})}var D=r(34519),R=r.n(D),j=r(17296);let N={context:"$",value:"."};function L(t,e){return new I(t,e)}class I{constructor(t,e={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof t)throw TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),""===t)throw TypeError("ref must be a non-empty string");this.isContext=this.key[0]===N.context,this.isValue=this.key[0]===N.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?N.context:this.isValue?N.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,j.getter)(this.path,!0),this.map=e.map}getValue(t,e,r){let n=this.isContext?r:this.isValue?t:e;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(t,e){return this.getValue(t,null==e?void 0:e.parent,null==e?void 0:e.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}function P(){return(P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function $(t){function e(e,r){let n,{value:o,path:i="",label:a,options:s,originalValue:u,sync:l}=e,c=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e.indexOf(r=i[n])>=0||(o[r]=t[r]);return o}(e,["value","path","label","options","originalValue","sync"]),{name:f,test:d,params:p,message:h}=t,{parent:m,context:v}=s;function y(t){return I.isRef(t)?t.getValue(o,m,v):t}function b(t={}){let e=R()(P({value:o,originalValue:u,label:a,path:t.path||i},p,t.params),y),r=new k(k.formatError(t.message||h,e),o,e.path,t.type||f);return r.params=e,r}let g=P({path:i,parent:m,type:f,createError:b,resolve:y,options:s,originalValue:u},c);if(!l){try{Promise.resolve(d.call(g,o,g)).then(t=>{k.isError(t)?r(t):t?r(null,t):r(b())}).catch(r)}catch(t){r(t)}return}try{var w;if(n=d.call(g,o,g),"function"==typeof(null==(w=n)?void 0:w.then))throw Error(`Validation test of type: "${g.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(t){r(t);return}k.isError(n)?r(n):n?r(null,n):r(b())}return e.OPTIONS=t,e}I.prototype.__isYupRef=!0;let M=t=>t.substr(0,t.length-1).substr(1);function z(t,e,r,n=r){let o,i,a;return e?((0,j.forEach)(e,(s,u,l)=>{let c=u?M(s):s;if((t=t.resolve({context:n,parent:o,value:r})).innerType){let n=l?parseInt(c,10):0;if(r&&n>=r.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${e}. because there is no value at that index. `);o=r,r=r&&r[n],t=t.innerType}if(!l){if(!t.fields||!t.fields[c])throw Error(`The schema does not contain the path: ${e}. (failed at: ${a} which is a type: "${t._type}")`);o=r,r=r&&r[c],t=t.fields[c]}i=c,a=u?"["+s+"]":"."+s}),{schema:t,parent:o,parentPath:i}):{parent:o,parentPath:e,schema:t}}var U=(t,e,r,n)=>z(t,e,r,n).schema;class B{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let t=[];for(let e of this.list)t.push(e);for(let[,e]of this.refs)t.push(e.describe());return t}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(t){return this.toArray().reduce((e,r)=>e.concat(I.isRef(r)?t(r):r),[])}add(t){I.isRef(t)?this.refs.set(t.key,t):this.list.add(t)}delete(t){I.isRef(t)?this.refs.delete(t.key):this.list.delete(t)}clone(){let t=new B;return t.list=new Set(this.list),t.refs=new Map(this.refs),t}merge(t,e){let r=this.clone();return t.list.forEach(t=>r.add(t)),t.refs.forEach(t=>r.add(t)),e.list.forEach(t=>r.delete(t)),e.refs.forEach(t=>r.delete(t)),r}}function V(){return(V=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}class H{constructor(t){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new B,this._blacklist=new B,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(f.notType)}),this.type=(null==t?void 0:t.type)||"mixed",this.spec=V({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==t?void 0:t.spec)}get _type(){return this.type}_typeCheck(t){return!0}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;let e=Object.create(Object.getPrototypeOf(this));return e.type=this.type,e._typeError=this._typeError,e._whitelistError=this._whitelistError,e._blacklistError=this._blacklistError,e._whitelist=this._whitelist.clone(),e._blacklist=this._blacklist.clone(),e.exclusiveTests=V({},this.exclusiveTests),e.deps=[...this.deps],e.conditions=[...this.conditions],e.tests=[...this.tests],e.transforms=[...this.transforms],e.spec=n(V({},this.spec,t)),e}label(t){let e=this.clone();return e.spec.label=t,e}meta(...t){if(0===t.length)return this.spec.meta;let e=this.clone();return e.spec.meta=Object.assign(e.spec.meta||{},t[0]),e}withMutation(t){let e=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=e,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let e=t.clone(),r=V({},this.spec,e.spec);return e.spec=r,e._typeError||(e._typeError=this._typeError),e._whitelistError||(e._whitelistError=this._whitelistError),e._blacklistError||(e._blacklistError=this._blacklistError),e._whitelist=this._whitelist.merge(t._whitelist,t._blacklist),e._blacklist=this._blacklist.merge(t._blacklist,t._whitelist),e.tests=this.tests,e.exclusiveTests=this.exclusiveTests,e.withMutation(e=>{t.tests.forEach(t=>{e.test(t.OPTIONS)})}),e.transforms=[...this.transforms,...e.transforms],e}isType(t){return!!this.spec.nullable&&null===t||this._typeCheck(t)}resolve(t){let e=this;if(e.conditions.length){let r=e.conditions;(e=e.clone()).conditions=[],e=(e=r.reduce((e,r)=>r.resolve(e,t),e)).resolve(t)}return e}cast(t,e={}){let r=this.resolve(V({value:t},e)),n=r._cast(t,e);if(void 0!==t&&!1!==e.assert&&!0!==r.isType(n)){let o=c(t),i=c(n);throw TypeError(`The value of ${e.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}".
2
-
3
- attempted value: ${o}
4
- `+(i!==o?`result of cast: ${i}`:""))}return n}_cast(t,e){let r=void 0===t?t:this.transforms.reduce((e,r)=>r.call(this,e,t,this),t);return void 0===r&&(r=this.getDefault()),r}_validate(t,e={},r){let{sync:n,path:o,from:i=[],originalValue:a=t,strict:s=this.spec.strict,abortEarly:u=this.spec.abortEarly}=e,l=t;s||(l=this._cast(l,V({assert:!1},e)));let c={value:l,path:o,options:e,originalValue:a,schema:this,label:this.spec.label,sync:n,from:i},f=[];this._typeError&&f.push(this._typeError);let d=[];this._whitelistError&&d.push(this._whitelistError),this._blacklistError&&d.push(this._blacklistError),A({args:c,value:l,path:o,sync:n,tests:f,endEarly:u},t=>{if(t)return void r(t,l);A({tests:this.tests.concat(d),args:c,path:o,sync:n,value:l,endEarly:u},r)})}validate(t,e,r){let n=this.resolve(V({},e,{value:t}));return"function"==typeof r?n._validate(t,e,r):new Promise((r,o)=>n._validate(t,e,(t,e)=>{t?o(t):r(e)}))}validateSync(t,e){let r;return this.resolve(V({},e,{value:t}))._validate(t,V({},e,{sync:!0}),(t,e)=>{if(t)throw t;r=e}),r}isValid(t,e){return this.validate(t,e).then(()=>!0,t=>{if(k.isError(t))return!1;throw t})}isValidSync(t,e){try{return this.validateSync(t,e),!0}catch(t){if(k.isError(t))return!1;throw t}}_getDefault(){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this):n(t)}getDefault(t){return this.resolve(t||{})._getDefault()}default(t){return 0==arguments.length?this._getDefault():this.clone({default:t})}strict(t=!0){let e=this.clone();return e.spec.strict=t,e}_isPresent(t){return null!=t}defined(t=f.defined){return this.test({message:t,name:"defined",exclusive:!0,test:t=>void 0!==t})}required(t=f.required){return this.clone({presence:"required"}).withMutation(e=>e.test({message:t,name:"required",exclusive:!0,test(t){return this.schema._isPresent(t)}}))}notRequired(){let t=this.clone({presence:"optional"});return t.tests=t.tests.filter(t=>"required"!==t.OPTIONS.name),t}nullable(t=!0){return this.clone({nullable:!1!==t})}transform(t){let e=this.clone();return e.transforms.push(t),e}test(...t){let e;if(void 0===(e=1===t.length?"function"==typeof t[0]?{test:t[0]}:t[0]:2===t.length?{name:t[0],test:t[1]}:{name:t[0],message:t[1],test:t[2]}).message&&(e.message=f.default),"function"!=typeof e.test)throw TypeError("`test` is a required parameters");let r=this.clone(),n=$(e),o=e.exclusive||e.name&&!0===r.exclusiveTests[e.name];if(e.exclusive&&!e.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return e.name&&(r.exclusiveTests[e.name]=!!e.exclusive),r.tests=r.tests.filter(t=>t.OPTIONS.name!==e.name||!o&&t.OPTIONS.test!==n.OPTIONS.test),r.tests.push(n),r}when(t,e){Array.isArray(t)||"string"==typeof t||(e=t,t=".");let r=this.clone(),n=F(t).map(t=>new I(t));return n.forEach(t=>{t.isSibling&&r.deps.push(t.key)}),r.conditions.push(new _(n,e)),r}typeError(t){let e=this.clone();return e._typeError=$({message:t,name:"typeError",test(t){return!!(void 0===t||this.schema.isType(t))||this.createError({params:{type:this.schema._type}})}}),e}oneOf(t,e=f.oneOf){let r=this.clone();return t.forEach(t=>{r._whitelist.add(t),r._blacklist.delete(t)}),r._whitelistError=$({message:e,name:"oneOf",test(t){if(void 0===t)return!0;let e=this.schema._whitelist,r=e.resolveAll(this.resolve);return!!r.includes(t)||this.createError({params:{values:e.toArray().join(", "),resolved:r}})}}),r}notOneOf(t,e=f.notOneOf){let r=this.clone();return t.forEach(t=>{r._blacklist.add(t),r._whitelist.delete(t)}),r._blacklistError=$({message:e,name:"notOneOf",test(t){let e=this.schema._blacklist,r=e.resolveAll(this.resolve);return!r.includes(t)||this.createError({params:{values:e.toArray().join(", "),resolved:r}})}}),r}strip(t=!0){let e=this.clone();return e.spec.strip=t,e}describe(){let t=this.clone(),{label:e,meta:r}=t.spec;return{meta:r,label:e,type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map(t=>({name:t.OPTIONS.name,params:t.OPTIONS.params})).filter((t,e,r)=>r.findIndex(e=>e.name===t.name)===e)}}}for(let t of(H.prototype.__isYupSchema__=!0,["validate","validateSync"]))H.prototype[`${t}At`]=function(e,r,n={}){let{parent:o,parentPath:i,schema:a}=z(this,e,r,n.context);return a[t](o&&o[i],V({},n,{parent:o,path:e}))};for(let t of["equals","is"])H.prototype[t]=H.prototype.oneOf;for(let t of["not","nope"])H.prototype[t]=H.prototype.notOneOf;H.prototype.optional=H.prototype.notRequired;var q=H;function W(){return new H}W.prototype=H.prototype;var K=t=>null==t;function Y(){return new X}class X extends H{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform(function(t){if(!this.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}_typeCheck(t){return t instanceof Boolean&&(t=t.valueOf()),"boolean"==typeof t}isTrue(t=m.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test:t=>K(t)||!0===t})}isFalse(t=m.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test:t=>K(t)||!1===t})}}Y.prototype=X.prototype;let Z=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,J=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,G=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Q=t=>K(t)||t===t.trim(),tt=({}).toString();function te(){return new tr}class tr extends H{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(t){if(this.isType(t)||Array.isArray(t))return t;let e=null!=t&&t.toString?t.toString():t;return e===tt?t:e})})}_typeCheck(t){return t instanceof String&&(t=t.valueOf()),"string"==typeof t}_isPresent(t){return super._isPresent(t)&&!!t.length}length(t,e=d.length){return this.test({message:e,name:"length",exclusive:!0,params:{length:t},test(e){return K(e)||e.length===this.resolve(t)}})}min(t,e=d.min){return this.test({message:e,name:"min",exclusive:!0,params:{min:t},test(e){return K(e)||e.length>=this.resolve(t)}})}max(t,e=d.max){return this.test({name:"max",exclusive:!0,message:e,params:{max:t},test(e){return K(e)||e.length<=this.resolve(t)}})}matches(t,e){let r,n,o=!1;return e&&("object"==typeof e?{excludeEmptyString:o=!1,message:r,name:n}=e:r=e),this.test({name:n||"matches",message:r||d.matches,params:{regex:t},test:e=>K(e)||""===e&&o||-1!==e.search(t)})}email(t=d.email){return this.matches(Z,{name:"email",message:t,excludeEmptyString:!0})}url(t=d.url){return this.matches(J,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=d.uuid){return this.matches(G,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>null===t?"":t)}trim(t=d.trim){return this.transform(t=>null!=t?t.trim():t).test({message:t,name:"trim",test:Q})}lowercase(t=d.lowercase){return this.transform(t=>K(t)?t:t.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,test:t=>K(t)||t===t.toLowerCase()})}uppercase(t=d.uppercase){return this.transform(t=>K(t)?t:t.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,test:t=>K(t)||t===t.toUpperCase()})}}te.prototype=tr.prototype;let tn=t=>t!=+t;function to(){return new ti}class ti extends H{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(t){let e=t;if("string"==typeof e){if(""===(e=e.replace(/\s/g,"")))return NaN;e=+e}return this.isType(e)?e:parseFloat(e)})})}_typeCheck(t){return t instanceof Number&&(t=t.valueOf()),"number"==typeof t&&!tn(t)}min(t,e=p.min){return this.test({message:e,name:"min",exclusive:!0,params:{min:t},test(e){return K(e)||e>=this.resolve(t)}})}max(t,e=p.max){return this.test({message:e,name:"max",exclusive:!0,params:{max:t},test(e){return K(e)||e<=this.resolve(t)}})}lessThan(t,e=p.lessThan){return this.test({message:e,name:"max",exclusive:!0,params:{less:t},test(e){return K(e)||e<this.resolve(t)}})}moreThan(t,e=p.moreThan){return this.test({message:e,name:"min",exclusive:!0,params:{more:t},test(e){return K(e)||e>this.resolve(t)}})}positive(t=p.positive){return this.moreThan(0,t)}negative(t=p.negative){return this.lessThan(0,t)}integer(t=p.integer){return this.test({name:"integer",message:t,test:t=>K(t)||Number.isInteger(t)})}truncate(){return this.transform(t=>K(t)?t:0|t)}round(t){var e;let r=["ceil","floor","round","trunc"];if("trunc"===(t=(null==(e=t)?void 0:e.toLowerCase())||"round"))return this.truncate();if(-1===r.indexOf(t.toLowerCase()))throw TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(e=>K(e)?e:Math[t](e))}}to.prototype=ti.prototype;var ta=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let ts=new Date(""),tu=t=>"[object Date]"===Object.prototype.toString.call(t);function tl(){return new tc}class tc extends H{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(t){return this.isType(t)?t:isNaN(t=function(t){var e,r,n=[1,4,5,6,7,10,11],o=0;if(r=ta.exec(t)){for(var i,a=0;i=n[a];++a)r[i]=+r[i]||0;r[2]=(+r[2]||1)-1,r[3]=+r[3]||1,r[7]=r[7]?String(r[7]).substr(0,3):0,(void 0===r[8]||""===r[8])&&(void 0===r[9]||""===r[9])?e=+new Date(r[1],r[2],r[3],r[4],r[5],r[6],r[7]):("Z"!==r[8]&&void 0!==r[9]&&(o=60*r[10]+r[11],"+"===r[9]&&(o=0-o)),e=Date.UTC(r[1],r[2],r[3],r[4],r[5]+o,r[6],r[7]))}else e=Date.parse?Date.parse(t):NaN;return e}(t))?ts:new Date(t)})})}_typeCheck(t){return tu(t)&&!isNaN(t.getTime())}prepareParam(t,e){let r;if(I.isRef(t))r=t;else{let n=this.cast(t);if(!this._typeCheck(n))throw TypeError(`\`${e}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(t,e=h.min){let r=this.prepareParam(t,"min");return this.test({message:e,name:"min",exclusive:!0,params:{min:t},test(t){return K(t)||t>=this.resolve(r)}})}max(t,e=h.max){let r=this.prepareParam(t,"max");return this.test({message:e,name:"max",exclusive:!0,params:{max:t},test(t){return K(t)||t<=this.resolve(r)}})}}tc.INVALID_DATE=ts,tl.prototype=tc.prototype,tl.INVALID_DATE=ts;var tf=r(57370),td=r.n(tf),tp=r(96009),th=r.n(tp),tm=r(19950),tv=r.n(tm),ty=r(95159),tb=r.n(ty);function tg(t,e){let r=1/0;return t.some((t,n)=>{var o;if((null==(o=e.path)?void 0:o.indexOf(t))!==-1)return r=n,!0}),r}function tw(t){return(e,r)=>tg(t,e)-tg(t,r)}function tE(){return(tE=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}let tx=t=>"[object Object]"===Object.prototype.toString.call(t),tT=tw([]);class t_ extends H{constructor(t){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=tT,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(e){t=null}return this.isType(t)?t:null}),t&&this.shape(t)})}_typeCheck(t){return tx(t)||"function"==typeof t}_cast(t,e={}){var r;let n=super._cast(t,e);if(void 0===n)return this.getDefault();if(!this._typeCheck(n))return n;let o=this.fields,i=null!=(r=e.stripUnknown)?r:this.spec.noUnknown,a=this._nodes.concat(Object.keys(n).filter(t=>-1===this._nodes.indexOf(t))),s={},u=tE({},e,{parent:s,__validating:e.__validating||!1}),l=!1;for(let t of a){let r=o[t],a=x()(n,t);if(r){let o;let i=n[t];u.path=(e.path?`${e.path}.`:"")+t;let a="spec"in(r=r.resolve({value:i,context:e.context,parent:s}))?r.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){l=l||t in n;continue}void 0!==(o=e.__validating&&c?n[t]:r.cast(n[t],u))&&(s[t]=o)}else a&&!i&&(s[t]=n[t]);s[t]!==n[t]&&(l=!0)}return l?s:n}_validate(t,e={},r){let n=[],{sync:o,from:i=[],originalValue:a=t,abortEarly:s=this.spec.abortEarly,recursive:u=this.spec.recursive}=e;i=[{schema:this,value:a},...i],e.__validating=!0,e.originalValue=a,e.from=i,super._validate(t,e,(t,l)=>{if(t){if(!k.isError(t)||s)return void r(t,l);n.push(t)}if(!u||!tx(l)){r(n[0]||null,l);return}a=a||l,A({sync:o,tests:this._nodes.map(t=>(r,n)=>{let o=-1===t.indexOf(".")?(e.path?`${e.path}.`:"")+t:`${e.path||""}["${t}"]`,s=this.fields[t];if(s&&"validate"in s){s.validate(l[t],tE({},e,{path:o,from:i,strict:!0,parent:l,originalValue:a[t]}),n);return}n(null)}),value:l,errors:n,endEarly:s,sort:this._sortErrors,path:e.path},r)})}clone(t){let e=super.clone(t);return e.fields=tE({},this.fields),e._nodes=this._nodes,e._excludedEdges=this._excludedEdges,e._sortErrors=this._sortErrors,e}concat(t){let e=super.concat(t),r=e.fields;for(let[t,e]of Object.entries(this.fields)){let n=r[t];void 0===n?r[t]=e:n instanceof H&&e instanceof H&&(r[t]=e.concat(n))}return e.withMutation(()=>e.shape(r,this._excludedEdges))}getDefaultFromShape(){let t={};return this._nodes.forEach(e=>{let r=this.fields[e];t[e]="default"in r?r.getDefault():void 0}),t}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(t,e=[]){let r=this.clone(),n=Object.assign(r.fields,t);return r.fields=n,r._sortErrors=tw(Object.keys(n)),e.length&&(Array.isArray(e[0])||(e=[e]),r._excludedEdges=[...r._excludedEdges,...e]),r._nodes=function(t,e=[]){let r=[],n=new Set,o=new Set(e.map(([t,e])=>`${t}-${e}`));function i(t,e){let i=(0,j.split)(t)[0];n.add(i),o.has(`${e}-${i}`)||r.push([e,i])}for(let e in t)if(x()(t,e)){let r=t[e];n.add(e),I.isRef(r)&&r.isSibling?i(r.path,e):T(r)&&"deps"in r&&r.deps.forEach(t=>i(t,e))}return tb().array(Array.from(n),r).reverse()}(n,r._excludedEdges),r}pick(t){let e={};for(let r of t)this.fields[r]&&(e[r]=this.fields[r]);return this.clone().withMutation(t=>(t.fields={},t.shape(e)))}omit(t){let e=this.clone(),r=e.fields;for(let n of(e.fields={},t))delete r[n];return e.withMutation(()=>e.shape(r))}from(t,e,r){let n=(0,j.getter)(t,!0);return this.transform(o=>{if(null==o)return o;let i=o;return x()(o,t)&&(i=tE({},o),r||delete i[t],i[e]=n(o)),i})}noUnknown(t=!0,e=v.noUnknown){"string"==typeof t&&(e=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:e,test(e){let r;if(null==e)return!0;let n=(r=Object.keys(this.schema.fields),Object.keys(e).filter(t=>-1===r.indexOf(t)));return!t||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,e=v.noUnknown){return this.noUnknown(!t,e)}transformKeys(t){return this.transform(e=>e&&tv()(e,(e,r)=>t(r)))}camelCase(){return this.transformKeys(th())}snakeCase(){return this.transformKeys(td())}constantCase(){return this.transformKeys(t=>td()(t).toUpperCase())}describe(){let t=super.describe();return t.fields=R()(this.fields,t=>t.describe()),t}}function tF(t){return new t_(t)}function tO(){return(tO=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function tS(t){return new tk(t)}tF.prototype=t_.prototype;class tk extends H{constructor(t){super({type:"array"}),this.innerType=void 0,this.innerType=t,this.withMutation(()=>{this.transform(function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(e){t=null}return this.isType(t)?t:null})})}_typeCheck(t){return Array.isArray(t)}get _subType(){return this.innerType}_cast(t,e){let r=super._cast(t,e);if(!this._typeCheck(r)||!this.innerType)return r;let n=!1,o=r.map((t,r)=>{let o=this.innerType.cast(t,tO({},e,{path:`${e.path||""}[${r}]`}));return o!==t&&(n=!0),o});return n?o:r}_validate(t,e={},r){var n,o;let i=[],a=e.sync,s=e.path,u=this.innerType,l=null!=(n=e.abortEarly)?n:this.spec.abortEarly,c=null!=(o=e.recursive)?o:this.spec.recursive,f=null!=e.originalValue?e.originalValue:t;super._validate(t,e,(t,n)=>{if(t){if(!k.isError(t)||l)return void r(t,n);i.push(t)}if(!c||!u||!this._typeCheck(n)){r(i[0]||null,n);return}f=f||n;let o=Array(n.length);for(let t=0;t<n.length;t++){let r=n[t],i=`${e.path||""}[${t}]`,a=tO({},e,{path:i,strict:!0,parent:n,index:t,originalValue:f[t]});o[t]=(t,e)=>u.validate(r,a,e)}A({sync:a,path:s,value:n,errors:i,endEarly:l,tests:o},r)})}clone(t){let e=super.clone(t);return e.innerType=this.innerType,e}concat(t){let e=super.concat(t);return e.innerType=this.innerType,t.innerType&&(e.innerType=e.innerType?e.innerType.concat(t.innerType):t.innerType),e}of(t){let e=this.clone();if(!T(t))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+c(t));return e.innerType=t,e}length(t,e=y.length){return this.test({message:e,name:"length",exclusive:!0,params:{length:t},test(e){return K(e)||e.length===this.resolve(t)}})}min(t,e){return e=e||y.min,this.test({message:e,name:"min",exclusive:!0,params:{min:t},test(e){return K(e)||e.length>=this.resolve(t)}})}max(t,e){return e=e||y.max,this.test({message:e,name:"max",exclusive:!0,params:{max:t},test(e){return K(e)||e.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,e)=>this._typeCheck(t)?t:null==e?[]:[].concat(e))}compact(t){let e=t?(e,r,n)=>!t(e,r,n):t=>!!t;return this.transform(t=>null!=t?t.filter(e):t)}describe(){let t=super.describe();return this.innerType&&(t.innerType=this.innerType.describe()),t}nullable(t=!0){return super.nullable(t)}defined(){return super.defined()}required(t){return super.required(t)}}function tC(t){return new tA(t)}tS.prototype=tk.prototype;class tA{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.__inputType=void 0,this.__outputType=void 0,this._resolve=(t,e={})=>{let r=this.builder(t,e);if(!T(r))throw TypeError("lazy() functions must return a valid schema");return r.resolve(e)},this.builder=t}resolve(t){return this._resolve(t.value,t)}cast(t,e){return this._resolve(t,e).cast(t,e)}validate(t,e,r){return this._resolve(t,e).validate(t,e,r)}validateSync(t,e){return this._resolve(t,e).validateSync(t,e)}validateAt(t,e,r){return this._resolve(e,r).validateAt(t,e,r)}validateSyncAt(t,e,r){return this._resolve(e,r).validateSyncAt(t,e,r)}describe(){return null}isValid(t,e){return this._resolve(t,e).isValid(t,e)}isValidSync(t,e){return this._resolve(t,e).isValidSync(t,e)}}function tD(t){Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(r=>{w[e][r]=t[e][r]})})}function tR(t,e,r){if(!t||!T(t.prototype))throw TypeError("You must provide a yup schema constructor function");if("string"!=typeof e)throw TypeError("A Method name must be provided");if("function"!=typeof r)throw TypeError("Method function must be provided");t.prototype[e]=r}},5446:function(t,e,r){"use strict";r.d(e,{v2:function(){return tw},j2:function(){return tE},sN:function(){return tT},qy:function(){return tF}});var n,o=r(2784),i=r.t(o,2);function a(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}function s(t,e){return r=>{if(t&&t(r),!r.defaultPrevented)return e(r)}}function u(t){return"boolean"==typeof t}function l(t){return!!(t&&"[object Function]"==({}).toString.call(t))}function c(...t){return(0,o.useCallback)(e=>{for(let r of t)!function(t,e){if(null!=t){if(l(t))t(e);else try{t.current=e}catch(r){throw Error(`Cannot assign value "${e}" to ref "${t}"`)}}}(r,e)},t)}function f(t){return a()?t?t.ownerDocument:document:null}function d(t){return"which"in t?3===t.which:"button"in t&&2===t.button}function p(...t){return t.filter(t=>null!=t).join("--")}function h(){}function m(){let[,t]=(0,o.useState)(Object.create(null));return(0,o.useCallback)(()=>{t(Object.create(null))},[])}var v=a()?o.useLayoutEffect:o.useEffect;function y(t){let e=(0,o.useRef)(null);return(0,o.useEffect)(()=>{e.current=t},[t]),e.current}var b=r(28316),g=({children:t,type:e="reach-portal",containerRef:r})=>{let n=o.useRef(null),i=o.useRef(null),a=m();return o.useEffect(()=>{null!=r&&("object"==typeof r&&"current"in r?null==r.current&&console.warn("@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html."):console.warn("@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`."))},[r]),v(()=>{if(!n.current)return;let t=n.current.ownerDocument,o=r?.current||t.body;return i.current=t?.createElement(e),o.appendChild(i.current),a(),()=>{i.current&&o&&o.removeChild(i.current)}},[e,a,r]),i.current?(0,b.createPortal)(t,i.current):o.createElement("span",{ref:n})},w=({unstable_skipInitialRender:t,...e})=>{let[r,n]=o.useState(!1);return(o.useEffect(()=>{t&&n(!0)},[t]),t&&!r)?null:o.createElement(g,{...e})};w.displayName="Portal";var E=["bottom","height","left","right","top","width"],x=new Map,T=function t(){var e=[];x.forEach(function(t,r){var n,o,i=r.getBoundingClientRect();n=i,o=t.rect,void 0===n&&(n={}),void 0===o&&(o={}),E.some(function(t){return n[t]!==o[t]})&&(t.rect=i,e.push(t))}),e.forEach(function(t){t.callbacks.forEach(function(e){return e(t.rect)})}),n=window.requestAnimationFrame(t)};function _(t,e,r){let i,a;u(e)?i=e:(i=e?.observe??!0,a=e?.onChange),l(r)&&(a=r),o.useEffect(()=>{u(e)&&console.warn("Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")},[e]),o.useEffect(()=>{l(r)&&console.warn("Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange")},[r]);let[s,c]=o.useState(t.current),f=o.useRef(!1),d=o.useRef(!1),[p,h]=o.useState(null),m=o.useRef(a);return v(()=>{m.current=a,t.current!==s&&c(t.current)}),v(()=>{s&&!f.current&&(f.current=!0,h(s.getBoundingClientRect()))},[s]),v(()=>{var e,r;if(!i)return;let o=s;if(d.current||(d.current=!0,o=t.current),!o){console.warn("You need to place the ref");return}let a=(e=o,r=t=>{m.current?.(t),h(t)},{observe:function(){var t=0===x.size;x.has(e)?x.get(e).callbacks.push(r):x.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[r]}),t&&T()},unobserve:function(){var t=x.get(e);if(t){var o=t.callbacks.indexOf(r);o>=0&&t.callbacks.splice(o,1),t.callbacks.length||x.delete(e),x.size||cancelAnimationFrame(n)}}});return a.observe(),()=>{a.unobserve()}},[i,s,t]),p}var F='input,select,textarea,a[href],button,[tabindex]:not(slot),audio[controls],video[controls],[contenteditable]:not([contenteditable="false"]),details>summary:first-of-type,details',O="undefined"==typeof Element,S=O?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,k=!O&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},C=function(t,e,r){var n=Array.prototype.slice.apply(t.querySelectorAll(F));return e&&S.call(t,F)&&n.unshift(t),n=n.filter(r)},A=function t(e,r,n){for(var o=[],i=Array.from(e);i.length;){var a=i.shift();if("SLOT"===a.tagName){var s=a.assignedElements(),u=t(s.length?s:a.children,!0,n);n.flatten?o.push.apply(o,u):o.push({scope:a,candidates:u})}else{S.call(a,F)&&n.filter(a)&&(r||!e.includes(a))&&o.push(a);var l=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),c=!n.shadowRootFilter||n.shadowRootFilter(a);if(l&&c){var f=t(!0===l?a.children:l.children,!0,n);n.flatten?o.push.apply(o,f):o.push({scope:a,candidates:f})}else i.unshift.apply(i,a.children)}}return o},D=function(t,e){return t.tabIndex<0&&(e||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},R=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},j=function(t){return"INPUT"===t.tagName},N=function(t,e){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===e)return t[r]},L=function(t){if(!t.name)return!0;var e,r=t.form||k(t),n=function(t){return r.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=n(window.CSS.escape(t.name));else try{e=n(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var o=N(e,t.form);return!o||o===t},I=function(t){var e=t.getBoundingClientRect(),r=e.width,n=e.height;return 0===r&&0===n},P=function(t,e){var r=e.displayCheck,n=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var o=S.call(t,"details>summary:first-of-type")?t.parentElement:t;if(S.call(o,"details:not([open]) *"))return!0;var i=k(t).host,a=(null==i?void 0:i.ownerDocument.contains(i))||t.ownerDocument.contains(t);if(r&&"full"!==r){if("non-zero-area"===r)return I(t)}else{if("function"==typeof n){for(var s=t;t;){var u=t.parentElement,l=k(t);if(u&&!u.shadowRoot&&!0===n(u))return I(t);t=t.assignedSlot?t.assignedSlot:u||l===t.ownerDocument?u:l.host}t=s}if(a)return!t.getClientRects().length}return!1},$=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var r=0;r<e.children.length;r++){var n=e.children.item(r);if("LEGEND"===n.tagName)return!!S.call(e,"fieldset[disabled] *")||!n.contains(t)}return!0}e=e.parentElement}return!1},M=function(t,e){var r,n,o;return!(j(r=e)&&"radio"===r.type&&!L(r)||0>D(e))&&(n=t,!((o=e).disabled||j(o)&&"hidden"===o.type||P(o,n)||"DETAILS"===o.tagName&&Array.prototype.slice.apply(o.children).some(function(t){return"SUMMARY"===t.tagName})||$(o)))},z=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!isNaN(e)||e>=0},U=function t(e){var r=[],n=[];return e.forEach(function(e,o){var i=!!e.scope,a=i?e.scope:e,s=D(a,i),u=i?t(e.candidates):a;0===s?i?r.push.apply(r,u):r.push(a):n.push({documentOrder:o,tabIndex:s,item:e,isScope:i,content:u})}),n.sort(R).reduce(function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t},[]).concat(r)},B=function(t,e){return U((e=e||{}).getShadowRoot?A([t],e.includeContainer,{filter:M.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:z}):C(t,e.includeContainer,M.bind(null,e)))},V=o.forwardRef(function({unstable_skipInitialPortalRender:t,...e},r){return o.createElement(w,{unstable_skipInitialRender:t},o.createElement(H,{ref:r,...e}))});V.displayName="Popover";var H=o.forwardRef(function({as:t="div",targetRef:e,position:r=q,unstable_observableRefs:n=[],...i},a){let s=o.useRef(null),u=_(s,{observe:!i.hidden}),l=_(e,{observe:!0}),d=c(s,a);return function(t,e){let r=f(t.current);function n(n){("Tab"!==n.key||!e.current||0!==B(e.current).length)&&("Tab"===n.key&&n.shiftKey?function(t){if(!t.shiftKey)return;let e=i();return t.target===e}(n)?function(t){let r=e.current&&B(e.current),n=r&&r[r.length-1];n&&(t.preventDefault(),n.focus())}(n):function(t){let r=e.current&&B(e.current);return!!r&&0!==r.length&&t.target===r[0]}(n)?(n.preventDefault(),t.current?.focus()):n.target===B(r)[0]&&s():"Tab"===n.key&&(t.current&&t.current===r.activeElement?function(t){let r=e.current&&B(e.current);r&&r[0]&&(t.preventDefault(),r[0].focus())}(n):function(){if(e.current&&e.current.contains(r.activeElement||null)){let t=e.current&&B(e.current);return!!(t&&t[t.length-1]===r.activeElement)}return!1}()?function(t){let e=i();e&&(t.preventDefault(),e.focus())}(n):function(t){let n=e.current?B(r).filter(t=>!e.current.contains(t)):null;return!!n&&t.target===n[n.length-1]}(n)&&s()))}function i(){let n=B(r),o=n&&t.current?n.indexOf(t.current):-1,i=n&&n[o+1];return!(e.current&&e.current.contains(i||null))&&i}o.useEffect(()=>(r.addEventListener("keydown",n),()=>{r.removeEventListener("keydown",n)}),[]);let a=[];function s(){let t=e.current&&B(e.current);t&&(t.forEach(t=>{a.push([t,t.tabIndex]),t.tabIndex=-1}),r.addEventListener("focusin",u))}function u(){r.removeEventListener("focusin",u),a.forEach(([t,e])=>{t.tabIndex=e})}}(e,s),o.createElement(t,{"data-reach-popover":"",ref:d,...i,style:{position:"absolute",...function(t,e,r,...n){return r?t(e,r,...n.map(t=>t.current)):{visibility:"hidden"}}(r,l,u,...n),...i.style}})});H.displayName="PopoverImpl";var q=(t,e)=>{if(!t||!e)return{};let{directionRight:r,directionUp:n}=function(t,e,r=0,n=0){let o={top:t.top-e.height<0,right:window.innerWidth<t.left+e.width-r,bottom:window.innerHeight<t.bottom+e.height-n,left:t.left+t.width-e.width<0},i=o.right&&!o.left;return{directionRight:i,directionLeft:o.left&&!o.right,directionUp:o.bottom&&!o.top,directionDown:o.top&&!o.bottom}}(t,e);return{left:r?`${t.right-e.width+window.pageXOffset}px`:`${t.left+window.pageXOffset}px`,top:n?`${t.top-e.height+window.pageYOffset}px`:`${t.top+t.height+window.pageYOffset}px`}},W=!1,K=0,Y=i["useId".toString()];function X({context:t,children:e,items:r,set:n}){let i=o.useCallback(({element:t,index:e,...r})=>t?(n(n=>{if(null!=e&&-1!==e)return J(n,{element:t,index:e,...r},e);if(0===n.length)return[{...r,element:t,index:0}];if(n.find(e=>e.element===t))return console.warn("[reach-ui]: `useDescendant` was called with an element that was already registered.\n\nIf you are using the `@reach/descendants` package directly, make sure to only register descendants once. Registering a descendant more than once will lead to bugs in your app.\n\nIf you are using another `reach-ui` package, this is probably our bug!\n\nTo report a bug, open a new issue:\n\n https://github.com/reach/reach-ui/issues/new?assignees=&labels=&template=Bug_report.md\n\nIMPORTANT: this check will only run in the development build, so if you see this warning please be aware that your app may crash when deployed."),n.sort((t,e)=>t.element&&e.element?Z(t.element,e.element)?-1:1:0).map((t,e)=>({...t,index:e}));let o=function(t,e){if(!e||!t.length)return -1;let r=t.length;for(;r--;){let n=t[r].element;if(n&&Z(n,e))return r+1}return -1}(n,t);return -1===o?[...n,{...r,element:t,index:n.length}]:J(n,{...r,element:t,index:o},o)}),()=>{t&&n(e=>e.filter(e=>t!==e.element))}):h,[]);return o.createElement(t.Provider,{value:o.useMemo(()=>({descendants:r,registerDescendant:i}),[r,i])},e)}function Z(t,e){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}function J(t,e,r){return null!=r&&r in t?[...t.slice(0,r),e,...t.slice(r)]:[...t,e]}var G="CLEAR_SELECTION_INDEX",Q="CLICK_MENU_ITEM",tt="CLOSE_MENU",te="OPEN_MENU_AT_INDEX",tr="OPEN_MENU_CLEARED",tn="SEARCH_FOR_ITEM",to="SELECT_ITEM_AT_INDEX",ti="SET_BUTTON_ID",ta=function(t,e={}){let r=o.createContext({descendants:[],registerDescendant:()=>h,...e});return r.displayName=t,r}("DropdownDescendantContext"),[ts,tu]=function(t,e){let r=o.createContext(void 0);function n(t){let{children:e,...n}=t,i=o.useMemo(()=>n,Object.values(n));return o.createElement(r.Provider,{value:i},e)}return r.displayName=`${t}Context`,n.displayName=`${t}Provider`,[n,function(e){let n=o.useContext(r);if(n)return n;throw Error(`${e} must be rendered inside of a ${t} component.`)}]}("Dropdown"),tl={triggerId:null,isExpanded:!1,typeaheadQuery:"",selectionIndex:-1},tc=({id:t,children:e})=>{let r=o.useRef(null),n=o.useRef(null),i=o.useRef(null),[a,s]=o.useState([]),u=function(t){if(void 0!==Y){let e=Y();return t??e}let e=t??(W?++K:null),[r,n]=o.useState(e);return v(()=>{null===r&&n(++K)},[]),o.useEffect(()=>{!1===W&&(W=!0)},[]),t??r??void 0}(t),c=t||p("menu",u),f=p("menu-button",c),[d,h]=o.useReducer(ty,{...tl,triggerId:f}),m=o.useRef(!1),y=o.useRef([]),b=o.useRef(!1),g=o.useRef({x:0,y:0});return o.useEffect(()=>{d.isExpanded?(window.__REACH_DISABLE_TOOLTIPS=!0,window.requestAnimationFrame(()=>{tv(n.current)})):window.__REACH_DISABLE_TOOLTIPS=!1},[d.isExpanded]),o.createElement(X,{context:ta,items:a,set:s},o.createElement(ts,{dispatch:h,dropdownId:c,dropdownRef:n,mouseDownStartPosRef:g,popoverRef:i,readyToSelect:b,selectCallbacks:y,state:d,triggerClickedRef:m,triggerRef:r},l(e)?e({isExpanded:d.isExpanded,isOpen:d.isExpanded}):e))};function tf({onKeyDown:t,onMouseDown:e,id:r,ref:n,...i}){let{dispatch:a,dropdownId:u,mouseDownStartPosRef:l,triggerClickedRef:f,triggerRef:h,state:{triggerId:m,isExpanded:v}}=tu("useDropdownTrigger"),y=c(h,n),b=tb(),g=o.useMemo(()=>b.findIndex(t=>!t.disabled),[b]);return o.useEffect(()=>{null!=r&&r!==m&&a({type:ti,payload:r})},[m,a,r]),o.useEffect(()=>{null==r&&a({type:ti,payload:p("menu-button",u)})},[u,a,r]),{data:{isExpanded:v,controls:u},props:{...i,ref:y,id:m||void 0,onKeyDown:s(t,function(t){switch(t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),a({type:te,payload:{index:g}});break;case"Enter":case" ":a({type:te,payload:{index:g}})}}),onMouseDown:s(e,function(t){d(t.nativeEvent)||(l.current={x:t.clientX,y:t.clientY},v||(f.current=!0),v?a({type:tt}):a({type:tr}))}),type:"button"}}}function td({index:t,isLink:e=!1,onClick:r,onDragStart:n,onMouseDown:i,onMouseEnter:a,onMouseLeave:u,onMouseMove:l,onMouseUp:p,onSelect:h,disabled:y,onFocus:b,valueText:g,ref:w,...E}){let{dispatch:x,dropdownRef:T,mouseDownStartPosRef:_,readyToSelect:F,selectCallbacks:O,triggerRef:S,state:{selectionIndex:k,isExpanded:C}}=tu("useDropdownItem"),A=o.useRef(null),[D,R]=o.useState(g||""),j=o.useCallback(t=>{!g&&t?.textContent&&R(t.textContent)},[g]),N=o.useRef(!1),[L,I]=function(t,e){let[r,n]=(0,o.useState)(null);return[r,(0,o.useCallback)(e=>{t.current=e,n(e)},[])]}(A,0),P=function(t,e,r){let n=m(),{registerDescendant:i,descendants:a}=o.useContext(e),s=r??a.findIndex(e=>e.element===t.element);return v(()=>(t.element||n(),i({...t,index:s})),[t,n,s,i,...Object.values(t)]),s}(o.useMemo(()=>({element:L,key:D,disabled:y,isLink:e}),[y,L,e,D]),ta,t),$=P===k&&!y,M=c(w,I,j);function z(){tv(S.current),h&&h(),x({type:Q})}return O.current[P]=h,o.useEffect(()=>{if(C){let t=window.setTimeout(()=>{F.current=!0},400);return()=>{window.clearTimeout(t)}}F.current=!1},[C,F]),o.useEffect(()=>{let t=f(A.current);return t.addEventListener("mouseup",e),()=>{t.removeEventListener("mouseup",e)};function e(){N.current=!1}},[]),{data:{disabled:y},props:{id:tm(P),tabIndex:-1,...E,ref:M,"data-disabled":y?"":void 0,"data-selected":$?"":void 0,"data-valuetext":D,onClick:s(r,function(t){!d(t.nativeEvent)&&e&&(y?t.preventDefault():z())}),onDragStart:s(n,function(t){e&&t.preventDefault()}),onMouseDown:s(i,function(t){d(t.nativeEvent)||(e?N.current=!0:t.preventDefault())}),onMouseEnter:s(a,function(t){let e=f(T.current);$||null==P||y||(T?.current&&T.current!==e.activeElement&&A.current!==e.activeElement&&T.current.focus(),x({type:to,payload:{index:P}}))}),onMouseLeave:s(u,function(t){x({type:G})}),onMouseMove:s(l,function(t){if(!F.current){let e=Math.abs(t.clientX-_.current.x),r=Math.abs(t.clientY-_.current.y);(e>8||r>8)&&(F.current=!0)}$||null==P||y||x({type:to,payload:{index:P,dropdownRef:T}})}),onFocus:s(b,function(){F.current=!0,$||null==P||y||x({type:to,payload:{index:P}})}),onMouseUp:s(p,function(t){if(!d(t.nativeEvent)){if(!F.current){F.current=!0;return}e?N.current?N.current=!1:A.current&&A.current.click():y||z()}})}}}function tp({id:t,onKeyDown:e,ref:r,...n}){let{dispatch:i,triggerRef:a,dropdownRef:u,selectCallbacks:l,dropdownId:f,state:{isExpanded:d,triggerId:p,selectionIndex:h,typeaheadQuery:m}}=tu("useDropdownItems"),v=tb(),b=c(u,r);o.useEffect(()=>{let t=function(t,e=""){if(!e)return null;let r=t.find(t=>!t.disabled&&t.element?.dataset?.valuetext?.toLowerCase().startsWith(e));return r?t.indexOf(r):null}(v,m);m&&null!=t&&i({type:to,payload:{index:t,dropdownRef:u}});let e=window.setTimeout(()=>m&&i({type:tn,payload:""}),1e3);return()=>window.clearTimeout(e)},[i,v,m,u]);let g=y(v.length),w=y(v[h]),E=y(h);o.useEffect(()=>{h>v.length-1?i({type:to,payload:{index:v.length-1,dropdownRef:u}}):g!==v.length&&h>-1&&w&&E===h&&v[h]!==w&&i({type:to,payload:{index:v.findIndex(t=>t.key===w?.key),dropdownRef:u}})},[u,i,v,g,w,E,h]);let x=s(function(t){let{key:e}=t;if(d)switch(e){case"Enter":case" ":let r=v.find(t=>t.index===h);r&&!r.disabled&&(t.preventDefault(),r.isLink&&r.element?r.element.click():(tv(a.current),l.current[r.index]&&l.current[r.index](),i({type:Q})));break;case"Escape":tv(a.current),i({type:tt});break;case"Tab":t.preventDefault();break;default:"string"==typeof e&&1===e.length&&i({type:tn,payload:m+e.toLowerCase()})}},function(t,e){let{descendants:r}=o.useContext(t),{callback:n,currentIndex:i,filter:a,key:s="index",orientation:u="vertical",rotate:l=!0,rtl:c=!1}=e;return function(t){if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(t.key))return;let e=i??-1,o=a?r.filter(a):r;if(!o.length)return;let f=o.findIndex(t=>t.index===i);function d(){return e===h().index?l?o[0]:o[f]:o[(f+1)%o.length]}function p(){return e===o[0].index?l?h():o[f]:o[(f-1+o.length)%o.length]}function h(){return o[o.length-1]}switch(t.key){case"ArrowDown":if("vertical"===u||"both"===u){t.preventDefault();let e=d();n("option"===s?e:e[s])}break;case"ArrowUp":if("vertical"===u||"both"===u){t.preventDefault();let e=p();n("option"===s?e:e[s])}break;case"ArrowLeft":if("horizontal"===u||"both"===u){t.preventDefault();let e=(c?d:p)();n("option"===s?e:e[s])}break;case"ArrowRight":if("horizontal"===u||"both"===u){t.preventDefault();let e=(c?p:d)();n("option"===s?e:e[s])}break;case"PageUp":t.preventDefault();let m=(t.ctrlKey?p:function(){return o[0]})();n("option"===s?m:m[s]);break;case"Home":t.preventDefault();let v=o[0];n("option"===s?v:v[s]);break;case"PageDown":t.preventDefault();let y=(t.ctrlKey?d:h)();n("option"===s?y:y[s]);break;case"End":t.preventDefault();let b=h();n("option"===s?b:b[s])}}}(ta,{currentIndex:h,orientation:"vertical",rotate:!1,filter:t=>!t.disabled,callback:t=>{i({type:to,payload:{index:t,dropdownRef:u}})},key:"index"}));return{data:{activeDescendant:tm(h)||void 0,triggerId:p},props:{tabIndex:-1,...n,ref:b,id:f,onKeyDown:s(e,x)}}}function th({onBlur:t,portal:e=!0,position:r,ref:n,...i}){let{triggerRef:a,triggerClickedRef:u,dispatch:l,dropdownRef:d,popoverRef:p,state:{isExpanded:h}}=tu("useDropdownPopover"),m=c(p,n);return o.useEffect(()=>{if(!h)return;let t=f(p.current);function e(t){var e,r;u.current?u.current=!1:(e=p.current,r=t.target,!(e&&e.contains(r))&&l({type:tt}))}return t.addEventListener("mousedown",e),()=>{t.removeEventListener("mousedown",e)}},[u,a,l,d,p,h]),{data:{portal:e,position:r,targetRef:a,isExpanded:h},props:{ref:m,hidden:!h,onBlur:s(t,t=>{t.currentTarget.contains(t.relatedTarget)||l({type:tt})}),...i}}}function tm(t){let{dropdownId:e}=tu("useItemId");return null!=t&&t>-1?p(`option-${t}`,e):void 0}function tv(t){t&&t.focus()}function ty(t,e={}){switch(e.type){case Q:case tt:return{...t,isExpanded:!1,selectionIndex:-1};case"OPEN_MENU_AT_FIRST_ITEM":return{...t,isExpanded:!0,selectionIndex:0};case te:return{...t,isExpanded:!0,selectionIndex:e.payload.index};case tr:return{...t,isExpanded:!0,selectionIndex:-1};case to:{let{dropdownRef:r={current:null}}=e.payload;if(e.payload.index>=0&&e.payload.index!==t.selectionIndex){if(r.current){let t=f(r.current);r.current!==t?.activeElement&&r.current.focus()}return{...t,selectionIndex:null!=e.payload.max?Math.min(Math.max(e.payload.index,0),e.payload.max):Math.max(e.payload.index,0)}}return t}case G:return{...t,selectionIndex:-1};case ti:return{...t,triggerId:e.payload};case tn:if(void 0!==e.payload)return{...t,typeaheadQuery:e.payload};return t;default:return t}}function tb(){return o.useContext(ta).descendants}tc.displayName="DropdownProvider",o.forwardRef(({as:t="button",...e},r)=>{let{props:n}=tf({...e,ref:r});return o.createElement(t,{"data-reach-dropdown-trigger":"",...n})}).displayName="DropdownTrigger",o.forwardRef(({as:t="div",...e},r)=>{let{props:n}=td({...e,ref:r});return o.createElement(t,{"data-reach-dropdown-item":"",...n})}).displayName="DropdownItem",o.forwardRef(({as:t="div",...e},r)=>{let{props:n}=tp({...e,ref:r});return o.createElement(t,{"data-reach-dropdown-items":"",...n})}).displayName="DropdownItems",o.forwardRef(({as:t="div",...e},r)=>{let{data:{portal:n,targetRef:i,position:a},props:s}=th({...e,ref:r}),u={"data-reach-dropdown-popover":""};return n?o.createElement(V,{...s,...u,as:t,targetRef:i,position:a,unstable_skipInitialPortalRender:!0}):o.createElement(t,{...s,...u})}).displayName="DropdownPopover";var tg=r(48570),tw=o.forwardRef(({as:t=o.Fragment,id:e,children:r,...n},i)=>{let a=o.useMemo(()=>{try{return(0,tg.isFragment)(o.createElement(t,null))}catch(t){return!1}},[t])?{}:{ref:i,id:e,"data-reach-menu":"",...n};return o.createElement(t,{...a},o.createElement(tc,{id:e,children:r}))});tw.displayName="Menu";var tE=o.forwardRef(({as:t="button",...e},r)=>{let{data:{isExpanded:n,controls:i},props:a}=tf({...e,ref:r});return o.createElement(t,{"aria-expanded":!!n||void 0,"aria-haspopup":!0,"aria-controls":i,...a,"data-reach-menu-button":""})});tE.displayName="MenuButton";var tx=o.forwardRef(({as:t="div",...e},r)=>{let{data:{disabled:n},props:i}=td({...e,ref:r});return o.createElement(t,{role:"menuitem",...i,"aria-disabled":n||void 0,"data-reach-menu-item":""})});tx.displayName="MenuItemImpl";var tT=o.forwardRef(({as:t="div",...e},r)=>o.createElement(tx,{...e,ref:r,as:t}));tT.displayName="MenuItem";var t_=o.forwardRef(({as:t="div",...e},r)=>{let{data:{activeDescendant:n,triggerId:i},props:a}=tp({...e,ref:r});return o.createElement(t,{"aria-activedescendant":n,"aria-labelledby":i||void 0,role:"menu",...a,"data-reach-menu-items":""})});t_.displayName="MenuItems",o.forwardRef(({as:t="a",component:e,onSelect:r,...n},i)=>(o.useEffect(()=>{e&&console.warn("[@reach/menu-button]: Please use the `as` prop instead of `component`")},[e]),o.createElement(tx,{...n,ref:i,"data-reach-menu-link":"",as:t,isLink:!0,onSelect:r||h}))).displayName="MenuLink";var tF=o.forwardRef(({portal:t=!0,...e},r)=>o.createElement(tO,{portal:t},o.createElement(t_,{...e,ref:r,"data-reach-menu-list":""})));tF.displayName="MenuList";var tO=o.forwardRef(({as:t="div",...e},r)=>{let{data:{portal:n,targetRef:i,position:a},props:s}=th({...e,ref:r}),u={"data-reach-menu-popover":""};return n?o.createElement(V,{...s,...u,as:t,targetRef:i,position:a,unstable_skipInitialPortalRender:!0}):o.createElement(t,{...s,...u})});tO.displayName="MenuPopover"}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[50],{81207:function(e){e.exports=function(e,t,n,o){var i=-1,r=null==e?0:e.length;for(o&&r&&(n=e[++i]);++i<r;)n=t(n,e[i],i,e);return n}},45981:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},6435:function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},83126:function(e,t,n){var o=n(23895),i=n(33880),r=n(8435),a=n(66188);e.exports=function(e){return function(t){var n=i(t=a(t))?r(t):void 0,u=n?n[0]:t.charAt(0),s=n?o(n,1).join(""):t.slice(1);return u[e]()+s}}},34311:function(e,t,n){var o=n(81207),i=n(97329),r=n(11618),a=RegExp("['’]","g");e.exports=function(e){return function(t){return o(r(i(t).replace(a,"")),e,"")}}},61655:function(e,t,n){var o=n(6435)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=o},83559:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},75304:function(e){var t="\ud800-\udfff",n="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",u="["+r+"]",s="["+o+"]",l="[^"+t+r+"\\d+"+n+o+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",p="["+i+"]",f="(?:"+s+"|"+l+")",h="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",g="[\\ufe0e\\ufe0f]?",b="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+g+v+")*",y="(?:"+["["+n+"]",c,d].join("|")+")"+(g+v+b),O=RegExp([p+"?"+s+"+"+h+"(?="+[u,p,"$"].join("|")+")","(?:"+p+"|"+l+")+"+m+"(?="+[u,p+f,"$"].join("|")+")",p+"?"+f+"+"+h,p+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",y].join("|"),"g");e.exports=function(e){return e.match(O)||[]}},96009:function(e,t,n){var o=n(82108),i=n(34311)(function(e,t,n){return t=t.toLowerCase(),e+(n?o(t):t)});e.exports=i},82108:function(e,t,n){var o=n(66188),i=n(23779);e.exports=function(e){return i(o(e).toLowerCase())}},97329:function(e,t,n){var o=n(61655),i=n(66188),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(r,o).replace(a,"")}},23779:function(e,t,n){var o=n(83126)("toUpperCase");e.exports=o},11618:function(e,t,n){var o=n(45981),i=n(83559),r=n(66188),a=n(75304);e.exports=function(e,t,n){return(e=r(e),void 0===(t=n?void 0:t))?i(e)?a(e):o(e):e.match(t)||[]}},36131:function(e,t,n){"use strict";n.d(t,{ZP:function(){return ta}});var o,i,r,a=n(33028),u=n(59147);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,a,u=[],s=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(u.push(o.value),u.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(e,t)||(0,u.Z)(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l=n(59740),c=n(2784),d=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],p=n(7896),f=n(9249),h=n(87371),m=n(45754),v=n(4309),g=n(51171),b=n(28165),y=n(86522),O=n(56666),x=n(28316);function C(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Z(e){return C(e).getComputedStyle(e)}function w(e){return e instanceof C(e).Node}function I(e){return w(e)?(e.nodeName||"").toLowerCase():""}function S(e){return e instanceof C(e).HTMLElement}function V(e){return e instanceof C(e).Element}function E(e){return"undefined"!=typeof ShadowRoot&&(e instanceof C(e).ShadowRoot||e instanceof ShadowRoot)}function M(e){let{overflow:t,overflowX:n,overflowY:o,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let R=Math.round;function L(e){return V(e)?e:e.contextElement}let k={x:1,y:1};function D(e){let t=L(e);if(!S(t))return k;let n=t.getBoundingClientRect(),{width:o,height:i,fallback:r}=function(e){let t=Z(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=S(e),r=i?e.offsetWidth:n,a=i?e.offsetHeight:o,u=R(n)!==r||R(o)!==a;return u&&(n=r,o=a),{width:n,height:o,fallback:u}}(t),a=(r?R(n.width):n.width)/o,u=(r?R(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let P={x:0,y:0};function F(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let r=e.getBoundingClientRect(),a=L(e),u=k;t&&(o?V(o)&&(u=D(o)):u=D(e));let s=function(e,t,n){var o,i;if(void 0===t&&(t=!0),!(!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")))return P;let r=e?C(e):window;return!n||t&&n!==r?P:{x:(null==(o=r.visualViewport)?void 0:o.offsetLeft)||0,y:(null==(i=r.visualViewport)?void 0:i.offsetTop)||0}}(a,n,o),l=(r.left+s.x)/u.x,c=(r.top+s.y)/u.y,d=r.width/u.x,p=r.height/u.y;if(a){let e=C(a),t=o&&V(o)?C(o):o,n=e.frameElement;for(;n&&o&&t!==e;){let e=D(n),t=n.getBoundingClientRect(),o=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(o.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(o.paddingTop))*e.y,l*=e.x,c*=e.y,d*=e.x,p*=e.y,l+=t.x,c+=t.y,n=C(n).frameElement}}return{...i={width:d,height:p,x:l,y:c},top:i.y,left:i.x,right:i.x+i.width,bottom:i.y+i.height}}function T(e,t){var n;void 0===t&&(t=[]);let o=function e(t){let n=function(e){if("html"===I(e))return e;let t=e.assignedSlot||e.parentNode||E(e)&&e.host||((w(e)?e.ownerDocument:e.document)||window.document).documentElement;return E(t)?t.host:t}(t);return["html","body","#document"].includes(I(n))?n.ownerDocument.body:S(n)&&M(n)?n:e(n)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),r=C(o);return i?t.concat(r,r.visualViewport||[],M(o)?o:[]):t.concat(o,T(o))}var A=c.useLayoutEffect,H=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],U=function(){};function z(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var r=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&r.push("".concat(a?"-"===a[0]?e+a:e+"__"+a:e));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var N=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===(0,y.Z)(e)&&null!==e?[e]:[]},B=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,l.Z)(e,H);return(0,a.Z)({},t)},j=function(e,t,n){var o=e.cx,i=e.getStyles,r=e.getClassNames,a=e.className;return{css:i(t,e),className:o(null!=n?n:{},r(t,e),a)}};function W(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Y(e){return W(e)?window.pageYOffset:e.scrollTop}function G(e,t){if(W(e)){window.scrollTo(0,t);return}e.scrollTop=t}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U,i=Y(e),r=t-i,a=0;!function t(){var u;a+=10,G(e,r*((u=(u=a)/n-1)*u*u+1)+i),a<n?window.requestAnimationFrame(t):o(e)}()}function X(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=t.offsetHeight/3;o.bottom+i>n.bottom?G(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):o.top-i<n.top&&G(e,Math.max(t.offsetTop-i,0))}function q(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var K=!1,J="undefined"!=typeof window?window:{};J.addEventListener&&J.removeEventListener&&(J.addEventListener("p",U,{get passive(){return K=!0}}),J.removeEventListener("p",U,!1));var $=K;function Q(e){return null!=e}var ee=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return Object.entries(e).filter(function(e){var t=s(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=s(t,2),o=n[0],i=n[1];return e[o]=i,e},{})},et=function(e){return"auto"===e?"bottom":e},en=(0,c.createContext)(null),eo=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,r=e.menuPosition,u=e.menuShouldScrollIntoView,l=e.theme,d=((0,c.useContext)(en)||{}).setPortalPlacement,p=(0,c.useRef)(null),f=s((0,c.useState)(o),2),h=f[0],m=f[1],v=s((0,c.useState)(null),2),g=v[0],b=v[1],y=l.spacing.controlHeight;return A(function(){var e=p.current;if(e){var t="fixed"===r,a=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,i=e.placement,r=e.shouldScroll,a=e.isFixedPosition,u=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=s.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,f=d.height,h=d.top,m=n.offsetParent.getBoundingClientRect().top,v=a?window.innerHeight:W(s)?window.innerHeight:s.clientHeight,g=Y(s),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),O=m-y,x=v-h,C=O+g,Z=c-g-h,w=p-v+g+b,I=g+h-y;switch(i){case"auto":case"bottom":if(x>=f)return{placement:"bottom",maxHeight:t};if(Z>=f&&!a)return r&&_(s,w,160),{placement:"bottom",maxHeight:t};if(!a&&Z>=o||a&&x>=o)return r&&_(s,w,160),{placement:"bottom",maxHeight:a?x-b:Z-b};if("auto"===i||a){var S=t,V=a?O:C;return V>=o&&(S=Math.min(V-b-u,t)),{placement:"top",maxHeight:S}}if("bottom"===i)return r&&G(s,w),{placement:"bottom",maxHeight:t};break;case"top":if(O>=f)return{placement:"top",maxHeight:t};if(C>=f&&!a)return r&&_(s,I,160),{placement:"top",maxHeight:t};if(!a&&C>=o||a&&O>=o){var E=t;return(!a&&C>=o||a&&O>=o)&&(E=a?O-y:C-y),r&&_(s,I,160),{placement:"top",maxHeight:E}}return{placement:"bottom",maxHeight:t};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return l}({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:u&&!t,isFixedPosition:t,controlHeight:y});m(a.maxHeight),b(a.placement),null==d||d(a.placement)}},[o,i,r,u,n,d,y]),t({ref:p,placerProps:(0,a.Z)((0,a.Z)({},e),{},{placement:g||et(i),maxHeight:h})})},ei=function(e,t){var n=e.theme,o=n.spacing.baseUnit,i=n.colors;return(0,a.Z)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},er=function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};er.defaultProps={children:"No options"};var ea=function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};ea.defaultProps={children:"Loading..."};var eu=["size"],es={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},el=function(e){var t=e.size,n=(0,l.Z)(e,eu);return(0,b.tZ)("svg",(0,p.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:es},n))},ec=function(e){return(0,b.tZ)(el,(0,p.Z)({size:20},e),(0,b.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ed=function(e){return(0,b.tZ)(el,(0,p.Z)({size:20},e),(0,b.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ep=function(e,t){var n=e.isFocused,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return(0,a.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*i,":hover":{color:n?r.neutral80:r.neutral40}})},ef=(0,b.F4)(r||(o=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],i||(i=o.slice(0)),r=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(i)}})))),eh=function(e){var t=e.delay,n=e.offset;return(0,b.tZ)("span",{css:(0,b.iv)({animation:"".concat(ef," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},em=function(e){var t=e.innerProps,n=e.isRtl;return(0,b.tZ)("div",(0,p.Z)({},j(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,b.tZ)(eh,{delay:0,offset:n}),(0,b.tZ)(eh,{delay:160,offset:!0}),(0,b.tZ)(eh,{delay:320,offset:!n}))};em.defaultProps={size:4};var ev=["data"],eg=["innerRef","isDisabled","isHidden","inputClassName"],eb={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ey={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,a.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},eb)},eO=function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",n,t)},ex={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,b.tZ)(ec,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.innerRef,r=e.innerProps,a=e.menuIsOpen;return(0,b.tZ)("div",(0,p.Z)({ref:i},j(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),r),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,b.tZ)(ed,null))},DownChevron:ed,CrossIcon:ec,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,i=e.getClassNames,r=e.Heading,a=e.headingProps,u=e.innerProps,s=e.label,l=e.theme,c=e.selectProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"group",{group:!0}),u),(0,b.tZ)(r,(0,p.Z)({},a,{selectProps:c,theme:l,getStyles:o,getClassNames:i,cx:n}),s),(0,b.tZ)("div",null,t))},GroupHeading:function(e){var t=B(e);t.data;var n=(0,l.Z)(t,ev);return(0,b.tZ)("div",(0,p.Z)({},j(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,b.tZ)("span",(0,p.Z)({},t,j(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=B(e),i=o.innerRef,r=o.isDisabled,u=o.isHidden,s=o.inputClassName,c=(0,l.Z)(o,eg);return(0,b.tZ)("div",(0,p.Z)({},j(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,b.tZ)("input",(0,p.Z)({className:t({input:!0},s),ref:i,style:(0,a.Z)({label:"input",color:"inherit",background:0,opacity:u?0:1,width:"100%"},eb),disabled:r},c)))},LoadingIndicator:em,Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,i=e.isMulti;return(0,b.tZ)("div",(0,p.Z)({},j(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,i=e.innerProps,r=e.menuPlacement,u=e.menuPosition,l=(0,c.useRef)(null),d=(0,c.useRef)(null),f=s((0,c.useState)(et(r)),2),h=f[0],m=f[1],v=(0,c.useMemo)(function(){return{setPortalPlacement:m}},[]),g=s((0,c.useState)(null),2),y=g[0],O=g[1],C=(0,c.useCallback)(function(){if(o){var e,t={bottom:(e=o.getBoundingClientRect()).bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width},n="fixed"===u?0:window.pageYOffset,i=t[h]+n;(i!==(null==y?void 0:y.offset)||t.left!==(null==y?void 0:y.rect.left)||t.width!==(null==y?void 0:y.rect.width))&&O({offset:i,rect:t})}},[o,u,h,null==y?void 0:y.offset,null==y?void 0:y.rect.left,null==y?void 0:y.rect.width]);A(function(){C()},[C]);var Z=(0,c.useCallback)(function(){"function"==typeof d.current&&(d.current(),d.current=null),o&&l.current&&(d.current=function(e,t,n,o){void 0===o&&(o={});let{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:a=!0,animationFrame:u=!1}=o,s=i||r?[...V(e)?T(e):e.contextElement?T(e.contextElement):[],...T(t)]:[];s.forEach(e=>{let t=!V(e)&&e.toString().includes("V");i&&(!u||t)&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)});let l,c=null;a&&(c=new ResizeObserver(()=>{n()}),V(e)&&!u&&c.observe(e),V(e)||!e.contextElement||u||c.observe(e.contextElement),c.observe(t));let d=u?F(e):null;return u&&function t(){let o=F(e);d&&(o.x!==d.x||o.y!==d.y||o.width!==d.width||o.height!==d.height)&&n(),d=o,l=requestAnimationFrame(t)}(),n(),()=>{var e;s.forEach(e=>{i&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)}),null==(e=c)||e.disconnect(),c=null,u&&cancelAnimationFrame(l)}}(o,l.current,C,{elementResize:"ResizeObserver"in window}))},[o,C]);A(function(){Z()},[Z]);var w=(0,c.useCallback)(function(e){l.current=e,Z()},[Z]);if(!t&&"fixed"!==u||!y)return null;var I=(0,b.tZ)("div",(0,p.Z)({ref:w},j((0,a.Z)((0,a.Z)({},e),{},{offset:y.offset,position:u,rect:y.rect}),"menuPortal",{"menu-portal":!0}),i),n);return(0,b.tZ)(en.Provider,{value:v},t?(0,x.createPortal)(I,t):I)},LoadingMessage:ea,NoOptionsMessage:er,MultiValue:function(e){var t=e.children,n=e.components,o=e.data,i=e.innerProps,r=e.isDisabled,u=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return(0,b.tZ)(l,{data:o,innerProps:(0,a.Z)((0,a.Z)({},j(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":r})),i),selectProps:s},(0,b.tZ)(c,{data:o,innerProps:(0,a.Z)({},j(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),(0,b.tZ)(d,{data:o,innerProps:(0,a.Z)((0,a.Z)({},j(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},u),selectProps:s}))},MultiValueContainer:eO,MultiValueLabel:eO,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({role:"button"},n),t||(0,b.tZ)(ec,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.innerRef,a=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:r,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,i=e.isRtl;return(0,b.tZ)("div",(0,p.Z)({},j(e,"container",{"--is-disabled":o,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,i=e.hasValue;return(0,b.tZ)("div",(0,p.Z)({},j(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),t)}},eC=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function eZ(e,t){if(e.length!==t.length)return!1;for(var n,o,i=0;i<e.length;i++)if(!((n=e[i])===(o=t[i])||eC(n)&&eC(o)))return!1;return!0}for(var ew={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},eI=function(e){return(0,b.tZ)("span",(0,p.Z)({css:ew},e))},eS={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,i=e.labels,r=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return r?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,i=e.label,r=void 0===i?"":i,a=e.selectValue,u=e.isDisabled,s=e.isSelected,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(r," focused, ").concat(l(a,n),".");if("menu"===t){var c="".concat(s?"selected":"focused").concat(u?" disabled":"");return"option ".concat(r," ").concat(c,", ").concat(l(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},eV=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,r=e.isFocused,u=e.selectValue,s=e.selectProps,l=e.id,d=s.ariaLiveMessages,p=s.getOptionLabel,f=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,v=s.isSearchable,g=s.menuIsOpen,y=s.options,O=s.screenReaderStatus,x=s.tabSelectsValue,C=s["aria-label"],Z=s["aria-live"],w=(0,c.useMemo)(function(){return(0,a.Z)((0,a.Z)({},eS),d||{})},[d]),I=(0,c.useMemo)(function(){var e="";if(t&&w.onChange){var n=t.option,o=t.options,i=t.removedValue,r=t.removedValues,s=t.value,l=i||n||(Array.isArray(s)?null:s),c=l?p(l):"",d=o||r||void 0,f=d?d.map(p):[],h=(0,a.Z)({isDisabled:l&&m(l,u),label:c,labels:f},t);e=w.onChange(h)}return e},[t,w,m,u,p]),S=(0,c.useMemo)(function(){var e="",t=n||o,r=!!(n&&u&&u.includes(n));if(t&&w.onFocus){var a={focused:t,label:p(t),isDisabled:m(t,u),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:u};e=w.onFocus(a)}return e},[n,o,p,m,w,i,u]),V=(0,c.useMemo)(function(){var e="";if(g&&y.length&&w.onFilter){var t=O({count:i.length});e=w.onFilter({inputValue:f,resultsMessage:t})}return e},[i,f,g,w,y,O]),E=(0,c.useMemo)(function(){var e="";if(w.guidance){var t=o?"value":g?"menu":"input";e=w.guidance({"aria-label":C,context:t,isDisabled:n&&m(n,u),isMulti:h,isSearchable:v,tabSelectsValue:x})}return e},[C,n,o,h,m,v,g,w,u,x]),M="".concat(S," ").concat(V," ").concat(E),R=(0,b.tZ)(c.Fragment,null,(0,b.tZ)("span",{id:"aria-selection"},I),(0,b.tZ)("span",{id:"aria-context"},M)),L=(null==t?void 0:t.action)==="initial-input-focus";return(0,b.tZ)(c.Fragment,null,(0,b.tZ)(eI,{id:l},L&&R),(0,b.tZ)(eI,{"aria-live":Z,"aria-atomic":"false","aria-relevant":"additions text"},r&&!L&&R))},eE=[{base:"A",letters:"AⒶA\xc0\xc1\xc2ẦẤẪẨ\xc3ĀĂẰẮẴẲȦǠ\xc4ǞẢ\xc5ǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČ\xc7ḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺE\xc8\xc9\xcaỀẾỄỂẼĒḔḖĔĖ\xcbẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾI\xcc\xcd\xceĨĪĬİ\xcfḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃ\xd1ṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄO\xd2\xd3\xd4ỒỐỖỔ\xd5ṌȬṎŌṐṒŎȮȰ\xd6ȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬ\xd8ǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊU\xd9\xda\xdbŨṸŪṺŬ\xdcǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲ\xddŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚ\xe0\xe1\xe2ầấẫẩ\xe3āăằắẵẳȧǡ\xe4ǟả\xe5ǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċč\xe7ḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔe\xe8\xe9\xeaềếễểẽēḕḗĕė\xebẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘi\xec\xed\xeeĩīĭ\xefḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹń\xf1ṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞo\xf2\xf3\xf4ồốỗổ\xf5ṍȭṏōṑṓŏȯȱ\xf6ȫỏőǒȍȏơờớỡởợọộǫǭ\xf8ǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢs\xdfśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤu\xf9\xfa\xfbũṹūṻŭ\xfcǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳ\xfdŷỹȳẏ\xffỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],eM=RegExp("["+eE.map(function(e){return e.letters}).join("")+"]","g"),eR={},eL=0;eL<eE.length;eL++)for(var ek=eE[eL],eD=0;eD<ek.letters.length;eD++)eR[ek.letters[eD]]=ek.base;var eP=function(e){return e.replace(eM,function(e){return eR[e]})},eF=function(e,t){void 0===t&&(t=eZ);var n=null;function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var r=e.apply(this,o);return n={lastResult:r,lastArgs:o,lastThis:this},r}return o.clear=function(){n=null},o}(eP),eT=function(e){return e.replace(/^\s+|\s+$/g,"")},eA=function(e){return"".concat(e.label," ").concat(e.value)},eH=["innerRef"];function eU(e){var t=e.innerRef,n=ee((0,l.Z)(e,eH),"onExited","in","enter","exit","appear");return(0,b.tZ)("input",(0,p.Z)({ref:t},n,{css:(0,b.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var ez=function(e){e.preventDefault(),e.stopPropagation()},eN=["boxSizing","height","overflow","paddingRight","position"],eB={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ej(e){e.preventDefault()}function eW(e){e.stopPropagation()}function eY(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function eG(){return"ontouchstart"in window||navigator.maxTouchPoints}var e_=!!("undefined"!=typeof window&&window.document&&window.document.createElement),eX=0,eq={capture:!1,passive:!1},eK=function(){return document.activeElement&&document.activeElement.blur()},eJ={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function e$(e){var t,n,o,i,r,a,u,s,l,d,p,f,h,m,v,g,y,O,x,C,Z,w,I,S,V=e.children,E=e.lockEnabled,M=e.captureEnabled,R=(n=(t={isEnabled:void 0===M||M,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,o=t.onBottomArrive,i=t.onBottomLeave,r=t.onTopArrive,a=t.onTopLeave,u=(0,c.useRef)(!1),s=(0,c.useRef)(!1),l=(0,c.useRef)(0),d=(0,c.useRef)(null),p=(0,c.useCallback)(function(e,t){if(null!==d.current){var n=d.current,l=n.scrollTop,c=n.scrollHeight,p=n.clientHeight,f=d.current,h=t>0,m=c-p-l,v=!1;m>t&&u.current&&(i&&i(e),u.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>m?(o&&!u.current&&o(e),f.scrollTop=c,v=!0,u.current=!0):!h&&-t>l&&(r&&!s.current&&r(e),f.scrollTop=0,v=!0,s.current=!0),v&&ez(e)}},[o,i,r,a]),f=(0,c.useCallback)(function(e){p(e,e.deltaY)},[p]),h=(0,c.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),m=(0,c.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)},[p]),v=(0,c.useCallback)(function(e){if(e){var t=!!$&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",m,t)}},[m,h,f]),g=(0,c.useCallback)(function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",m,!1))},[m,h,f]),(0,c.useEffect)(function(){if(n){var e=d.current;return v(e),function(){g(e)}}},[n,v,g]),function(e){d.current=e}),L=(O=(y={isEnabled:E}).isEnabled,C=void 0===(x=y.accountForScrollbars)||x,Z=(0,c.useRef)({}),w=(0,c.useRef)(null),I=(0,c.useCallback)(function(e){if(e_){var t=document.body,n=t&&t.style;if(C&&eN.forEach(function(e){var t=n&&n[e];Z.current[e]=t}),C&&eX<1){var o=parseInt(Z.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,r=window.innerWidth-i+o||0;Object.keys(eB).forEach(function(e){var t=eB[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(r,"px"))}t&&eG()&&(t.addEventListener("touchmove",ej,eq),e&&(e.addEventListener("touchstart",eY,eq),e.addEventListener("touchmove",eW,eq))),eX+=1}},[C]),S=(0,c.useCallback)(function(e){if(e_){var t=document.body,n=t&&t.style;eX=Math.max(eX-1,0),C&&eX<1&&eN.forEach(function(e){var t=Z.current[e];n&&(n[e]=t)}),t&&eG()&&(t.removeEventListener("touchmove",ej,eq),e&&(e.removeEventListener("touchstart",eY,eq),e.removeEventListener("touchmove",eW,eq)))}},[C]),(0,c.useEffect)(function(){if(O){var e=w.current;return I(e),function(){S(e)}}},[O,I,S]),function(e){w.current=e});return(0,b.tZ)(c.Fragment,null,E&&(0,b.tZ)("div",{onClick:eK,css:eJ}),V(function(e){R(e),L(e)}))}var eQ={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},e0=function(e){var t=e.name,n=e.onFocus;return(0,b.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:eQ,value:"",onChange:function(){}})},e1={clearIndicator:ep,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.theme,r=i.colors,u=i.borderRadius,s=i.spacing;return(0,a.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?r.neutral5:r.neutral0,borderColor:n?r.neutral10:o?r.primary:r.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(r.primary):void 0,"&:hover":{borderColor:o?r.primary:r.neutral30}})},dropdownIndicator:ep,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,i=n.spacing;return(0,a.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return(0,a.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?r.neutral10:r.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,o=e.value,i=e.theme,r=i.spacing,u=i.colors;return(0,a.Z)((0,a.Z)({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},ey),t?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:u.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,i=e.theme,r=i.colors,u=i.spacing.baseUnit;return(0,a.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*u})},loadingMessage:ei,menu:function(e,t){var n,o=e.placement,i=e.theme,r=i.borderRadius,u=i.spacing,s=i.colors;return(0,a.Z)((n={label:"menu"},(0,O.Z)(n,o?({bottom:"top",top:"bottom"})[o]:"bottom","100%"),(0,O.Z)(n,"position","absolute"),(0,O.Z)(n,"width","100%"),(0,O.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:r,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return(0,a.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors;return(0,a.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:r.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,i=n.colors,r=e.cropWithEllipsis;return(0,a.Z)({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors,u=e.isFocused;return(0,a.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:u?r.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}})},noOptionsMessage:ei,option:function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.theme,u=r.spacing,s=r.colors;return(0,a.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*u.baseUnit,"px ").concat(3*u.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,i=n.colors;return(0,a.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing,r=o.colors;return(0,a.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?r.neutral40:r.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,i=e.hasValue,r=e.selectProps.controlShouldRenderValue;return(0,a.Z)({alignItems:"center",display:o&&i&&r?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},e2={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},e6={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:q(),captureMenuScroll:!q(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,a.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:eA,trim:!0,matchFrom:"any"},void 0),o=n.ignoreCase,i=n.ignoreAccents,r=n.stringify,u=n.trim,s=n.matchFrom,l=u?eT(t):t,c=u?eT(r(e)):r(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=eF(l),c=eP(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function e4(e,t,n,o){var i=te(e,t,n),r=tt(e,t,n),a=e8(e,t),u=e7(e,t);return{type:"option",data:t,isDisabled:i,isSelected:r,label:a,value:u,index:o}}function e3(e,t){return e.options.map(function(n,o){if("options"in n){var i=n.options.map(function(n,o){return e4(e,n,t,o)}).filter(function(t){return e9(e,t)});return i.length>0?{type:"group",data:n,options:i,index:o}:void 0}var r=e4(e,n,t,o);return e9(e,r)?r:void 0}).filter(Q)}function e5(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,(0,g.Z)(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function e9(e,t){var n=e.inputValue,o=t.data,i=t.isSelected,r=t.label,a=t.value;return(!to(e)||!i)&&tn(e,{label:r,value:a,data:o},void 0===n?"":n)}var e8=function(e,t){return e.getOptionLabel(t)},e7=function(e,t){return e.getOptionValue(t)};function te(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function tt(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=e7(e,t);return n.some(function(t){return e7(e,t)===o})}function tn(e,t,n){return!e.filterOption||e.filterOption(t,n)}var to=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ti=1,tr=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e){var o;if((0,f.Z)(this,n),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.instancePrefix="",o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,i=n.onChange,r=n.name;t.name=r,o.ariaOnChange(e,t),i(e,t)},o.setValue=function(e,t,n){var i=o.props,r=i.closeMenuOnSelect,a=i.isMulti,u=i.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:u}),r&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,i=t.isMulti,r=t.name,a=o.state.selectValue,u=i&&o.isOptionSelected(e,a),s=o.isOptionDisabled(e,a);if(u){var l=o.getOptionValue(e);o.setValue(a.filter(function(e){return o.getOptionValue(e)!==l}),"deselect-option",e)}else if(s){o.ariaOnChange(e,{action:"select-option",option:e,name:r});return}else i?o.setValue([].concat((0,g.Z)(a),[e]),"select-option",e):o.setValue(e,"select-option");n&&o.blurInput()},o.removeValue=function(e){var t,n=o.props.isMulti,i=o.state.selectValue,r=o.getOptionValue(e),a=i.filter(function(e){return o.getOptionValue(e)!==r}),u=(t=a[0]||null,n?a:t);o.onChange(u,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e,t,n=o.state.selectValue;o.onChange((e=o.props.isMulti,t=[],e?t:null),{action:"clear",removedValues:n})},o.popValue=function(){var e,t=o.props.isMulti,n=o.state.selectValue,i=n[n.length-1],r=n.slice(0,n.length-1),a=(e=r[0]||null,t?r:e);o.onChange(a,{action:"pop-value",removedValue:i})},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return z.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return e8(o.props,e)},o.getOptionValue=function(e){return e7(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,i=e1[e](t,n);i.boxSizing="border-box";var r=o.props.styles[e];return r?r(i,t):i},o.getClassNames=function(e,t){var n,i;return null===(n=(i=o.props.classNames)[e])||void 0===n?void 0:n.call(i,t)},o.getElementId=function(e){return"".concat(o.instancePrefix,"-").concat(e)},o.getComponents=function(){var e;return e=o.props,(0,a.Z)((0,a.Z)({},ex),e.components)},o.buildCategorizedOptions=function(){return e3(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return e5(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:(0,a.Z)({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!o.props.isDisabled){var t=o.props,n=t.isMulti,i=t.menuIsOpen;o.focusInput(),i?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&W(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-o.initialTouchX),r=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=i>5||r>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(e){o.blockOptionHover||o.state.focusedOption===e||o.setState({focusedOption:e})},o.shouldHideSelectedOptions=function(){return to(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,i=t.backspaceRemovesValue,r=t.escapeClearsValue,a=t.inputValue,u=t.isClearable,s=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=o.state,h=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!s){if("function"==typeof c&&(c(e),e.defaultPrevented))return;switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)o.removeValue(m);else{if(!i)return;n?o.popValue():u&&o.clearValue()}break;case"Tab":if(o.isComposing||e.shiftKey||!l||!d||!h||p&&o.isOptionSelected(h,v))return;o.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h||o.isComposing)return;o.selectOption(h);break}return;case"Escape":l?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):u&&r&&o.clearValue();break;case" ":if(a)return;if(!l){o.openMenu("first");break}if(!h)return;o.selectOption(h);break;case"ArrowUp":l?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":l?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!l)return;o.focusOption("pageup");break;case"PageDown":if(!l)return;o.focusOption("pagedown");break;case"Home":if(!l)return;o.focusOption("first");break;case"End":if(!l)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.instancePrefix="react-select-"+(o.props.instanceId||++ti),o.state.selectValue=N(e.value),e.menuIsOpen&&o.state.selectValue.length){var i=o.buildFocusableOptions(),r=i.indexOf(o.state.selectValue[0]);o.state.focusedOption=i[r]}return o}return(0,h.Z)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&X(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&o&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(X(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,i=n.isFocused,r=this.buildFocusableOptions(),a="first"===e?0:r.length-1;if(!this.props.isMulti){var u=r.indexOf(o[0]);u>-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:r[a]},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(o);o||(i=-1);var r=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?r:i-1;break;case"next":i>-1&&i<r&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var i=0,r=o.indexOf(n);n||(r=-1),"up"===e?i=r>0?r-1:o.length-1:"down"===e?i=(r+1)%o.length:"pageup"===e?(i=r-t)<0&&(i=0):"pagedown"===e?(i=r+t)>o.length-1&&(i=o.length-1):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(e2):(0,a.Z)((0,a.Z)({},e2),this.props.theme):e2}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,i=this.getValue,r=this.selectOption,a=this.setValue,u=this.props,s=u.isMulti,l=u.isRtl,c=u.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:i,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:r,selectProps:u,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return te(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return tt(this.props,e,t)}},{key:"filterOption",value:function(e,t){return tn(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,i=e.inputValue,r=e.tabIndex,u=e.form,s=e.menuIsOpen,l=e.required,d=this.getComponents().Input,f=this.state,h=f.inputIsHidden,m=f.ariaSelection,v=this.commonProps,g=o||this.getElementId("input"),b=(0,a.Z)((0,a.Z)((0,a.Z)({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox"},s&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?(null==m?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?c.createElement(d,(0,p.Z)({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:r,form:u,type:"text",value:i},b)):c.createElement(eU,(0,p.Z)({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:U,onFocus:this.onInputFocus,disabled:t,tabIndex:r,inputMode:"none",form:u,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,r=t.MultiValueRemove,a=t.SingleValue,u=t.Placeholder,s=this.commonProps,l=this.props,d=l.controlShouldRenderValue,f=l.isDisabled,h=l.isMulti,m=l.inputValue,v=l.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,O=g.isFocused;if(!this.hasValue()||!d)return m?null:c.createElement(u,(0,p.Z)({},s,{key:"placeholder",isDisabled:f,isFocused:O,innerProps:{id:this.getElementId("placeholder")}}),v);if(h)return b.map(function(t,a){var u=t===y,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return c.createElement(n,(0,p.Z)({},s,{components:{Container:o,Label:i,Remove:r},isFocused:u,isDisabled:f,key:l,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(m)return null;var x=b[0];return c.createElement(a,(0,p.Z)({},s,{data:x,isDisabled:f}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,r=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,(0,p.Z)({},t,{innerProps:a,isFocused:r}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,r=this.state.isFocused;return e&&i?c.createElement(e,(0,p.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:r})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,r=this.state.isFocused;return c.createElement(n,(0,p.Z)({},o,{isDisabled:i,isFocused:r}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,(0,p.Z)({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e,t=this,n=this.getComponents(),o=n.Group,i=n.GroupHeading,r=n.Menu,a=n.MenuList,u=n.MenuPortal,s=n.LoadingMessage,l=n.NoOptionsMessage,d=n.Option,f=this.commonProps,h=this.state.focusedOption,m=this.props,v=m.captureMenuScroll,g=m.inputValue,b=m.isLoading,y=m.loadingMessage,O=m.minMenuHeight,x=m.maxMenuHeight,C=m.menuIsOpen,Z=m.menuPlacement,w=m.menuPosition,I=m.menuPortalTarget,S=m.menuShouldBlockScroll,V=m.menuShouldScrollIntoView,E=m.noOptionsMessage,M=m.onMenuScrollToTop,R=m.onMenuScrollToBottom;if(!C)return null;var L=function(e,n){var o=e.type,i=e.data,r=e.isDisabled,a=e.isSelected,u=e.label,s=e.value,l=h===i,m=r?void 0:function(){return t.onOptionHover(i)},v=r?void 0:function(){return t.selectOption(i)},g="".concat(t.getElementId("option"),"-").concat(n);return c.createElement(d,(0,p.Z)({},f,{innerProps:{id:g,onClick:v,onMouseMove:m,onMouseOver:m,tabIndex:-1},data:i,isDisabled:r,isSelected:a,key:g,label:u,type:o,value:s,isFocused:l,innerRef:l?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var n=e.data,r=e.options,a=e.index,u="".concat(t.getElementId("group"),"-").concat(a),s="".concat(u,"-heading");return c.createElement(o,(0,p.Z)({},f,{key:u,data:n,options:r,Heading:i,headingProps:{id:s,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return L(e,"".concat(a,"-").concat(e.index))}))}if("option"===e.type)return L(e,"".concat(e.index))});else if(b){var k=y({inputValue:g});if(null===k)return null;e=c.createElement(s,f,k)}else{var D=E({inputValue:g});if(null===D)return null;e=c.createElement(l,f,D)}var P={minMenuHeight:O,maxMenuHeight:x,menuPlacement:Z,menuPosition:w,menuShouldScrollIntoView:V},F=c.createElement(eo,(0,p.Z)({},f,P),function(n){var o=n.ref,i=n.placerProps,u=i.placement,s=i.maxHeight;return c.createElement(r,(0,p.Z)({},f,P,{innerRef:o,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:b,placement:u}),c.createElement(e$,{captureEnabled:v,onTopArrive:M,onBottomArrive:R,lockEnabled:S},function(n){return c.createElement(a,(0,p.Z)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},isLoading:b,maxHeight:s,focusedOption:h}),e)}))});return I||"fixed"===w?c.createElement(u,(0,p.Z)({},f,{appendTo:I,controlElement:this.controlRef,menuPlacement:Z,menuPosition:w}),F):F}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,r=t.name,a=t.required,u=this.state.selectValue;if(a&&!this.hasValue()&&!o)return c.createElement(e0,{name:r,onFocus:this.onValueInputFocus});if(r&&!o){if(i){if(n){var s=u.map(function(t){return e.getOptionValue(t)}).join(n);return c.createElement("input",{name:r,type:"hidden",value:s})}var l=u.length>0?u.map(function(t,n){return c.createElement("input",{key:"i-".concat(n),name:r,type:"hidden",value:e.getOptionValue(t)})}):c.createElement("input",{name:r,type:"hidden",value:""});return c.createElement("div",null,l)}var d=u[0]?this.getOptionValue(u[0]):"";return c.createElement("input",{name:r,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,r=t.isFocused,a=t.selectValue,u=this.getFocusableOptions();return c.createElement(eV,(0,p.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:r,selectValue:a,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,r=this.props,a=r.className,u=r.id,s=r.isDisabled,l=r.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return c.createElement(o,(0,p.Z)({},f,{className:a,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:d}),this.renderLiveRegion(),c.createElement(t,(0,p.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:d,menuIsOpen:l}),c.createElement(i,(0,p.Z)({},f,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),c.createElement(n,(0,p.Z)({},f,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,i=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,u=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,c=e.options,d=e.value,p=e.menuIsOpen,f=e.inputValue,h=e.isMulti,m=N(d),v={};if(o&&(d!==o.value||c!==o.options||p!==o.menuIsOpen||f!==o.inputValue)){var g,b=p?e5(e3(e,m)):[],y=i?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,m):null;v={selectValue:m,focusedOption:(g=t.focusedOption)&&b.indexOf(g)>-1?g:b[0],focusedValue:y,clearFocusValueOnUpdate:!1}}var O=null!=r&&e!==o?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},x=u,C=s&&l;return s&&!C&&(x={value:(n=m[0]||null,h?m:n),options:m,action:"initial-input-focus"},C=!l),(null==u?void 0:u.action)==="initial-input-focus"&&(x=null),(0,a.Z)((0,a.Z)((0,a.Z)({},v),O),{},{prevProps:e,ariaSelection:x,prevWasFocused:C})}}]),n}(c.Component);tr.defaultProps=e6,n(2107);var ta=(0,c.forwardRef)(function(e,t){var n,o,i,r,u,f,h,m,v,g,b,y,O,x,C,Z,w,I,S,V,E,M,R,L,k,D,P,F=(n=e.defaultInputValue,o=e.defaultMenuIsOpen,i=e.defaultValue,r=e.inputValue,u=e.menuIsOpen,f=e.onChange,h=e.onInputChange,m=e.onMenuClose,v=e.onMenuOpen,g=e.value,b=(0,l.Z)(e,d),O=(y=s((0,c.useState)(void 0!==r?r:void 0===n?"":n),2))[0],x=y[1],Z=(C=s((0,c.useState)(void 0!==u?u:void 0!==o&&o),2))[0],w=C[1],S=(I=s((0,c.useState)(void 0!==g?g:void 0===i?null:i),2))[0],V=I[1],E=(0,c.useCallback)(function(e,t){"function"==typeof f&&f(e,t),V(e)},[f]),M=(0,c.useCallback)(function(e,t){var n;"function"==typeof h&&(n=h(e,t)),x(void 0!==n?n:e)},[h]),R=(0,c.useCallback)(function(){"function"==typeof v&&v(),w(!0)},[v]),L=(0,c.useCallback)(function(){"function"==typeof m&&m(),w(!1)},[m]),k=void 0!==r?r:O,D=void 0!==u?u:Z,P=void 0!==g?g:S,(0,a.Z)((0,a.Z)({},b),{},{inputValue:k,menuIsOpen:D,onChange:E,onInputChange:M,onMenuClose:L,onMenuOpen:R,value:P}));return c.createElement(tr,(0,p.Z)({ref:t},F))})},926:function(e,t,n){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{Z:function(){return o}})},9249:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return o}})},87371:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(32802);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,o.Z)(i.key),i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4309:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var o=n(95058),i=n(70352),r=n(86522),a=n(80753);function u(e){var t=(0,i.Z)();return function(){var n,i=(0,o.Z)(e);return n=t?Reflect.construct(i,arguments,(0,o.Z)(this).constructor):i.apply(this,arguments),function(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}(this,n)}}},45754:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(88960);function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,o.Z)(e,t)}},59740:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(31461);function i(e,t){if(null==e)return{};var n,i,r=(0,o.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}},51171:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(926),i=n(59147);function r(e){return function(e){if(Array.isArray(e))return(0,o.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},59147:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(926);function i(e,t){if(e){if("string"==typeof e)return(0,o.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,o.Z)(e,t)}}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[136],{31314:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/slices/[lib]/[sliceName]/[variation]",function(){return n(57514)}])},50477:function(e,t,n){"use strict";n.d(t,{NG:function(){return s},xU:function(){return a}});var i=n(18566),r=n(2784),o=n(80148);function a(e){let t=(0,r.useCallback)(t=>(0,i.VA)(l,[e],t),[e]);return{customTypes:(0,i.QT)(l,[e]),updateCustomTypes:t}}async function l(e){let{errors:t,models:n}=await o.managerClient.customTypes.readAllCustomTypes(e?{format:e}:void 0);if(t.length>0)throw t;return n.map(e=>{let{model:t}=e;return t})}function s(e){(0,i.gw)(l,[]),(0,i.gw)(l,[e])}},44309:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(5632),r=n(56580),o=n(7723);let a=(e,t,n)=>{var i;let r=null===(i=(0,o.Sd)(e))||void 0===i?void 0:i.find(e=>e.name.replace(/\//g,"--")===t);return null==r?void 0:r.components.find(e=>e.model.name===n)};var l=()=>{let e=(0,i.useRouter)(),{slice:t}=(0,r.v9)(t=>({slice:a(t,e.query.lib,e.query.sliceName)}));if(!t)return{};let n=t.model.variations.find(t=>t.id===e.query.variation);return n?{slice:t,variation:n}:{}}},57514:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eO}});var i=n(52322),r=n(97729),o=n.n(r),a=n(5632),l=n(74217),s=n(2784),d=n(94160),c=n(68968),u=n(23710),m=n(54597);let h=(0,s.createContext)(void 0);function p(e){let{children:t,initialSlice:n}=e,r=(0,a.useRouter)(),[o,p]=(0,s.useState)(n),{actionQueueStatus:f,setNextAction:v}=(0,u.c)({errorMessage:"Failed to save slice. Check your browser's console for more information."}),{saveSliceSuccess:x}=(0,m.Z)(),y=(0,l.R9)(x),{syncChanges:g}=(0,c.g)(),j=(0,s.useMemo)(()=>{let e=r.query.variation,t=o.model.variations.find(t=>t.id===e);if(t)return t;throw Error("Variation not found")},[o,r]),b=(0,s.useCallback)((e,t)=>{p(e),v(async()=>{let{errors:n}=await (0,d.Ve)(e);if(n.length>0)throw n;let{errors:i,mocks:r}=await (0,d.pL)({libraryID:e.from,sliceID:e.model.id});if(i.length>0)throw i;y({...e,mocks:r}),g(),null==t||t()})},[v,y,g]),w=(0,s.useMemo)(()=>({actionQueueStatus:f,slice:o,setSlice:b,variation:j}),[f,o,b,j]);return(0,i.jsx)(h.Provider,{value:w,children:"function"==typeof t?t(w):t})}function f(){let e=(0,s.useContext)(h);if(!e)throw Error("SliceBuilderProvider not found");return e}var v=n(44309),x=n(14226),y=n(43388),g=n(23094),j=n(17378),b=n(18566),w=n(80148);async function C(e){let{errors:t,model:n}=await w.managerClient.customTypes.readCustomType({id:e});if(t.length>0)throw t;return n}var I=n(59294),S=n(14101),k=n(81229);let D=e=>(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsx)("path",{d:"M9.5 12L6 9.5L9.5 7V9.5V12Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M6 9.5H11C14.3 9.5 17 12.2 17 15.5V17.5M6 9.5L9.5 12V9.5V7L6 9.5Z",stroke:"currentColor",strokeLinecap:"round"})]}),T=()=>{let{source:e}=(0,S.l)(),t=function(e){let t=(0,I.Ag)(e.query);return void 0!==t&&(0,I.ne)(e.asPath,t)?t:void 0}(e);return void 0!==t?(0,i.jsx)(j.S,{children:(0,i.jsx)(s.Suspense,{children:(0,i.jsx)(x.D,{bottom:32,justifyContent:"center",position:"fixed",right:0,width:"100vw",children:(0,i.jsx)(E,{sourceCustomTypeId:t})})})}):null},E=e=>{let{sourceCustomTypeId:t}=e,n=(0,b.QT)(C,[t]),[r,o]=(0,s.useState)(!0),l=(0,a.useRouter)();if(void 0===n||!r)return null;{let{format:e,id:t}=n,r=I.cd[e].getBuilderPagePathname(t);return(0,i.jsxs)(x.F,{density:"compact",color:"dark",children:[(0,i.jsxs)(x.E,{onClick:()=>{l.push(r)},renderStartIcon:()=>(0,i.jsx)(D,{}),children:["Return to ",n.label]}),(0,i.jsx)(x.E,{onClick:()=>{o(!1)},renderStartIcon:()=>(0,i.jsx)(k.T,{})})]})}},A=()=>(0,i.jsx)(x.E,{asChild:!0,invisible:!0,color:"grey",endIcon:"openInNew",sx:{alignSelf:"center"},onClick:()=>{d.Xe.track({event:"mcp:promo-link-clicked",source:"slice_editor",target:"docs"})},children:(0,i.jsx)("a",{href:"https://prismic.io/docs/ai#code-with-prismics-mcp-server",target:"_blank",children:"Boost your workflow in Cursor with Prismic MCP"})});var R=n(62813),L=n(56580),_=n(33710),F=n(77057),O=n(39180),N=n(7974),V=n(79384);let M=e=>{let{children:t,open:n,onClose:r}=e;return(0,i.jsxs)(F.zs,{open:n,trigger:t,onClose:r,children:[(0,i.jsx)(F.Ev,{children:"Simulate your slices"}),(0,i.jsx)(F.LB,{component:"video",cloudName:"dmtf1daqp",loop:!1,autoPlay:!1,publicId:N.Sn,poster:"/simulator-video-thumbnail.png",controls:!0,onPlay:()=>{d.Xe.track({event:"open-video-tutorials",video:N.Sn})}}),(0,i.jsx)(F.OJ,{children:"Minimize context-switching by previewing your Slice components in the simulator."}),(0,i.jsx)(F.Rp,{children:"Got it"})]})};var P=e=>{let{disabled:t}=e,n=(0,a.useRouter)(),r=(0,s.useRef)(null),{setSeenSimulatorToolTip:o}=(0,m.Z)(),{hasSeenSimulatorTooltip:l}=(0,L.v9)(e=>({hasSeenSimulatorTooltip:(0,V.bv)(e)}));(0,s.useEffect)(()=>{let e=r.current;e&&!l&&setTimeout(()=>_.Z.show(e),5e3)},[l]);let d=()=>{if(o(),r.current){let{current:e}=r;_.Z.hide(e)}};return(0,i.jsx)("span",{"data-tip":!0,"data-tip-disable":!1,"data-for":"simulator-button-tooltip",ref:r,children:(0,i.jsx)(M,{open:!l,onClose:d,children:(0,i.jsx)(x.E,{"data-tip":!0,"data-testid":"simulator-open-button",onClick:()=>{d(),window.open("".concat(n.asPath,"/simulator"),N.pq)},disabled:t,renderStartIcon:()=>(0,i.jsx)(O.z,{color:x.t.color.grey1,height:"24px",style:{transform:"scale(calc(4 / 3))"},width:"24px"}),children:"Simulate"})})})},z=n(88866),Z=n(28316),K=n(88932),B=n(35289),H=n(63908),q=n(34166),W=n(3285),X=n(40141),G=n(49219),U=n(26109),Q=n(45440),Y=n(16086),J=n(358),$=n(5495),ee=n(39302);let et=[Q.C.Image,Q.C.Text,Q.C.StructuredText,Q.C.Link,Q.C.Select,Q.C.Boolean,Q.C.Number,Q.C.Color,Q.C.Date,Q.C.Table,Q.C.Embed,Q.C.Timestamp,Q.C.GeoPoint,Q.C.ContentRelationship,Q.C.LinkToMedia];var en=()=>{let{slice:e,setSlice:t,variation:n}=f(),[r,o]=(0,s.useState)(!1),a=[Q.C.Group,...et],l=!!(n.items&&Object.keys(n.items).length>0),d=i=>r=>{if(i===U.Rt.Items&&n.items&&Object.keys(n.items).length<=1){o(!0);return}t((0,H.AK)({slice:e,variationId:n.id,widgetArea:i,fieldId:r}))},c=(i,r)=>{let{apiId:o,newKey:a,value:l,inGroupFieldAction:s}=r;t((0,H.L4)({slice:e,variationId:n.id,widgetArea:i,previousFieldId:o,newFieldId:a,newField:l}),()=>{"add"===s&&K.Am.success("Field added")}),s||(0,ee.Z)({previousId:o,id:a,field:l})},u=(i,r)=>{let{apiId:o,value:l}=r,{type:s}=l,d=a.find(e=>e.CUSTOM_NAME===s||e.TYPE_NAME===s);if(!d)throw Error("Unsupported Field Type: ".concat(s));try{d.schema.validateSync(l,{stripUnknown:!1})}catch(e){throw Error('Model is invalid for widget "'.concat(l.type,'".'))}t((0,H.xS)({slice:e,variationId:n.id,widgetArea:i,newFieldId:o,newField:l.type===z.GroupFieldType?G.Fl.fromSM(l):l}),()=>{K.Am.success("".concat("Group"===s?"Group":"Field"," added"))}),(0,$.V)({id:o,field:l})},m=e=>t=>""===t.apiId?u(e,{...t,apiId:t.newKey}):c(e,t),h=i=>r=>{if((0,Y.uS)(r))return;let{source:o,destination:a}=r;if(!a)return;let l=(0,H.gR)({slice:e,variationId:n.id,widgetArea:i,sourceIndex:o.index,destinationIndex:a.index});(0,Z.flushSync)(()=>t(l))};return(0,i.jsxs)(x.D,{flexDirection:"column",gap:18,children:[(0,i.jsxs)(B.aV,{children:[(0,i.jsx)(X.Z,{zoneType:"slice",zoneTypeFormat:void 0,tabId:void 0,title:"Fields",dataTip:" The non-repeatable zone\n is for fields<br/> that should appear once, like a<br/>\n section title.\n",fields:n.primary,EditModal:W.Z,widgetsArray:a,onDeleteItem:d(U.Rt.Primary),onSave:m(U.Rt.Primary),onDragEnd:h(U.Rt.Primary),poolOfFieldsToCheck:n.primary||[],renderHintBase:e=>{let{item:t}=e;return"slice.primary".concat((0,J.Ti)(t.key))},renderFieldAccessor:e=>"slice.primary".concat((0,J.Ti)(e)),testId:"static-zone-content",isRepeatableCustomType:void 0,emptyStateHeading:void 0}),l?(0,i.jsx)(X.Z,{zoneType:"slice",zoneTypeFormat:void 0,tabId:void 0,isRepeatable:!0,title:"Repeatable Zone",dataTip:"The repeatable zone is for a group<br/>\n of fields that you want to be able to repeat an<br/>\n indeterminate number of times, like FAQs",widgetsArray:et,fields:n.items,EditModal:W.Z,onDeleteItem:d(U.Rt.Items),onSave:m(U.Rt.Items),onDragEnd:h(U.Rt.Items),poolOfFieldsToCheck:n.items||[],renderHintBase:e=>{let{item:t}=e;return"item".concat((0,J.Ti)(t.key))},renderFieldAccessor:e=>"slice.items[i]".concat((0,J.Ti)(e)),testId:"slice-repeatable-zone",isRepeatableCustomType:void 0,emptyStateHeading:"No fields"}):null,(0,i.jsxs)(x.ae,{size:"small",open:r,onOpenChange:e=>o(e),children:[(0,i.jsx)(x.al,{icon:"delete",title:"Delete field"}),(0,i.jsxs)(x.aj,{children:[(0,i.jsx)(x.D,{padding:24,gap:12,flexDirection:"column",children:e.model.variations.length>1?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("strong",{children:["This action will permanently remove the repeatable zone from the ",e.model.name," slice ",n.name," variation."]}),(0,i.jsx)("div",{children:"Other variations will be left untouched. To reimplement repeatable fields later, use a group field instead of the repeatable zone."})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("strong",{children:["This action will permanently remove the repeatable zone from the ",e.model.name,"."]}),(0,i.jsx)("div",{children:"To reimplement repeatable fields later, use a group field instead of the repeatable zone."})]})}),(0,i.jsxs)(x.ah,{children:[(0,i.jsx)(x.ai,{}),(0,i.jsx)(x.af,{color:"tomato",onClick:()=>{t((0,H.Oh)({slice:e,variationId:n.id})),o(!1)},children:"Delete"})]})]})]})]}),(0,i.jsx)(q.rT,{type:"model",library:e.from,sliceId:e.model.id,variationId:n.id})]})},ei=n(6277),er=n(34887),eo=n.n(er);let ea=e=>{let{variant:t="dashed",color:n="currentColor",className:r}=e;return(0,i.jsx)("hr",{className:(0,ei.W)(eo()["variant-".concat(t)],r),style:{color:x.t.color[n]}})};var el=n(51507),es=n(27763),ed=n(21442);async function ec(e){try{let{errors:t}=await (0,d.Ve)(e.component);if(t.length>0)throw t;let{errors:n}=await (0,d.Xi)({libraryID:e.component.from,sliceID:e.component.model.id,variationID:e.variation.id});if(n.length>0)throw n;(0,q.tB)({type:"model",library:e.component.from,sliceId:e.component.model.id,variationId:e.variation.id});let{slice:i,errors:r}=await (0,d.X$)(e.component.from,e.component.model.id);if(r.length>0)throw r;if(!i)throw Error("Could not read variation `".concat(e.variation.name,"`"));let{mocks:o}=await (0,d.pL)({libraryID:e.component.from,sliceID:e.component.model.id}),a=es.Y.getBuilderPagePathname({libraryName:e.component.href,sliceName:i.name,variationId:i.variations[0].id});await e.router.replace(a);let l={...e.component,model:i,mocks:o};return e.saveSliceSuccess(l),l}catch(n){let t="Could not delete variation `".concat(e.variation.name,"`");throw console.error(t,n),K.Am.error(t),n}}let eu=e=>{let{isOpen:t,onClose:n,slice:r,variation:o}=e,l=(0,a.useRouter)(),[d,c]=(0,s.useState)(!1),{saveSliceSuccess:u}=(0,m.Z)(),{setSlice:h}=f();return(0,i.jsxs)(x.ae,{open:t,onOpenChange:e=>!e&&n(),size:{width:448,height:"auto"},children:[(0,i.jsx)(x.al,{icon:"delete",title:"Delete variation"}),(0,i.jsx)(x.aj,{children:(0,i.jsxs)(x.D,{flexDirection:"column",children:[(0,i.jsxs)(x.bL,{color:"grey11",sx:{marginBlock:16,marginInline:16},children:["This action will remove the variation from the slice model and delete associated files. When you push your changes, the variation will disappear from your repository. This update will"," ",(0,i.jsx)(em,{children:"not"})," affect your documents until you ",(0,i.jsx)(em,{children:"edit"})," ","them manually."]}),(0,i.jsxs)(x.ah,{children:[(0,i.jsx)(x.ai,{size:"medium"}),(0,i.jsx)(x.af,{size:"medium",color:"tomato",onClick:()=>{o&&(async()=>{c(!0);try{let e=await ec({component:r,router:l,saveSliceSuccess:u,variation:o});h(e)}catch(e){}c(!1),n()})()},loading:d,children:"Delete"})]})]})})]})},em=e=>(0,i.jsx)(x.bL,{...e,color:"inherit",component:"span",variant:"bold"});var eh=n(30195);async function ep(e){try{let{errors:t}=await (0,d.Ve)(e.component);if(t.length>0)throw t;let{errors:n}=await (0,d.eH)(e.component,{...e.variation,name:e.variationName});if(n.length>0)throw n;let{slice:i,errors:r}=await (0,d.X$)(e.component.from,e.component.model.id);if(r.length>0)throw r;if(!i)throw Error("Could not read variation `".concat(e.variation.name,"`"));let{mocks:o}=await (0,d.pL)({libraryID:e.component.from,sliceID:e.component.model.id}),a={...e.component,model:i,mocks:o};return e.saveSliceSuccess(a),a}catch(n){let t="Could not rename variation `".concat(e.variation.name,"`");throw console.error(t,n),K.Am.error(t),n}}let ef=e=>{let{isOpen:t,onClose:n,slice:r,variation:o}=e,[a,d]=(0,s.useState)(!1),[c,u]=(0,s.useState)(""),[h,p]=(0,s.useState)(),{setSlice:v}=f(),{saveSliceSuccess:y}=(0,m.Z)();return(0,l.pQ)(t,()=>{if(t&&(null==o?void 0:o.name)!==c){var e;u(null!==(e=null==o?void 0:o.name)&&void 0!==e?e:""),p(void 0)}}),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(x.ae,{open:t,onOpenChange:e=>!e&&n(),size:{width:448,height:"auto"},children:[(0,i.jsx)(x.al,{icon:"edit",title:"Rename variation"}),(0,i.jsx)(x.aj,{children:(0,i.jsxs)(x.aJ,{onSubmit:function(){if(!h&&o){d(!0);try{ep({component:r,saveSliceSuccess:y,variation:o,variationName:c.trim()}).then(e=>{v(e)})}catch(e){}d(!1),n()}},children:[(0,i.jsxs)(x.D,{flexDirection:"column",gap:8,padding:16,children:[(0,i.jsx)(x.bL,{variant:"normal",color:"grey11",children:"This action will rename the variation in the slice model. When you push your changes, the variation will be renamed in your repository."}),(0,i.jsx)(x.D,{flexDirection:"column",gap:4,children:(0,i.jsx)(x.aM,{type:"text",label:"Variation name *",placeholder:"Variation name",error:h,value:c,onValueChange:function(e){u(e),p(function(e){let t=ev.safeParse(e,{errorMap:ex});if(t.error)return t.error.errors[0].message}(e))}})})]}),(0,i.jsxs)(x.ah,{children:[(0,i.jsx)(x.ai,{size:"medium"}),(0,i.jsx)(x.af,{type:"submit",size:"medium",loading:a,disabled:!!h,children:"Rename"})]})]})})]})})},ev=eh.z.string().min(1),ex=e=>e.code===eh.z.ZodIssueCode.too_small?{message:"This field is required"}:{message:"Invalid value"};var ey=n(68105),eg=n(63397),ej=n(96009),eb=n.n(ej),ew=n(36131),eC=n(75289),eI=n(30527);function eS(e){let{children:t}=e,n=(0,eI.W)();return(0,i.jsx)(eC.kC,{sx:{p:3,pl:4,bg:"headSection",alignItems:"center",justifyContent:"space-between",borderTopLeftRadius:n,borderTopRightRadius:n,borderBottom:e=>{var t;return"1px solid ".concat(null===(t=e.colors)||void 0===t?void 0:t.borders)}},children:t})}var ek=e=>{let{children:t,FooterContent:n,HeaderContent:r,close:o,sx:a={}}=e;return(0,i.jsx)(eI.Z,{borderFooter:!0,footerSx:{p:0},bodySx:{pt:2,pb:4,px:4},sx:{border:"none",...a},Header:(0,i.jsxs)(eS,{children:[r,o?(0,i.jsx)(eC.x8,{onClick:o,type:"button"}):null]}),Footer:n?(0,i.jsxs)(eC.kC,{sx:{alignItems:"space-between",bg:"headSection",p:3},children:[(0,i.jsx)(eC.xu,{sx:{ml:"auto"}}),n]}):null,children:t})},eD=n(55862);let eT=e=>{let{msg:t}=e;return(0,i.jsx)(eC.xv,{as:"span",sx:{fontSize:12,color:"error",mt:"5px",ml:2},children:t||"Error!"})};var eE=e=>{let{isOpen:t,onClose:n,onSubmit:r,initialVariation:o,variations:a}=e,[l,d]=(0,s.useState)({}),[c,u]=(0,s.useState)(""),[m,h]=(0,s.useState)(!0),[p,f]=(0,s.useState)(""),[v,y]=(0,s.useState)({value:o.id,label:o.name}),[g,j]=(0,s.useState)(!1);function b(){w(),n()}function w(){u(""),f(""),d({}),h(!0),y({value:o.id,label:o.name})}async function C(){let e=function(e){let{id:t,name:n,origin:i}=e,r=t&&t.length?null:{id:"Required!"},o=a.find(e=>e.id===t)?{id:"This id already exists!"}:null,l=n&&n.length?null:{name:"Required!"},s=i.value.length&&a.find(e=>e.id===i.value)?null:{id:"You must select an existing variation!"},d=t&&t.length&&!/^[A-Za-z0-9]+([A-Za-z0-9]+)*$/.exec(t)&&{id:"No special characters allowed"};return{...r,...o,...l,...s,...d}}({id:c,name:p,origin:v});if(Object.keys(e).length)d(e);else{let e=a.find(e=>e.id===v.value);e&&(j(!0),await r(c,p,e),j(!1),b())}}return(0,s.useEffect)(()=>{w()},[o,t]),(0,i.jsx)(eD.Z,{isOpen:t,shouldCloseOnOverlayClick:!0,onRequestClose:()=>b(),contentLabel:"Widget Form Modal",style:{content:{maxWidth:"700px"}},children:(0,i.jsx)(eg.J9,{initialValues:{id:c,name:p,origin:v},onSubmit:C,children:(0,i.jsx)(eg.l0,{id:"variation-add",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),C())},children:(0,i.jsx)(x.D,{children:(0,i.jsxs)(ek,{sx:{textAlign:"left"},HeaderContent:(0,i.jsx)(eC.xv,{as:"h2",children:"Add new Variation"}),FooterContent:(0,i.jsxs)(x.D,{gap:16,alignItems:"center",children:[(0,i.jsx)(x.E,{onClick:b,color:"grey",children:"Cancel"}),(0,i.jsx)(x.E,{type:"submit",loading:g,children:"Submit"})]}),close:b,children:[(0,i.jsxs)(x.D,{flexDirection:"column",padding:{block:16},children:[(0,i.jsxs)(eC.__,{htmlFor:"name",sx:{mb:1},children:["Variation name*",l.name?(0,i.jsx)(eT,{msg:l.name}):""]}),(0,i.jsx)(eg.gN,{autoComplete:"off",id:"name",name:"name",placeholder:"e.g. Grid - With Icon",as:eC.II,maxLength:30,value:p,onChange:e=>{var t;f(t=e.currentTarget.value),m&&u(eb()(t))}}),(0,i.jsx)(eC.xv,{children:"It will appear here in Slice Machine, and in the page editor in Prismic"})]}),(0,i.jsxs)(x.D,{flexDirection:"column",padding:{bottom:16},children:[(0,i.jsxs)(eC.__,{htmlFor:"id",sx:{mb:1},children:["Variation ID*",l.id?(0,i.jsx)(eT,{msg:l.id}):""]}),(0,i.jsx)(eg.gN,{autoComplete:"off",id:"id",name:"id",placeholder:"e.g. gridWithIcon",as:eC.II,maxLength:30,value:c,onChange:e=>{var t;return t=e.currentTarget.value,void(h(!1),u(eb()(t)))}}),(0,i.jsx)(eC.xv,{children:"It's generated automatically based on the variation name and will appear in the API responses."})]}),(0,i.jsxs)(x.D,{flexDirection:"column",padding:{bottom:8},children:[(0,i.jsx)(eC.__,{htmlFor:"origin",sx:{mb:1},children:"Duplicate from"}),(0,i.jsx)(ew.ZP,{name:"origin",options:a.map(e=>({value:e.id,label:e.name})),onChange:e=>{e&&y(e)},defaultValue:v,maxMenuHeight:150,theme:e=>({...e,colors:{...e.colors,text:"text",primary:"background"}})})]})]})})})})})},eA=n(20136),eR=n.n(eA);let eL=e=>{let{horizontalScroll:t=!1}=e,{slice:n,variation:r,setSlice:o}=f(),[l,c]=(0,s.useState)(),u=(0,ed.H)(),{sliceFilterFn:h,defaultVariationSelector:p,onUploadSuccess:v}=u.modalPayload,y=(0,a.useRouter)(),{saveSliceSuccess:g}=(0,m.Z)(),j=n.model.variations.length;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.D,{flexDirection:"column",gap:16,children:t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea,{variant:"edgeFaded",color:"grey6"}),(0,i.jsxs)(x.D,{justifyContent:"space-between",children:[(0,i.jsxs)(x.bL,{color:"grey11",children:[j," variation",1!==j&&"s"]}),(0,i.jsx)(x.E,{onClick:()=>{c({type:"ADD_VARIATION"})},startIcon:"add",color:"grey",children:"Add a variation"})]}),(0,i.jsx)("div",{className:eR().hideScrollbar,style:{height:"240px",position:"relative",marginRight:"-32px",overflowX:"scroll",scrollSnapType:"x mandatory"},children:(0,i.jsx)("div",{style:{position:"absolute",paddingRight:"32px"},children:(0,i.jsx)(x.D,{flexDirection:"row",gap:16,children:(0,i.jsx)(e_,{screenshotChangesModal:u,setDialog:c,width:320})})})})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e_,{screenshotChangesModal:u,setDialog:c}),(0,i.jsx)("div",{style:{bottom:x.t.space[0],marginBottom:"-".concat(x.t.space[16]),position:"sticky"},children:(0,i.jsxs)(x.D,{backgroundColor:"grey2",flexDirection:"column",padding:{bottom:40,inline:24},children:[(0,i.jsx)(x.aS,{sx:{left:0,position:"absolute",right:0}}),(0,i.jsx)(x.E,{color:"grey",onClick:()=>{c({type:"ADD_VARIATION"})},startIcon:"add",sx:{position:"relative"},children:"Add a variation"})]})})]})}),(0,i.jsx)(ey.Z,{slices:h([n]),defaultVariationSelector:p,onUploadSuccess:v}),(0,i.jsx)(ef,{isOpen:(null==l?void 0:l.type)==="RENAME_VARIATION",onClose:()=>{c(void 0)},slice:n,variation:null==l?void 0:l.variation}),(0,i.jsx)(eu,{isOpen:(null==l?void 0:l.type)==="DELETE_VARIATION",onClose:()=>{c(void 0)},slice:n,variation:null==l?void 0:l.variation}),(0,i.jsx)(eE,{initialVariation:r,isOpen:(null==l?void 0:l.type)==="ADD_VARIATION",onClose:()=>{c(void 0)},onSubmit:async(e,t,i)=>{try{let{slice:r,variation:a}=(0,H.Kp)({slice:n,id:e,name:t,copiedVariation:i});await (0,d.Ve)(r),g(r),o(r);let l=es.Y.getBuilderPagePathname({libraryName:r.href,sliceName:r.model.name,variationId:a.id});y.replace(l)}catch(n){let e="Could not add variation `".concat(t,"`");console.error(e,n),K.Am.error(e)}},variations:n.model.variations})]})},e_=e=>{let{screenshotChangesModal:t,setDialog:n,width:r}=e,{slice:o,variation:a,setSlice:l}=f(),s={scrollSnapAlign:"start"};return(0,i.jsx)(i.Fragment,{children:o.model.variations.map(e=>(0,i.jsx)("div",{style:void 0!==r?{...s,width:r}:s,children:(0,i.jsx)(el.b,{action:{type:"menu",onRename:()=>{n({type:"RENAME_VARIATION",variation:e})},onRemove:()=>{n({type:"DELETE_VARIATION",variation:e})},removeDisabled:o.model.variations.length<=1},mode:"navigation",onUpdateScreenshot:()=>{t.onOpenModal({sliceFilterFn:e=>e,defaultVariationSelector:{sliceID:o.model.id,variationID:e.id},onUploadSuccess:e=>{l(e)}})},replace:!0,selected:e.id===a.id,slice:o,variant:"outlined",variationId:e.id},e.id)},e.id))})};var eF=()=>{let{slice:e,actionQueueStatus:t}=f(),n=(0,x.cj)({max:"large"});return(0,i.jsxs)(R.LN,{children:[(0,i.jsxs)(R.wd,{children:[(0,i.jsx)(R.Xq,{url:"/slices"}),(0,i.jsxs)(R.Cx,{children:[(0,i.jsx)(y.g,{children:"Slices"}),(0,i.jsx)(y.g,{active:!0,children:e.model.name})]}),(0,i.jsxs)(R.K2,{children:[(0,i.jsx)(A,{}),(0,i.jsx)(g.X,{status:t}),(0,i.jsx)(P,{disabled:"done"!==t})]})]}),(0,i.jsxs)(R.RN,{children:[(0,i.jsxs)(x.D,{display:"grid",alignItems:"flex-start",gap:16,...n?{gridTemplateRows:"304px 1fr"}:{gridTemplateColumns:"320px 1fr"},children:[(0,i.jsx)(eL,{horizontalScroll:n}),(0,i.jsx)(en,{})]}),(0,i.jsx)(T,{})]})]})};function eO(){let e=(0,a.useRouter)(),{slice:t,variation:n}=(0,v.Z)();return void 0===t||void 0===n?(e.replace("/"),null):(0,i.jsx)(p,{initialSlice:t,children:e=>{let{slice:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o(),{children:(0,i.jsxs)("title",{children:[t.model.name," - Slice Machine"]})}),(0,i.jsx)(eF,{})]})}})}},34887:function(e){e.exports={base:"Divider_base__4eT6E","variant-dashed":"Divider_variant-dashed__4Lvrj Divider_base__4eT6E","variant-edgeFaded":"Divider_variant-edgeFaded__049V2 Divider_base__4eT6E"}},20136:function(e){e.exports={hideScrollbar:"VariationsList_hideScrollbar__cHCIS"}},76473:function(e,t,n){"use strict";n.d(t,{y1:function(){return j}});var i=n(2784);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}n(52322);var o=["shift","alt","meta","mod","ctrl"],a={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function l(e){return(a[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function s(e,t){return void 0===t&&(t=","),e.split(t)}function d(e,t,n){void 0===t&&(t="+");var i=e.toLocaleLowerCase().split(t).map(function(e){return l(e)}),a={alt:i.includes("alt"),ctrl:i.includes("ctrl")||i.includes("control"),shift:i.includes("shift"),meta:i.includes("meta"),mod:i.includes("mod")},s=i.filter(function(e){return!o.includes(e)});return r({},a,{keys:s,description:n})}"undefined"!=typeof document&&(document.addEventListener("keydown",function(e){void 0!==e.key&&m([l(e.key),l(e.code)])}),document.addEventListener("keyup",function(e){void 0!==e.key&&h([l(e.key),l(e.code)])})),"undefined"!=typeof window&&window.addEventListener("blur",function(){c.clear()});var c=new Set;function u(e){return Array.isArray(e)}function m(e){var t=Array.isArray(e)?e:[e];c.has("meta")&&c.forEach(function(e){return!o.includes(e)&&c.delete(e.toLowerCase())}),t.forEach(function(e){return c.add(e.toLowerCase())})}function h(e){var t=Array.isArray(e)?e:[e];"meta"===e?c.clear():t.forEach(function(e){return c.delete(e.toLowerCase())})}function p(e,t){var n=e.target;void 0===t&&(t=!1);var i=n&&n.tagName;return u(t)?!!(i&&t&&t.some(function(e){return e.toLowerCase()===i.toLowerCase()})):!!(i&&t&&!0===t)}var f=function(e,t,n){void 0===n&&(n=!1);var i,r=t.alt,o=t.meta,a=t.mod,s=t.shift,d=t.ctrl,m=t.keys,h=e.key,p=e.code,f=e.ctrlKey,v=e.metaKey,x=e.shiftKey,y=e.altKey,g=l(p),j=h.toLowerCase();if(!n){if(!y===r&&"alt"!==j||!x===s&&"shift"!==j)return!1;if(a){if(!v&&!f)return!1}else if(!v===o&&"meta"!==j&&"os"!==j||!f===d&&"ctrl"!==j&&"control"!==j)return!1}return!!(m&&1===m.length&&(m.includes(j)||m.includes(g)))||(m?(void 0===i&&(i=","),(u(m)?m:m.split(i)).every(function(e){return c.has(e.trim().toLowerCase())})):!m)},v=(0,i.createContext)(void 0),x=(0,i.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),y=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},g="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function j(e,t,n,r){var o,a=(0,i.useRef)(null),c=(0,i.useRef)(!1),j=n instanceof Array?r instanceof Array?void 0:r:n,b=u(e)?e.join(null==j?void 0:j.splitKey):e,w=n instanceof Array?n:r instanceof Array?r:void 0,C=(0,i.useCallback)(t,null!=w?w:[]),I=(0,i.useRef)(C);w?I.current=C:I.current=t;var S=(!function e(t,n){return t&&n&&"object"==typeof t&&"object"==typeof n?Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce(function(i,r){return i&&e(t[r],n[r])},!0):t===n}((o=(0,i.useRef)(void 0)).current,j)&&(o.current=j),o.current),k=(0,i.useContext)(x).enabledScopes,D=(0,i.useContext)(v);return g(function(){if((null==S?void 0:S.enabled)!==!1&&(e=null==S?void 0:S.scopes,0===k.length&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):!!(!e||k.some(function(t){return e.includes(t)})||k.includes("*")))){var e,t=function(e,t){var n;if(void 0===t&&(t=!1),!(p(e,["input","textarea","select"])&&!p(e,null==S?void 0:S.enableOnFormTags)||null!=S&&null!=S.ignoreEventWhen&&S.ignoreEventWhen(e))){if(null!==a.current&&document.activeElement!==a.current&&!a.current.contains(document.activeElement)){y(e);return}(null==(n=e.target)||!n.isContentEditable||null!=S&&S.enableOnContentEditable)&&s(b,null==S?void 0:S.splitKey).forEach(function(n){var i,r,o,a=d(n,null==S?void 0:S.combinationKey);if(f(e,a,null==S?void 0:S.ignoreModifiers)||null!=(o=a.keys)&&o.includes("*")){if(t&&c.current)return;if(("function"==typeof(i=null==S?void 0:S.preventDefault)&&i(e,a)||!0===i)&&e.preventDefault(),"function"==typeof(r=null==S?void 0:S.enabled)?!r(e,a):!0!==r&&void 0!==r){y(e);return}I.current(e,a),t||(c.current=!0)}})}},n=function(e){void 0!==e.key&&(m(l(e.code)),((null==S?void 0:S.keydown)===void 0&&(null==S?void 0:S.keyup)!==!0||null!=S&&S.keydown)&&t(e))},i=function(e){void 0!==e.key&&(h(l(e.code)),c.current=!1,null!=S&&S.keyup&&t(e,!0))},r=a.current||(null==j?void 0:j.document)||document;return r.addEventListener("keyup",i),r.addEventListener("keydown",n),D&&s(b,null==S?void 0:S.splitKey).forEach(function(e){return D.addHotkey(d(e,null==S?void 0:S.combinationKey,null==S?void 0:S.description))}),function(){r.removeEventListener("keyup",i),r.removeEventListener("keydown",n),D&&s(b,null==S?void 0:S.splitKey).forEach(function(e){return D.removeHotkey(d(e,null==S?void 0:S.combinationKey,null==S?void 0:S.description))})}}},[b,S,k]),a}}},function(e){e.O(0,[898,789,917,525,461,139,397,183,50,349,34,630,658,888,774,179],function(){return e(e.s=31314)}),_N_E=e.O()}]);