ingred-ui 22.3.2 → 22.3.3
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.
- package/dist/components/index.d.ts +1 -0
- package/dist/index.es.js +245 -109
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +276 -140
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as e from"react";import t,{forwardRef as n,useState as r,useRef as i,useEffect as o,isValidElement as a,cloneElement as l,Children as s,memo as c,useCallback as d,useLayoutEffect as u,useMemo as p,createContext as m,useContext as g,useReducer as h,Component as f,Fragment as b}from"react";import v,{ThemeContext as x,css as y,keyframes as w,useTheme as C}from"styled-components";import*as E from"react-dom";import I,{createPortal as A,unstable_batchedUpdates as k}from"react-dom";function M(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;const H=({children:t,theme:n})=>e.createElement(x.Provider,{value:n},t),N={red:{100:"#FFE2E5",200:"#FFBAC3",300:"#F96979",400:"#F34468",500:"#EB0A4E",600:"#CA0755",700:"#A90556",800:"#880352",900:"#70014E"},blue:{40:"#F4F8FA",50:"#F2F9FC",100:"#CDF0FE",200:"#9CDDFD",300:"#6AC3FB",400:"#46AAF8",500:"#0B82F4",600:"#0864D1",700:"#054BAF",800:"#03348D",900:"#022575"},yellow:{100:"#FEFACF",200:"#FEF4A0",300:"#FEED71",400:"#FDE54E",500:"#FCD914",600:"#D8B70E",700:"#B5960A",800:"#927606",900:"#785F03"},green:{100:"#ECFCD3",200:"#D6F9A9",300:"#B4ED7B",400:"#92DB57",500:"#63C427",600:"#49A81C",700:"#338D13",800:"#20710C",900:"#135E07"},basic:{0:"#FFFFFF",50:"#FDFEFF",100:"#F5F7F8",200:"#E2E8EA",300:"#D1D5DA",400:"#B3BAC1",500:"#959FA9",600:"#778490",700:"#596978",800:"#1F3449",900:"#041C33",1e3:"#001326"}};function V(e){return e&&"object"==typeof e&&!Array.isArray(e)}function Z(e,t,n={clone:!0}){const r=n.clone?Object.assign({},e):e;return V(e)&&V(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(V(t[i])&&i in e?r[i]=Z(e[i],t[i],n):r[i]=t[i])})),r}const D={white:N.basic[50],black:N.basic[900],primary:{deepDark:N.blue[700],dark:N.blue[600],main:N.blue[500],light:N.blue[200],highlight:N.blue[100]},primaryPale:{deepDark:N.blue[600],dark:N.blue[500],main:N.blue[50],light:N.blue[200],highlight:N.blue[100]},basicDark:{deepDark:N.basic[400],dark:N.basic[200],main:N.basic[100],light:N.basic[300],highlight:N.basic[100]},success:{deepDark:N.green[700],dark:N.green[600],main:N.green[500],light:N.green[300],highlight:N.green[100]},warning:{deepDark:N.yellow[900],dark:N.yellow[600],main:N.yellow[500],light:N.yellow[400],highlight:N.yellow[100]},danger:{deepDark:N.red[700],dark:N.red[600],main:N.red[500],light:N.red[300],highlight:N.red[100]},gray:{deepDark:N.basic[600],dark:N.basic[500],main:N.basic[300],light:N.basic[200],highlight:N.basic[100]},text:{primary:N.blue[500],secondary:N.basic[700],disabled:N.basic[400],hint:N.basic[400],white:"#FFFFFF"},background:{default:"#FFFFFF",dark:N.blue[40],active:N.blue[100],hint:N.blue[50]},divider:N.basic[400],icon:{active:N.blue[500],fill:N.basic[700],line:N.basic[600]},action:{shadowOpacity:.08,shadowBase:N.basic[900]}};function L(e){return Z(D,e)}const O={"3dShadowActive":"0px 3px rgba(4, 28, 51, 0.16) inset","3dShadowPrimary":"0px -3px 0px 0px rgba(2, 37, 117, 0.06) inset, 0px 1px 0px 0px rgba(4, 28, 51, 0.04)","3dShadowPrimaryPale":"0px -3px 0px 0px rgba(11, 130, 244, 0.06) inset, 0px 1px 0px 0px rgba(4, 28, 51, 0.04)","3dShadowPrimaryPaleActive":"0px 3px 0px 0px rgba(11, 130, 244, 0.06) inset","3dShadowBasic":"0px -3px 0px 0px rgba(4, 28, 51, 0.06) inset, 0px 1px 0px 0px rgba(4, 28, 51, 0.04)","3dShadowBasicActive":"0px 3px 0px 0px rgba(4, 28, 51, 0.06) inset","3dShadowDanger":"0px -3px 0px 0px rgba(112, 1, 78, 0.06) inset, 0px 1px 0px 0px rgba(4, 28, 51, 0.04)"},R=8,S=8
|
|
1
|
+
import*as e from"react";import t,{forwardRef as n,useState as r,useRef as i,useEffect as o,isValidElement as a,cloneElement as l,Children as s,memo as c,useCallback as d,useLayoutEffect as u,useMemo as p,createContext as m,useContext as g,useReducer as h,Component as f,Fragment as b}from"react";import v,{ThemeContext as x,css as y,keyframes as w,useTheme as C}from"styled-components";import*as E from"react-dom";import I,{createPortal as A,unstable_batchedUpdates as k}from"react-dom";function M(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;const H=({children:t,theme:n})=>e.createElement(x.Provider,{value:n},t),N={red:{100:"#FFE2E5",200:"#FFBAC3",300:"#F96979",400:"#F34468",500:"#EB0A4E",600:"#CA0755",700:"#A90556",800:"#880352",900:"#70014E"},blue:{40:"#F4F8FA",50:"#F2F9FC",100:"#CDF0FE",200:"#9CDDFD",300:"#6AC3FB",400:"#46AAF8",500:"#0B82F4",600:"#0864D1",700:"#054BAF",800:"#03348D",900:"#022575"},yellow:{100:"#FEFACF",200:"#FEF4A0",300:"#FEED71",400:"#FDE54E",500:"#FCD914",600:"#D8B70E",700:"#B5960A",800:"#927606",900:"#785F03"},green:{100:"#ECFCD3",200:"#D6F9A9",300:"#B4ED7B",400:"#92DB57",500:"#63C427",600:"#49A81C",700:"#338D13",800:"#20710C",900:"#135E07"},basic:{0:"#FFFFFF",50:"#FDFEFF",100:"#F5F7F8",200:"#E2E8EA",300:"#D1D5DA",400:"#B3BAC1",500:"#959FA9",600:"#778490",700:"#596978",800:"#1F3449",900:"#041C33",1e3:"#001326"}};function V(e){return e&&"object"==typeof e&&!Array.isArray(e)}function Z(e,t,n={clone:!0}){const r=n.clone?Object.assign({},e):e;return V(e)&&V(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(V(t[i])&&i in e?r[i]=Z(e[i],t[i],n):r[i]=t[i])})),r}const D={white:N.basic[50],black:N.basic[900],primary:{deepDark:N.blue[700],dark:N.blue[600],main:N.blue[500],light:N.blue[200],highlight:N.blue[100]},primaryPale:{deepDark:N.blue[600],dark:N.blue[500],main:N.blue[50],light:N.blue[200],highlight:N.blue[100]},basicDark:{deepDark:N.basic[400],dark:N.basic[200],main:N.basic[100],light:N.basic[300],highlight:N.basic[100]},success:{deepDark:N.green[700],dark:N.green[600],main:N.green[500],light:N.green[300],highlight:N.green[100]},warning:{deepDark:N.yellow[900],dark:N.yellow[600],main:N.yellow[500],light:N.yellow[400],highlight:N.yellow[100]},danger:{deepDark:N.red[700],dark:N.red[600],main:N.red[500],light:N.red[300],highlight:N.red[100]},gray:{deepDark:N.basic[600],dark:N.basic[500],main:N.basic[300],light:N.basic[200],highlight:N.basic[100]},text:{primary:N.blue[500],secondary:N.basic[700],disabled:N.basic[400],hint:N.basic[400],white:"#FFFFFF"},background:{default:"#FFFFFF",dark:N.blue[40],active:N.blue[100],hint:N.blue[50]},divider:N.basic[400],icon:{active:N.blue[500],fill:N.basic[700],line:N.basic[600]},action:{shadowOpacity:.08,shadowBase:N.basic[900]}};function L(e){return Z(D,e)}const O={"3dShadowActive":"0px 3px rgba(4, 28, 51, 0.16) inset","3dShadowPrimary":"0px -3px 0px 0px rgba(2, 37, 117, 0.06) inset, 0px 1px 0px 0px rgba(4, 28, 51, 0.04)","3dShadowPrimaryPale":"0px -3px 0px 0px rgba(11, 130, 244, 0.06) inset, 0px 1px 0px 0px rgba(4, 28, 51, 0.04)","3dShadowPrimaryPaleActive":"0px 3px 0px 0px rgba(11, 130, 244, 0.06) inset","3dShadowBasic":"0px -3px 0px 0px rgba(4, 28, 51, 0.06) inset, 0px 1px 0px 0px rgba(4, 28, 51, 0.04)","3dShadowBasicActive":"0px 3px 0px 0px rgba(4, 28, 51, 0.06) inset","3dShadowDanger":"0px -3px 0px 0px rgba(112, 1, 78, 0.06) inset, 0px 1px 0px 0px rgba(4, 28, 51, 0.04)"},R=8,S=8,$={X_SMALL:375,SMALL:416,MEDIUM:816,LARGE:1008,X_LARGE:1200,XX_LARGE:1408},T={appBar:1100,drawer:1200,dropdown:1301,modal:1300,snackbar:1400,tooltip:1500,toast:1700};function z(e={}){const{palette:t={},shadow:n,spacing:r,radius:i}=e,o=M(e,["palette","shadow","spacing","radius"]);return Z({palette:L(t),shadow:n||O,spacing:r||8,depth:T,radius:i||8},o)}const B=z();function G(){return e.useContext(x)||B}const W=v.span`
|
|
2
2
|
display: block;
|
|
3
3
|
position: relative;
|
|
4
4
|
width: ${({size:e})=>`${e}px`};
|
|
@@ -101,7 +101,7 @@ import*as e from"react";import t,{forwardRef as n,useState as r,useRef as i,useE
|
|
|
101
101
|
object-assign
|
|
102
102
|
(c) Sindre Sorhus
|
|
103
103
|
@license MIT
|
|
104
|
-
*/function Le(){if(we)return ye;we=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return ye=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,i){for(var o,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),s=1;s<arguments.length;s++){for(var c in o=Object(arguments[s]))t.call(o,c)&&(l[c]=o[c]);if(e){a=e(o);for(var d=0;d<a.length;d++)n.call(o,a[d])&&(l[a[d]]=o[a[d]])}}return l},ye}function Oe(){if(Ee)return Ce;Ee=1;return Ce="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Re(){return Ae?Ie:(Ae=1,Ie=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Se=De;he.exports=function(){if(Ne)return He;Ne=1;var e=De,t=Le(),n=Oe(),r=Re(),i=function(){if(Me)return ke;Me=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Oe(),n={},r=Re();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function i(i,o,a,l,s){if("production"!==process.env.NODE_ENV)for(var c in i)if(r(i,c)){var d;try{if("function"!=typeof i[c]){var u=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[c](o,c,l,a,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=s?s():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},ke=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),He=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator,d="@@iterator",u="<<anonymous>>",p={array:f("array"),bigint:f("bigint"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:h(a),arrayOf:function(e){return h((function(t,r,i,o,a){if("function"!=typeof e)return new g("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new g("Invalid "+o+" `"+a+"` of type `"+x(l)+"` supplied to `"+i+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,i,o,a+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:h((function(e,t,n,r,i){var o=e[t];return l(o)?null:new g("Invalid "+r+" `"+i+"` of type `"+x(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,r,i,o){var a=t[n];return e.isValidElementType(a)?null:new g("Invalid "+i+" `"+o+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||u;return new g("Invalid "+i+" `"+o+"` of type `"+((l=t[n]).constructor&&l.constructor.name?l.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:h((function(e,t,n,r,i){return v(e[t])?null:new g("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,i,o,a,l){if("function"!=typeof e)return new g("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=t[i],c=x(s);if("object"!==c)return new g("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var d in s)if(r(s,d)){var u=e(s,d,o,a,l+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,n,r,i,o){for(var a=t[n],l=0;l<e.length;l++)if(m(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new g("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(i)+" at index "+t+"."),a}return h((function(t,i,o,a,l){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(t,i,o,a,l,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&s.push(d.data.expectedType)}return new g("Invalid "+a+" `"+l+"` supplied to `"+o+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,r,i,o,a){var l=t[r],s=x(l);if("object"!==s)return new g("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return b(i,o,a,c,y(d));var u=d(l,c,i,o,a+"."+c,n);if(u)return u}return null}))},exact:function(e){return h((function(i,o,a,l,s){var c=i[o],d=x(c);if("object"!==d)return new g("Invalid "+l+" `"+s+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=t({},i[o],e);for(var p in u){var m=e[p];if(r(e,p)&&"function"!=typeof m)return b(a,l,s,p,y(m));if(!m)return new g("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=m(c,p,a,l,s+"."+p,n);if(h)return h}return null}))}};function m(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function g(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function i(i,a,l,c,d,p,m){if(c=c||u,p=p||l,m!==n){if(s){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var f=c+":"+l;!t[f]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[f]=!0,r++)}}return null==a[l]?i?null===a[l]?new g("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new g("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,d,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function f(e){return h((function(t,n,r,i,o,a){var l=t[n];return x(l)!==e?new g("Invalid "+i+" `"+o+"` of type `"+y(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,t,n,r,i){return new g((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e[d]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!v(i[1]))return!1}return!0;default:return!1}}function x(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return g.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},He}()(Se.isElement,!0)}else he.exports=function(){if(Ze)return Ve;Ze=1;var e=Oe();function t(){}function n(){}return n.resetWarningCache=t,Ve=function(){function r(t,n,r,i,o,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var Te=me(he.exports);function $e(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var ze=!1,Be="production"!==process.env.NODE_ENV?Te.oneOfType([Te.number,Te.shape({enter:Te.number,exit:Te.number,appear:Te.number}).isRequired]):null,Ge="production"!==process.env.NODE_ENV?Te.oneOfType([Te.string,Te.shape({enter:Te.string,exit:Te.string,active:Te.string}),Te.shape({enter:Te.string,enterDone:Te.string,enterActive:Te.string,exit:Te.string,exitDone:Te.string,exitActive:Te.string})]):null,We=t.createContext(null),Pe=function(e){return e.scrollTop},je="unmounted",Fe="exited",Xe="entering",Ye="entered",Je="exiting",Ue=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Fe,r.appearStatus=Xe):i=Ye:i=t.unmountOnExit||t.mountOnEnter?je:Fe,r.state={status:i},r.nextCallback=null,r}pe(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===je?{status:Fe}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Xe&&n!==Ye&&(t=Xe):n!==Xe&&n!==Ye||(t=Je)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Xe){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:I.findDOMNode(this);n&&Pe(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fe&&this.setState({status:je})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[I.findDOMNode(this),r],o=i[0],a=i[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||ze?this.safeSetState({status:Ye},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Xe},(function(){t.props.onEntering(o,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Ye},(function(){t.props.onEntered(o,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:I.findDOMNode(this);t&&!ze?(this.props.onExit(r),this.safeSetState({status:Je},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Fe},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Fe},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:I.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===je)return null;var n=this.props,r=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var i=de(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(We.Provider,{value:null},"function"==typeof r?r(e,i):t.cloneElement(t.Children.only(r),i))},n}(t.Component);function Qe(){}Ue.contextType=We,Ue.propTypes="production"!==process.env.NODE_ENV?{nodeRef:Te.shape({current:"undefined"==typeof Element?Te.any:function(e,t,n,r,i,o){var a=e[t];return Te.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:Te.oneOfType([Te.func.isRequired,Te.element.isRequired]).isRequired,in:Te.bool,mountOnEnter:Te.bool,unmountOnExit:Te.bool,appear:Te.bool,enter:Te.bool,exit:Te.bool,timeout:function(e){var t=Be;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,[e].concat(r))},addEndListener:Te.func,onEnter:Te.func,onEntering:Te.func,onEntered:Te.func,onExit:Te.func,onExiting:Te.func,onExited:Te.func}:{},Ue.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qe,onEntering:Qe,onEntered:Qe,onExit:Qe,onExiting:Qe,onExited:Qe},Ue.UNMOUNTED=je,Ue.EXITED=Fe,Ue.ENTERING=Xe,Ue.ENTERED=Ye,Ue.EXITING=Je;var _e=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},Ke=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=$e(n.className,r):n.setAttribute("class",$e(n.className&&n.className.baseVal||"",r)));var n,r}))},qe=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}pe(n,e);var r=n.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&Pe(e),r&&(this.appliedClasses[t][n]=r,_e(e,r))},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&Ke(e,r),i&&Ke(e,i),o&&Ke(e,o)},r.render=function(){var e=this.props;e.classNames;var n=de(e,["classNames"]);return t.createElement(Ue,ce({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(t.Component);function et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tt(e,t){var n=Object.create(null);return e&&s.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&a(e)?t(e):e}(e)})),n}function nt(e,t,n){return null!=n[t]?n[t]:e.props[t]}function rt(e,t,n){var r=tt(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var l={};for(var s in t){if(i[s])for(r=0;r<i[s].length;r++){var c=i[s][r];l[i[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<o.length;r++)l[o[r]]=n(o[r]);return l}(t,r);return Object.keys(i).forEach((function(o){var s=i[o];if(a(s)){var c=o in t,d=o in r,u=t[o],p=a(u)&&!u.props.in;!d||c&&!p?d||!c||p?d&&c&&a(u)&&(i[o]=l(s,{onExited:n.bind(null,s),in:u.props.in,exit:nt(s,"exit",e),enter:nt(s,"enter",e)})):i[o]=l(s,{in:!1}):i[o]=l(s,{onExited:n.bind(null,s),in:!0,exit:nt(s,"exit",e),enter:nt(s,"enter",e)})}})),i}qe.defaultProps={classNames:""},qe.propTypes="production"!==process.env.NODE_ENV?ce({},Ue.propTypes,{classNames:Ge,onEnter:Te.func,onEntering:Te.func,onEntered:Te.func,onExit:Te.func,onExiting:Te.func,onExited:Te.func}):{};var it,ot,at=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},lt=function(e){function n(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(et(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}pe(n,e);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,tt(n.children,(function(e){return l(e,{onExited:r.bind(null,e),in:!0,appear:nt(e,"appear",n),enter:nt(e,"enter",n),exit:nt(e,"exit",n)})}))):rt(e,i,o),firstRender:!1}},r.handleExited=function(e,t){var n=tt(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ce({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,n=e.component,r=e.childFactory,i=de(e,["component","childFactory"]),o=this.state.contextValue,a=at(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===n?t.createElement(We.Provider,{value:o},a):t.createElement(We.Provider,{value:o},t.createElement(n,i,a))},n}(t.Component);lt.propTypes="production"!==process.env.NODE_ENV?{component:Te.any,children:Te.node,appear:Te.bool,enter:Te.bool,exit:Te.bool,childFactory:Te.func}:{},lt.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}pe(n,e);var r=n.prototype;return r.handleLifecycle=function(e,n,r){var i,o=this.props.children,a=t.Children.toArray(o)[n];if(a.props[e]&&(i=a.props)[e].apply(i,r),this.props[e]){var l=a.props.nodeRef?void 0:I.findDOMNode(this);this.props[e](l)}},r.render=function(){var e=this.props,n=e.children,r=e.in,i=de(e,["children","in"]),o=t.Children.toArray(n),a=o[0],l=o[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,t.createElement(lt,i,r?t.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):t.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},n}(t.Component)).propTypes="production"!==process.env.NODE_ENV?{in:Te.bool.isRequired,children:function(e,n){return 2!==t.Children.count(e[n])?new Error('"'+n+'" must be exactly two transition components.'):null}}:{};var st="out-in",ct="in-out",dt=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},ut=((it={})[st]=function(e){var n=e.current,r=e.changeState;return t.cloneElement(n,{in:!1,onExited:dt(n,"onExited",(function(){r(Xe,null)}))})},it[ct]=function(e){var n=e.current,r=e.changeState,i=e.children;return[n,t.cloneElement(i,{in:!0,onEntered:dt(i,"onEntered",(function(){r(Xe)}))})]},it),pt=((ot={})[st]=function(e){var n=e.children,r=e.changeState;return t.cloneElement(n,{in:!0,onEntered:dt(n,"onEntered",(function(){r(Ye,t.cloneElement(n,{in:!0}))}))})},ot[ct]=function(e){var n=e.current,r=e.children,i=e.changeState;return[t.cloneElement(n,{in:!1,onExited:dt(n,"onExited",(function(){i(Ye,t.cloneElement(r,{in:!0}))}))}),t.cloneElement(r,{in:!0})]},ot),mt=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:Ye,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}pe(n,e);var r=n.prototype;return r.componentDidMount=function(){this.appeared=!0},n.getDerivedStateFromProps=function(e,n){return null==e.children?{current:null}:n.status===Xe&&e.mode===ct?{status:Xe}:!n.current||(r=n.current,i=e.children,r===i||t.isValidElement(r)&&t.isValidElement(i)&&null!=r.key&&r.key===i.key)?{current:t.cloneElement(e.children,{in:!0})}:{status:Je};var r,i},r.render=function(){var e,n=this.props,r=n.children,i=n.mode,o=this.state,a=o.status,l=o.current,s={children:r,current:l,changeState:this.changeState,status:a};switch(a){case Xe:e=pt[i](s);break;case Je:e=ut[i](s);break;case Ye:e=l}return t.createElement(We.Provider,{value:{isMounting:!this.appeared}},e)},n}(t.Component);mt.propTypes="production"!==process.env.NODE_ENV?{mode:Te.oneOf([ct,st]),children:Te.oneOfType([Te.element.isRequired])}:{},mt.defaultProps={mode:st};const gt=(e,t)=>{switch(typeof e){case"number":return e;case"object":return e[t]||0;default:return 0}},ht="fade-transition",ft=v(qe)`
|
|
104
|
+
*/function Le(){if(we)return ye;we=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return ye=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,i){for(var o,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),s=1;s<arguments.length;s++){for(var c in o=Object(arguments[s]))t.call(o,c)&&(l[c]=o[c]);if(e){a=e(o);for(var d=0;d<a.length;d++)n.call(o,a[d])&&(l[a[d]]=o[a[d]])}}return l},ye}function Oe(){if(Ee)return Ce;Ee=1;return Ce="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Re(){return Ae?Ie:(Ae=1,Ie=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Se=De;he.exports=function(){if(Ne)return He;Ne=1;var e=De,t=Le(),n=Oe(),r=Re(),i=function(){if(Me)return ke;Me=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Oe(),n={},r=Re();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function i(i,o,a,l,s){if("production"!==process.env.NODE_ENV)for(var c in i)if(r(i,c)){var d;try{if("function"!=typeof i[c]){var u=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[c](o,c,l,a,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=s?s():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},ke=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),He=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator,d="@@iterator",u="<<anonymous>>",p={array:f("array"),bigint:f("bigint"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:h(a),arrayOf:function(e){return h((function(t,r,i,o,a){if("function"!=typeof e)return new g("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new g("Invalid "+o+" `"+a+"` of type `"+x(l)+"` supplied to `"+i+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,i,o,a+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:h((function(e,t,n,r,i){var o=e[t];return l(o)?null:new g("Invalid "+r+" `"+i+"` of type `"+x(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,r,i,o){var a=t[n];return e.isValidElementType(a)?null:new g("Invalid "+i+" `"+o+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||u;return new g("Invalid "+i+" `"+o+"` of type `"+((l=t[n]).constructor&&l.constructor.name?l.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:h((function(e,t,n,r,i){return v(e[t])?null:new g("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,i,o,a,l){if("function"!=typeof e)return new g("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=t[i],c=x(s);if("object"!==c)return new g("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var d in s)if(r(s,d)){var u=e(s,d,o,a,l+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,n,r,i,o){for(var a=t[n],l=0;l<e.length;l++)if(m(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new g("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(i)+" at index "+t+"."),a}return h((function(t,i,o,a,l){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(t,i,o,a,l,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&s.push(d.data.expectedType)}return new g("Invalid "+a+" `"+l+"` supplied to `"+o+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,r,i,o,a){var l=t[r],s=x(l);if("object"!==s)return new g("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return b(i,o,a,c,y(d));var u=d(l,c,i,o,a+"."+c,n);if(u)return u}return null}))},exact:function(e){return h((function(i,o,a,l,s){var c=i[o],d=x(c);if("object"!==d)return new g("Invalid "+l+" `"+s+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=t({},i[o],e);for(var p in u){var m=e[p];if(r(e,p)&&"function"!=typeof m)return b(a,l,s,p,y(m));if(!m)return new g("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=m(c,p,a,l,s+"."+p,n);if(h)return h}return null}))}};function m(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function g(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function i(i,a,l,c,d,p,m){if(c=c||u,p=p||l,m!==n){if(s){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var f=c+":"+l;!t[f]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[f]=!0,r++)}}return null==a[l]?i?null===a[l]?new g("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new g("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,d,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function f(e){return h((function(t,n,r,i,o,a){var l=t[n];return x(l)!==e?new g("Invalid "+i+" `"+o+"` of type `"+y(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,t,n,r,i){return new g((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e[d]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!v(i[1]))return!1}return!0;default:return!1}}function x(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return g.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},He}()(Se.isElement,!0)}else he.exports=function(){if(Ze)return Ve;Ze=1;var e=Oe();function t(){}function n(){}return n.resetWarningCache=t,Ve=function(){function r(t,n,r,i,o,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var $e=me(he.exports);function Te(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var ze=!1,Be="production"!==process.env.NODE_ENV?$e.oneOfType([$e.number,$e.shape({enter:$e.number,exit:$e.number,appear:$e.number}).isRequired]):null,Ge="production"!==process.env.NODE_ENV?$e.oneOfType([$e.string,$e.shape({enter:$e.string,exit:$e.string,active:$e.string}),$e.shape({enter:$e.string,enterDone:$e.string,enterActive:$e.string,exit:$e.string,exitDone:$e.string,exitActive:$e.string})]):null,We=t.createContext(null),Pe=function(e){return e.scrollTop},je="unmounted",Fe="exited",Xe="entering",Ye="entered",Je="exiting",Ue=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Fe,r.appearStatus=Xe):i=Ye:i=t.unmountOnExit||t.mountOnEnter?je:Fe,r.state={status:i},r.nextCallback=null,r}pe(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===je?{status:Fe}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Xe&&n!==Ye&&(t=Xe):n!==Xe&&n!==Ye||(t=Je)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Xe){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:I.findDOMNode(this);n&&Pe(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fe&&this.setState({status:je})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[I.findDOMNode(this),r],o=i[0],a=i[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||ze?this.safeSetState({status:Ye},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Xe},(function(){t.props.onEntering(o,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Ye},(function(){t.props.onEntered(o,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:I.findDOMNode(this);t&&!ze?(this.props.onExit(r),this.safeSetState({status:Je},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Fe},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Fe},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:I.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===je)return null;var n=this.props,r=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var i=de(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(We.Provider,{value:null},"function"==typeof r?r(e,i):t.cloneElement(t.Children.only(r),i))},n}(t.Component);function Qe(){}Ue.contextType=We,Ue.propTypes="production"!==process.env.NODE_ENV?{nodeRef:$e.shape({current:"undefined"==typeof Element?$e.any:function(e,t,n,r,i,o){var a=e[t];return $e.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:$e.oneOfType([$e.func.isRequired,$e.element.isRequired]).isRequired,in:$e.bool,mountOnEnter:$e.bool,unmountOnExit:$e.bool,appear:$e.bool,enter:$e.bool,exit:$e.bool,timeout:function(e){var t=Be;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,[e].concat(r))},addEndListener:$e.func,onEnter:$e.func,onEntering:$e.func,onEntered:$e.func,onExit:$e.func,onExiting:$e.func,onExited:$e.func}:{},Ue.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qe,onEntering:Qe,onEntered:Qe,onExit:Qe,onExiting:Qe,onExited:Qe},Ue.UNMOUNTED=je,Ue.EXITED=Fe,Ue.ENTERING=Xe,Ue.ENTERED=Ye,Ue.EXITING=Je;var _e=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},Ke=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Te(n.className,r):n.setAttribute("class",Te(n.className&&n.className.baseVal||"",r)));var n,r}))},qe=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}pe(n,e);var r=n.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&Pe(e),r&&(this.appliedClasses[t][n]=r,_e(e,r))},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&Ke(e,r),i&&Ke(e,i),o&&Ke(e,o)},r.render=function(){var e=this.props;e.classNames;var n=de(e,["classNames"]);return t.createElement(Ue,ce({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(t.Component);function et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tt(e,t){var n=Object.create(null);return e&&s.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&a(e)?t(e):e}(e)})),n}function nt(e,t,n){return null!=n[t]?n[t]:e.props[t]}function rt(e,t,n){var r=tt(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var l={};for(var s in t){if(i[s])for(r=0;r<i[s].length;r++){var c=i[s][r];l[i[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<o.length;r++)l[o[r]]=n(o[r]);return l}(t,r);return Object.keys(i).forEach((function(o){var s=i[o];if(a(s)){var c=o in t,d=o in r,u=t[o],p=a(u)&&!u.props.in;!d||c&&!p?d||!c||p?d&&c&&a(u)&&(i[o]=l(s,{onExited:n.bind(null,s),in:u.props.in,exit:nt(s,"exit",e),enter:nt(s,"enter",e)})):i[o]=l(s,{in:!1}):i[o]=l(s,{onExited:n.bind(null,s),in:!0,exit:nt(s,"exit",e),enter:nt(s,"enter",e)})}})),i}qe.defaultProps={classNames:""},qe.propTypes="production"!==process.env.NODE_ENV?ce({},Ue.propTypes,{classNames:Ge,onEnter:$e.func,onEntering:$e.func,onEntered:$e.func,onExit:$e.func,onExiting:$e.func,onExited:$e.func}):{};var it,ot,at=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},lt=function(e){function n(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(et(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}pe(n,e);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,tt(n.children,(function(e){return l(e,{onExited:r.bind(null,e),in:!0,appear:nt(e,"appear",n),enter:nt(e,"enter",n),exit:nt(e,"exit",n)})}))):rt(e,i,o),firstRender:!1}},r.handleExited=function(e,t){var n=tt(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ce({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,n=e.component,r=e.childFactory,i=de(e,["component","childFactory"]),o=this.state.contextValue,a=at(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===n?t.createElement(We.Provider,{value:o},a):t.createElement(We.Provider,{value:o},t.createElement(n,i,a))},n}(t.Component);lt.propTypes="production"!==process.env.NODE_ENV?{component:$e.any,children:$e.node,appear:$e.bool,enter:$e.bool,exit:$e.bool,childFactory:$e.func}:{},lt.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}pe(n,e);var r=n.prototype;return r.handleLifecycle=function(e,n,r){var i,o=this.props.children,a=t.Children.toArray(o)[n];if(a.props[e]&&(i=a.props)[e].apply(i,r),this.props[e]){var l=a.props.nodeRef?void 0:I.findDOMNode(this);this.props[e](l)}},r.render=function(){var e=this.props,n=e.children,r=e.in,i=de(e,["children","in"]),o=t.Children.toArray(n),a=o[0],l=o[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,t.createElement(lt,i,r?t.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):t.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},n}(t.Component)).propTypes="production"!==process.env.NODE_ENV?{in:$e.bool.isRequired,children:function(e,n){return 2!==t.Children.count(e[n])?new Error('"'+n+'" must be exactly two transition components.'):null}}:{};var st="out-in",ct="in-out",dt=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},ut=((it={})[st]=function(e){var n=e.current,r=e.changeState;return t.cloneElement(n,{in:!1,onExited:dt(n,"onExited",(function(){r(Xe,null)}))})},it[ct]=function(e){var n=e.current,r=e.changeState,i=e.children;return[n,t.cloneElement(i,{in:!0,onEntered:dt(i,"onEntered",(function(){r(Xe)}))})]},it),pt=((ot={})[st]=function(e){var n=e.children,r=e.changeState;return t.cloneElement(n,{in:!0,onEntered:dt(n,"onEntered",(function(){r(Ye,t.cloneElement(n,{in:!0}))}))})},ot[ct]=function(e){var n=e.current,r=e.children,i=e.changeState;return[t.cloneElement(n,{in:!1,onExited:dt(n,"onExited",(function(){i(Ye,t.cloneElement(r,{in:!0}))}))}),t.cloneElement(r,{in:!0})]},ot),mt=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:Ye,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}pe(n,e);var r=n.prototype;return r.componentDidMount=function(){this.appeared=!0},n.getDerivedStateFromProps=function(e,n){return null==e.children?{current:null}:n.status===Xe&&e.mode===ct?{status:Xe}:!n.current||(r=n.current,i=e.children,r===i||t.isValidElement(r)&&t.isValidElement(i)&&null!=r.key&&r.key===i.key)?{current:t.cloneElement(e.children,{in:!0})}:{status:Je};var r,i},r.render=function(){var e,n=this.props,r=n.children,i=n.mode,o=this.state,a=o.status,l=o.current,s={children:r,current:l,changeState:this.changeState,status:a};switch(a){case Xe:e=pt[i](s);break;case Je:e=ut[i](s);break;case Ye:e=l}return t.createElement(We.Provider,{value:{isMounting:!this.appeared}},e)},n}(t.Component);mt.propTypes="production"!==process.env.NODE_ENV?{mode:$e.oneOf([ct,st]),children:$e.oneOfType([$e.element.isRequired])}:{},mt.defaultProps={mode:st};const gt=(e,t)=>{switch(typeof e){case"number":return e;case"object":return e[t]||0;default:return 0}},ht="fade-transition",ft=v(qe)`
|
|
105
105
|
&.${ht}-enter, &.${ht}-appear {
|
|
106
106
|
opacity: 0;
|
|
107
107
|
}
|
|
@@ -229,7 +229,7 @@ object-assign
|
|
|
229
229
|
overflow: hidden;
|
|
230
230
|
position: relative;
|
|
231
231
|
display: flex;
|
|
232
|
-
|
|
232
|
+
`,$t=v.div`
|
|
233
233
|
padding: 0 ${({theme:e})=>3*e.spacing}px;
|
|
234
234
|
position: relative;
|
|
235
235
|
width: fit-content;
|
|
@@ -239,7 +239,7 @@ object-assign
|
|
|
239
239
|
min-height: 400px;
|
|
240
240
|
padding: ${({theme:e})=>e.spacing}px;
|
|
241
241
|
border: none;
|
|
242
|
-
`;const
|
|
242
|
+
`;const Tt=v(J)`
|
|
243
243
|
padding: ${({theme:e})=>e.spacing}px;
|
|
244
244
|
padding-top: 0;
|
|
245
245
|
border: none;
|
|
@@ -392,7 +392,7 @@ object-assign
|
|
|
392
392
|
background-color: transparent;
|
|
393
393
|
color: ${({theme:e})=>e.palette.gray.main};
|
|
394
394
|
}
|
|
395
|
-
`,hn=c((function({selected:e,value:n,selectable:r,onClickDate:i,children:o}){return r?t.createElement(mn,{type:"button",selected:e,onClick:()=>{null==i||i(n)}},o):t.createElement(gn,{type:"button"},o)})),fn=({date:e,weekList:n,monthFormat:r,current:o,yearIsOpen:a,onYearIsOpen:l,isOutsideRange:s,onDateChange:c})=>{const d=C(),u=i(null),{monthList:p}=dn(o,u);return t.createElement(Yt,{ref:u,minHeight:un,maxHeight:un,id:"calendar"},t.createElement("div",null,p.map((i=>t.createElement(
|
|
395
|
+
`,hn=c((function({selected:e,value:n,selectable:r,onClickDate:i,children:o}){return r?t.createElement(mn,{type:"button",selected:e,onClick:()=>{null==i||i(n)}},o):t.createElement(gn,{type:"button"},o)})),fn=({date:e,weekList:n,monthFormat:r,current:o,yearIsOpen:a,onYearIsOpen:l,isOutsideRange:s,onDateChange:c})=>{const d=C(),u=i(null),{monthList:p}=dn(o,u);return t.createElement(Yt,{ref:u,minHeight:un,maxHeight:un,id:"calendar"},t.createElement("div",null,p.map((i=>t.createElement(Tt,{key:i.format("YYYY-MM"),id:i.format("YYYY-MM"),className:i.format("YYYY-MM")},t.createElement(Wt,{expanded:a},t.createElement(Gt,{expanded:a,weight:"bold",size:"xl"},i.format(r)),t.createElement(jt,{expanded:a,onClick:()=>l(!a)},t.createElement(X,{name:"arrow_bottom",size:"lg",color:d.palette.black}))),t.createElement(zt,null,null==n?void 0:n.map((e=>t.createElement(Bt,{key:e},e))),Array.from(new Array(i.startOf("month").day()),((e,n)=>t.createElement(Bt,{key:n}))),Array.from(new Array(i.daysInMonth()),((e,t)=>t+1)).map((n=>{const r=e.format("YYYY-MM-DD")===Kt(new Date(i.year(),i.month(),n)).format("YYYY-MM-DD"),o=!s(Kt(new Date(i.year(),i.month(),n)));return t.createElement(hn,{key:n,value:Kt(new Date(i.year(),i.month(),n)),selectable:o,selected:r,onClickDate:c},n)}))))))))};var bn=c(n((function(e,n){var{date:r,monthFormat:i="YYYY年M月",weekList:a=["日","月","火","水","木","金","土"],defaultClickAction:l,actions:s,onClickAction:c,onClickCloseButton:d,isOutsideRange:u=(()=>!1),onDateChange:p}=e,m=M(e,["date","monthFormat","weekList","defaultClickAction","actions","onClickAction","onClickCloseButton","isOutsideRange","onDateChange"]);const g=G(),[h,f]=t.useState(r),[b,v]=t.useState(!1);return o((()=>{f(r)}),[r]),t.createElement(St,Object.assign({ref:n},m),t.createElement(Qt,{defaultClickAction:l,actions:s,onClickAction:c}),t.createElement($t,null,t.createElement(sC,{unmountOnExit:!0,in:b,direction:"up"},t.createElement(ln,{date:r,current:r,yearIsOpen:b,onYearIsOpen:v,onClick:e=>{v(!1),f(e)}})),t.createElement(fn,{date:r,current:h,monthFormat:i,weekList:a,yearIsOpen:b,isOutsideRange:u,onYearIsOpen:v,onDateChange:p})),d&&t.createElement(Pt,{expanded:b,onClick:d},t.createElement(X,{name:"close",color:g.palette.black})))})));const vn="none",xn="start",yn="end",wn="between",Cn="start",En="end",In=(e,t,n,r)=>{switch(!0){case((e,t,n)=>(null==e?void 0:e.format("YYYY-MM-DD"))===Kt(new Date(t.year(),t.month(),n)).format("YYYY-MM-DD"))(e,n,r):return xn;case((e,t,n)=>(null==e?void 0:e.format("YYYY-MM-DD"))===Kt(new Date(t.year(),t.month(),n)).format("YYYY-MM-DD"))(t,n,r):return yn;case((e,t,n,r)=>{var i;return null!==(i=e&&t&&Kt(new Date(n.year(),n.month(),r)).isAfter(e.format("YYYY-MM-DD"),"day")&&Kt(new Date(n.year(),n.month(),r)).isBefore(t.format("YYYY-MM-DD"),"day"))&&void 0!==i&&i})(e,t,n,r):return wn;default:return vn}},An=v.div`
|
|
396
396
|
position: relative;
|
|
397
397
|
z-index: 1;
|
|
398
398
|
`,kn=v.button`
|
|
@@ -448,7 +448,7 @@ object-assign
|
|
|
448
448
|
background-color: transparent;
|
|
449
449
|
color: ${({theme:e})=>e.palette.gray.main};
|
|
450
450
|
}
|
|
451
|
-
`,Ln=c((function({state:e,value:n,selectable:r,onClickDate:i,children:o}){return t.createElement(An,null,(({state:e,value:n,selectable:r,onClickDate:i,children:o})=>{const a=()=>{null==i||i(n)};if(!r)return t.createElement(Dn,{type:"button"},o);switch(e){case xn:return t.createElement(Nn,{type:"button",onClick:a},o);case yn:return t.createElement(Vn,{type:"button",onClick:a},o);case wn:return t.createElement(Zn,{type:"button",onClick:a},o);default:return t.createElement(kn,{type:"button",onClick:a},o)}})({state:e,value:n,selectable:r,onClickDate:i,children:o}))})),On=({startDate:e,endDate:n,monthFormat:r,weekList:o,current:a,yearIsOpen:l,onYearIsOpen:s,isOutsideRange:c,onDateChange:d})=>{const u=G(),p=i(null),{monthList:m}=dn(a,p);return t.createElement(Yt,{ref:p,minHeight:un,maxHeight:un,id:"calendar"},t.createElement("div",null,m.map((i=>t.createElement(
|
|
451
|
+
`,Ln=c((function({state:e,value:n,selectable:r,onClickDate:i,children:o}){return t.createElement(An,null,(({state:e,value:n,selectable:r,onClickDate:i,children:o})=>{const a=()=>{null==i||i(n)};if(!r)return t.createElement(Dn,{type:"button"},o);switch(e){case xn:return t.createElement(Nn,{type:"button",onClick:a},o);case yn:return t.createElement(Vn,{type:"button",onClick:a},o);case wn:return t.createElement(Zn,{type:"button",onClick:a},o);default:return t.createElement(kn,{type:"button",onClick:a},o)}})({state:e,value:n,selectable:r,onClickDate:i,children:o}))})),On=({startDate:e,endDate:n,monthFormat:r,weekList:o,current:a,yearIsOpen:l,onYearIsOpen:s,isOutsideRange:c,onDateChange:d})=>{const u=G(),p=i(null),{monthList:m}=dn(a,p);return t.createElement(Yt,{ref:p,minHeight:un,maxHeight:un,id:"calendar"},t.createElement("div",null,m.map((i=>t.createElement(Tt,{key:i.format("YYYY-MM"),id:i.format("YYYY-MM"),className:i.format("YYYY-MM")},t.createElement(Wt,{expanded:l},t.createElement(Gt,{expanded:l,weight:"bold",size:"xl"},i.format(r)),t.createElement(jt,{expanded:l,onClick:()=>s(!l)},t.createElement(X,{name:"arrow_bottom",size:"lg",color:u.palette.black}))),t.createElement(zt,null,null==o?void 0:o.map((e=>t.createElement(Bt,{key:e},e))),Array.from(new Array(i.startOf("month").day()),((e,n)=>t.createElement(Bt,{key:n}))),Array.from(new Array(i.daysInMonth()),((e,t)=>t+1)).map((r=>{const o=!c(Kt(new Date(i.year(),i.month(),r)));return t.createElement(Ln,{key:r,value:Kt(new Date(i.year(),i.month(),r)),state:In(e,n,i,r),selectable:o,onClickDate:d},r)}))))))))};var Rn=c(n((function(e,n){var{startDate:i,endDate:a,monthFormat:l="YYYY年M月",weekList:s=["日","月","火","水","木","金","土"],defaultClickAction:c,actions:u,onClickAction:p,onClose:m,isOutsideRange:g=(()=>!1),onClickCloseButton:h,onDatesChange:f}=e,b=M(e,["startDate","endDate","monthFormat","weekList","defaultClickAction","actions","onClickAction","onClose","isOutsideRange","onClickCloseButton","onDatesChange"]);const v=G(),[x,y]=t.useState(i),[w,C]=t.useState(!1);o((()=>{y(i)}),[i]);const[E,I]=r(Cn),A=d((e=>{switch(m&&m(E),E){case Cn:null==f||f({startDate:e,endDate:a}),I(En);break;case En:null==f||f({startDate:i,endDate:e}),I(Cn)}}),[m,E,f,a,i]);return t.createElement(St,Object.assign({ref:n},b),t.createElement(Qt,{defaultClickAction:c,actions:u,onClickAction:p}),t.createElement($t,null,t.createElement("div",{style:{position:"relative",zIndex:1}},t.createElement(sC,{unmountOnExit:!0,in:w,direction:"up"},t.createElement(ln,{date:i,current:i,yearIsOpen:w,onYearIsOpen:C,onClick:e=>{C(!1),y(e)}}))),t.createElement("div",{style:{position:"relative",zIndex:0}},t.createElement(On,{startDate:i,endDate:a,monthFormat:l,weekList:s,current:x,yearIsOpen:w,isOutsideRange:g,onYearIsOpen:C,onDateChange:A}))),h&&t.createElement(Pt,{expanded:w,onClick:h},t.createElement(X,{name:"close",color:v.palette.black})))})));const Sn=v.div`
|
|
452
452
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
453
453
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
454
454
|
width: ${({width:e})=>e||"auto"};
|
|
@@ -457,7 +457,7 @@ object-assign
|
|
|
457
457
|
border: 1px solid ${({theme:e})=>e.palette.gray.light};
|
|
458
458
|
${Et}
|
|
459
459
|
${Y}
|
|
460
|
-
|
|
460
|
+
`,$n=v.input`
|
|
461
461
|
opacity: 0;
|
|
462
462
|
-webkit-appearance: none;
|
|
463
463
|
appearance: none;
|
|
@@ -483,7 +483,7 @@ object-assign
|
|
|
483
483
|
background-repeat: no-repeat;
|
|
484
484
|
background-position: center center;
|
|
485
485
|
}
|
|
486
|
-
|
|
486
|
+
`,Tn=v.label`
|
|
487
487
|
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
488
488
|
display: flex;
|
|
489
489
|
align-items: center;
|
|
@@ -508,7 +508,7 @@ object-assign
|
|
|
508
508
|
margin-right: ${({hasChild:e,theme:t})=>e?t.spacing/2+"px":"auto"};
|
|
509
509
|
transition: background-color 0.3s ease;
|
|
510
510
|
}
|
|
511
|
-
`;var Bn;!function(e){e.SMALL="small",e.MEDIUM="medium"}(Bn||(Bn={}));const Gn=e.forwardRef((function(t,n){var{children:r,indeterminate:i=!1,error:o=!1,disabled:a=!1,inputRef:l,size:s=Bn.MEDIUM}=t,c=M(t,["children","indeterminate","error","disabled","inputRef","size"]);return e.createElement(
|
|
511
|
+
`;var Bn;!function(e){e.SMALL="small",e.MEDIUM="medium"}(Bn||(Bn={}));const Gn=e.forwardRef((function(t,n){var{children:r,indeterminate:i=!1,error:o=!1,disabled:a=!1,inputRef:l,size:s=Bn.MEDIUM}=t,c=M(t,["children","indeterminate","error","disabled","inputRef","size"]);return e.createElement(Tn,{ref:n,disabled:a},e.createElement($n,Object.assign({ref:l,error:o,readOnly:!0,type:"checkbox",indeterminate:i,disabled:a,_size:s},c)),e.createElement(zn,{size:s,error:o,indeterminate:i,hasChild:!!r,disabled:a},r))}));function Wn(...t){return e.useMemo((()=>t.every((e=>null===e))?null:e=>{for(const n of t)"function"==typeof n?n(e):n&&"string"!=typeof n&&(n.current=e)}),[t])}const Pn=({onClickAway:t,children:n})=>{const r=e.useRef(null),i=e.useRef(!1);e.useEffect((()=>(setTimeout((()=>{i.current=!0}),0),()=>{i.current=!1})),[]),e.useEffect((()=>{const e=e=>{i.current&&(null==r.current||r.current.contains(e.target)||t&&t(e))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[r,t]);const o=Object.assign(Object.assign({},n.props),{ref:Wn(r,n.ref)});return e.cloneElement(n,o)},jn=w`
|
|
512
512
|
0% {
|
|
513
513
|
transform: translate(-50%, calc(-50% + 8px));
|
|
514
514
|
}
|
|
@@ -681,12 +681,12 @@ object-assign
|
|
|
681
681
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
682
682
|
box-shadow: ${({theme:e})=>Rt(5,e.palette.action.shadowOpacity,e.palette.action.shadowBase)};
|
|
683
683
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
684
|
-
`;function kr(e){return Nr(e)?(e.nodeName||"").toLowerCase():"#document"}function Mr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Hr(e){var t;return null==(t=(Nr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Nr(e){return e instanceof Node||e instanceof Mr(e).Node}function Vr(e){return e instanceof Element||e instanceof Mr(e).Element}function Zr(e){return e instanceof HTMLElement||e instanceof Mr(e).HTMLElement}function Dr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Mr(e).ShadowRoot)}function Lr(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=$r(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Or(e){return["table","td","th"].includes(kr(e))}function Rr(e){const t=Sr(),n=$r(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Sr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Tr(e){return["html","body","#document"].includes(kr(e))}function $r(e){return Mr(e).getComputedStyle(e)}function zr(e){return Vr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Br(e){if("html"===kr(e))return e;const t=e.assignedSlot||e.parentNode||Dr(e)&&e.host||Hr(e);return Dr(t)?t.host:t}function Gr(e){const t=Br(e);return Tr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zr(t)&&Lr(t)?t:Gr(t)}function Wr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Gr(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Mr(i);return o?t.concat(a,a.visualViewport||[],Lr(i)?i:[],a.frameElement&&n?Wr(a.frameElement):[]):t.concat(i,Wr(i,[],n))}function Pr(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(r=n.shadowRoot)?void 0:r.activeElement);){var n,r;t=t.shadowRoot.activeElement}return t}function jr(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Dr(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Fr(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Xr(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Ur()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Yr(e){return!Ur()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail}function Jr(){return/apple/i.test(navigator.vendor)}function Ur(){const e=/android/i;return e.test(Fr())||e.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())}function Qr(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function _r(e){return(null==e?void 0:e.ownerDocument)||document}function Kr(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function qr(e){return"composedPath"in e?e.composedPath()[0]:e.target}const ei="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function ti(e){return Zr(e)&&e.matches(ei)}function ni(e){e.preventDefault(),e.stopPropagation()}const ri=["start","end"],ii=["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-"+ri[0],t+"-"+ri[1])),[]),oi=Math.min,ai=Math.max,li=Math.round,si=Math.floor,ci=e=>({x:e,y:e}),di={left:"right",right:"left",bottom:"top",top:"bottom"},ui={start:"end",end:"start"};function pi(e,t,n){return ai(e,oi(t,n))}function mi(e,t){return"function"==typeof e?e(t):e}function gi(e){return e.split("-")[0]}function hi(e){return e.split("-")[1]}function fi(e){return"x"===e?"y":"x"}function bi(e){return"y"===e?"height":"width"}function xi(e){return["top","bottom"].includes(gi(e))?"y":"x"}function yi(e){return fi(xi(e))}function wi(e,t,n){void 0===n&&(n=!1);const r=hi(e),i=yi(e),o=bi(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Ei(a)),[a,Ei(a)]}function Ci(e){return e.replace(/start|end/g,(e=>ui[e]))}function Ei(e){return e.replace(/left|right|bottom|top/g,(e=>di[e]))}function Ii(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Ai(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ki(e,t,n){let{reference:r,floating:i}=e;const o=xi(t),a=yi(t),l=bi(a),s=gi(t),c="y"===o,d=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,p=r[l]/2-i[l]/2;let m;switch(s){case"top":m={x:d,y:r.y-i.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:u};break;case"left":m={x:r.x-i.width,y:u};break;default:m={x:r.x,y:r.y}}switch(hi(t)){case"start":m[a]-=p*(n&&c?-1:1);break;case"end":m[a]+=p*(n&&c?-1:1)}return m}async function Mi(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:m=0}=mi(t,e),g=Ii(m),h=l[p?"floating"===u?"reference":"floating":u],f=Ai(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(h)))||n?h:h.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:s})),b="floating"===u?{...a.floating,x:r,y:i}:a.reference,v=await(null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),x=await(null==o.isElement?void 0:o.isElement(v))&&await(null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},y=Ai(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:s}):b);return{top:(f.top-y.top+g.top)/x.y,bottom:(y.bottom-f.bottom+g.bottom)/x.y,left:(f.left-y.left+g.left)/x.x,right:(y.right-f.right+g.right)/x.x}}const Hi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:l,middlewareData:s}=t,{element:c,padding:d=0}=mi(e,t)||{};if(null==c)return{};const u=Ii(d),p={x:n,y:r},m=yi(i),g=bi(m),h=await a.getDimensions(c),f="y"===m,b=f?"top":"left",v=f?"bottom":"right",x=f?"clientHeight":"clientWidth",y=o.reference[g]+o.reference[m]-p[m]-o.floating[g],w=p[m]-o.reference[m],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let E=C?C[x]:0;E&&await(null==a.isElement?void 0:a.isElement(C))||(E=l.floating[x]||o.floating[g]);const I=y/2-w/2,A=E/2-h[g]/2-1,k=oi(u[b],A),M=oi(u[v],A),H=k,N=E-h[g]-M,V=E/2-h[g]/2+I,Z=pi(H,V,N),D=!s.arrow&&null!=hi(i)&&V!=Z&&o.reference[g]/2-(V<H?k:M)-h[g]/2<0,L=D?V<H?V-H:V-N:0;return{[m]:p[m]+L,data:{[m]:Z,centerOffset:V-Z-L,...D&&{alignmentOffset:L}},reset:D}}});const Ni=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:o,middlewareData:a,placement:l,platform:s,elements:c}=t,{crossAxis:d=!1,alignment:u,allowedPlacements:p=ii,autoAlignment:m=!0,...g}=mi(e,t),h=void 0!==u||p===ii?function(e,t,n){return(e?[...n.filter((t=>hi(t)===e)),...n.filter((t=>hi(t)!==e))]:n.filter((e=>gi(e)===e))).filter((n=>!e||hi(n)===e||!!t&&Ci(n)!==n))}(u||null,m,p):p,f=await Mi(t,g),b=(null==(n=a.autoPlacement)?void 0:n.index)||0,v=h[b];if(null==v)return{};const x=wi(v,o,await(null==s.isRTL?void 0:s.isRTL(c.floating)));if(l!==v)return{reset:{placement:h[0]}};const y=[f[gi(v)],f[x[0]],f[x[1]]],w=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:v,overflows:y}],C=h[b+1];if(C)return{data:{index:b+1,overflows:w},reset:{placement:C}};const E=w.map((e=>{const t=hi(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),I=(null==(i=E.filter((e=>e[2].slice(0,hi(e[0])?2:3).every((e=>e<=0))))[0])?void 0:i[0])||E[0][0];return I!==l?{data:{index:b+1,overflows:w},reset:{placement:I}}:{}}}},Vi=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...f}=mi(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const b=gi(i),v=gi(l)===l,x=await(null==s.isRTL?void 0:s.isRTL(c.floating)),y=p||(v||!h?[Ei(l)]:function(e){const t=Ei(e);return[Ci(e),t,Ci(t)]}(l));p||"none"===g||y.push(...function(e,t,n,r){const i=hi(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(gi(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(Ci)))),o}(l,h,g,x));const w=[l,...y],C=await Mi(t,f),E=[];let I=(null==(r=o.flip)?void 0:r.overflows)||[];if(d&&E.push(C[b]),u){const e=wi(i,a,x);E.push(C[e[0]],C[e[1]])}if(I=[...I,{placement:i,overflows:E}],!E.every((e=>e<=0))){var A,k;const e=((null==(A=o.flip)?void 0:A.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(k=I.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!n)switch(m){case"bestFit":{var M;const e=null==(M=I.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};const Zi=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=gi(n),l=hi(n),s="y"===xi(n),c=["left","top"].includes(a)?-1:1,d=o&&s?-1:1,u=mi(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:g}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&"number"==typeof g&&(m="end"===l?-1*g:g),s?{x:m*d,y:p*c}:{x:p*c,y:m*d}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},Di=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=mi(e,t),c={x:n,y:r},d=await Mi(t,s),u=xi(gi(i)),p=fi(u);let m=c[p],g=c[u];if(o){const e="y"===p?"bottom":"right";m=pi(m+d["y"===p?"top":"left"],m,m-d[e])}if(a){const e="y"===u?"bottom":"right";g=pi(g+d["y"===u?"top":"left"],g,g-d[e])}const h=l.fn({...t,[p]:m,[u]:g});return{...h,data:{x:h.x-n,y:h.y-r}}}}},Li=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:a=(()=>{}),...l}=mi(e,t),s=await Mi(t,l),c=gi(n),d=hi(n),u="y"===xi(n),{width:p,height:m}=r.floating;let g,h;"top"===c||"bottom"===c?(g=c,h=d===(await(null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(h=c,g="end"===d?"top":"bottom");const f=m-s[g],b=p-s[h],v=!t.middlewareData.shift;let x=f,y=b;if(u){const e=p-s.left-s.right;y=d||v?oi(b,e):e}else{const e=m-s.top-s.bottom;x=d||v?oi(f,e):e}if(v&&!d){const e=ai(s.left,0),t=ai(s.right,0),n=ai(s.top,0),r=ai(s.bottom,0);u?y=p-2*(0!==e||0!==t?e+t:ai(s.left,s.right)):x=m-2*(0!==n||0!==r?n+r:ai(s.top,s.bottom))}await a({...t,availableWidth:y,availableHeight:x});const w=await i.getDimensions(o.floating);return p!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function Oi(e){const t=$r(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Zr(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=li(n)!==o||li(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function Ri(e){return Vr(e)?e:e.contextElement}function Si(e){const t=Ri(e);if(!Zr(t))return ci(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Oi(t);let a=(o?li(n.width):n.width)/r,l=(o?li(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Ti=ci(0);function $i(e){const t=Mr(e);return Sr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ti}function zi(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Ri(e);let a=ci(1);t&&(r?Vr(r)&&(a=Si(r)):a=Si(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Mr(e))&&t}(o,n,r)?$i(o):ci(0);let s=(i.left+l.x)/a.x,c=(i.top+l.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(o){const e=Mr(o),t=r&&Vr(r)?Mr(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Si(n),t=n.getBoundingClientRect(),r=$r(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,u*=e.y,s+=i,c+=o,n=Mr(n).frameElement}}return Ai({width:d,height:u,x:s,y:c})}function Bi(e){return zi(Hr(e)).left+zr(e).scrollLeft}function Gi(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Mr(e),r=Hr(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,l=0,s=0;if(i){o=i.width,a=i.height;const e=Sr();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:o,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=Hr(e),n=zr(e),r=e.ownerDocument.body,i=ai(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ai(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Bi(e);const l=-n.scrollTop;return"rtl"===$r(r).direction&&(a+=ai(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}(Hr(e));else if(Vr(t))r=function(e,t){const n=zi(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Zr(e)?Si(e):ci(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=$i(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Ai(r)}function Wi(e,t){const n=Br(e);return!(n===t||!Vr(n)||Tr(n))&&("fixed"===$r(n).position||Wi(n,t))}function Pi(e,t,n){const r=Zr(t),i=Hr(t),o="fixed"===n,a=zi(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const s=ci(0);if(r||!r&&!o)if(("body"!==kr(t)||Lr(i))&&(l=zr(t)),r){const e=zi(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Bi(i));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function ji(e,t){return Zr(e)&&"fixed"!==$r(e).position?t?t(e):e.offsetParent:null}function Fi(e,t){const n=Mr(e);if(!Zr(e))return n;let r=ji(e,t);for(;r&&Or(r)&&"static"===$r(r).position;)r=ji(r,t);return r&&("html"===kr(r)||"body"===kr(r)&&"static"===$r(r).position&&!Rr(r))?n:r||function(e){let t=Br(e);for(;Zr(t)&&!Tr(t);){if(Rr(t))return t;t=Br(t)}return null}(e)||n}const Xi={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Zr(n),o=Hr(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},l=ci(1);const s=ci(0);if((i||!i&&"fixed"!==r)&&(("body"!==kr(n)||Lr(o))&&(a=zr(n)),Zr(n))){const e=zi(n);l=Si(n),s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+s.x,y:t.y*l.y-a.scrollTop*l.y+s.y}},getDocumentElement:Hr,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Wr(e,[],!1).filter((e=>Vr(e)&&"body"!==kr(e))),i=null;const o="fixed"===$r(e).position;let a=o?Br(e):e;for(;Vr(a)&&!Tr(a);){const t=$r(a),n=Rr(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||Lr(a)&&!n&&Wi(e,a))?r=r.filter((e=>e!==a)):i=t,a=Br(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],l=o.reduce(((e,n)=>{const r=Gi(t,n,i);return e.top=ai(r.top,e.top),e.right=oi(r.right,e.right),e.bottom=oi(r.bottom,e.bottom),e.left=ai(r.left,e.left),e}),Gi(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Fi,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||Fi,o=this.getDimensions;return{reference:Pi(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return Oi(e)},getScale:Si,isElement:Vr,isRTL:function(e){return"rtl"===$r(e).direction}};function Yi(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Ri(e),d=i||o?[...c?Wr(c):[],...Wr(t)]:[];d.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const u=c&&l?function(e,t){let n,r=null;const i=Hr(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),o();const{left:c,top:d,width:u,height:p}=e.getBoundingClientRect();if(l||t(),!u||!p)return;const m={rootMargin:-si(d)+"px "+-si(i.clientWidth-(c+u))+"px "+-si(i.clientHeight-(d+p))+"px "+-si(c)+"px",threshold:ai(0,oi(1,s))||1};let g=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!g)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}g=!1}try{r=new IntersectionObserver(h,{...m,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(h,m)}r.observe(e)}(!0),o}(c,n):null;let p,m=-1,g=null;a&&(g=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{g&&g.observe(t)}))),n()})),c&&!s&&g.observe(c),g.observe(t));let h=s?zi(e):null;return s&&function t(){const r=zi(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,p=requestAnimationFrame(t)}(),n(),()=>{d.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),u&&u(),g&&g.disconnect(),g=null,s&&cancelAnimationFrame(p)}}const Ji=(e,t,n)=>{const r=new Map,i={platform:Xi,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=o.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=ki(c,r,s),p=r,m={},g=0;for(let n=0;n<l.length;n++){const{name:o,fn:h}=l[n],{x:f,y:b,data:v,reset:x}=await h({x:d,y:u,initialPlacement:r,placement:p,strategy:i,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=f?f:d,u=null!=b?b:u,m={...m,[o]:{...m[o],...v}},x&&g<=50&&(g++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),({x:d,y:u}=ki(c,p,s))),n=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:m}})(e,t,{...i,platform:o})},Ui=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?Hi({element:n.current,padding:r}).fn(t):{}:n?Hi({element:n,padding:r}).fn(t):{};var i}});var Qi="undefined"!=typeof document?u:o;function _i(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!_i(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!_i(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ki(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qi(e,t){const n=Ki(e);return Math.round(t*n)/n}function eo(t){const n=e.useRef(t);return Qi((()=>{n.current=t})),n}
|
|
684
|
+
`;function kr(e){return Nr(e)?(e.nodeName||"").toLowerCase():"#document"}function Mr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Hr(e){var t;return null==(t=(Nr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Nr(e){return e instanceof Node||e instanceof Mr(e).Node}function Vr(e){return e instanceof Element||e instanceof Mr(e).Element}function Zr(e){return e instanceof HTMLElement||e instanceof Mr(e).HTMLElement}function Dr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Mr(e).ShadowRoot)}function Lr(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Tr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Or(e){return["table","td","th"].includes(kr(e))}function Rr(e){const t=Sr(),n=Tr(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Sr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function $r(e){return["html","body","#document"].includes(kr(e))}function Tr(e){return Mr(e).getComputedStyle(e)}function zr(e){return Vr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Br(e){if("html"===kr(e))return e;const t=e.assignedSlot||e.parentNode||Dr(e)&&e.host||Hr(e);return Dr(t)?t.host:t}function Gr(e){const t=Br(e);return $r(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zr(t)&&Lr(t)?t:Gr(t)}function Wr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Gr(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Mr(i);return o?t.concat(a,a.visualViewport||[],Lr(i)?i:[],a.frameElement&&n?Wr(a.frameElement):[]):t.concat(i,Wr(i,[],n))}function Pr(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(r=n.shadowRoot)?void 0:r.activeElement);){var n,r;t=t.shadowRoot.activeElement}return t}function jr(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Dr(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Fr(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Xr(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Ur()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Yr(e){return!Ur()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail}function Jr(){return/apple/i.test(navigator.vendor)}function Ur(){const e=/android/i;return e.test(Fr())||e.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())}function Qr(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function _r(e){return(null==e?void 0:e.ownerDocument)||document}function Kr(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function qr(e){return"composedPath"in e?e.composedPath()[0]:e.target}const ei="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function ti(e){return Zr(e)&&e.matches(ei)}function ni(e){e.preventDefault(),e.stopPropagation()}const ri=["start","end"],ii=["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-"+ri[0],t+"-"+ri[1])),[]),oi=Math.min,ai=Math.max,li=Math.round,si=Math.floor,ci=e=>({x:e,y:e}),di={left:"right",right:"left",bottom:"top",top:"bottom"},ui={start:"end",end:"start"};function pi(e,t,n){return ai(e,oi(t,n))}function mi(e,t){return"function"==typeof e?e(t):e}function gi(e){return e.split("-")[0]}function hi(e){return e.split("-")[1]}function fi(e){return"x"===e?"y":"x"}function bi(e){return"y"===e?"height":"width"}function xi(e){return["top","bottom"].includes(gi(e))?"y":"x"}function yi(e){return fi(xi(e))}function wi(e,t,n){void 0===n&&(n=!1);const r=hi(e),i=yi(e),o=bi(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Ei(a)),[a,Ei(a)]}function Ci(e){return e.replace(/start|end/g,(e=>ui[e]))}function Ei(e){return e.replace(/left|right|bottom|top/g,(e=>di[e]))}function Ii(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Ai(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ki(e,t,n){let{reference:r,floating:i}=e;const o=xi(t),a=yi(t),l=bi(a),s=gi(t),c="y"===o,d=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,p=r[l]/2-i[l]/2;let m;switch(s){case"top":m={x:d,y:r.y-i.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:u};break;case"left":m={x:r.x-i.width,y:u};break;default:m={x:r.x,y:r.y}}switch(hi(t)){case"start":m[a]-=p*(n&&c?-1:1);break;case"end":m[a]+=p*(n&&c?-1:1)}return m}async function Mi(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:m=0}=mi(t,e),g=Ii(m),h=l[p?"floating"===u?"reference":"floating":u],f=Ai(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(h)))||n?h:h.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:s})),b="floating"===u?{...a.floating,x:r,y:i}:a.reference,v=await(null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),x=await(null==o.isElement?void 0:o.isElement(v))&&await(null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},y=Ai(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:s}):b);return{top:(f.top-y.top+g.top)/x.y,bottom:(y.bottom-f.bottom+g.bottom)/x.y,left:(f.left-y.left+g.left)/x.x,right:(y.right-f.right+g.right)/x.x}}const Hi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:l,middlewareData:s}=t,{element:c,padding:d=0}=mi(e,t)||{};if(null==c)return{};const u=Ii(d),p={x:n,y:r},m=yi(i),g=bi(m),h=await a.getDimensions(c),f="y"===m,b=f?"top":"left",v=f?"bottom":"right",x=f?"clientHeight":"clientWidth",y=o.reference[g]+o.reference[m]-p[m]-o.floating[g],w=p[m]-o.reference[m],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let E=C?C[x]:0;E&&await(null==a.isElement?void 0:a.isElement(C))||(E=l.floating[x]||o.floating[g]);const I=y/2-w/2,A=E/2-h[g]/2-1,k=oi(u[b],A),M=oi(u[v],A),H=k,N=E-h[g]-M,V=E/2-h[g]/2+I,Z=pi(H,V,N),D=!s.arrow&&null!=hi(i)&&V!=Z&&o.reference[g]/2-(V<H?k:M)-h[g]/2<0,L=D?V<H?V-H:V-N:0;return{[m]:p[m]+L,data:{[m]:Z,centerOffset:V-Z-L,...D&&{alignmentOffset:L}},reset:D}}});const Ni=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:o,middlewareData:a,placement:l,platform:s,elements:c}=t,{crossAxis:d=!1,alignment:u,allowedPlacements:p=ii,autoAlignment:m=!0,...g}=mi(e,t),h=void 0!==u||p===ii?function(e,t,n){return(e?[...n.filter((t=>hi(t)===e)),...n.filter((t=>hi(t)!==e))]:n.filter((e=>gi(e)===e))).filter((n=>!e||hi(n)===e||!!t&&Ci(n)!==n))}(u||null,m,p):p,f=await Mi(t,g),b=(null==(n=a.autoPlacement)?void 0:n.index)||0,v=h[b];if(null==v)return{};const x=wi(v,o,await(null==s.isRTL?void 0:s.isRTL(c.floating)));if(l!==v)return{reset:{placement:h[0]}};const y=[f[gi(v)],f[x[0]],f[x[1]]],w=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:v,overflows:y}],C=h[b+1];if(C)return{data:{index:b+1,overflows:w},reset:{placement:C}};const E=w.map((e=>{const t=hi(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),I=(null==(i=E.filter((e=>e[2].slice(0,hi(e[0])?2:3).every((e=>e<=0))))[0])?void 0:i[0])||E[0][0];return I!==l?{data:{index:b+1,overflows:w},reset:{placement:I}}:{}}}},Vi=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...f}=mi(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const b=gi(i),v=gi(l)===l,x=await(null==s.isRTL?void 0:s.isRTL(c.floating)),y=p||(v||!h?[Ei(l)]:function(e){const t=Ei(e);return[Ci(e),t,Ci(t)]}(l));p||"none"===g||y.push(...function(e,t,n,r){const i=hi(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(gi(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(Ci)))),o}(l,h,g,x));const w=[l,...y],C=await Mi(t,f),E=[];let I=(null==(r=o.flip)?void 0:r.overflows)||[];if(d&&E.push(C[b]),u){const e=wi(i,a,x);E.push(C[e[0]],C[e[1]])}if(I=[...I,{placement:i,overflows:E}],!E.every((e=>e<=0))){var A,k;const e=((null==(A=o.flip)?void 0:A.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(k=I.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!n)switch(m){case"bestFit":{var M;const e=null==(M=I.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};const Zi=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=gi(n),l=hi(n),s="y"===xi(n),c=["left","top"].includes(a)?-1:1,d=o&&s?-1:1,u=mi(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:g}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&"number"==typeof g&&(m="end"===l?-1*g:g),s?{x:m*d,y:p*c}:{x:p*c,y:m*d}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},Di=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=mi(e,t),c={x:n,y:r},d=await Mi(t,s),u=xi(gi(i)),p=fi(u);let m=c[p],g=c[u];if(o){const e="y"===p?"bottom":"right";m=pi(m+d["y"===p?"top":"left"],m,m-d[e])}if(a){const e="y"===u?"bottom":"right";g=pi(g+d["y"===u?"top":"left"],g,g-d[e])}const h=l.fn({...t,[p]:m,[u]:g});return{...h,data:{x:h.x-n,y:h.y-r}}}}},Li=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:a=(()=>{}),...l}=mi(e,t),s=await Mi(t,l),c=gi(n),d=hi(n),u="y"===xi(n),{width:p,height:m}=r.floating;let g,h;"top"===c||"bottom"===c?(g=c,h=d===(await(null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(h=c,g="end"===d?"top":"bottom");const f=m-s[g],b=p-s[h],v=!t.middlewareData.shift;let x=f,y=b;if(u){const e=p-s.left-s.right;y=d||v?oi(b,e):e}else{const e=m-s.top-s.bottom;x=d||v?oi(f,e):e}if(v&&!d){const e=ai(s.left,0),t=ai(s.right,0),n=ai(s.top,0),r=ai(s.bottom,0);u?y=p-2*(0!==e||0!==t?e+t:ai(s.left,s.right)):x=m-2*(0!==n||0!==r?n+r:ai(s.top,s.bottom))}await a({...t,availableWidth:y,availableHeight:x});const w=await i.getDimensions(o.floating);return p!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function Oi(e){const t=Tr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Zr(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=li(n)!==o||li(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function Ri(e){return Vr(e)?e:e.contextElement}function Si(e){const t=Ri(e);if(!Zr(t))return ci(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Oi(t);let a=(o?li(n.width):n.width)/r,l=(o?li(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const $i=ci(0);function Ti(e){const t=Mr(e);return Sr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:$i}function zi(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Ri(e);let a=ci(1);t&&(r?Vr(r)&&(a=Si(r)):a=Si(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Mr(e))&&t}(o,n,r)?Ti(o):ci(0);let s=(i.left+l.x)/a.x,c=(i.top+l.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(o){const e=Mr(o),t=r&&Vr(r)?Mr(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Si(n),t=n.getBoundingClientRect(),r=Tr(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,u*=e.y,s+=i,c+=o,n=Mr(n).frameElement}}return Ai({width:d,height:u,x:s,y:c})}function Bi(e){return zi(Hr(e)).left+zr(e).scrollLeft}function Gi(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Mr(e),r=Hr(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,l=0,s=0;if(i){o=i.width,a=i.height;const e=Sr();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:o,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=Hr(e),n=zr(e),r=e.ownerDocument.body,i=ai(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ai(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Bi(e);const l=-n.scrollTop;return"rtl"===Tr(r).direction&&(a+=ai(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}(Hr(e));else if(Vr(t))r=function(e,t){const n=zi(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Zr(e)?Si(e):ci(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=Ti(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Ai(r)}function Wi(e,t){const n=Br(e);return!(n===t||!Vr(n)||$r(n))&&("fixed"===Tr(n).position||Wi(n,t))}function Pi(e,t,n){const r=Zr(t),i=Hr(t),o="fixed"===n,a=zi(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const s=ci(0);if(r||!r&&!o)if(("body"!==kr(t)||Lr(i))&&(l=zr(t)),r){const e=zi(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Bi(i));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function ji(e,t){return Zr(e)&&"fixed"!==Tr(e).position?t?t(e):e.offsetParent:null}function Fi(e,t){const n=Mr(e);if(!Zr(e))return n;let r=ji(e,t);for(;r&&Or(r)&&"static"===Tr(r).position;)r=ji(r,t);return r&&("html"===kr(r)||"body"===kr(r)&&"static"===Tr(r).position&&!Rr(r))?n:r||function(e){let t=Br(e);for(;Zr(t)&&!$r(t);){if(Rr(t))return t;t=Br(t)}return null}(e)||n}const Xi={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Zr(n),o=Hr(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},l=ci(1);const s=ci(0);if((i||!i&&"fixed"!==r)&&(("body"!==kr(n)||Lr(o))&&(a=zr(n)),Zr(n))){const e=zi(n);l=Si(n),s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+s.x,y:t.y*l.y-a.scrollTop*l.y+s.y}},getDocumentElement:Hr,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Wr(e,[],!1).filter((e=>Vr(e)&&"body"!==kr(e))),i=null;const o="fixed"===Tr(e).position;let a=o?Br(e):e;for(;Vr(a)&&!$r(a);){const t=Tr(a),n=Rr(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||Lr(a)&&!n&&Wi(e,a))?r=r.filter((e=>e!==a)):i=t,a=Br(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],l=o.reduce(((e,n)=>{const r=Gi(t,n,i);return e.top=ai(r.top,e.top),e.right=oi(r.right,e.right),e.bottom=oi(r.bottom,e.bottom),e.left=ai(r.left,e.left),e}),Gi(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Fi,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||Fi,o=this.getDimensions;return{reference:Pi(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return Oi(e)},getScale:Si,isElement:Vr,isRTL:function(e){return"rtl"===Tr(e).direction}};function Yi(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Ri(e),d=i||o?[...c?Wr(c):[],...Wr(t)]:[];d.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const u=c&&l?function(e,t){let n,r=null;const i=Hr(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),o();const{left:c,top:d,width:u,height:p}=e.getBoundingClientRect();if(l||t(),!u||!p)return;const m={rootMargin:-si(d)+"px "+-si(i.clientWidth-(c+u))+"px "+-si(i.clientHeight-(d+p))+"px "+-si(c)+"px",threshold:ai(0,oi(1,s))||1};let g=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!g)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}g=!1}try{r=new IntersectionObserver(h,{...m,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(h,m)}r.observe(e)}(!0),o}(c,n):null;let p,m=-1,g=null;a&&(g=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{g&&g.observe(t)}))),n()})),c&&!s&&g.observe(c),g.observe(t));let h=s?zi(e):null;return s&&function t(){const r=zi(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,p=requestAnimationFrame(t)}(),n(),()=>{d.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),u&&u(),g&&g.disconnect(),g=null,s&&cancelAnimationFrame(p)}}const Ji=(e,t,n)=>{const r=new Map,i={platform:Xi,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=o.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=ki(c,r,s),p=r,m={},g=0;for(let n=0;n<l.length;n++){const{name:o,fn:h}=l[n],{x:f,y:b,data:v,reset:x}=await h({x:d,y:u,initialPlacement:r,placement:p,strategy:i,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=f?f:d,u=null!=b?b:u,m={...m,[o]:{...m[o],...v}},x&&g<=50&&(g++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),({x:d,y:u}=ki(c,p,s))),n=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:m}})(e,t,{...i,platform:o})},Ui=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?Hi({element:n.current,padding:r}).fn(t):{}:n?Hi({element:n,padding:r}).fn(t):{};var i}});var Qi="undefined"!=typeof document?u:o;function _i(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!_i(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!_i(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ki(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qi(e,t){const n=Ki(e);return Math.round(t*n)/n}function eo(t){const n=e.useRef(t);return Qi((()=>{n.current=t})),n}
|
|
685
685
|
/*!
|
|
686
686
|
* tabbable 6.2.0
|
|
687
687
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
688
688
|
*/
|
|
689
|
-
var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),no="undefined"==typeof Element,ro=no?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,io=!no&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},oo=function e(t,n){var r;void 0===n&&(n=!0);var i=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},ao=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!oo(a,!1))if("SLOT"===a.tagName){var l=a.assignedElements(),s=e(l.length?l:a.children,!0,r);r.flatten?i.push.apply(i,s):i.push({scopeParent:a,candidates:s})}else{ro.call(a,to)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),d=!oo(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(c&&d){var u=e(!0===c?a.children:c.children,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:a,candidates:u})}else o.unshift.apply(o,a.children)}}return i},lo=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},so=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!lo(e)?0:e.tabIndex},co=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},uo=function(e){return"INPUT"===e.tagName},po=function(e){return function(e){return uo(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||io(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){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",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},mo=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},go=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=ro.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ro.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return mo(e)}else{if("function"==typeof r){for(var o=e;e;){var a=e.parentElement,l=io(e);if(a&&!a.shadowRoot&&!0===r(a))return mo(e);e=e.assignedSlot?e.assignedSlot:a||l===e.ownerDocument?a:l.host}e=o}if(function(e){var t,n,r,i,o=e&&io(e),a=null===(t=o)||void 0===t?void 0:t.host,l=!1;if(o&&o!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!l&&a;){var s,c,d;l=!(null===(c=a=null===(s=o=io(a))||void 0===s?void 0:s.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},ho=function(e,t){return!(t.disabled||oo(t)||function(e){return uo(e)&&"hidden"===e.type}(t)||go(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!ro.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},fo=function(e,t){return!(po(t)||so(t)<0||!ho(e,t))},bo=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},vo=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,l=function(e,t){var n=so(e);return n<0&&t&&!lo(e)?0:n}(a,o),s=o?e(t.candidates):a;0===l?o?n.push.apply(n,s):n.push(a):r.push({documentOrder:i,tabIndex:l,item:t,isScope:o,content:s})})),r.sort(co).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},xo=function(e,t){var n;return n=(t=t||{}).getShadowRoot?ao([e],t.includeContainer,{filter:fo.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:bo}):function(e,t,n){if(oo(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(to));return t&&ro.call(e,to)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,fo.bind(null,t)),vo(n)};const yo=e["useInsertionEffect".toString()]||(e=>e());function wo(t){const n=e.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return yo((()=>{n.current=t})),e.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}const Co="ArrowUp",Eo="ArrowDown",Io="ArrowLeft",Ao="ArrowRight";function ko(e,t,n){return Math.floor(e/t)!==n}function Mo(e,t){return t<0||t>=e.current.length}function Ho(e,t){return Vo(e,{disabledIndices:t})}function No(e,t){return Vo(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Vo(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:i,amount:o=1}=void 0===t?{}:t;const a=e.current,l=i?e=>i.includes(e):e=>{const t=a[e];return null==t||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")};let s=n;do{s+=r?-o:o}while(s>=0&&s<=a.length-1&&l(s));return s}let Zo=0;function Do(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Zo);const o=()=>null==e?void 0:e.focus({preventScroll:n});i?o():Zo=requestAnimationFrame(o)}var Lo="undefined"!=typeof document?u:o;function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oo.apply(this,arguments)}let Ro=!1,So=0;const To=()=>"floating-ui-"+So++;const $o=e["useId".toString()]||function(){const[t,n]=e.useState((()=>Ro?To():void 0));return Lo((()=>{null==t&&n(To())}),[]),e.useEffect((()=>{Ro||(Ro=!0)}),[]),t},zo=e.forwardRef((function(t,n){let{context:{placement:r,elements:{floating:i},middlewareData:{arrow:o}},width:a=14,height:l=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:d,stroke:u,d:p,style:{transform:m,...g}={},...h}=t;"production"!==process.env.NODE_ENV&&(n||console.warn("Floating UI: The `ref` prop is required for the `FloatingArrow`","component."));const f=$o();if(!i)return null;c*=2;const b=c/2,v=a/2*(s/-8+1),x=l/2*s/4,[y,w]=r.split("-"),C=Xi.isRTL(i),E=!!p,I="top"===y||"bottom"===y,A=d&&"end"===w?"bottom":"top";let k=d&&"end"===w?"right":"left";d&&C&&(k="end"===w?"left":"right");const M=null!=(null==o?void 0:o.x)?d||o.x:"",H=null!=(null==o?void 0:o.y)?d||o.y:"",N=p||"M0,0 H"+a+" L"+(a-v)+","+(l-x)+" Q"+a/2+","+l+" "+v+","+(l-x)+" Z",V={top:E?"rotate(180deg)":"",left:E?"rotate(90deg)":"rotate(-90deg)",bottom:E?"":"rotate(180deg)",right:E?"rotate(-90deg)":"rotate(90deg)"}[y];return e.createElement("svg",Oo({},h,{"aria-hidden":!0,ref:n,width:E?a:a+c,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[k]:M,[A]:H,[y]:I||E?"100%":"calc(100% - "+c/2+"px)",transform:""+V+(null!=m?m:""),...g}}),c>0&&e.createElement("path",{clipPath:"url(#"+f+")",fill:"none",stroke:u,strokeWidth:c+(p?0:1),d:N}),e.createElement("path",{stroke:c&&!p?h.fill:"none",d:N}),e.createElement("clipPath",{id:f},e.createElement("rect",{x:-b,y:b*(E?-1:1),width:a+c,height:a})))}));function Bo(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const Go=e.createContext(null),Wo=e.createContext(null),Po=()=>{var t;return(null==(t=e.useContext(Go))?void 0:t.id)||null},jo=()=>e.useContext(Wo);function Fo(t){let{children:n,id:r}=t;const i=Po();return e.createElement(Go.Provider,{value:e.useMemo((()=>({id:r,parentId:i})),[r,i])},n)}function Xo(t){let{children:n}=t;const r=e.useRef([]),i=e.useCallback((e=>{r.current=[...r.current,e]}),[]),o=e.useCallback((e=>{r.current=r.current.filter((t=>t!==e))}),[]),a=e.useState((()=>Bo()))[0];return e.createElement(Wo.Provider,{value:e.useMemo((()=>({nodesRef:r,addNode:i,removeNode:o,events:a})),[r,i,o,a])},n)}function Yo(e){return"data-floating-ui-"+e}function Jo(e){const t=i(e);return Lo((()=>{t.current=e})),t}const Uo=Yo("safe-polygon");function Qo(e,t,n){return n&&!Qr(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function _o(t,n){void 0===n&&(n={});const{open:r,onOpenChange:i,dataRef:o,events:a,elements:{domReference:l,floating:s},refs:c}=t,{enabled:d=!0,delay:u=0,handleClose:p=null,mouseOnly:m=!1,restMs:g=0,move:h=!0}=n,f=jo(),b=Po(),v=Jo(p),x=Jo(u),y=e.useRef(),w=e.useRef(),C=e.useRef(),E=e.useRef(),I=e.useRef(!0),A=e.useRef(!1),k=e.useRef((()=>{})),M=e.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);e.useEffect((()=>{if(d)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(E.current),I.current=!0)}}),[d,a]),e.useEffect((()=>{if(!d||!v.current||!r)return;function e(e){M()&&i(!1,e,"hover")}const t=_r(s).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[s,r,i,d,v,o,M]);const H=e.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=Qo(x.current,"close",y.current);r&&!C.current?(clearTimeout(w.current),w.current=setTimeout((()=>i(!1,e,n)),r)):t&&(clearTimeout(w.current),i(!1,e,n))}),[x,i]),N=e.useCallback((()=>{k.current(),C.current=void 0}),[]),V=e.useCallback((()=>{if(A.current){const e=_r(c.floating.current).body;e.style.pointerEvents="",e.removeAttribute(Uo),A.current=!1}}),[c]);return e.useEffect((()=>{if(d&&Vr(l)){const e=l;return r&&e.addEventListener("mouseleave",c),null==s||s.addEventListener("mouseleave",c),h&&e.addEventListener("mousemove",n,{once:!0}),e.addEventListener("mouseenter",n),e.addEventListener("mouseleave",a),()=>{r&&e.removeEventListener("mouseleave",c),null==s||s.removeEventListener("mouseleave",c),h&&e.removeEventListener("mousemove",n),e.removeEventListener("mouseenter",n),e.removeEventListener("mouseleave",a)}}function e(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function n(e){if(clearTimeout(w.current),I.current=!1,m&&!Qr(y.current)||g>0&&0===Qo(x.current,"open"))return;const t=Qo(x.current,"open",y.current);t?w.current=setTimeout((()=>{i(!0,e,"hover")}),t):i(!0,e,"hover")}function a(n){if(e())return;k.current();const i=_r(s);if(clearTimeout(E.current),v.current){r||clearTimeout(w.current),C.current=v.current({...t,tree:f,x:n.clientX,y:n.clientY,onClose(){V(),N(),H(n,!0,"safe-polygon")}});const e=C.current;return i.addEventListener("mousemove",e),void(k.current=()=>{i.removeEventListener("mousemove",e)})}("touch"!==y.current||!jr(s,n.relatedTarget))&&H(n)}function c(n){e()||null==v.current||v.current({...t,tree:f,x:n.clientX,y:n.clientY,onClose(){V(),N(),H(n)}})(n)}}),[l,s,d,t,m,g,h,H,N,V,i,r,f,x,v,o]),Lo((()=>{var e;if(d&&r&&null!=(e=v.current)&&e.__options.blockPointerEvents&&M()){const e=_r(s).body;if(e.setAttribute(Uo,""),e.style.pointerEvents="none",A.current=!0,Vr(l)&&s){var t,n;const e=l,r=null==f||null==(t=f.nodesRef.current.find((e=>e.id===b)))||null==(n=t.context)?void 0:n.elements.floating;return r&&(r.style.pointerEvents=""),e.style.pointerEvents="auto",s.style.pointerEvents="auto",()=>{e.style.pointerEvents="",s.style.pointerEvents=""}}}}),[d,r,b,s,l,f,v,o,M]),Lo((()=>{r||(y.current=void 0,N(),V())}),[r,N,V]),e.useEffect((()=>()=>{N(),clearTimeout(w.current),clearTimeout(E.current),V()}),[d,l,N,V]),e.useMemo((()=>{if(!d)return{};function e(e){y.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){r||0===g||(clearTimeout(E.current),E.current=setTimeout((()=>{I.current||i(!0,e.nativeEvent,"hover")}),g))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){H(e.nativeEvent,!1)}}}}),[d,g,r,i,H])}const Ko=e.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),qo=t=>{let{children:n,delay:r,timeoutMs:i=0}=t;const[o,a]=e.useReducer(((e,t)=>({...e,...t})),{delay:r,timeoutMs:i,initialDelay:r,currentId:null,isInstantPhase:!1}),l=e.useRef(null),s=e.useCallback((e=>{a({currentId:e})}),[]);return Lo((()=>{o.currentId?null===l.current?l.current=o.currentId:a({isInstantPhase:!0}):(a({isInstantPhase:!1}),l.current=null)}),[o.currentId]),e.createElement(Ko.Provider,{value:e.useMemo((()=>({...o,setState:a,setCurrentId:s})),[o,a,s])},n)};function ea(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let ta=new WeakMap,na=new WeakSet,ra={},ia=0;const oa=e=>e&&(e.host||oa(e.parentNode)),aa=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=oa(t);return e.contains(n)?n:null})).filter((e=>null!=e));function la(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=_r(e[0]).body;return function(e,t,n,r){const i="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,a=aa(t,e),l=new Set,s=new Set(a),c=[];ra[i]||(ra[i]=new WeakMap);const d=ra[i];return a.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!s.has(t)&&Array.prototype.forEach.call(t.children,(t=>{if(l.has(t))e(t);else{const e=o?t.getAttribute(o):null,n=null!==e&&"false"!==e,r=(ta.get(t)||0)+1,a=(d.get(t)||0)+1;ta.set(t,r),d.set(t,a),c.push(t),1===r&&n&&na.add(t),1===a&&t.setAttribute(i,""),!n&&o&&t.setAttribute(o,"true")}}))}(t),l.clear(),ia++,()=>{c.forEach((e=>{const t=(ta.get(e)||0)-1,n=(d.get(e)||0)-1;ta.set(e,t),d.set(e,n),t||(!na.has(e)&&o&&e.removeAttribute(o),na.delete(e)),n||e.removeAttribute(i)})),ia--,ia||(ta=new WeakMap,ta=new WeakMap,na=new WeakSet,ra={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const sa=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ca(e,t){const n=xo(e,sa());"prev"===t&&n.reverse();const r=n.indexOf(Pr(_r(e)));return n.slice(r+1)[0]}function da(){return ca(document.body,"next")}function ua(){return ca(document.body,"prev")}function pa(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!jr(n,r)}function ma(e){xo(e,sa()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function ga(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const ha={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function fa(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const ba=e.forwardRef((function(t,n){const[r,i]=e.useState();Lo((()=>(Jr()&&i("button"),document.addEventListener("keydown",fa),()=>{document.removeEventListener("keydown",fa)})),[]);const o={ref:n,tabIndex:0,role:r,"aria-hidden":!r||void 0,[Yo("focus-guard")]:"",style:ha};return e.createElement("span",Oo({},t,o))})),va=e.createContext(null);function xa(t){let{children:n,id:r,root:i=null,preserveTabOrder:o=!0}=t;const a=function(t){let{id:n,root:r}=void 0===t?{}:t;const[i,o]=e.useState(null),a=$o(),l=ya(),s=e.useMemo((()=>({id:n,root:r,portalContext:l,uniqueId:a})),[n,r,l,a]),c=e.useRef();return Lo((()=>()=>{null==i||i.remove()}),[i,s]),Lo((()=>{if(c.current===s)return;c.current=s;const{id:e,root:t,portalContext:n,uniqueId:r}=s,i=e?document.getElementById(e):null,a=Yo("portal");if(i){const e=document.createElement("div");e.id=r,e.setAttribute(a,""),i.appendChild(e),o(e)}else{let i=t||(null==n?void 0:n.portalNode);i&&!Vr(i)&&(i=i.current),i=i||document.body;let l=null;e&&(l=document.createElement("div"),l.id=e,i.appendChild(l));const s=document.createElement("div");s.id=r,s.setAttribute(a,""),i=l||i,i.appendChild(s),o(s)}}),[s]),i}({id:r,root:i}),[l,s]=e.useState(null),c=e.useRef(null),d=e.useRef(null),u=e.useRef(null),p=e.useRef(null),m=!!l&&!l.modal&&l.open&&o&&!(!i&&!a);return e.useEffect((()=>{if(a&&o&&(null==l||!l.modal))return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){if(a&&pa(e)){("focusin"===e.type?ga:ma)(a)}}}),[a,o,null==l?void 0:l.modal]),e.createElement(va.Provider,{value:e.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:d,beforeInsideRef:u,afterInsideRef:p,portalNode:a,setFocusManagerState:s})),[o,a])},m&&a&&e.createElement(ba,{"data-type":"outside",ref:c,onFocus:e=>{if(pa(e,a)){var t;null==(t=u.current)||t.focus()}else{const e=ua()||(null==l?void 0:l.refs.domReference.current);null==e||e.focus()}}}),m&&a&&e.createElement("span",{"aria-owns":a.id,style:ha}),a&&A(n,a),m&&a&&e.createElement(ba,{"data-type":"outside",ref:d,onFocus:e=>{if(pa(e,a)){var t;null==(t=p.current)||t.focus()}else{const t=da()||(null==l?void 0:l.refs.domReference.current);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent))}}}))}const ya=()=>e.useContext(va),wa=e.forwardRef((function(t,n){return e.createElement("button",Oo({},t,{type:"button",ref:n,tabIndex:-1,style:ha}))}));function Ca(t){const{context:n,children:r,disabled:i=!1,order:o=["content"],guards:a=!0,initialFocus:l=0,returnFocus:s=!0,modal:c=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:u=!0}=t,{open:p,refs:m,nodeId:g,onOpenChange:h,events:f,dataRef:b,elements:{domReference:v,floating:x}}=n,y="number"==typeof l&&l<0,w="combobox"===(null==v?void 0:v.getAttribute("role"))&&ti(v)&&y,C=!w&&c,E="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||a,I=Jo(o),A=Jo(l),k=Jo(s),M=jo(),H=ya(),N=e.useRef(null),V=e.useRef(null),Z=e.useRef(!1),D=e.useRef(null),L=e.useRef(!1),O=null!=H,R=e.useCallback((function(e){return void 0===e&&(e=x),e?xo(e,sa()):[]}),[x]),S=e.useCallback((e=>{const t=R(e);return I.current.map((e=>v&&"reference"===e?v:x&&"floating"===e?x:t)).filter(Boolean).flat()}),[v,x,I,R]);function T(t){return!i&&d&&C?e.createElement(wa,{ref:"start"===t?N:V,onClick:e=>h(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}e.useEffect((()=>{if(i||!C)return;function e(e){if("Tab"===e.key){jr(x,Pr(_r(x)))&&0===R().length&&!w&&ni(e);const t=S(),n=qr(e);"reference"===I.current[0]&&n===v&&(ni(e),e.shiftKey?Do(t[t.length-1]):Do(t[1])),"floating"===I.current[1]&&n===x&&e.shiftKey&&(ni(e),Do(t[0]))}}const t=_r(x);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[i,v,x,C,I,m,w,R,S]),e.useEffect((()=>{if(!i&&u)return x&&Zr(v)?(v.addEventListener("focusout",t),v.addEventListener("pointerdown",e),!C&&x.addEventListener("focusout",t),()=>{v.removeEventListener("focusout",t),v.removeEventListener("pointerdown",e),!C&&x.removeEventListener("focusout",t)}):void 0;function e(){L.current=!0,setTimeout((()=>{L.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(jr(v,t)||jr(x,t)||jr(t,x)||jr(null==H?void 0:H.portalNode,t)||null!=t&&t.hasAttribute(Yo("focus-guard"))||M&&(ea(M.nodesRef.current,g).find((e=>{var n,r;return jr(null==(n=e.context)?void 0:n.elements.floating,t)||jr(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],i=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;i;){const t=e.find((e=>e.id===i));i=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(M.nodesRef.current,g).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));t&&n&&!L.current&&t!==D.current&&(Z.current=!0,h(!1,e))}))}}),[i,v,x,C,g,M,H,h,u]),e.useEffect((()=>{var e;if(i)return;const t=Array.from((null==H||null==(e=H.portalNode)?void 0:e.querySelectorAll("["+Yo("portal")+"]"))||[]);if(x){const e=[x,...t,N.current,V.current,I.current.includes("reference")||w?v:null].filter((e=>null!=e)),n=c||w?la(e,E,!E):la(e);return()=>{n()}}}),[i,v,x,c,I,H,w,E]),Lo((()=>{if(i||!x)return;const e=Pr(_r(x));queueMicrotask((()=>{const t=S(x),n=A.current,r=("number"==typeof n?t[n]:n.current)||x,i=jr(x,e);y||i||!p||Do(r,{preventScroll:r===x})}))}),[i,p,x,y,S,A]),Lo((()=>{if(i||!x)return;let e=!1;const t=_r(x),n=Pr(t),r=b.current;function o(t){let{reason:n,event:r,nested:i}=t;"escape-key"===n&&m.domReference.current&&(D.current=m.domReference.current),"hover"===n&&"mouseleave"===r.type&&(Z.current=!0),"outside-press"===n&&(i?(Z.current=!1,e=!0):Z.current=!(Xr(r)||Yr(r)))}return D.current=n,f.on("openchange",o),()=>{f.off("openchange",o);const i=Pr(t),a=jr(x,i)||M&&ea(M.nodesRef.current,g).some((e=>{var t;return jr(null==(t=e.context)?void 0:t.elements.floating,i)}));(a||r.openEvent&&["click","mousedown"].includes(r.openEvent.type))&&m.domReference.current&&(D.current=m.domReference.current),k.current&&Zr(D.current)&&!Z.current&&(n===i||i===t.body||a)&&Do(D.current,{cancelPrevious:!1,preventScroll:e})}}),[i,x,k,b,m,f,M,g]),Lo((()=>{if(!i&&H)return H.setFocusManagerState({modal:C,closeOnFocusOut:u,open:p,onOpenChange:h,refs:m}),()=>{H.setFocusManagerState(null)}}),[i,H,C,p,h,m,u]),Lo((()=>{if(i||!x||"function"!=typeof MutationObserver||y)return;const e=()=>{const e=x.getAttribute("tabindex");I.current.includes("floating")||Pr(_r(x))!==m.domReference.current&&0===R().length?"0"!==e&&x.setAttribute("tabindex","0"):"-1"!==e&&x.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(x,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[i,x,m,I,R,y]);const $=!i&&E&&(O||C);return e.createElement(e.Fragment,null,$&&e.createElement(ba,{"data-type":"inside",ref:null==H?void 0:H.beforeInsideRef,onFocus:e=>{if(C){const e=S();Do("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=H&&H.preserveTabOrder&&H.portalNode)if(Z.current=!1,pa(e,H.portalNode)){const e=da()||v;null==e||e.focus()}else{var t;null==(t=H.beforeOutsideRef.current)||t.focus()}}}),!w&&T("start"),r,T("end"),$&&e.createElement(ba,{"data-type":"inside",ref:null==H?void 0:H.afterInsideRef,onFocus:e=>{if(C)Do(S()[0]);else if(null!=H&&H.preserveTabOrder&&H.portalNode)if(u&&(Z.current=!0),pa(e,H.portalNode)){const e=ua()||v;null==e||e.focus()}else{var t;null==(t=H.afterOutsideRef.current)||t.focus()}}}))}function Ea(e){return Zr(e.target)&&"BUTTON"===e.target.tagName}function Ia(e){return ti(e)}const Aa={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ka={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ma=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Ha(t,n){void 0===n&&(n={});const{open:r,onOpenChange:i,nodeId:o,elements:{reference:a,domReference:l,floating:s},dataRef:c}=t,{enabled:d=!0,escapeKey:u=!0,outsidePress:p=!0,outsidePressEvent:m="pointerdown",referencePress:g=!1,referencePressEvent:h="pointerdown",ancestorScroll:f=!1,bubbles:b,capture:v}=n,x=jo(),y=wo("function"==typeof p?p:()=>!1),w="function"==typeof p?y:p,C=e.useRef(!1),E=e.useRef(!1),{escapeKey:I,outsidePress:A}=Ma(b),{escapeKey:k,outsidePress:M}=Ma(v),H=wo((e=>{if(!r||!d||!u||"Escape"!==e.key)return;const t=x?ea(x.nodesRef.current,o):[];if(!I&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}i(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),N=wo((e=>{var t;const n=()=>{var t;H(e),null==(t=qr(e))||t.removeEventListener("keydown",n)};null==(t=qr(e))||t.addEventListener("keydown",n)})),V=wo((e=>{const t=C.current;C.current=!1;const n=E.current;if(E.current=!1,"click"===m&&n)return;if(t)return;if("function"==typeof w&&!w(e))return;const r=qr(e),a="["+Yo("inert")+"]",c=_r(s).querySelectorAll(a);let d=Vr(r)?r:null;for(;d&&!Tr(d);){const e=Br(d);if(e===_r(s).body||!Vr(e))break;d=e}if(c.length&&Vr(r)&&!r.matches("html,body")&&!jr(r,s)&&Array.from(c).every((e=>!jr(d,e))))return;if(Zr(r)&&s){const t=r.clientWidth>0&&r.scrollWidth>r.clientWidth,n=r.clientHeight>0&&r.scrollHeight>r.clientHeight;let i=n&&e.offsetX>r.clientWidth;if(n){"rtl"===$r(r).direction&&(i=e.offsetX<=r.offsetWidth-r.clientWidth)}if(i||t&&e.offsetY>r.clientHeight)return}const u=x&&ea(x.nodesRef.current,o).some((t=>{var n;return Kr(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Kr(e,s)||Kr(e,l)||u)return;const p=x?ea(x.nodesRef.current,o):[];if(p.length>0){let e=!0;if(p.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}i(!1,e,"outside-press")})),Z=wo((e=>{var t;const n=()=>{var t;V(e),null==(t=qr(e))||t.removeEventListener(m,n)};null==(t=qr(e))||t.addEventListener(m,n)}));return e.useEffect((()=>{if(!r||!d)return;function e(e){i(!1,e,"ancestor-scroll")}c.current.__escapeKeyBubbles=I,c.current.__outsidePressBubbles=A;const t=_r(s);u&&t.addEventListener("keydown",k?N:H,k),w&&t.addEventListener(m,M?Z:V,M);let n=[];return f&&(Vr(l)&&(n=Wr(l)),Vr(s)&&(n=n.concat(Wr(s))),!Vr(a)&&a&&a.contextElement&&(n=n.concat(Wr(a.contextElement)))),n=n.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),n.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{u&&t.removeEventListener("keydown",k?N:H,k),w&&t.removeEventListener(m,M?Z:V,M),n.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[c,s,l,a,u,w,m,r,i,f,d,I,A,H,k,N,V,M,Z]),e.useEffect((()=>{C.current=!1}),[w,m]),e.useMemo((()=>d?{reference:{onKeyDown:H,[Aa[h]]:e=>{g&&i(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:H,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[ka[m]]:()=>{C.current=!0}}}:{}),[d,g,m,h,i,H])}let Na;function Va(t){var n;void 0===t&&(t={});const{open:r=!1,onOpenChange:i,nodeId:o}=t;if("production"!==process.env.NODE_ENV){var a;const e="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";var l,s;if(null!=(a=t.elements)&&a.reference&&!Vr(t.elements.reference))if(null==(l=Na)||!l.has(e))null==(s=Na)||s.add(e),console.error(e)}const[c,d]=e.useState(null),u=(null==(n=t.elements)?void 0:n.reference)||c,p=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:c,open:d}=t,[u,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,g]=e.useState(i);_i(m,i)||g(i);const[h,f]=e.useState(null),[b,v]=e.useState(null),x=e.useCallback((e=>{e!=I.current&&(I.current=e,f(e))}),[f]),y=e.useCallback((e=>{e!==A.current&&(A.current=e,v(e))}),[v]),w=a||h,C=l||b,I=e.useRef(null),A=e.useRef(null),k=e.useRef(u),M=eo(c),H=eo(o),N=e.useCallback((()=>{if(!I.current||!A.current)return;const e={placement:n,strategy:r,middleware:m};H.current&&(e.platform=H.current),Ji(I.current,A.current,e).then((e=>{const t={...e,isPositioned:!0};V.current&&!_i(k.current,t)&&(k.current=t,E.flushSync((()=>{p(t)})))}))}),[m,n,r,H]);Qi((()=>{!1===d&&k.current.isPositioned&&(k.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const V=e.useRef(!1);Qi((()=>(V.current=!0,()=>{V.current=!1})),[]),Qi((()=>{if(w&&(I.current=w),C&&(A.current=C),w&&C){if(M.current)return M.current(w,C,N);N()}}),[w,C,N,M]);const Z=e.useMemo((()=>({reference:I,floating:A,setReference:x,setFloating:y})),[x,y]),D=e.useMemo((()=>({reference:w,floating:C})),[w,C]),L=e.useMemo((()=>{const e={position:r,left:0,top:0};if(!D.floating)return e;const t=qi(D.floating,u.x),n=qi(D.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...Ki(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,s,D.floating,u.x,u.y]);return e.useMemo((()=>({...u,update:N,refs:Z,elements:D,floatingStyles:L})),[u,N,Z,D,L])}(t),m=jo(),g=null!=Po(),h=wo(((e,t,n)=>{e&&(b.current.openEvent=t),v.emit("openchange",{open:e,event:t,reason:n,nested:g}),null==i||i(e,t,n)})),f=e.useRef(null),b=e.useRef({}),v=e.useState((()=>Bo()))[0],x=$o(),y=e.useCallback((e=>{const t=Vr(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;p.refs.setReference(t)}),[p.refs]),w=e.useCallback((e=>{(Vr(e)||null===e)&&(f.current=e,d(e)),(Vr(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Vr(e))&&p.refs.setReference(e)}),[p.refs]),C=e.useMemo((()=>({...p.refs,setReference:w,setPositionReference:y,domReference:f})),[p.refs,w,y]),I=e.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),A=e.useMemo((()=>({...p,refs:C,elements:I,dataRef:b,nodeId:o,floatingId:x,events:v,open:r,onOpenChange:h})),[p,o,x,v,r,h,C,I]);return Lo((()=>{const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===o));e&&(e.context=A)})),e.useMemo((()=>({...p,context:A,refs:C,elements:I})),[p,C,I,A])}function Za(e,t,n){const r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map((e=>e?e[n]:null)).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var o;0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(o=r.get(n))||o.push(i),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map((e=>e(...i))).find((e=>void 0!==e))})):e[n]=i})),e):e),{})}}function Da(t){void 0===t&&(t=[]);const n=t,r=e.useCallback((e=>Za(e,t,"reference")),n),i=e.useCallback((e=>Za(e,t,"floating")),n),o=e.useCallback((e=>Za(e,t,"item")),t.map((e=>null==e?void 0:e.item)));return e.useMemo((()=>({getReferenceProps:r,getFloatingProps:i,getItemProps:o})),[r,i,o])}"production"!==process.env.NODE_ENV&&(Na=new Set);let La=!1;function Oa(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Ra(e,t){return Oa(t,e===Co||e===Eo,e===Io||e===Ao)}function Sa(e,t,n){return Oa(t,e===Eo,n?e===Io:e===Ao)||"Enter"===e||" "==e||""===e}function Ta(e,t,n){return Oa(t,n?e===Ao:e===Io,e===Co)}function $a(t,n){const{open:r,onOpenChange:i,refs:o,elements:{domReference:a,floating:l}}=t,{listRef:s,activeIndex:c,onNavigate:d=(()=>{}),enabled:u=!0,selectedIndex:p=null,allowEscape:m=!1,loop:g=!1,nested:h=!1,rtl:f=!1,virtual:b=!1,focusItemOnOpen:v="auto",focusItemOnHover:x=!0,openOnArrowKeyDown:y=!0,disabledIndices:w,orientation:C="vertical",cols:E=1,scrollItemIntoView:I=!0,virtualItemRef:A}=n;"production"!==process.env.NODE_ENV&&(m&&(g||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),b||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),"vertical"===C&&E>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const k=Po(),M=jo(),H=wo(d),N=e.useRef(v),V=e.useRef(null!=p?p:-1),Z=e.useRef(null),D=e.useRef(!0),L=e.useRef(H),O=e.useRef(!!l),R=e.useRef(!1),S=e.useRef(!1),T=Jo(w),$=Jo(r),z=Jo(I),[B,G]=e.useState(),[W,P]=e.useState(),j=wo((function(e,t,n){void 0===n&&(n=!1);const r=e.current[t.current];r&&(b?(G(r.id),null==M||M.events.emit("virtualfocus",r),A&&(A.current=r)):Do(r,{preventScroll:!0,sync:!(!Fr().toLowerCase().startsWith("mac")||navigator.maxTouchPoints||!Jr())&&(La||R.current)}),requestAnimationFrame((()=>{const e=z.current;e&&r&&(n||!D.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))})))}));Lo((()=>{document.createElement("div").focus({get preventScroll(){return La=!0,!1}})}),[]),Lo((()=>{u&&(r&&l?N.current&&null!=p&&(S.current=!0,H(p)):O.current&&(V.current=-1,L.current(null)))}),[u,r,l,p,H]),Lo((()=>{if(u&&r&&l)if(null==c){if(R.current=!1,null!=p)return;if(O.current&&(V.current=-1,j(s,V)),!O.current&&N.current&&(null!=Z.current||!0===N.current&&null==Z.current)){let e=0;const t=()=>{if(null==s.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else V.current=null==Z.current||Sa(Z.current,C,f)||h?Ho(s,T.current):No(s,T.current),Z.current=null,H(V.current)};t()}}else Mo(s,c)||(V.current=c,j(s,V,S.current),S.current=!1)}),[u,r,l,c,p,h,s,C,f,H,j,T]),Lo((()=>{var e,t;if(!u||l||!M||b||!O.current)return;const n=M.nodesRef.current,r=null==(e=n.find((e=>e.id===k)))||null==(t=e.context)?void 0:t.elements.floating,i=Pr(_r(l)),o=n.some((e=>e.context&&jr(e.context.elements.floating,i)));r&&!o&&D.current&&r.focus({preventScroll:!0})}),[u,l,M,k,b]),Lo((()=>{if(u&&M&&b&&!k)return M.events.on("virtualfocus",e),()=>{M.events.off("virtualfocus",e)};function e(e){P(e.id),A&&(A.current=e)}}),[u,M,b,k,A]),Lo((()=>{L.current=H,O.current=!!l})),Lo((()=>{r||(Z.current=null)}),[r]);const F=null!=c,X=e.useMemo((()=>{function e(e){if(!r)return;const t=s.current.indexOf(e);-1!==t&&H(t)}const t={onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...x&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;D.current&&"touch"!==t&&(V.current=-1,j(s,V),H(null),b||Do(o.floating.current,{preventScroll:!0}))}}};return t}),[r,o,j,x,s,H,b]);return e.useMemo((()=>{if(!u)return{};const e=T.current;function t(t){if(D.current=!1,R.current=!0,!$.current&&t.currentTarget===o.floating.current)return;if(h&&Ta(t.key,C,f))return ni(t),i(!1,t.nativeEvent,"list-navigation"),void(Zr(a)&&!b&&a.focus());const n=V.current,l=Ho(s,e),c=No(s,e);if("Home"===t.key&&(ni(t),V.current=l,H(V.current)),"End"===t.key&&(ni(t),V.current=c,H(V.current)),!(E>1&&(V.current=function(e,t){let{event:n,orientation:r,loop:i,cols:o,disabledIndices:a,minIndex:l,maxIndex:s,prevIndex:c,stopEvent:d=!1}=t,u=c;if(n.key===Co){if(d&&ni(n),-1===c)u=s;else if(u=Vo(e,{startingIndex:u,amount:o,decrement:!0,disabledIndices:a}),i&&(c-o<l||u<0)){const e=c%o,t=s%o,n=s-(t-e);u=t===e?s:t>e?n:n-o}Mo(e,u)&&(u=c)}if(n.key===Eo&&(d&&ni(n),-1===c?u=l:(u=Vo(e,{startingIndex:c,amount:o,disabledIndices:a}),i&&c+o>s&&(u=Vo(e,{startingIndex:c%o-o,amount:o,disabledIndices:a}))),Mo(e,u)&&(u=c)),"both"===r){const t=si(c/o);n.key===Ao&&(d&&ni(n),c%o!=o-1?(u=Vo(e,{startingIndex:c,disabledIndices:a}),i&&ko(u,o,t)&&(u=Vo(e,{startingIndex:c-c%o-1,disabledIndices:a}))):i&&(u=Vo(e,{startingIndex:c-c%o-1,disabledIndices:a})),ko(u,o,t)&&(u=c)),n.key===Io&&(d&&ni(n),c%o!=0?(u=Vo(e,{startingIndex:c,disabledIndices:a,decrement:!0}),i&&ko(u,o,t)&&(u=Vo(e,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:a}))):i&&(u=Vo(e,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:a})),ko(u,o,t)&&(u=c));const r=si(s/o)===t;Mo(e,u)&&(u=i&&r?n.key===Io?s:Vo(e,{startingIndex:c-c%o-1,disabledIndices:a}):c)}return u}(s,{event:t,orientation:C,loop:g,cols:E,disabledIndices:e,minIndex:l,maxIndex:c,prevIndex:V.current,stopEvent:!0}),H(V.current),"both"===C))&&Ra(t.key,C)){if(ni(t),r&&!b&&Pr(t.currentTarget.ownerDocument)===t.currentTarget)return V.current=Sa(t.key,C,f)?l:c,void H(V.current);Sa(t.key,C,f)?V.current=g?n>=c?m&&n!==s.current.length?-1:l:Vo(s,{startingIndex:n,disabledIndices:e}):Math.min(c,Vo(s,{startingIndex:n,disabledIndices:e})):V.current=g?n<=l?m&&-1!==n?s.current.length:c:Vo(s,{startingIndex:n,decrement:!0,disabledIndices:e}):Math.max(l,Vo(s,{startingIndex:n,decrement:!0,disabledIndices:e})),Mo(s,V.current)?H(null):H(V.current)}}function n(e){"auto"===v&&Xr(e.nativeEvent)&&(N.current=!0)}const l=b&&r&&F&&{"aria-activedescendant":W||B},c=s.current.find((e=>(null==e?void 0:e.id)===B));return{reference:{...l,onKeyDown(n){D.current=!1;const o=0===n.key.indexOf("Arrow"),a=function(e,t,n){return Oa(t,n?e===Io:e===Ao,e===Eo)}(n.key,C,f),l=Ta(n.key,C,f),d=Ra(n.key,C),u=(h?a:d)||"Enter"===n.key||""===n.key.trim();if(b&&r){const e=null==M?void 0:M.nodesRef.current.find((e=>null==e.parentId)),r=M&&e?function(e,t){let n,r=-1;return function t(i,o){o>r&&(n=i,r=o),ea(e,i).forEach((e=>{t(e.id,o+1)}))}(t,0),e.find((e=>e.id===n))}(M.nodesRef.current,e.id):null;if(o&&r&&A){const e=new KeyboardEvent("keydown",{key:n.key,bubbles:!0});if(a||l){var m,g;const t=(null==(m=r.context)?void 0:m.elements.domReference)===n.currentTarget,i=l&&!t?null==(g=r.context)?void 0:g.elements.domReference:a?c:null;i&&(ni(n),i.dispatchEvent(e),P(void 0))}var v;if(d&&r.context)if(r.context.open&&r.parentId&&n.currentTarget!==r.context.elements.domReference)return ni(n),void(null==(v=r.context.elements.domReference)||v.dispatchEvent(e))}return t(n)}(r||y||!o)&&(u&&(Z.current=h&&d?null:n.key),h?a&&(ni(n),r?(V.current=Ho(s,e),H(V.current)):i(!0,n.nativeEvent,"list-navigation")):d&&(null!=p&&(V.current=p),ni(n),!r&&y?i(!0,n.nativeEvent,"list-navigation"):t(n),r&&H(V.current)))},onFocus(){r&&H(null)},onPointerDown:function(e){N.current=v,"auto"===v&&Yr(e.nativeEvent)&&(N.current=!0)},onMouseDown:n,onClick:n},floating:{"aria-orientation":"both"===C?void 0:C,...l,onKeyDown:t,onPointerMove(){D.current=!0}},item:X}}),[a,o,B,W,T,$,s,u,C,f,b,r,F,h,p,y,m,E,g,v,H,i,X,M,A])}function za(t,n){void 0===n&&(n={});const{open:r,floatingId:i}=t,{enabled:o=!0,role:a="dialog"}=n,l=$o();return e.useMemo((()=>{if(!o)return{};const e={id:i,..."label"!==a&&{role:a}};return"tooltip"===a||"label"===a?{reference:{["aria-"+("label"===a?"labelledby":"describedby")]:r?i:void 0},floating:e}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===a?"dialog":a,"aria-controls":r?i:void 0,..."listbox"===a&&{role:"combobox"},..."menu"===a&&{id:l}},floating:{...e,..."menu"===a&&{"aria-labelledby":l}}}}),[o,a,r,i,l])}function Ba(e,t){const[n,r]=e;let i=!1;const o=t.length;for(let e=0,a=o-1;e<o;a=e++){const[o,l]=t[e]||[0,0],[s,c]=t[a]||[0,0];l>=r!=c>=r&&n<=(s-o)*(r-l)/(c-l)+o&&(i=!i)}return i}function Ga(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let i,o=!1,a=null,l=null,s=performance.now();const c=e=>{let{x:n,y:c,placement:d,elements:u,onClose:p,nodeId:m,tree:g}=e;return function(e){function h(){clearTimeout(i),p()}if(clearTimeout(i),!u.domReference||!u.floating||null==d||null==n||null==c)return;const{clientX:f,clientY:b}=e,v=[f,b],x=qr(e),y="mouseleave"===e.type,w=jr(u.floating,x),C=jr(u.domReference,x),E=u.domReference.getBoundingClientRect(),I=u.floating.getBoundingClientRect(),A=d.split("-")[0],k=n>I.right-I.width/2,M=c>I.bottom-I.height/2,H=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(v,E),N=I.width>E.width,V=I.height>E.height,Z=(N?E:I).left,D=(N?E:I).right,L=(V?E:I).top,O=(V?E:I).bottom;if(w&&(o=!0,!y))return;if(C&&(o=!1),C&&!y)return void(o=!0);if(y&&Vr(e.relatedTarget)&&jr(u.floating,e.relatedTarget))return;if(g&&ea(g.nodesRef.current,m).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===A&&c>=E.bottom-1||"bottom"===A&&c<=E.top+1||"left"===A&&n>=E.right-1||"right"===A&&n<=E.left+1)return h();let R=[];switch(A){case"top":R=[[Z,E.top+1],[Z,I.bottom-1],[D,I.bottom-1],[D,E.top+1]];break;case"bottom":R=[[Z,I.top+1],[Z,E.bottom-1],[D,E.bottom-1],[D,I.top+1]];break;case"left":R=[[I.right-1,O],[I.right-1,L],[E.left+1,L],[E.left+1,O]];break;case"right":R=[[E.right-1,O],[E.right-1,L],[I.left+1,L],[I.left+1,O]]}if(!Ba([f,b],R)){if(o&&!H)return h();if(!y&&r){const t=function(e,t){const n=performance.now(),r=n-s;if(null===a||null===l||0===r)return a=e,l=t,s=n,null;const i=e-a,o=t-l,c=Math.sqrt(i*i+o*o);return a=e,l=t,s=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}Ba([f,b],function(e){let[n,r]=e;switch(A){case"top":return[[N?n+t/2:k?n+4*t:n-4*t,r+t+1],[N?n-t/2:k?n+4*t:n-4*t,r+t+1],...[[I.left,k||N?I.bottom-t:I.top],[I.right,k?N?I.bottom-t:I.top:I.bottom-t]]];case"bottom":return[[N?n+t/2:k?n+4*t:n-4*t,r-t],[N?n-t/2:k?n+4*t:n-4*t,r-t],...[[I.left,k||N?I.top+t:I.bottom],[I.right,k?N?I.top+t:I.bottom:I.top+t]]];case"left":{const e=[n+t+1,V?r+t/2:M?r+4*t:r-4*t],i=[n+t+1,V?r-t/2:M?r+4*t:r-4*t];return[...[[M||V?I.right-t:I.left,I.top],[M?V?I.right-t:I.left:I.right-t,I.bottom]],e,i]}case"right":return[[n-t,V?r+t/2:M?r+4*t:r-4*t],[n-t,V?r-t/2:M?r+4*t:r-4*t],...[[M||V?I.left+t:I.right,I.top],[M?V?I.left+t:I.right:I.left+t,I.bottom]]]}}([n,c]))?!o&&r&&(i=window.setTimeout(h,40)):h()}}};return c.__options={blockPointerEvents:n},c}const Wa=["auto","auto-start","auto-end"],Pa=e=>({placements:p((()=>e.filter((e=>!Wa.includes(e)))),[e]),isAuto:p((()=>e.some((e=>Wa.includes(e)))),[e])}),ja=e.forwardRef((function(t,n){var{isOpen:r=!0,onClose:i,baseElement:o,offset:a=[0,0],positionPriority:l=["auto"],modalProps:s,children:c}=t,d=M(t,["isOpen","onClose","baseElement","offset","positionPriority","modalProps","children"]);const{placements:u,isAuto:p}=Pa(l),{x:m,y:g,refs:h,strategy:f,context:b}=Va({elements:{reference:o},placement:u[0],open:r,middleware:[l.length>0&&!p?Vi({padding:24,fallbackPlacements:u}):Ni(),Zi({mainAxis:a[1],crossAxis:a[0]}),Di({mainAxis:!1})],whileElementsMounted:Yi}),v=za(b),{getFloatingProps:x}=Da([v]),y=Wn(n,h.setFloating);return e.createElement(sr,Object.assign({isOpen:r,backdropProps:{invisible:!0}},s,{onClose:i}),e.createElement(Ca,{context:b,modal:!1,initialFocus:-1},e.createElement(Ar,Object.assign({ref:y,style:{position:f,top:g,left:m}},x(),d),c)))})),Fa=e.forwardRef((function(t,n){var{isOpen:r=!0,baseElement:i=null,contents:o,positionPriority:a=["bottom-start","bottom-end","top-start","top-end"],onClose:l,maxHeight:s="none",menuListProps:c,popoverProps:d}=t,u=M(t,["isOpen","baseElement","contents","positionPriority","onClose","maxHeight","menuListProps","popoverProps"]);return e.createElement(ja,Object.assign({isOpen:r,baseElement:i,positionPriority:a,onClose:l},d),e.createElement(Ir,Object.assign({ref:n,contents:o,maxHeight:s},u,c,{onClick:lr((e=>{l&&l(e,"clickMenuList")}),null==c?void 0:c.onClick)})))})),Xa=v(le)`
|
|
689
|
+
var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),no="undefined"==typeof Element,ro=no?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,io=!no&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},oo=function e(t,n){var r;void 0===n&&(n=!0);var i=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},ao=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!oo(a,!1))if("SLOT"===a.tagName){var l=a.assignedElements(),s=e(l.length?l:a.children,!0,r);r.flatten?i.push.apply(i,s):i.push({scopeParent:a,candidates:s})}else{ro.call(a,to)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),d=!oo(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(c&&d){var u=e(!0===c?a.children:c.children,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:a,candidates:u})}else o.unshift.apply(o,a.children)}}return i},lo=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},so=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!lo(e)?0:e.tabIndex},co=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},uo=function(e){return"INPUT"===e.tagName},po=function(e){return function(e){return uo(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||io(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){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",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},mo=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},go=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=ro.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ro.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return mo(e)}else{if("function"==typeof r){for(var o=e;e;){var a=e.parentElement,l=io(e);if(a&&!a.shadowRoot&&!0===r(a))return mo(e);e=e.assignedSlot?e.assignedSlot:a||l===e.ownerDocument?a:l.host}e=o}if(function(e){var t,n,r,i,o=e&&io(e),a=null===(t=o)||void 0===t?void 0:t.host,l=!1;if(o&&o!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!l&&a;){var s,c,d;l=!(null===(c=a=null===(s=o=io(a))||void 0===s?void 0:s.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},ho=function(e,t){return!(t.disabled||oo(t)||function(e){return uo(e)&&"hidden"===e.type}(t)||go(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!ro.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},fo=function(e,t){return!(po(t)||so(t)<0||!ho(e,t))},bo=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},vo=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,l=function(e,t){var n=so(e);return n<0&&t&&!lo(e)?0:n}(a,o),s=o?e(t.candidates):a;0===l?o?n.push.apply(n,s):n.push(a):r.push({documentOrder:i,tabIndex:l,item:t,isScope:o,content:s})})),r.sort(co).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},xo=function(e,t){var n;return n=(t=t||{}).getShadowRoot?ao([e],t.includeContainer,{filter:fo.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:bo}):function(e,t,n){if(oo(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(to));return t&&ro.call(e,to)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,fo.bind(null,t)),vo(n)};const yo=e["useInsertionEffect".toString()]||(e=>e());function wo(t){const n=e.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return yo((()=>{n.current=t})),e.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}const Co="ArrowUp",Eo="ArrowDown",Io="ArrowLeft",Ao="ArrowRight";function ko(e,t,n){return Math.floor(e/t)!==n}function Mo(e,t){return t<0||t>=e.current.length}function Ho(e,t){return Vo(e,{disabledIndices:t})}function No(e,t){return Vo(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Vo(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:i,amount:o=1}=void 0===t?{}:t;const a=e.current,l=i?e=>i.includes(e):e=>{const t=a[e];return null==t||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")};let s=n;do{s+=r?-o:o}while(s>=0&&s<=a.length-1&&l(s));return s}let Zo=0;function Do(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Zo);const o=()=>null==e?void 0:e.focus({preventScroll:n});i?o():Zo=requestAnimationFrame(o)}var Lo="undefined"!=typeof document?u:o;function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oo.apply(this,arguments)}let Ro=!1,So=0;const $o=()=>"floating-ui-"+So++;const To=e["useId".toString()]||function(){const[t,n]=e.useState((()=>Ro?$o():void 0));return Lo((()=>{null==t&&n($o())}),[]),e.useEffect((()=>{Ro||(Ro=!0)}),[]),t},zo=e.forwardRef((function(t,n){let{context:{placement:r,elements:{floating:i},middlewareData:{arrow:o}},width:a=14,height:l=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:d,stroke:u,d:p,style:{transform:m,...g}={},...h}=t;"production"!==process.env.NODE_ENV&&(n||console.warn("Floating UI: The `ref` prop is required for the `FloatingArrow`","component."));const f=To();if(!i)return null;c*=2;const b=c/2,v=a/2*(s/-8+1),x=l/2*s/4,[y,w]=r.split("-"),C=Xi.isRTL(i),E=!!p,I="top"===y||"bottom"===y,A=d&&"end"===w?"bottom":"top";let k=d&&"end"===w?"right":"left";d&&C&&(k="end"===w?"left":"right");const M=null!=(null==o?void 0:o.x)?d||o.x:"",H=null!=(null==o?void 0:o.y)?d||o.y:"",N=p||"M0,0 H"+a+" L"+(a-v)+","+(l-x)+" Q"+a/2+","+l+" "+v+","+(l-x)+" Z",V={top:E?"rotate(180deg)":"",left:E?"rotate(90deg)":"rotate(-90deg)",bottom:E?"":"rotate(180deg)",right:E?"rotate(-90deg)":"rotate(90deg)"}[y];return e.createElement("svg",Oo({},h,{"aria-hidden":!0,ref:n,width:E?a:a+c,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[k]:M,[A]:H,[y]:I||E?"100%":"calc(100% - "+c/2+"px)",transform:""+V+(null!=m?m:""),...g}}),c>0&&e.createElement("path",{clipPath:"url(#"+f+")",fill:"none",stroke:u,strokeWidth:c+(p?0:1),d:N}),e.createElement("path",{stroke:c&&!p?h.fill:"none",d:N}),e.createElement("clipPath",{id:f},e.createElement("rect",{x:-b,y:b*(E?-1:1),width:a+c,height:a})))}));function Bo(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const Go=e.createContext(null),Wo=e.createContext(null),Po=()=>{var t;return(null==(t=e.useContext(Go))?void 0:t.id)||null},jo=()=>e.useContext(Wo);function Fo(t){let{children:n,id:r}=t;const i=Po();return e.createElement(Go.Provider,{value:e.useMemo((()=>({id:r,parentId:i})),[r,i])},n)}function Xo(t){let{children:n}=t;const r=e.useRef([]),i=e.useCallback((e=>{r.current=[...r.current,e]}),[]),o=e.useCallback((e=>{r.current=r.current.filter((t=>t!==e))}),[]),a=e.useState((()=>Bo()))[0];return e.createElement(Wo.Provider,{value:e.useMemo((()=>({nodesRef:r,addNode:i,removeNode:o,events:a})),[r,i,o,a])},n)}function Yo(e){return"data-floating-ui-"+e}function Jo(e){const t=i(e);return Lo((()=>{t.current=e})),t}const Uo=Yo("safe-polygon");function Qo(e,t,n){return n&&!Qr(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function _o(t,n){void 0===n&&(n={});const{open:r,onOpenChange:i,dataRef:o,events:a,elements:{domReference:l,floating:s},refs:c}=t,{enabled:d=!0,delay:u=0,handleClose:p=null,mouseOnly:m=!1,restMs:g=0,move:h=!0}=n,f=jo(),b=Po(),v=Jo(p),x=Jo(u),y=e.useRef(),w=e.useRef(),C=e.useRef(),E=e.useRef(),I=e.useRef(!0),A=e.useRef(!1),k=e.useRef((()=>{})),M=e.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);e.useEffect((()=>{if(d)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(E.current),I.current=!0)}}),[d,a]),e.useEffect((()=>{if(!d||!v.current||!r)return;function e(e){M()&&i(!1,e,"hover")}const t=_r(s).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[s,r,i,d,v,o,M]);const H=e.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=Qo(x.current,"close",y.current);r&&!C.current?(clearTimeout(w.current),w.current=setTimeout((()=>i(!1,e,n)),r)):t&&(clearTimeout(w.current),i(!1,e,n))}),[x,i]),N=e.useCallback((()=>{k.current(),C.current=void 0}),[]),V=e.useCallback((()=>{if(A.current){const e=_r(c.floating.current).body;e.style.pointerEvents="",e.removeAttribute(Uo),A.current=!1}}),[c]);return e.useEffect((()=>{if(d&&Vr(l)){const e=l;return r&&e.addEventListener("mouseleave",c),null==s||s.addEventListener("mouseleave",c),h&&e.addEventListener("mousemove",n,{once:!0}),e.addEventListener("mouseenter",n),e.addEventListener("mouseleave",a),()=>{r&&e.removeEventListener("mouseleave",c),null==s||s.removeEventListener("mouseleave",c),h&&e.removeEventListener("mousemove",n),e.removeEventListener("mouseenter",n),e.removeEventListener("mouseleave",a)}}function e(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function n(e){if(clearTimeout(w.current),I.current=!1,m&&!Qr(y.current)||g>0&&0===Qo(x.current,"open"))return;const t=Qo(x.current,"open",y.current);t?w.current=setTimeout((()=>{i(!0,e,"hover")}),t):i(!0,e,"hover")}function a(n){if(e())return;k.current();const i=_r(s);if(clearTimeout(E.current),v.current){r||clearTimeout(w.current),C.current=v.current({...t,tree:f,x:n.clientX,y:n.clientY,onClose(){V(),N(),H(n,!0,"safe-polygon")}});const e=C.current;return i.addEventListener("mousemove",e),void(k.current=()=>{i.removeEventListener("mousemove",e)})}("touch"!==y.current||!jr(s,n.relatedTarget))&&H(n)}function c(n){e()||null==v.current||v.current({...t,tree:f,x:n.clientX,y:n.clientY,onClose(){V(),N(),H(n)}})(n)}}),[l,s,d,t,m,g,h,H,N,V,i,r,f,x,v,o]),Lo((()=>{var e;if(d&&r&&null!=(e=v.current)&&e.__options.blockPointerEvents&&M()){const e=_r(s).body;if(e.setAttribute(Uo,""),e.style.pointerEvents="none",A.current=!0,Vr(l)&&s){var t,n;const e=l,r=null==f||null==(t=f.nodesRef.current.find((e=>e.id===b)))||null==(n=t.context)?void 0:n.elements.floating;return r&&(r.style.pointerEvents=""),e.style.pointerEvents="auto",s.style.pointerEvents="auto",()=>{e.style.pointerEvents="",s.style.pointerEvents=""}}}}),[d,r,b,s,l,f,v,o,M]),Lo((()=>{r||(y.current=void 0,N(),V())}),[r,N,V]),e.useEffect((()=>()=>{N(),clearTimeout(w.current),clearTimeout(E.current),V()}),[d,l,N,V]),e.useMemo((()=>{if(!d)return{};function e(e){y.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){r||0===g||(clearTimeout(E.current),E.current=setTimeout((()=>{I.current||i(!0,e.nativeEvent,"hover")}),g))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){H(e.nativeEvent,!1)}}}}),[d,g,r,i,H])}const Ko=e.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),qo=t=>{let{children:n,delay:r,timeoutMs:i=0}=t;const[o,a]=e.useReducer(((e,t)=>({...e,...t})),{delay:r,timeoutMs:i,initialDelay:r,currentId:null,isInstantPhase:!1}),l=e.useRef(null),s=e.useCallback((e=>{a({currentId:e})}),[]);return Lo((()=>{o.currentId?null===l.current?l.current=o.currentId:a({isInstantPhase:!0}):(a({isInstantPhase:!1}),l.current=null)}),[o.currentId]),e.createElement(Ko.Provider,{value:e.useMemo((()=>({...o,setState:a,setCurrentId:s})),[o,a,s])},n)};function ea(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let ta=new WeakMap,na=new WeakSet,ra={},ia=0;const oa=e=>e&&(e.host||oa(e.parentNode)),aa=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=oa(t);return e.contains(n)?n:null})).filter((e=>null!=e));function la(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=_r(e[0]).body;return function(e,t,n,r){const i="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,a=aa(t,e),l=new Set,s=new Set(a),c=[];ra[i]||(ra[i]=new WeakMap);const d=ra[i];return a.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!s.has(t)&&Array.prototype.forEach.call(t.children,(t=>{if(l.has(t))e(t);else{const e=o?t.getAttribute(o):null,n=null!==e&&"false"!==e,r=(ta.get(t)||0)+1,a=(d.get(t)||0)+1;ta.set(t,r),d.set(t,a),c.push(t),1===r&&n&&na.add(t),1===a&&t.setAttribute(i,""),!n&&o&&t.setAttribute(o,"true")}}))}(t),l.clear(),ia++,()=>{c.forEach((e=>{const t=(ta.get(e)||0)-1,n=(d.get(e)||0)-1;ta.set(e,t),d.set(e,n),t||(!na.has(e)&&o&&e.removeAttribute(o),na.delete(e)),n||e.removeAttribute(i)})),ia--,ia||(ta=new WeakMap,ta=new WeakMap,na=new WeakSet,ra={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const sa=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ca(e,t){const n=xo(e,sa());"prev"===t&&n.reverse();const r=n.indexOf(Pr(_r(e)));return n.slice(r+1)[0]}function da(){return ca(document.body,"next")}function ua(){return ca(document.body,"prev")}function pa(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!jr(n,r)}function ma(e){xo(e,sa()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function ga(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const ha={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function fa(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const ba=e.forwardRef((function(t,n){const[r,i]=e.useState();Lo((()=>(Jr()&&i("button"),document.addEventListener("keydown",fa),()=>{document.removeEventListener("keydown",fa)})),[]);const o={ref:n,tabIndex:0,role:r,"aria-hidden":!r||void 0,[Yo("focus-guard")]:"",style:ha};return e.createElement("span",Oo({},t,o))})),va=e.createContext(null);function xa(t){let{children:n,id:r,root:i=null,preserveTabOrder:o=!0}=t;const a=function(t){let{id:n,root:r}=void 0===t?{}:t;const[i,o]=e.useState(null),a=To(),l=ya(),s=e.useMemo((()=>({id:n,root:r,portalContext:l,uniqueId:a})),[n,r,l,a]),c=e.useRef();return Lo((()=>()=>{null==i||i.remove()}),[i,s]),Lo((()=>{if(c.current===s)return;c.current=s;const{id:e,root:t,portalContext:n,uniqueId:r}=s,i=e?document.getElementById(e):null,a=Yo("portal");if(i){const e=document.createElement("div");e.id=r,e.setAttribute(a,""),i.appendChild(e),o(e)}else{let i=t||(null==n?void 0:n.portalNode);i&&!Vr(i)&&(i=i.current),i=i||document.body;let l=null;e&&(l=document.createElement("div"),l.id=e,i.appendChild(l));const s=document.createElement("div");s.id=r,s.setAttribute(a,""),i=l||i,i.appendChild(s),o(s)}}),[s]),i}({id:r,root:i}),[l,s]=e.useState(null),c=e.useRef(null),d=e.useRef(null),u=e.useRef(null),p=e.useRef(null),m=!!l&&!l.modal&&l.open&&o&&!(!i&&!a);return e.useEffect((()=>{if(a&&o&&(null==l||!l.modal))return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){if(a&&pa(e)){("focusin"===e.type?ga:ma)(a)}}}),[a,o,null==l?void 0:l.modal]),e.createElement(va.Provider,{value:e.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:d,beforeInsideRef:u,afterInsideRef:p,portalNode:a,setFocusManagerState:s})),[o,a])},m&&a&&e.createElement(ba,{"data-type":"outside",ref:c,onFocus:e=>{if(pa(e,a)){var t;null==(t=u.current)||t.focus()}else{const e=ua()||(null==l?void 0:l.refs.domReference.current);null==e||e.focus()}}}),m&&a&&e.createElement("span",{"aria-owns":a.id,style:ha}),a&&A(n,a),m&&a&&e.createElement(ba,{"data-type":"outside",ref:d,onFocus:e=>{if(pa(e,a)){var t;null==(t=p.current)||t.focus()}else{const t=da()||(null==l?void 0:l.refs.domReference.current);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent))}}}))}const ya=()=>e.useContext(va),wa=e.forwardRef((function(t,n){return e.createElement("button",Oo({},t,{type:"button",ref:n,tabIndex:-1,style:ha}))}));function Ca(t){const{context:n,children:r,disabled:i=!1,order:o=["content"],guards:a=!0,initialFocus:l=0,returnFocus:s=!0,modal:c=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:u=!0}=t,{open:p,refs:m,nodeId:g,onOpenChange:h,events:f,dataRef:b,elements:{domReference:v,floating:x}}=n,y="number"==typeof l&&l<0,w="combobox"===(null==v?void 0:v.getAttribute("role"))&&ti(v)&&y,C=!w&&c,E="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||a,I=Jo(o),A=Jo(l),k=Jo(s),M=jo(),H=ya(),N=e.useRef(null),V=e.useRef(null),Z=e.useRef(!1),D=e.useRef(null),L=e.useRef(!1),O=null!=H,R=e.useCallback((function(e){return void 0===e&&(e=x),e?xo(e,sa()):[]}),[x]),S=e.useCallback((e=>{const t=R(e);return I.current.map((e=>v&&"reference"===e?v:x&&"floating"===e?x:t)).filter(Boolean).flat()}),[v,x,I,R]);function $(t){return!i&&d&&C?e.createElement(wa,{ref:"start"===t?N:V,onClick:e=>h(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}e.useEffect((()=>{if(i||!C)return;function e(e){if("Tab"===e.key){jr(x,Pr(_r(x)))&&0===R().length&&!w&&ni(e);const t=S(),n=qr(e);"reference"===I.current[0]&&n===v&&(ni(e),e.shiftKey?Do(t[t.length-1]):Do(t[1])),"floating"===I.current[1]&&n===x&&e.shiftKey&&(ni(e),Do(t[0]))}}const t=_r(x);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[i,v,x,C,I,m,w,R,S]),e.useEffect((()=>{if(!i&&u)return x&&Zr(v)?(v.addEventListener("focusout",t),v.addEventListener("pointerdown",e),!C&&x.addEventListener("focusout",t),()=>{v.removeEventListener("focusout",t),v.removeEventListener("pointerdown",e),!C&&x.removeEventListener("focusout",t)}):void 0;function e(){L.current=!0,setTimeout((()=>{L.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(jr(v,t)||jr(x,t)||jr(t,x)||jr(null==H?void 0:H.portalNode,t)||null!=t&&t.hasAttribute(Yo("focus-guard"))||M&&(ea(M.nodesRef.current,g).find((e=>{var n,r;return jr(null==(n=e.context)?void 0:n.elements.floating,t)||jr(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],i=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;i;){const t=e.find((e=>e.id===i));i=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(M.nodesRef.current,g).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));t&&n&&!L.current&&t!==D.current&&(Z.current=!0,h(!1,e))}))}}),[i,v,x,C,g,M,H,h,u]),e.useEffect((()=>{var e;if(i)return;const t=Array.from((null==H||null==(e=H.portalNode)?void 0:e.querySelectorAll("["+Yo("portal")+"]"))||[]);if(x){const e=[x,...t,N.current,V.current,I.current.includes("reference")||w?v:null].filter((e=>null!=e)),n=c||w?la(e,E,!E):la(e);return()=>{n()}}}),[i,v,x,c,I,H,w,E]),Lo((()=>{if(i||!x)return;const e=Pr(_r(x));queueMicrotask((()=>{const t=S(x),n=A.current,r=("number"==typeof n?t[n]:n.current)||x,i=jr(x,e);y||i||!p||Do(r,{preventScroll:r===x})}))}),[i,p,x,y,S,A]),Lo((()=>{if(i||!x)return;let e=!1;const t=_r(x),n=Pr(t),r=b.current;function o(t){let{reason:n,event:r,nested:i}=t;"escape-key"===n&&m.domReference.current&&(D.current=m.domReference.current),"hover"===n&&"mouseleave"===r.type&&(Z.current=!0),"outside-press"===n&&(i?(Z.current=!1,e=!0):Z.current=!(Xr(r)||Yr(r)))}return D.current=n,f.on("openchange",o),()=>{f.off("openchange",o);const i=Pr(t),a=jr(x,i)||M&&ea(M.nodesRef.current,g).some((e=>{var t;return jr(null==(t=e.context)?void 0:t.elements.floating,i)}));(a||r.openEvent&&["click","mousedown"].includes(r.openEvent.type))&&m.domReference.current&&(D.current=m.domReference.current),k.current&&Zr(D.current)&&!Z.current&&(n===i||i===t.body||a)&&Do(D.current,{cancelPrevious:!1,preventScroll:e})}}),[i,x,k,b,m,f,M,g]),Lo((()=>{if(!i&&H)return H.setFocusManagerState({modal:C,closeOnFocusOut:u,open:p,onOpenChange:h,refs:m}),()=>{H.setFocusManagerState(null)}}),[i,H,C,p,h,m,u]),Lo((()=>{if(i||!x||"function"!=typeof MutationObserver||y)return;const e=()=>{const e=x.getAttribute("tabindex");I.current.includes("floating")||Pr(_r(x))!==m.domReference.current&&0===R().length?"0"!==e&&x.setAttribute("tabindex","0"):"-1"!==e&&x.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(x,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[i,x,m,I,R,y]);const T=!i&&E&&(O||C);return e.createElement(e.Fragment,null,T&&e.createElement(ba,{"data-type":"inside",ref:null==H?void 0:H.beforeInsideRef,onFocus:e=>{if(C){const e=S();Do("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=H&&H.preserveTabOrder&&H.portalNode)if(Z.current=!1,pa(e,H.portalNode)){const e=da()||v;null==e||e.focus()}else{var t;null==(t=H.beforeOutsideRef.current)||t.focus()}}}),!w&&$("start"),r,$("end"),T&&e.createElement(ba,{"data-type":"inside",ref:null==H?void 0:H.afterInsideRef,onFocus:e=>{if(C)Do(S()[0]);else if(null!=H&&H.preserveTabOrder&&H.portalNode)if(u&&(Z.current=!0),pa(e,H.portalNode)){const e=ua()||v;null==e||e.focus()}else{var t;null==(t=H.afterOutsideRef.current)||t.focus()}}}))}function Ea(e){return Zr(e.target)&&"BUTTON"===e.target.tagName}function Ia(e){return ti(e)}const Aa={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ka={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ma=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Ha(t,n){void 0===n&&(n={});const{open:r,onOpenChange:i,nodeId:o,elements:{reference:a,domReference:l,floating:s},dataRef:c}=t,{enabled:d=!0,escapeKey:u=!0,outsidePress:p=!0,outsidePressEvent:m="pointerdown",referencePress:g=!1,referencePressEvent:h="pointerdown",ancestorScroll:f=!1,bubbles:b,capture:v}=n,x=jo(),y=wo("function"==typeof p?p:()=>!1),w="function"==typeof p?y:p,C=e.useRef(!1),E=e.useRef(!1),{escapeKey:I,outsidePress:A}=Ma(b),{escapeKey:k,outsidePress:M}=Ma(v),H=wo((e=>{if(!r||!d||!u||"Escape"!==e.key)return;const t=x?ea(x.nodesRef.current,o):[];if(!I&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}i(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),N=wo((e=>{var t;const n=()=>{var t;H(e),null==(t=qr(e))||t.removeEventListener("keydown",n)};null==(t=qr(e))||t.addEventListener("keydown",n)})),V=wo((e=>{const t=C.current;C.current=!1;const n=E.current;if(E.current=!1,"click"===m&&n)return;if(t)return;if("function"==typeof w&&!w(e))return;const r=qr(e),a="["+Yo("inert")+"]",c=_r(s).querySelectorAll(a);let d=Vr(r)?r:null;for(;d&&!$r(d);){const e=Br(d);if(e===_r(s).body||!Vr(e))break;d=e}if(c.length&&Vr(r)&&!r.matches("html,body")&&!jr(r,s)&&Array.from(c).every((e=>!jr(d,e))))return;if(Zr(r)&&s){const t=r.clientWidth>0&&r.scrollWidth>r.clientWidth,n=r.clientHeight>0&&r.scrollHeight>r.clientHeight;let i=n&&e.offsetX>r.clientWidth;if(n){"rtl"===Tr(r).direction&&(i=e.offsetX<=r.offsetWidth-r.clientWidth)}if(i||t&&e.offsetY>r.clientHeight)return}const u=x&&ea(x.nodesRef.current,o).some((t=>{var n;return Kr(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Kr(e,s)||Kr(e,l)||u)return;const p=x?ea(x.nodesRef.current,o):[];if(p.length>0){let e=!0;if(p.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}i(!1,e,"outside-press")})),Z=wo((e=>{var t;const n=()=>{var t;V(e),null==(t=qr(e))||t.removeEventListener(m,n)};null==(t=qr(e))||t.addEventListener(m,n)}));return e.useEffect((()=>{if(!r||!d)return;function e(e){i(!1,e,"ancestor-scroll")}c.current.__escapeKeyBubbles=I,c.current.__outsidePressBubbles=A;const t=_r(s);u&&t.addEventListener("keydown",k?N:H,k),w&&t.addEventListener(m,M?Z:V,M);let n=[];return f&&(Vr(l)&&(n=Wr(l)),Vr(s)&&(n=n.concat(Wr(s))),!Vr(a)&&a&&a.contextElement&&(n=n.concat(Wr(a.contextElement)))),n=n.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),n.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{u&&t.removeEventListener("keydown",k?N:H,k),w&&t.removeEventListener(m,M?Z:V,M),n.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[c,s,l,a,u,w,m,r,i,f,d,I,A,H,k,N,V,M,Z]),e.useEffect((()=>{C.current=!1}),[w,m]),e.useMemo((()=>d?{reference:{onKeyDown:H,[Aa[h]]:e=>{g&&i(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:H,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[ka[m]]:()=>{C.current=!0}}}:{}),[d,g,m,h,i,H])}let Na;function Va(t){var n;void 0===t&&(t={});const{open:r=!1,onOpenChange:i,nodeId:o}=t;if("production"!==process.env.NODE_ENV){var a;const e="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";var l,s;if(null!=(a=t.elements)&&a.reference&&!Vr(t.elements.reference))if(null==(l=Na)||!l.has(e))null==(s=Na)||s.add(e),console.error(e)}const[c,d]=e.useState(null),u=(null==(n=t.elements)?void 0:n.reference)||c,p=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:c,open:d}=t,[u,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,g]=e.useState(i);_i(m,i)||g(i);const[h,f]=e.useState(null),[b,v]=e.useState(null),x=e.useCallback((e=>{e!=I.current&&(I.current=e,f(e))}),[f]),y=e.useCallback((e=>{e!==A.current&&(A.current=e,v(e))}),[v]),w=a||h,C=l||b,I=e.useRef(null),A=e.useRef(null),k=e.useRef(u),M=eo(c),H=eo(o),N=e.useCallback((()=>{if(!I.current||!A.current)return;const e={placement:n,strategy:r,middleware:m};H.current&&(e.platform=H.current),Ji(I.current,A.current,e).then((e=>{const t={...e,isPositioned:!0};V.current&&!_i(k.current,t)&&(k.current=t,E.flushSync((()=>{p(t)})))}))}),[m,n,r,H]);Qi((()=>{!1===d&&k.current.isPositioned&&(k.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const V=e.useRef(!1);Qi((()=>(V.current=!0,()=>{V.current=!1})),[]),Qi((()=>{if(w&&(I.current=w),C&&(A.current=C),w&&C){if(M.current)return M.current(w,C,N);N()}}),[w,C,N,M]);const Z=e.useMemo((()=>({reference:I,floating:A,setReference:x,setFloating:y})),[x,y]),D=e.useMemo((()=>({reference:w,floating:C})),[w,C]),L=e.useMemo((()=>{const e={position:r,left:0,top:0};if(!D.floating)return e;const t=qi(D.floating,u.x),n=qi(D.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...Ki(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,s,D.floating,u.x,u.y]);return e.useMemo((()=>({...u,update:N,refs:Z,elements:D,floatingStyles:L})),[u,N,Z,D,L])}(t),m=jo(),g=null!=Po(),h=wo(((e,t,n)=>{e&&(b.current.openEvent=t),v.emit("openchange",{open:e,event:t,reason:n,nested:g}),null==i||i(e,t,n)})),f=e.useRef(null),b=e.useRef({}),v=e.useState((()=>Bo()))[0],x=To(),y=e.useCallback((e=>{const t=Vr(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;p.refs.setReference(t)}),[p.refs]),w=e.useCallback((e=>{(Vr(e)||null===e)&&(f.current=e,d(e)),(Vr(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Vr(e))&&p.refs.setReference(e)}),[p.refs]),C=e.useMemo((()=>({...p.refs,setReference:w,setPositionReference:y,domReference:f})),[p.refs,w,y]),I=e.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),A=e.useMemo((()=>({...p,refs:C,elements:I,dataRef:b,nodeId:o,floatingId:x,events:v,open:r,onOpenChange:h})),[p,o,x,v,r,h,C,I]);return Lo((()=>{const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===o));e&&(e.context=A)})),e.useMemo((()=>({...p,context:A,refs:C,elements:I})),[p,C,I,A])}function Za(e,t,n){const r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map((e=>e?e[n]:null)).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var o;0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(o=r.get(n))||o.push(i),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map((e=>e(...i))).find((e=>void 0!==e))})):e[n]=i})),e):e),{})}}function Da(t){void 0===t&&(t=[]);const n=t,r=e.useCallback((e=>Za(e,t,"reference")),n),i=e.useCallback((e=>Za(e,t,"floating")),n),o=e.useCallback((e=>Za(e,t,"item")),t.map((e=>null==e?void 0:e.item)));return e.useMemo((()=>({getReferenceProps:r,getFloatingProps:i,getItemProps:o})),[r,i,o])}"production"!==process.env.NODE_ENV&&(Na=new Set);let La=!1;function Oa(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Ra(e,t){return Oa(t,e===Co||e===Eo,e===Io||e===Ao)}function Sa(e,t,n){return Oa(t,e===Eo,n?e===Io:e===Ao)||"Enter"===e||" "==e||""===e}function $a(e,t,n){return Oa(t,n?e===Ao:e===Io,e===Co)}function Ta(t,n){const{open:r,onOpenChange:i,refs:o,elements:{domReference:a,floating:l}}=t,{listRef:s,activeIndex:c,onNavigate:d=(()=>{}),enabled:u=!0,selectedIndex:p=null,allowEscape:m=!1,loop:g=!1,nested:h=!1,rtl:f=!1,virtual:b=!1,focusItemOnOpen:v="auto",focusItemOnHover:x=!0,openOnArrowKeyDown:y=!0,disabledIndices:w,orientation:C="vertical",cols:E=1,scrollItemIntoView:I=!0,virtualItemRef:A}=n;"production"!==process.env.NODE_ENV&&(m&&(g||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),b||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),"vertical"===C&&E>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const k=Po(),M=jo(),H=wo(d),N=e.useRef(v),V=e.useRef(null!=p?p:-1),Z=e.useRef(null),D=e.useRef(!0),L=e.useRef(H),O=e.useRef(!!l),R=e.useRef(!1),S=e.useRef(!1),$=Jo(w),T=Jo(r),z=Jo(I),[B,G]=e.useState(),[W,P]=e.useState(),j=wo((function(e,t,n){void 0===n&&(n=!1);const r=e.current[t.current];r&&(b?(G(r.id),null==M||M.events.emit("virtualfocus",r),A&&(A.current=r)):Do(r,{preventScroll:!0,sync:!(!Fr().toLowerCase().startsWith("mac")||navigator.maxTouchPoints||!Jr())&&(La||R.current)}),requestAnimationFrame((()=>{const e=z.current;e&&r&&(n||!D.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))})))}));Lo((()=>{document.createElement("div").focus({get preventScroll(){return La=!0,!1}})}),[]),Lo((()=>{u&&(r&&l?N.current&&null!=p&&(S.current=!0,H(p)):O.current&&(V.current=-1,L.current(null)))}),[u,r,l,p,H]),Lo((()=>{if(u&&r&&l)if(null==c){if(R.current=!1,null!=p)return;if(O.current&&(V.current=-1,j(s,V)),!O.current&&N.current&&(null!=Z.current||!0===N.current&&null==Z.current)){let e=0;const t=()=>{if(null==s.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else V.current=null==Z.current||Sa(Z.current,C,f)||h?Ho(s,$.current):No(s,$.current),Z.current=null,H(V.current)};t()}}else Mo(s,c)||(V.current=c,j(s,V,S.current),S.current=!1)}),[u,r,l,c,p,h,s,C,f,H,j,$]),Lo((()=>{var e,t;if(!u||l||!M||b||!O.current)return;const n=M.nodesRef.current,r=null==(e=n.find((e=>e.id===k)))||null==(t=e.context)?void 0:t.elements.floating,i=Pr(_r(l)),o=n.some((e=>e.context&&jr(e.context.elements.floating,i)));r&&!o&&D.current&&r.focus({preventScroll:!0})}),[u,l,M,k,b]),Lo((()=>{if(u&&M&&b&&!k)return M.events.on("virtualfocus",e),()=>{M.events.off("virtualfocus",e)};function e(e){P(e.id),A&&(A.current=e)}}),[u,M,b,k,A]),Lo((()=>{L.current=H,O.current=!!l})),Lo((()=>{r||(Z.current=null)}),[r]);const F=null!=c,X=e.useMemo((()=>{function e(e){if(!r)return;const t=s.current.indexOf(e);-1!==t&&H(t)}const t={onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...x&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;D.current&&"touch"!==t&&(V.current=-1,j(s,V),H(null),b||Do(o.floating.current,{preventScroll:!0}))}}};return t}),[r,o,j,x,s,H,b]);return e.useMemo((()=>{if(!u)return{};const e=$.current;function t(t){if(D.current=!1,R.current=!0,!T.current&&t.currentTarget===o.floating.current)return;if(h&&$a(t.key,C,f))return ni(t),i(!1,t.nativeEvent,"list-navigation"),void(Zr(a)&&!b&&a.focus());const n=V.current,l=Ho(s,e),c=No(s,e);if("Home"===t.key&&(ni(t),V.current=l,H(V.current)),"End"===t.key&&(ni(t),V.current=c,H(V.current)),!(E>1&&(V.current=function(e,t){let{event:n,orientation:r,loop:i,cols:o,disabledIndices:a,minIndex:l,maxIndex:s,prevIndex:c,stopEvent:d=!1}=t,u=c;if(n.key===Co){if(d&&ni(n),-1===c)u=s;else if(u=Vo(e,{startingIndex:u,amount:o,decrement:!0,disabledIndices:a}),i&&(c-o<l||u<0)){const e=c%o,t=s%o,n=s-(t-e);u=t===e?s:t>e?n:n-o}Mo(e,u)&&(u=c)}if(n.key===Eo&&(d&&ni(n),-1===c?u=l:(u=Vo(e,{startingIndex:c,amount:o,disabledIndices:a}),i&&c+o>s&&(u=Vo(e,{startingIndex:c%o-o,amount:o,disabledIndices:a}))),Mo(e,u)&&(u=c)),"both"===r){const t=si(c/o);n.key===Ao&&(d&&ni(n),c%o!=o-1?(u=Vo(e,{startingIndex:c,disabledIndices:a}),i&&ko(u,o,t)&&(u=Vo(e,{startingIndex:c-c%o-1,disabledIndices:a}))):i&&(u=Vo(e,{startingIndex:c-c%o-1,disabledIndices:a})),ko(u,o,t)&&(u=c)),n.key===Io&&(d&&ni(n),c%o!=0?(u=Vo(e,{startingIndex:c,disabledIndices:a,decrement:!0}),i&&ko(u,o,t)&&(u=Vo(e,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:a}))):i&&(u=Vo(e,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:a})),ko(u,o,t)&&(u=c));const r=si(s/o)===t;Mo(e,u)&&(u=i&&r?n.key===Io?s:Vo(e,{startingIndex:c-c%o-1,disabledIndices:a}):c)}return u}(s,{event:t,orientation:C,loop:g,cols:E,disabledIndices:e,minIndex:l,maxIndex:c,prevIndex:V.current,stopEvent:!0}),H(V.current),"both"===C))&&Ra(t.key,C)){if(ni(t),r&&!b&&Pr(t.currentTarget.ownerDocument)===t.currentTarget)return V.current=Sa(t.key,C,f)?l:c,void H(V.current);Sa(t.key,C,f)?V.current=g?n>=c?m&&n!==s.current.length?-1:l:Vo(s,{startingIndex:n,disabledIndices:e}):Math.min(c,Vo(s,{startingIndex:n,disabledIndices:e})):V.current=g?n<=l?m&&-1!==n?s.current.length:c:Vo(s,{startingIndex:n,decrement:!0,disabledIndices:e}):Math.max(l,Vo(s,{startingIndex:n,decrement:!0,disabledIndices:e})),Mo(s,V.current)?H(null):H(V.current)}}function n(e){"auto"===v&&Xr(e.nativeEvent)&&(N.current=!0)}const l=b&&r&&F&&{"aria-activedescendant":W||B},c=s.current.find((e=>(null==e?void 0:e.id)===B));return{reference:{...l,onKeyDown(n){D.current=!1;const o=0===n.key.indexOf("Arrow"),a=function(e,t,n){return Oa(t,n?e===Io:e===Ao,e===Eo)}(n.key,C,f),l=$a(n.key,C,f),d=Ra(n.key,C),u=(h?a:d)||"Enter"===n.key||""===n.key.trim();if(b&&r){const e=null==M?void 0:M.nodesRef.current.find((e=>null==e.parentId)),r=M&&e?function(e,t){let n,r=-1;return function t(i,o){o>r&&(n=i,r=o),ea(e,i).forEach((e=>{t(e.id,o+1)}))}(t,0),e.find((e=>e.id===n))}(M.nodesRef.current,e.id):null;if(o&&r&&A){const e=new KeyboardEvent("keydown",{key:n.key,bubbles:!0});if(a||l){var m,g;const t=(null==(m=r.context)?void 0:m.elements.domReference)===n.currentTarget,i=l&&!t?null==(g=r.context)?void 0:g.elements.domReference:a?c:null;i&&(ni(n),i.dispatchEvent(e),P(void 0))}var v;if(d&&r.context)if(r.context.open&&r.parentId&&n.currentTarget!==r.context.elements.domReference)return ni(n),void(null==(v=r.context.elements.domReference)||v.dispatchEvent(e))}return t(n)}(r||y||!o)&&(u&&(Z.current=h&&d?null:n.key),h?a&&(ni(n),r?(V.current=Ho(s,e),H(V.current)):i(!0,n.nativeEvent,"list-navigation")):d&&(null!=p&&(V.current=p),ni(n),!r&&y?i(!0,n.nativeEvent,"list-navigation"):t(n),r&&H(V.current)))},onFocus(){r&&H(null)},onPointerDown:function(e){N.current=v,"auto"===v&&Yr(e.nativeEvent)&&(N.current=!0)},onMouseDown:n,onClick:n},floating:{"aria-orientation":"both"===C?void 0:C,...l,onKeyDown:t,onPointerMove(){D.current=!0}},item:X}}),[a,o,B,W,$,T,s,u,C,f,b,r,F,h,p,y,m,E,g,v,H,i,X,M,A])}function za(t,n){void 0===n&&(n={});const{open:r,floatingId:i}=t,{enabled:o=!0,role:a="dialog"}=n,l=To();return e.useMemo((()=>{if(!o)return{};const e={id:i,..."label"!==a&&{role:a}};return"tooltip"===a||"label"===a?{reference:{["aria-"+("label"===a?"labelledby":"describedby")]:r?i:void 0},floating:e}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===a?"dialog":a,"aria-controls":r?i:void 0,..."listbox"===a&&{role:"combobox"},..."menu"===a&&{id:l}},floating:{...e,..."menu"===a&&{"aria-labelledby":l}}}}),[o,a,r,i,l])}function Ba(e,t){const[n,r]=e;let i=!1;const o=t.length;for(let e=0,a=o-1;e<o;a=e++){const[o,l]=t[e]||[0,0],[s,c]=t[a]||[0,0];l>=r!=c>=r&&n<=(s-o)*(r-l)/(c-l)+o&&(i=!i)}return i}function Ga(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let i,o=!1,a=null,l=null,s=performance.now();const c=e=>{let{x:n,y:c,placement:d,elements:u,onClose:p,nodeId:m,tree:g}=e;return function(e){function h(){clearTimeout(i),p()}if(clearTimeout(i),!u.domReference||!u.floating||null==d||null==n||null==c)return;const{clientX:f,clientY:b}=e,v=[f,b],x=qr(e),y="mouseleave"===e.type,w=jr(u.floating,x),C=jr(u.domReference,x),E=u.domReference.getBoundingClientRect(),I=u.floating.getBoundingClientRect(),A=d.split("-")[0],k=n>I.right-I.width/2,M=c>I.bottom-I.height/2,H=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(v,E),N=I.width>E.width,V=I.height>E.height,Z=(N?E:I).left,D=(N?E:I).right,L=(V?E:I).top,O=(V?E:I).bottom;if(w&&(o=!0,!y))return;if(C&&(o=!1),C&&!y)return void(o=!0);if(y&&Vr(e.relatedTarget)&&jr(u.floating,e.relatedTarget))return;if(g&&ea(g.nodesRef.current,m).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===A&&c>=E.bottom-1||"bottom"===A&&c<=E.top+1||"left"===A&&n>=E.right-1||"right"===A&&n<=E.left+1)return h();let R=[];switch(A){case"top":R=[[Z,E.top+1],[Z,I.bottom-1],[D,I.bottom-1],[D,E.top+1]];break;case"bottom":R=[[Z,I.top+1],[Z,E.bottom-1],[D,E.bottom-1],[D,I.top+1]];break;case"left":R=[[I.right-1,O],[I.right-1,L],[E.left+1,L],[E.left+1,O]];break;case"right":R=[[E.right-1,O],[E.right-1,L],[I.left+1,L],[I.left+1,O]]}if(!Ba([f,b],R)){if(o&&!H)return h();if(!y&&r){const t=function(e,t){const n=performance.now(),r=n-s;if(null===a||null===l||0===r)return a=e,l=t,s=n,null;const i=e-a,o=t-l,c=Math.sqrt(i*i+o*o);return a=e,l=t,s=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}Ba([f,b],function(e){let[n,r]=e;switch(A){case"top":return[[N?n+t/2:k?n+4*t:n-4*t,r+t+1],[N?n-t/2:k?n+4*t:n-4*t,r+t+1],...[[I.left,k||N?I.bottom-t:I.top],[I.right,k?N?I.bottom-t:I.top:I.bottom-t]]];case"bottom":return[[N?n+t/2:k?n+4*t:n-4*t,r-t],[N?n-t/2:k?n+4*t:n-4*t,r-t],...[[I.left,k||N?I.top+t:I.bottom],[I.right,k?N?I.top+t:I.bottom:I.top+t]]];case"left":{const e=[n+t+1,V?r+t/2:M?r+4*t:r-4*t],i=[n+t+1,V?r-t/2:M?r+4*t:r-4*t];return[...[[M||V?I.right-t:I.left,I.top],[M?V?I.right-t:I.left:I.right-t,I.bottom]],e,i]}case"right":return[[n-t,V?r+t/2:M?r+4*t:r-4*t],[n-t,V?r-t/2:M?r+4*t:r-4*t],...[[M||V?I.left+t:I.right,I.top],[M?V?I.left+t:I.right:I.left+t,I.bottom]]]}}([n,c]))?!o&&r&&(i=window.setTimeout(h,40)):h()}}};return c.__options={blockPointerEvents:n},c}const Wa=["auto","auto-start","auto-end"],Pa=e=>({placements:p((()=>e.filter((e=>!Wa.includes(e)))),[e]),isAuto:p((()=>e.some((e=>Wa.includes(e)))),[e])}),ja=e.forwardRef((function(t,n){var{isOpen:r=!0,onClose:i,baseElement:o,offset:a=[0,0],positionPriority:l=["auto"],modalProps:s,children:c}=t,d=M(t,["isOpen","onClose","baseElement","offset","positionPriority","modalProps","children"]);const{placements:u,isAuto:p}=Pa(l),{x:m,y:g,refs:h,strategy:f,context:b}=Va({elements:{reference:o},placement:u[0],open:r,middleware:[l.length>0&&!p?Vi({padding:24,fallbackPlacements:u}):Ni(),Zi({mainAxis:a[1],crossAxis:a[0]}),Di({mainAxis:!1})],whileElementsMounted:Yi}),v=za(b),{getFloatingProps:x}=Da([v]),y=Wn(n,h.setFloating);return e.createElement(sr,Object.assign({isOpen:r,backdropProps:{invisible:!0}},s,{onClose:i}),e.createElement(Ca,{context:b,modal:!1,initialFocus:-1},e.createElement(Ar,Object.assign({ref:y,style:{position:f,top:g,left:m}},x(),d),c)))})),Fa=e.forwardRef((function(t,n){var{isOpen:r=!0,baseElement:i=null,contents:o,positionPriority:a=["bottom-start","bottom-end","top-start","top-end"],onClose:l,maxHeight:s="none",menuListProps:c,popoverProps:d}=t,u=M(t,["isOpen","baseElement","contents","positionPriority","onClose","maxHeight","menuListProps","popoverProps"]);return e.createElement(ja,Object.assign({isOpen:r,baseElement:i,positionPriority:a,onClose:l},d),e.createElement(Ir,Object.assign({ref:n,contents:o,maxHeight:s},u,c,{onClick:lr((e=>{l&&l(e,"clickMenuList")}),null==c?void 0:c.onClick)})))})),Xa=v(le)`
|
|
690
690
|
width: 34px;
|
|
691
691
|
height: 34px;
|
|
692
692
|
`,Ya=e.forwardRef((function({contents:t,positionPriority:n=["bottom-start","bottom-end","top-start","top-end"],menuMaxHeight:r="none",menuProps:i,actionButtonProps:o},a){const[l,s]=e.useState(null),[c,d]=e.useState(!1),u=e=>()=>{d(e)},p=Wn(s,a);return e.createElement(e.Fragment,null,e.createElement(Xa,Object.assign({ref:p,"data-testid":"icon-wrapper",icon:"more_vert",onClick:u(!c)},o)),e.createElement(Fa,Object.assign({isOpen:c,baseElement:l,contents:t,positionPriority:n,maxHeight:r},i,{onClose:lr(u(!1),null==i?void 0:i.onClose)})))}));function Ja(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}function Ua(e,t){return function(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){const o=e.current;let a=t;do{a+=n?-i:i}while(a>=0&&a<=o.length-1&&Ja(o,a,r));return a}(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const Qa=m({isRoot:!1,activeIndex:null,maxActiveIndex:-1,setActiveIndex:()=>{},close:()=>{}}),_a=v.span`
|
|
@@ -851,9 +851,9 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
851
851
|
&[aria-expanded="true"] {
|
|
852
852
|
background: ${N.basic[200]};
|
|
853
853
|
}
|
|
854
|
-
`;ul.displayName="ContextMenu2TriggerItem";const pl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ml(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function gl(e){return"nodeType"in e}function hl(e){var t,n;return e?ml(e)?e:gl(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function fl(e){const{Document:t}=hl(e);return e instanceof t}function bl(e){return!ml(e)&&e instanceof hl(e).HTMLElement}function vl(e){return e instanceof hl(e).SVGElement}function xl(e){return e?ml(e)?e.document:gl(e)?fl(e)?e:bl(e)||vl(e)?e.ownerDocument:document:document:document}const yl=pl?u:o;function wl(e){const t=i(e);return yl((()=>{t.current=e})),d((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function Cl(e,t){void 0===t&&(t=[e]);const n=i(e);return yl((()=>{n.current!==e&&(n.current=e)}),t),n}function El(e,t){const n=i();return p((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function Il(e){const t=wl(e),n=i(null),r=d((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,r]}function Al(e){const t=i();return o((()=>{t.current=e}),[e]),t.current}let kl={};function Ml(e,t){return p((()=>{if(t)return t;const n=null==kl[e]?0:kl[e]+1;return kl[e]=n,e+"-"+n}),[e,t])}function Hl(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const Nl=Hl(1),Vl=Hl(-1);function Zl(e){if(!e)return!1;const{KeyboardEvent:t}=hl(e.target);return t&&e instanceof t}function Dl(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=hl(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Ll=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Ll.Translate.toString(e),Ll.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Ol="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Rl(e){return e.matches(Ol)?e:e.querySelector(Ol)}const Sl={display:"none"};function Tl(e){let{id:n,value:r}=e;return t.createElement("div",{id:n,style:Sl},r)}function $l(e){let{id:n,announcement:r,ariaLiveType:i="assertive"}=e;return t.createElement("div",{id:n,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":i,"aria-atomic":!0},r)}const zl=m(null);const Bl={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},Gl={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Wl(e){let{announcements:n=Gl,container:i,hiddenTextDescribedById:a,screenReaderInstructions:l=Bl}=e;const{announce:s,announcement:c}=function(){const[e,t]=r("");return{announce:d((e=>{null!=e&&t(e)}),[]),announcement:e}}(),u=Ml("DndLiveRegion"),[m,h]=r(!1);if(o((()=>{h(!0)}),[]),function(e){const t=g(zl);o((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}(p((()=>({onDragStart(e){let{active:t}=e;s(n.onDragStart({active:t}))},onDragMove(e){let{active:t,over:r}=e;n.onDragMove&&s(n.onDragMove({active:t,over:r}))},onDragOver(e){let{active:t,over:r}=e;s(n.onDragOver({active:t,over:r}))},onDragEnd(e){let{active:t,over:r}=e;s(n.onDragEnd({active:t,over:r}))},onDragCancel(e){let{active:t,over:r}=e;s(n.onDragCancel({active:t,over:r}))}})),[s,n])),!m)return null;const f=t.createElement(t.Fragment,null,t.createElement(Tl,{id:a,value:l.draggable}),t.createElement($l,{id:u,announcement:c}));return i?A(f,i):f}var Pl;function jl(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(Pl||(Pl={}));const Fl=Object.freeze({x:0,y:0});function Xl(e,t){const n=Dl(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function Yl(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Jl(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,l=o-n;if(r<i&&n<o){const n=t.width*t.height,r=e.width*e.height,i=a*l;return Number((i/(n+r-i)).toFixed(4))}return 0}const Ul=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=Jl(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(Yl)};function Ql(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Fl}function _l(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const Kl=_l(1);function ql(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const es={ignoreTransform:!1};function ts(e,t){void 0===t&&(t=es);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=hl(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=ql(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:l}=r,s=e.left-a-(1-i)*parseFloat(n),c=e.top-l-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=i?e.width/i:e.width,u=o?e.height/o:e.height;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s}}(n,t,r))}const{top:r,left:i,width:o,height:a,bottom:l,right:s}=n;return{top:r,left:i,width:o,height:a,bottom:l,right:s}}function ns(e){return ts(e,{ignoreTransform:!0})}function rs(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if(fl(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!bl(i)||vl(i))return n;if(n.includes(i))return n;const o=hl(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=hl(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,o)&&n.push(i),function(e,t){return void 0===t&&(t=hl(e).getComputedStyle(e)),"fixed"===t.position}(i,o)?n:r(i.parentNode)}(e):n}function is(e){const[t]=rs(e,1);return null!=t?t:null}function os(e){return pl&&e?ml(e)?e:gl(e)?fl(e)||e===xl(e).scrollingElement?window:bl(e)?e:null:null:null}function as(e){return ml(e)?e.scrollX:e.scrollLeft}function ls(e){return ml(e)?e.scrollY:e.scrollTop}function ss(e){return{x:as(e),y:ls(e)}}var cs;function ds(e){return!(!pl||!e)&&e===document.scrollingElement}function us(e){const t={x:0,y:0},n=ds(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(cs||(cs={}));const ps={x:.2,y:.2};function ms(e,t,n,r,i){let{top:o,left:a,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===i&&(i=ps);const{isTop:c,isBottom:d,isLeft:u,isRight:p}=us(e),m={x:0,y:0},g={x:0,y:0},h=t.height*i.y,f=t.width*i.x;return!c&&o<=t.top+h?(m.y=cs.Backward,g.y=r*Math.abs((t.top+h-o)/h)):!d&&s>=t.bottom-h&&(m.y=cs.Forward,g.y=r*Math.abs((t.bottom-h-s)/h)),!p&&l>=t.right-f?(m.x=cs.Forward,g.x=r*Math.abs((t.right-f-l)/f)):!u&&a<=t.left+f&&(m.x=cs.Backward,g.x=r*Math.abs((t.left+f-a)/f)),{direction:m,speed:g}}function gs(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function hs(e){return e.reduce(((e,t)=>Nl(e,ss(t))),Fl)}function fs(e,t){if(void 0===t&&(t=ts),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);is(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const bs=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+as(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+ls(t)),0)}]];class vs{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=rs(t),r=hs(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of bs)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[o]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class xs{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ys(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var ws,Cs;function Es(e){e.preventDefault()}function Is(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(ws||(ws={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(Cs||(Cs={}));const As={start:[Cs.Space,Cs.Enter],cancel:[Cs.Esc],end:[Cs.Space,Cs.Enter,Cs.Tab]},ks=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Cs.Right:return{...n,x:n.x+25};case Cs.Left:return{...n,x:n.x-25};case Cs.Down:return{...n,y:n.y+25};case Cs.Up:return{...n,y:n.y-25}}};class Ms{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new xs(xl(t)),this.windowListeners=new xs(hl(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ws.Resize,this.handleCancel),this.windowListeners.add(ws.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(ws.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&fs(n),t(Fl)}handleKeyDown(e){if(Zl(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=As,coordinateGetter:o=ks,scrollBehavior:a="smooth"}=r,{code:l}=e;if(i.end.includes(l))return void this.handleEnd(e);if(i.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:s}=n.current,c=s?{x:s.left,y:s.top}:Fl;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=Vl(d,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:l,isLeft:s,isBottom:c,maxScroll:u,minScroll:p}=us(n),m=gs(n),g={x:Math.min(i===Cs.Right?m.right-m.width/2:m.right,Math.max(i===Cs.Right?m.left:m.left+m.width/2,d.x)),y:Math.min(i===Cs.Down?m.bottom-m.height/2:m.bottom,Math.max(i===Cs.Down?m.top:m.top+m.height/2,d.y))},h=i===Cs.Right&&!l||i===Cs.Left&&!s,f=i===Cs.Down&&!c||i===Cs.Up&&!o;if(h&&g.x!==d.x){const e=n.scrollLeft+t.x,o=i===Cs.Right&&e<=u.x||i===Cs.Left&&e>=p.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=o?n.scrollLeft-e:i===Cs.Right?n.scrollLeft-u.x:n.scrollLeft-p.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(f&&g.y!==d.y){const e=n.scrollTop+t.y,o=i===Cs.Down&&e<=u.y||i===Cs.Up&&e>=p.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=o?n.scrollTop-e:i===Cs.Down?n.scrollTop-u.y:n.scrollTop-p.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,Nl(Vl(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Hs(e){return Boolean(e&&"distance"in e)}function Ns(e){return Boolean(e&&"delay"in e)}Ms.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=As,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class Vs{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=hl(e);return e instanceof t?e:xl(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=xl(o),this.documentListeners=new xs(this.document),this.listeners=new xs(n),this.windowListeners=new xs(hl(o)),this.initialCoordinates=null!=(r=Dl(i))?r:Fl,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(ws.Resize,this.handleCancel),this.windowListeners.add(ws.DragStart,Es),this.windowListeners.add(ws.VisibilityChange,this.handleCancel),this.windowListeners.add(ws.ContextMenu,Es),this.documentListeners.add(ws.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ns(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(Hs(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(ws.Click,Is,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ws.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;const l=null!=(t=Dl(e))?t:Fl,s=Vl(r,l);if(!n&&a){if(Hs(a)){if(null!=a.tolerance&&ys(s,a.tolerance))return this.handleCancel();if(ys(s,a.distance))return this.handleStart()}return Ns(a)&&ys(s,a.tolerance)?this.handleCancel():void this.handlePending(a,s)}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===Cs.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Zs={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Ds extends Vs{constructor(e){const{event:t}=e,n=xl(t.target);super(e,Zs,n)}}Ds.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const Ls={move:{name:"mousemove"},end:{name:"mouseup"}};var Os;!function(e){e[e.RightClick=2]="RightClick"}(Os||(Os={}));(class extends Vs{constructor(e){super(e,Ls,xl(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Os.RightClick&&(null==r||r({event:n}),!0)}}];const Rs={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var Ss,Ts;function $s(e){let{acceleration:t,activator:n=Ss.Pointer,canScroll:r,draggingRect:a,enabled:l,interval:s=5,order:c=Ts.TreeOrder,pointerCoordinates:u,scrollableAncestors:m,scrollableAncestorRects:g,delta:h,threshold:f}=e;const b=function(e){let{delta:t,disabled:n}=e;const r=Al(t);return El((e=>{if(n||!r||!e)return zs;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[cs.Backward]:e.x[cs.Backward]||-1===i.x,[cs.Forward]:e.x[cs.Forward]||1===i.x},y:{[cs.Backward]:e.y[cs.Backward]||-1===i.y,[cs.Forward]:e.y[cs.Forward]||1===i.y}}}),[n,t,r])}({delta:h,disabled:!l}),[v,x]=function(){const e=i(null);return[d(((t,n)=>{e.current=setInterval(t,n)}),[]),d((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),y=i({x:0,y:0}),w=i({x:0,y:0}),C=p((()=>{switch(n){case Ss.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case Ss.DraggableRect:return a}}),[n,a,u]),E=i(null),I=d((()=>{const e=E.current;if(!e)return;const t=y.current.x*w.current.x,n=y.current.y*w.current.y;e.scrollBy(t,n)}),[]),A=p((()=>c===Ts.TreeOrder?[...m].reverse():m),[c,m]);o((()=>{if(l&&m.length&&C){for(const e of A){if(!1===(null==r?void 0:r(e)))continue;const n=m.indexOf(e),i=g[n];if(!i)continue;const{direction:o,speed:a}=ms(e,i,C,t,f);for(const e of["x","y"])b[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0)return x(),E.current=e,v(I,s),y.current=a,void(w.current=o)}y.current={x:0,y:0},w.current={x:0,y:0},x()}else x()}),[t,I,r,x,l,s,JSON.stringify(C),JSON.stringify(b),v,m,A,g,JSON.stringify(f)])}(class extends Vs{constructor(e){super(e,Rs)}static setup(){return window.addEventListener(Rs.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Rs.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Ss||(Ss={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Ts||(Ts={}));const zs={x:{[cs.Backward]:!1,[cs.Forward]:!1},y:{[cs.Backward]:!1,[cs.Forward]:!1}};var Bs,Gs;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Bs||(Bs={})),function(e){e.Optimized="optimized"}(Gs||(Gs={}));const Ws=new Map;function Ps(e,t){return El((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function js(e){let{callback:t,disabled:n}=e;const r=wl(t),i=p((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)}),[n]);return o((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function Fs(e){return new vs(ts(e),e)}function Xs(e,t,n){void 0===t&&(t=Fs);const[i,a]=r(null);function l(){a((r=>{if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=r?r:n)?i:null;const o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o}))}const s=function(e){let{callback:t,disabled:n}=e;const r=wl(t),i=p((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)}),[r,n]);return o((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){l();break}}}}),c=js({callback:l});return yl((()=>{l(),e?(null==c||c.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==s||s.disconnect())}),[e]),i}const Ys=[];function Js(e,t){void 0===t&&(t=[]);const n=i(null);return o((()=>{n.current=null}),t),o((()=>{const t=e!==Fl;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?Vl(e,n.current):Fl}function Us(e){return p((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const Qs=[];function _s(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return bl(t)?t:e}const Ks=[{sensor:Ds,options:{}},{sensor:Ms,options:{}}],qs={current:{}},ec={draggable:{measure:ns},droppable:{measure:ns,strategy:Bs.WhileDragging,frequency:Gs.Optimized},dragOverlay:{measure:ts}};class tc extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const nc={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new tc,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:jl},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ec,measureDroppableContainers:jl,windowRect:null,measuringScheduled:!1},rc={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:jl,draggableNodes:new Map,over:null,measureDroppableContainers:jl},ic=m(rc),oc=m(nc);function ac(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new tc}}}function lc(e,t){switch(t.type){case Pl.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Pl.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Pl.DragEnd:case Pl.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Pl.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new tc(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Pl.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new tc(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case Pl.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new tc(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function sc(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=g(ic),a=Al(r),l=Al(null==n?void 0:n.id);return o((()=>{if(!t&&!r&&a&&null!=l){if(!Zl(a))return;if(document.activeElement===a.target)return;const e=i.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=Rl(e);if(t){t.focus();break}}}))}}),[r,t,i,l,a]),null}function cc(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const dc=m({...Fl,scaleX:1,scaleY:1});var uc;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(uc||(uc={}));const pc=c((function(e){var n,a,l,s;let{id:c,accessibility:u,autoScroll:m=!0,children:g,sensors:f=Ks,collisionDetection:b=Ul,measuring:v,modifiers:x,...y}=e;const w=h(lc,void 0,ac),[C,E]=w,[I,A]=function(){const[e]=r((()=>new Set)),t=d((t=>(e.add(t),()=>e.delete(t))),[e]),n=d((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]);return[n,t]}(),[M,H]=r(uc.Uninitialized),N=M===uc.Initialized,{draggable:{active:V,nodes:Z,translate:D},droppable:{containers:L}}=C,O=null!=V?Z.get(V):null,R=i({initial:null,translated:null}),S=p((()=>{var e;return null!=V?{id:V,data:null!=(e=null==O?void 0:O.data)?e:qs,rect:R}:null}),[V,O]),T=i(null),[$,z]=r(null),[B,G]=r(null),W=Cl(y,Object.values(y)),P=Ml("DndDescribedBy",c),j=p((()=>L.getEnabled()),[L]),F=function(e){return p((()=>({draggable:{...ec.draggable,...null==e?void 0:e.draggable},droppable:{...ec.droppable,...null==e?void 0:e.droppable},dragOverlay:{...ec.dragOverlay,...null==e?void 0:e.dragOverlay}})),[null==e?void 0:e.draggable,null==e?void 0:e.droppable,null==e?void 0:e.dragOverlay])}(v),{droppableRects:X,measureDroppableContainers:Y,measuringScheduled:J}=function(e,t){let{dragging:n,dependencies:a,config:l}=t;const[s,c]=r(null),{frequency:u,measure:p,strategy:m}=l,g=i(e),h=function(){switch(m){case Bs.Always:return!1;case Bs.BeforeDragging:return n;default:return!n}}(),f=Cl(h),b=d((function(e){void 0===e&&(e=[]),f.current||c((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[f]),v=i(null),x=El((t=>{if(h&&!n)return Ws;if(!t||t===Ws||g.current!==e||null!=s){const t=new Map;for(let n of e){if(!n)continue;if(s&&s.length>0&&!s.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new vs(p(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,s,n,h,p]);return o((()=>{g.current=e}),[e]),o((()=>{h||b()}),[n,h]),o((()=>{s&&s.length>0&&c(null)}),[JSON.stringify(s)]),o((()=>{h||"number"!=typeof u||null!==v.current||(v.current=setTimeout((()=>{b(),v.current=null}),u))}),[u,h,b,...a]),{droppableRects:x,measureDroppableContainers:b,measuringScheduled:null!=s}}(j,{dragging:N,dependencies:[D.x,D.y],config:F.droppable}),U=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return El((e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(Z,V),Q=p((()=>B?Dl(B):null),[B]),_=function(){const e=!1===(null==$?void 0:$.autoScrollEnabled),t="object"==typeof m?!1===m.enabled:!1===m,n=N&&!e&&!t;if("object"==typeof m)return{...m,enabled:n};return{enabled:n}}(),K=function(e,t){return Ps(e,t)}(U,F.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const a=i(!1),{x:l,y:s}="boolean"==typeof o?{x:o,y:o}:o;yl((()=>{if(!l&&!s||!t)return void(a.current=!1);if(a.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const i=Ql(n(e),r);if(l||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){const t=is(e);t&&t.scrollBy({top:i.y,left:i.x})}}),[t,l,s,r,n])}({activeNode:null!=V?Z.get(V):null,config:_.layoutShiftCompensation,initialRect:K,measure:F.draggable.measure});const q=Xs(U,F.draggable.measure,K),ee=Xs(U?U.parentElement:null),te=i({activatorEvent:null,active:null,activeNode:U,collisionRect:null,collisions:null,droppableRects:X,draggableNodes:Z,draggingNode:null,draggingNodeRect:null,droppableContainers:L,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ne=L.getNodeFor(null==(n=te.current.over)?void 0:n.id),re=function(e){let{measure:t}=e;const[n,i]=r(null),o=js({callback:d((e=>{for(const{target:n}of e)if(bl(n)){i((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),a=d((e=>{const n=_s(e);null==o||o.disconnect(),n&&(null==o||o.observe(n)),i(n?t(n):null)}),[t,o]),[l,s]=Il(a);return p((()=>({nodeRef:l,rect:n,setRef:s})),[n,l,s])}({measure:F.dragOverlay.measure}),ie=null!=(a=re.nodeRef.current)?a:U,oe=N?null!=(l=re.rect)?l:q:null,ae=Boolean(re.nodeRef.current&&re.rect),le=Ql(se=ae?null:q,Ps(se));var se;const ce=Us(ie?hl(ie):null),de=function(e){const t=i(e),n=El((n=>e?n&&n!==Ys&&e&&t.current&&e.parentNode===t.current.parentNode?n:rs(e):Ys),[e]);return o((()=>{t.current=e}),[e]),n}(N?null!=ne?ne:U:null),ue=function(e,t){void 0===t&&(t=ts);const[n]=e,i=Us(n?hl(n):null),[o,a]=r(Qs);function l(){a((()=>e.length?e.map((e=>ds(e)?i:new vs(t(e),e))):Qs))}const s=js({callback:l});return yl((()=>{null==s||s.disconnect(),l(),e.forEach((e=>null==s?void 0:s.observe(e)))}),[e]),o}(de),pe=cc(x,{transform:{x:D.x-le.x,y:D.y-le.y,scaleX:1,scaleY:1},activatorEvent:B,active:S,activeNodeRect:q,containerNodeRect:ee,draggingNodeRect:oe,over:te.current.over,overlayNodeRect:re.rect,scrollableAncestors:de,scrollableAncestorRects:ue,windowRect:ce}),me=Q?Nl(Q,D):null,ge=function(e){const[t,n]=r(null),a=i(e),l=d((e=>{const t=os(e.target);t&&n((e=>e?(e.set(t,ss(t)),new Map(e)):null))}),[]);return o((()=>{const t=a.current;if(e!==t){r(t);const i=e.map((e=>{const t=os(e);return t?(t.addEventListener("scroll",l,{passive:!0}),[t,ss(t)]):null})).filter((e=>null!=e));n(i.length?new Map(i):null),a.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=os(e);null==t||t.removeEventListener("scroll",l)}))}}),[l,e]),p((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>Nl(e,t)),Fl):hs(e):Fl),[e,t])}(de),he=Js(ge),fe=Js(ge,[q]),be=Nl(pe,he),ve=oe?Kl(oe,pe):null,xe=S&&ve?b({active:S,collisionRect:ve,droppableRects:X,droppableContainers:j,pointerCoordinates:me}):null,ye=function(e,t){if(!e||0===e.length)return null;const[n]=e;return n[t]}(xe,"id"),[we,Ce]=r(null),Ee=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ae?pe:Nl(pe,fe),null!=(s=null==we?void 0:we.rect)?s:null,q),Ie=i(null),Ae=d(((e,t)=>{let{sensor:n,options:r}=t;if(null==T.current)return;const i=Z.get(T.current);if(!i)return;const o=e.nativeEvent,a=new n({active:T.current,activeNode:i,event:o,options:r,context:te,onAbort(e){if(!Z.get(e))return;const{onDragAbort:t}=W.current,n={id:e};null==t||t(n),I({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!Z.get(e))return;const{onDragPending:i}=W.current,o={id:e,constraint:t,initialCoordinates:n,offset:r};null==i||i(o),I({type:"onDragPending",event:o})},onStart(e){const t=T.current;if(null==t)return;const n=Z.get(t);if(!n)return;const{onDragStart:r}=W.current,i={activatorEvent:o,active:{id:t,data:n.data,rect:R}};k((()=>{null==r||r(i),H(uc.Initializing),E({type:Pl.DragStart,initialCoordinates:e,active:t}),I({type:"onDragStart",event:i}),z(Ie.current),G(o)}))},onMove(e){E({type:Pl.DragMove,coordinates:e})},onEnd:l(Pl.DragEnd),onCancel:l(Pl.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=te.current;let a=null;if(t&&i){const{cancelDrop:l}=W.current;if(a={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===Pl.DragEnd&&"function"==typeof l){await Promise.resolve(l(a))&&(e=Pl.DragCancel)}}T.current=null,k((()=>{E({type:e}),H(uc.Uninitialized),Ce(null),z(null),G(null),Ie.current=null;const t=e===Pl.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=W.current[t];null==e||e(a),I({type:t,event:a})}}))}}Ie.current=a}),[Z]),ke=d(((e,t)=>(n,r)=>{const i=n.nativeEvent,o=Z.get(r);if(null!==T.current||!o||i.dndKit||i.defaultPrevented)return;const a={active:o};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},T.current=r,Ae(n,t))}),[Z,Ae]),Me=function(e,t){return p((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(f,ke);!function(e){o((()=>{if(!pl)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(f),yl((()=>{q&&M===uc.Initializing&&H(uc.Initialized)}),[q,M]),o((()=>{const{onDragMove:e}=W.current,{active:t,activatorEvent:n,collisions:r,over:i}=te.current;if(!t||!n)return;const o={active:t,activatorEvent:n,collisions:r,delta:{x:be.x,y:be.y},over:i};k((()=>{null==e||e(o),I({type:"onDragMove",event:o})}))}),[be.x,be.y]),o((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=te.current;if(!e||null==T.current||!t||!i)return;const{onDragOver:o}=W.current,a=r.get(ye),l=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,s={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:l};k((()=>{Ce(l),null==o||o(s),I({type:"onDragOver",event:s})}))}),[ye]),yl((()=>{te.current={activatorEvent:B,active:S,activeNode:U,collisionRect:ve,collisions:xe,droppableRects:X,draggableNodes:Z,draggingNode:ie,draggingNodeRect:oe,droppableContainers:L,over:we,scrollableAncestors:de,scrollAdjustedTranslate:be},R.current={initial:oe,translated:ve}}),[S,U,xe,ve,Z,ie,oe,X,L,we,de,be]),$s({..._,delta:D,draggingRect:ve,pointerCoordinates:me,scrollableAncestors:de,scrollableAncestorRects:ue});const He=p((()=>({active:S,activeNode:U,activeNodeRect:q,activatorEvent:B,collisions:xe,containerNodeRect:ee,dragOverlay:re,draggableNodes:Z,droppableContainers:L,droppableRects:X,over:we,measureDroppableContainers:Y,scrollableAncestors:de,scrollableAncestorRects:ue,measuringConfiguration:F,measuringScheduled:J,windowRect:ce})),[S,U,q,B,xe,ee,re,Z,L,X,we,Y,de,ue,F,J,ce]),Ne=p((()=>({activatorEvent:B,activators:Me,active:S,activeNodeRect:q,ariaDescribedById:{draggable:P},dispatch:E,draggableNodes:Z,over:we,measureDroppableContainers:Y})),[B,Me,S,q,E,P,Z,we,Y]);return t.createElement(zl.Provider,{value:A},t.createElement(ic.Provider,{value:Ne},t.createElement(oc.Provider,{value:He},t.createElement(dc.Provider,{value:Ee},g)),t.createElement(sc,{disabled:!1===(null==u?void 0:u.restoreFocus)})),t.createElement(Wl,{...u,hiddenTextDescribedById:P}))})),mc=m(null),gc="button",hc="Draggable";function fc(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=Ml(hc),{activators:a,activatorEvent:l,active:s,activeNodeRect:c,ariaDescribedById:d,draggableNodes:u,over:m}=g(ic),{role:h=gc,roleDescription:f="draggable",tabIndex:b=0}=null!=i?i:{},v=(null==s?void 0:s.id)===t,x=g(v?dc:mc),[y,w]=Il(),[C,E]=Il(),I=function(e,t){return p((()=>e.reduce(((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e}),{})),[e,t])}(a,t),A=Cl(n);yl((()=>(u.set(t,{id:t,key:o,node:y,activatorNode:C,data:A}),()=>{const e=u.get(t);e&&e.key===o&&u.delete(t)})),[u,t]);return{active:s,activatorEvent:l,activeNodeRect:c,attributes:p((()=>({role:h,tabIndex:b,"aria-disabled":r,"aria-pressed":!(!v||h!==gc)||void 0,"aria-roledescription":f,"aria-describedby":d.draggable})),[r,h,b,v,f,d.draggable]),isDragging:v,listeners:r?void 0:I,node:y,over:m,setNodeRef:w,setActivatorNodeRef:E,transform:x}}function bc(){return g(oc)}const vc="Droppable",xc={timeout:25};function yc(e){let{animation:n,children:i}=e;const[o,a]=r(null),[s,c]=r(null),d=Al(i);return i||o||!d||a(d),yl((()=>{if(!s)return;const e=null==o?void 0:o.key,t=null==o?void 0:o.props.id;null!=e&&null!=t?Promise.resolve(n(t,s)).then((()=>{a(null)})):a(null)}),[n,o,s]),t.createElement(t.Fragment,null,i,o?l(o,{ref:c}):null)}const wc={x:0,y:0,scaleX:1,scaleY:1};function Cc(e){let{children:n}=e;return t.createElement(ic.Provider,{value:rc},t.createElement(dc.Provider,{value:wc},n))}const Ec={position:"fixed",touchAction:"none"},Ic=e=>Zl(e)?"transform 250ms ease":void 0,Ac=n(((e,n)=>{let{as:r,activatorEvent:i,adjustScale:o,children:a,className:l,rect:s,style:c,transform:d,transition:u=Ic}=e;if(!s)return null;const p=o?d:{...d,scaleX:1,scaleY:1},m={...Ec,width:s.width,height:s.height,top:s.top,left:s.left,transform:Ll.Transform.toString(p),transformOrigin:o&&i?Xl(i,s):void 0,transition:"function"==typeof u?u(i):u,...c};return t.createElement(r,{className:l,style:m,ref:n},a)})),kc=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(null!=o&&o.active)for(const[e,t]of Object.entries(o.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},Mc={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Ll.Transform.toString(t)},{transform:Ll.Transform.toString(n)}]},sideEffects:kc({styles:{active:{opacity:"0"}}})};function Hc(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return wl(((e,o)=>{if(null===t)return;const a=n.get(e);if(!a)return;const l=a.node.current;if(!l)return;const s=_s(o);if(!s)return;const{transform:c}=hl(o).getComputedStyle(o),d=ql(c);if(!d)return;const u="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...Mc,...e};return e=>{let{active:o,dragOverlay:a,transform:l,...s}=e;if(!t)return;const c={x:a.rect.left-o.rect.left,y:a.rect.top-o.rect.top},d={scaleX:1!==l.scaleX?o.rect.width*l.scaleX/a.rect.width:1,scaleY:1!==l.scaleY?o.rect.height*l.scaleY/a.rect.height:1},u={x:l.x-c.x,y:l.y-c.y,...d},p=i({...s,active:o,dragOverlay:a,transform:{initial:l,final:u}}),[m]=p,g=p[p.length-1];if(JSON.stringify(m)===JSON.stringify(g))return;const h=null==r?void 0:r({active:o,dragOverlay:a,...s}),f=a.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{f.onfinish=()=>{null==h||h(),e()}}))}}(t);return fs(l,i.draggable.measure),u({active:{id:e,data:a.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(s)},droppableContainers:r,measuringConfiguration:i,transform:d})}))}let Nc=0;function Vc(e){return p((()=>{if(null!=e)return Nc++,Nc}),[e])}const Zc=t.memo((e=>{let{adjustScale:n=!1,children:r,dropAnimation:i,style:o,transition:a,modifiers:l,wrapperElement:s="div",className:c,zIndex:d=999}=e;const{activatorEvent:u,active:p,activeNodeRect:m,containerNodeRect:h,draggableNodes:f,droppableContainers:b,dragOverlay:v,over:x,measuringConfiguration:y,scrollableAncestors:w,scrollableAncestorRects:C,windowRect:E}=bc(),I=g(dc),A=Vc(null==p?void 0:p.id),k=cc(l,{activatorEvent:u,active:p,activeNodeRect:m,containerNodeRect:h,draggingNodeRect:v.rect,over:x,overlayNodeRect:v.rect,scrollableAncestors:w,scrollableAncestorRects:C,transform:I,windowRect:E}),M=Ps(m),H=Hc({config:i,draggableNodes:f,droppableContainers:b,measuringConfiguration:y}),N=M?v.setRef:void 0;return t.createElement(Cc,null,t.createElement(yc,{animation:H},p&&A?t.createElement(Ac,{key:A,id:p.id,ref:N,as:s,activatorEvent:u,adjustScale:n,className:c,transition:a,rect:M,style:{zIndex:d,...o},transform:k},r):null))}));function Dc(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Lc(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}function Oc(e){return null!==e&&e>=0}const Rc=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=Dc(t,r,n),a=t[i],l=o[i];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},Sc="Sortable",Tc=t.createContext({activeIndex:-1,containerId:Sc,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Rc,disabled:{draggable:!1,droppable:!1}});function $c(e){let{children:n,id:r,items:a,strategy:l=Rc,disabled:s=!1}=e;const{active:c,dragOverlay:d,droppableRects:u,over:m,measureDroppableContainers:g}=bc(),h=Ml(Sc,r),f=Boolean(null!==d.rect),b=p((()=>a.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[a]),v=null!=c,x=c?b.indexOf(c.id):-1,y=m?b.indexOf(m.id):-1,w=i(b),C=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(b,w.current),E=-1!==y&&-1===x||C,I=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(s);yl((()=>{C&&v&&g(b)}),[C,b,v,g]),o((()=>{w.current=b}),[b]);const A=p((()=>({activeIndex:x,containerId:h,disabled:I,disableTransforms:E,items:b,overIndex:y,useDragOverlay:f,sortedRects:Lc(b,u),strategy:l})),[x,h,I.draggable,I.droppable,E,b,y,u,f,l]);return t.createElement(Tc.Provider,{value:A},n)}const zc=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return Dc(n,r,i).indexOf(t)},Bc=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!r)&&((l===o||i!==a)&&(!!n||a!==i&&t===s))},Gc={duration:200,easing:"ease"},Wc="transform",Pc=Ll.Transition.toString({property:Wc,duration:0,easing:"linear"}),jc={roleDescription:"sortable"};function Fc(e){let{animateLayoutChanges:t=Bc,attributes:n,disabled:a,data:l,getNewIndex:s=zc,id:c,strategy:u,resizeObserverConfig:m,transition:h=Gc}=e;const{items:f,containerId:b,activeIndex:v,disabled:x,disableTransforms:y,sortedRects:w,overIndex:C,useDragOverlay:E,strategy:I}=g(Tc),A=function(e,t){var n,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(a,x),k=f.indexOf(c),M=p((()=>({sortable:{containerId:b,index:k,items:f},...l})),[b,l,k,f]),H=p((()=>f.slice(f.indexOf(c))),[f,c]),{rect:N,node:V,isOver:Z,setNodeRef:D}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const l=Ml(vc),{active:s,dispatch:c,over:u,measureDroppableContainers:p}=g(ic),m=i({disabled:n}),h=i(!1),f=i(null),b=i(null),{disabled:v,updateMeasurementsFor:x,timeout:y}={...xc,...a},w=Cl(null!=x?x:r),C=js({callback:d((()=>{h.current?(null!=b.current&&clearTimeout(b.current),b.current=setTimeout((()=>{p(Array.isArray(w.current)?w.current:[w.current]),b.current=null}),y)):h.current=!0}),[y]),disabled:v||!s}),E=d(((e,t)=>{C&&(t&&(C.unobserve(t),h.current=!1),e&&C.observe(e))}),[C]),[I,A]=Il(E),k=Cl(t);return o((()=>{C&&I.current&&(C.disconnect(),h.current=!1,C.observe(I.current))}),[I,C]),o((()=>(c({type:Pl.RegisterDroppable,element:{id:r,key:l,disabled:n,node:I,rect:f,data:k}}),()=>c({type:Pl.UnregisterDroppable,key:l,id:r}))),[r]),o((()=>{n!==m.current.disabled&&(c({type:Pl.SetDroppableDisabled,id:r,key:l,disabled:n}),m.current.disabled=n)}),[r,l,n,c]),{active:s,rect:f,isOver:(null==u?void 0:u.id)===r,node:I,over:u,setNodeRef:A}}({id:c,data:M,disabled:A.droppable,resizeObserverConfig:{updateMeasurementsFor:H,...m}}),{active:L,activatorEvent:O,activeNodeRect:R,attributes:S,setNodeRef:T,listeners:$,isDragging:z,over:B,setActivatorNodeRef:G,transform:W}=fc({id:c,data:M,attributes:{...jc,...n},disabled:A.draggable}),P=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p((()=>e=>{t.forEach((t=>t(e)))}),t)}(D,T),j=Boolean(L),F=j&&!y&&Oc(v)&&Oc(C),X=!E&&z,Y=X&&F?W:null,J=F?null!=Y?Y:(null!=u?u:I)({rects:w,activeNodeRect:R,activeIndex:v,overIndex:C,index:k}):null,U=Oc(v)&&Oc(C)?s({id:c,items:f,activeIndex:v,overIndex:C}):k,Q=null==L?void 0:L.id,_=i({activeId:Q,items:f,newIndex:U,containerId:b}),K=f!==_.current.items,q=t({active:L,containerId:b,isDragging:z,isSorting:j,id:c,index:k,items:f,newIndex:_.current.newIndex,previousItems:_.current.items,previousContainerId:_.current.containerId,transition:h,wasDragging:null!=_.current.activeId}),ee=function(e){let{disabled:t,index:n,node:a,rect:l}=e;const[s,c]=r(null),d=i(n);return yl((()=>{if(!t&&n!==d.current&&a.current){const e=l.current;if(e){const t=ts(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==d.current&&(d.current=n)}),[t,n,a,l]),o((()=>{s&&c(null)}),[s]),s}({disabled:!q,index:k,node:V,rect:N});return o((()=>{j&&_.current.newIndex!==U&&(_.current.newIndex=U),b!==_.current.containerId&&(_.current.containerId=b),f!==_.current.items&&(_.current.items=f)}),[j,U,b,f]),o((()=>{if(Q===_.current.activeId)return;if(null!=Q&&null==_.current.activeId)return void(_.current.activeId=Q);const e=setTimeout((()=>{_.current.activeId=Q}),50);return()=>clearTimeout(e)}),[Q]),{active:L,activeIndex:v,attributes:S,data:M,rect:N,index:k,newIndex:U,items:f,isOver:Z,isSorting:j,isDragging:z,listeners:$,node:V,overIndex:C,over:B,setNodeRef:P,setActivatorNodeRef:G,setDroppableNodeRef:D,setDraggableNodeRef:T,transform:null!=ee?ee:J,transition:function(){if(ee||K&&_.current.newIndex===k)return Pc;if(X&&!Zl(O)||!h)return;if(j||q)return Ll.Transition.toString({...h,property:Wc});return}()}}Cs.Down,Cs.Right,Cs.Up,Cs.Left;const Xc=e=>{let{transform:t}=e;return{...t,x:0}},Yc=m({isSorting:!1,setIsSorting:e=>{}}),Jc=m({isGhost:!1}),Uc=v.div`
|
|
854
|
+
`;ul.displayName="ContextMenu2TriggerItem";const pl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ml(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function gl(e){return"nodeType"in e}function hl(e){var t,n;return e?ml(e)?e:gl(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function fl(e){const{Document:t}=hl(e);return e instanceof t}function bl(e){return!ml(e)&&e instanceof hl(e).HTMLElement}function vl(e){return e instanceof hl(e).SVGElement}function xl(e){return e?ml(e)?e.document:gl(e)?fl(e)?e:bl(e)||vl(e)?e.ownerDocument:document:document:document}const yl=pl?u:o;function wl(e){const t=i(e);return yl((()=>{t.current=e})),d((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function Cl(e,t){void 0===t&&(t=[e]);const n=i(e);return yl((()=>{n.current!==e&&(n.current=e)}),t),n}function El(e,t){const n=i();return p((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function Il(e){const t=wl(e),n=i(null),r=d((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,r]}function Al(e){const t=i();return o((()=>{t.current=e}),[e]),t.current}let kl={};function Ml(e,t){return p((()=>{if(t)return t;const n=null==kl[e]?0:kl[e]+1;return kl[e]=n,e+"-"+n}),[e,t])}function Hl(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const Nl=Hl(1),Vl=Hl(-1);function Zl(e){if(!e)return!1;const{KeyboardEvent:t}=hl(e.target);return t&&e instanceof t}function Dl(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=hl(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Ll=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Ll.Translate.toString(e),Ll.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Ol="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Rl(e){return e.matches(Ol)?e:e.querySelector(Ol)}const Sl={display:"none"};function $l(e){let{id:n,value:r}=e;return t.createElement("div",{id:n,style:Sl},r)}function Tl(e){let{id:n,announcement:r,ariaLiveType:i="assertive"}=e;return t.createElement("div",{id:n,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":i,"aria-atomic":!0},r)}const zl=m(null);const Bl={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},Gl={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Wl(e){let{announcements:n=Gl,container:i,hiddenTextDescribedById:a,screenReaderInstructions:l=Bl}=e;const{announce:s,announcement:c}=function(){const[e,t]=r("");return{announce:d((e=>{null!=e&&t(e)}),[]),announcement:e}}(),u=Ml("DndLiveRegion"),[m,h]=r(!1);if(o((()=>{h(!0)}),[]),function(e){const t=g(zl);o((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}(p((()=>({onDragStart(e){let{active:t}=e;s(n.onDragStart({active:t}))},onDragMove(e){let{active:t,over:r}=e;n.onDragMove&&s(n.onDragMove({active:t,over:r}))},onDragOver(e){let{active:t,over:r}=e;s(n.onDragOver({active:t,over:r}))},onDragEnd(e){let{active:t,over:r}=e;s(n.onDragEnd({active:t,over:r}))},onDragCancel(e){let{active:t,over:r}=e;s(n.onDragCancel({active:t,over:r}))}})),[s,n])),!m)return null;const f=t.createElement(t.Fragment,null,t.createElement($l,{id:a,value:l.draggable}),t.createElement(Tl,{id:u,announcement:c}));return i?A(f,i):f}var Pl;function jl(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(Pl||(Pl={}));const Fl=Object.freeze({x:0,y:0});function Xl(e,t){const n=Dl(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function Yl(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Jl(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,l=o-n;if(r<i&&n<o){const n=t.width*t.height,r=e.width*e.height,i=a*l;return Number((i/(n+r-i)).toFixed(4))}return 0}const Ul=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=Jl(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(Yl)};function Ql(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Fl}function _l(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const Kl=_l(1);function ql(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const es={ignoreTransform:!1};function ts(e,t){void 0===t&&(t=es);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=hl(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=ql(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:l}=r,s=e.left-a-(1-i)*parseFloat(n),c=e.top-l-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=i?e.width/i:e.width,u=o?e.height/o:e.height;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s}}(n,t,r))}const{top:r,left:i,width:o,height:a,bottom:l,right:s}=n;return{top:r,left:i,width:o,height:a,bottom:l,right:s}}function ns(e){return ts(e,{ignoreTransform:!0})}function rs(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if(fl(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!bl(i)||vl(i))return n;if(n.includes(i))return n;const o=hl(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=hl(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,o)&&n.push(i),function(e,t){return void 0===t&&(t=hl(e).getComputedStyle(e)),"fixed"===t.position}(i,o)?n:r(i.parentNode)}(e):n}function is(e){const[t]=rs(e,1);return null!=t?t:null}function os(e){return pl&&e?ml(e)?e:gl(e)?fl(e)||e===xl(e).scrollingElement?window:bl(e)?e:null:null:null}function as(e){return ml(e)?e.scrollX:e.scrollLeft}function ls(e){return ml(e)?e.scrollY:e.scrollTop}function ss(e){return{x:as(e),y:ls(e)}}var cs;function ds(e){return!(!pl||!e)&&e===document.scrollingElement}function us(e){const t={x:0,y:0},n=ds(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(cs||(cs={}));const ps={x:.2,y:.2};function ms(e,t,n,r,i){let{top:o,left:a,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===i&&(i=ps);const{isTop:c,isBottom:d,isLeft:u,isRight:p}=us(e),m={x:0,y:0},g={x:0,y:0},h=t.height*i.y,f=t.width*i.x;return!c&&o<=t.top+h?(m.y=cs.Backward,g.y=r*Math.abs((t.top+h-o)/h)):!d&&s>=t.bottom-h&&(m.y=cs.Forward,g.y=r*Math.abs((t.bottom-h-s)/h)),!p&&l>=t.right-f?(m.x=cs.Forward,g.x=r*Math.abs((t.right-f-l)/f)):!u&&a<=t.left+f&&(m.x=cs.Backward,g.x=r*Math.abs((t.left+f-a)/f)),{direction:m,speed:g}}function gs(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function hs(e){return e.reduce(((e,t)=>Nl(e,ss(t))),Fl)}function fs(e,t){if(void 0===t&&(t=ts),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);is(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const bs=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+as(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+ls(t)),0)}]];class vs{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=rs(t),r=hs(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of bs)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[o]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class xs{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ys(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var ws,Cs;function Es(e){e.preventDefault()}function Is(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(ws||(ws={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(Cs||(Cs={}));const As={start:[Cs.Space,Cs.Enter],cancel:[Cs.Esc],end:[Cs.Space,Cs.Enter,Cs.Tab]},ks=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Cs.Right:return{...n,x:n.x+25};case Cs.Left:return{...n,x:n.x-25};case Cs.Down:return{...n,y:n.y+25};case Cs.Up:return{...n,y:n.y-25}}};class Ms{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new xs(xl(t)),this.windowListeners=new xs(hl(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ws.Resize,this.handleCancel),this.windowListeners.add(ws.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(ws.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&fs(n),t(Fl)}handleKeyDown(e){if(Zl(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=As,coordinateGetter:o=ks,scrollBehavior:a="smooth"}=r,{code:l}=e;if(i.end.includes(l))return void this.handleEnd(e);if(i.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:s}=n.current,c=s?{x:s.left,y:s.top}:Fl;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=Vl(d,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:l,isLeft:s,isBottom:c,maxScroll:u,minScroll:p}=us(n),m=gs(n),g={x:Math.min(i===Cs.Right?m.right-m.width/2:m.right,Math.max(i===Cs.Right?m.left:m.left+m.width/2,d.x)),y:Math.min(i===Cs.Down?m.bottom-m.height/2:m.bottom,Math.max(i===Cs.Down?m.top:m.top+m.height/2,d.y))},h=i===Cs.Right&&!l||i===Cs.Left&&!s,f=i===Cs.Down&&!c||i===Cs.Up&&!o;if(h&&g.x!==d.x){const e=n.scrollLeft+t.x,o=i===Cs.Right&&e<=u.x||i===Cs.Left&&e>=p.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=o?n.scrollLeft-e:i===Cs.Right?n.scrollLeft-u.x:n.scrollLeft-p.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(f&&g.y!==d.y){const e=n.scrollTop+t.y,o=i===Cs.Down&&e<=u.y||i===Cs.Up&&e>=p.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=o?n.scrollTop-e:i===Cs.Down?n.scrollTop-u.y:n.scrollTop-p.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,Nl(Vl(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Hs(e){return Boolean(e&&"distance"in e)}function Ns(e){return Boolean(e&&"delay"in e)}Ms.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=As,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class Vs{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=hl(e);return e instanceof t?e:xl(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=xl(o),this.documentListeners=new xs(this.document),this.listeners=new xs(n),this.windowListeners=new xs(hl(o)),this.initialCoordinates=null!=(r=Dl(i))?r:Fl,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(ws.Resize,this.handleCancel),this.windowListeners.add(ws.DragStart,Es),this.windowListeners.add(ws.VisibilityChange,this.handleCancel),this.windowListeners.add(ws.ContextMenu,Es),this.documentListeners.add(ws.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ns(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(Hs(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(ws.Click,Is,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ws.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;const l=null!=(t=Dl(e))?t:Fl,s=Vl(r,l);if(!n&&a){if(Hs(a)){if(null!=a.tolerance&&ys(s,a.tolerance))return this.handleCancel();if(ys(s,a.distance))return this.handleStart()}return Ns(a)&&ys(s,a.tolerance)?this.handleCancel():void this.handlePending(a,s)}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===Cs.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Zs={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Ds extends Vs{constructor(e){const{event:t}=e,n=xl(t.target);super(e,Zs,n)}}Ds.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const Ls={move:{name:"mousemove"},end:{name:"mouseup"}};var Os;!function(e){e[e.RightClick=2]="RightClick"}(Os||(Os={}));(class extends Vs{constructor(e){super(e,Ls,xl(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Os.RightClick&&(null==r||r({event:n}),!0)}}];const Rs={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var Ss,$s;function Ts(e){let{acceleration:t,activator:n=Ss.Pointer,canScroll:r,draggingRect:a,enabled:l,interval:s=5,order:c=$s.TreeOrder,pointerCoordinates:u,scrollableAncestors:m,scrollableAncestorRects:g,delta:h,threshold:f}=e;const b=function(e){let{delta:t,disabled:n}=e;const r=Al(t);return El((e=>{if(n||!r||!e)return zs;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[cs.Backward]:e.x[cs.Backward]||-1===i.x,[cs.Forward]:e.x[cs.Forward]||1===i.x},y:{[cs.Backward]:e.y[cs.Backward]||-1===i.y,[cs.Forward]:e.y[cs.Forward]||1===i.y}}}),[n,t,r])}({delta:h,disabled:!l}),[v,x]=function(){const e=i(null);return[d(((t,n)=>{e.current=setInterval(t,n)}),[]),d((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),y=i({x:0,y:0}),w=i({x:0,y:0}),C=p((()=>{switch(n){case Ss.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case Ss.DraggableRect:return a}}),[n,a,u]),E=i(null),I=d((()=>{const e=E.current;if(!e)return;const t=y.current.x*w.current.x,n=y.current.y*w.current.y;e.scrollBy(t,n)}),[]),A=p((()=>c===$s.TreeOrder?[...m].reverse():m),[c,m]);o((()=>{if(l&&m.length&&C){for(const e of A){if(!1===(null==r?void 0:r(e)))continue;const n=m.indexOf(e),i=g[n];if(!i)continue;const{direction:o,speed:a}=ms(e,i,C,t,f);for(const e of["x","y"])b[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0)return x(),E.current=e,v(I,s),y.current=a,void(w.current=o)}y.current={x:0,y:0},w.current={x:0,y:0},x()}else x()}),[t,I,r,x,l,s,JSON.stringify(C),JSON.stringify(b),v,m,A,g,JSON.stringify(f)])}(class extends Vs{constructor(e){super(e,Rs)}static setup(){return window.addEventListener(Rs.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Rs.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Ss||(Ss={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}($s||($s={}));const zs={x:{[cs.Backward]:!1,[cs.Forward]:!1},y:{[cs.Backward]:!1,[cs.Forward]:!1}};var Bs,Gs;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Bs||(Bs={})),function(e){e.Optimized="optimized"}(Gs||(Gs={}));const Ws=new Map;function Ps(e,t){return El((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function js(e){let{callback:t,disabled:n}=e;const r=wl(t),i=p((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)}),[n]);return o((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function Fs(e){return new vs(ts(e),e)}function Xs(e,t,n){void 0===t&&(t=Fs);const[i,a]=r(null);function l(){a((r=>{if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=r?r:n)?i:null;const o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o}))}const s=function(e){let{callback:t,disabled:n}=e;const r=wl(t),i=p((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)}),[r,n]);return o((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){l();break}}}}),c=js({callback:l});return yl((()=>{l(),e?(null==c||c.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==s||s.disconnect())}),[e]),i}const Ys=[];function Js(e,t){void 0===t&&(t=[]);const n=i(null);return o((()=>{n.current=null}),t),o((()=>{const t=e!==Fl;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?Vl(e,n.current):Fl}function Us(e){return p((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const Qs=[];function _s(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return bl(t)?t:e}const Ks=[{sensor:Ds,options:{}},{sensor:Ms,options:{}}],qs={current:{}},ec={draggable:{measure:ns},droppable:{measure:ns,strategy:Bs.WhileDragging,frequency:Gs.Optimized},dragOverlay:{measure:ts}};class tc extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const nc={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new tc,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:jl},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ec,measureDroppableContainers:jl,windowRect:null,measuringScheduled:!1},rc={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:jl,draggableNodes:new Map,over:null,measureDroppableContainers:jl},ic=m(rc),oc=m(nc);function ac(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new tc}}}function lc(e,t){switch(t.type){case Pl.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Pl.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Pl.DragEnd:case Pl.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Pl.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new tc(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Pl.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new tc(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case Pl.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new tc(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function sc(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=g(ic),a=Al(r),l=Al(null==n?void 0:n.id);return o((()=>{if(!t&&!r&&a&&null!=l){if(!Zl(a))return;if(document.activeElement===a.target)return;const e=i.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=Rl(e);if(t){t.focus();break}}}))}}),[r,t,i,l,a]),null}function cc(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const dc=m({...Fl,scaleX:1,scaleY:1});var uc;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(uc||(uc={}));const pc=c((function(e){var n,a,l,s;let{id:c,accessibility:u,autoScroll:m=!0,children:g,sensors:f=Ks,collisionDetection:b=Ul,measuring:v,modifiers:x,...y}=e;const w=h(lc,void 0,ac),[C,E]=w,[I,A]=function(){const[e]=r((()=>new Set)),t=d((t=>(e.add(t),()=>e.delete(t))),[e]),n=d((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]);return[n,t]}(),[M,H]=r(uc.Uninitialized),N=M===uc.Initialized,{draggable:{active:V,nodes:Z,translate:D},droppable:{containers:L}}=C,O=null!=V?Z.get(V):null,R=i({initial:null,translated:null}),S=p((()=>{var e;return null!=V?{id:V,data:null!=(e=null==O?void 0:O.data)?e:qs,rect:R}:null}),[V,O]),$=i(null),[T,z]=r(null),[B,G]=r(null),W=Cl(y,Object.values(y)),P=Ml("DndDescribedBy",c),j=p((()=>L.getEnabled()),[L]),F=function(e){return p((()=>({draggable:{...ec.draggable,...null==e?void 0:e.draggable},droppable:{...ec.droppable,...null==e?void 0:e.droppable},dragOverlay:{...ec.dragOverlay,...null==e?void 0:e.dragOverlay}})),[null==e?void 0:e.draggable,null==e?void 0:e.droppable,null==e?void 0:e.dragOverlay])}(v),{droppableRects:X,measureDroppableContainers:Y,measuringScheduled:J}=function(e,t){let{dragging:n,dependencies:a,config:l}=t;const[s,c]=r(null),{frequency:u,measure:p,strategy:m}=l,g=i(e),h=function(){switch(m){case Bs.Always:return!1;case Bs.BeforeDragging:return n;default:return!n}}(),f=Cl(h),b=d((function(e){void 0===e&&(e=[]),f.current||c((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[f]),v=i(null),x=El((t=>{if(h&&!n)return Ws;if(!t||t===Ws||g.current!==e||null!=s){const t=new Map;for(let n of e){if(!n)continue;if(s&&s.length>0&&!s.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new vs(p(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,s,n,h,p]);return o((()=>{g.current=e}),[e]),o((()=>{h||b()}),[n,h]),o((()=>{s&&s.length>0&&c(null)}),[JSON.stringify(s)]),o((()=>{h||"number"!=typeof u||null!==v.current||(v.current=setTimeout((()=>{b(),v.current=null}),u))}),[u,h,b,...a]),{droppableRects:x,measureDroppableContainers:b,measuringScheduled:null!=s}}(j,{dragging:N,dependencies:[D.x,D.y],config:F.droppable}),U=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return El((e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(Z,V),Q=p((()=>B?Dl(B):null),[B]),_=function(){const e=!1===(null==T?void 0:T.autoScrollEnabled),t="object"==typeof m?!1===m.enabled:!1===m,n=N&&!e&&!t;if("object"==typeof m)return{...m,enabled:n};return{enabled:n}}(),K=function(e,t){return Ps(e,t)}(U,F.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const a=i(!1),{x:l,y:s}="boolean"==typeof o?{x:o,y:o}:o;yl((()=>{if(!l&&!s||!t)return void(a.current=!1);if(a.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const i=Ql(n(e),r);if(l||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){const t=is(e);t&&t.scrollBy({top:i.y,left:i.x})}}),[t,l,s,r,n])}({activeNode:null!=V?Z.get(V):null,config:_.layoutShiftCompensation,initialRect:K,measure:F.draggable.measure});const q=Xs(U,F.draggable.measure,K),ee=Xs(U?U.parentElement:null),te=i({activatorEvent:null,active:null,activeNode:U,collisionRect:null,collisions:null,droppableRects:X,draggableNodes:Z,draggingNode:null,draggingNodeRect:null,droppableContainers:L,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ne=L.getNodeFor(null==(n=te.current.over)?void 0:n.id),re=function(e){let{measure:t}=e;const[n,i]=r(null),o=js({callback:d((e=>{for(const{target:n}of e)if(bl(n)){i((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),a=d((e=>{const n=_s(e);null==o||o.disconnect(),n&&(null==o||o.observe(n)),i(n?t(n):null)}),[t,o]),[l,s]=Il(a);return p((()=>({nodeRef:l,rect:n,setRef:s})),[n,l,s])}({measure:F.dragOverlay.measure}),ie=null!=(a=re.nodeRef.current)?a:U,oe=N?null!=(l=re.rect)?l:q:null,ae=Boolean(re.nodeRef.current&&re.rect),le=Ql(se=ae?null:q,Ps(se));var se;const ce=Us(ie?hl(ie):null),de=function(e){const t=i(e),n=El((n=>e?n&&n!==Ys&&e&&t.current&&e.parentNode===t.current.parentNode?n:rs(e):Ys),[e]);return o((()=>{t.current=e}),[e]),n}(N?null!=ne?ne:U:null),ue=function(e,t){void 0===t&&(t=ts);const[n]=e,i=Us(n?hl(n):null),[o,a]=r(Qs);function l(){a((()=>e.length?e.map((e=>ds(e)?i:new vs(t(e),e))):Qs))}const s=js({callback:l});return yl((()=>{null==s||s.disconnect(),l(),e.forEach((e=>null==s?void 0:s.observe(e)))}),[e]),o}(de),pe=cc(x,{transform:{x:D.x-le.x,y:D.y-le.y,scaleX:1,scaleY:1},activatorEvent:B,active:S,activeNodeRect:q,containerNodeRect:ee,draggingNodeRect:oe,over:te.current.over,overlayNodeRect:re.rect,scrollableAncestors:de,scrollableAncestorRects:ue,windowRect:ce}),me=Q?Nl(Q,D):null,ge=function(e){const[t,n]=r(null),a=i(e),l=d((e=>{const t=os(e.target);t&&n((e=>e?(e.set(t,ss(t)),new Map(e)):null))}),[]);return o((()=>{const t=a.current;if(e!==t){r(t);const i=e.map((e=>{const t=os(e);return t?(t.addEventListener("scroll",l,{passive:!0}),[t,ss(t)]):null})).filter((e=>null!=e));n(i.length?new Map(i):null),a.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=os(e);null==t||t.removeEventListener("scroll",l)}))}}),[l,e]),p((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>Nl(e,t)),Fl):hs(e):Fl),[e,t])}(de),he=Js(ge),fe=Js(ge,[q]),be=Nl(pe,he),ve=oe?Kl(oe,pe):null,xe=S&&ve?b({active:S,collisionRect:ve,droppableRects:X,droppableContainers:j,pointerCoordinates:me}):null,ye=function(e,t){if(!e||0===e.length)return null;const[n]=e;return n[t]}(xe,"id"),[we,Ce]=r(null),Ee=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ae?pe:Nl(pe,fe),null!=(s=null==we?void 0:we.rect)?s:null,q),Ie=i(null),Ae=d(((e,t)=>{let{sensor:n,options:r}=t;if(null==$.current)return;const i=Z.get($.current);if(!i)return;const o=e.nativeEvent,a=new n({active:$.current,activeNode:i,event:o,options:r,context:te,onAbort(e){if(!Z.get(e))return;const{onDragAbort:t}=W.current,n={id:e};null==t||t(n),I({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!Z.get(e))return;const{onDragPending:i}=W.current,o={id:e,constraint:t,initialCoordinates:n,offset:r};null==i||i(o),I({type:"onDragPending",event:o})},onStart(e){const t=$.current;if(null==t)return;const n=Z.get(t);if(!n)return;const{onDragStart:r}=W.current,i={activatorEvent:o,active:{id:t,data:n.data,rect:R}};k((()=>{null==r||r(i),H(uc.Initializing),E({type:Pl.DragStart,initialCoordinates:e,active:t}),I({type:"onDragStart",event:i}),z(Ie.current),G(o)}))},onMove(e){E({type:Pl.DragMove,coordinates:e})},onEnd:l(Pl.DragEnd),onCancel:l(Pl.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=te.current;let a=null;if(t&&i){const{cancelDrop:l}=W.current;if(a={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===Pl.DragEnd&&"function"==typeof l){await Promise.resolve(l(a))&&(e=Pl.DragCancel)}}$.current=null,k((()=>{E({type:e}),H(uc.Uninitialized),Ce(null),z(null),G(null),Ie.current=null;const t=e===Pl.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=W.current[t];null==e||e(a),I({type:t,event:a})}}))}}Ie.current=a}),[Z]),ke=d(((e,t)=>(n,r)=>{const i=n.nativeEvent,o=Z.get(r);if(null!==$.current||!o||i.dndKit||i.defaultPrevented)return;const a={active:o};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},$.current=r,Ae(n,t))}),[Z,Ae]),Me=function(e,t){return p((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(f,ke);!function(e){o((()=>{if(!pl)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(f),yl((()=>{q&&M===uc.Initializing&&H(uc.Initialized)}),[q,M]),o((()=>{const{onDragMove:e}=W.current,{active:t,activatorEvent:n,collisions:r,over:i}=te.current;if(!t||!n)return;const o={active:t,activatorEvent:n,collisions:r,delta:{x:be.x,y:be.y},over:i};k((()=>{null==e||e(o),I({type:"onDragMove",event:o})}))}),[be.x,be.y]),o((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=te.current;if(!e||null==$.current||!t||!i)return;const{onDragOver:o}=W.current,a=r.get(ye),l=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,s={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:l};k((()=>{Ce(l),null==o||o(s),I({type:"onDragOver",event:s})}))}),[ye]),yl((()=>{te.current={activatorEvent:B,active:S,activeNode:U,collisionRect:ve,collisions:xe,droppableRects:X,draggableNodes:Z,draggingNode:ie,draggingNodeRect:oe,droppableContainers:L,over:we,scrollableAncestors:de,scrollAdjustedTranslate:be},R.current={initial:oe,translated:ve}}),[S,U,xe,ve,Z,ie,oe,X,L,we,de,be]),Ts({..._,delta:D,draggingRect:ve,pointerCoordinates:me,scrollableAncestors:de,scrollableAncestorRects:ue});const He=p((()=>({active:S,activeNode:U,activeNodeRect:q,activatorEvent:B,collisions:xe,containerNodeRect:ee,dragOverlay:re,draggableNodes:Z,droppableContainers:L,droppableRects:X,over:we,measureDroppableContainers:Y,scrollableAncestors:de,scrollableAncestorRects:ue,measuringConfiguration:F,measuringScheduled:J,windowRect:ce})),[S,U,q,B,xe,ee,re,Z,L,X,we,Y,de,ue,F,J,ce]),Ne=p((()=>({activatorEvent:B,activators:Me,active:S,activeNodeRect:q,ariaDescribedById:{draggable:P},dispatch:E,draggableNodes:Z,over:we,measureDroppableContainers:Y})),[B,Me,S,q,E,P,Z,we,Y]);return t.createElement(zl.Provider,{value:A},t.createElement(ic.Provider,{value:Ne},t.createElement(oc.Provider,{value:He},t.createElement(dc.Provider,{value:Ee},g)),t.createElement(sc,{disabled:!1===(null==u?void 0:u.restoreFocus)})),t.createElement(Wl,{...u,hiddenTextDescribedById:P}))})),mc=m(null),gc="button",hc="Draggable";function fc(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=Ml(hc),{activators:a,activatorEvent:l,active:s,activeNodeRect:c,ariaDescribedById:d,draggableNodes:u,over:m}=g(ic),{role:h=gc,roleDescription:f="draggable",tabIndex:b=0}=null!=i?i:{},v=(null==s?void 0:s.id)===t,x=g(v?dc:mc),[y,w]=Il(),[C,E]=Il(),I=function(e,t){return p((()=>e.reduce(((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e}),{})),[e,t])}(a,t),A=Cl(n);yl((()=>(u.set(t,{id:t,key:o,node:y,activatorNode:C,data:A}),()=>{const e=u.get(t);e&&e.key===o&&u.delete(t)})),[u,t]);return{active:s,activatorEvent:l,activeNodeRect:c,attributes:p((()=>({role:h,tabIndex:b,"aria-disabled":r,"aria-pressed":!(!v||h!==gc)||void 0,"aria-roledescription":f,"aria-describedby":d.draggable})),[r,h,b,v,f,d.draggable]),isDragging:v,listeners:r?void 0:I,node:y,over:m,setNodeRef:w,setActivatorNodeRef:E,transform:x}}function bc(){return g(oc)}const vc="Droppable",xc={timeout:25};function yc(e){let{animation:n,children:i}=e;const[o,a]=r(null),[s,c]=r(null),d=Al(i);return i||o||!d||a(d),yl((()=>{if(!s)return;const e=null==o?void 0:o.key,t=null==o?void 0:o.props.id;null!=e&&null!=t?Promise.resolve(n(t,s)).then((()=>{a(null)})):a(null)}),[n,o,s]),t.createElement(t.Fragment,null,i,o?l(o,{ref:c}):null)}const wc={x:0,y:0,scaleX:1,scaleY:1};function Cc(e){let{children:n}=e;return t.createElement(ic.Provider,{value:rc},t.createElement(dc.Provider,{value:wc},n))}const Ec={position:"fixed",touchAction:"none"},Ic=e=>Zl(e)?"transform 250ms ease":void 0,Ac=n(((e,n)=>{let{as:r,activatorEvent:i,adjustScale:o,children:a,className:l,rect:s,style:c,transform:d,transition:u=Ic}=e;if(!s)return null;const p=o?d:{...d,scaleX:1,scaleY:1},m={...Ec,width:s.width,height:s.height,top:s.top,left:s.left,transform:Ll.Transform.toString(p),transformOrigin:o&&i?Xl(i,s):void 0,transition:"function"==typeof u?u(i):u,...c};return t.createElement(r,{className:l,style:m,ref:n},a)})),kc=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(null!=o&&o.active)for(const[e,t]of Object.entries(o.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},Mc={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Ll.Transform.toString(t)},{transform:Ll.Transform.toString(n)}]},sideEffects:kc({styles:{active:{opacity:"0"}}})};function Hc(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return wl(((e,o)=>{if(null===t)return;const a=n.get(e);if(!a)return;const l=a.node.current;if(!l)return;const s=_s(o);if(!s)return;const{transform:c}=hl(o).getComputedStyle(o),d=ql(c);if(!d)return;const u="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...Mc,...e};return e=>{let{active:o,dragOverlay:a,transform:l,...s}=e;if(!t)return;const c={x:a.rect.left-o.rect.left,y:a.rect.top-o.rect.top},d={scaleX:1!==l.scaleX?o.rect.width*l.scaleX/a.rect.width:1,scaleY:1!==l.scaleY?o.rect.height*l.scaleY/a.rect.height:1},u={x:l.x-c.x,y:l.y-c.y,...d},p=i({...s,active:o,dragOverlay:a,transform:{initial:l,final:u}}),[m]=p,g=p[p.length-1];if(JSON.stringify(m)===JSON.stringify(g))return;const h=null==r?void 0:r({active:o,dragOverlay:a,...s}),f=a.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{f.onfinish=()=>{null==h||h(),e()}}))}}(t);return fs(l,i.draggable.measure),u({active:{id:e,data:a.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(s)},droppableContainers:r,measuringConfiguration:i,transform:d})}))}let Nc=0;function Vc(e){return p((()=>{if(null!=e)return Nc++,Nc}),[e])}const Zc=t.memo((e=>{let{adjustScale:n=!1,children:r,dropAnimation:i,style:o,transition:a,modifiers:l,wrapperElement:s="div",className:c,zIndex:d=999}=e;const{activatorEvent:u,active:p,activeNodeRect:m,containerNodeRect:h,draggableNodes:f,droppableContainers:b,dragOverlay:v,over:x,measuringConfiguration:y,scrollableAncestors:w,scrollableAncestorRects:C,windowRect:E}=bc(),I=g(dc),A=Vc(null==p?void 0:p.id),k=cc(l,{activatorEvent:u,active:p,activeNodeRect:m,containerNodeRect:h,draggingNodeRect:v.rect,over:x,overlayNodeRect:v.rect,scrollableAncestors:w,scrollableAncestorRects:C,transform:I,windowRect:E}),M=Ps(m),H=Hc({config:i,draggableNodes:f,droppableContainers:b,measuringConfiguration:y}),N=M?v.setRef:void 0;return t.createElement(Cc,null,t.createElement(yc,{animation:H},p&&A?t.createElement(Ac,{key:A,id:p.id,ref:N,as:s,activatorEvent:u,adjustScale:n,className:c,transition:a,rect:M,style:{zIndex:d,...o},transform:k},r):null))}));function Dc(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Lc(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}function Oc(e){return null!==e&&e>=0}const Rc=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=Dc(t,r,n),a=t[i],l=o[i];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},Sc="Sortable",$c=t.createContext({activeIndex:-1,containerId:Sc,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Rc,disabled:{draggable:!1,droppable:!1}});function Tc(e){let{children:n,id:r,items:a,strategy:l=Rc,disabled:s=!1}=e;const{active:c,dragOverlay:d,droppableRects:u,over:m,measureDroppableContainers:g}=bc(),h=Ml(Sc,r),f=Boolean(null!==d.rect),b=p((()=>a.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[a]),v=null!=c,x=c?b.indexOf(c.id):-1,y=m?b.indexOf(m.id):-1,w=i(b),C=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(b,w.current),E=-1!==y&&-1===x||C,I=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(s);yl((()=>{C&&v&&g(b)}),[C,b,v,g]),o((()=>{w.current=b}),[b]);const A=p((()=>({activeIndex:x,containerId:h,disabled:I,disableTransforms:E,items:b,overIndex:y,useDragOverlay:f,sortedRects:Lc(b,u),strategy:l})),[x,h,I.draggable,I.droppable,E,b,y,u,f,l]);return t.createElement($c.Provider,{value:A},n)}const zc=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return Dc(n,r,i).indexOf(t)},Bc=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!r)&&((l===o||i!==a)&&(!!n||a!==i&&t===s))},Gc={duration:200,easing:"ease"},Wc="transform",Pc=Ll.Transition.toString({property:Wc,duration:0,easing:"linear"}),jc={roleDescription:"sortable"};function Fc(e){let{animateLayoutChanges:t=Bc,attributes:n,disabled:a,data:l,getNewIndex:s=zc,id:c,strategy:u,resizeObserverConfig:m,transition:h=Gc}=e;const{items:f,containerId:b,activeIndex:v,disabled:x,disableTransforms:y,sortedRects:w,overIndex:C,useDragOverlay:E,strategy:I}=g($c),A=function(e,t){var n,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(a,x),k=f.indexOf(c),M=p((()=>({sortable:{containerId:b,index:k,items:f},...l})),[b,l,k,f]),H=p((()=>f.slice(f.indexOf(c))),[f,c]),{rect:N,node:V,isOver:Z,setNodeRef:D}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const l=Ml(vc),{active:s,dispatch:c,over:u,measureDroppableContainers:p}=g(ic),m=i({disabled:n}),h=i(!1),f=i(null),b=i(null),{disabled:v,updateMeasurementsFor:x,timeout:y}={...xc,...a},w=Cl(null!=x?x:r),C=js({callback:d((()=>{h.current?(null!=b.current&&clearTimeout(b.current),b.current=setTimeout((()=>{p(Array.isArray(w.current)?w.current:[w.current]),b.current=null}),y)):h.current=!0}),[y]),disabled:v||!s}),E=d(((e,t)=>{C&&(t&&(C.unobserve(t),h.current=!1),e&&C.observe(e))}),[C]),[I,A]=Il(E),k=Cl(t);return o((()=>{C&&I.current&&(C.disconnect(),h.current=!1,C.observe(I.current))}),[I,C]),o((()=>(c({type:Pl.RegisterDroppable,element:{id:r,key:l,disabled:n,node:I,rect:f,data:k}}),()=>c({type:Pl.UnregisterDroppable,key:l,id:r}))),[r]),o((()=>{n!==m.current.disabled&&(c({type:Pl.SetDroppableDisabled,id:r,key:l,disabled:n}),m.current.disabled=n)}),[r,l,n,c]),{active:s,rect:f,isOver:(null==u?void 0:u.id)===r,node:I,over:u,setNodeRef:A}}({id:c,data:M,disabled:A.droppable,resizeObserverConfig:{updateMeasurementsFor:H,...m}}),{active:L,activatorEvent:O,activeNodeRect:R,attributes:S,setNodeRef:$,listeners:T,isDragging:z,over:B,setActivatorNodeRef:G,transform:W}=fc({id:c,data:M,attributes:{...jc,...n},disabled:A.draggable}),P=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p((()=>e=>{t.forEach((t=>t(e)))}),t)}(D,$),j=Boolean(L),F=j&&!y&&Oc(v)&&Oc(C),X=!E&&z,Y=X&&F?W:null,J=F?null!=Y?Y:(null!=u?u:I)({rects:w,activeNodeRect:R,activeIndex:v,overIndex:C,index:k}):null,U=Oc(v)&&Oc(C)?s({id:c,items:f,activeIndex:v,overIndex:C}):k,Q=null==L?void 0:L.id,_=i({activeId:Q,items:f,newIndex:U,containerId:b}),K=f!==_.current.items,q=t({active:L,containerId:b,isDragging:z,isSorting:j,id:c,index:k,items:f,newIndex:_.current.newIndex,previousItems:_.current.items,previousContainerId:_.current.containerId,transition:h,wasDragging:null!=_.current.activeId}),ee=function(e){let{disabled:t,index:n,node:a,rect:l}=e;const[s,c]=r(null),d=i(n);return yl((()=>{if(!t&&n!==d.current&&a.current){const e=l.current;if(e){const t=ts(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==d.current&&(d.current=n)}),[t,n,a,l]),o((()=>{s&&c(null)}),[s]),s}({disabled:!q,index:k,node:V,rect:N});return o((()=>{j&&_.current.newIndex!==U&&(_.current.newIndex=U),b!==_.current.containerId&&(_.current.containerId=b),f!==_.current.items&&(_.current.items=f)}),[j,U,b,f]),o((()=>{if(Q===_.current.activeId)return;if(null!=Q&&null==_.current.activeId)return void(_.current.activeId=Q);const e=setTimeout((()=>{_.current.activeId=Q}),50);return()=>clearTimeout(e)}),[Q]),{active:L,activeIndex:v,attributes:S,data:M,rect:N,index:k,newIndex:U,items:f,isOver:Z,isSorting:j,isDragging:z,listeners:T,node:V,overIndex:C,over:B,setNodeRef:P,setActivatorNodeRef:G,setDroppableNodeRef:D,setDraggableNodeRef:$,transform:null!=ee?ee:J,transition:function(){if(ee||K&&_.current.newIndex===k)return Pc;if(X&&!Zl(O)||!h)return;if(j||q)return Ll.Transition.toString({...h,property:Wc});return}()}}Cs.Down,Cs.Right,Cs.Up,Cs.Left;const Xc=e=>{let{transform:t}=e;return{...t,x:0}},Yc=m({isSorting:!1,setIsSorting:e=>{}}),Jc=m({isGhost:!1}),Uc=v.div`
|
|
855
855
|
overflow: hidden;
|
|
856
|
-
`,Qc=({order:e,children:n,onOrderChange:i})=>{const[o,l]=r(null),{setIsSorting:c}=g(Yc),d=p((()=>s.toArray(n).sort(((t,n)=>a(t)&&a(n)?e.indexOf(t.props.id)-e.indexOf(n.props.id):0))),[n,e]),u=p((()=>s.toArray(n).find((e=>!!a(e)&&e.props.id===o))),[n,o]),m=()=>{l(null),c(!1)};return t.createElement(pc,{modifiers:[Xc],onDragStart:e=>{const{active:t}=e;l(t.id),c(!0)},onDragEnd:t=>{const{active:n,over:r}=t;if(l(null),c(!1),null==r)return;if(n.id===r.id)return;const o=e.indexOf(n.id),a=e.indexOf(r.id),s=Dc(e,o,a);i(s)},onDragCancel:m,onDragAbort:m},t.createElement(Uc,null,t.createElement(
|
|
856
|
+
`,Qc=({order:e,children:n,onOrderChange:i})=>{const[o,l]=r(null),{setIsSorting:c}=g(Yc),d=p((()=>s.toArray(n).sort(((t,n)=>a(t)&&a(n)?e.indexOf(t.props.id)-e.indexOf(n.props.id):0))),[n,e]),u=p((()=>s.toArray(n).find((e=>!!a(e)&&e.props.id===o))),[n,o]),m=()=>{l(null),c(!1)};return t.createElement(pc,{modifiers:[Xc],onDragStart:e=>{const{active:t}=e;l(t.id),c(!0)},onDragEnd:t=>{const{active:n,over:r}=t;if(l(null),c(!1),null==r)return;if(n.id===r.id)return;const o=e.indexOf(n.id),a=e.indexOf(r.id),s=Dc(e,o,a);i(s)},onDragCancel:m,onDragAbort:m},t.createElement(Uc,null,t.createElement(Tc,{items:e},s.map(d,(e=>{var t;if(!a(e)||"string"==typeof e.type||!("displayName"in e.type)||"ContextMenu2SortableItem"!==(null===(t=null==e?void 0:e.type)||void 0===t?void 0:t.displayName))throw new Error("ContextMenu2SortableContainer には ContextMenu2SortableItem しか入れられません");return e})))),A(t.createElement(Zc,{zIndex:T.modal+1},t.createElement(Jc.Provider,{value:{isGhost:!0}},u)),document.body))},_c=v.div`
|
|
857
857
|
display: flex;
|
|
858
858
|
align-items: center;
|
|
859
859
|
cursor: ${({isGhost:e})=>e?"grabbing":""};
|
|
@@ -892,7 +892,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
892
892
|
color: ${N.basic[700]};
|
|
893
893
|
text-align: center;
|
|
894
894
|
`,id=({message:e})=>t.createElement(rd,null,e);id.displayName="ContextMenu2NoResultsMessage";const od=()=>{const[e,t]=r({x:0,y:0});return{position:e,setPosition:t}},ad=e=>"object"==typeof e&&"x"in e&&"y"in e,ld=v.div`
|
|
895
|
-
z-index: ${
|
|
895
|
+
z-index: ${T.dropdown};
|
|
896
896
|
padding: 8px;
|
|
897
897
|
border: 1px solid ${N.basic[200]};
|
|
898
898
|
border-radius: 6px;
|
|
@@ -926,7 +926,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
926
926
|
flex: 1;
|
|
927
927
|
overflow: auto;
|
|
928
928
|
padding: ${({$hasStickyHeader:e,$hasStickyFooter:t})=>`${e?"8px":"0"} 0 ${t?"8px":"0"}`};
|
|
929
|
-
`,ud=n((({open:n,trigger:a,width:s,minWidth:c,children:u,onOpenChange:m,stickyHeader:h,stickyFooter:f},b)=>{const{isRoot:v,close:x}=g(Qa),[y,w]=r(!1),[C,E]=r(!1),I=p((()=>!!C||(void 0!==n?n:y)),[n,y,C]),A=d((()=>{x(),w(!1),E(!1),null==m||m(!1)}),[x,w,E,m]),k=function(e){const t
|
|
929
|
+
`,ud=n((({open:n,trigger:a,width:s,minWidth:c,children:u,onOpenChange:m,stickyHeader:h,stickyFooter:f},b)=>{const{isRoot:v,close:x}=g(Qa),[y,w]=r(!1),[C,E]=r(!1),I=p((()=>!!C||(void 0!==n?n:y)),[n,y,C]),A=d((()=>{x(),w(!1),E(!1),null==m||m(!1)}),[x,w,E,m]),k=function(e){const t=To(),n=jo(),r=Po();return Lo((()=>{const e={id:t,parentId:r};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,r]),t}(),{refs:M,floatingStyles:H,context:N}=Va({nodeId:k,open:I,onOpenChange:e=>{w(e),null==m||m(e)},middleware:[Zi({mainAxis:5,crossAxis:0}),Li({apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{maxWidth:`${Math.max(0,e)}px`,maxHeight:`${Math.max(0,t)}px`})}}),Ni((()=>{if(v)return{allowedPlacements:["bottom-start","bottom-end","top-start","top-end"]};return{allowedPlacements:window.matchMedia("(max-width: 480px)").matches?["bottom-start"]:["right-start","left-start"],autoAlignment:!1}}))],whileElementsMounted:Yi}),V=function(t,n){void 0===n&&(n={});const{open:r,onOpenChange:i,dataRef:o,elements:{domReference:a}}=t,{enabled:l=!0,event:s="click",toggle:c=!0,ignoreMouse:d=!1,keyboardHandlers:u=!0}=n,p=e.useRef(),m=e.useRef(!1);return e.useMemo((()=>l?{reference:{onPointerDown(e){p.current=e.pointerType},onMouseDown(e){0===e.button&&(Qr(p.current,!0)&&d||"click"!==s&&(!r||!c||o.current.openEvent&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),i(!0,e.nativeEvent,"click")):i(!1,e.nativeEvent,"click")))},onClick(e){"mousedown"===s&&p.current?p.current=void 0:Qr(p.current,!0)&&d||(!r||!c||o.current.openEvent&&"click"!==o.current.openEvent.type?i(!0,e.nativeEvent,"click"):i(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!u||Ea(e)||(" "!==e.key||Ia(a)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&i(!r||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||Ea(e)||Ia(a)||" "===e.key&&m.current&&(m.current=!1,i(!r||!c,e.nativeEvent,"click"))}}}:{}),[l,o,s,d,u,a,c,r,i])}(N),Z=_o(N,{enabled:!v,mouseOnly:!0,delay:{open:100,close:C?999999:100},restMs:100,handleClose:Ga()}),D=Ha(N),[L,O]=r(null),R=za(N),S=i([]),$=Ta(N,{listRef:S,activeIndex:L,onNavigate:O,loop:!0,nested:!v}),T=Ua(S,[]),{getReferenceProps:z,getFloatingProps:B,getItemProps:G}=Da([V,Z,D,R,$]),W=[ud.displayName,qa.displayName,rl.displayName,ll.displayName,ul.displayName,nd.displayName,id.displayName];o((()=>{ad(a)&&M.setPositionReference({getBoundingClientRect:()=>({width:0,height:0,x:a.x,y:a.y,top:a.y,left:a.x,right:a.x,bottom:a.y})})}),[a,b,M]);const P=function(t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)}))}),t)}([b,M.setReference]);return t.createElement(t.Fragment,null,ad(a)?null:l(a,Object.assign(Object.assign({ref:P},z()),a.props)),t.createElement(Fo,{id:k},I&&t.createElement(xa,null,t.createElement(Ca,{context:N,modal:!1,initialFocus:-1,returnFocus:!1},t.createElement(ld,Object.assign({ref:M.setFloating,style:Object.assign(Object.assign({},H),{width:null!=s?s:"auto",minWidth:null!=c?c:"auto"})},B()),t.createElement(Qa.Provider,{value:{isRoot:!1,activeIndex:L,maxActiveIndex:T,setActiveIndex:O,close:A}},t.createElement(Yc.Provider,{value:{isSorting:C,setIsSorting:E}},h&&t.createElement(sd,null,h),t.createElement(dd,{$hasStickyHeader:!!h,$hasStickyFooter:!!f},((e,n=!0)=>t.Children.toArray(e).filter((e=>{if(!t.isValidElement(e))return!1;const r=e.type;if(r===t.Fragment)return!0;const i="function"==typeof r||"object"==typeof r?r.displayName:void 0;return"ContextMenu2TriggerItem"===i||"DataTable2MenuCountControl"===i||"DataTable2MenuSpaceControl"===i||"DataTable2MenuOrderControl"===i||("ContextMenu2Container"===i||(n||("function"==typeof r||"object"==typeof r)&&W.includes(r.displayName)))})).map((e=>t.isValidElement(e)?t.cloneElement(e,Object.assign(Object.assign(Object.assign({tabIndex:L===e.key?0:-1,ref:t=>{S.current[e.key]=t}},G()),e.props),{key:e.key})):e)))(u)),f&&t.createElement(cd,null,f))))))))}));ud.displayName="ContextMenu2";const pd=({children:e})=>{if(!a(e)||"string"==typeof e.type||"function"!=typeof e.type&&"object"!=typeof e.type||!("displayName"in e.type)||e.type.displayName!==ud.displayName)throw new Error("ContextMenu2Container には 1 つの ContextMenu2 しか入れられません");return t.createElement(Qa.Provider,{value:{isRoot:!0,close:()=>{},activeIndex:null,maxActiveIndex:-1,setActiveIndex:()=>{}}},t.createElement(Xo,null,e))},md=v((({className:e,children:n})=>t.createElement("p",{className:e},n)))`
|
|
930
930
|
border-radius: 4px;
|
|
931
931
|
padding: 4px 8px;
|
|
932
932
|
margin-bottom: 8px;
|
|
@@ -968,7 +968,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
968
968
|
padding: 16px 0 8px;
|
|
969
969
|
margin: 0;
|
|
970
970
|
list-style: none;
|
|
971
|
-
`;function xd(e){return xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xd(e)}function yd(e){var t=function(e,t){if("object"!=xd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=xd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xd(t)?t:t+""}function wd(e,t,n){return(t=yd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cd(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Id(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yd(r.key),r)}}function Ad(e){return Ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ad(e)}function kd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kd=function(){return!!e})()}function Md(e){var t=kd();return function(){var n,r=Ad(e);if(t){var i=Ad(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==xd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return et(e)}(this,n)}}function Hd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nd(e,t){if(e){if("string"==typeof e)return Hd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hd(e,t):void 0}}function Vd(e){return function(e){if(Array.isArray(e))return Hd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Nd(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Zd=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Dd="-ms-",Ld="-moz-",Od="-webkit-",Rd="comm",Sd="rule",Td="decl",$d="@keyframes",zd=Math.abs,Bd=String.fromCharCode,Gd=Object.assign;function Wd(e){return e.trim()}function Pd(e,t,n){return e.replace(t,n)}function jd(e,t){return e.indexOf(t)}function Fd(e,t){return 0|e.charCodeAt(t)}function Xd(e,t,n){return e.slice(t,n)}function Yd(e){return e.length}function Jd(e){return e.length}function Ud(e,t){return t.push(e),e}var Qd=1,_d=1,Kd=0,qd=0,eu=0,tu="";function nu(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Qd,column:_d,length:a,return:""}}function ru(e,t){return Gd(nu("",null,null,"",null,null,0),e,{length:-e.length},t)}function iu(){return eu=qd>0?Fd(tu,--qd):0,_d--,10===eu&&(_d=1,Qd--),eu}function ou(){return eu=qd<Kd?Fd(tu,qd++):0,_d++,10===eu&&(_d=1,Qd++),eu}function au(){return Fd(tu,qd)}function lu(){return qd}function su(e,t){return Xd(tu,e,t)}function cu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function du(e){return Qd=_d=1,Kd=Yd(tu=e),qd=0,[]}function uu(e){return tu="",e}function pu(e){return Wd(su(qd-1,hu(91===e?e+2:40===e?e+1:e)))}function mu(e){for(;(eu=au())&&eu<33;)ou();return cu(e)>2||cu(eu)>3?"":" "}function gu(e,t){for(;--t&&ou()&&!(eu<48||eu>102||eu>57&&eu<65||eu>70&&eu<97););return su(e,lu()+(t<6&&32==au()&&32==ou()))}function hu(e){for(;ou();)switch(eu){case e:return qd;case 34:case 39:34!==e&&39!==e&&hu(eu);break;case 40:41===e&&hu(e);break;case 92:ou()}return qd}function fu(e,t){for(;ou()&&e+eu!==57&&(e+eu!==84||47!==au()););return"/*"+su(t,qd-1)+"*"+Bd(47===e?e:ou())}function bu(e){for(;!cu(au());)ou();return su(e,qd)}function vu(e){return uu(xu("",null,null,null,[""],e=du(e),0,[0],e))}function xu(e,t,n,r,i,o,a,l,s){for(var c=0,d=0,u=a,p=0,m=0,g=0,h=1,f=1,b=1,v=0,x="",y=i,w=o,C=r,E=x;f;)switch(g=v,v=ou()){case 40:if(108!=g&&58==Fd(E,u-1)){-1!=jd(E+=Pd(pu(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:E+=pu(v);break;case 9:case 10:case 13:case 32:E+=mu(g);break;case 92:E+=gu(lu()-1,7);continue;case 47:switch(au()){case 42:case 47:Ud(wu(fu(ou(),lu()),t,n),s);break;default:E+="/"}break;case 123*h:l[c++]=Yd(E)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:f=0;case 59+d:-1==b&&(E=Pd(E,/\f/g,"")),m>0&&Yd(E)-u&&Ud(m>32?Cu(E+";",r,n,u-1):Cu(Pd(E," ","")+";",r,n,u-2),s);break;case 59:E+=";";default:if(Ud(C=yu(E,t,n,c,d,i,l,x,y=[],w=[],u),o),123===v)if(0===d)xu(E,t,C,C,y,o,u,l,w);else switch(99===p&&110===Fd(E,3)?100:p){case 100:case 108:case 109:case 115:xu(e,C,C,r&&Ud(yu(e,C,C,0,0,i,l,x,i,y=[],u),w),i,w,u,l,r?y:w);break;default:xu(E,C,C,C,[""],w,0,l,w)}}c=d=m=0,h=b=1,x=E="",u=a;break;case 58:u=1+Yd(E),m=g;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==iu())continue;switch(E+=Bd(v),v*h){case 38:b=d>0?1:(E+="\f",-1);break;case 44:l[c++]=(Yd(E)-1)*b,b=1;break;case 64:45===au()&&(E+=pu(ou())),p=au(),d=u=Yd(x=E+=bu(lu())),v++;break;case 45:45===g&&2==Yd(E)&&(h=0)}}return o}function yu(e,t,n,r,i,o,a,l,s,c,d){for(var u=i-1,p=0===i?o:[""],m=Jd(p),g=0,h=0,f=0;g<r;++g)for(var b=0,v=Xd(e,u+1,u=zd(h=a[g])),x=e;b<m;++b)(x=Wd(h>0?p[b]+" "+v:Pd(v,/&\f/g,p[b])))&&(s[f++]=x);return nu(e,t,n,0===i?Sd:l,s,c,d)}function wu(e,t,n){return nu(e,t,n,Rd,Bd(eu),Xd(e,2,-2),0)}function Cu(e,t,n,r){return nu(e,t,n,Td,Xd(e,0,r),Xd(e,r+1,-1),r)}function Eu(e,t){for(var n="",r=Jd(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Iu(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Td:return e.return=e.return||e.value;case Rd:return"";case $d:return e.return=e.value+"{"+Eu(e.children,r)+"}";case Sd:e.value=e.props.join(",")}return Yd(n=Eu(e.children,r))?e.return=e.value+"{"+n+"}":""}function Au(e){var t=Jd(e);return function(n,r,i,o){for(var a="",l=0;l<t;l++)a+=e[l](n,r,i,o)||"";return a}}function ku(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Mu=function(e,t,n){for(var r=0,i=0;r=i,i=au(),38===r&&12===i&&(t[n]=1),!cu(i);)ou();return su(e,qd)},Hu=function(e,t){return uu(function(e,t){var n=-1,r=44;do{switch(cu(r)){case 0:38===r&&12===au()&&(t[n]=1),e[n]+=Mu(qd-1,t,n);break;case 2:e[n]+=pu(r);break;case 4:if(44===r){e[++n]=58===au()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Bd(r)}}while(r=ou());return e}(du(e),t))},Nu=new WeakMap,Vu=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Nu.get(n))&&!r){Nu.set(e,!0);for(var i=[],o=Hu(t,i),a=n.props,l=0,s=0;l<o.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=i[l]?o[l].replace(/&\f/g,a[c]):a[c]+" "+o[l]}}},Zu=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Du=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},Lu=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Ou=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Ru=function(e,t,n){Lu(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Ou(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Lu(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ou(e)))};function Su(e,t){switch(function(e,t){return 45^Fd(e,0)?(((t<<2^Fd(e,0))<<2^Fd(e,1))<<2^Fd(e,2))<<2^Fd(e,3):0}(e,t)){case 5103:return Od+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Od+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Od+e+Ld+e+Dd+e+e;case 6828:case 4268:return Od+e+Dd+e+e;case 6165:return Od+e+Dd+"flex-"+e+e;case 5187:return Od+e+Pd(e,/(\w+).+(:[^]+)/,Od+"box-$1$2"+Dd+"flex-$1$2")+e;case 5443:return Od+e+Dd+"flex-item-"+Pd(e,/flex-|-self/,"")+e;case 4675:return Od+e+Dd+"flex-line-pack"+Pd(e,/align-content|flex-|-self/,"")+e;case 5548:return Od+e+Dd+Pd(e,"shrink","negative")+e;case 5292:return Od+e+Dd+Pd(e,"basis","preferred-size")+e;case 6060:return Od+"box-"+Pd(e,"-grow","")+Od+e+Dd+Pd(e,"grow","positive")+e;case 4554:return Od+Pd(e,/([^-])(transform)/g,"$1"+Od+"$2")+e;case 6187:return Pd(Pd(Pd(e,/(zoom-|grab)/,Od+"$1"),/(image-set)/,Od+"$1"),e,"")+e;case 5495:case 3959:return Pd(e,/(image-set\([^]*)/,Od+"$1$`$1");case 4968:return Pd(Pd(e,/(.+:)(flex-)?(.*)/,Od+"box-pack:$3"+Dd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Od+e+e;case 4095:case 3583:case 4068:case 2532:return Pd(e,/(.+)-inline(.+)/,Od+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Yd(e)-1-t>6)switch(Fd(e,t+1)){case 109:if(45!==Fd(e,t+4))break;case 102:return Pd(e,/(.+:)(.+)-([^]+)/,"$1"+Od+"$2-$3$1"+Ld+(108==Fd(e,t+3)?"$3":"$2-$3"))+e;case 115:return~jd(e,"stretch")?Su(Pd(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Fd(e,t+1))break;case 6444:switch(Fd(e,Yd(e)-3-(~jd(e,"!important")&&10))){case 107:return Pd(e,":",":"+Od)+e;case 101:return Pd(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Od+(45===Fd(e,14)?"inline-":"")+"box$3$1"+Od+"$2$3$1"+Dd+"$2box$3")+e}break;case 5936:switch(Fd(e,t+11)){case 114:return Od+e+Dd+Pd(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Od+e+Dd+Pd(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Od+e+Dd+Pd(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Od+e+Dd+e+e}return e}var Tu,$u,zu="undefined"!=typeof document,Bu=zu?void 0:(Tu=function(){return ku((function(){var e={};return function(t){return e[t]}}))},$u=new WeakMap,function(e){if($u.has(e))return $u.get(e);var t=Tu(e);return $u.set(e,t),t}),Gu=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Td:e.return=Su(e.value,e.length);break;case $d:return Eu([ru(e,{value:Pd(e.value,"@","@"+Od)})],r);case Sd:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Eu([ru(e,{props:[Pd(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Eu([ru(e,{props:[Pd(t,/:(plac\w+)/,":"+Od+"input-$1")]}),ru(e,{props:[Pd(t,/:(plac\w+)/,":-moz-$1")]}),ru(e,{props:[Pd(t,/:(plac\w+)/,Dd+"input-$1")]})],r)}return""}))}}],Wu=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(zu&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Gu;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i,o,a={},l=[];zu&&(i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)})));var s,c=[Vu,Zu];if("production"!==process.env.NODE_ENV&&c.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=t.parent?t.parent.children:r,a=o.length-1;a>=0;a--){var l=o[a];if(l.line<t.line)break;if(l.column<t.column){if(Du(l))return;break}}i.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return b.compat}}),Ru),zu){var d,u=[Iu,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?d.insert(e.return):e.value&&e.type!==Rd&&d.insert(e.value+"{}"))}:(s=function(e){d.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=Au(c.concat(r,u));o=function(e,t,n,r){d=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(d={insert:function(e){n.insert(e+t.map)}}),Eu(vu(e?e+"{"+t.styles+"}":t.styles),p),r&&(b.inserted[t.name]=!0)}}else{var m=[Iu],g=Au(c.concat(r,m)),h=Bu(r)(t),f=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=Eu(vu(e?e+"{"+t.styles+"}":t.styles),g)),h[n]};o=function(e,t,n,r){var i=t.name,o=f(e,t);return void 0===b.compat?(r&&(b.inserted[i]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?o+t.map:o):r?void(b.inserted[i]=o):o}}var b={key:t,sheet:new Zd({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return b.sheet.hydrate(l),b},Pu=De,ju={};ju[Pu.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ju[Pu.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Fu="undefined"!=typeof document;function Xu(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Yu=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Fu&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ju=function(e,t,n){Yu(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);Fu||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!Fu&&0!==i.length)return i}};var Uu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qu="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",_u="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Ku=/[A-Z]|^ms/g,qu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ep=function(e){return 45===e.charCodeAt(1)},tp=function(e){return null!=e&&"boolean"!=typeof e},np=ku((function(e){return ep(e)?e:e.replace(Ku,"-$&").toLowerCase()})),rp=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(qu,(function(e,t,n){return mp={name:t,styles:n,next:mp},t}))}return 1===Uu[e]||ep(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var ip=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,op=["normal","none","initial","inherit","unset"],ap=rp,lp=/^-ms-/,sp=/-(.)/g,cp={};rp=function(e,t){if("content"===e&&("string"!=typeof t||-1===op.indexOf(t)&&!ip.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=ap(e,t);return""===n||ep(e)||-1===e.indexOf("-")||void 0!==cp[e]||(cp[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(lp,"ms-").replace(sp,(function(e,t){return t.toUpperCase()}))+"?")),n}}var dp="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function up(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(dp);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return mp={name:n.name,styles:n.styles,next:mp},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)mp={name:r.name,styles:r.styles,next:mp},r=r.next;var i=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(i+=n.map),i}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=up(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":tp(a)&&(r+=np(o)+":"+rp(o,a)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error(dp);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=up(e,t,a);switch(o){case"animation":case"animationName":r+=np(o)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===o&&console.error(_u),r+=o+"{"+l+"}"}}else for(var s=0;s<a.length;s++)tp(a[s])&&(r+=np(o)+":"+rp(o,a[s])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var o=mp,a=n(e);return mp=o,up(e,t,a)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],s=n.replace(qu,(function(e,t,n){var r="animation"+l.length;return l.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}}if(null==t)return n;var c=t[n];return void 0!==c?c:n}var pp,mp,gp=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(pp=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var hp=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";mp=void 0;var o,a=e[0];null==a||void 0===a.raw?(r=!1,i+=up(n,t,a)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(Qu),i+=a[0]);for(var l=1;l<e.length;l++)i+=up(n,t,e[l]),r&&("production"!==process.env.NODE_ENV&&void 0===a[l]&&console.error(Qu),i+=a[l]);"production"!==process.env.NODE_ENV&&(i=i.replace(pp,(function(e){return o=e,""}))),gp.lastIndex=0;for(var s,c="";null!==(s=gp.exec(i));)c+="-"+s[1];var d=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+c;return"production"!==process.env.NODE_ENV?{name:d,styles:i,map:o,next:mp,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:i,next:mp}},fp="undefined"!=typeof document,bp=function(e){return e()},vp=!!e.useInsertionEffect&&e.useInsertionEffect,xp=fp&&vp||bp,yp=vp||e.useLayoutEffect,wp="undefined"!=typeof document,Cp={}.hasOwnProperty,Ep=e.createContext("undefined"!=typeof HTMLElement?Wu({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Ep.displayName="EmotionCacheContext"),Ep.Provider;var Ip=function(e){return n((function(t,n){var r=g(Ep);return e(t,r,n)}))};wp||(Ip=function(t){return function(n){var r=g(Ep);return null===r?(r=Wu({key:"css"}),e.createElement(Ep.Provider,{value:r},t(n,r))):t(n,r)}});var Ap=e.createContext({});"production"!==process.env.NODE_ENV&&(Ap.displayName="EmotionThemeContext");var kp=function(e){var t=e.split(".");return t[t.length-1]},Mp=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?kp(t[1]):void 0},Hp=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Np=function(e){return e.replace(/\$/g,"-")},Vp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Zp="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Dp=function(e,t){if("production"!==process.env.NODE_ENV&&"string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)Cp.call(t,r)&&(n[r]=t[r]);if(n[Vp]=e,"production"!==process.env.NODE_ENV&&t.css&&("object"!=typeof t.css||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var i=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=Mp(t[n]);if(r){if(Hp.has(r))break;if(/^[A-Z]/.test(r))return Np(r)}}}((new Error).stack);i&&(n[Zp]=i)}return n},Lp=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;Yu(n,r,i);var o=xp((function(){return Ju(n,r,i)}));if(!wp&&void 0!==o){for(var a,l=r.name,s=r.next;void 0!==s;)l+=" "+s.name,s=s.next;return e.createElement("style",((a={})["data-emotion"]=n.key+" "+l,a.dangerouslySetInnerHTML={__html:o},a.nonce=n.sheet.nonce,a))}return null},Op=Ip((function(t,n,r){var i=t.css;"string"==typeof i&&void 0!==n.registered[i]&&(i=n.registered[i]);var o=t[Vp],a=[i],l="";"string"==typeof t.className?l=Xu(n.registered,a,t.className):null!=t.className&&(l=t.className+" ");var s=hp(a,void 0,e.useContext(Ap));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var c=t[Zp];c&&(s=hp([s,"label:"+c+";"]))}l+=n.key+"-"+s.name;var d={};for(var u in t)!Cp.call(t,u)||"css"===u||u===Vp||"production"!==process.env.NODE_ENV&&u===Zp||(d[u]=t[u]);return d.ref=r,d.className=l,e.createElement(e.Fragment,null,e.createElement(Lp,{cache:n,serialized:s,isStringTag:"string"==typeof o}),e.createElement(o,d))}));"production"!==process.env.NODE_ENV&&(Op.displayName="EmotionCssPropInternal");var Rp=Op,Sp=function(t,n){var r=arguments;if(null==n||!Cp.call(n,"css"))return e.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=Rp,o[1]=Dp(t,n);for(var a=2;a<i;a++)o[a]=r[a];return e.createElement.apply(null,o)},Tp=!1,$p=Ip((function(t,n){"production"===process.env.NODE_ENV||Tp||!t.className&&!t.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Tp=!0);var r=t.styles,i=hp([r],void 0,e.useContext(Ap));if(!wp){for(var o,a=i.name,l=i.styles,s=i.next;void 0!==s;)a+=" "+s.name,l+=s.styles,s=s.next;var c=!0===n.compat,d=n.insert("",{name:a,styles:l},n.sheet,c);return c?null:e.createElement("style",((o={})["data-emotion"]=n.key+"-global "+a,o.dangerouslySetInnerHTML={__html:d},o.nonce=n.sheet.nonce,o))}var u=e.useRef();return yp((function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+i.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),t.hydrate([o])),u.current=[t,r],function(){t.flush()}}),[n]),yp((function(){var e=u.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==i.next&&Ju(n,i.next,!0),t.tags.length){var r=t.tags[t.tags.length-1].nextElementSibling;t.before=r,t.flush()}n.insert("",i,t,!1)}}),[n,i.name]),null}));function zp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return hp(t)}"production"!==process.env.NODE_ENV&&($p.displayName="EmotionGlobal");var Bp=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var l in"production"!==process.env.NODE_ENV&&void 0!==o.styles&&void 0!==o.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",o)o[l]&&l&&(a&&(a+=" "),a+=l);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};var Gp=function(t){var n,r=t.cache,i=t.serializedArr,o=xp((function(){for(var e="",t=0;t<i.length;t++){var n=Ju(r,i[t],!1);wp||void 0===n||(e+=n)}if(!wp)return e}));return wp||0===o.length?null:e.createElement("style",((n={})["data-emotion"]=r.key+" "+i.map((function(e){return e.name})).join(" "),n.dangerouslySetInnerHTML={__html:o},n.nonce=r.sheet.nonce,n))},Wp=Ip((function(t,n){var r=!1,i=[],o=function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var a=hp(t,n.registered);return i.push(a),Yu(n,a,!1),n.key+"-"+a.name},a={css:o,cx:function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e,t,n){var r=[],i=Xu(e,r,n);return r.length<2?n:i+t(r)}(n.registered,o,Bp(t))},theme:e.useContext(Ap)},l=t.children(a);return r=!0,e.createElement(e.Fragment,null,e.createElement(Gp,{cache:n,serializedArr:i}),l)}));if("production"!==process.env.NODE_ENV&&(Wp.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var Pp="undefined"!=typeof document,jp="undefined"!=typeof jest||"undefined"!=typeof vi;if(Pp&&!jp){var Fp="undefined"!=typeof globalThis?globalThis:Pp?window:global,Xp="__EMOTION_REACT_"+"11.11.1".split(".")[0]+"__";Fp[Xp]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Fp[Xp]=!0}}function Yp(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 r,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||Nd(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jp(e,t){if(null==e)return{};var n,r,i=de(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Up="undefined"!=typeof document?u:o,Qp=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],_p=function(){};function Kp(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function qp(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(Kp(e,a)));return o.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var em=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===xd(e)&&null!==e?[e]:[];var t},tm=function(e){return 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,Ed({},Jp(e,Qp))},nm=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};function rm(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function im(e){return rm(e)?window.pageYOffset:e.scrollTop}function om(e,t){rm(e)?window.scrollTo(0,t):e.scrollTop=t}function am(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_p,i=im(e),o=t-i,a=0;!function t(){var l,s=o*((l=(l=a+=10)/n-1)*l*l+1)+i;om(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function lm(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?om(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&om(e,Math.max(t.offsetTop-i,0))}function sm(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var cm=!1,dm={get passive(){return cm=!0}},um="undefined"!=typeof window?window:{};um.addEventListener&&um.removeEventListener&&(um.addEventListener("p",_p,dm),um.removeEventListener("p",_p,!1));var pm=cm;function mm(e){return null!=e}function gm(e,t,n){return e?t:n}var hm=["children","innerProps"],fm=["children","innerProps"];function bm(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,l=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var d,u=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),m=p.bottom,g=p.height,h=p.top,f=n.offsetParent.getBoundingClientRect().top,b=a?window.innerHeight:rm(d=s)?window.innerHeight:d.clientHeight,v=im(s),x=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=f-y,C=b-h,E=w+v,I=u-v-h,A=m-b+v+x,k=v+h-y,M=160;switch(i){case"auto":case"bottom":if(C>=g)return{placement:"bottom",maxHeight:t};if(I>=g&&!a)return o&&am(s,A,M),{placement:"bottom",maxHeight:t};if(!a&&I>=r||a&&C>=r)return o&&am(s,A,M),{placement:"bottom",maxHeight:a?C-x:I-x};if("auto"===i||a){var H=t,N=a?w:E;return N>=r&&(H=Math.min(N-x-l,t)),{placement:"top",maxHeight:H}}if("bottom"===i)return o&&om(s,A),{placement:"bottom",maxHeight:t};break;case"top":if(w>=g)return{placement:"top",maxHeight:t};if(E>=g&&!a)return o&&am(s,k,M),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&w>=r){var V=t;return(!a&&E>=r||a&&w>=r)&&(V=a?w-y:E-y),o&&am(s,k,M),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var vm,xm=function(e){return"auto"===e?"bottom":e},ym=m(null),wm=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,a=e.menuPlacement,l=e.menuPosition,s=e.menuShouldScrollIntoView,c=e.theme,d=(g(ym)||{}).setPortalPlacement,u=i(null),p=Yp(r(o),2),m=p[0],h=p[1],f=Yp(r(null),2),b=f[0],v=f[1],x=c.spacing.controlHeight;return Up((function(){var e=u.current;if(e){var t="fixed"===l,r=bm({maxHeight:o,menuEl:e,minHeight:n,placement:a,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:x});h(r.maxHeight),v(r.placement),null==d||d(r.placement)}}),[o,a,l,s,n,d,x]),t({ref:u,placerProps:Ed(Ed({},e),{},{placement:b||xm(a),maxHeight:m})})},Cm=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Sp("div",ce({},nm(e,"menu",{menu:!0}),{ref:n},r),t)},Em=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return Ed({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Im=Em,Am=Em,km=["size"],Mm=["innerProps","isRtl","size"];var Hm,Nm,Vm="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1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b3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Zm=function(e){var t=e.size,n=Jp(e,km);return Sp("svg",ce({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Vm},n))},Dm=function(e){return Sp(Zm,ce({size:20},e),Sp("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"}))},Lm=function(e){return Sp(Zm,ce({size:20},e),Sp("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"}))},Om=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return Ed({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},Rm=Om,Sm=Om,Tm=function(){var e=zp.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(vm||(Hm=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Nm||(Nm=Hm.slice(0)),vm=Object.freeze(Object.defineProperties(Hm,{raw:{value:Object.freeze(Nm)}})))),$m=function(e){var t=e.delay,n=e.offset;return Sp("span",{css:zp({animation:"".concat(Tm," 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"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm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XNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},zm=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return Sp("div",ce({ref:i},nm(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},Bm=["data"],Gm=function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,l=e.innerProps,s=e.label,c=e.theme,d=e.selectProps;return Sp("div",ce({},nm(e,"group",{group:!0}),l),Sp(o,ce({},a,{selectProps:d,theme:c,getStyles:r,getClassNames:i,cx:n}),s),Sp("div",null,t))},Wm=["innerRef","isDisabled","isHidden","inputClassName"],Pm={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},jm={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ed({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Pm)},Fm=function(e){return Ed({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Pm)},Xm=function(e){var t=e.cx,n=e.value,r=tm(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,l=r.inputClassName,s=Jp(r,Wm);return Sp("div",ce({},nm(e,"input",{"input-container":!0}),{"data-value":n||""}),Sp("input",ce({className:t({input:!0},l),ref:i,style:Fm(a),disabled:o},s)))},Ym=function(e){var t=e.children,n=e.innerProps;return Sp("div",n,t)};var Jm=function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,l=e.selectProps,s=n.Container,c=n.Label,d=n.Remove;return Sp(s,{data:r,innerProps:Ed(Ed({},nm(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:l},Sp(c,{data:r,innerProps:Ed({},nm(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),Sp(d,{data:r,innerProps:Ed(Ed({},nm(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},Um=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return Sp("div",ce({},nm(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Qm=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Sp("div",ce({},nm(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},_m={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Sp("div",ce({},nm(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Sp(Dm,null))},Control:zm,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Sp("div",ce({},nm(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Sp(Lm,null))},DownChevron:Lm,CrossIcon:Dm,Group:Gm,GroupHeading:function(e){var t=tm(e);t.data;var n=Jp(t,Bm);return Sp("div",ce({},nm(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Sp("div",ce({},nm(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Sp("span",ce({},t,nm(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Xm,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,o=Jp(e,Mm);return Sp("div",ce({},nm(Ed(Ed({},o),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Sp($m,{delay:0,offset:n}),Sp($m,{delay:160,offset:!0}),Sp($m,{delay:320,offset:!n}))},Menu:Cm,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return Sp("div",ce({},nm(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,a=e.innerProps,l=e.menuPlacement,s=e.menuPosition,c=i(null),u=i(null),m=Yp(r(xm(l)),2),g=m[0],h=m[1],f=p((function(){return{setPortalPlacement:h}}),[]),b=Yp(r(null),2),v=b[0],x=b[1],y=d((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===s?0:window.pageYOffset,n=e[g]+t;n===(null==v?void 0:v.offset)&&e.left===(null==v?void 0:v.rect.left)&&e.width===(null==v?void 0:v.rect.width)||x({offset:n,rect:e})}}),[o,s,g,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);Up((function(){y()}),[y]);var w=d((function(){"function"==typeof u.current&&(u.current(),u.current=null),o&&c.current&&(u.current=Yi(o,c.current,y,{elementResize:"ResizeObserver"in window}))}),[o,y]);Up((function(){w()}),[w]);var C=d((function(e){c.current=e,w()}),[w]);if(!t&&"fixed"!==s||!v)return null;var E=Sp("div",ce({ref:C},nm(Ed(Ed({},e),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),a),n);return Sp(ym.Provider,{value:f},t?A(E,t):E)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=Jp(e,fm);return Sp("div",ce({},nm(Ed(Ed({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=Jp(e,hm);return Sp("div",ce({},nm(Ed(Ed({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Jm,MultiValueContainer:Ym,MultiValueLabel:Ym,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Sp("div",ce({role:"button"},n),t||Sp(Dm,{size:14}))},Option:Um,Placeholder:function(e){var t=e.children,n=e.innerProps;return Sp("div",ce({},nm(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return Sp("div",ce({},nm(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:Qm,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return Sp("div",ce({},nm(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},Km=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function qm(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],i=t[n],!(r===i||Km(r)&&Km(i)))return!1;var r,i;return!0}for(var eg="production"===process.env.NODE_ENV?{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"}:{name:"1f43avz-a11yText-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;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},tg=function(e){return Sp("span",ce({css:eg},e))},ng={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,o=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".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,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", 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"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,l=e.isDisabled,s=e.isSelected,c=e.isAppleDevice,d=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(d(a,n),".");if("menu"===t&&c){var u=l?" disabled":"",p="".concat(s?" selected":"").concat(u);return"".concat(o).concat(p,", ").concat(d(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},rg=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,a=e.selectValue,l=e.selectProps,s=e.id,c=e.isAppleDevice,d=l.ariaLiveMessages,u=l.getOptionLabel,m=l.inputValue,g=l.isMulti,h=l.isOptionDisabled,f=l.isSearchable,v=l.menuIsOpen,x=l.options,y=l.screenReaderStatus,w=l.tabSelectsValue,C=l.isLoading,E=l["aria-label"],I=l["aria-live"],A=p((function(){return Ed(Ed({},ng),d||{})}),[d]),k=p((function(){var e,n="";if(t&&A.onChange){var r=t.option,i=t.options,o=t.removedValue,l=t.removedValues,s=t.value,c=o||r||(e=s,Array.isArray(e)?null:e),d=c?u(c):"",p=i||l||void 0,m=p?p.map(u):[],g=Ed({isDisabled:c&&h(c,a),label:d,labels:m},t);n=A.onChange(g)}return n}),[t,A,h,a,u]),M=p((function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&A.onFocus){var l={focused:t,label:u(t),isDisabled:h(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:c};e=A.onFocus(l)}return e}),[n,r,u,h,A,i,a,c]),H=p((function(){var e="";if(v&&x.length&&!C&&A.onFilter){var t=y({count:i.length});e=A.onFilter({inputValue:m,resultsMessage:t})}return e}),[i,m,v,A,x,y,C]),N="initial-input-focus"===(null==t?void 0:t.action),V=p((function(){var e="";if(A.guidance){var t=r?"value":v?"menu":"input";e=A.guidance({"aria-label":E,context:t,isDisabled:n&&h(n,a),isMulti:g,isSearchable:f,tabSelectsValue:w,isInitialFocus:N})}return e}),[E,n,r,g,h,f,v,A,a,w,N]),Z=Sp(b,null,Sp("span",{id:"aria-selection"},k),Sp("span",{id:"aria-focused"},M),Sp("span",{id:"aria-results"},H),Sp("span",{id:"aria-guidance"},V));return Sp(b,null,Sp(tg,{id:s},N&&Z),Sp(tg,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!N&&Z))},ig=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{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ǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{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ÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{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ǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{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ßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],og=new RegExp("["+ig.map((function(e){return e.letters})).join("")+"]","g"),ag={},lg=0;lg<ig.length;lg++)for(var sg=ig[lg],cg=0;cg<sg.letters.length;cg++)ag[sg.letters[cg]]=sg.base;var dg=function(e){return e.replace(og,(function(e){return ag[e]}))},ug=function(e,t){void 0===t&&(t=qm);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(dg),pg=function(e){return e.replace(/^\s+|\s+$/g,"")},mg=function(e){return"".concat(e.label," ").concat(e.value)},gg=["innerRef"];function hg(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Object.entries(e).filter((function(e){var t=Yp(e,1)[0];return!n.includes(t)}));return i.reduce((function(e,t){var n=Yp(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})}(Jp(e,gg),"onExited","in","enter","exit","appear");return Sp("input",ce({ref:t},n,{css:zp({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)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZ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dpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var fg=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var bg=["boxSizing","height","overflow","paddingRight","position"],vg={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function xg(e){e.preventDefault()}function yg(e){e.stopPropagation()}function wg(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Cg(){return"ontouchstart"in window||navigator.maxTouchPoints}var Eg=!("undefined"==typeof window||!window.document||!window.document.createElement),Ig=0,Ag={capture:!1,passive:!1};var kg=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Mg="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZp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2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function Hg(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,a=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,a=e.onTopArrive,l=e.onTopLeave,s=i(!1),c=i(!1),u=i(0),p=i(null),m=d((function(e,t){if(null!==p.current){var i=p.current,o=i.scrollTop,d=i.scrollHeight,u=i.clientHeight,m=p.current,g=t>0,h=d-u-o,f=!1;h>t&&s.current&&(r&&r(e),s.current=!1),g&&c.current&&(l&&l(e),c.current=!1),g&&t>h?(n&&!s.current&&n(e),m.scrollTop=d,f=!0,s.current=!0):!g&&-t>o&&(a&&!c.current&&a(e),m.scrollTop=0,f=!0,c.current=!0),f&&fg(e)}}),[n,r,a,l]),g=d((function(e){m(e,e.deltaY)}),[m]),h=d((function(e){u.current=e.changedTouches[0].clientY}),[]),f=d((function(e){var t=u.current-e.changedTouches[0].clientY;m(e,t)}),[m]),b=d((function(e){if(e){var t=!!pm&&{passive:!1};e.addEventListener("wheel",g,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",f,t)}}),[f,h,g]),v=d((function(e){e&&(e.removeEventListener("wheel",g,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",f,!1))}),[f,h,g]);return o((function(){if(t){var e=p.current;return b(e),function(){v(e)}}}),[t,b,v]),function(e){p.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),l=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,a=i({}),l=i(null),s=d((function(e){if(Eg){var t=document.body,n=t&&t.style;if(r&&bg.forEach((function(e){var t=n&&n[e];a.current[e]=t})),r&&Ig<1){var i=parseInt(a.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,l=window.innerWidth-o+i||0;Object.keys(vg).forEach((function(e){var t=vg[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&Cg()&&(t.addEventListener("touchmove",xg,Ag),e&&(e.addEventListener("touchstart",wg,Ag),e.addEventListener("touchmove",yg,Ag))),Ig+=1}}),[r]),c=d((function(e){if(Eg){var t=document.body,n=t&&t.style;Ig=Math.max(Ig-1,0),r&&Ig<1&&bg.forEach((function(e){var t=a.current[e];n&&(n[e]=t)})),t&&Cg()&&(t.removeEventListener("touchmove",xg,Ag),e&&(e.removeEventListener("touchstart",wg,Ag),e.removeEventListener("touchmove",yg,Ag)))}}),[r]);return o((function(){if(t){var e=l.current;return s(e),function(){c(e)}}}),[t,s,c]),function(e){l.current=e}}({isEnabled:n});return Sp(b,null,n&&Sp("div",{onClick:kg,css:Mg}),t((function(e){a(e),l(e)})))}var Ng="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Vg=function(e){var t=e.name,n=e.onFocus;return Sp("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ng,value:"",onChange:function(){}})};function Zg(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Dg(){return Zg(/^Mac/i)}function Lg(){return Zg(/^iPhone/i)||Zg(/^iPad/i)||Dg()&&navigator.maxTouchPoints>1}var Og=function(e){return e.label},Rg=function(e){return e.value},Sg={clearIndicator:Sm,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,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius;return Ed({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:Rm,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,r=n.colors,i=n.spacing;return Ed({label:"group",cursor:"default",display:"block"},t?{}:{color:r.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,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return Ed({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return Ed(Ed({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},jm),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return Ed({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:Am,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,l=i.colors;return Ed((wd(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),wd(n,"position","absolute"),wd(n,"width","100%"),wd(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Ed({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return Ed({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return Ed({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return Ed({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:Im,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,l=o.colors;return Ed({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return Ed({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return Ed({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return Ed({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Tg={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}},$g={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:sm(),captureMenuScroll:!sm(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=Ed({ignoreCase:!0,ignoreAccents:!0,stringify:mg,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,o=r.ignoreAccents,a=r.stringify,l=r.trim,s=r.matchFrom,c=l?pg(n):n,d=l?pg(a(t)):a(t);return i&&(c=c.toLowerCase(),d=d.toLowerCase()),o&&(c=ug(c),d=dg(d)),"start"===s?d.substr(0,c.length)===c:d.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:Og,getOptionValue:Rg,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 zg(e,t,n,r){return{type:"option",data:t,isDisabled:Yg(e,t,n),isSelected:Jg(e,t,n),label:Fg(e,t),value:Xg(e,t),index:r}}function Bg(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return zg(e,n,t,r)})).filter((function(t){return Pg(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=zg(e,n,t,r);return Pg(e,o)?o:void 0})).filter(mm)}function Gg(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Vd(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Wg(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Vd(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Pg(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,l=t.value;return(!Qg(e)||!o)&&Ug(e,{label:a,value:l,data:i},r)}var jg=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Fg=function(e,t){return e.getOptionLabel(t)},Xg=function(e,t){return e.getOptionValue(t)};function Yg(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Jg(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Xg(e,t);return n.some((function(t){return Xg(e,t)===r}))}function Ug(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Qg=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},_g=1,Kg=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&ue(e,t)}(r,f);var n=Md(r);function r(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Dg()||Lg(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,a=i.isMulti,l=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:l}),o&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=t.state.selectValue,l=i&&t.isOptionSelected(e,a),s=t.isOptionDisabled(e,a);if(l){var c=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:o});i?t.setValue([].concat(Vd(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,i=t.getOptionValue(e),o=r.filter((function(e){return t.getOptionValue(e)!==i})),a=gm(n,o,o[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(gm(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],i=n.slice(0,n.length-1),o=gm(e,i,i[0]||null);t.onChange(o,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return jg(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Wg(Bg(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return qp.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Fg(t.props,e)},t.getOptionValue=function(e){return Xg(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=Sg[e](n,r);i.boxSizing="border-box";var o=t.props.styles[e];return o?o(i,n):i},t.getClassNames=function(e,n){var r,i;return null===(r=(i=t.props.classNames)[e])||void 0===r?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Ed(Ed({},_m),e.components);var e},t.buildCategorizedOptions=function(){return Bg(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Gg(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Ed({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&rm(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Qg(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,l=n.isClearable,s=n.isDisabled,c=n.menuIsOpen,d=n.onKeyDown,u=n.tabSelectsValue,p=n.openMenuOnFocus,m=t.state,g=m.focusedOption,h=m.focusedValue,f=m.selectValue;if(!(s||"function"==typeof d&&(d(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)t.removeValue(h);else{if(!i)return;r?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!u||!g||p&&t.isOptionSelected(g,f))return;t.selectOption(g);break;case"Enter":if(229===e.keyCode)break;if(c){if(!g)return;if(t.isComposing)return;t.selectOption(g);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):l&&o&&t.clearValue();break;case" ":if(a)return;if(!c){t.openMenu("first");break}if(!g)return;t.selectOption(g);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++_g),t.state.selectValue=em(e.value),e.menuIsOpen&&t.state.selectValue.length){var i=t.getFocusableOptionsWithIds(),o=t.buildFocusableOptions(),a=o.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=i,t.state.focusedOption=o[a],t.state.focusedOptionId=jg(i,o[a])}return t}return function(e,t,n){t&&Id(e.prototype,t),n&&Id(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(r,[{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&&lm(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!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&&(lm(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,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var l=o.indexOf(r[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(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,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Tg):Ed(Ed({},Tg),this.props.theme):Tg}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,l=this.props,s=l.isMulti,c=l.isRtl,d=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:d,selectOption:o,selectProps:l,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 Yg(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Jg(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ug(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{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 t=this.props,n=t.isDisabled,r=t.isSearchable,i=t.inputId,o=t.inputValue,a=t.tabIndex,l=t.form,s=t.menuIsOpen,c=t.required,d=this.getComponents().Input,u=this.state,p=u.inputIsHidden,m=u.ariaSelection,g=this.commonProps,h=i||this.getElementId("input"),f=Ed(Ed(Ed({"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":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?e.createElement(d,ce({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:n,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:l,type:"text",value:o},f)):e.createElement(hg,ce({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:_p,onFocus:this.onInputFocus,disabled:n,tabIndex:a,inputMode:"none",form:l,value:""},f))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,i=n.MultiValueContainer,o=n.MultiValueLabel,a=n.MultiValueRemove,l=n.SingleValue,s=n.Placeholder,c=this.commonProps,d=this.props,u=d.controlShouldRenderValue,p=d.isDisabled,m=d.isMulti,g=d.inputValue,h=d.placeholder,f=this.state,b=f.selectValue,v=f.focusedValue,x=f.isFocused;if(!this.hasValue()||!u)return g?null:e.createElement(s,ce({},c,{key:"placeholder",isDisabled:p,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),h);if(m)return b.map((function(n,l){var s=n===v,d="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(r,ce({},c,{components:{Container:i,Label:o,Remove:a},isFocused:s,isDisabled:p,key:d,index:l,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(g)return null;var y=b[0];return e.createElement(l,ce({},c,{data:y,isDisabled:p}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!t||i||!this.hasValue()||o)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,ce({},n,{innerProps:l,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,a=this.state.isFocused;if(!t||!o)return null;return e.createElement(t,ce({},n,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var i=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return e.createElement(r,ce({},i,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,ce({},n,{innerProps:o,isDisabled:r,isFocused:i}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,o=n.Menu,a=n.MenuList,l=n.MenuPortal,s=n.LoadingMessage,c=n.NoOptionsMessage,d=n.Option,u=this.commonProps,p=this.state.focusedOption,m=this.props,g=m.captureMenuScroll,h=m.inputValue,f=m.isLoading,b=m.loadingMessage,v=m.minMenuHeight,x=m.maxMenuHeight,y=m.menuIsOpen,w=m.menuPlacement,C=m.menuPosition,E=m.menuPortalTarget,I=m.menuShouldBlockScroll,A=m.menuShouldScrollIntoView,k=m.noOptionsMessage,M=m.onMenuScrollToTop,H=m.onMenuScrollToBottom;if(!y)return null;var N,V=function(n,r){var i=n.type,o=n.data,a=n.isDisabled,l=n.isSelected,s=n.label,c=n.value,m=p===o,g=a?void 0:function(){return t.onOptionHover(o)},h=a?void 0:function(){return t.selectOption(o)},f="".concat(t.getElementId("option"),"-").concat(r),b={id:f,onClick:h,onMouseMove:g,onMouseOver:g,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:l};return e.createElement(d,ce({},u,{innerProps:b,data:o,isDisabled:a,isSelected:l,key:f,label:s,type:i,value:c,isFocused:m,innerRef:m?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())N=this.getCategorizedOptions().map((function(n){if("group"===n.type){var o=n.data,a=n.options,l=n.index,s="".concat(t.getElementId("group"),"-").concat(l),c="".concat(s,"-heading");return e.createElement(r,ce({},u,{key:s,data:o,options:a,Heading:i,headingProps:{id:c,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return V(e,"".concat(l,"-").concat(e.index))})))}if("option"===n.type)return V(n,"".concat(n.index))}));else if(f){var Z=b({inputValue:h});if(null===Z)return null;N=e.createElement(s,u,Z)}else{var D=k({inputValue:h});if(null===D)return null;N=e.createElement(c,u,D)}var L={minMenuHeight:v,maxMenuHeight:x,menuPlacement:w,menuPosition:C,menuShouldScrollIntoView:A},O=e.createElement(wm,ce({},u,L),(function(n){var r=n.ref,i=n.placerProps,l=i.placement,s=i.maxHeight;return e.createElement(o,ce({},u,L,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:f,placement:l}),e.createElement(Hg,{captureEnabled:g,onTopArrive:M,onBottomArrive:H,lockEnabled:I},(function(n){return e.createElement(a,ce({},u,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:t.getElementId("listbox")},isLoading:f,maxHeight:s,focusedOption:p}),N)})))}));return E||"fixed"===C?e.createElement(l,ce({},u,{appendTo:E,controlElement:this.controlRef,menuPlacement:w,menuPosition:C}),O):O}},{key:"renderFormField",value:function(){var t=this,n=this.props,r=n.delimiter,i=n.isDisabled,o=n.isMulti,a=n.name,l=n.required,s=this.state.selectValue;if(l&&!this.hasValue()&&!i)return e.createElement(Vg,{name:a,onFocus:this.onValueInputFocus});if(a&&!i){if(o){if(r){var c=s.map((function(e){return t.getOptionValue(e)})).join(r);return e.createElement("input",{name:a,type:"hidden",value:c})}var d=s.length>0?s.map((function(n,r){return e.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:a,type:"hidden",value:""});return e.createElement("div",null,d)}var u=s[0]?this.getOptionValue(s[0]):"";return e.createElement("input",{name:a,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,i=n.focusedOption,o=n.focusedValue,a=n.isFocused,l=n.selectValue,s=this.getFocusableOptions();return e.createElement(rg,ce({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:i,focusedValue:o,isFocused:a,selectValue:l,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,i=t.SelectContainer,o=t.ValueContainer,a=this.props,l=a.className,s=a.id,c=a.isDisabled,d=a.menuIsOpen,u=this.state.isFocused,p=this.commonProps=this.getCommonProps();return e.createElement(i,ce({},p,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:u}),this.renderLiveRegion(),e.createElement(n,ce({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:u,menuIsOpen:d}),e.createElement(o,ce({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,ce({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,a=t.isFocused,l=t.prevWasFocused,s=t.instancePrefix,c=e.options,d=e.value,u=e.menuIsOpen,p=e.inputValue,m=e.isMulti,g=em(d),h={};if(n&&(d!==n.value||c!==n.options||u!==n.menuIsOpen||p!==n.inputValue)){var f=u?function(e,t){return Gg(Bg(e,t))}(e,g):[],b=u?Wg(Bg(e,g),"".concat(s,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,g):null,x=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,f);h={selectValue:g,focusedOption:x,focusedOptionId:jg(b,x),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var y=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},w=o,C=a&&l;return a&&!C&&(w={value:gm(m,g,g[0]||null),options:g,action:"initial-input-focus"},C=!l),"initial-input-focus"===(null==o?void 0:o.action)&&(w=null),Ed(Ed(Ed({},h),y),{},{prevProps:e,ariaSelection:w,prevWasFocused:C})}}]),r}();Kg.defaultProps=$g;var qg=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function eh(e){var t=e.defaultInputValue,n=void 0===t?"":t,i=e.defaultMenuIsOpen,o=void 0!==i&&i,a=e.defaultValue,l=void 0===a?null:a,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,p=e.onInputChange,m=e.onMenuClose,g=e.onMenuOpen,h=e.value,f=Jp(e,qg),b=Yp(r(void 0!==s?s:n),2),v=b[0],x=b[1],y=Yp(r(void 0!==c?c:o),2),w=y[0],C=y[1],E=Yp(r(void 0!==h?h:l),2),I=E[0],A=E[1],k=d((function(e,t){"function"==typeof u&&u(e,t),A(e)}),[u]),M=d((function(e,t){var n;"function"==typeof p&&(n=p(e,t)),x(void 0!==n?n:e)}),[p]),H=d((function(){"function"==typeof g&&g(),C(!0)}),[g]),N=d((function(){"function"==typeof m&&m(),C(!1)}),[m]),V=void 0!==s?s:v,Z=void 0!==c?c:w,D=void 0!==h?h:I;return Ed(Ed({},f),{},{inputValue:V,menuIsOpen:Z,onChange:k,onInputChange:M,onMenuClose:N,onMenuOpen:H,value:D})}var th=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],nh=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),i=String(t.getOptionLabel(e)).toLowerCase();return r===n||i===n},rh={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return nh(e,t,r)}))||n.some((function(t){return nh(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};var ih=n((function(t,n){var r=function(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,i=void 0===r?"last":r,o=e.formatCreateLabel,a=void 0===o?rh.formatCreateLabel:o,l=e.isValidNewOption,s=void 0===l?rh.isValidNewOption:l,c=e.getNewOptionData,u=void 0===c?rh.getNewOptionData:c,m=e.onCreateOption,g=e.options,h=void 0===g?[]:g,f=e.onChange,b=Jp(e,th),v=b.getOptionValue,x=void 0===v?Rg:v,y=b.getOptionLabel,w=void 0===y?Og:y,C=b.inputValue,E=b.isLoading,I=b.isMulti,A=b.value,k=b.name,M=p((function(){return s(C,em(A),h,{getOptionValue:x,getOptionLabel:w})?u(C,a(C)):void 0}),[a,u,w,x,C,s,h,A]),H=p((function(){return!n&&E||!M?h:"first"===i?[M].concat(Vd(h)):[].concat(Vd(h),[M])}),[n,i,E,M,h]),N=d((function(e,t){if("select-option"!==t.action)return f(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==M)f(e,t);else if(m)m(C);else{var r=u(C,C),i={action:"create-option",name:k,option:r};f(gm(I,[].concat(Vd(em(A)),[r]),r),i)}}),[u,C,I,k,M,m,f,A]);return Ed(Ed({},b),{},{options:H,onChange:N})}(eh(t));return e.createElement(Kg,ce({ref:n},r))})),oh=ih,ah=n((function(t,n){var r=eh(t);return e.createElement(Kg,ce({ref:n},r))}));const lh=v.div`
|
|
971
|
+
`;function xd(e){return xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xd(e)}function yd(e){var t=function(e,t){if("object"!=xd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=xd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xd(t)?t:t+""}function wd(e,t,n){return(t=yd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cd(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Id(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yd(r.key),r)}}function Ad(e){return Ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ad(e)}function kd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kd=function(){return!!e})()}function Md(e){var t=kd();return function(){var n,r=Ad(e);if(t){var i=Ad(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==xd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return et(e)}(this,n)}}function Hd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nd(e,t){if(e){if("string"==typeof e)return Hd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hd(e,t):void 0}}function Vd(e){return function(e){if(Array.isArray(e))return Hd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Nd(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Zd=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Dd="-ms-",Ld="-moz-",Od="-webkit-",Rd="comm",Sd="rule",$d="decl",Td="@keyframes",zd=Math.abs,Bd=String.fromCharCode,Gd=Object.assign;function Wd(e){return e.trim()}function Pd(e,t,n){return e.replace(t,n)}function jd(e,t){return e.indexOf(t)}function Fd(e,t){return 0|e.charCodeAt(t)}function Xd(e,t,n){return e.slice(t,n)}function Yd(e){return e.length}function Jd(e){return e.length}function Ud(e,t){return t.push(e),e}var Qd=1,_d=1,Kd=0,qd=0,eu=0,tu="";function nu(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Qd,column:_d,length:a,return:""}}function ru(e,t){return Gd(nu("",null,null,"",null,null,0),e,{length:-e.length},t)}function iu(){return eu=qd>0?Fd(tu,--qd):0,_d--,10===eu&&(_d=1,Qd--),eu}function ou(){return eu=qd<Kd?Fd(tu,qd++):0,_d++,10===eu&&(_d=1,Qd++),eu}function au(){return Fd(tu,qd)}function lu(){return qd}function su(e,t){return Xd(tu,e,t)}function cu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function du(e){return Qd=_d=1,Kd=Yd(tu=e),qd=0,[]}function uu(e){return tu="",e}function pu(e){return Wd(su(qd-1,hu(91===e?e+2:40===e?e+1:e)))}function mu(e){for(;(eu=au())&&eu<33;)ou();return cu(e)>2||cu(eu)>3?"":" "}function gu(e,t){for(;--t&&ou()&&!(eu<48||eu>102||eu>57&&eu<65||eu>70&&eu<97););return su(e,lu()+(t<6&&32==au()&&32==ou()))}function hu(e){for(;ou();)switch(eu){case e:return qd;case 34:case 39:34!==e&&39!==e&&hu(eu);break;case 40:41===e&&hu(e);break;case 92:ou()}return qd}function fu(e,t){for(;ou()&&e+eu!==57&&(e+eu!==84||47!==au()););return"/*"+su(t,qd-1)+"*"+Bd(47===e?e:ou())}function bu(e){for(;!cu(au());)ou();return su(e,qd)}function vu(e){return uu(xu("",null,null,null,[""],e=du(e),0,[0],e))}function xu(e,t,n,r,i,o,a,l,s){for(var c=0,d=0,u=a,p=0,m=0,g=0,h=1,f=1,b=1,v=0,x="",y=i,w=o,C=r,E=x;f;)switch(g=v,v=ou()){case 40:if(108!=g&&58==Fd(E,u-1)){-1!=jd(E+=Pd(pu(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:E+=pu(v);break;case 9:case 10:case 13:case 32:E+=mu(g);break;case 92:E+=gu(lu()-1,7);continue;case 47:switch(au()){case 42:case 47:Ud(wu(fu(ou(),lu()),t,n),s);break;default:E+="/"}break;case 123*h:l[c++]=Yd(E)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:f=0;case 59+d:-1==b&&(E=Pd(E,/\f/g,"")),m>0&&Yd(E)-u&&Ud(m>32?Cu(E+";",r,n,u-1):Cu(Pd(E," ","")+";",r,n,u-2),s);break;case 59:E+=";";default:if(Ud(C=yu(E,t,n,c,d,i,l,x,y=[],w=[],u),o),123===v)if(0===d)xu(E,t,C,C,y,o,u,l,w);else switch(99===p&&110===Fd(E,3)?100:p){case 100:case 108:case 109:case 115:xu(e,C,C,r&&Ud(yu(e,C,C,0,0,i,l,x,i,y=[],u),w),i,w,u,l,r?y:w);break;default:xu(E,C,C,C,[""],w,0,l,w)}}c=d=m=0,h=b=1,x=E="",u=a;break;case 58:u=1+Yd(E),m=g;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==iu())continue;switch(E+=Bd(v),v*h){case 38:b=d>0?1:(E+="\f",-1);break;case 44:l[c++]=(Yd(E)-1)*b,b=1;break;case 64:45===au()&&(E+=pu(ou())),p=au(),d=u=Yd(x=E+=bu(lu())),v++;break;case 45:45===g&&2==Yd(E)&&(h=0)}}return o}function yu(e,t,n,r,i,o,a,l,s,c,d){for(var u=i-1,p=0===i?o:[""],m=Jd(p),g=0,h=0,f=0;g<r;++g)for(var b=0,v=Xd(e,u+1,u=zd(h=a[g])),x=e;b<m;++b)(x=Wd(h>0?p[b]+" "+v:Pd(v,/&\f/g,p[b])))&&(s[f++]=x);return nu(e,t,n,0===i?Sd:l,s,c,d)}function wu(e,t,n){return nu(e,t,n,Rd,Bd(eu),Xd(e,2,-2),0)}function Cu(e,t,n,r){return nu(e,t,n,$d,Xd(e,0,r),Xd(e,r+1,-1),r)}function Eu(e,t){for(var n="",r=Jd(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Iu(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case $d:return e.return=e.return||e.value;case Rd:return"";case Td:return e.return=e.value+"{"+Eu(e.children,r)+"}";case Sd:e.value=e.props.join(",")}return Yd(n=Eu(e.children,r))?e.return=e.value+"{"+n+"}":""}function Au(e){var t=Jd(e);return function(n,r,i,o){for(var a="",l=0;l<t;l++)a+=e[l](n,r,i,o)||"";return a}}function ku(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Mu=function(e,t,n){for(var r=0,i=0;r=i,i=au(),38===r&&12===i&&(t[n]=1),!cu(i);)ou();return su(e,qd)},Hu=function(e,t){return uu(function(e,t){var n=-1,r=44;do{switch(cu(r)){case 0:38===r&&12===au()&&(t[n]=1),e[n]+=Mu(qd-1,t,n);break;case 2:e[n]+=pu(r);break;case 4:if(44===r){e[++n]=58===au()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Bd(r)}}while(r=ou());return e}(du(e),t))},Nu=new WeakMap,Vu=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Nu.get(n))&&!r){Nu.set(e,!0);for(var i=[],o=Hu(t,i),a=n.props,l=0,s=0;l<o.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=i[l]?o[l].replace(/&\f/g,a[c]):a[c]+" "+o[l]}}},Zu=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Du=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},Lu=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Ou=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Ru=function(e,t,n){Lu(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Ou(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Lu(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ou(e)))};function Su(e,t){switch(function(e,t){return 45^Fd(e,0)?(((t<<2^Fd(e,0))<<2^Fd(e,1))<<2^Fd(e,2))<<2^Fd(e,3):0}(e,t)){case 5103:return Od+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Od+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Od+e+Ld+e+Dd+e+e;case 6828:case 4268:return Od+e+Dd+e+e;case 6165:return Od+e+Dd+"flex-"+e+e;case 5187:return Od+e+Pd(e,/(\w+).+(:[^]+)/,Od+"box-$1$2"+Dd+"flex-$1$2")+e;case 5443:return Od+e+Dd+"flex-item-"+Pd(e,/flex-|-self/,"")+e;case 4675:return Od+e+Dd+"flex-line-pack"+Pd(e,/align-content|flex-|-self/,"")+e;case 5548:return Od+e+Dd+Pd(e,"shrink","negative")+e;case 5292:return Od+e+Dd+Pd(e,"basis","preferred-size")+e;case 6060:return Od+"box-"+Pd(e,"-grow","")+Od+e+Dd+Pd(e,"grow","positive")+e;case 4554:return Od+Pd(e,/([^-])(transform)/g,"$1"+Od+"$2")+e;case 6187:return Pd(Pd(Pd(e,/(zoom-|grab)/,Od+"$1"),/(image-set)/,Od+"$1"),e,"")+e;case 5495:case 3959:return Pd(e,/(image-set\([^]*)/,Od+"$1$`$1");case 4968:return Pd(Pd(e,/(.+:)(flex-)?(.*)/,Od+"box-pack:$3"+Dd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Od+e+e;case 4095:case 3583:case 4068:case 2532:return Pd(e,/(.+)-inline(.+)/,Od+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Yd(e)-1-t>6)switch(Fd(e,t+1)){case 109:if(45!==Fd(e,t+4))break;case 102:return Pd(e,/(.+:)(.+)-([^]+)/,"$1"+Od+"$2-$3$1"+Ld+(108==Fd(e,t+3)?"$3":"$2-$3"))+e;case 115:return~jd(e,"stretch")?Su(Pd(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Fd(e,t+1))break;case 6444:switch(Fd(e,Yd(e)-3-(~jd(e,"!important")&&10))){case 107:return Pd(e,":",":"+Od)+e;case 101:return Pd(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Od+(45===Fd(e,14)?"inline-":"")+"box$3$1"+Od+"$2$3$1"+Dd+"$2box$3")+e}break;case 5936:switch(Fd(e,t+11)){case 114:return Od+e+Dd+Pd(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Od+e+Dd+Pd(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Od+e+Dd+Pd(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Od+e+Dd+e+e}return e}var $u,Tu,zu="undefined"!=typeof document,Bu=zu?void 0:($u=function(){return ku((function(){var e={};return function(t){return e[t]}}))},Tu=new WeakMap,function(e){if(Tu.has(e))return Tu.get(e);var t=$u(e);return Tu.set(e,t),t}),Gu=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $d:e.return=Su(e.value,e.length);break;case Td:return Eu([ru(e,{value:Pd(e.value,"@","@"+Od)})],r);case Sd:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Eu([ru(e,{props:[Pd(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Eu([ru(e,{props:[Pd(t,/:(plac\w+)/,":"+Od+"input-$1")]}),ru(e,{props:[Pd(t,/:(plac\w+)/,":-moz-$1")]}),ru(e,{props:[Pd(t,/:(plac\w+)/,Dd+"input-$1")]})],r)}return""}))}}],Wu=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(zu&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Gu;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i,o,a={},l=[];zu&&(i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)})));var s,c=[Vu,Zu];if("production"!==process.env.NODE_ENV&&c.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=t.parent?t.parent.children:r,a=o.length-1;a>=0;a--){var l=o[a];if(l.line<t.line)break;if(l.column<t.column){if(Du(l))return;break}}i.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return b.compat}}),Ru),zu){var d,u=[Iu,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?d.insert(e.return):e.value&&e.type!==Rd&&d.insert(e.value+"{}"))}:(s=function(e){d.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=Au(c.concat(r,u));o=function(e,t,n,r){d=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(d={insert:function(e){n.insert(e+t.map)}}),Eu(vu(e?e+"{"+t.styles+"}":t.styles),p),r&&(b.inserted[t.name]=!0)}}else{var m=[Iu],g=Au(c.concat(r,m)),h=Bu(r)(t),f=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=Eu(vu(e?e+"{"+t.styles+"}":t.styles),g)),h[n]};o=function(e,t,n,r){var i=t.name,o=f(e,t);return void 0===b.compat?(r&&(b.inserted[i]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?o+t.map:o):r?void(b.inserted[i]=o):o}}var b={key:t,sheet:new Zd({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return b.sheet.hydrate(l),b},Pu=De,ju={};ju[Pu.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ju[Pu.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Fu="undefined"!=typeof document;function Xu(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Yu=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Fu&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ju=function(e,t,n){Yu(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);Fu||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!Fu&&0!==i.length)return i}};var Uu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qu="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",_u="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Ku=/[A-Z]|^ms/g,qu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ep=function(e){return 45===e.charCodeAt(1)},tp=function(e){return null!=e&&"boolean"!=typeof e},np=ku((function(e){return ep(e)?e:e.replace(Ku,"-$&").toLowerCase()})),rp=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(qu,(function(e,t,n){return mp={name:t,styles:n,next:mp},t}))}return 1===Uu[e]||ep(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var ip=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,op=["normal","none","initial","inherit","unset"],ap=rp,lp=/^-ms-/,sp=/-(.)/g,cp={};rp=function(e,t){if("content"===e&&("string"!=typeof t||-1===op.indexOf(t)&&!ip.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=ap(e,t);return""===n||ep(e)||-1===e.indexOf("-")||void 0!==cp[e]||(cp[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(lp,"ms-").replace(sp,(function(e,t){return t.toUpperCase()}))+"?")),n}}var dp="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function up(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(dp);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return mp={name:n.name,styles:n.styles,next:mp},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)mp={name:r.name,styles:r.styles,next:mp},r=r.next;var i=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(i+=n.map),i}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=up(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":tp(a)&&(r+=np(o)+":"+rp(o,a)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error(dp);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=up(e,t,a);switch(o){case"animation":case"animationName":r+=np(o)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===o&&console.error(_u),r+=o+"{"+l+"}"}}else for(var s=0;s<a.length;s++)tp(a[s])&&(r+=np(o)+":"+rp(o,a[s])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var o=mp,a=n(e);return mp=o,up(e,t,a)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],s=n.replace(qu,(function(e,t,n){var r="animation"+l.length;return l.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}}if(null==t)return n;var c=t[n];return void 0!==c?c:n}var pp,mp,gp=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(pp=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var hp=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";mp=void 0;var o,a=e[0];null==a||void 0===a.raw?(r=!1,i+=up(n,t,a)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(Qu),i+=a[0]);for(var l=1;l<e.length;l++)i+=up(n,t,e[l]),r&&("production"!==process.env.NODE_ENV&&void 0===a[l]&&console.error(Qu),i+=a[l]);"production"!==process.env.NODE_ENV&&(i=i.replace(pp,(function(e){return o=e,""}))),gp.lastIndex=0;for(var s,c="";null!==(s=gp.exec(i));)c+="-"+s[1];var d=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+c;return"production"!==process.env.NODE_ENV?{name:d,styles:i,map:o,next:mp,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:i,next:mp}},fp="undefined"!=typeof document,bp=function(e){return e()},vp=!!e.useInsertionEffect&&e.useInsertionEffect,xp=fp&&vp||bp,yp=vp||e.useLayoutEffect,wp="undefined"!=typeof document,Cp={}.hasOwnProperty,Ep=e.createContext("undefined"!=typeof HTMLElement?Wu({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Ep.displayName="EmotionCacheContext"),Ep.Provider;var Ip=function(e){return n((function(t,n){var r=g(Ep);return e(t,r,n)}))};wp||(Ip=function(t){return function(n){var r=g(Ep);return null===r?(r=Wu({key:"css"}),e.createElement(Ep.Provider,{value:r},t(n,r))):t(n,r)}});var Ap=e.createContext({});"production"!==process.env.NODE_ENV&&(Ap.displayName="EmotionThemeContext");var kp=function(e){var t=e.split(".");return t[t.length-1]},Mp=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?kp(t[1]):void 0},Hp=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Np=function(e){return e.replace(/\$/g,"-")},Vp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Zp="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Dp=function(e,t){if("production"!==process.env.NODE_ENV&&"string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)Cp.call(t,r)&&(n[r]=t[r]);if(n[Vp]=e,"production"!==process.env.NODE_ENV&&t.css&&("object"!=typeof t.css||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var i=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=Mp(t[n]);if(r){if(Hp.has(r))break;if(/^[A-Z]/.test(r))return Np(r)}}}((new Error).stack);i&&(n[Zp]=i)}return n},Lp=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;Yu(n,r,i);var o=xp((function(){return Ju(n,r,i)}));if(!wp&&void 0!==o){for(var a,l=r.name,s=r.next;void 0!==s;)l+=" "+s.name,s=s.next;return e.createElement("style",((a={})["data-emotion"]=n.key+" "+l,a.dangerouslySetInnerHTML={__html:o},a.nonce=n.sheet.nonce,a))}return null},Op=Ip((function(t,n,r){var i=t.css;"string"==typeof i&&void 0!==n.registered[i]&&(i=n.registered[i]);var o=t[Vp],a=[i],l="";"string"==typeof t.className?l=Xu(n.registered,a,t.className):null!=t.className&&(l=t.className+" ");var s=hp(a,void 0,e.useContext(Ap));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var c=t[Zp];c&&(s=hp([s,"label:"+c+";"]))}l+=n.key+"-"+s.name;var d={};for(var u in t)!Cp.call(t,u)||"css"===u||u===Vp||"production"!==process.env.NODE_ENV&&u===Zp||(d[u]=t[u]);return d.ref=r,d.className=l,e.createElement(e.Fragment,null,e.createElement(Lp,{cache:n,serialized:s,isStringTag:"string"==typeof o}),e.createElement(o,d))}));"production"!==process.env.NODE_ENV&&(Op.displayName="EmotionCssPropInternal");var Rp=Op,Sp=function(t,n){var r=arguments;if(null==n||!Cp.call(n,"css"))return e.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=Rp,o[1]=Dp(t,n);for(var a=2;a<i;a++)o[a]=r[a];return e.createElement.apply(null,o)},$p=!1,Tp=Ip((function(t,n){"production"===process.env.NODE_ENV||$p||!t.className&&!t.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),$p=!0);var r=t.styles,i=hp([r],void 0,e.useContext(Ap));if(!wp){for(var o,a=i.name,l=i.styles,s=i.next;void 0!==s;)a+=" "+s.name,l+=s.styles,s=s.next;var c=!0===n.compat,d=n.insert("",{name:a,styles:l},n.sheet,c);return c?null:e.createElement("style",((o={})["data-emotion"]=n.key+"-global "+a,o.dangerouslySetInnerHTML={__html:d},o.nonce=n.sheet.nonce,o))}var u=e.useRef();return yp((function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+i.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),t.hydrate([o])),u.current=[t,r],function(){t.flush()}}),[n]),yp((function(){var e=u.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==i.next&&Ju(n,i.next,!0),t.tags.length){var r=t.tags[t.tags.length-1].nextElementSibling;t.before=r,t.flush()}n.insert("",i,t,!1)}}),[n,i.name]),null}));function zp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return hp(t)}"production"!==process.env.NODE_ENV&&(Tp.displayName="EmotionGlobal");var Bp=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var l in"production"!==process.env.NODE_ENV&&void 0!==o.styles&&void 0!==o.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",o)o[l]&&l&&(a&&(a+=" "),a+=l);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};var Gp=function(t){var n,r=t.cache,i=t.serializedArr,o=xp((function(){for(var e="",t=0;t<i.length;t++){var n=Ju(r,i[t],!1);wp||void 0===n||(e+=n)}if(!wp)return e}));return wp||0===o.length?null:e.createElement("style",((n={})["data-emotion"]=r.key+" "+i.map((function(e){return e.name})).join(" "),n.dangerouslySetInnerHTML={__html:o},n.nonce=r.sheet.nonce,n))},Wp=Ip((function(t,n){var r=!1,i=[],o=function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var a=hp(t,n.registered);return i.push(a),Yu(n,a,!1),n.key+"-"+a.name},a={css:o,cx:function(){if(r&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e,t,n){var r=[],i=Xu(e,r,n);return r.length<2?n:i+t(r)}(n.registered,o,Bp(t))},theme:e.useContext(Ap)},l=t.children(a);return r=!0,e.createElement(e.Fragment,null,e.createElement(Gp,{cache:n,serializedArr:i}),l)}));if("production"!==process.env.NODE_ENV&&(Wp.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var Pp="undefined"!=typeof document,jp="undefined"!=typeof jest||"undefined"!=typeof vi;if(Pp&&!jp){var Fp="undefined"!=typeof globalThis?globalThis:Pp?window:global,Xp="__EMOTION_REACT_"+"11.11.1".split(".")[0]+"__";Fp[Xp]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Fp[Xp]=!0}}function Yp(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 r,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||Nd(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jp(e,t){if(null==e)return{};var n,r,i=de(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Up="undefined"!=typeof document?u:o,Qp=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],_p=function(){};function Kp(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function qp(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(Kp(e,a)));return o.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var em=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===xd(e)&&null!==e?[e]:[];var t},tm=function(e){return 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,Ed({},Jp(e,Qp))},nm=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};function rm(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function im(e){return rm(e)?window.pageYOffset:e.scrollTop}function om(e,t){rm(e)?window.scrollTo(0,t):e.scrollTop=t}function am(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_p,i=im(e),o=t-i,a=0;!function t(){var l,s=o*((l=(l=a+=10)/n-1)*l*l+1)+i;om(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function lm(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?om(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&om(e,Math.max(t.offsetTop-i,0))}function sm(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var cm=!1,dm={get passive(){return cm=!0}},um="undefined"!=typeof window?window:{};um.addEventListener&&um.removeEventListener&&(um.addEventListener("p",_p,dm),um.removeEventListener("p",_p,!1));var pm=cm;function mm(e){return null!=e}function gm(e,t,n){return e?t:n}var hm=["children","innerProps"],fm=["children","innerProps"];function bm(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,l=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var d,u=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),m=p.bottom,g=p.height,h=p.top,f=n.offsetParent.getBoundingClientRect().top,b=a?window.innerHeight:rm(d=s)?window.innerHeight:d.clientHeight,v=im(s),x=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=f-y,C=b-h,E=w+v,I=u-v-h,A=m-b+v+x,k=v+h-y,M=160;switch(i){case"auto":case"bottom":if(C>=g)return{placement:"bottom",maxHeight:t};if(I>=g&&!a)return o&&am(s,A,M),{placement:"bottom",maxHeight:t};if(!a&&I>=r||a&&C>=r)return o&&am(s,A,M),{placement:"bottom",maxHeight:a?C-x:I-x};if("auto"===i||a){var H=t,N=a?w:E;return N>=r&&(H=Math.min(N-x-l,t)),{placement:"top",maxHeight:H}}if("bottom"===i)return o&&om(s,A),{placement:"bottom",maxHeight:t};break;case"top":if(w>=g)return{placement:"top",maxHeight:t};if(E>=g&&!a)return o&&am(s,k,M),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&w>=r){var V=t;return(!a&&E>=r||a&&w>=r)&&(V=a?w-y:E-y),o&&am(s,k,M),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var vm,xm=function(e){return"auto"===e?"bottom":e},ym=m(null),wm=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,a=e.menuPlacement,l=e.menuPosition,s=e.menuShouldScrollIntoView,c=e.theme,d=(g(ym)||{}).setPortalPlacement,u=i(null),p=Yp(r(o),2),m=p[0],h=p[1],f=Yp(r(null),2),b=f[0],v=f[1],x=c.spacing.controlHeight;return Up((function(){var e=u.current;if(e){var t="fixed"===l,r=bm({maxHeight:o,menuEl:e,minHeight:n,placement:a,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:x});h(r.maxHeight),v(r.placement),null==d||d(r.placement)}}),[o,a,l,s,n,d,x]),t({ref:u,placerProps:Ed(Ed({},e),{},{placement:b||xm(a),maxHeight:m})})},Cm=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Sp("div",ce({},nm(e,"menu",{menu:!0}),{ref:n},r),t)},Em=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return Ed({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Im=Em,Am=Em,km=["size"],Mm=["innerProps","isRtl","size"];var Hm,Nm,Vm="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY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ExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Zm=function(e){var t=e.size,n=Jp(e,km);return Sp("svg",ce({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Vm},n))},Dm=function(e){return Sp(Zm,ce({size:20},e),Sp("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"}))},Lm=function(e){return Sp(Zm,ce({size:20},e),Sp("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"}))},Om=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return Ed({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},Rm=Om,Sm=Om,$m=function(){var e=zp.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(vm||(Hm=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Nm||(Nm=Hm.slice(0)),vm=Object.freeze(Object.defineProperties(Hm,{raw:{value:Object.freeze(Nm)}})))),Tm=function(e){var t=e.delay,n=e.offset;return Sp("span",{css:zp({animation:"".concat($m," 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"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDx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SdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},zm=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return Sp("div",ce({ref:i},nm(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},Bm=["data"],Gm=function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,l=e.innerProps,s=e.label,c=e.theme,d=e.selectProps;return Sp("div",ce({},nm(e,"group",{group:!0}),l),Sp(o,ce({},a,{selectProps:d,theme:c,getStyles:r,getClassNames:i,cx:n}),s),Sp("div",null,t))},Wm=["innerRef","isDisabled","isHidden","inputClassName"],Pm={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},jm={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ed({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Pm)},Fm=function(e){return Ed({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Pm)},Xm=function(e){var t=e.cx,n=e.value,r=tm(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,l=r.inputClassName,s=Jp(r,Wm);return Sp("div",ce({},nm(e,"input",{"input-container":!0}),{"data-value":n||""}),Sp("input",ce({className:t({input:!0},l),ref:i,style:Fm(a),disabled:o},s)))},Ym=function(e){var t=e.children,n=e.innerProps;return Sp("div",n,t)};var Jm=function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,l=e.selectProps,s=n.Container,c=n.Label,d=n.Remove;return Sp(s,{data:r,innerProps:Ed(Ed({},nm(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:l},Sp(c,{data:r,innerProps:Ed({},nm(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),Sp(d,{data:r,innerProps:Ed(Ed({},nm(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},Um=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return Sp("div",ce({},nm(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Qm=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Sp("div",ce({},nm(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},_m={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Sp("div",ce({},nm(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Sp(Dm,null))},Control:zm,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Sp("div",ce({},nm(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Sp(Lm,null))},DownChevron:Lm,CrossIcon:Dm,Group:Gm,GroupHeading:function(e){var t=tm(e);t.data;var n=Jp(t,Bm);return Sp("div",ce({},nm(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Sp("div",ce({},nm(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Sp("span",ce({},t,nm(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Xm,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,o=Jp(e,Mm);return Sp("div",ce({},nm(Ed(Ed({},o),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Sp(Tm,{delay:0,offset:n}),Sp(Tm,{delay:160,offset:!0}),Sp(Tm,{delay:320,offset:!n}))},Menu:Cm,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return Sp("div",ce({},nm(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,a=e.innerProps,l=e.menuPlacement,s=e.menuPosition,c=i(null),u=i(null),m=Yp(r(xm(l)),2),g=m[0],h=m[1],f=p((function(){return{setPortalPlacement:h}}),[]),b=Yp(r(null),2),v=b[0],x=b[1],y=d((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===s?0:window.pageYOffset,n=e[g]+t;n===(null==v?void 0:v.offset)&&e.left===(null==v?void 0:v.rect.left)&&e.width===(null==v?void 0:v.rect.width)||x({offset:n,rect:e})}}),[o,s,g,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);Up((function(){y()}),[y]);var w=d((function(){"function"==typeof u.current&&(u.current(),u.current=null),o&&c.current&&(u.current=Yi(o,c.current,y,{elementResize:"ResizeObserver"in window}))}),[o,y]);Up((function(){w()}),[w]);var C=d((function(e){c.current=e,w()}),[w]);if(!t&&"fixed"!==s||!v)return null;var E=Sp("div",ce({ref:C},nm(Ed(Ed({},e),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),a),n);return Sp(ym.Provider,{value:f},t?A(E,t):E)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=Jp(e,fm);return Sp("div",ce({},nm(Ed(Ed({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=Jp(e,hm);return Sp("div",ce({},nm(Ed(Ed({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Jm,MultiValueContainer:Ym,MultiValueLabel:Ym,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Sp("div",ce({role:"button"},n),t||Sp(Dm,{size:14}))},Option:Um,Placeholder:function(e){var t=e.children,n=e.innerProps;return Sp("div",ce({},nm(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return Sp("div",ce({},nm(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:Qm,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return Sp("div",ce({},nm(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},Km=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function qm(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],i=t[n],!(r===i||Km(r)&&Km(i)))return!1;var r,i;return!0}for(var eg="production"===process.env.NODE_ENV?{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"}:{name:"1f43avz-a11yText-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;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},tg=function(e){return Sp("span",ce({css:eg},e))},ng={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,o=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".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,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", 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"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,l=e.isDisabled,s=e.isSelected,c=e.isAppleDevice,d=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(d(a,n),".");if("menu"===t&&c){var u=l?" disabled":"",p="".concat(s?" selected":"").concat(u);return"".concat(o).concat(p,", ").concat(d(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},rg=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,a=e.selectValue,l=e.selectProps,s=e.id,c=e.isAppleDevice,d=l.ariaLiveMessages,u=l.getOptionLabel,m=l.inputValue,g=l.isMulti,h=l.isOptionDisabled,f=l.isSearchable,v=l.menuIsOpen,x=l.options,y=l.screenReaderStatus,w=l.tabSelectsValue,C=l.isLoading,E=l["aria-label"],I=l["aria-live"],A=p((function(){return Ed(Ed({},ng),d||{})}),[d]),k=p((function(){var e,n="";if(t&&A.onChange){var r=t.option,i=t.options,o=t.removedValue,l=t.removedValues,s=t.value,c=o||r||(e=s,Array.isArray(e)?null:e),d=c?u(c):"",p=i||l||void 0,m=p?p.map(u):[],g=Ed({isDisabled:c&&h(c,a),label:d,labels:m},t);n=A.onChange(g)}return n}),[t,A,h,a,u]),M=p((function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&A.onFocus){var l={focused:t,label:u(t),isDisabled:h(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:c};e=A.onFocus(l)}return e}),[n,r,u,h,A,i,a,c]),H=p((function(){var e="";if(v&&x.length&&!C&&A.onFilter){var t=y({count:i.length});e=A.onFilter({inputValue:m,resultsMessage:t})}return e}),[i,m,v,A,x,y,C]),N="initial-input-focus"===(null==t?void 0:t.action),V=p((function(){var e="";if(A.guidance){var t=r?"value":v?"menu":"input";e=A.guidance({"aria-label":E,context:t,isDisabled:n&&h(n,a),isMulti:g,isSearchable:f,tabSelectsValue:w,isInitialFocus:N})}return e}),[E,n,r,g,h,f,v,A,a,w,N]),Z=Sp(b,null,Sp("span",{id:"aria-selection"},k),Sp("span",{id:"aria-focused"},M),Sp("span",{id:"aria-results"},H),Sp("span",{id:"aria-guidance"},V));return Sp(b,null,Sp(tg,{id:s},N&&Z),Sp(tg,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!N&&Z))},ig=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{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ǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{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ÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{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ǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{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ßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],og=new RegExp("["+ig.map((function(e){return e.letters})).join("")+"]","g"),ag={},lg=0;lg<ig.length;lg++)for(var sg=ig[lg],cg=0;cg<sg.letters.length;cg++)ag[sg.letters[cg]]=sg.base;var dg=function(e){return e.replace(og,(function(e){return ag[e]}))},ug=function(e,t){void 0===t&&(t=qm);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(dg),pg=function(e){return e.replace(/^\s+|\s+$/g,"")},mg=function(e){return"".concat(e.label," ").concat(e.value)},gg=["innerRef"];function hg(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Object.entries(e).filter((function(e){var t=Yp(e,1)[0];return!n.includes(t)}));return i.reduce((function(e,t){var n=Yp(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})}(Jp(e,gg),"onExited","in","enter","exit","appear");return Sp("input",ce({ref:t},n,{css:zp({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)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var fg=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var bg=["boxSizing","height","overflow","paddingRight","position"],vg={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function xg(e){e.preventDefault()}function yg(e){e.stopPropagation()}function wg(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Cg(){return"ontouchstart"in window||navigator.maxTouchPoints}var Eg=!("undefined"==typeof window||!window.document||!window.document.createElement),Ig=0,Ag={capture:!1,passive:!1};var kg=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Mg="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbG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IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function Hg(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,a=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,a=e.onTopArrive,l=e.onTopLeave,s=i(!1),c=i(!1),u=i(0),p=i(null),m=d((function(e,t){if(null!==p.current){var i=p.current,o=i.scrollTop,d=i.scrollHeight,u=i.clientHeight,m=p.current,g=t>0,h=d-u-o,f=!1;h>t&&s.current&&(r&&r(e),s.current=!1),g&&c.current&&(l&&l(e),c.current=!1),g&&t>h?(n&&!s.current&&n(e),m.scrollTop=d,f=!0,s.current=!0):!g&&-t>o&&(a&&!c.current&&a(e),m.scrollTop=0,f=!0,c.current=!0),f&&fg(e)}}),[n,r,a,l]),g=d((function(e){m(e,e.deltaY)}),[m]),h=d((function(e){u.current=e.changedTouches[0].clientY}),[]),f=d((function(e){var t=u.current-e.changedTouches[0].clientY;m(e,t)}),[m]),b=d((function(e){if(e){var t=!!pm&&{passive:!1};e.addEventListener("wheel",g,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",f,t)}}),[f,h,g]),v=d((function(e){e&&(e.removeEventListener("wheel",g,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",f,!1))}),[f,h,g]);return o((function(){if(t){var e=p.current;return b(e),function(){v(e)}}}),[t,b,v]),function(e){p.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),l=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,a=i({}),l=i(null),s=d((function(e){if(Eg){var t=document.body,n=t&&t.style;if(r&&bg.forEach((function(e){var t=n&&n[e];a.current[e]=t})),r&&Ig<1){var i=parseInt(a.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,l=window.innerWidth-o+i||0;Object.keys(vg).forEach((function(e){var t=vg[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&Cg()&&(t.addEventListener("touchmove",xg,Ag),e&&(e.addEventListener("touchstart",wg,Ag),e.addEventListener("touchmove",yg,Ag))),Ig+=1}}),[r]),c=d((function(e){if(Eg){var t=document.body,n=t&&t.style;Ig=Math.max(Ig-1,0),r&&Ig<1&&bg.forEach((function(e){var t=a.current[e];n&&(n[e]=t)})),t&&Cg()&&(t.removeEventListener("touchmove",xg,Ag),e&&(e.removeEventListener("touchstart",wg,Ag),e.removeEventListener("touchmove",yg,Ag)))}}),[r]);return o((function(){if(t){var e=l.current;return s(e),function(){c(e)}}}),[t,s,c]),function(e){l.current=e}}({isEnabled:n});return Sp(b,null,n&&Sp("div",{onClick:kg,css:Mg}),t((function(e){a(e),l(e)})))}var Ng="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Vg=function(e){var t=e.name,n=e.onFocus;return Sp("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ng,value:"",onChange:function(){}})};function Zg(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Dg(){return Zg(/^Mac/i)}function Lg(){return Zg(/^iPhone/i)||Zg(/^iPad/i)||Dg()&&navigator.maxTouchPoints>1}var Og=function(e){return e.label},Rg=function(e){return e.value},Sg={clearIndicator:Sm,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,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius;return Ed({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:Rm,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,r=n.colors,i=n.spacing;return Ed({label:"group",cursor:"default",display:"block"},t?{}:{color:r.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,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return Ed({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return Ed(Ed({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},jm),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return Ed({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:Am,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,l=i.colors;return Ed((wd(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),wd(n,"position","absolute"),wd(n,"width","100%"),wd(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Ed({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return Ed({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return Ed({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return Ed({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:Im,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,l=o.colors;return Ed({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return Ed({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return Ed({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return Ed({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},$g={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}},Tg={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:sm(),captureMenuScroll:!sm(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=Ed({ignoreCase:!0,ignoreAccents:!0,stringify:mg,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,o=r.ignoreAccents,a=r.stringify,l=r.trim,s=r.matchFrom,c=l?pg(n):n,d=l?pg(a(t)):a(t);return i&&(c=c.toLowerCase(),d=d.toLowerCase()),o&&(c=ug(c),d=dg(d)),"start"===s?d.substr(0,c.length)===c:d.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:Og,getOptionValue:Rg,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 zg(e,t,n,r){return{type:"option",data:t,isDisabled:Yg(e,t,n),isSelected:Jg(e,t,n),label:Fg(e,t),value:Xg(e,t),index:r}}function Bg(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return zg(e,n,t,r)})).filter((function(t){return Pg(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=zg(e,n,t,r);return Pg(e,o)?o:void 0})).filter(mm)}function Gg(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Vd(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Wg(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Vd(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Pg(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,l=t.value;return(!Qg(e)||!o)&&Ug(e,{label:a,value:l,data:i},r)}var jg=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Fg=function(e,t){return e.getOptionLabel(t)},Xg=function(e,t){return e.getOptionValue(t)};function Yg(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Jg(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Xg(e,t);return n.some((function(t){return Xg(e,t)===r}))}function Ug(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Qg=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},_g=1,Kg=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&ue(e,t)}(r,f);var n=Md(r);function r(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Dg()||Lg(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,a=i.isMulti,l=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:l}),o&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=t.state.selectValue,l=i&&t.isOptionSelected(e,a),s=t.isOptionDisabled(e,a);if(l){var c=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:o});i?t.setValue([].concat(Vd(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,i=t.getOptionValue(e),o=r.filter((function(e){return t.getOptionValue(e)!==i})),a=gm(n,o,o[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(gm(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],i=n.slice(0,n.length-1),o=gm(e,i,i[0]||null);t.onChange(o,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return jg(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Wg(Bg(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return qp.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Fg(t.props,e)},t.getOptionValue=function(e){return Xg(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=Sg[e](n,r);i.boxSizing="border-box";var o=t.props.styles[e];return o?o(i,n):i},t.getClassNames=function(e,n){var r,i;return null===(r=(i=t.props.classNames)[e])||void 0===r?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Ed(Ed({},_m),e.components);var e},t.buildCategorizedOptions=function(){return Bg(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Gg(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Ed({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&rm(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Qg(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,l=n.isClearable,s=n.isDisabled,c=n.menuIsOpen,d=n.onKeyDown,u=n.tabSelectsValue,p=n.openMenuOnFocus,m=t.state,g=m.focusedOption,h=m.focusedValue,f=m.selectValue;if(!(s||"function"==typeof d&&(d(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)t.removeValue(h);else{if(!i)return;r?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!u||!g||p&&t.isOptionSelected(g,f))return;t.selectOption(g);break;case"Enter":if(229===e.keyCode)break;if(c){if(!g)return;if(t.isComposing)return;t.selectOption(g);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):l&&o&&t.clearValue();break;case" ":if(a)return;if(!c){t.openMenu("first");break}if(!g)return;t.selectOption(g);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++_g),t.state.selectValue=em(e.value),e.menuIsOpen&&t.state.selectValue.length){var i=t.getFocusableOptionsWithIds(),o=t.buildFocusableOptions(),a=o.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=i,t.state.focusedOption=o[a],t.state.focusedOptionId=jg(i,o[a])}return t}return function(e,t,n){t&&Id(e.prototype,t),n&&Id(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(r,[{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&&lm(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!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&&(lm(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,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var l=o.indexOf(r[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(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,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme($g):Ed(Ed({},$g),this.props.theme):$g}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,l=this.props,s=l.isMulti,c=l.isRtl,d=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:d,selectOption:o,selectProps:l,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 Yg(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Jg(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ug(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{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 t=this.props,n=t.isDisabled,r=t.isSearchable,i=t.inputId,o=t.inputValue,a=t.tabIndex,l=t.form,s=t.menuIsOpen,c=t.required,d=this.getComponents().Input,u=this.state,p=u.inputIsHidden,m=u.ariaSelection,g=this.commonProps,h=i||this.getElementId("input"),f=Ed(Ed(Ed({"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":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?e.createElement(d,ce({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:n,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:l,type:"text",value:o},f)):e.createElement(hg,ce({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:_p,onFocus:this.onInputFocus,disabled:n,tabIndex:a,inputMode:"none",form:l,value:""},f))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,i=n.MultiValueContainer,o=n.MultiValueLabel,a=n.MultiValueRemove,l=n.SingleValue,s=n.Placeholder,c=this.commonProps,d=this.props,u=d.controlShouldRenderValue,p=d.isDisabled,m=d.isMulti,g=d.inputValue,h=d.placeholder,f=this.state,b=f.selectValue,v=f.focusedValue,x=f.isFocused;if(!this.hasValue()||!u)return g?null:e.createElement(s,ce({},c,{key:"placeholder",isDisabled:p,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),h);if(m)return b.map((function(n,l){var s=n===v,d="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(r,ce({},c,{components:{Container:i,Label:o,Remove:a},isFocused:s,isDisabled:p,key:d,index:l,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(g)return null;var y=b[0];return e.createElement(l,ce({},c,{data:y,isDisabled:p}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!t||i||!this.hasValue()||o)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,ce({},n,{innerProps:l,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,a=this.state.isFocused;if(!t||!o)return null;return e.createElement(t,ce({},n,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var i=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return e.createElement(r,ce({},i,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,ce({},n,{innerProps:o,isDisabled:r,isFocused:i}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,o=n.Menu,a=n.MenuList,l=n.MenuPortal,s=n.LoadingMessage,c=n.NoOptionsMessage,d=n.Option,u=this.commonProps,p=this.state.focusedOption,m=this.props,g=m.captureMenuScroll,h=m.inputValue,f=m.isLoading,b=m.loadingMessage,v=m.minMenuHeight,x=m.maxMenuHeight,y=m.menuIsOpen,w=m.menuPlacement,C=m.menuPosition,E=m.menuPortalTarget,I=m.menuShouldBlockScroll,A=m.menuShouldScrollIntoView,k=m.noOptionsMessage,M=m.onMenuScrollToTop,H=m.onMenuScrollToBottom;if(!y)return null;var N,V=function(n,r){var i=n.type,o=n.data,a=n.isDisabled,l=n.isSelected,s=n.label,c=n.value,m=p===o,g=a?void 0:function(){return t.onOptionHover(o)},h=a?void 0:function(){return t.selectOption(o)},f="".concat(t.getElementId("option"),"-").concat(r),b={id:f,onClick:h,onMouseMove:g,onMouseOver:g,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:l};return e.createElement(d,ce({},u,{innerProps:b,data:o,isDisabled:a,isSelected:l,key:f,label:s,type:i,value:c,isFocused:m,innerRef:m?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())N=this.getCategorizedOptions().map((function(n){if("group"===n.type){var o=n.data,a=n.options,l=n.index,s="".concat(t.getElementId("group"),"-").concat(l),c="".concat(s,"-heading");return e.createElement(r,ce({},u,{key:s,data:o,options:a,Heading:i,headingProps:{id:c,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return V(e,"".concat(l,"-").concat(e.index))})))}if("option"===n.type)return V(n,"".concat(n.index))}));else if(f){var Z=b({inputValue:h});if(null===Z)return null;N=e.createElement(s,u,Z)}else{var D=k({inputValue:h});if(null===D)return null;N=e.createElement(c,u,D)}var L={minMenuHeight:v,maxMenuHeight:x,menuPlacement:w,menuPosition:C,menuShouldScrollIntoView:A},O=e.createElement(wm,ce({},u,L),(function(n){var r=n.ref,i=n.placerProps,l=i.placement,s=i.maxHeight;return e.createElement(o,ce({},u,L,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:f,placement:l}),e.createElement(Hg,{captureEnabled:g,onTopArrive:M,onBottomArrive:H,lockEnabled:I},(function(n){return e.createElement(a,ce({},u,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:t.getElementId("listbox")},isLoading:f,maxHeight:s,focusedOption:p}),N)})))}));return E||"fixed"===C?e.createElement(l,ce({},u,{appendTo:E,controlElement:this.controlRef,menuPlacement:w,menuPosition:C}),O):O}},{key:"renderFormField",value:function(){var t=this,n=this.props,r=n.delimiter,i=n.isDisabled,o=n.isMulti,a=n.name,l=n.required,s=this.state.selectValue;if(l&&!this.hasValue()&&!i)return e.createElement(Vg,{name:a,onFocus:this.onValueInputFocus});if(a&&!i){if(o){if(r){var c=s.map((function(e){return t.getOptionValue(e)})).join(r);return e.createElement("input",{name:a,type:"hidden",value:c})}var d=s.length>0?s.map((function(n,r){return e.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:a,type:"hidden",value:""});return e.createElement("div",null,d)}var u=s[0]?this.getOptionValue(s[0]):"";return e.createElement("input",{name:a,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,i=n.focusedOption,o=n.focusedValue,a=n.isFocused,l=n.selectValue,s=this.getFocusableOptions();return e.createElement(rg,ce({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:i,focusedValue:o,isFocused:a,selectValue:l,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,i=t.SelectContainer,o=t.ValueContainer,a=this.props,l=a.className,s=a.id,c=a.isDisabled,d=a.menuIsOpen,u=this.state.isFocused,p=this.commonProps=this.getCommonProps();return e.createElement(i,ce({},p,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:u}),this.renderLiveRegion(),e.createElement(n,ce({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:u,menuIsOpen:d}),e.createElement(o,ce({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,ce({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,a=t.isFocused,l=t.prevWasFocused,s=t.instancePrefix,c=e.options,d=e.value,u=e.menuIsOpen,p=e.inputValue,m=e.isMulti,g=em(d),h={};if(n&&(d!==n.value||c!==n.options||u!==n.menuIsOpen||p!==n.inputValue)){var f=u?function(e,t){return Gg(Bg(e,t))}(e,g):[],b=u?Wg(Bg(e,g),"".concat(s,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,g):null,x=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,f);h={selectValue:g,focusedOption:x,focusedOptionId:jg(b,x),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var y=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},w=o,C=a&&l;return a&&!C&&(w={value:gm(m,g,g[0]||null),options:g,action:"initial-input-focus"},C=!l),"initial-input-focus"===(null==o?void 0:o.action)&&(w=null),Ed(Ed(Ed({},h),y),{},{prevProps:e,ariaSelection:w,prevWasFocused:C})}}]),r}();Kg.defaultProps=Tg;var qg=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function eh(e){var t=e.defaultInputValue,n=void 0===t?"":t,i=e.defaultMenuIsOpen,o=void 0!==i&&i,a=e.defaultValue,l=void 0===a?null:a,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,p=e.onInputChange,m=e.onMenuClose,g=e.onMenuOpen,h=e.value,f=Jp(e,qg),b=Yp(r(void 0!==s?s:n),2),v=b[0],x=b[1],y=Yp(r(void 0!==c?c:o),2),w=y[0],C=y[1],E=Yp(r(void 0!==h?h:l),2),I=E[0],A=E[1],k=d((function(e,t){"function"==typeof u&&u(e,t),A(e)}),[u]),M=d((function(e,t){var n;"function"==typeof p&&(n=p(e,t)),x(void 0!==n?n:e)}),[p]),H=d((function(){"function"==typeof g&&g(),C(!0)}),[g]),N=d((function(){"function"==typeof m&&m(),C(!1)}),[m]),V=void 0!==s?s:v,Z=void 0!==c?c:w,D=void 0!==h?h:I;return Ed(Ed({},f),{},{inputValue:V,menuIsOpen:Z,onChange:k,onInputChange:M,onMenuClose:N,onMenuOpen:H,value:D})}var th=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],nh=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),i=String(t.getOptionLabel(e)).toLowerCase();return r===n||i===n},rh={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return nh(e,t,r)}))||n.some((function(t){return nh(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};var ih=n((function(t,n){var r=function(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,i=void 0===r?"last":r,o=e.formatCreateLabel,a=void 0===o?rh.formatCreateLabel:o,l=e.isValidNewOption,s=void 0===l?rh.isValidNewOption:l,c=e.getNewOptionData,u=void 0===c?rh.getNewOptionData:c,m=e.onCreateOption,g=e.options,h=void 0===g?[]:g,f=e.onChange,b=Jp(e,th),v=b.getOptionValue,x=void 0===v?Rg:v,y=b.getOptionLabel,w=void 0===y?Og:y,C=b.inputValue,E=b.isLoading,I=b.isMulti,A=b.value,k=b.name,M=p((function(){return s(C,em(A),h,{getOptionValue:x,getOptionLabel:w})?u(C,a(C)):void 0}),[a,u,w,x,C,s,h,A]),H=p((function(){return!n&&E||!M?h:"first"===i?[M].concat(Vd(h)):[].concat(Vd(h),[M])}),[n,i,E,M,h]),N=d((function(e,t){if("select-option"!==t.action)return f(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==M)f(e,t);else if(m)m(C);else{var r=u(C,C),i={action:"create-option",name:k,option:r};f(gm(I,[].concat(Vd(em(A)),[r]),r),i)}}),[u,C,I,k,M,m,f,A]);return Ed(Ed({},b),{},{options:H,onChange:N})}(eh(t));return e.createElement(Kg,ce({ref:n},r))})),oh=ih,ah=n((function(t,n){var r=eh(t);return e.createElement(Kg,ce({ref:n},r))}));const lh=v.div`
|
|
972
972
|
min-width: ${({minWidth:e})=>e||"auto"};
|
|
973
973
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"auto"};
|
|
974
974
|
`,sh=v(_m.MenuList)`
|
|
@@ -976,7 +976,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
976
976
|
`,ch=v.div``,dh=t=>{const n=G();return e.createElement(ch,null,e.createElement(_m.ClearIndicator,Object.assign({},t),e.createElement(X,{name:"close_circle",color:n.palette.black,type:"fill"})))},uh=v.div`
|
|
977
977
|
transition: transform 150ms;
|
|
978
978
|
transform: ${({menuIsOpen:e})=>e?"rotate(180deg)":""};
|
|
979
|
-
`,ph=t=>{var{isDisabled:n,error:r}=t,i=M(t,["isDisabled","error"]);const o=G();let a="";return a=n?N.basic[400]:r?o.palette.danger.main:o.palette.black,_m.DropdownIndicator&&e.createElement(_m.DropdownIndicator,Object.assign({},i),e.createElement(uh,{menuIsOpen:i.selectProps.menuIsOpen},e.createElement(X,{name:"arrow_bottom",size:"md",color:a})))},mh=t=>{const n=G();return e.createElement(_m.MultiValueRemove,Object.assign({},t),e.createElement(X,{name:"close_circle",color:n.palette.black}))},gh=(e,t)=>{const n={control:(n,{menuIsOpen:r})=>Object.assign(Object.assign({},n),{boxShadow:"none",borderTopColor:e.palette.divider,borderRightColor:e.palette.divider,borderLeftColor:e.palette.divider,borderBottomColor:r?"transparent":e.palette.divider,borderColor:t?`${e.palette.danger.main}!important`:"",borderRadius:r?`${e.radius}px ${e.radius}px 0 0`:`${e.radius}px`,"&:hover":{}}),input:e=>Object.assign(Object.assign({},e),{margin:"0 2px",paddingBottom:0,paddingTop:0}),menu:n=>Object.assign(Object.assign({},n),{marginTop:"-1px",boxShadow:"none",borderRadius:`0 0 ${e.radius}px ${e.radius}px`,borderRight:`1px solid ${t?e.palette.danger.main:e.palette.divider}`,borderBottom:`1px solid ${t?e.palette.danger.main:e.palette.divider}`,borderLeft:`1px solid ${t?e.palette.danger.main:e.palette.divider}`}),menuPortal:e=>Object.assign(Object.assign({},e),{zIndex
|
|
979
|
+
`,ph=t=>{var{isDisabled:n,error:r}=t,i=M(t,["isDisabled","error"]);const o=G();let a="";return a=n?N.basic[400]:r?o.palette.danger.main:o.palette.black,_m.DropdownIndicator&&e.createElement(_m.DropdownIndicator,Object.assign({},i),e.createElement(uh,{menuIsOpen:i.selectProps.menuIsOpen},e.createElement(X,{name:"arrow_bottom",size:"md",color:a})))},mh=t=>{const n=G();return e.createElement(_m.MultiValueRemove,Object.assign({},t),e.createElement(X,{name:"close_circle",color:n.palette.black}))},gh=(e,t)=>{const n={control:(n,{menuIsOpen:r})=>Object.assign(Object.assign({},n),{boxShadow:"none",borderTopColor:e.palette.divider,borderRightColor:e.palette.divider,borderLeftColor:e.palette.divider,borderBottomColor:r?"transparent":e.palette.divider,borderColor:t?`${e.palette.danger.main}!important`:"",borderRadius:r?`${e.radius}px ${e.radius}px 0 0`:`${e.radius}px`,"&:hover":{}}),input:e=>Object.assign(Object.assign({},e),{margin:"0 2px",paddingBottom:0,paddingTop:0}),menu:n=>Object.assign(Object.assign({},n),{marginTop:"-1px",boxShadow:"none",borderRadius:`0 0 ${e.radius}px ${e.radius}px`,borderRight:`1px solid ${t?e.palette.danger.main:e.palette.divider}`,borderBottom:`1px solid ${t?e.palette.danger.main:e.palette.divider}`,borderLeft:`1px solid ${t?e.palette.danger.main:e.palette.divider}`}),menuPortal:e=>Object.assign(Object.assign({},e),{zIndex:T.dropdown}),menuList:e=>Object.assign(Object.assign({},e),{paddingTop:"12px",paddingBottom:"8px"}),noOptionsMessage:t=>Object.assign(Object.assign({},t),{fontSize:`${re.sm}px`,color:e.palette.text.hint}),option:(t,{isSelected:n,isFocused:r,isDisabled:i})=>{let o="transparent",a=n?e.palette.white:e.palette.black;return n?o=e.palette.primary.main:i?a=e.palette.text.disabled:r&&(o=e.palette.gray.light),Object.assign(Object.assign({},t),{padding:"4px 8px 5px",color:a,fontSize:`${re.sm}px`,":active":{backgroundColor:e.palette.gray.main},backgroundColor:o})},placeholder:(n,{isDisabled:r,isFocused:i})=>{let o=e.palette.black;switch(!0){case r:o=e.palette.text.disabled;break;case t:o=e.palette.danger.main;break;case i:o=e.palette.text.hint}return Object.assign(Object.assign({},n),{transition:"color 0.2s",color:o,fontSize:`${re.sm}px`})},singleValue:(n,{isDisabled:r})=>{let i=e.palette.black;return t?i=e.palette.danger.main:r&&(i=e.palette.text.disabled),Object.assign(Object.assign({},n),{color:`${i}`,fontSize:`${re.sm}px`})},multiValue:t=>Object.assign(Object.assign({},t),{backgroundColor:e.palette.gray.highlight,padding:"2px 0px 3px 2px",margin:"0px 4px",border:`1px solid ${e.palette.divider}`,borderRadius:`${e.radius}px`}),multiValueLabel:(n,{isDisabled:r})=>{let i=e.palette.black;return t?i=e.palette.danger.main:r&&(i=e.palette.text.disabled),Object.assign(Object.assign({},n),{padding:0,color:`${i}`,fontSize:`${re.sm}px`})},multiValueRemove:e=>Object.assign(Object.assign({},e),{":hover":{backgroundColor:"transparent"},padding:"0px 8px"}),valueContainer:e=>Object.assign(Object.assign({},e),{minHeight:"40px"})};return n};var hh=e.forwardRef(((t,n)=>{const r=gr({props:t,name:"Select"}),{onInputChange:i,minWidth:o,isDisabled:a,error:l=!1,closeMenuOnSelect:s=!0,placeholder:c,emptyMessage:d="Not found"}=r,u=M(r,["onInputChange","minWidth","isDisabled","error","closeMenuOnSelect","placeholder","emptyMessage"]),p=G();return e.createElement(lh,{ref:n,minWidth:o,isDisabled:a},e.createElement(ah,Object.assign({isClearable:!0,placeholder:c,closeMenuOnSelect:s,noOptionsMessage:()=>d,isDisabled:a,styles:gh(p,l),maxMenuHeight:150,theme:e=>Object.assign(Object.assign({},e),{palette:p.palette})},u,{components:Object.assign({DropdownIndicator:t=>e.createElement(ph,Object.assign({},t,{error:l})),ClearIndicator:dh,IndicatorSeparator:null,MultiValueRemove:mh,MenuList:sh},u.components),menuPortalTarget:document.body,onInputChange:(e,t)=>{i&&i(e,t)}})))}));var fh=e.forwardRef(((t,n)=>{const r=gr({props:t,name:"CreatableSelect"}),{onInputChange:i,minWidth:o,isDisabled:a,error:l=!1,closeMenuOnSelect:s=!0,placeholder:c,emptyMessage:d="Not found",addMessage:u="Create"}=r,p=M(r,["onInputChange","minWidth","isDisabled","error","closeMenuOnSelect","placeholder","emptyMessage","addMessage"]),m=G();return e.createElement(lh,{ref:n,minWidth:o,isDisabled:a},e.createElement(oh,Object.assign({isClearable:!0,placeholder:c,closeMenuOnSelect:s,noOptionsMessage:()=>d,formatCreateLabel:e=>`${u} "${e}"`,isDisabled:a,styles:gh(m,l),maxMenuHeight:150,theme:e=>Object.assign(Object.assign({},e),{palette:m.palette})},p,{components:Object.assign({DropdownIndicator:t=>e.createElement(ph,Object.assign({},t,{error:l})),ClearIndicator:dh,IndicatorSeparator:null,MultiValueRemove:mh,MenuList:sh},p.components),menuPortalTarget:document.body,onInputChange:(e,t)=>{i&&i(e,t)}})))}));const bh=v.div`
|
|
980
980
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
981
981
|
`,vh=v.div`
|
|
982
982
|
border: ${({fullWidth:e,theme:t})=>e?"none":`1px solid ${t.palette.divider}`};
|
|
@@ -1123,7 +1123,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1123
1123
|
&:last-of-type {
|
|
1124
1124
|
border-right: none;
|
|
1125
1125
|
}
|
|
1126
|
-
|
|
1126
|
+
`,$h={small:"8px",medium:"12px",large:"16px"},Th=v.tr`
|
|
1127
1127
|
background-color: ${({highlighted:e,theme:t})=>e?t.palette.primary.highlight:"none"};
|
|
1128
1128
|
|
|
1129
1129
|
&:hover {
|
|
@@ -1141,8 +1141,8 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1141
1141
|
}
|
|
1142
1142
|
|
|
1143
1143
|
& > td {
|
|
1144
|
-
padding-top: ${({verticalSpacing:e})
|
|
1145
|
-
padding-bottom: ${({verticalSpacing:e})
|
|
1144
|
+
padding-top: ${({verticalSpacing:e})=>$h[e]};
|
|
1145
|
+
padding-bottom: ${({verticalSpacing:e})=>$h[e]};
|
|
1146
1146
|
}
|
|
1147
1147
|
`,zh=v.table`
|
|
1148
1148
|
width: 100%;
|
|
@@ -1161,7 +1161,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1161
1161
|
& > tbody > tr:first-of-type > td {
|
|
1162
1162
|
border-top: none;
|
|
1163
1163
|
}
|
|
1164
|
-
`,Bh=({horizontalScrollable:t,children:n})=>e.createElement(zh,{horizontalScrollable:t},n);Bh.Header=({children:t})=>e.createElement("thead",null,t),Bh.Body=({children:t})=>e.createElement("tbody",null,t),Bh.Row=t=>{var{highlighted:n=!1,verticalSpacing:r="medium",isStickyHeader:i=!1,disableHoverHighlight:o=!1,children:a}=t,l=M(t,["highlighted","verticalSpacing","isStickyHeader","disableHoverHighlight","children"]);return e.createElement(
|
|
1164
|
+
`,Bh=({horizontalScrollable:t,children:n})=>e.createElement(zh,{horizontalScrollable:t},n);Bh.Header=({children:t})=>e.createElement("thead",null,t),Bh.Body=({children:t})=>e.createElement("tbody",null,t),Bh.Row=t=>{var{highlighted:n=!1,verticalSpacing:r="medium",isStickyHeader:i=!1,disableHoverHighlight:o=!1,children:a}=t,l=M(t,["highlighted","verticalSpacing","isStickyHeader","disableHoverHighlight","children"]);return e.createElement(Th,Object.assign({highlighted:n,verticalSpacing:r,isStickyHeader:i,disableHoverHighlight:o},l),a)},Bh.Cell=t=>{var{width:n="auto",enableRuledLine:r=!1,children:i}=t,o=M(t,["width","enableRuledLine","children"]);return e.createElement(Sh,Object.assign({width:n,enableRuledLine:r},o),i)};const Gh=e=>e,Wh=(e,t)=>e.sort(((e,n)=>{const r=((e,t,n=Gh)=>{const r=n(e),i=n(t);return i===r?0:i<r?-1:1})(e,n,t.getValue);return t.isDesc?r:-r})),Ph=v.button`
|
|
1165
1165
|
width: 28px;
|
|
1166
1166
|
height: 28px;
|
|
1167
1167
|
margin: 0 4px;
|
|
@@ -1230,7 +1230,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1230
1230
|
border-radius: ${({theme:e})=>`${e.radius}px ${e.radius}px`} 0 0;
|
|
1231
1231
|
background-color: ${({active:e,theme:t})=>e?t.palette.background.default:"none"};
|
|
1232
1232
|
cursor: pointer;
|
|
1233
|
-
`,af=({items:t,value:n,onChange:r})=>{const i=e=>()=>{r(e)};return e.createElement(nf,null,e.createElement(rf,null,t.map((t=>e.createElement(of,{key:t.value,active:t.value===n,onClick:i(t.value)},e.createElement(oe,{size:"sm",color:t.value===n?"initial":"secondary",align:"center"},t.label))))))};function lf(e,t){const n=i(!1);o((()=>{n.current?e():n.current=!0}),t)}function sf(e,t){var n;return!!t&&!(null===(n=t[e])||void 0===n?void 0:n.disabledCheck)}function cf(e,t,n,r){if(0===n)return!1;const i=e[n],o=null==r?void 0:r.selector(i),a=e[n-1],l=null==r?void 0:r.selector(a);return!(r&&!r.enableMergeCell||i[t]!==a[t]||o!==l)}function df(e,t,n,r){if(r&&!r.enableMergeCell)return 1;const i=e[n],o=null==r?void 0:r.selector(i);let a=1;for(let l=n+1;l<e.length;l++){const n=e[l],s=null==r?void 0:r.selector(n);if(n[t]!==i[t]||s!==o)break;a++}return a}function uf({sourceData:e,tabs:t,currentTabIndex:n}){let r=e;return t&&t[n]&&(r=t[n].filter(r)),r}function pf({sourceData:e,sortState:t,filterState:n,enablePagination:r,tabs:i,currentTabIndex:o}){const a=uf({sourceData:e,tabs:i,currentTabIndex:o}),l=Wh(a,t);if(r){return _h(l,n)}return l}var mf=e.forwardRef((({data:t,dataKey:n,columns:r,enablePagination:i=!1,onSelectRowsChange:o,onRadioChange:a,tabs:l,itemEmptyProps:s,per:c,defaultSortField:d,defaultSortOrder:u="desc",selectedRows:p=[],selectedRow:m,enableRuledLine:g=!1,verticalSpacing:h="medium",fullWidth:f=!1,disableCheckWhenClickRow:b=!1,tableMaxHeight:v="none",horizontalScrollable:x=!1,labelRowsPerPage:y="Rows per page:",labelDisplayedRows:w=(({from:e,to:t,total:n})=>`${e}-${t} of ${n}`)},C)=>{const E=!!o,[I,A]=e.useState(!1),k=p.length>0&&!I,M=!!a,H=!!l,[N,V]=e.useState(0),Z=r.some((e=>e.enableMergeCell)),D=r.find((e=>e.name===d)),L=(null==D?void 0:D.sortable)?D:r.find((e=>!0===e.sortable)),[O,R]=(S={isDesc:"desc"===u,name:(null==L?void 0:L.name)||"",getValue:null==L?void 0:L.selector},e.useState(S));var S;const[T
|
|
1233
|
+
`,af=({items:t,value:n,onChange:r})=>{const i=e=>()=>{r(e)};return e.createElement(nf,null,e.createElement(rf,null,t.map((t=>e.createElement(of,{key:t.value,active:t.value===n,onClick:i(t.value)},e.createElement(oe,{size:"sm",color:t.value===n?"initial":"secondary",align:"center"},t.label))))))};function lf(e,t){const n=i(!1);o((()=>{n.current?e():n.current=!0}),t)}function sf(e,t){var n;return!!t&&!(null===(n=t[e])||void 0===n?void 0:n.disabledCheck)}function cf(e,t,n,r){if(0===n)return!1;const i=e[n],o=null==r?void 0:r.selector(i),a=e[n-1],l=null==r?void 0:r.selector(a);return!(r&&!r.enableMergeCell||i[t]!==a[t]||o!==l)}function df(e,t,n,r){if(r&&!r.enableMergeCell)return 1;const i=e[n],o=null==r?void 0:r.selector(i);let a=1;for(let l=n+1;l<e.length;l++){const n=e[l],s=null==r?void 0:r.selector(n);if(n[t]!==i[t]||s!==o)break;a++}return a}function uf({sourceData:e,tabs:t,currentTabIndex:n}){let r=e;return t&&t[n]&&(r=t[n].filter(r)),r}function pf({sourceData:e,sortState:t,filterState:n,enablePagination:r,tabs:i,currentTabIndex:o}){const a=uf({sourceData:e,tabs:i,currentTabIndex:o}),l=Wh(a,t);if(r){return _h(l,n)}return l}var mf=e.forwardRef((({data:t,dataKey:n,columns:r,enablePagination:i=!1,onSelectRowsChange:o,onRadioChange:a,tabs:l,itemEmptyProps:s,per:c,defaultSortField:d,defaultSortOrder:u="desc",selectedRows:p=[],selectedRow:m,enableRuledLine:g=!1,verticalSpacing:h="medium",fullWidth:f=!1,disableCheckWhenClickRow:b=!1,tableMaxHeight:v="none",horizontalScrollable:x=!1,labelRowsPerPage:y="Rows per page:",labelDisplayedRows:w=(({from:e,to:t,total:n})=>`${e}-${t} of ${n}`)},C)=>{const E=!!o,[I,A]=e.useState(!1),k=p.length>0&&!I,M=!!a,H=!!l,[N,V]=e.useState(0),Z=r.some((e=>e.enableMergeCell)),D=r.find((e=>e.name===d)),L=(null==D?void 0:D.sortable)?D:r.find((e=>!0===e.sortable)),[O,R]=(S={isDesc:"desc"===u,name:(null==L?void 0:L.name)||"",getValue:null==L?void 0:L.selector},e.useState(S));var S;const[$,T]=Kh(c),[z,B]=e.useState(pf({sourceData:t,sortState:O,filterState:$,enablePagination:i,tabs:l,currentTabIndex:N})),G=e.useMemo((()=>uf({sourceData:t,tabs:l,currentTabIndex:N}).length),[t,l,N]);lf((()=>{const e=pf({sourceData:t,sortState:O,filterState:$,enablePagination:i,tabs:l,currentTabIndex:N});B(e)}),[t,O,$,i,H,l,N]),lf((()=>{const e={index:1,per:$.per};T(e);const n=pf({sourceData:t,sortState:O,filterState:e,enablePagination:i,tabs:l,currentTabIndex:N});B(n)}),[t,N]);const W=(e,t)=>()=>{R(((e,t,n)=>({isDesc:e.name===n&&!e.isDesc,getValue:t,name:n}))(O,e,t))},P=e=>()=>{o&&(p.includes(e)?o(p.filter((t=>t!==e))):o([...p,e]))},j=e=>()=>{a&&a(e)};return e.createElement(bh,{ref:C},e.createElement(vh,{fullWidth:f},!!l&&e.createElement(af,{value:N,items:l.map(((e,t)=>({label:e.label,value:t}))),onChange:e=>{V(e)}}),e.createElement(xh,{maxHeight:v,horizontalScrollable:x},e.createElement(Bh,{horizontalScrollable:x},e.createElement(Bh.Header,null,e.createElement(Bh.Row,{isStickyHeader:"none"!==v},(!H||sf(N,l))&&e.createElement(e.Fragment,null,E&&e.createElement(kh,{header:!0,selected:p.length>0,indeterminate:k,onClick:()=>{o&&(p.length>0?(o([]),A(!1)):(o(z.filter((e=>!e.selectDisabled)).map((e=>e[n]))),A(!0)))}}),M&&e.createElement(Rh,{header:!0})),r.map((t=>{return e.createElement(Eh,{key:t.name,sortable:t.sortable&&!Z,order:(n=O,r=t.name,n.name===r?n.isDesc?"desc":"asc":null),width:t.width,enableRuledLine:g,onClick:t.sortable&&!Z?W(t.selector,t.name):void 0},t.headerCell||t.name);var n,r})))),e.createElement(Bh.Body,null,z.length>0?z.map(((t,i)=>e.createElement(e.Fragment,{key:i},E||M?e.createElement(e.Fragment,null,E&&e.createElement(Bh.Row,Object.assign({verticalSpacing:h,highlighted:!t.selectDisabled&&(p.includes(t[n])||m===t[n]),disableHoverHighlight:Z},!b&&{onClick:P(t[n])}),(!H||sf(N,l))&&!cf(z,n,i)&&e.createElement(kh,Object.assign({selected:p.includes(t[n]),rowSpan:df(z,n,i)},b&&{onClick:P(t[n])})),r.map((r=>cf(z,n,i,r)?null:e.createElement(Bh.Cell,{key:r.name,enableRuledLine:g,rowSpan:df(z,n,i,r)},r.renderCell?r.renderCell(t):e.createElement(oe,{align:r.align},r.selector(t)))))),M&&e.createElement(Bh.Row,Object.assign({verticalSpacing:h,highlighted:!t.selectDisabled&&(p.includes(t[n])||m===t[n]),disableHoverHighlight:Z},!b&&{onClick:j(t[n])}),(!H||sf(N,l))&&!cf(z,n,i)&&e.createElement(Rh,{selected:t[n]===m,rowSpan:df(z,n,i),onClick:j(t[n])}),r.map((r=>cf(z,n,i,r)?null:e.createElement(Bh.Cell,{key:r.name,enableRuledLine:g,rowSpan:df(z,n,i,r)},r.renderCell?r.renderCell(t):e.createElement(oe,{align:r.align},r.selector(t))))))):e.createElement(Bh.Row,{verticalSpacing:h,highlighted:!t.selectDisabled&&(p.includes(t[n])||m===t[n]),disableHoverHighlight:Z},r.map((r=>cf(z,n,i,r)?null:e.createElement(Bh.Cell,{key:r.name,enableRuledLine:g,rowSpan:df(z,n,i,r)},r.renderCell?r.renderCell(t):e.createElement(oe,{align:r.align},r.selector(t))))))))):e.createElement("tr",null,e.createElement("td",{colSpan:r.length+(!E&&!M||H&&!sf(N,l)?0:1)},e.createElement(tf,Object.assign({},s)))))))),i&&e.createElement(It,{p:3},e.createElement(J,{display:"flex",alignItems:"center",justifyContent:"space-between"},e.createElement(Qh,{per:$.per,total:G,index:$.index,onClick:e=>{T({index:e,per:$.per})}}),e.createElement(wh,{per:$.per,total:G,index:$.index,labelRowsPerPage:y,labelDisplayedRows:w,onChange:e=>{T({index:1,per:e})}}))))}));const gf=m({rowIds:[],hasRowControls:!1,checkedRows:[],isSmallLayout:!1,totalCount:0,currentPage:0,pageSize:100,pageSizeOptions:[10,50,100,200],columns:[],columnWidths:[],rowSpacing:0,setRowIds:()=>{},setCheckedRows:()=>{},setCurrentPage:()=>{},setPageSize:()=>{},setColumns:()=>{},setColumnWidth:()=>{},setRowSpacing:()=>{}}),hf=m({index:0}),ff=`\n display: flex;\n gap: 4px;\n box-sizing: border-box;\n padding: 4px;\n border: 1px solid ${N.basic[400]};\n border-radius: 4px;\n background: #ffffff;\n /* UI/Text 12 */\n font-size: 12px;\n color: ${N.basic[900]};\n cursor: pointer;\n box-shadow: ${O["3dShadowBasic"]};\n &:where(:disabled) {\n color: ${N.basic[400]};\n background: ${N.basic[200]};\n box-shadow: ${O["3dShadowBasic"]};\n cursor: not-allowed;\n }\n &:where(li:not(:first-child) button) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n &:where(li:not(:last-child) button) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n &:where(:hover:not(:disabled)) {\n background: ${N.basic[100]};\n }\n &:where(:active:not(:disabled)) {\n padding-block: 6px 2px;\n background: ${D.gray.highlight};\n box-shadow: ${O["3dShadowActive"]};\n }\n`,bf=v.div`
|
|
1234
1234
|
position: relative;
|
|
1235
1235
|
display: flex;
|
|
1236
1236
|
flex-direction: column;
|
|
@@ -1519,9 +1519,9 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1519
1519
|
padding-block: 20px;
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
|
-
|
|
1522
|
+
`,$f=v.td`
|
|
1523
1523
|
padding-right: 0;
|
|
1524
|
-
|
|
1524
|
+
`,Tf=v.div`
|
|
1525
1525
|
display: flex;
|
|
1526
1526
|
`,zf=v.div`
|
|
1527
1527
|
display: grid;
|
|
@@ -1566,7 +1566,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1566
1566
|
visibility: visible;
|
|
1567
1567
|
}
|
|
1568
1568
|
}
|
|
1569
|
-
`,jf=()=>{const{columns:e,setColumns:n}=g(gf),[i,a]=r(!1),[l,s]=r(e.map((e=>e.filtered||!1))),c=p((()=>e.filter((e=>e.filtered)).length),[e]),u=d((()=>{s(e.map((e=>e.filtered||!1)))}),[e]),m=d(((e,t)=>{s((n=>n.map(((n,r)=>e===r?t:n))))}),[s]),h=d((()=>{u(),a(!1)}),[u]),f=d((()=>{const t=structuredClone(e).map(((e,t)=>Object.assign(Object.assign({},e),{filtered:l[t]})));n(t),a(!1)}),[e,n,l]),b=d((e=>{a(e),e||u()}),[a,u]);return o((()=>u()),[e,u]),t.createElement(pd,null,t.createElement(ud,{width:360,trigger:t.createElement(Af,{type:"button",disabled:0===c},t.createElement(X,{name:"filter",color:"currentColor"}),c,"列に適用中"),open:i,onOpenChange:b},t.createElement(md,null,"フィルタが適用されている列"),e.map(((e,n)=>!0===e.filtered?t.createElement(ll,{key:e.id,checked:l[n],onChange:e=>m(n,e)},e.label):null)),t.createElement(fd,{prepend:t.createElement(X,{name:"question"})},"リセットしたいフィルタのボタンをオフにしてください"),t.createElement(bd,null),t.createElement(vd,null,t.createElement(Nt,{type:"button",size:"small",color:"clear",onClick:h},"キャンセル"),t.createElement(Nt,{type:"button",size:"small",onClick:f},"適用"))))},Ff=({onClose:e})=>{const{columns:n,setColumns:i}=g(gf),[o,a]=r(n),l=p((()=>[...o].sort(((e,t)=>e.order-t.order))),[o]),s=p((()=>l.reduce(((e,t)=>t.sortable||0!==e.sortable.length?t.sortable&&0===e.endFixed.length?(e.sortable.push(t),e):(e.endFixed.push(t),e):(e.startFixed.push(t),e)),{startFixed:[],sortable:[],endFixed:[]})),[l]),c=d((e=>{const t=structuredClone(n);t.forEach((t=>{if(s.startFixed.find((e=>e.id===t.id))||s.endFixed.find((e=>e.id===t.id)))return;const n=e.indexOf(t.id);-1!==n&&(t.order=s.startFixed.length+n)})),a(t)}),[n,s]),u=d((()=>{a(n),e()}),[n,e]),m=d((()=>{i(o),e()}),[i,o,e]);return t.createElement(ud,{width:328,trigger:t.createElement(ul,null,"カラムを編集")},s.startFixed.map((e=>t.createElement(ed,{key:e.id,disabled:!0,id:e.id},t.createElement(ll,{disabled:!0,checked:e.visible},e.label)))),t.createElement(Qc,{order:s.sortable.map((e=>e.id)),onOrderChange:c},s.sortable.map((e=>t.createElement(ed,{key:e.id,id:e.id},t.createElement(ll,{checked:e.visible,onChange:()=>a(o.map((t=>t.id===e.id?Object.assign(Object.assign({},t),{visible:!t.visible}):t)))},e.label))))),s.endFixed.map((e=>t.createElement(ed,{key:e.id,disabled:!0,id:e.id},t.createElement(ll,{key:e.id,disabled:!0,checked:e.visible},e.label)))),t.createElement(fd,{prepend:t.createElement(X,{name:"question"})},"カラムの並び順、表示・非表示を切り替えます。"),t.createElement(bd,null),t.createElement(vd,null,t.createElement(Nt,{size:"small",color:"clear",onClick:u},"キャンセル"),t.createElement(Nt,{size:"small",onClick:m},"適用")))},Xf=()=>{const{pageSize:e,pageSizeOptions:n,setPageSize:r}=g(gf);return t.createElement(ud,{width:136,trigger:t.createElement(ul,{append:e},"件数を変更")},n.map((n=>t.createElement(rl,{key:n,closeOnChange:!0,checked:e===n,onChange:()=>r(n)},n,"件"))))},Yf=[{value:-2,label:"より狭くする"},{value:-1,label:"狭くする"},{value:0,label:"標準"},{value:1,label:"広くする"},{value:2,label:"より広くする"}],Jf=()=>{const{rowSpacing:e,setRowSpacing:n}=g(gf),r=p((()=>{var t;return(null===(t=Yf.find((t=>t.value===e)))||void 0===t?void 0:t.label)||"標準"}),[e]);return t.createElement(ud,{width:168,trigger:t.createElement(ul,{append:r},"表示密度を変更")},Yf.map((({value:r,label:i})=>t.createElement(rl,{key:r,closeOnChange:!0,checked:e===r,onChange:()=>(e=>{n(e)})(r)},i))))},Uf=()=>{const{isSmallLayout:e,totalCount:n,currentPage:r,pageSize:i,pageSizeOptions:a,setCurrentPage:l,setPageSize:s}=g(gf),c=d((e=>{l(0),s(e)}),[l,s]),u=p((()=>Math.ceil(n/i)-1),[n,i]);return o((()=>{r>u&&l(u)}),[r,u,l]),t.createElement(Ef,null,t.createElement("button",{type:"button","aria-label":"前のページへ",disabled:0===r,onClick:()=>l(Math.max(r-1,0))},t.createElement(X,{name:"arrow_left",color:"currentColor"})),!e&&t.createElement(pd,null,t.createElement(ud,{width:296,trigger:t.createElement("button",{type:"button"},Math.min(r*i+1,i*u),t.createElement(If,null,"-"),Math.min((r+1)*i,n),t.createElement(If,null,"/"),n,t.createElement(X,{name:"arrow_down",size:"sm",color:"currentColor"}))},t.createElement(md,null,"表示件数を変更"),a.map((e=>t.createElement(rl,{key:e,checked:i===e,onChange:()=>c(e)},e))))),t.createElement("button",{type:"button","aria-label":"次のページへ",disabled:r===u,onClick:()=>l(Math.min(r+1,u))},t.createElement(X,{name:"arrow_right",color:"currentColor"})))},Qf=({children:e})=>{const{checkedRows:n}=g(gf);return t.createElement(pd,null,t.createElement(ud,{width:200,trigger:t.createElement(wf,{type:"button",disabled:0===n.length},t.createElement("em",null,n.length),"件選択",t.createElement(X,{name:"arrow_down",color:"currentColor"}))},e))},_f=({rowControls:e,extraButtons:n})=>{const{isSmallLayout:i,columns:o,rowIds:a,checkedRows:l,setCheckedRows:s}=g(gf),c=p((()=>l.length===a.length),[l,a]),u=p((()=>0!==l.length&&l.length!==a.length),[l,a]),[m,h]=r(!1),f=p((()=>o.some((e=>void 0!==e.filtered))),[o]),b=d((()=>{s(c?[]:a)}),[c,a,s]);return t.createElement(yf,{isSmallLayout:i},e&&t.createElement(t.Fragment,null,t.createElement(Gn,{checked:c||u,indeterminate:u,onChange:b}),t.createElement(Qf,null,e),t.createElement(Cf,null)),t.createElement(Uf,null),f&&t.createElement(t.Fragment,null,t.createElement(Cf,null),t.createElement(jf,null)),t.createElement(kf,null,!i&&n,t.createElement(pd,null,t.createElement(ud,{open:m,width:316,trigger:t.createElement(Hf,null,t.createElement(X,{name:"more_vert"})),onOpenChange:h},i&&n,o.some((e=>e.sortable))&&t.createElement(Ff,{onClose:()=>h(!1)}),t.createElement(Xf,null),t.createElement(Jf,null)))))},Kf=({bordered:e,rowControls:n,extraButtons:a,currentPage:l,pageSize:s,pageSizeOptions:c,totalCount:u,columns:p,onPageChange:m,onPageSizeChange:g,onColumnsChange:h,onCheckedRowsChange:f,children:b})=>{const[v,x]=r(!1),[y,w]=r([]),[C,E]=r([]),[I,A]=r([]),[k,M]=r(0),H=i(null),N=d(((e,t)=>{const n=[...I];n[e]=t,A(n)}),[I,A]);o((()=>{if(!H.current)return;const e=()=>{var e;H.current&&x((null===(e=H.current)||void 0===e?void 0:e.clientWidth)<640)},t=new ResizeObserver(e);return e(),t.observe(H.current),()=>{t.disconnect()}}),[]);const V=d((e=>{E(e),null==f||f(e)}),[E,f]),Z=i(l);return o((()=>{Z.current!==l&&V([]),Z.current=l}),[l,V]),t.createElement(bf,{ref:H,bordered:e},t.createElement(gf.Provider,{value:{isSmallLayout:v,rowIds:y,hasRowControls:!!n,checkedRows:C,totalCount:u,currentPage:l,pageSize:s,pageSizeOptions:c,columns:p,columnWidths:I,rowSpacing:k,setRowIds:w,setCheckedRows:V,setCurrentPage:m,setPageSize:g,setColumns:h,setColumnWidth:N,setRowSpacing:M}},t.createElement(_f,{rowControls:n,extraButtons:a}),t.createElement(xf,null,t.createElement("table",null,b))))},qf=({children:e})=>{const{hasRowControls:n,columns:r}=g(gf),i=p((()=>s.toArray(e).map(((e,t)=>{const n=r[t];return{id:n.id,index:t,order:n.order,visible:n.visible,child:e}})).filter((e=>void 0!==e.id))),[e,r]),o=p((()=>i.sort(((e,t)=>e.order-t.order)).filter((e=>e.visible))),[i]);return t.createElement(t.Fragment,null,t.createElement("colgroup",null,n&&t.createElement("col",{style:{width:34}}),o.map((({id:e,child:n})=>a(n)?t.createElement("col",{key:e,style:{width:n.props.width}}):null))),t.createElement(Nf,null,t.createElement("tr",null,n&&t.createElement("th",{"aria-label":"empty cell"}),o.map((({id:e,index:n,child:r})=>t.createElement(hf.Provider,{key:e,value:{index:n}},r))))))},eb=({className:e,isResizable:n,width:a,minWidth:l=32,maxWidth:s=1/0,children:c,onWidthChange:u})=>{const{isSmallLayout:p,setColumnWidth:m}=g(gf),h=g(hf),[f,b]=r(!1),v=i(null),x=i(null),y=i(0),w=i(0),C=d((e=>{b(!0),x.current&&null===v.current&&(v.current=e.pointerId,w.current=a||x.current.clientWidth,y.current=e.clientX)}),[a]),E=d((e=>{if(!u)return;if(v.current!==e.pointerId)return;e.cancelable&&e.preventDefault();const t=e.clientX-y.current,n=((e,t,n)=>Math.min(Math.max(e,t),n))(w.current+t,l,s);u(n),m(h.index,n)}),[u,l,s,m,h.index]),I=d((()=>{b(!1),v.current=null}),[]);return o((()=>{if(f)return document.addEventListener("pointermove",E),document.addEventListener("pointerup",I),()=>{document.removeEventListener("pointermove",E),document.removeEventListener("pointerup",I)}}),[f,E,I]),t.createElement(Vf,{ref:x,className:e,"data-dragging":f,style:{minWidth:isFinite(l)&&l<=s?l:void 0,maxWidth:isFinite(s)&&l<=s?s:void 0}},t.createElement(Zf,{isSmallLayout:p},c,n&&t.createElement(Df,{type:"button","aria-label":"resize the column",onPointerDown:C}),f&&A(t.createElement(Lf,{"data-min":a&&l>=a,"data-max":a&&s<=a}),document.body)))},tb=({showSortButton:e,sortButtonDirection:n,onSortChange:r,children:i})=>{const o=p((()=>"asc"===n?"desc":"desc"!==n?"asc":void 0),[n]),a=d((()=>{null==r||r(o)}),[r,o]);return t.createElement(Of,null,i,e&&t.createElement(Rf,{type:"button","aria-label":"sort the column","data-sort-direction":n,onClick:a},t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},t.createElement("path",{d:"M8.17 3.25a1 1 0 0 1 1.3-.33c.15.08.27.19.36.33l2.13 3.2c.1.15.16.33.17.51 0 .18-.03.36-.12.52s-.21.29-.37.39a1 1 0 0 1-.51.14H6.87a1 1 0 0 1-.83-1.56z"}),t.createElement("path",{d:"M9.83 14.75a1 1 0 0 1-1.3.33.95.95 0 0 1-.36-.33l-2.13-3.2c-.1-.15-.16-.33-.17-.51 0-.18.03-.36.12-.52s.21-.29.37-.39a1 1 0 0 1 .51-.14h4.26a1 1 0 0 1 .83 1.56z"}))))},nb=({children:e})=>{const{rowIds:n,setRowIds:r}=g(gf);return o((()=>{const t=[];s.forEach(e,(e=>{a(e)&&"string"==typeof e.props.id&&t.push(e.props.id)})),0!==t.filter((e=>!n.includes(e))).length&&r(t)}),[e,n,r]),t.createElement("tbody",null,e)},rb=({id:e,children:n})=>{const{isSmallLayout:r,columns:i,hasRowControls:o,checkedRows:a,setCheckedRows:l,rowSpacing:c}=g(gf),u=p((()=>a.includes(e)),[e,a]),m=d((()=>{const t=a.includes(e)?a.filter((t=>t!==e)):[...a,e];l(t)}),[e,a,l]),h=p((()=>s.toArray(n).map(((e,t)=>{const n=i[t];return{id:n.id,index:t,order:n.order,visible:n.visible,child:e}})).filter((e=>void 0!==e.id))),[n,i]),f=p((()=>h.sort(((e,t)=>e.order-t.order)).filter((e=>e.visible))),[h]);return t.createElement(Sf,{"data-highlighted":u,"data-spacing":c,isSmallLayout:r},o&&t.createElement(Tf,null,t.createElement($f,null,t.createElement(Gn,{checked:u,onChange:m}),t.createElement("input",{type:"checkbox","aria-label":"この行を選択"}))),f.map((({child:e})=>e)))},ib=({loading:e,children:n})=>t.createElement("td",null,t.createElement(zf,null,t.createElement(Gf,null,n),e&&t.createElement(Bf,null,t.createElement(ir,{width:"20px"})))),ob=({prepend:e,children:n,onClick:r})=>{const{isSmallLayout:i}=g(gf);return i?t.createElement(qa,{prepend:e,onClick:r},n):t.createElement(Mf,{type:"button",onClick:r},e,n)},ab=({label:e,value:n,children:i,onChange:a})=>{const[l,s]=r(n),[c,d]=r(!1),u=()=>{d(!1),a(l)};return o((()=>{s(n)}),[n]),t.createElement(Wf,null,i,t.createElement(Pf,null,t.createElement(pd,null,t.createElement(ud,{width:252,trigger:t.createElement(le,{type:"button",color:"primary",icon:"pencil"}),open:c,onOpenChange:d},t.createElement(md,null,e),t.createElement(nd,{value:l,onChange:e=>s(e.target.value),onEnter:u}),t.createElement(bd,null),t.createElement(vd,null,t.createElement(Nt,{type:"button",color:"clear",size:"small",onClick:()=>{d(!1),s(n)}},"キャンセル"),t.createElement(Nt,{type:"button",color:"primary",size:"small",onClick:u},"適用"))))))},lb=({label:e,value:n,options:i,children:o,onChange:a})=>{const[l,s]=r(!1);return t.createElement(Wf,null,o,t.createElement(Pf,null,t.createElement(pd,null,t.createElement(ud,{width:252,trigger:t.createElement(le,{type:"button",color:"primary",icon:"pencil"}),open:l,onOpenChange:s},t.createElement(md,null,e),i.map((e=>t.createElement(rl,{key:e,closeOnChange:!0,checked:n===e,onChange:()=>a(e)},e)))))))},sb=e=>{if(!e)return[];const t=[];let n=0,r=!isNaN(Number(e[0]));for(let i=1;i<=e.length;i++){const o=e[i],a=!isNaN(Number(o))&&" "!==o;a===r&&" "!==o&&i!==e.length||(t.push({start:n,end:i-1,value:e.slice(n,i),editable:r}),n=i,r=a)}return t},cb=e=>e.map((e=>e.value)).join(""),db={Backspace:"Backspace",Delete:"Delete",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",Tab:"Tab",0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9"},ub=Object.keys(db).filter((e=>!isNaN(Number(e)))),pb=Object.values(db),mb=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,gb=/\d\d/,hb=/-?\d\d?/,fb=/\d*[^-_:/,()\s\d]+/;let bb={},vb=function(e){return(e=+e)+(e>68?1900:2e3)};const xb=function(e){return function(t){this[e]=+t}},yb=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;const t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],wb=e=>{const t=bb[e];return t&&(t.indexOf?t:t.s.concat(t.f))},Cb=(e,t)=>{let n;const{meridiem:r}=bb;if(r){for(let i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},Eb={A:[fb,function(e){this.afternoon=Cb(e,!1)}],a:[fb,function(e){this.afternoon=Cb(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[gb,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[hb,xb("seconds")],ss:[hb,xb("seconds")],m:[hb,xb("minutes")],mm:[hb,xb("minutes")],H:[hb,xb("hours")],h:[hb,xb("hours")],HH:[hb,xb("hours")],hh:[hb,xb("hours")],D:[hb,xb("day")],DD:[gb,xb("day")],Do:[fb,function(e){const{ordinal:t}=bb;if([this.day]=e.match(/\d+/),t)for(let n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],M:[hb,xb("month")],MM:[gb,xb("month")],MMM:[fb,function(e){const t=wb("months"),n=(wb("monthsShort")||t.map((e=>e.slice(0,3)))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[fb,function(e){const t=wb("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,xb("year")],YY:[gb,function(e){this.year=vb(e)}],YYYY:[/\d{4}/,xb("year")],Z:yb,ZZ:yb};const Ib=(e,t,n)=>{try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);const r=function(e){const t=e.match(mb),{length:n}=t;for(let e=0;e<n;e+=1){const n=t[e],r=Eb[n],i=r&&r[0],o=r&&r[1];t[e]=o?{regex:i,parser:o}:n.replace(/^\[|\]$/g,"")}return function(e){const r={};for(let i=0,o=0;i<n;i+=1){const n=t[i];if("string"==typeof n)o+=n.length;else{const{regex:t,parser:i}=n,a=e.slice(o),l=t.exec(a)[0];i.call(r,l),e=e.replace(l,"")}}return function(e){const{afternoon:t}=e;if(void 0!==t){const{hours:n}=e;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(r),r}}(t),{year:i,month:o,day:a,hours:l,minutes:s,seconds:c,milliseconds:d,zone:u}=r(e),p=new Date,m=i||p.getFullYear(),g=o-1,h=l||0,f=s||0,b=c||0,v=d||0;return u?new Date(Date.UTC(m,g,a,h,f,b,v+60*u.offset*1e3)):n?new Date(Date.UTC(m,g,a,h,f,b,v)):new Date(m,g,a,h,f,b,v)}catch(e){return new Date("")}};var Ab=(e,t,n)=>{n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&({parseTwoDigitYear:vb}=e);const r=t.prototype,i=r.parse;r.parse=function(e){const{date:t,utc:r,args:o}=e;this.$u=r;const a=o[1];if("string"==typeof a){const e=!0===o[2],i=!0===o[3],l=e||i;let s=o[2];i&&([,,s]=o),bb=this.$locale(),!e&&s&&(bb=n.Ls[s]),this.$d=Ib(t,a,r),this.init(),s&&!0!==s&&(this.$L=this.locale(s).$L),l&&t!=this.format(a)&&(this.$d=new Date("")),bb={}}else if(a instanceof Array){const e=a.length;for(let t=1;t<=e;t+=1){o[1]=a[t-1];const r=n.apply(this,o);if(r.isValid()){this.$d=r.$d,this.$L=r.$L,this.init();break}t===e&&(this.$d=new Date(""))}}else i.call(this,e)}};const kb=({date:e,format:t="YYYY-MM-DD",onDateChange:n})=>{Kt.extend(Ab);const a=i(null),[l,s]=r(null==e?void 0:e.format(t)),[c,u]=r(sb(l)),[p,m]=r({start:0,end:c.length-1,current:0}),[g,h]=r(0),f=d((()=>{setTimeout((()=>{var e,t,n;const r=null!==(t=null===(e=a.current)||void 0===e?void 0:e.selectionStart)&&void 0!==t?t:0,i=c[c.length-1].end+1,o=r>=i?i:r,l=c.findIndex((e=>o>=e.start&&o<=e.end+1));m((e=>c[l].editable?e.current===l?e:Object.assign(Object.assign({},e),{current:l}):Object.assign(Object.assign({},e),{current:l+1}))),null===(n=a.current)||void 0===n||n.setSelectionRange(c[l].start,c[l].end+1)}))}),[c]),b=d((()=>{}),[]),v=d((()=>{m((e=>Object.assign(Object.assign({},e),{current:0}))),h(0)}),[]),x=d((e=>{if(pb.includes(e.key)){if(e.key===db.ArrowLeft||e.key===db.ArrowRight){e.preventDefault();const t=e=>{const t=p.current;if(e===db.ArrowLeft){for(let e=t-1;e>=0;e--)if(c[e].editable)return e-t}else if(e===db.ArrowRight)for(let e=t+1;e<c.length;e++)if(c[e].editable)return e-t;return 0},n=e.key;m((e=>Object.assign(Object.assign({},e),{current:e.current+t(n)})))}if(e.key===db.ArrowUp||e.key===db.ArrowDown){e.preventDefault();const r=e.key===db.ArrowUp?1:-1,i=Number(c[p.current].value)+r,o=String(i).padStart(c[p.current].value.length,"0"),a=[...c];a[p.current].value=o,u(a);const l=cb(a),d=Kt(l,t);s(d.format(t)),d.isValid()&&n&&n(d)}if(ub.includes(e.key)){e.preventDefault(),0===g&&(c[p.current].value="".padStart(c[p.current].value.length,"0"));const r=`${c[p.current].value.slice(1)}${e.key}`,i=[...c];if(i[p.current].value=r,u(i),h(g+1),g+1===c[p.current].value.length){h(0);const e=cb(c),r=Kt(e,t);s(r.format(t)),n&&n(r)}else{const e=cb(c);if(!Kt(e,t,!0).isValid())return void s(e);const r=Kt(e,t);s(r.format(t)),n&&n(r)}}}}),[c,t,n,p]),y=d((()=>{f()}),[f]),w=d((e=>{e.preventDefault();const t=e.clipboardData.getData("text"),r=Kt(t);n&&n(r)}),[n]);return o((()=>{var e;null===(e=a.current)||void 0===e||e.setSelectionRange(c[p.current].start,c[p.current].end+1)}),[p,c]),o((()=>{s(null==e?void 0:e.format(t)),u(sb(null==e?void 0:e.format(t)))}),[e,t]),{ref:a,value:l,onFocus:b,onBlur:v,onKeyDown:x,onMouseDown:y,onPaste:w}},Mb=v.div`
|
|
1569
|
+
`,jf=()=>{const{columns:e,setColumns:n}=g(gf),[i,a]=r(!1),[l,s]=r(e.map((e=>e.filtered||!1))),c=p((()=>e.filter((e=>e.filtered)).length),[e]),u=d((()=>{s(e.map((e=>e.filtered||!1)))}),[e]),m=d(((e,t)=>{s((n=>n.map(((n,r)=>e===r?t:n))))}),[s]),h=d((()=>{u(),a(!1)}),[u]),f=d((()=>{const t=structuredClone(e).map(((e,t)=>Object.assign(Object.assign({},e),{filtered:l[t]})));n(t),a(!1)}),[e,n,l]),b=d((e=>{a(e),e||u()}),[a,u]);return o((()=>u()),[e,u]),t.createElement(pd,null,t.createElement(ud,{width:360,trigger:t.createElement(Af,{type:"button",disabled:0===c},t.createElement(X,{name:"filter",color:"currentColor"}),c,"列に適用中"),open:i,onOpenChange:b},t.createElement(md,null,"フィルタが適用されている列"),e.map(((e,n)=>!0===e.filtered?t.createElement(ll,{key:e.id,checked:l[n],onChange:e=>m(n,e)},e.label):null)),t.createElement(fd,{prepend:t.createElement(X,{name:"question"})},"リセットしたいフィルタのボタンをオフにしてください"),t.createElement(bd,null),t.createElement(vd,null,t.createElement(Nt,{type:"button",size:"small",color:"clear",onClick:h},"キャンセル"),t.createElement(Nt,{type:"button",size:"small",onClick:f},"適用"))))},Ff=({onClose:e})=>{const{columns:n,setColumns:i}=g(gf),[o,a]=r(n),l=p((()=>[...o].sort(((e,t)=>e.order-t.order))),[o]),s=p((()=>l.reduce(((e,t)=>t.sortable||0!==e.sortable.length?t.sortable&&0===e.endFixed.length?(e.sortable.push(t),e):(e.endFixed.push(t),e):(e.startFixed.push(t),e)),{startFixed:[],sortable:[],endFixed:[]})),[l]),c=d((e=>{const t=structuredClone(n);t.forEach((t=>{if(s.startFixed.find((e=>e.id===t.id))||s.endFixed.find((e=>e.id===t.id)))return;const n=e.indexOf(t.id);-1!==n&&(t.order=s.startFixed.length+n)})),a(t)}),[n,s]),u=d((()=>{a(n),e()}),[n,e]),m=d((()=>{i(o),e()}),[i,o,e]);return t.createElement(ud,{width:328,trigger:t.createElement(ul,null,"カラムを編集")},s.startFixed.map((e=>t.createElement(ed,{key:e.id,disabled:!0,id:e.id},t.createElement(ll,{disabled:!0,checked:e.visible},e.label)))),t.createElement(Qc,{order:s.sortable.map((e=>e.id)),onOrderChange:c},s.sortable.map((e=>t.createElement(ed,{key:e.id,id:e.id},t.createElement(ll,{checked:e.visible,onChange:()=>a(o.map((t=>t.id===e.id?Object.assign(Object.assign({},t),{visible:!t.visible}):t)))},e.label))))),s.endFixed.map((e=>t.createElement(ed,{key:e.id,disabled:!0,id:e.id},t.createElement(ll,{key:e.id,disabled:!0,checked:e.visible},e.label)))),t.createElement(fd,{prepend:t.createElement(X,{name:"question"})},"カラムの並び順、表示・非表示を切り替えます。"),t.createElement(bd,null),t.createElement(vd,null,t.createElement(Nt,{size:"small",color:"clear",onClick:u},"キャンセル"),t.createElement(Nt,{size:"small",onClick:m},"適用")))},Xf=()=>{const{pageSize:e,pageSizeOptions:n,setPageSize:r}=g(gf);return t.createElement(ud,{width:136,trigger:t.createElement(ul,{append:e},"件数を変更")},n.map((n=>t.createElement(rl,{key:n,closeOnChange:!0,checked:e===n,onChange:()=>r(n)},n,"件"))))},Yf=[{value:-2,label:"より狭くする"},{value:-1,label:"狭くする"},{value:0,label:"標準"},{value:1,label:"広くする"},{value:2,label:"より広くする"}],Jf=()=>{const{rowSpacing:e,setRowSpacing:n}=g(gf),r=p((()=>{var t;return(null===(t=Yf.find((t=>t.value===e)))||void 0===t?void 0:t.label)||"標準"}),[e]);return t.createElement(ud,{width:168,trigger:t.createElement(ul,{append:r},"表示密度を変更")},Yf.map((({value:r,label:i})=>t.createElement(rl,{key:r,closeOnChange:!0,checked:e===r,onChange:()=>(e=>{n(e)})(r)},i))))},Uf=()=>{const{isSmallLayout:e,totalCount:n,currentPage:r,pageSize:i,pageSizeOptions:a,setCurrentPage:l,setPageSize:s}=g(gf),c=d((e=>{l(0),s(e)}),[l,s]),u=p((()=>Math.ceil(n/i)-1),[n,i]);return o((()=>{r>u&&l(u)}),[r,u,l]),t.createElement(Ef,null,t.createElement("button",{type:"button","aria-label":"前のページへ",disabled:0===r,onClick:()=>l(Math.max(r-1,0))},t.createElement(X,{name:"arrow_left",color:"currentColor"})),!e&&t.createElement(pd,null,t.createElement(ud,{width:296,trigger:t.createElement("button",{type:"button"},Math.min(r*i+1,i*u),t.createElement(If,null,"-"),Math.min((r+1)*i,n),t.createElement(If,null,"/"),n,t.createElement(X,{name:"arrow_down",size:"sm",color:"currentColor"}))},t.createElement(md,null,"表示件数を変更"),a.map((e=>t.createElement(rl,{key:e,checked:i===e,onChange:()=>c(e)},e))))),t.createElement("button",{type:"button","aria-label":"次のページへ",disabled:r===u,onClick:()=>l(Math.min(r+1,u))},t.createElement(X,{name:"arrow_right",color:"currentColor"})))},Qf=({children:e})=>{const{checkedRows:n}=g(gf);return t.createElement(pd,null,t.createElement(ud,{width:200,trigger:t.createElement(wf,{type:"button",disabled:0===n.length},t.createElement("em",null,n.length),"件選択",t.createElement(X,{name:"arrow_down",color:"currentColor"}))},e))},_f=({rowControls:e,extraButtons:n})=>{const{isSmallLayout:i,columns:o,rowIds:a,checkedRows:l,setCheckedRows:s}=g(gf),c=p((()=>l.length===a.length),[l,a]),u=p((()=>0!==l.length&&l.length!==a.length),[l,a]),[m,h]=r(!1),f=p((()=>o.some((e=>void 0!==e.filtered))),[o]),b=d((()=>{s(c?[]:a)}),[c,a,s]);return t.createElement(yf,{isSmallLayout:i},e&&t.createElement(t.Fragment,null,t.createElement(Gn,{checked:c||u,indeterminate:u,onChange:b}),t.createElement(Qf,null,e),t.createElement(Cf,null)),t.createElement(Uf,null),f&&t.createElement(t.Fragment,null,t.createElement(Cf,null),t.createElement(jf,null)),t.createElement(kf,null,!i&&n,t.createElement(pd,null,t.createElement(ud,{open:m,width:316,trigger:t.createElement(Hf,null,t.createElement(X,{name:"more_vert"})),onOpenChange:h},i&&n,o.some((e=>e.sortable))&&t.createElement(Ff,{onClose:()=>h(!1)}),t.createElement(Xf,null),t.createElement(Jf,null)))))},Kf=({bordered:e,rowControls:n,extraButtons:a,currentPage:l,pageSize:s,pageSizeOptions:c,totalCount:u,columns:p,onPageChange:m,onPageSizeChange:g,onColumnsChange:h,onCheckedRowsChange:f,children:b})=>{const[v,x]=r(!1),[y,w]=r([]),[C,E]=r([]),[I,A]=r([]),[k,M]=r(0),H=i(null),N=d(((e,t)=>{const n=[...I];n[e]=t,A(n)}),[I,A]);o((()=>{if(!H.current)return;const e=()=>{var e;H.current&&x((null===(e=H.current)||void 0===e?void 0:e.clientWidth)<640)},t=new ResizeObserver(e);return e(),t.observe(H.current),()=>{t.disconnect()}}),[]);const V=d((e=>{E(e),null==f||f(e)}),[E,f]),Z=i(l);return o((()=>{Z.current!==l&&V([]),Z.current=l}),[l,V]),t.createElement(bf,{ref:H,bordered:e},t.createElement(gf.Provider,{value:{isSmallLayout:v,rowIds:y,hasRowControls:!!n,checkedRows:C,totalCount:u,currentPage:l,pageSize:s,pageSizeOptions:c,columns:p,columnWidths:I,rowSpacing:k,setRowIds:w,setCheckedRows:V,setCurrentPage:m,setPageSize:g,setColumns:h,setColumnWidth:N,setRowSpacing:M}},t.createElement(_f,{rowControls:n,extraButtons:a}),t.createElement(xf,null,t.createElement("table",null,b))))},qf=({children:e})=>{const{hasRowControls:n,columns:r}=g(gf),i=p((()=>s.toArray(e).map(((e,t)=>{const n=r[t];return{id:n.id,index:t,order:n.order,visible:n.visible,child:e}})).filter((e=>void 0!==e.id))),[e,r]),o=p((()=>i.sort(((e,t)=>e.order-t.order)).filter((e=>e.visible))),[i]);return t.createElement(t.Fragment,null,t.createElement("colgroup",null,n&&t.createElement("col",{style:{width:34}}),o.map((({id:e,child:n})=>a(n)?t.createElement("col",{key:e,style:{width:n.props.width}}):null))),t.createElement(Nf,null,t.createElement("tr",null,n&&t.createElement("th",{"aria-label":"empty cell"}),o.map((({id:e,index:n,child:r})=>t.createElement(hf.Provider,{key:e,value:{index:n}},r))))))},eb=({className:e,isResizable:n,width:a,minWidth:l=32,maxWidth:s=1/0,children:c,onWidthChange:u})=>{const{isSmallLayout:p,setColumnWidth:m}=g(gf),h=g(hf),[f,b]=r(!1),v=i(null),x=i(null),y=i(0),w=i(0),C=d((e=>{b(!0),x.current&&null===v.current&&(v.current=e.pointerId,w.current=a||x.current.clientWidth,y.current=e.clientX)}),[a]),E=d((e=>{if(!u)return;if(v.current!==e.pointerId)return;e.cancelable&&e.preventDefault();const t=e.clientX-y.current,n=((e,t,n)=>Math.min(Math.max(e,t),n))(w.current+t,l,s);u(n),m(h.index,n)}),[u,l,s,m,h.index]),I=d((()=>{b(!1),v.current=null}),[]);return o((()=>{if(f)return document.addEventListener("pointermove",E),document.addEventListener("pointerup",I),()=>{document.removeEventListener("pointermove",E),document.removeEventListener("pointerup",I)}}),[f,E,I]),t.createElement(Vf,{ref:x,className:e,"data-dragging":f,style:{minWidth:isFinite(l)&&l<=s?l:void 0,maxWidth:isFinite(s)&&l<=s?s:void 0}},t.createElement(Zf,{isSmallLayout:p},c,n&&t.createElement(Df,{type:"button","aria-label":"resize the column",onPointerDown:C}),f&&A(t.createElement(Lf,{"data-min":a&&l>=a,"data-max":a&&s<=a}),document.body)))},tb=({showSortButton:e,sortButtonDirection:n,onSortChange:r,children:i})=>{const o=p((()=>"asc"===n?"desc":"desc"!==n?"asc":void 0),[n]),a=d((()=>{null==r||r(o)}),[r,o]);return t.createElement(Of,null,i,e&&t.createElement(Rf,{type:"button","aria-label":"sort the column","data-sort-direction":n,onClick:a},t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},t.createElement("path",{d:"M8.17 3.25a1 1 0 0 1 1.3-.33c.15.08.27.19.36.33l2.13 3.2c.1.15.16.33.17.51 0 .18-.03.36-.12.52s-.21.29-.37.39a1 1 0 0 1-.51.14H6.87a1 1 0 0 1-.83-1.56z"}),t.createElement("path",{d:"M9.83 14.75a1 1 0 0 1-1.3.33.95.95 0 0 1-.36-.33l-2.13-3.2c-.1-.15-.16-.33-.17-.51 0-.18.03-.36.12-.52s.21-.29.37-.39a1 1 0 0 1 .51-.14h4.26a1 1 0 0 1 .83 1.56z"}))))},nb=({children:e})=>{const{rowIds:n,setRowIds:r}=g(gf);return o((()=>{const t=[];s.forEach(e,(e=>{a(e)&&"string"==typeof e.props.id&&t.push(e.props.id)})),0!==t.filter((e=>!n.includes(e))).length&&r(t)}),[e,n,r]),t.createElement("tbody",null,e)},rb=({id:e,children:n})=>{const{isSmallLayout:r,columns:i,hasRowControls:o,checkedRows:a,setCheckedRows:l,rowSpacing:c}=g(gf),u=p((()=>a.includes(e)),[e,a]),m=d((()=>{const t=a.includes(e)?a.filter((t=>t!==e)):[...a,e];l(t)}),[e,a,l]),h=p((()=>s.toArray(n).map(((e,t)=>{const n=i[t];return{id:n.id,index:t,order:n.order,visible:n.visible,child:e}})).filter((e=>void 0!==e.id))),[n,i]),f=p((()=>h.sort(((e,t)=>e.order-t.order)).filter((e=>e.visible))),[h]);return t.createElement(Sf,{"data-highlighted":u,"data-spacing":c,isSmallLayout:r},o&&t.createElement($f,null,t.createElement(Tf,null,t.createElement(Gn,{checked:u,onChange:m}),t.createElement("input",{type:"checkbox","aria-label":"この行を選択"}))),f.map((({child:e})=>e)))},ib=({loading:e,children:n})=>t.createElement("td",null,t.createElement(zf,null,t.createElement(Gf,null,n),e&&t.createElement(Bf,null,t.createElement(ir,{width:"20px"})))),ob=({prepend:e,children:n,onClick:r})=>{const{isSmallLayout:i}=g(gf);return i?t.createElement(qa,{prepend:e,onClick:r},n):t.createElement(Mf,{type:"button",onClick:r},e,n)},ab=({label:e,value:n,children:i,onChange:a})=>{const[l,s]=r(n),[c,d]=r(!1),u=()=>{d(!1),a(l)};return o((()=>{s(n)}),[n]),t.createElement(Wf,null,i,t.createElement(Pf,null,t.createElement(pd,null,t.createElement(ud,{width:252,trigger:t.createElement(le,{type:"button",color:"primary",icon:"pencil"}),open:c,onOpenChange:d},t.createElement(md,null,e),t.createElement(nd,{value:l,onChange:e=>s(e.target.value),onEnter:u}),t.createElement(bd,null),t.createElement(vd,null,t.createElement(Nt,{type:"button",color:"clear",size:"small",onClick:()=>{d(!1),s(n)}},"キャンセル"),t.createElement(Nt,{type:"button",color:"primary",size:"small",onClick:u},"適用"))))))},lb=({label:e,value:n,options:i,children:o,onChange:a})=>{const[l,s]=r(!1);return t.createElement(Wf,null,o,t.createElement(Pf,null,t.createElement(pd,null,t.createElement(ud,{width:252,trigger:t.createElement(le,{type:"button",color:"primary",icon:"pencil"}),open:l,onOpenChange:s},t.createElement(md,null,e),i.map((e=>t.createElement(rl,{key:e,closeOnChange:!0,checked:n===e,onChange:()=>a(e)},e)))))))},sb=e=>{if(!e)return[];const t=[];let n=0,r=!isNaN(Number(e[0]));for(let i=1;i<=e.length;i++){const o=e[i],a=!isNaN(Number(o))&&" "!==o;a===r&&" "!==o&&i!==e.length||(t.push({start:n,end:i-1,value:e.slice(n,i),editable:r}),n=i,r=a)}return t},cb=e=>e.map((e=>e.value)).join(""),db={Backspace:"Backspace",Delete:"Delete",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",Tab:"Tab",0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9"},ub=Object.keys(db).filter((e=>!isNaN(Number(e)))),pb=Object.values(db),mb=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,gb=/\d\d/,hb=/-?\d\d?/,fb=/\d*[^-_:/,()\s\d]+/;let bb={},vb=function(e){return(e=+e)+(e>68?1900:2e3)};const xb=function(e){return function(t){this[e]=+t}},yb=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;const t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],wb=e=>{const t=bb[e];return t&&(t.indexOf?t:t.s.concat(t.f))},Cb=(e,t)=>{let n;const{meridiem:r}=bb;if(r){for(let i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},Eb={A:[fb,function(e){this.afternoon=Cb(e,!1)}],a:[fb,function(e){this.afternoon=Cb(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[gb,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[hb,xb("seconds")],ss:[hb,xb("seconds")],m:[hb,xb("minutes")],mm:[hb,xb("minutes")],H:[hb,xb("hours")],h:[hb,xb("hours")],HH:[hb,xb("hours")],hh:[hb,xb("hours")],D:[hb,xb("day")],DD:[gb,xb("day")],Do:[fb,function(e){const{ordinal:t}=bb;if([this.day]=e.match(/\d+/),t)for(let n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],M:[hb,xb("month")],MM:[gb,xb("month")],MMM:[fb,function(e){const t=wb("months"),n=(wb("monthsShort")||t.map((e=>e.slice(0,3)))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[fb,function(e){const t=wb("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,xb("year")],YY:[gb,function(e){this.year=vb(e)}],YYYY:[/\d{4}/,xb("year")],Z:yb,ZZ:yb};const Ib=(e,t,n)=>{try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);const r=function(e){const t=e.match(mb),{length:n}=t;for(let e=0;e<n;e+=1){const n=t[e],r=Eb[n],i=r&&r[0],o=r&&r[1];t[e]=o?{regex:i,parser:o}:n.replace(/^\[|\]$/g,"")}return function(e){const r={};for(let i=0,o=0;i<n;i+=1){const n=t[i];if("string"==typeof n)o+=n.length;else{const{regex:t,parser:i}=n,a=e.slice(o),l=t.exec(a)[0];i.call(r,l),e=e.replace(l,"")}}return function(e){const{afternoon:t}=e;if(void 0!==t){const{hours:n}=e;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(r),r}}(t),{year:i,month:o,day:a,hours:l,minutes:s,seconds:c,milliseconds:d,zone:u}=r(e),p=new Date,m=i||p.getFullYear(),g=o-1,h=l||0,f=s||0,b=c||0,v=d||0;return u?new Date(Date.UTC(m,g,a,h,f,b,v+60*u.offset*1e3)):n?new Date(Date.UTC(m,g,a,h,f,b,v)):new Date(m,g,a,h,f,b,v)}catch(e){return new Date("")}};var Ab=(e,t,n)=>{n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&({parseTwoDigitYear:vb}=e);const r=t.prototype,i=r.parse;r.parse=function(e){const{date:t,utc:r,args:o}=e;this.$u=r;const a=o[1];if("string"==typeof a){const e=!0===o[2],i=!0===o[3],l=e||i;let s=o[2];i&&([,,s]=o),bb=this.$locale(),!e&&s&&(bb=n.Ls[s]),this.$d=Ib(t,a,r),this.init(),s&&!0!==s&&(this.$L=this.locale(s).$L),l&&t!=this.format(a)&&(this.$d=new Date("")),bb={}}else if(a instanceof Array){const e=a.length;for(let t=1;t<=e;t+=1){o[1]=a[t-1];const r=n.apply(this,o);if(r.isValid()){this.$d=r.$d,this.$L=r.$L,this.init();break}t===e&&(this.$d=new Date(""))}}else i.call(this,e)}};const kb=({date:e,format:t="YYYY-MM-DD",onDateChange:n})=>{Kt.extend(Ab);const a=i(null),[l,s]=r(null==e?void 0:e.format(t)),[c,u]=r(sb(l)),[p,m]=r({start:0,end:c.length-1,current:0}),[g,h]=r(0),f=d((()=>{setTimeout((()=>{var e,t,n;const r=null!==(t=null===(e=a.current)||void 0===e?void 0:e.selectionStart)&&void 0!==t?t:0,i=c[c.length-1].end+1,o=r>=i?i:r,l=c.findIndex((e=>o>=e.start&&o<=e.end+1));m((e=>c[l].editable?e.current===l?e:Object.assign(Object.assign({},e),{current:l}):Object.assign(Object.assign({},e),{current:l+1}))),null===(n=a.current)||void 0===n||n.setSelectionRange(c[l].start,c[l].end+1)}))}),[c]),b=d((()=>{}),[]),v=d((()=>{m((e=>Object.assign(Object.assign({},e),{current:0}))),h(0)}),[]),x=d((e=>{if(pb.includes(e.key)){if(e.key===db.ArrowLeft||e.key===db.ArrowRight){e.preventDefault();const t=e=>{const t=p.current;if(e===db.ArrowLeft){for(let e=t-1;e>=0;e--)if(c[e].editable)return e-t}else if(e===db.ArrowRight)for(let e=t+1;e<c.length;e++)if(c[e].editable)return e-t;return 0},n=e.key;m((e=>Object.assign(Object.assign({},e),{current:e.current+t(n)})))}if(e.key===db.ArrowUp||e.key===db.ArrowDown){e.preventDefault();const r=e.key===db.ArrowUp?1:-1,i=Number(c[p.current].value)+r,o=String(i).padStart(c[p.current].value.length,"0"),a=[...c];a[p.current].value=o,u(a);const l=cb(a),d=Kt(l,t);s(d.format(t)),d.isValid()&&n&&n(d)}if(ub.includes(e.key)){e.preventDefault(),0===g&&(c[p.current].value="".padStart(c[p.current].value.length,"0"));const r=`${c[p.current].value.slice(1)}${e.key}`,i=[...c];if(i[p.current].value=r,u(i),h(g+1),g+1===c[p.current].value.length){h(0);const e=cb(c),r=Kt(e,t);s(r.format(t)),n&&n(r)}else{const e=cb(c);if(!Kt(e,t,!0).isValid())return void s(e);const r=Kt(e,t);s(r.format(t)),n&&n(r)}}}}),[c,t,n,p]),y=d((()=>{f()}),[f]),w=d((e=>{e.preventDefault();const t=e.clipboardData.getData("text"),r=Kt(t);n&&n(r)}),[n]);return o((()=>{var e;null===(e=a.current)||void 0===e||e.setSelectionRange(c[p.current].start,c[p.current].end+1)}),[p,c]),o((()=>{s(null==e?void 0:e.format(t)),u(sb(null==e?void 0:e.format(t)))}),[e,t]),{ref:a,value:l,onFocus:b,onBlur:v,onKeyDown:x,onMouseDown:y,onPaste:w}},Mb=v.div`
|
|
1570
1570
|
display: flex;
|
|
1571
1571
|
align-items: center;
|
|
1572
1572
|
width: fit-content;
|
|
@@ -1640,7 +1640,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1640
1640
|
&:disabled {
|
|
1641
1641
|
cursor: not-allowed;
|
|
1642
1642
|
}
|
|
1643
|
-
`,Lb=n((function(e,n){var{format:r="YYYY-MM-DD",errorText:i,disabled:o=!1,onClickCalendarIcon:a}=e,l=M(e,["format","errorText","disabled","onClickCalendarIcon"]);const s=G(),c=p((()=>9*Nb(r)+"px"),[r]),d=e=>t=>{var n,r;const{startDate:i,endDate:o}=l.date;e===Cn?null===(n=l.onDatesChange)||void 0===n||n.call(l,{endDate:o,startDate:t}):null===(r=l.onDatesChange)||void 0===r||r.call(l,{startDate:i,endDate:t})},u=kb(Object.assign(Object.assign({},l),{format:r,date:l.date.startDate,onDateChange:d(Cn)})),{ref:m}=u,g=M(u,["ref"]),h=kb(Object.assign(Object.assign({},l),{format:r,date:l.date.endDate,onDateChange:d(En)})),{ref:f}=h,b=M(h,["ref"]),v=Wn(n,m),x=Wn(n,f);return t.createElement(t.Fragment,null,t.createElement(Zb,{error:!!i,disabled:o},t.createElement(Ey,Object.assign({ref:v,readOnly:!0,disabled:o,width:c,error:!!i,style:{border:"none",textAlign:"center"}},g)),"-",t.createElement(Ey,Object.assign({ref:x,readOnly:!0,disabled:o,width:c,error:!!i,style:{border:"none",textAlign:"center"}},b)),t.createElement(Db,{disabled:o,onClick:a},t.createElement(X,{name:"date_range",color:o?s.palette.gray.dark:s.palette.text.primary}))),i&&t.createElement(It,{pt:1},t.createElement(rx,null,i)))}));var Ob=c(Lb);const Rb=n((function(e,n){const i=gr({props:e,name:"DatePicker"}),{date:o,format:a="YYYY-MM-DD",disabled:l=!1,monthFormat:s,weekList:c,isOutsideRange:u,errorText:p,defaultClickAction:m,actions:g,onClickAction:h,onDateChange:f}=i,[b,v]=r(!1),{context:x,refs:y,strategy:w,x:C,y:E}=Va({placement:"right-start",open:b,onOpenChange:v,middleware:[Zi(10),Vi()]}),I=Ha(x),A=za(x),{getReferenceProps:k,getFloatingProps:M}=Da([I,A]),H=d((()=>{l||v((e=>!e))}),[l]),N=d((e=>{f(e),v(!1)}),[f]),V=d((()=>{v(!1)}),[]);return t.createElement(J,{ref:n,style:{width:"fit-content"}},t.createElement("div",Object.assign({ref:y.setReference},k()),t.createElement(Vb,{date:o,format:a,errorText:p,disabled:l,onClick:H,onDateChange:f})),b&&t.createElement(bn,Object.assign({ref:y.setFloating,date:o,monthFormat:s,weekList:c,defaultClickAction:m,actions:g,isOutsideRange:u,style:{position:w,top:null!=E?E:0,left:null!=C?C:0,zIndex:100,overflow:"hidden"},onClickAction:h,onClickCloseButton:V,onDateChange:N},M())))}));var Sb=c(Rb);const
|
|
1643
|
+
`,Lb=n((function(e,n){var{format:r="YYYY-MM-DD",errorText:i,disabled:o=!1,onClickCalendarIcon:a}=e,l=M(e,["format","errorText","disabled","onClickCalendarIcon"]);const s=G(),c=p((()=>9*Nb(r)+"px"),[r]),d=e=>t=>{var n,r;const{startDate:i,endDate:o}=l.date;e===Cn?null===(n=l.onDatesChange)||void 0===n||n.call(l,{endDate:o,startDate:t}):null===(r=l.onDatesChange)||void 0===r||r.call(l,{startDate:i,endDate:t})},u=kb(Object.assign(Object.assign({},l),{format:r,date:l.date.startDate,onDateChange:d(Cn)})),{ref:m}=u,g=M(u,["ref"]),h=kb(Object.assign(Object.assign({},l),{format:r,date:l.date.endDate,onDateChange:d(En)})),{ref:f}=h,b=M(h,["ref"]),v=Wn(n,m),x=Wn(n,f);return t.createElement(t.Fragment,null,t.createElement(Zb,{error:!!i,disabled:o},t.createElement(Ey,Object.assign({ref:v,readOnly:!0,disabled:o,width:c,error:!!i,style:{border:"none",textAlign:"center"}},g)),"-",t.createElement(Ey,Object.assign({ref:x,readOnly:!0,disabled:o,width:c,error:!!i,style:{border:"none",textAlign:"center"}},b)),t.createElement(Db,{disabled:o,onClick:a},t.createElement(X,{name:"date_range",color:o?s.palette.gray.dark:s.palette.text.primary}))),i&&t.createElement(It,{pt:1},t.createElement(rx,null,i)))}));var Ob=c(Lb);const Rb=n((function(e,n){const i=gr({props:e,name:"DatePicker"}),{date:o,format:a="YYYY-MM-DD",disabled:l=!1,monthFormat:s,weekList:c,isOutsideRange:u,errorText:p,defaultClickAction:m,actions:g,onClickAction:h,onDateChange:f}=i,[b,v]=r(!1),{context:x,refs:y,strategy:w,x:C,y:E}=Va({placement:"right-start",open:b,onOpenChange:v,middleware:[Zi(10),Vi()]}),I=Ha(x),A=za(x),{getReferenceProps:k,getFloatingProps:M}=Da([I,A]),H=d((()=>{l||v((e=>!e))}),[l]),N=d((e=>{f(e),v(!1)}),[f]),V=d((()=>{v(!1)}),[]);return t.createElement(J,{ref:n,style:{width:"fit-content"}},t.createElement("div",Object.assign({ref:y.setReference},k()),t.createElement(Vb,{date:o,format:a,errorText:p,disabled:l,onClick:H,onDateChange:f})),b&&t.createElement(bn,Object.assign({ref:y.setFloating,date:o,monthFormat:s,weekList:c,defaultClickAction:m,actions:g,isOutsideRange:u,style:{position:w,top:null!=E?E:0,left:null!=C?C:0,zIndex:100,overflow:"hidden"},onClickAction:h,onClickCloseButton:V,onDateChange:N},M())))}));var Sb=c(Rb);const $b=n((function(t,n){const o=gr({props:t,name:"DateRangePicker"}),{startDate:a,endDate:l,errorText:s,disabled:c=!1,monthFormat:d,weekList:u,isOutsideRange:p=(()=>!1),defaultClickAction:m,actions:g,onClickAction:h,onDatesChange:f}=o,[b,v]=r(!1),{context:x,refs:y,strategy:w,x:C,y:E}=Va({placement:"right-start",open:b,onOpenChange:v,middleware:[Zi(10),Vi()]}),I=Wn(n,i(null)),A=Ha(x),k=za(x),{getReferenceProps:M,getFloatingProps:H}=Da([A,k]),N=e.useCallback((()=>{v(!1)}),[]);return e.createElement(J,{ref:I},e.createElement("div",Object.assign({ref:y.setReference},M(),{style:{width:"fit-content"}}),e.createElement(Ob,{date:{startDate:a,endDate:l},errorText:s,disabled:c,onDatesChange:f,onClickCalendarIcon:()=>{c||v((e=>!e))}})),b&&e.createElement(Rn,Object.assign({ref:y.setFloating,startDate:a,endDate:l,defaultClickAction:m,actions:g,monthFormat:d,weekList:u,style:{position:w,top:null!=E?E:0,left:null!=C?C:0,zIndex:100,overflow:"hidden"},isOutsideRange:p,onClickAction:h,onClose:e=>{e===En&&v(!1)},onClickCloseButton:N,onDatesChange:f},H())))}));var Tb=e.memo($b);const zb=v.div`
|
|
1644
1644
|
display: inline-flex;
|
|
1645
1645
|
`,Bb=v(Nt)`
|
|
1646
1646
|
border-top-right-radius: 0px;
|
|
@@ -1715,7 +1715,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1715
1715
|
align-items: center;
|
|
1716
1716
|
justify-content: center;
|
|
1717
1717
|
gap: ${({theme:e})=>2*e.spacing}px;
|
|
1718
|
-
`,av=({items:e,selectedItemTitle:n,onRemove:r})=>{const i=G();return t.createElement(ev,null,t.createElement(tv,null,t.createElement(oe,{size:"sm",weight:"bold"},t.createElement(oe,{color:"primary",component:"span",size:"sm",weight:"bold"},e.length," "),n)),t.createElement(nv,null,e.map(((n,o)=>t.createElement(rv,{key:n.id,isLastIndex:o+1===e.length},n.content,t.createElement(ov,null,r&&t.createElement(iv,{type:"button",onClick:()=>r(n)},t.createElement(X,{color:i.palette.black,name:"close_circle",type:"fill"}))))))))},lv=(e,t)=>{const n=[];return e.forEach((e=>{if(e.items)return void n.push(Object.assign(Object.assign({},e),{items:lv(e.items,t)}));t.find((t=>t.id===e.id))?n.push(Object.assign(Object.assign({},e),{selected:!0})):n.push(e)})),n},sv=e.forwardRef((function(t){const{candidateItems:n,selectedItems:r,selectedItemTitle:i,disableCheckbox:o,onAdd:a,onRemove:l}=gr({props:t,name:"DualListBox"}),s=G(),c=e.useMemo((()=>lv(n,r)),[n,r]);return e.createElement(Fb,null,e.createElement(qb,{disableCheckbox:o,items:c,onAdd:a,onRemove:l}),e.createElement(Cr,{color:s.palette.divider,orientation:"vertical"}),e.createElement(av,{items:r,selectedItemTitle:i,onRemove:l}))})),cv=({id:e,children:n,isIncluded:r=!1,isExcluded:i=!1,disableInclude:o,disableExclude:a})=>{const{onIncludedChange:l,onExcludedChange:s,includedIds:c,excludedIds:d}=g(dv),u=(e,t,n)=>e?N.basic[400]:t?n:N.basic[900];return t.createElement(zv,null,n,t.createElement(
|
|
1718
|
+
`,av=({items:e,selectedItemTitle:n,onRemove:r})=>{const i=G();return t.createElement(ev,null,t.createElement(tv,null,t.createElement(oe,{size:"sm",weight:"bold"},t.createElement(oe,{color:"primary",component:"span",size:"sm",weight:"bold"},e.length," "),n)),t.createElement(nv,null,e.map(((n,o)=>t.createElement(rv,{key:n.id,isLastIndex:o+1===e.length},n.content,t.createElement(ov,null,r&&t.createElement(iv,{type:"button",onClick:()=>r(n)},t.createElement(X,{color:i.palette.black,name:"close_circle",type:"fill"}))))))))},lv=(e,t)=>{const n=[];return e.forEach((e=>{if(e.items)return void n.push(Object.assign(Object.assign({},e),{items:lv(e.items,t)}));t.find((t=>t.id===e.id))?n.push(Object.assign(Object.assign({},e),{selected:!0})):n.push(e)})),n},sv=e.forwardRef((function(t){const{candidateItems:n,selectedItems:r,selectedItemTitle:i,disableCheckbox:o,onAdd:a,onRemove:l}=gr({props:t,name:"DualListBox"}),s=G(),c=e.useMemo((()=>lv(n,r)),[n,r]);return e.createElement(Fb,null,e.createElement(qb,{disableCheckbox:o,items:c,onAdd:a,onRemove:l}),e.createElement(Cr,{color:s.palette.divider,orientation:"vertical"}),e.createElement(av,{items:r,selectedItemTitle:i,onRemove:l}))})),cv=({id:e,children:n,isIncluded:r=!1,isExcluded:i=!1,disableInclude:o,disableExclude:a})=>{const{onIncludedChange:l,onExcludedChange:s,includedIds:c,excludedIds:d}=g(dv),u=(e,t,n)=>e?N.basic[400]:t?n:N.basic[900];return t.createElement(zv,null,n,t.createElement(Tv,null,t.createElement("li",null,t.createElement("button",{type:"button",disabled:o,"aria-pressed":r,"aria-label":"追加",style:{"--color":N.blue[500]},onClick:()=>{r?l(c.filter((t=>t!==e))):i?(s(d.filter((t=>t!==e))),l([...c,e])):l([...c,e])}},t.createElement(X,{name:"check_thin",color:u(o,r,N.blue[500])}))),t.createElement("li",null,t.createElement("button",{type:"button",disabled:a,"aria-pressed":i,"aria-label":"除外",style:{"--color":N.red[500]},onClick:()=>{i?s(d.filter((t=>t!==e))):r?(l(c.filter((t=>t!==e))),s([...d,e])):s([...d,e])}},t.createElement(X,{name:"forbid",color:u(a,i,N.red[500])})))))};cv.displayName="DualListBox2Item";const dv=m({filterWords:[],includedIds:[],excludedIds:[],activeSection:null,onIncludedChange:e=>{},onExcludedChange:e=>{},setActiveSection:e=>{}}),uv=m({groupName:""}),pv=(e,t)=>{s.forEach(e,(e=>{t(e),a(e)&&e.props.children&&pv(e.props.children,t)}))},mv=e=>{const t=[];return pv(e,(e=>{a(e)&&"string"!=typeof e.type&&"displayName"in e.type&&e.type.displayName===cv.displayName&&t.push({id:e.props.id,label:e.props.children,groupName:e.props.groupName})})),t},gv=e=>e.reduce(((e,t)=>{const n=e.find((e=>e.groupName===t.groupName));return n?n.items.push(t):e.push({groupName:t.groupName,items:[t]}),e}),[]),hv=({label:e,disableInclude:n,disableExclude:i,children:o,onOpen:a})=>{const[l,s]=r(!1),c=d((()=>{const e=!l;s(e),e&&a&&a()}),[l,a]),{includedIds:u,excludedIds:m,onIncludedChange:h,onExcludedChange:f}=g(dv),b=p((()=>(e=>mv(e).map((e=>e.id)))(o)),[o]),v=d((()=>{b.every((e=>u.includes(e)))||(h(Array.from(new Set([...u,...b]))),f(m.filter((e=>!b.includes(e)))))}),[b,u,m,h,f]),x=d((()=>{b.every((e=>m.includes(e)))||(f(Array.from(new Set([...m,...b]))),h(u.filter((e=>!b.includes(e)))))}),[b,u,m,h,f]);return t.createElement(t.Fragment,null,t.createElement(Wv,null,t.createElement(Pv,{type:"button","aria-label":`${e}を開く`,"aria-expanded":l,onClick:c},e),t.createElement(jv,null,t.createElement("li",null,t.createElement("button",{type:"button",disabled:n,"aria-label":"追加",onClick:v},t.createElement(X,{name:"check_thin",color:N.blue[500]}))),t.createElement("li",null,t.createElement("button",{type:"button",disabled:i,"aria-label":"除外",onClick:x},t.createElement(X,{name:"forbid",color:N.red[500]})))),t.createElement(Fv,null,t.createElement(X,{name:"arrow_down",color:N.basic[900]}))),l&&o)},fv=`\n display: flex;\n gap: 4px;\n box-sizing: border-box;\n padding: 6px;\n border: 1px solid ${N.basic[400]};\n border-radius: 4px;\n background: #ffffff;\n /* UI/Text 12 */\n font-size: 12px;\n color: ${N.basic[900]};\n cursor: pointer;\n box-shadow: ${Rt(1,.04,D.action.shadowBase)};\n\n &:where(:disabled) {\n color: ${N.basic[400]};\n background: ${N.basic[200]};\n box-shadow: ${Rt(1,.04,D.black)};\n cursor: not-allowed;\n }\n\n &:where(li:not(:first-child) button) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n &:where(li:not(:last-child) button) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n &:where(:hover:not(:disabled)) {\n background: ${N.basic[100]};\n }\n\n &:where(:active:not(:disabled)) {\n padding-block: 8px 4px;\n background: ${D.gray.highlight};\n box-shadow: ${Rt(2,.04,D.black)};\n }\n`,bv=v.div`
|
|
1719
1719
|
container-type: inline-size;
|
|
1720
1720
|
`,vv=v.ul`
|
|
1721
1721
|
display: none;
|
|
@@ -1931,7 +1931,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1931
1931
|
background: ${N.red[100]};
|
|
1932
1932
|
`,Sv=v.div`
|
|
1933
1933
|
width: fit-content;
|
|
1934
|
-
|
|
1934
|
+
`,$v=v.p`
|
|
1935
1935
|
position: sticky;
|
|
1936
1936
|
top: 0;
|
|
1937
1937
|
z-index: 1;
|
|
@@ -1947,7 +1947,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1947
1947
|
line-height: 16px;
|
|
1948
1948
|
color: ${N.basic[900]};
|
|
1949
1949
|
background: ${N.basic[200]};
|
|
1950
|
-
|
|
1950
|
+
`,Tv=v.div`
|
|
1951
1951
|
display: flex;
|
|
1952
1952
|
padding: 0;
|
|
1953
1953
|
margin: 0;
|
|
@@ -2000,13 +2000,13 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2000
2000
|
background: ${N.basic[100]};
|
|
2001
2001
|
}
|
|
2002
2002
|
|
|
2003
|
-
&:hover ${
|
|
2003
|
+
&:hover ${Tv} {
|
|
2004
2004
|
visibility: visible;
|
|
2005
2005
|
opacity: 1;
|
|
2006
2006
|
}
|
|
2007
2007
|
|
|
2008
2008
|
@media (any-hover: hover) {
|
|
2009
|
-
&:not(:hover) ${
|
|
2009
|
+
&:not(:hover) ${Tv}:has(button[aria-pressed="true"]) {
|
|
2010
2010
|
visibility: visible;
|
|
2011
2011
|
opacity: 1;
|
|
2012
2012
|
|
|
@@ -2201,7 +2201,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2201
2201
|
padding-left: 48px;
|
|
2202
2202
|
`;const Qv=({label:e,children:n})=>{const{activeSection:r,setActiveSection:i}=g(dv),o=p((()=>r===e),[e,r]),a=p((()=>null!==r&&r!==e),[e,r]),l=d((()=>{i(o?null:e)}),[e,o,i]);return a?null:t.createElement(uv.Provider,{value:{groupName:e}},t.createElement(Jv,{type:"button","aria-label":`${e}を開く`,"aria-expanded":o,onClick:l},t.createElement(Xv,null,t.createElement(X,{name:"arrow_left",color:N.basic[900]})),t.createElement("div",null,e),t.createElement(Yv,null,t.createElement(X,{name:"arrow_right",color:N.basic[900]}))),o&&n)};Qv.displayName="DualListBox2Section";const _v=v(ul)`
|
|
2203
2203
|
margin-right: 16px;
|
|
2204
|
-
`,Kv=({pageSize:e,pageSizeOptions:n,onPageSizeChange:r})=>t.createElement(ud,{width:136,trigger:t.createElement(_v,{append:e},"件数を変更")},n.map((n=>t.createElement(rl,{key:n,closeOnChange:!0,checked:e===n,onChange:()=>r(n)},n,"件")))),qv=e=>e.reduce(((e,t)=>{const n=e.find((e=>e.groupName===t.groupName));return n?n.items.push({id:t.id,label:t.label}):e.push({groupName:t.groupName,items:[{id:t.id,label:t.label}]}),e}),[]),ex=t.memo((({id:e,children:n})=>{const{includedIds:r,excludedIds:i,onIncludedChange:o,onExcludedChange:a}=g(dv),l=p((()=>r.includes(e)),[r,e]),s=p((()=>i.includes(e)),[i,e]),c=d((()=>{l&&o(r.filter((t=>t!==e))),s&&a(i.filter((t=>t!==e)))}),[l,s,r,i,o,a,e]);return t.createElement(Bv,null,n,t.createElement("button",{type:"button","aria-label":"解除",onClick:c}))}));ex.displayName="DualListBox2SelectedItem";const tx=({label:e})=>t.createElement(Gv,null,e),nx=n((({included:e,excluded:n,disableInclude:l,disableExclude:s,menuButtons:c,children:u,loading:m,onIncludedChange:g,onExcludedChange:h,onLoadMore:f,pageSize:v=50,pageSizeOptions:x=[10,50,100,200],onPageSizeChange:y,filter:w="",onFilterChange:C},E)=>{const[I,A]=r(0),[k,M]=r(""),[H,V]=r(null),[Z,D]=r(!1),L=i(null),O=C?w:k,R=d((e=>{const t=e.target.value;C?C(t):M(t)}),[C]),S=d((()=>{C?C(""):M("")}),[C])
|
|
2204
|
+
`,Kv=({pageSize:e,pageSizeOptions:n,onPageSizeChange:r})=>t.createElement(ud,{width:136,trigger:t.createElement(_v,{append:e},"件数を変更")},n.map((n=>t.createElement(rl,{key:n,closeOnChange:!0,checked:e===n,onChange:()=>r(n)},n,"件")))),qv=e=>e.reduce(((e,t)=>{const n=e.find((e=>e.groupName===t.groupName));return n?n.items.push({id:t.id,label:t.label}):e.push({groupName:t.groupName,items:[{id:t.id,label:t.label}]}),e}),[]),ex=t.memo((({id:e,children:n})=>{const{includedIds:r,excludedIds:i,onIncludedChange:o,onExcludedChange:a}=g(dv),l=p((()=>r.includes(e)),[r,e]),s=p((()=>i.includes(e)),[i,e]),c=d((()=>{l&&o(r.filter((t=>t!==e))),s&&a(i.filter((t=>t!==e)))}),[l,s,r,i,o,a,e]);return t.createElement(Bv,null,n,t.createElement("button",{type:"button","aria-label":"解除",onClick:c}))}));ex.displayName="DualListBox2SelectedItem";const tx=({label:e})=>t.createElement(Gv,null,e),nx=n((({included:e,excluded:n,disableInclude:l,disableExclude:s,menuButtons:c,children:u,loading:m,onIncludedChange:g,onExcludedChange:h,onLoadMore:f,pageSize:v=50,pageSizeOptions:x=[10,50,100,200],onPageSizeChange:y,filter:w="",onFilterChange:C},E)=>{const[I,A]=r(0),[k,M]=r(""),[H,V]=r(null),[Z,D]=r(!1),L=i(null),O=C?w:k,R=d((e=>{const t=e.target.value;C?C(t):M(t)}),[C]),S=d((()=>{C?C(""):M("")}),[C]),$=d((e=>{V(e),null===e&&S()}),[S]),T=p((()=>{let e=!1;return pv(u,(t=>{a(t)&&"string"!=typeof t.type&&"displayName"in t.type&&t.type.displayName===Qv.displayName&&(e=!0)})),e}),[u]),z=p((()=>{const e=O.trim();return e?e.split(/\s+/):[]}),[O]),B=p((()=>mv(u)),[u]),G=d((e=>{if(!a(e))return e;if(e.type!==cv)return e;const t=B.find((t=>t.id===e.props.id));return t&&z.every((e=>t.label.toLowerCase().includes(e.toLowerCase())))?e:null}),[z,B]),W=p((()=>z.length?t.Children.map(u,(e=>{if(!a(e))return e;if(e.type===cv)return G(e);if("string"!=typeof e.type&&"displayName"in e.type&&"DualListBox2Accordion"===e.type.displayName){const n=t.Children.toArray(e.props.children).filter(a).map((e=>G(e))).filter(Boolean);return 0===n.length?null:t.cloneElement(e,Object.assign(Object.assign({},e.props),{children:n}))}if("string"!=typeof e.type&&"displayName"in e.type&&"DualListBox2Section"===e.type.displayName){const n=t.Children.toArray(e.props.children).filter(a).map((e=>G(e))).filter(Boolean);return t.cloneElement(e,Object.assign(Object.assign({},e.props),{children:n}))}return e})):u),[u,z,G]),P=p((()=>e.map((e=>e.id))),[e]),j=p((()=>n.map((e=>e.id))),[n]),F=p((()=>B.map((e=>e.id))),[B]),Y=p((()=>0===z.length?F:F.filter((e=>{const t=B.find((t=>t.id===e));return!!t&&z.every((e=>t.label.includes(e)))}))),[F,B,z]),J=p((()=>{if(!T)return[];if(null===H)return[];const e=[];return pv(u,(t=>{a(t)&&"string"!=typeof t.type&&"displayName"in t.type&&t.type.displayName===Qv.displayName&&t.props.label===H&&pv(t.props.children,(t=>{a(t)&&"string"!=typeof t.type&&"displayName"in t.type&&t.type.displayName===cv.displayName&&e.push(t.props.id)}))})),e}),[H,u,T]),U=p((()=>0===z.length?J:J.filter((e=>{const t=B.find((t=>t.id===e));return!!t&&z.every((e=>t.label.includes(e)))}))),[J,B,z]),Q=p((()=>{if(T){if(null===H)return!0;return!!U.every((e=>P.includes(e)))}return!!Y.every((e=>P.includes(e)))}),[T,H,Y,U,P]),_=p((()=>{if(T){if(null===H)return!0;return!!U.every((e=>j.includes(e)))}return!!Y.every((e=>j.includes(e)))}),[T,H,Y,U,j]),K=d((()=>{e.length&&g([]),n.length&&h([])}),[e,n,g,h]),q=d((()=>{if(T){if(null===H)return;return g(Array.from(new Set([...P,...U]))),void h(j.filter((e=>!U.includes(e))))}g(Array.from(new Set([...P,...Y]))),h(j.filter((e=>!Y.includes(e))))}),[Y,g,h,T,H,P,j,U]),ee=d((()=>{if(T){if(null===H)return;return h(Array.from(new Set([...j,...U]))),void g(P.filter((e=>!U.includes(e))))}h(Array.from(new Set([...j,...Y]))),g(P.filter((e=>!Y.includes(e))))}),[Y,g,h,T,H,P,j,U]),te=d((async e=>{if(e[0].isIntersecting&&!Z&&f){D(!0);try{await f()}finally{D(!1)}}}),[Z,f]);return o((()=>{if("undefined"==typeof IntersectionObserver)return;const e=new IntersectionObserver(te,{root:null,rootMargin:"100px",threshold:.1}),t=L.current;return t&&e.observe(t),()=>{t&&e.unobserve(t)}}),[te]),t.createElement(bv,{ref:E,role:"region","aria-label":"デュアルリストボックス"},t.createElement(vv,{role:"tablist","aria-label":"リストの表示切り替え"},t.createElement("li",null,t.createElement("button",{type:"button",role:"tab","aria-selected":0===I,"aria-expanded":0===I,"aria-controls":"list-items-panel",onClick:()=>A(0)},"リストアイテム")),t.createElement("li",null,t.createElement("button",{type:"button",role:"tab","aria-selected":1===I,"aria-expanded":1===I,"aria-controls":"selected-items-panel",onClick:()=>A(1)},"選択済みアイテム",(e.length>0||n.length>0)&&t.createElement(xv,null,e.length+n.length)))),t.createElement(yv,null,t.createElement(dv.Provider,{value:{filterWords:z,includedIds:P,excludedIds:j,activeSection:H,onIncludedChange:g,onExcludedChange:h,setActiveSection:$}},t.createElement(wv,{isShow:0===I,id:"list-items-panel",role:"tabpanel","aria-labelledby":"list-items-tab"},t.createElement(Ev,{hasMenu:!(!c&&!y)},t.createElement(Iv,null,t.createElement(X,{name:"search",size:"sm",color:N.basic[600]}),t.createElement("input",{"aria-label":"アイテムを検索",disabled:T&&null===H,placeholder:"検索",type:"text",value:O,onChange:R}),O&&t.createElement(Av,{type:"button","aria-label":"検索をリセット",onClick:S})),(c||y)&&t.createElement(pd,null,t.createElement(ud,{trigger:t.createElement(kv,{type:"button"},t.createElement(X,{name:"more_vert",color:N.basic[900]}))},y&&t.createElement(Kv,{pageSize:v,pageSizeOptions:x,onPageSizeChange:y}),c)),t.createElement(Mv,null,m?t.createElement(ir,{width:"16px"}):t.createElement(t.Fragment,null,T&&null===H?"-":T?U.length.toLocaleString("en-US"):Y.length.toLocaleString("en-US"),"件")),t.createElement(Hv,null,!l&&t.createElement("li",null,t.createElement("button",{type:"button",disabled:Q,onClick:q},t.createElement(X,{name:"check_thin",color:Q?N.basic[400]:N.blue[500]}),"全て追加")),!s&&t.createElement("li",null,t.createElement("button",{type:"button",disabled:_,onClick:ee},t.createElement(X,{name:"forbid",color:_?N.basic[400]:N.red[500]}),"全て除外")))),t.createElement(Cv,null,W,t.createElement("div",{ref:L,style:{height:"20px"}},m&&t.createElement(Uv,null,"読み込み中...")))),t.createElement(Nv,{isShow:1===I},t.createElement(Vv,null,t.createElement(Dv,null,0!==e.length&&t.createElement(Ov,null,t.createElement(X,{name:"check_thin",color:N.blue[500]}),e.length),0!==n.length&&t.createElement(Rv,null,t.createElement(X,{name:"forbid",color:N.red[500]}),n.length)),t.createElement(Sv,null,t.createElement(Nt,{type:"button",color:"basicLight",size:"small",disabled:!e.length&&!n.length,onClick:K},"選択をクリア"))),t.createElement(Zv,null,!!e.length&&t.createElement($v,null,t.createElement(X,{name:"check_thin",color:N.blue[500]}),"追加"),qv(e).map((e=>t.createElement(b,{key:e.groupName||"_"},e.groupName&&t.createElement(tx,{label:e.groupName}),e.items.map((e=>t.createElement(ex,{key:e.id,id:e.id},e.label)))))),!!n.length&&t.createElement($v,null,t.createElement(X,{name:"forbid",color:N.red[500]}),"除外"),qv(n).map((e=>t.createElement(b,{key:e.groupName||"_"},e.groupName&&t.createElement(tx,{label:e.groupName}),e.items.map((e=>t.createElement(ex,{key:e.id,id:e.id},e.label)))))))))))}));nx.displayName="DualListBox2";const rx=e.forwardRef((function({children:t},n){const r=G();return e.createElement(J,{ref:n,display:"flex",alignItems:"center"},e.createElement(It,{pr:.5},e.createElement(X,{name:"alert",color:r.palette.danger.main,size:"md"})),e.createElement(oe,{color:r.palette.danger.main},t))})),ix=v.div`
|
|
2205
2205
|
display: flex;
|
|
2206
2206
|
justify-content: center;
|
|
2207
2207
|
align-items: center;
|
|
@@ -2529,7 +2529,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2529
2529
|
z-index: 1;
|
|
2530
2530
|
background-color: ${N.basic[0]};
|
|
2531
2531
|
border-top: 1px solid ${N.basic[300]};
|
|
2532
|
-
`;const Hx=({values:e,options:n,selectedIndex:a,selectOptions:l,onChange:s,onSelectChange:c,size:u="medium",variant:m="dark",tagVariant:g,searchPlaceholder:h="検索",noResultsMessage:f="見つかりませんでした",disabled:b=!1,applyButtonText:v="適用",cancelButtonText:x="キャンセル",error:y=!1})=>{const[w,C]=r(""),[E,I]=r(!1),[A,k]=r(e),[M,H]=r(!1),N=p((()=>g||("light"===m?"dark":"light")),[m,g]),[V,Z]=r(!1),D=i(null),L=d((()=>{D.current&&Z(D.current.clientWidth<D.current.scrollWidth)}),[]),O=d((e=>{const t=e.trim();if(!t)return n.map((e=>Array.isArray(e)?e:[e]));return n.filter((e=>Array.isArray(e)?e.some((e=>e.includes(t))):e.includes(t))).map((e=>Array.isArray(e)?e:[e]))}),[n]),R=p((()=>O(w)),[w,O]),S=d((e=>{A.includes(e)?k(A.filter((t=>t!==e))):k([...A,e])}),[A])
|
|
2532
|
+
`;const Hx=({values:e,options:n,selectedIndex:a,selectOptions:l,onChange:s,onSelectChange:c,size:u="medium",variant:m="dark",tagVariant:g,searchPlaceholder:h="検索",noResultsMessage:f="見つかりませんでした",disabled:b=!1,applyButtonText:v="適用",cancelButtonText:x="キャンセル",error:y=!1})=>{const[w,C]=r(""),[E,I]=r(!1),[A,k]=r(e),[M,H]=r(!1),N=p((()=>g||("light"===m?"dark":"light")),[m,g]),[V,Z]=r(!1),D=i(null),L=d((()=>{D.current&&Z(D.current.clientWidth<D.current.scrollWidth)}),[]),O=d((e=>{const t=e.trim();if(!t)return n.map((e=>Array.isArray(e)?e:[e]));return n.filter((e=>Array.isArray(e)?e.some((e=>e.includes(t))):e.includes(t))).map((e=>Array.isArray(e)?e:[e]))}),[n]),R=p((()=>O(w)),[w,O]),S=d((e=>{A.includes(e)?k(A.filter((t=>t!==e))):k([...A,e])}),[A]),$=d((()=>{if(E)return;if(!w.trim())return;const e=O(w);1===e.length&&(S(e[0][0]),C(""))}),[E,w,O,S]),T=d((e=>{C(e.target.value)}),[C]),z=d((e=>{e.key}),[]),B=d((t=>{const n=e.filter((e=>e!==t));s(n),k(n)}),[e,s]),G=d((t=>{H(t),t&&k(e),C("")}),[e]),W=d((()=>{s(A),H(!1)}),[s,A]),P=d((()=>{k(e),H(!1)}),[e]),j=p((()=>t.createElement(Mx,{autoFocus:!0,value:w,placeholder:h,onChange:T,onKeyDown:z,onCompositionStart:()=>I(!0),onCompositionEnd:()=>I(!1),onEnter:$})),[w,h,T,z,$]),F=p((()=>t.createElement(vd,null,t.createElement(Nt,{size:"small",color:"clear",onClick:P},x),t.createElement(Nt,{size:"small",onClick:W},v))),[P,W,v,x]);return o((()=>{if(!window.ResizeObserver)return;if(!D.current)return;const e=new window.ResizeObserver((()=>{D.current&&L()}));return e.observe(D.current),L(),()=>{e.disconnect()}}),[L]),t.createElement(Cx,{size:u,selectedIndex:a,selectOptions:l,disabled:b,error:y,isOpen:M,onSelectChange:c},t.createElement(Ex,{$variant:m,"data-overflowing":V},t.createElement(pd,null,t.createElement(ud,{open:M&&!b,trigger:t.createElement(Ax,{type:"button",$variant:m,disabled:b,"aria-label":"タグを追加",onClick:()=>{b||H(!M)}},t.createElement(kx,null,t.createElement(X,{name:"arrow_down",color:"currentColor"}))),stickyHeader:j,stickyFooter:F,noResultsMessage:f,onOpenChange:e=>!b&&G(e)},R.length>0?R.map((e=>t.createElement(rl,{key:e[0],checked:A.includes(e[0]),closeOnChange:!1,onChange:()=>S(e[0])},e[0]))):t.createElement(id,{message:f}))),t.createElement(Ix,{ref:D},e.map((e=>t.createElement(wx,{key:e,label:e,size:u,variant:N,onRemove:()=>B(e)}))))))},Nx=v.div`
|
|
2533
2533
|
min-width: 0;
|
|
2534
2534
|
width: calc(100% + 46px);
|
|
2535
2535
|
height: 100%;
|
|
@@ -2589,7 +2589,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2589
2589
|
display: flex;
|
|
2590
2590
|
gap: 5px;
|
|
2591
2591
|
white-space: nowrap;
|
|
2592
|
-
|
|
2592
|
+
`,$x=v.button`
|
|
2593
2593
|
position: absolute;
|
|
2594
2594
|
inset: 0 0 0 auto;
|
|
2595
2595
|
display: none;
|
|
@@ -2644,7 +2644,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2644
2644
|
width: 20px;
|
|
2645
2645
|
background-color: transparent;
|
|
2646
2646
|
}
|
|
2647
|
-
|
|
2647
|
+
`,Tx=v.div`
|
|
2648
2648
|
position: relative;
|
|
2649
2649
|
flex-grow: 1;
|
|
2650
2650
|
min-width: 100px;
|
|
@@ -2689,7 +2689,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2689
2689
|
box-shadow: 0px 0px 16px rgba(4, 28, 51, 0.08);
|
|
2690
2690
|
pointer-events: auto;
|
|
2691
2691
|
|
|
2692
|
-
@media (max-width: ${
|
|
2692
|
+
@media (max-width: ${$.MEDIUM}px) {
|
|
2693
2693
|
grid-template:
|
|
2694
2694
|
"title"
|
|
2695
2695
|
"left"
|
|
@@ -2749,7 +2749,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2749
2749
|
color: ${N.basic[900]};
|
|
2750
2750
|
background: ${N.basic[100]};
|
|
2751
2751
|
|
|
2752
|
-
@media (max-width: ${
|
|
2752
|
+
@media (max-width: ${$.MEDIUM}px) {
|
|
2753
2753
|
width: fit-content;
|
|
2754
2754
|
}
|
|
2755
2755
|
`,Yx=v.span`
|
|
@@ -2841,7 +2841,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2841
2841
|
color: ${N.basic[900]};
|
|
2842
2842
|
background: transparent;
|
|
2843
2843
|
cursor: pointer;
|
|
2844
|
-
`,ny=({isOpen:e,title:n,values:a,selectedIndex:l,selectOptions:s,onApply:c,onClose:u,menuIconSize:m})=>{const[g,h]=r(""),[f,b]=r(!1),[v,x]=r([]),[y,w]=r(0),[C,E]=r(!1),I=p((()=>s.map((e=>Object.assign(Object.assign({},e),{icon:t.cloneElement(e.icon,{size:m})})))),[s,m]),A=p((()=>I.reduce(((e,t)=>t.label.length>e.label.length?t:e),I[0])),[I]),k=i(null),M=d((e=>{w(e),E(!1)}),[]),H=d((()=>{var e;null===(e=k.current)||void 0===e||e.focus()}),[]),N=d((e=>{const t=[...v];t.splice(e,1),x(t)}),[v]),V=d((e=>{if(f)return;if(!(e.target instanceof HTMLInputElement))return;if("Backspace"===e.key&&0===e.target.selectionStart)return void x(v.slice(0,-1));const t=e.target.value.trim();""===t||v.includes(t)||"Enter"===e.key&&(x([...v,t]),h(""))}),[v,x,f]),Z=d((()=>{x([]),h("")}),[]),D=d((()=>{u()}),[u]),L=d((()=>{c(v,y),u()}),[v,y,c,u]),O=d((e=>{h(e.target.value)}),[]),R=d((()=>{b(!0)}),[]),S=d((()=>{b(!1)}),[])
|
|
2844
|
+
`,ny=({isOpen:e,title:n,values:a,selectedIndex:l,selectOptions:s,onApply:c,onClose:u,menuIconSize:m})=>{const[g,h]=r(""),[f,b]=r(!1),[v,x]=r([]),[y,w]=r(0),[C,E]=r(!1),I=p((()=>s.map((e=>Object.assign(Object.assign({},e),{icon:t.cloneElement(e.icon,{size:m})})))),[s,m]),A=p((()=>I.reduce(((e,t)=>t.label.length>e.label.length?t:e),I[0])),[I]),k=i(null),M=d((e=>{w(e),E(!1)}),[]),H=d((()=>{var e;null===(e=k.current)||void 0===e||e.focus()}),[]),N=d((e=>{const t=[...v];t.splice(e,1),x(t)}),[v]),V=d((e=>{if(f)return;if(!(e.target instanceof HTMLInputElement))return;if("Backspace"===e.key&&0===e.target.selectionStart)return void x(v.slice(0,-1));const t=e.target.value.trim();""===t||v.includes(t)||"Enter"===e.key&&(x([...v,t]),h(""))}),[v,x,f]),Z=d((()=>{x([]),h("")}),[]),D=d((()=>{u()}),[u]),L=d((()=>{c(v,y),u()}),[v,y,c,u]),O=d((e=>{h(e.target.value)}),[]),R=d((()=>{b(!0)}),[]),S=d((()=>{b(!1)}),[]),$=d((()=>{h("")}),[]),T=p((()=>v.map(((e,n)=>t.createElement(wx,{key:e,size:"medium",variant:"light",label:e,onRemove:()=>N(n)})))),[v,N]),z=p((()=>I.map((({label:e,icon:n},r)=>t.createElement(rl,{key:e,prepend:n,checked:y===r,onChange:()=>M(r)},e)))),[I,y,M]),B=p((()=>t.createElement(t.Fragment,null,t.cloneElement(I[y].icon,{size:m}),I[y].label)),[I,y,m]);return o((()=>{e&&(x(a),w(l))}),[e,l,a]),t.createElement(sr,{isOpen:e,onClose:u},t.createElement(bt,{in:e},t.createElement(Gx,null,t.createElement(Wx,null,n),t.createElement(Px,null,t.createElement(Fx,null,"条件"),t.createElement(pd,null,t.createElement(ud,{open:C,trigger:t.createElement(Xx,null,t.createElement(Yx,{role:"presentation"},A.icon,A.label),t.createElement(Jx,null,B),t.createElement(Ux,null,t.createElement(X,{name:"arrow_down",color:"currentColor"}))),onOpenChange:E},z))),t.createElement(jx,null,t.createElement(Fx,null,"値"),t.createElement(_x,null,t.createElement(Kx,{type:"button",onClick:H}),T,t.createElement(qx,null,t.createElement("input",{ref:k,type:"text","aria-label":"フィルターする値",value:g,onChange:O,onCompositionStart:R,onCompositionEnd:S,onKeyDown:V,onBlur:$}),t.createElement(ey,null,g)),t.createElement(ty,{type:"button",onClick:Z},t.createElement(X,{name:"close_circle",type:"fill",color:"currentColor"})))),t.createElement(Qx,null,t.createElement("li",null,t.createElement(Nt,{size:"small",color:"clear",onClick:D},"キャンセル")),t.createElement("li",null,t.createElement(Nt,{size:"small",onClick:L},"適用"))))))},ry=({title:e,values:n,selectedIndex:a,selectOptions:l,onChange:s,onSelectChange:c,size:u="medium",variant:m="dark",tagVariant:h,menuIconSize:f=22,disabled:b=!1,error:v=!1})=>{const{isSmall:x}=g(yx),[y,w]=r(""),[C,E]=r(!1),[I,A]=r(!1),[k,M]=r(!1),[H,N]=r(!1),V=i(null),Z=p((()=>h||("light"===m?"dark":"light")),[m,h]),D=i(null),L=i(null),O=d((()=>{D.current&&E(D.current.clientWidth<D.current.scrollWidth)}),[E]),R=d((()=>{if(!D.current||!V.current)return;const e=V.current.getBoundingClientRect(),t=D.current.getBoundingClientRect(),n=Number(window.getComputedStyle(D.current).paddingRight.replace("px",""));return t.right-n-e.left}),[]),S=d((e=>{if(I)return;if(!(e.target instanceof HTMLInputElement))return;if("Backspace"===e.key&&0===e.target.selectionStart)return s(n.slice(0,-1),a),void requestAnimationFrame((()=>{O(),R()}));const t=e.target.value.trim();""===t||n.includes(t)||"Enter"===e.key&&(s([...n,t],a),w(""),requestAnimationFrame((()=>{O(),R()})))}),[n,s,w,I,a]),$=d((e=>{const t=[...n];t.splice(e,1),s(t,a),requestAnimationFrame((()=>{O(),R()}))}),[n,s,a]),T=d(((e,t)=>{s(e,t),c(t),requestAnimationFrame((()=>{O(),R()}))}),[s,c]),z=d((e=>{w(e.target.value)}),[]),B=d((()=>{A(!0)}),[]),G=d((()=>{A(!1)}),[]),W=d((()=>{M(!0)}),[]),P=d((()=>{M(!1)}),[]),j=d((()=>{b||N(!0)}),[b]),F=d((()=>{N(!1)}),[]),Y=d((()=>{F(),w("")}),[F]);o((()=>{if(!window.ResizeObserver)return;if(!D.current)return;const e=new window.ResizeObserver((()=>{D.current&&(O(),R())}));return e.observe(D.current),()=>{e.disconnect()}}),[O,R]);const J=p((()=>n.map(((e,n)=>t.createElement(wx,{key:e,size:u,variant:Z,label:e,onRemove:()=>$(n)})))),[n,u,Z,$]);return t.createElement(t.Fragment,null,t.createElement(Cx,{size:u,selectedIndex:a,selectOptions:l,disabled:b,error:v,isOpen:H,onSelectChange:c},t.createElement(Rx,{ref:D,$size:u,$variant:m},t.createElement(Sx,{ref:L},J,t.createElement(Tx,null,!y&&t.createElement(zx,null,t.createElement(X,{name:"filter",color:"currentColor"})),t.createElement("input",{ref:V,type:"text","aria-label":"フィルターする値",value:y,disabled:b,onChange:z,onKeyDown:S,onCompositionStart:B,onCompositionEnd:G,onFocus:j,onBlur:Y})))),t.createElement($x,{$size:u,"aria-label":"フィルター入力パネルを開く","data-overflowing":C,type:"button",disabled:b,onClick:W},t.createElement(X,{name:x?"filter":"expand_diagonal_s_fill",color:"currentColor"}))),t.createElement(ny,{isOpen:k,menuIconSize:f,selectOptions:l,selectedIndex:a,title:e,values:n,onApply:T,onClose:P}))},iy=v.div`
|
|
2845
2845
|
position: fixed;
|
|
2846
2846
|
${({isOpen:e,height:t,offset:n,placement:r})=>`${r}: ${e?`${n}px`:""+(0!==t?`calc(${-t}px - 10px)`:"-100vh")}`};
|
|
2847
2847
|
width: 100%;
|
|
@@ -3088,10 +3088,10 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3088
3088
|
border-bottom: 1px solid ${({theme:e})=>e.palette.gray.main};
|
|
3089
3089
|
`,Sy=v.div`
|
|
3090
3090
|
cursor: pointer;
|
|
3091
|
-
|
|
3091
|
+
`,$y=v.div`
|
|
3092
3092
|
padding: ${({theme:e})=>2*e.spacing}px
|
|
3093
3093
|
${({theme:e})=>3*e.spacing}px;
|
|
3094
|
-
|
|
3094
|
+
`,Ty=v.div`
|
|
3095
3095
|
text-align: right;
|
|
3096
3096
|
`,zy=v.div``,By=v.div`
|
|
3097
3097
|
position: relative;
|
|
@@ -3113,7 +3113,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3113
3113
|
left: 10px;
|
|
3114
3114
|
`,Py=v(Gy)`
|
|
3115
3115
|
right: 10px;
|
|
3116
|
-
`,jy=e.forwardRef((function(t,n){var{errorText:r,icon:i,type:o,inputRef:a}=t,l=M(t,["errorText","icon","type","inputRef"]);const[s,c]=e.useState(!1),d=G(),u=()=>{c(!s)};return e.createElement(zy,{ref:n},e.createElement(By,{hasLeftIcon:null!=i,hasRightIcon:"password"===o},null!=i&&e.createElement(Wy,{onClick:u},e.createElement(X,{name:i,size:"md",color:d.palette.gray.dark})),e.createElement(Ey,Object.assign({ref:a},l,{error:!!r,type:s?"text":o})),"password"===o&&e.createElement(Py,{onClick:u},e.createElement(X,{name:s?"eye":"eye_off",size:"md",color:d.palette.black}))),r&&e.createElement(It,{pt:1},e.createElement(rx,null,r)))})),Fy=t=>{var n,r;const i=gr({props:t,name:"FilterCard"}),{onClose:o,onApply:a,selectedFilterPack:l,applyButtonTitle:s="Apply",inputErrorText:c="Please input",formPlaceholder:d="search",width:u,currentReferredFilters:p,sectionTitle:m="Section",conditionTitle:g=""}=i,h=C(),f=(null!==(r=null===(n=null==l?void 0:l.filters)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>1,[b,v]=e.useState(),[x,y]=e.useState(),[w,E]=e.useState(f||null==l?void 0:l.filters[0]),[I,A]=e.useState(""),k=null==l?void 0:l.filters.find((e=>e.filterName===(null==w?void 0:w.filterName))),M=null==l?void 0:l.filters.map((e=>({label:e.filterName,value:e.filterName}))),H=e=>{A(""),y(e.target.value)},N=e=>{e.target.value||A(c)},V=e=>{y(null==e?void 0:e.value)};return e.createElement(Oy,{width:u},e.createElement(Ry,null,e.createElement(oe,{weight:"bold",size:"xxl"},null==l?void 0:l.categoryName),e.createElement(It,{pr:2}),e.createElement(Sy,{key:"close",onClick:o},e.createElement(X,{name:"close",size:"md",color:h.palette.black}))),e.createElement(
|
|
3116
|
+
`,jy=e.forwardRef((function(t,n){var{errorText:r,icon:i,type:o,inputRef:a}=t,l=M(t,["errorText","icon","type","inputRef"]);const[s,c]=e.useState(!1),d=G(),u=()=>{c(!s)};return e.createElement(zy,{ref:n},e.createElement(By,{hasLeftIcon:null!=i,hasRightIcon:"password"===o},null!=i&&e.createElement(Wy,{onClick:u},e.createElement(X,{name:i,size:"md",color:d.palette.gray.dark})),e.createElement(Ey,Object.assign({ref:a},l,{error:!!r,type:s?"text":o})),"password"===o&&e.createElement(Py,{onClick:u},e.createElement(X,{name:s?"eye":"eye_off",size:"md",color:d.palette.black}))),r&&e.createElement(It,{pt:1},e.createElement(rx,null,r)))})),Fy=t=>{var n,r;const i=gr({props:t,name:"FilterCard"}),{onClose:o,onApply:a,selectedFilterPack:l,applyButtonTitle:s="Apply",inputErrorText:c="Please input",formPlaceholder:d="search",width:u,currentReferredFilters:p,sectionTitle:m="Section",conditionTitle:g=""}=i,h=C(),f=(null!==(r=null===(n=null==l?void 0:l.filters)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>1,[b,v]=e.useState(),[x,y]=e.useState(),[w,E]=e.useState(f||null==l?void 0:l.filters[0]),[I,A]=e.useState(""),k=null==l?void 0:l.filters.find((e=>e.filterName===(null==w?void 0:w.filterName))),M=null==l?void 0:l.filters.map((e=>({label:e.filterName,value:e.filterName}))),H=e=>{A(""),y(e.target.value)},N=e=>{e.target.value||A(c)},V=e=>{y(null==e?void 0:e.value)};return e.createElement(Oy,{width:u},e.createElement(Ry,null,e.createElement(oe,{weight:"bold",size:"xxl"},null==l?void 0:l.categoryName),e.createElement(It,{pr:2}),e.createElement(Sy,{key:"close",onClick:o},e.createElement(X,{name:"close",size:"md",color:h.palette.black}))),e.createElement($y,null,f&&e.createElement(e.Fragment,null,e.createElement(oe,{weight:"bold",size:"lg"},(null==l?void 0:l.sectionTitle)||m),e.createElement(It,{py:.5}),e.createElement(hh,{maxMenuHeight:250,options:(e=>{const t=p.map((e=>e.filterName));return null==e?void 0:e.filter((e=>!t.includes(e.label)))})(M),autoFocus:!0,onChange:e=>{if(A(""),null===e)return v(void 0),y(void 0),void E(void 0);const t=null==l?void 0:l.filters.find((t=>t.filterName===e.value));v(null==t?void 0:t.filterName),E(t)}}),e.createElement(It,{py:1})),w&&e.createElement("div",null,e.createElement(oe,{weight:"bold",size:"lg"},(null==k?void 0:k.conditionTitle)||g),e.createElement(It,{py:.5}),k&&(t=>{switch(null==t?void 0:t.control.type){case"text":return e.createElement(jy,{placeholder:d,icon:"search",name:"condition",errorText:I,autoFocus:!0,onChange:H,onBlur:N});case"select":const n=null==t?void 0:t.control.options;return e.createElement(hh,{options:n.map((e=>({label:e,value:e}))),autoFocus:!0,onChange:V});case"boolean":return e.createElement("div",null,e.createElement(Oh,{name:"condition",value:"true",autoFocus:!0,onChange:H,onBlur:N},"true"),e.createElement("br",null),e.createElement(Oh,{name:"condition",value:"false",autoFocus:!0,onChange:H,onBlur:N},"false"))}})(k),e.createElement(It,{py:1})),e.createElement(wr,{orientation:"horizontal",color:h.palette.gray.light,my:2}),e.createElement(Ty,null,e.createElement(Nt,{size:"small",inline:!0,disabled:f&&!b||!x,onClick:()=>{const e={categoryName:null==l?void 0:l.categoryName,filterName:f?null==w?void 0:w.filterName:null==l?void 0:l.categoryName,filterType:null==w?void 0:w.control.type,filterCondition:x};a(e)}},s))))},Xy=v(Sn)`
|
|
3117
3117
|
box-shadow: 0px 0px 16px
|
|
3118
3118
|
${({theme:e})=>Ot(e.palette.gray.main,.4)};
|
|
3119
3119
|
min-width: 300px;
|
|
@@ -3323,7 +3323,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3323
3323
|
& > * {
|
|
3324
3324
|
flex-shrink: 0;
|
|
3325
3325
|
}
|
|
3326
|
-
|
|
3326
|
+
`,$w=v.div`
|
|
3327
3327
|
flex-shrink: 1;
|
|
3328
3328
|
flex-grow: 1;
|
|
3329
3329
|
display: flex;
|
|
@@ -3332,7 +3332,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3332
3332
|
opacity: ${({isOpen:e})=>e?1:0};
|
|
3333
3333
|
transition: opacity ${pw}s;
|
|
3334
3334
|
min-width: 0;
|
|
3335
|
-
|
|
3335
|
+
`,Tw=v(oe)`
|
|
3336
3336
|
white-space: nowrap;
|
|
3337
3337
|
overflow: hidden;
|
|
3338
3338
|
text-overflow: ellipsis;
|
|
@@ -3348,7 +3348,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3348
3348
|
max-height: ${({isExpand:e,height:t})=>e?t:"0px"};
|
|
3349
3349
|
transition: max-height 0.3s
|
|
3350
3350
|
${({delay:e})=>e?pw:0}s;
|
|
3351
|
-
`,Gw=e.forwardRef((function(t,n){var{title:r,isActive:i=!1,iconName:o,expansionList:a=[],defaultExpand:l=!1,notificationCount:s=0,onChangeExpand:c,onClick:d}=t,u=M(t,["title","isActive","iconName","expansionList","defaultExpand","notificationCount","onChangeExpand","onClick"]);const p=G(),{isOpen:m}=e.useContext(gw),[g,h]=e.useState(l),[f,b]=e.useState(!1),[v,x]=e.useState("auto"),y=e.useRef(null);return e.useEffect((()=>{b(m)}),[m]),e.useEffect((()=>{b(!1),c&&c(g)}),[g,c]),e.useEffect((()=>{if(!y.current)return;const{height:e}=y.current.getBoundingClientRect();0!==e&&x(`${e}px`)}),[]),e.createElement("div",{ref:n},e.createElement(Sw,Object.assign({isActive:i,onClick:e=>{0!==a.length&&h(!g),d&&d(e)}},u),e.createElement(Dw,{badgeContent:s,position:"top-left"},e.createElement(X,{name:o,size:"lg",type:i?"fill":"line",color:i?"active":p.palette.black})),e.createElement(
|
|
3351
|
+
`,Gw=e.forwardRef((function(t,n){var{title:r,isActive:i=!1,iconName:o,expansionList:a=[],defaultExpand:l=!1,notificationCount:s=0,onChangeExpand:c,onClick:d}=t,u=M(t,["title","isActive","iconName","expansionList","defaultExpand","notificationCount","onChangeExpand","onClick"]);const p=G(),{isOpen:m}=e.useContext(gw),[g,h]=e.useState(l),[f,b]=e.useState(!1),[v,x]=e.useState("auto"),y=e.useRef(null);return e.useEffect((()=>{b(m)}),[m]),e.useEffect((()=>{b(!1),c&&c(g)}),[g,c]),e.useEffect((()=>{if(!y.current)return;const{height:e}=y.current.getBoundingClientRect();0!==e&&x(`${e}px`)}),[]),e.createElement("div",{ref:n},e.createElement(Sw,Object.assign({isActive:i,onClick:e=>{0!==a.length&&h(!g),d&&d(e)}},u),e.createElement(Dw,{badgeContent:s,position:"top-left"},e.createElement(X,{name:o,size:"lg",type:i?"fill":"line",color:i?"active":p.palette.black})),e.createElement($w,{isOpen:m},e.createElement(Tw,{component:"span",color:i?"primary":"initial",weight:"bold",size:"sm"},r)),e.createElement(zw,{isExpand:g,isOpen:m},e.createElement(X,{name:"arrow_bottom",color:i?"active":p.palette.black,size:"md"}))),e.createElement(Bw,{ref:y,isExpand:g&&m||"auto"===v,height:v,delay:f},a.map(((t,n)=>e.createElement(e.Fragment,{key:n},t)))))})),Ww=v.div`
|
|
3352
3352
|
cursor: pointer;
|
|
3353
3353
|
display: flex;
|
|
3354
3354
|
align-items: center;
|
|
@@ -3370,32 +3370,168 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3370
3370
|
white-space: nowrap;
|
|
3371
3371
|
overflow: hidden;
|
|
3372
3372
|
text-overflow: ellipsis;
|
|
3373
|
-
`,jw=e.forwardRef((function(t,n){var{title:r,isActive:i=!1,notificationCount:o=0}=t,a=M(t,["title","isActive","notificationCount"]);const l=G();return e.createElement(Ww,Object.assign({ref:n},a),e.createElement(Pw,{component:"div",weight:i?"bold":"normal",color:i?"primary":l.palette.black,size:"sm"},r),e.createElement(Ow,{notificationCount:o,invisible:0===o}))})),Fw=t.forwardRef((function({children:e},n){const{isOpen:r,isFixed:i,handleOpen:o,handleClose:a}=t.useContext(gw);return t.createElement(mw,{ref:n,isOpen:r,isFixed:i,onMouseEnter:o,onMouseLeave:a},e)})),Xw=Fw;Xw.Container=fw,Xw.Container=fw,Xw.Header=bw,Xw.Content=vw,Xw.Footer=xw,Xw.Menu=Rw,Xw.ExpansionMenu=Gw,Xw.ExpansionMenuItem=jw,Xw.Fixture=Aw,Xw.MainContent=ww;const Yw=
|
|
3374
|
-
|
|
3375
|
-
|
|
3373
|
+
`,jw=e.forwardRef((function(t,n){var{title:r,isActive:i=!1,notificationCount:o=0}=t,a=M(t,["title","isActive","notificationCount"]);const l=G();return e.createElement(Ww,Object.assign({ref:n},a),e.createElement(Pw,{component:"div",weight:i?"bold":"normal",color:i?"primary":l.palette.black,size:"sm"},r),e.createElement(Ow,{notificationCount:o,invisible:0===o}))})),Fw=t.forwardRef((function({children:e},n){const{isOpen:r,isFixed:i,handleOpen:o,handleClose:a}=t.useContext(gw);return t.createElement(mw,{ref:n,isOpen:r,isFixed:i,onMouseEnter:o,onMouseLeave:a},e)})),Xw=Fw;Xw.Container=fw,Xw.Container=fw,Xw.Header=bw,Xw.Content=vw,Xw.Footer=xw,Xw.Menu=Rw,Xw.ExpansionMenu=Gw,Xw.ExpansionMenuItem=jw,Xw.Fixture=Aw,Xw.MainContent=ww;const Yw={small:{fontSize:"12px",padding:"0 6px 0 6px",iconSize:"16px",borderRadius:"4px",height:"28px"},medium:{fontSize:"13px",padding:"0 8px 0 8px",iconSize:"18px",borderRadius:"6px",height:"32px"},large:{fontSize:"14px",padding:"0 10px 0 10px",iconSize:"20px",borderRadius:"6px",height:"40px"}},Jw=v.div`
|
|
3374
|
+
display: flex;
|
|
3375
|
+
flex-direction: column;
|
|
3376
|
+
width: 100%;
|
|
3377
|
+
`,Uw=v.div`
|
|
3378
|
+
position: relative;
|
|
3379
|
+
display: flex;
|
|
3380
|
+
align-items: center;
|
|
3381
|
+
width: 100%;
|
|
3382
|
+
height: ${({$size:e="medium"})=>Yw[e].height};
|
|
3383
|
+
background-color: ${({$variant:e,$disabled:t})=>t?N.basic[200]:"light"===e?N.basic[0]:N.basic[100]};
|
|
3384
|
+
border: 1px solid
|
|
3385
|
+
${({$error:e,$disabled:t,$isOpen:n})=>e?N.red[500]:t?N.basic[400]:n?N.blue[500]:N.basic[400]};
|
|
3386
|
+
border-radius: 6px;
|
|
3387
|
+
transition:
|
|
3388
|
+
border-color 0.2s ease,
|
|
3389
|
+
box-shadow 0.2s ease;
|
|
3390
|
+
|
|
3391
|
+
/* disabled状態ではない場合のみhoverスタイルを適用 */
|
|
3392
|
+
&:hover:not([disabled]):not([data-disabled="true"]) {
|
|
3393
|
+
border-color: ${({$error:e,$disabled:t})=>t?N.basic[400]:e?N.red[500]:N.blue[500]};
|
|
3394
|
+
}
|
|
3395
|
+
|
|
3396
|
+
${({$isOpen:e,$error:t})=>e&&`\n box-shadow: 0 0 0 3px ${t?`${N.red[200]}66`:`${N.blue[200]}66`};\n `}
|
|
3397
|
+
|
|
3398
|
+
&::before {
|
|
3399
|
+
content: "";
|
|
3400
|
+
position: absolute;
|
|
3401
|
+
z-index: 1;
|
|
3402
|
+
inset: 0 32px 0 auto;
|
|
3403
|
+
display: block;
|
|
3404
|
+
width: 4px;
|
|
3405
|
+
opacity: 0;
|
|
3406
|
+
background: linear-gradient(
|
|
3407
|
+
90deg,
|
|
3408
|
+
rgba(4, 28, 51, 0),
|
|
3409
|
+
rgba(4, 28, 51, 0.16)
|
|
3410
|
+
);
|
|
3411
|
+
transition: opacity 0.2s;
|
|
3412
|
+
pointer-events: none;
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
&:where([data-overflowing="true"])::before {
|
|
3416
|
+
opacity: 1;
|
|
3417
|
+
}
|
|
3418
|
+
`,Qw=v.button`
|
|
3419
|
+
position: absolute;
|
|
3420
|
+
inset: 0;
|
|
3421
|
+
display: flex;
|
|
3422
|
+
justify-content: ${({$multiple:e})=>e?"flex-end":"space-between"};
|
|
3423
|
+
align-items: center;
|
|
3424
|
+
width: 100%;
|
|
3425
|
+
height: 100%;
|
|
3426
|
+
padding: 0;
|
|
3427
|
+
font-size: ${({$size:e})=>Yw[e].fontSize};
|
|
3428
|
+
outline: none;
|
|
3429
|
+
border: none;
|
|
3430
|
+
background: none;
|
|
3431
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
3432
|
+
z-index: ${({$multiple:e})=>e?0:3};
|
|
3433
|
+
transition: all 0.2s ease;
|
|
3434
|
+
`,_w=v.div`
|
|
3435
|
+
display: flex;
|
|
3436
|
+
flex-direction: column;
|
|
3437
|
+
flex: 1;
|
|
3438
|
+
overflow: hidden;
|
|
3439
|
+
position: relative;
|
|
3440
|
+
height: 100%;
|
|
3441
|
+
justify-content: center;
|
|
3442
|
+
align-items: flex-start;
|
|
3443
|
+
z-index: ${({$multiple:e})=>e?"auto":0};
|
|
3444
|
+
pointer-events: ${({$multiple:e})=>e?"auto":"none"};
|
|
3445
|
+
`,Kw=v.span`
|
|
3446
|
+
display: block;
|
|
3447
|
+
overflow: hidden;
|
|
3448
|
+
text-overflow: ellipsis;
|
|
3449
|
+
white-space: nowrap;
|
|
3450
|
+
padding: 0 6px;
|
|
3451
|
+
width: 100%;
|
|
3452
|
+
text-align: left;
|
|
3453
|
+
`,qw=v.div`
|
|
3454
|
+
position: relative;
|
|
3455
|
+
display: flex;
|
|
3456
|
+
align-items: center;
|
|
3457
|
+
width: fit-content;
|
|
3458
|
+
gap: 4px;
|
|
3459
|
+
max-width: calc(100% - 32px);
|
|
3460
|
+
padding: 4px 6px;
|
|
3461
|
+
white-space: nowrap;
|
|
3462
|
+
overflow-x: auto;
|
|
3463
|
+
overflow-y: hidden;
|
|
3464
|
+
scrollbar-width: none;
|
|
3465
|
+
z-index: 2;
|
|
3466
|
+
pointer-events: all;
|
|
3467
|
+
|
|
3468
|
+
&::-webkit-scrollbar {
|
|
3469
|
+
display: none;
|
|
3470
|
+
}
|
|
3471
|
+
`,eC=v(xx)`
|
|
3472
|
+
// flex-shrink: 0;
|
|
3473
|
+
// margin: 0;
|
|
3474
|
+
// display: inline-flex;
|
|
3475
|
+
// align-self: center;
|
|
3476
|
+
// pointer-events: all;
|
|
3477
|
+
`,tC=v.span`
|
|
3478
|
+
color: ${({$disabled:e})=>e?N.basic[400]:N.basic[900]};
|
|
3479
|
+
padding: 0 6px;
|
|
3480
|
+
`,nC=v.div`
|
|
3481
|
+
display: flex;
|
|
3482
|
+
align-items: center;
|
|
3483
|
+
color: ${({$disabled:e})=>e?N.basic[400]:N.basic[900]};
|
|
3484
|
+
width: ${({$size:e})=>e?Yw[e].iconSize:"18px"};
|
|
3485
|
+
aspect-ratio: 1;
|
|
3486
|
+
margin-right: 8px;
|
|
3487
|
+
position: relative;
|
|
3488
|
+
z-index: 4;
|
|
3489
|
+
svg {
|
|
3490
|
+
width: 100%;
|
|
3491
|
+
height: 100%;
|
|
3492
|
+
}
|
|
3493
|
+
span {
|
|
3494
|
+
display: flex;
|
|
3495
|
+
align-items: center;
|
|
3496
|
+
justify-content: center;
|
|
3497
|
+
width: 100%;
|
|
3498
|
+
height: 100%;
|
|
3499
|
+
}
|
|
3500
|
+
`,rC=v(nd)`
|
|
3501
|
+
input {
|
|
3502
|
+
&::placeholder {
|
|
3503
|
+
color: ${N.basic[600]};
|
|
3504
|
+
}
|
|
3505
|
+
}
|
|
3506
|
+
`;v.div`
|
|
3507
|
+
max-height: 180px;
|
|
3508
|
+
overflow-y: auto;
|
|
3509
|
+
`;const iC=e=>{var{options:n=[],value:a,multiple:l=!1,disabled:s=!1,placeholder:c="選択してください",size:u="medium",variant:m="light",tagVariant:g,searchable:h=!1,searchPlaceholder:f="検索",noResultsMessage:b="見つかりませんでした",error:v=!1,applyButtonText:x="適用",cancelButtonText:y="キャンセル",onChange:w}=e,C=M(e,["options","value","multiple","disabled","placeholder","size","variant","tagVariant","searchable","searchPlaceholder","noResultsMessage","error","applyButtonText","cancelButtonText","onChange"]);const[E,I]=r(!1),[A,k]=r(""),[H,N]=r([]),[V,Z]=r(!1),D=i(null),L=p((()=>g||("light"===m?"dark":"light")),[m,g]),O=p((()=>l?Array.isArray(a)?a:[]:void 0!==a?[a]:[]),[a,l]),R=d((e=>{null==w||w(e)}),[w]),S=d((e=>{s||(I(e),e&&l&&N([...O]),e||k(""))}),[s,l,O]),$=d((e=>{e.disabled||(R(e.value),I(!1),k(""))}),[R]),T=d(((e,t)=>{t.disabled||N((n=>e?[...n,t.value]:n.filter((e=>e!==t.value))))}),[]),z=d((()=>{l&&R(H),I(!1),k("")}),[R,l,H]),B=d((()=>{I(!1),k("")}),[]),G=d((e=>{if(l&&Array.isArray(a)){const t=a.filter((t=>t!==e));R(t)}}),[l,a,R]),W=d((e=>{k(e.target.value)}),[]),P=d((e=>{e.stopPropagation()}),[]),j=p((()=>n.find((e=>e.value===a))),[n,a]),F=p((()=>l&&Array.isArray(a)?n.filter((e=>a.includes(e.value))):[]),[l,n,a]),Y=p((()=>h&&A?n.filter((e=>e.label.toLowerCase().includes(A.toLowerCase()))):n),[n,A,h]),J=d((()=>{D.current&&Z(D.current.scrollWidth>D.current.clientWidth)}),[]);o((()=>{if(!window.ResizeObserver)return;if(!D.current)return;J();const e=new window.ResizeObserver((()=>{D.current&&J()}));return e.observe(D.current),()=>{e.disconnect()}}),[J,F]),o((()=>{l&&Array.isArray(a)&&N(a)}),[l,a]);const U=p((()=>h?t.createElement(rC,{autoFocus:!0,placeholder:f,value:A,onChange:W}):null),[h,A,f,W]),Q=p((()=>l?t.createElement(vd,null,t.createElement(Nt,{color:"clear",size:"small",onClick:B},y),t.createElement(Nt,{color:"primary",disabled:0===H.length,size:"small",onClick:z},x)):null),[l,H,z,B,x,y]),_=t.createElement(Qw,Object.assign({$disabled:s,$error:v,$hasValue:l?Array.isArray(a)&&a.length>0:!!j,$isOpen:E,$multiple:l,$size:u,$variant:m,"aria-expanded":E,"aria-invalid":v,disabled:s,role:"combobox",type:"button"},C),!l&&t.createElement(Kw,null,j?j.label:t.createElement(tC,{$disabled:s,$variant:m},c)),t.createElement(nC,{$disabled:s,$size:u},t.createElement(X,{name:"arrow_down",color:"currentColor"})));return t.createElement(Jw,null,t.createElement(Uw,{$disabled:s,$error:v,$isOpen:E,$size:u,$variant:m,"data-disabled":s,"data-overflowing":V,style:{cursor:l||s?"default":"pointer"}},t.createElement(pd,null,t.createElement(ud,{noResultsMessage:h?b:void 0,open:E,stickyFooter:Q,stickyHeader:U,trigger:_,onOpenChange:S},Y.length>0?Y.map((e=>{const n=l?H.includes(e.value):e.value===a;return t.createElement(rl,{key:e.value.toString(),checked:n,closeOnChange:!l,disabled:e.disabled,onChange:()=>{l?T(!n,e):$(e)}},e.label)})):t.createElement(id,{message:b}))),l&&t.createElement(_w,null,t.createElement(qw,{ref:D,onClick:P},F.map((e=>{const n=s?void 0:()=>G(e.value);return t.createElement(eC,{key:e.value.toString(),disabled:s,label:e.label,size:u,variant:L,onRemove:n})}))))))},oC=e=>{switch(e){case"down":default:return"translateY(100vh)";case"up":return"translateY(-100vh)";case"right":return"translateX(100vw)";case"left":return"translateX(-100vw)"}},aC="slide-transition",lC=v(qe)`
|
|
3510
|
+
&.${aC}-enter, &.${aC}-appear {
|
|
3511
|
+
transform: ${({direction:e})=>oC(e)};
|
|
3376
3512
|
}
|
|
3377
|
-
&.${
|
|
3513
|
+
&.${aC}-enter-active, &.${aC}-appear-active {
|
|
3378
3514
|
transform: none;
|
|
3379
3515
|
transition: transform ${({timeout:e})=>gt(e,"enter")}ms;
|
|
3380
3516
|
}
|
|
3381
|
-
&.${
|
|
3517
|
+
&.${aC}-exit {
|
|
3382
3518
|
transform: none;
|
|
3383
3519
|
}
|
|
3384
|
-
&.${
|
|
3385
|
-
transform: ${({direction:e})=>
|
|
3520
|
+
&.${aC}-exit-active {
|
|
3521
|
+
transform: ${({direction:e})=>oC(e)};
|
|
3386
3522
|
transition: transform ${({timeout:e})=>gt(e,"exit")}ms;
|
|
3387
3523
|
}
|
|
3388
|
-
&.${
|
|
3389
|
-
transform: ${({direction:e})=>
|
|
3524
|
+
&.${aC}-exit-done {
|
|
3525
|
+
transform: ${({direction:e})=>oC(e)};
|
|
3390
3526
|
}
|
|
3391
|
-
`,
|
|
3527
|
+
`,sC=t=>{var{timeout:n=300,children:r,direction:i="down"}=t,o=M(t,["timeout","children","direction"]);const a=e.useRef(null);return e.createElement(lC,Object.assign({nodeRef:a,appear:!0,timeout:n,direction:i,classNames:aC},o),e.createElement("div",{ref:a},r))},cC=v.div`
|
|
3392
3528
|
position: fixed;
|
|
3393
3529
|
left: ${({horizontal:e,theme:t})=>"left"===e?3*t.spacing+"px":"auto"};
|
|
3394
3530
|
right: ${({horizontal:e,theme:t})=>"right"===e?3*t.spacing+"px":"auto"};
|
|
3395
3531
|
top: ${({vertical:e,theme:t})=>"top"===e?3*t.spacing+"px":"auto"};
|
|
3396
3532
|
bottom: ${({vertical:e,theme:t})=>"bottom"===e?3*t.spacing+"px":"auto"};
|
|
3397
3533
|
z-index: ${({theme:e})=>e.depth.snackbar};
|
|
3398
|
-
`,
|
|
3534
|
+
`,dC=v.div`
|
|
3399
3535
|
position: relative;
|
|
3400
3536
|
min-width: 320px;
|
|
3401
3537
|
max-width: 400px;
|
|
@@ -3407,28 +3543,28 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3407
3543
|
box-shadow: ${({boxShadow:e})=>e};
|
|
3408
3544
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
3409
3545
|
color: ${({textColor:e})=>e||"inherit"};
|
|
3410
|
-
`,
|
|
3546
|
+
`,uC=v.div`
|
|
3411
3547
|
position: absolute;
|
|
3412
3548
|
top: ${({theme:e})=>e.spacing}px;
|
|
3413
3549
|
right: ${({theme:e})=>e.spacing}px;
|
|
3414
3550
|
cursor: pointer;
|
|
3415
|
-
`,
|
|
3551
|
+
`,pC=({color:t,onClose:n,children:r})=>{const i=(e=>({default:{iconColor:e.palette.black,boxShadow:Rt(5,e.palette.action.shadowOpacity,e.palette.action.shadowBase),background:e.palette.background.default},dark:{iconColor:e.palette.white,boxShadow:Rt(5,e.palette.action.shadowOpacity,e.palette.action.shadowBase),background:e.palette.black,textColor:e.palette.text.white},warning:{iconColor:e.palette.warning.deepDark,boxShadow:Rt(5,e.palette.action.shadowOpacity,e.palette.warning.highlight),background:e.palette.warning.highlight}}))(G())[t];return e.createElement(dC,Object.assign({},i),r,e.createElement(uC,{onClick:n},e.createElement(X,{name:"close",color:i.iconColor})))},mC=e.forwardRef((function({color:t="default",anchorOrigin:{vertical:n,horizontal:r}={vertical:"bottom",horizontal:"right"},isOpen:i,onClose:o,children:a},l){return i?e.createElement(cC,{ref:l,vertical:n,horizontal:r},e.createElement(pC,{color:t,onClose:o},a)):null})),gC=v.div`
|
|
3416
3552
|
display: block;
|
|
3417
|
-
`,
|
|
3553
|
+
`,hC=e.forwardRef((function(t,n){var{children:r}=t,i=M(t,["children"]);return e.createElement(J,Object.assign({ref:n,display:"flex"},i),e.createElement(It,{pr:1}),e.createElement(Cr,{orientation:"vertical"}),e.createElement(It,{pr:1}),e.createElement(gC,null,r))})),fC=v.div`
|
|
3418
3554
|
display: inline-flex;
|
|
3419
3555
|
height: 40px;
|
|
3420
3556
|
padding: ${({theme:e})=>e.spacing/2}px;
|
|
3421
3557
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
3422
3558
|
background-color: ${({theme:e})=>e.palette.gray.light};
|
|
3423
|
-
`,
|
|
3559
|
+
`,bC=v.div`
|
|
3424
3560
|
position: relative;
|
|
3425
|
-
`,
|
|
3561
|
+
`,vC=v.div`
|
|
3426
3562
|
position: relative;
|
|
3427
3563
|
width: 100%;
|
|
3428
3564
|
white-space: nowrap;
|
|
3429
3565
|
display: flex;
|
|
3430
3566
|
align-items: center;
|
|
3431
|
-
`,
|
|
3567
|
+
`,xC=v.div`
|
|
3432
3568
|
padding: ${({theme:e})=>e.spacing/2}px;
|
|
3433
3569
|
height: 32px;
|
|
3434
3570
|
cursor: pointer;
|
|
@@ -3436,7 +3572,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3436
3572
|
& + & {
|
|
3437
3573
|
margin-left: ${({theme:e})=>e.spacing/2}px;
|
|
3438
3574
|
}
|
|
3439
|
-
`,
|
|
3575
|
+
`,yC=v.div`
|
|
3440
3576
|
display: inline-flex;
|
|
3441
3577
|
align-items: center;
|
|
3442
3578
|
height: 32px;
|
|
@@ -3447,37 +3583,37 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3447
3583
|
& + & {
|
|
3448
3584
|
margin-left: ${({theme:e})=>e.spacing/2}px;
|
|
3449
3585
|
}
|
|
3450
|
-
`,
|
|
3586
|
+
`,wC=v.div`
|
|
3451
3587
|
position: absolute;
|
|
3452
3588
|
top: 0;
|
|
3453
3589
|
height: 100%;
|
|
3454
3590
|
transition: all 0.3s ease-in-out;
|
|
3455
3591
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
3456
3592
|
border-radius: ${({theme:e})=>.5*e.radius}px;
|
|
3457
|
-
`,
|
|
3593
|
+
`,CC="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function EC(e){const n=t.useRef(e);return CC((()=>{n.current=e})),t.useCallback(((...e)=>n.current(...e)),[])}const IC=e.forwardRef((function({cases:t,value:n,onChange:r},i){const o=t,a=new Map,l=e.useRef(null),s=e.useRef(null),[c,d]=e.useState({}),u=e=>()=>{r&&r(e)},p=EC((()=>{const{tabsMeta:e,tabMeta:t}=(()=>{const e=l.current;let t,r;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==n&&s.current){const e=s.current.children;if(e.length>0){const t=e[a.get(n)];r=(null==t?void 0:t.getBoundingClientRect())||null}}return{tabsMeta:t,tabMeta:r}})();let r=0;if(t&&e){const n=e.scrollLeft;r=t.left-e.left+n}const i={left:r,width:t?t.width:0};if(void 0===c.left||void 0===c.width)d(i);else{const e=Math.abs(c.left-i.left),t=Math.abs((null==c?void 0:c.width)-i.width);(e>=1||t>=1)&&d(i)}}));return e.useEffect((()=>{p()})),e.useEffect((()=>{const e=()=>{p()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[p]),e.createElement(fC,{ref:i},e.createElement(bC,{ref:l},e.createElement(wC,{style:Object.assign({},c)}),e.createElement(vC,{ref:s},o.map(((t,r)=>{const i=void 0===t.value?r:t.value;a.set(i,r);const o=i===n;return e.createElement(Iw,{key:t.name,content:t.name,positionPriority:["top-start","bottom-start","auto"],offset:[0,15]},null!=t.icon?e.createElement(xC,{onClick:u(i)},e.createElement(X,{name:t.icon,size:"lg"})):e.createElement(yC,{key:t.name,onClick:u(i)},e.createElement(oe,{component:"span",size:"sm",weight:o?"bold":"normal",color:"secondary"},t.name)))})))))})),AC=e.forwardRef((function(t,n){var{children:r}=t,i=M(t,["children"]);return e.createElement("tbody",Object.assign({ref:n},i),r)})),kC=v.td`
|
|
3458
3594
|
width: ${({width:e})=>e};
|
|
3459
3595
|
padding: ${({theme:e})=>2*e.spacing}px;
|
|
3460
|
-
`,
|
|
3596
|
+
`,MC=e.forwardRef((function(t,n){var{width:r="auto",children:i}=t,o=M(t,["width","children"]);return e.createElement(kC,Object.assign({ref:n,width:r},o),e.createElement(oe,{component:"div"},i))})),HC=e.forwardRef((function({children:t},n){return e.createElement("thead",{ref:n},t)})),NC={small:"8px",medium:"12px",large:"16px"},VC=v.tr`
|
|
3461
3597
|
border: 1px solid ${({theme:e})=>e.palette.divider};
|
|
3462
3598
|
|
|
3463
3599
|
& > td,
|
|
3464
3600
|
th {
|
|
3465
|
-
padding-top: ${({verticalSpacing:e})=>
|
|
3466
|
-
padding-bottom: ${({verticalSpacing:e})=>
|
|
3601
|
+
padding-top: ${({verticalSpacing:e})=>NC[e]};
|
|
3602
|
+
padding-bottom: ${({verticalSpacing:e})=>NC[e]};
|
|
3467
3603
|
}
|
|
3468
|
-
`,
|
|
3604
|
+
`,ZC=e.forwardRef((function(t,n){var{children:r,verticalSpacing:i="medium"}=t,o=M(t,["children","verticalSpacing"]);return e.createElement(VC,Object.assign({ref:n,verticalSpacing:i},o),r)})),DC=v.th`
|
|
3469
3605
|
width: ${({width:e})=>e};
|
|
3470
3606
|
padding: ${({theme:e})=>2*e.spacing}px;
|
|
3471
3607
|
background-color: ${({theme:e})=>e.palette.gray.highlight};
|
|
3472
3608
|
border: 1px solid ${({theme:e})=>e.palette.divider};
|
|
3473
|
-
`,
|
|
3609
|
+
`,LC=t.forwardRef((function(e,n){var{width:r="auto",children:i}=e,o=M(e,["width","children"]);return t.createElement(DC,Object.assign({ref:n,width:r},o),t.createElement(oe,{component:"div",weight:"bold",size:"md",lineHeight:"normal"},i))})),OC=v.table`
|
|
3474
3610
|
width: 100%;
|
|
3475
3611
|
border-collapse: collapse;
|
|
3476
3612
|
table-layout: auto;
|
|
3477
3613
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
3478
|
-
`,
|
|
3614
|
+
`,RC=e.forwardRef((function(t,n){var{children:r}=t,i=M(t,["children"]);return e.createElement(OC,Object.assign({ref:n},i),r)}));RC.Header=HC,RC.Body=AC,RC.Row=ZC,RC.Cell=MC,RC.HeaderCell=LC;const SC=v.div`
|
|
3479
3615
|
position: relative;
|
|
3480
|
-
|
|
3616
|
+
`,$C=v.div``,TC=v.button`
|
|
3481
3617
|
flex-irection: column;
|
|
3482
3618
|
flex-shrink: 0;
|
|
3483
3619
|
line-height: 1.25;
|
|
@@ -3498,25 +3634,25 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3498
3634
|
background-color: ${({selected:e})=>e?"":({theme:e})=>e.palette.gray.highlight};
|
|
3499
3635
|
transition: 0.5s;
|
|
3500
3636
|
}
|
|
3501
|
-
`,
|
|
3637
|
+
`,zC=v(oe)`
|
|
3502
3638
|
padding-right: 2px;
|
|
3503
3639
|
font-weight: 600;
|
|
3504
3640
|
color: ${({selected:e})=>e?({theme:e})=>e.palette.primary.main:"gray"};
|
|
3505
|
-
`,
|
|
3641
|
+
`,BC=v.div`
|
|
3506
3642
|
position: absolute;
|
|
3507
3643
|
top: 0;
|
|
3508
3644
|
height: 100%;
|
|
3509
3645
|
transition: all 0.3s ease-in-out;
|
|
3510
3646
|
border-bottom: ${({theme:e})=>`solid ${e.palette.primary.main} 2px`};
|
|
3511
|
-
`,
|
|
3647
|
+
`,GC=v.div`
|
|
3512
3648
|
height: 1px;
|
|
3513
3649
|
width: 100%;
|
|
3514
3650
|
background: ${({theme:e})=>e.palette.gray.main};
|
|
3515
|
-
`,
|
|
3651
|
+
`,WC=e.forwardRef((function({text:t,count:n,value:r,selected:i,onChange:o,onClick:a},l){const s=G(),c=i?"primary":"secondary";return e.createElement(TC,{ref:l,key:t,value:r,tabIndex:i?0:-1,theme:s,selected:i,onClick:e=>{!i&&o&&o(r),a&&a(e)}},e.createElement(J,{display:"flex",justifyContent:"space-between",alignItems:"center"},e.createElement(zC,{selected:i},t," "),null!=n?e.createElement(wt,{color:c,type:"pill",fontWeight:"bold"},n):""))}));var PC=e.forwardRef(((t,n)=>{const{data:r,value:i,onChange:o,onClick:a}=t,l=new Map,s=e.useRef(null),[c,d]=e.useState({}),[u,p]=e.useState(null),m=Wn(n,p),g=EC((()=>{const{tabsMeta:e,tabMeta:t}=(()=>{const e=null!=u?u:void 0;let t,n;if(e){const n=e.getBoundingClientRect();t={scrollLeft:e.scrollLeft,left:n.left}}if(e&&i&&s.current){const e=s.current.children;if(e.length>0){const t=e[l.get(i)];n=(null==t?void 0:t.getBoundingClientRect())||null}}return{tabsMeta:t,tabMeta:n}})();let n=0;if(t&&e){const r=e.scrollLeft;n=t.left-e.left+r}const r={left:n,width:t?t.width:0};if(void 0===c.left||void 0===c.width)d(r);else{const e=Math.abs(c.left-r.left),t=Math.abs(c.width-r.width);(e>=1||t>=1)&&d(r)}}));return e.useEffect((()=>{g()})),e.useEffect((()=>{const e=()=>{g()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[g]),e.createElement(SC,{ref:m},e.createElement(BC,{style:Object.assign({},c)}),e.createElement($C,{ref:s},r.map(((t,n)=>{const r=t.value,s=r===i;return l.set(r,n),e.createElement(WC,{key:n.toString(),selected:s,value:r,count:t.count,text:t.text,onChange:o,onClick:a})})),e.createElement(GC,null)))}));const jC=v.div`
|
|
3516
3652
|
padding: ${({theme:e})=>2*e.spacing}px;
|
|
3517
3653
|
transition: height ${({transitionDuration:e})=>e-100}ms
|
|
3518
3654
|
100ms;
|
|
3519
|
-
`,
|
|
3655
|
+
`,FC=v.div`
|
|
3520
3656
|
position: relative;
|
|
3521
3657
|
display: flex;
|
|
3522
3658
|
align-items: center;
|
|
@@ -3533,7 +3669,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3533
3669
|
opacity: ${({opacity:e})=>e};
|
|
3534
3670
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
3535
3671
|
overflow: hidden;
|
|
3536
|
-
`,
|
|
3672
|
+
`,XC=v.div`
|
|
3537
3673
|
flex-shrink: 0;
|
|
3538
3674
|
display: flex;
|
|
3539
3675
|
align-items: center;
|
|
@@ -3541,18 +3677,18 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3541
3677
|
width: 28px;
|
|
3542
3678
|
height: 28px;
|
|
3543
3679
|
margin-right: ${({theme:e})=>2*e.spacing}px;
|
|
3544
|
-
`,
|
|
3680
|
+
`,YC=v.div`
|
|
3545
3681
|
cursor: pointer;
|
|
3546
3682
|
margin-left: ${({theme:e})=>2*e.spacing}px;
|
|
3547
|
-
`,
|
|
3683
|
+
`,JC=w`
|
|
3548
3684
|
from {
|
|
3549
3685
|
width: 100%;
|
|
3550
3686
|
}
|
|
3551
3687
|
to {
|
|
3552
3688
|
width: 0%
|
|
3553
3689
|
}
|
|
3554
|
-
`,
|
|
3555
|
-
animation: ${
|
|
3690
|
+
`,UC=v.div`
|
|
3691
|
+
animation: ${JC}
|
|
3556
3692
|
${({autoDismissTimeout:e})=>e}ms linear;
|
|
3557
3693
|
background-color: ${({backgroundColor:e})=>e};
|
|
3558
3694
|
top: 0;
|
|
@@ -3561,7 +3697,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3561
3697
|
position: absolute;
|
|
3562
3698
|
width: 0;
|
|
3563
3699
|
height: 3px;
|
|
3564
|
-
|
|
3700
|
+
`,QC={right:"translate3d(120%, 0, 0)",left:"translate3d(-120%, 0, 0)",bottom:"translate3d(0, 120%, 0)",top:"translate3d(0, -120%, 0)"};function _C(e){const t=e.split("-"),n="center"===t[1]?t[0]:t[1];return QC[n]}const KC=({appearance:t,placement:n,transitionDuration:r,transitionState:i,onDismiss:o,children:a,autoDismiss:l,autoDismissTimeout:s,isRunning:c})=>{const d=G(),u=(({palette:t})=>({info:{background:t.primary.highlight,boxShadow:Rt(5,t.action.shadowOpacity,t.primary.light),icon:e.createElement(X,{name:"information",type:"fill",size:"lg",color:t.primary.main}),countDownBackground:t.primary.main,titleColor:t.primary.deepDark,contentColor:t.primary.main,closeColor:t.primary.light},success:{background:t.success.highlight,boxShadow:Rt(5,t.action.shadowOpacity,t.success.light),icon:e.createElement(X,{name:"checkbox_circle",type:"fill",size:"lg",color:t.success.main}),countDownBackground:t.success.main,titleColor:t.success.deepDark,contentColor:t.success.main,closeColor:t.success.light},warning:{background:t.warning.highlight,boxShadow:Rt(5,t.action.shadowOpacity,t.warning.light),icon:e.createElement(X,{name:"alert",type:"fill",size:"lg",color:t.warning.main}),countDownBackground:t.warning.main,titleColor:t.warning.deepDark,contentColor:t.warning.main,closeColor:t.warning.light},error:{background:t.danger.highlight,boxShadow:Rt(5,t.action.shadowOpacity,t.danger.light),icon:e.createElement(X,{name:"alert",type:"fill",size:"lg",color:t.danger.main}),countDownBackground:t.danger.main,titleColor:t.danger.deepDark,contentColor:t.danger.main,closeColor:t.danger.light}}))(d)[t],[p,m]=e.useState("auto"),g=e.useRef(null);return e.useEffect((()=>{if("entered"===i){const e=g.current;e&&m(e.offsetHeight+d.spacing)}"exiting"===i&&m(0)}),[i,d.spacing]),e.createElement(jC,{ref:g,style:{height:p},transitionDuration:r},e.createElement(FC,Object.assign({background:u.background,boxShadow:u.boxShadow,transitionDuration:r},(e=>({entering:{transform:`${_C(e)}`,opacity:0},entered:{transform:"translate3d(0,0,0)",opacity:1},exiting:{transform:"scale(0.66)",opacity:0},exited:{transform:"scale(0.66)",opacity:0}}))(n)[i]),e.createElement(J,{display:"flex",flex:1,alignItems:"center",justifyContent:"space-between"},e.createElement(J,{display:"flex",alignItems:"center"},e.createElement(XC,null,u.icon),e.createElement(oe,{color:u.titleColor,weight:"bold"},a)),e.createElement(YC,{onClick:()=>{o()}},e.createElement(X,{name:"close",color:u.closeColor}))),e.createElement(UC,{opacity:l?1:0,autoDismissTimeout:s,isRunning:c,backgroundColor:u.countDownBackground})))},qC=v.div`
|
|
3565
3701
|
border: 0;
|
|
3566
3702
|
clip: rect(1px, 1px, 1px, 1px);
|
|
3567
3703
|
height: 1;
|
|
@@ -3570,7 +3706,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3570
3706
|
position: absolute;
|
|
3571
3707
|
white-space: nowrap;
|
|
3572
3708
|
width: 1;
|
|
3573
|
-
`,
|
|
3709
|
+
`,eE=v.div`
|
|
3574
3710
|
cursor: pointer;
|
|
3575
3711
|
flex-shrink: 0;
|
|
3576
3712
|
opacity: 0.5;
|
|
@@ -3579,14 +3715,14 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3579
3715
|
&:hover {
|
|
3580
3716
|
opacity: 1;
|
|
3581
3717
|
}
|
|
3582
|
-
`,
|
|
3718
|
+
`,tE=v.div`
|
|
3583
3719
|
flex-grow: 1;
|
|
3584
3720
|
font-size: 14;
|
|
3585
3721
|
line-height: 1.4;
|
|
3586
3722
|
min-height: 40px;
|
|
3587
3723
|
padding: ${({gutter:e})=>`${e}px ${1.5*e}px`};
|
|
3588
|
-
`,
|
|
3589
|
-
animation: ${({autoDismissTimeout:e})=>`${
|
|
3724
|
+
`,nE=w`from { height: 100%; } to { height: 0% }`,rE=v.div`
|
|
3725
|
+
animation: ${({autoDismissTimeout:e})=>`${nE} ${e}ms linear`};
|
|
3590
3726
|
animation-play-state: ${({isRunning:e})=>e?"running":"paused"};
|
|
3591
3727
|
background-color: rgba(0, 0, 0, 0.1);
|
|
3592
3728
|
bottom: 0;
|
|
@@ -3595,7 +3731,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3595
3731
|
opacity: ${({opacity:e})=>e};
|
|
3596
3732
|
position: absolute;
|
|
3597
3733
|
width: 100%;
|
|
3598
|
-
`,
|
|
3734
|
+
`,iE=v.div`
|
|
3599
3735
|
background-color: ${({backgroundColor:e})=>e};
|
|
3600
3736
|
border-top-left-radius: ${({borderRadius:e})=>e}px;
|
|
3601
3737
|
border-bottom-left-radius: ${({borderRadius:e})=>e}px;
|
|
@@ -3607,11 +3743,11 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3607
3743
|
overflow: hidden;
|
|
3608
3744
|
text-align: center;
|
|
3609
3745
|
width: 30px;
|
|
3610
|
-
`,
|
|
3746
|
+
`,oE=v.div`
|
|
3611
3747
|
height: ${({height:e})=>e};
|
|
3612
3748
|
transition: height
|
|
3613
3749
|
${({transitionDuration:e})=>`height ${e-100}ms 100ms`};
|
|
3614
|
-
`,
|
|
3750
|
+
`,aE=v.div`
|
|
3615
3751
|
background-color: ${({backgroundColor:e})=>e};
|
|
3616
3752
|
border-radius: ${({borderRadius:e})=>e}px;
|
|
3617
3753
|
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.175);
|
|
@@ -3622,7 +3758,7 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3622
3758
|
transition: ${({transitionDuration:e})=>`transform ${e}ms cubic-bezier(0.2, 0, 0, 1), opacity ${e}ms`};
|
|
3623
3759
|
width: ${({width:e})=>e}px;
|
|
3624
3760
|
${({transitionState:e,placement:t})=>{switch(e){case"entered":return y({transform:"translate3d(0,0,0)"});case"exiting":case"exited":return y({transform:"scale(0.66)",opacity:0});case"entering":return y((e=>{const t=e.split("-");return{right:"translate3d(120%, 0, 0)",left:"translate3d(-120%, 0, 0)",bottom:"translate3d(0, 120%, 0)",top:"translate3d(0, -120%, 0)"}["center"===t[1]?t[0]:t[1]]})(t));default:return""}}}
|
|
3625
|
-
`;function
|
|
3761
|
+
`;function lE(e){return{"aria-hidden":!0,height:16,width:e,viewBox:`0 0 ${e} 16`,style:{display:"inline-block",verticalAlign:"text-top",fill:"currentColor"}}}const sE=e=>t.createElement("svg",Object.assign({},lE(14),e),t.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})),cE=()=>{};const dE=e=>{var{tag:n="span"}=e,r=M(e,["tag"]);return t.createElement(qC,Object.assign({as:n},r))},uE={success:{icon:e=>t.createElement("svg",Object.assign({},lE(12),e),t.createElement("path",{fillRule:"evenodd",d:"M12 5.5l-8 8-4-4L1.5 8 4 10.5 10.5 4 12 5.5z"})),text:"#006644",fg:"#36B37E",bg:"#E3FCEF"},error:{icon:e=>t.createElement("svg",Object.assign({},lE(12),e),t.createElement("path",{fillRule:"evenodd",d:"M5.05.01c.81 2.17.41 3.38-.52 4.31C3.55 5.37 1.98 6.15.9 7.68c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.01 8.68 2.15 5.05.02L5.03 0l.02.01z"})),text:"#BF2600",fg:"#FF5630",bg:"#FFEBE6"},warning:{icon:e=>t.createElement("svg",Object.assign({},lE(16),e),t.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})),text:"#FF8B00",fg:"#FFAB00",bg:"#FFFAE6"},info:{icon:e=>t.createElement("svg",Object.assign({},lE(14),e),t.createElement("path",{fillRule:"evenodd",d:"M6.3 5.71a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 8.01c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V8v.01zM7 2.32C3.86 2.32 1.3 4.86 1.3 8c0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 1c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})),text:"#505F79",fg:"#2684FF",bg:"white"}},pE=e=>{var{children:n}=e,r=M(e,["children"]);return t.createElement(eE,Object.assign({role:"button",className:"react-toast-notifications__toast__dismiss-button",gutter:8},r),n)},mE=e=>t.createElement(tE,Object.assign({className:"react-toast-notifications__toast__content",gutter:8},e)),gE=e=>{var{autoDismissTimeout:n,opacity:r,isRunning:i}=e,o=M(e,["autoDismissTimeout","opacity","isRunning"]);return t.createElement(rE,Object.assign({className:"react-toast-notifications__toast__countdown",autoDismissTimeout:n,isRunning:i,opacity:r},o))},hE=({appearance:e,autoDismiss:n,autoDismissTimeout:r,isRunning:i})=>{const o=uE[e],a=o.icon;return t.createElement(iE,{className:"react-toast-notifications__toast__icon-wrapper",color:o.bg,backgroundColor:o.fg,borderRadius:4,gutter:8},t.createElement(gE,{opacity:n?1:0,autoDismissTimeout:r,isRunning:i}),t.createElement(a,{className:"react-toast-notifications__toast__icon",css:{position:"relative",zIndex:1}}))},fE=e=>{var{appearance:n,placement:a,transitionDuration:l,transitionState:s}=e,c=M(e,["appearance","placement","transitionDuration","transitionState"]);const[d,u]=r("auto"),p=i(null);return o((()=>{if(p.current){if("entered"===s){const e=p.current;u(e.offsetHeight+8)}"exiting"===s&&u(0)}}),[s]),t.createElement(oE,{ref:p,height:d,transitionDuration:l},t.createElement(aE,Object.assign({className:`react-toast-notifications__toast react-toast-notifications__toast--${n}`,backgroundColor:uE[n].bg,borderRadius:4,color:uE[n].text,gutter:8,placement:a,width:360,transitionState:s,transitionDuration:l},c)))},bE=e=>{var{appearance:n="info",autoDismiss:r,autoDismissTimeout:i,children:o,isRunning:a,onDismiss:l,placement:s,transitionDuration:c,transitionState:d,onMouseEnter:u,onMouseLeave:p}=e,m=M(e,["appearance","autoDismiss","autoDismissTimeout","children","isRunning","onDismiss","placement","transitionDuration","transitionState","onMouseEnter","onMouseLeave"]);return t.createElement(fE,Object.assign({appearance:n,placement:s,transitionState:d,transitionDuration:c,onMouseEnter:u,onMouseLeave:p},m),t.createElement(hE,{appearance:n,autoDismiss:r,autoDismissTimeout:i,isRunning:a}),t.createElement(mE,null,o),l?t.createElement(pE,{onClick:l},t.createElement(sE,{className:"react-toast-notifications__toast__dismiss-icon"}),t.createElement(dE,{className:"react-toast-notifications__toast__dismiss-text"},"Close")):null)};bE.defaultProps={onDismiss:cE};const vE=v.div`
|
|
3626
3762
|
box-sizing: border-box;
|
|
3627
3763
|
max-height: 100%;
|
|
3628
3764
|
max-width: 100%;
|
|
@@ -3632,13 +3768,13 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3632
3768
|
position: fixed;
|
|
3633
3769
|
z-index: 1000;
|
|
3634
3770
|
${({placement:e})=>{switch(e){case"top-left":return y({top:0,left:0});case"top-center":return y({top:0,left:"50%",transform:"translateX(-50%)"});case"top-right":return y({top:0,right:0});case"bottom-left":return y({bottom:0,left:0});case"bottom-center":return y({bottom:0,left:"50%",transform:"translateX(-50%)"});case"bottom-right":return y({bottom:0,right:0})}}}
|
|
3635
|
-
`,
|
|
3771
|
+
`,xE=e=>{var{hasToasts:n,placement:r}=e,i=M(e,["hasToasts","placement"]);return t.createElement(vE,Object.assign({className:"react-toast-notifications__container",hasToasts:n,placement:r},i))};class yE{constructor(e,t){this.callback=e,this.start=t,this.remaining=t,this.resume()}clear(){clearTimeout(this.timerId)}pause(){clearTimeout(this.timerId),this.remaining-=Date.now()-this.start}resume(){this.start=Date.now(),clearTimeout(this.timerId),this.timerId=setTimeout(this.callback,this.remaining)}}class wE extends f{constructor(){super(...arguments),this.state={isRunning:Boolean(this.props.autoDismiss)},this.startTimer=()=>{const{autoDismiss:e,autoDismissTimeout:t,onDismiss:n}=this.props;e&&(this.setState({isRunning:!0}),this.timeout=new yE(n,t))},this.clearTimer=()=>{this.timeout&&this.timeout.clear()},this.onMouseEnter=()=>{this.setState({isRunning:!1},(()=>{this.timeout&&this.timeout.pause()}))},this.onMouseLeave=()=>{this.setState({isRunning:!0},(()=>{this.timeout&&this.timeout.resume()}))}}componentDidMount(){this.startTimer()}componentDidUpdate(e){if(e.autoDismiss!==this.props.autoDismiss){(this.props.autoDismiss?this.startTimer:this.clearTimer)()}}componentWillUnmount(){this.clearTimer()}render(){const e=this.props,{autoDismiss:n,autoDismissTimeout:r,component:i}=e,o=M(e,["autoDismiss","autoDismissTimeout","component"]),{isRunning:a}=this.state,l=n?this.onMouseEnter:cE,s=n?this.onMouseLeave:cE;return t.createElement(i,Object.assign({autoDismiss:n,autoDismissTimeout:r,isRunning:a,onMouseEnter:l,onMouseLeave:s},o))}}wE.defaultProps={autoDismiss:!1};const CE={Toast:bE,ToastContainer:xE},EE=t.createContext({add:()=>"0",remove:cE,removeAll:cE,update:cE,toasts:[]}),{Consumer:IE,Provider:AE}=EE,kE=!("undefined"==typeof window||!window.document||!window.document.createElement);let ME=class extends f{constructor(e){super(e),this.state={toasts:[]},this.has=e=>!!this.state.toasts.length&&Boolean(this.state.toasts.filter((t=>t.id===e)).length),this.onDismiss=(e,t=cE)=>()=>{t(e),this.remove(e)},this.add=(e,t,n=cE)=>{const r=(null==t?void 0:t.id)?t.id:function(){let e=46656*Math.random()|0,t=46656*Math.random()|0;return e=("000"+e.toString(36)).slice(-3),t=("000"+t.toString(36)).slice(-3),e+t}();if(!this.has(r))return this.setState((n=>{const i=Object.assign({content:e,id:r},t);return{toasts:this.props.newestOnTop?[i,...n.toasts]:[...n.toasts,i]}}),(()=>n(r))),r},this.remove=(e,t=cE)=>{this.has(e)&&this.setState((t=>{const n=t.toasts.filter((t=>t.id!==e));return{toasts:n}}),(()=>t(e)))},this.removeAll=()=>{this.state.toasts.length&&this.state.toasts.forEach((e=>this.remove(e.id)))},this.update=(e,t,n=cE)=>{this.has(e)&&this.setState((n=>{const r=n.toasts,i=r.findIndex((t=>t.id===e)),o=Object.assign(Object.assign({},r[i]),t);return{toasts:[...r.slice(0,i),o,...r.slice(i+1)]}}),(()=>n(e)))},this.nodeRef=t.createRef()}render(){const{autoDismiss:e,autoDismissTimeout:n,children:r,components:i,placement:o,portalTargetSelector:a,transitionDuration:l}=this.props,{Toast:s,ToastContainer:c}=Object.assign(Object.assign({},CE),i),{add:d,remove:u,removeAll:p,update:m}=this,g=this.state.toasts,h=Boolean(g.length),f=kE?a?document.querySelector(a):document.body:null;return t.createElement(AE,{value:{add:d,remove:u,removeAll:p,update:m,toasts:g}},r,f?A(t.createElement(c,{placement:o,hasToasts:h},t.createElement(lt,{component:null},g.map((r=>{var{appearance:i,autoDismiss:a,content:c,id:d,onDismiss:u}=r,p=M(r,["appearance","autoDismiss","content","id","onDismiss"]);return t.createElement(Ue,{key:d,appear:!0,mountOnEnter:!0,unmountOnExit:!0,nodeRef:this.nodeRef,timeout:l},(r=>t.createElement(wE,Object.assign({key:d,appearance:i,autoDismiss:void 0!==a?a:e,autoDismissTimeout:n,component:s,placement:o,transitionDuration:l,transitionState:r,onDismiss:this.onDismiss(d,u)},p),c)))})))),f):t.createElement(c,{placement:o,hasToasts:h}))}};ME.defaultProps={autoDismiss:!1,autoDismissTimeout:5e3,components:CE,newestOnTop:!1,placement:"top-right",transitionDuration:220,nodeRef:null};const HE=v(xE)`
|
|
3636
3772
|
z-index: ${({theme:e})=>e.depth.toast} !important;
|
|
3637
|
-
`,
|
|
3773
|
+
`,NE=t=>{var{children:n}=t,r=M(t,["children"]);const i={pt:r.placement.includes("top")?3:0,pb:r.placement.includes("bottom")?3:0};return e.createElement(HE,Object.assign({},r),e.createElement(It,Object.assign({},i),n))},VE={appearance:"info",autoDismiss:!1,autoDismissTimeout:0,isRunning:!0,onDismiss:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{},placement:"top-center",transitionDuration:0,transitionState:"entered",children:null},ZE=e=>t.createElement(KC,Object.assign({},VE,e));ZE.Provider=t=>{var{children:n}=t,r=M(t,["children"]);return e.createElement(ME,Object.assign({},r,{components:Object.assign({Toast:KC,ToastContainer:NE},r.components)}),n)},ZE.useToasts=()=>{const e=g(EE);if(!e)throw Error("The `useToasts` hook must be called from a descendent of the `ToastProvider`.");return{addToast:e.add,removeToast:e.remove,removeAllToasts:e.removeAll,updateToast:e.update,toastStack:e.toasts}};const DE=v.div`
|
|
3638
3774
|
position: relative;
|
|
3639
3775
|
width: ${({width:e})=>e};
|
|
3640
3776
|
height: calc(1px * 2 + 22px);
|
|
3641
|
-
`,
|
|
3777
|
+
`,LE=v.span`
|
|
3642
3778
|
position: absolute;
|
|
3643
3779
|
top: 50%;
|
|
3644
3780
|
left: 4px;
|
|
@@ -3651,19 +3787,19 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3651
3787
|
${({checked:e,disabled:t,theme:n})=>e&&!t?n.palette.primary.dark:n.palette.divider};
|
|
3652
3788
|
box-shadow: ${({theme:e})=>Rt(3,e.palette.action.shadowOpacity,e.palette.action.shadowBase)};
|
|
3653
3789
|
transition: all 0.3s ease-in-out;
|
|
3654
|
-
`,
|
|
3790
|
+
`,OE=v.div`
|
|
3655
3791
|
position: absolute;
|
|
3656
3792
|
width: 100%;
|
|
3657
3793
|
word-break: break-all;
|
|
3658
3794
|
white-space: nowrap;
|
|
3659
3795
|
transition: all 0.3s ease-in-out;
|
|
3660
|
-
`,
|
|
3796
|
+
`,RE=v(OE)`
|
|
3661
3797
|
padding-left: 8px;
|
|
3662
3798
|
opacity: 0;
|
|
3663
|
-
`,
|
|
3799
|
+
`,SE=v(OE)`
|
|
3664
3800
|
padding-right: 8px;
|
|
3665
3801
|
opacity: 1;
|
|
3666
|
-
|
|
3802
|
+
`,$E=v.label`
|
|
3667
3803
|
position: absolute;
|
|
3668
3804
|
top: 0;
|
|
3669
3805
|
left: 0;
|
|
@@ -3681,21 +3817,21 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3681
3817
|
transition: all 0.3s ease-in-out;
|
|
3682
3818
|
|
|
3683
3819
|
${({checked:e})=>e&&y`
|
|
3684
|
-
& > ${
|
|
3820
|
+
& > ${LE} {
|
|
3685
3821
|
left: calc(100% - 14px - 6px);
|
|
3686
3822
|
}
|
|
3687
|
-
& > ${
|
|
3823
|
+
& > ${RE} {
|
|
3688
3824
|
opacity: 1;
|
|
3689
3825
|
}
|
|
3690
|
-
& > ${
|
|
3826
|
+
& > ${SE} {
|
|
3691
3827
|
opacity: 0;
|
|
3692
3828
|
}
|
|
3693
3829
|
`}
|
|
3694
|
-
`,
|
|
3830
|
+
`,TE=v.input`
|
|
3695
3831
|
width: 0;
|
|
3696
3832
|
height: 0;
|
|
3697
3833
|
visibility: hidden;
|
|
3698
|
-
`,
|
|
3834
|
+
`,zE=e.forwardRef((function(t,n){const r=gr({props:t,name:"ToggleButton"}),{checked:i=!1,disabled:o=!1,onChange:a,width:l="48px",checkedText:s="",unCheckedText:c="",inputRef:d}=r;return e.createElement(DE,{ref:n,width:l},e.createElement($E,{checked:i,disabled:o,width:l},e.createElement(TE,{ref:d,checked:i,type:"checkbox",readOnly:null==a,disabled:o,onChange:a}),e.createElement(RE,null,e.createElement(oe,{component:"div",color:o?"disabled":"primary",align:"left",size:"xs",weight:"bold"},s)),e.createElement(SE,null,e.createElement(oe,{component:"div",color:o?"disabled":"secondary",align:"right",size:"xs",weight:"bold"},c)),e.createElement(LE,{checked:i,disabled:o})))})),BE=v.div``,GE=v.span`
|
|
3699
3835
|
background-color: ${({active:e,theme:t})=>e?t.palette.primary.main:t.palette.white};
|
|
3700
3836
|
border: 1px solid
|
|
3701
3837
|
${({theme:e,active:t})=>t?e.palette.primary.dark:e.palette.gray.main};
|
|
@@ -3703,26 +3839,26 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3703
3839
|
height: ${({theme:e})=>3*e.spacing}px;
|
|
3704
3840
|
width: ${({theme:e})=>3*e.spacing}px;
|
|
3705
3841
|
outline: none;
|
|
3706
|
-
`,
|
|
3842
|
+
`,WE=v.div`
|
|
3707
3843
|
display: grid;
|
|
3708
3844
|
grid-template-columns: 38px repeat(24, 1fr);
|
|
3709
3845
|
grid-gap: ${({theme:e})=>e.spacing/2}px;
|
|
3710
3846
|
align-items: center;
|
|
3711
3847
|
justify-items: center;
|
|
3712
3848
|
width: fit-content;
|
|
3713
|
-
`,
|
|
3849
|
+
`,PE=v.div`
|
|
3714
3850
|
height: 24px;
|
|
3715
3851
|
text-align: center;
|
|
3716
3852
|
background-color: ${({theme:e})=>e.palette.gray.light};
|
|
3717
3853
|
border-radius: ${({theme:e})=>e.spacing/2}px;
|
|
3718
3854
|
border: 1px solid ${({theme:e})=>e.palette.gray.main};
|
|
3719
|
-
`,
|
|
3855
|
+
`,jE=v(PE)`
|
|
3720
3856
|
width: 38px;
|
|
3721
|
-
`,
|
|
3857
|
+
`,FE=v(PE)`
|
|
3722
3858
|
width: 24px;
|
|
3723
|
-
`,
|
|
3859
|
+
`,XE=v(PE)`
|
|
3724
3860
|
border: none;
|
|
3725
|
-
`,
|
|
3861
|
+
`,YE=e=>{if(!e)return Array(7).fill(Array(24).fill("1"));const t=(e=>{if(!e)return Array(7).fill(Array(24).fill("1")).join("");let t="";for(const n of e)switch(n){case"0":t+="0000";break;case"1":t+="0001";break;case"2":t+="0010";break;case"3":t+="0011";break;case"4":t+="0100";break;case"5":t+="0101";break;case"6":t+="0110";break;case"7":t+="0111";break;case"8":t+="1000";break;case"9":t+="1001";break;case"a":t+="1010";break;case"b":t+="1011";break;case"c":t+="1100";break;case"d":t+="1101";break;case"e":t+="1110";break;case"f":t+="1111";break;default:return""}return t})(e),n=[];for(let e=0;e<7;e++){n[e]=[];for(let r=0;r<24;r++)n[e][r]=t.charAt(24*e+r)}return n},JE=Array.from(Array(24)).map(((e,t)=>t)),UE=({weekList:e,weekTime:n,WeekTimeItem:r,isWithinHoverRange:i,onMouseOver:o,onMouseDown:a})=>{const l=p((()=>YE(n)),[n]),s=(e,t)=>()=>{null==o||o(e,t)},c=(e,t,n)=>()=>{null==a||a(e,t,n)};return t.createElement(WE,null,t.createElement(XE,null),JE.map((e=>t.createElement(FE,{key:e},e))),l.map(((n,o)=>t.createElement(b,{key:o},t.createElement(jE,null,e[o]),n.map(((e,n)=>t.createElement(r,{key:`${o}-${n}`,active:"1"===e,hover:!!i&&i(o,n),onMouseOver:s(o,n),onMouseDown:c(o,n,e)})))))))},QE=t.forwardRef((function(e,n){const r=gr({props:e,name:"WeekTime"}),{weekList:i,weekTime:o}=r;return t.createElement(BE,{ref:n},t.createElement(UE,{weekTime:o,weekList:i,WeekTimeItem:GE}))})),_E=v.div``,KE=v.button`
|
|
3726
3862
|
background-color: ${({active:e,hover:t,theme:n})=>t?n.palette.primary.highlight:e?n.palette.primary.main:n.palette.white};
|
|
3727
3863
|
border: 1px solid
|
|
3728
3864
|
${({theme:e,active:t,hover:n})=>n?e.palette.primary.light:t?e.palette.primary.dark:e.palette.gray.main};
|
|
@@ -3731,5 +3867,5 @@ var to=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3731
3867
|
height: ${({theme:e})=>3*e.spacing}px;
|
|
3732
3868
|
width: ${({theme:e})=>3*e.spacing}px;
|
|
3733
3869
|
outline: none;
|
|
3734
|
-
`,
|
|
3870
|
+
`,qE=t.forwardRef((function(e,n){const i=gr({props:e,name:"WeekTimeSelector"}),{weekList:a,weekTime:l,errorText:s,onChange:c}=i,d=p((()=>YE(l)),[l]),[u,m]=r({weekIndex:0,timeIndex:0}),[g,h]=r({weekIndex:0,timeIndex:0}),[f,b]=r("none"),[v,x]=r("1"),y=(e,t,n)=>{if("choosing"===f){const r=((e,t,n,r,i,o)=>{const a=[...o],l=Math.min(e,n),s=Math.max(e,n),c=Math.min(t,r),d=Math.max(t,r);for(let e=l;e<=s;e++){const t=a[e].map(((t,n)=>e>=l&&e<=s&&n>=c&&n<=d?i:t));a[e]=t}return a})(u.weekIndex,u.timeIndex,e,t,n,[...d]);b("none"),null==c||c((e=>{let t="";for(let n=0;n<7;n++)for(let r=0;r<24;r++)t+=e[n][r];return(e=>{let t="";for(let n=0;n<e.length;n+=4)switch(e.substr(n,4)){case"0000":t+="0";break;case"0001":t+="1";break;case"0010":t+="2";break;case"0011":t+="3";break;case"0100":t+="4";break;case"0101":t+="5";break;case"0110":t+="6";break;case"0111":t+="7";break;case"1000":t+="8";break;case"1001":t+="9";break;case"1010":t+="a";break;case"1011":t+="b";break;case"1100":t+="c";break;case"1101":t+="d";break;case"1110":t+="e";break;case"1111":t+="f";break;default:return""}return t})(t)})(r))}else"none"===f&&(m({weekIndex:e,timeIndex:t}),h({weekIndex:e,timeIndex:t}),b("choosing"))},w=()=>{"choosing"===f&&y(g.weekIndex,g.timeIndex,v)};return o((()=>(addEventListener("mouseup",w),()=>{removeEventListener("mouseup",w)}))),t.createElement(_E,{ref:n},t.createElement(UE,{weekTime:l,weekList:a,WeekTimeItem:KE,isWithinHoverRange:(e,t)=>{if("choosing"===f){const n=Math.min(u.weekIndex,g.weekIndex),r=Math.max(u.weekIndex,g.weekIndex),i=Math.min(u.timeIndex,g.timeIndex),o=Math.max(u.timeIndex,g.timeIndex);return e>=n&&e<=r&&t>=i&&t<=o}return!1},onMouseOver:(e,t)=>{"none"!==f&&h({weekIndex:e,timeIndex:t})},onMouseDown:(e,t,n)=>{const r="1"===n?"0":"1";x(r),y(e,t,r)}}),s&&t.createElement(It,{pt:1},t.createElement(rx,null,s)))}));export{te as Accordion,le as ActionButton,vt as Backdrop,wt as Badge,$ as BreakPoint,Nt as Button,Lt as ButtonGroup,bn as Calendar,Rn as CalendarRange,Sn as Card,Gn as Checkbox,Pn as ClickAwayListener,hr as ConfirmModal,Ya as ContextMenu,ud as ContextMenu2,vd as ContextMenu2ButtonControlsItem,qa as ContextMenu2ButtonItem,rl as ContextMenu2CheckItem,pd as ContextMenu2Container,md as ContextMenu2HeadingItem,fd as ContextMenu2HelpTextItem,bd as ContextMenu2SeparatorItem,Qc as ContextMenu2SortableGroup,ed as ContextMenu2SortableItem,ll as ContextMenu2SwitchItem,nd as ContextMenu2TextInputItem,ul as ContextMenu2TriggerItem,fh as CreatableSelect,mf as DataTable,Kf as DataTable2,ob as DataTable2ActionButton,nb as DataTable2Body,ib as DataTable2Cell,eb as DataTable2Column,tb as DataTable2ColumnLabel,qf as DataTable2Head,ab as DataTable2InlineEditor,lb as DataTable2InlineSelectEditor,rb as DataTable2Row,Vb as DateField,Sb as DatePicker,Ob as DateRangeField,Tb as DateRangePicker,Cr as Divider,jb as DropdownButton,sv as DualListBox,nx as DualListBox2,hv as DualListBox2Accordion,cv as DualListBox2Item,Qv as DualListBox2Section,rx as ErrorText,bt as Fade,ax as FileUploader,Hx as FilterComboBox,Ox as FilterSelectInput,ry as FilterTagInput,oy as FixedPanel,J as Flex,cy as FloatingTip,vy as FullSizeConfirmModal,wy as Grow,X as Icon,Ey as Input,tf as ItemEmpty,ky as LoadingBar,mr as LocaleProvider,Fa as Menu,Ir as MenuList,sr as Modal,lw as MultipleFilter,Xw as NavigationRail,gw as NavigationRailContext,Dw as NotificationBadge,Qh as Pager,ja as Popover,ar as Portal,Oh as RadioButton,Dh as RadioButtonSize,R as Radius,Yt as ScrollArea,hh as Select,iC as Select2,O as Shadow,sC as Slide,mC as Snackbar,S as Space,It as Spacer,ir as Spinner,hC as SplitAnnotation,IC as Switch,RC as Table,PC as Tabs,jy as TextField,H as ThemeProvider,ZE as Toast,zE as ToggleButton,Iw as Tooltip,oe as Typography,QE as WeekTime,qE as WeekTimeSelector,N as colors,z as createTheme,B as defaultTheme,ur as enUS,_h as getFilteredItems,cr as jaJP,D as palette,gv as toGroupedItems,od as useContextMenu2Anchor,Kh as useFilterState,G as useTheme,dr as zhCN};
|
|
3735
3871
|
//# sourceMappingURL=index.es.js.map
|