ingred-ui 33.14.0 → 33.14.1
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/index.es.js +65 -65
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRef as o,useEffect as a,useMemo as l,createContext as s,useContext as c,useCallback as d,useLayoutEffect as u,Children as p,isValidElement as m,cloneElement as h,memo as g,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 k,flushSync as M}from"react-dom";import{DndContext as $,DragOverlay as A}from"@dnd-kit/core";import{SortableContext as L,useSortable as V,arrayMove as H}from"@dnd-kit/sortable";import{restrictToVerticalAxis as
|
|
1
|
+
import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRef as o,useEffect as a,useMemo as l,createContext as s,useContext as c,useCallback as d,useLayoutEffect as u,Children as p,isValidElement as m,cloneElement as h,memo as g,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 k,flushSync as M}from"react-dom";import{DndContext as $,DragOverlay as A}from"@dnd-kit/core";import{SortableContext as L,useSortable as V,arrayMove as H}from"@dnd-kit/sortable";import{restrictToVerticalAxis as S}from"@dnd-kit/modifiers";import{CSS as O}from"@dnd-kit/utilities";function D(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 R=({children:t,theme:n})=>e.createElement(x.Provider,{value:n},t),z={red:{0:"#FFF5F5",50:"#FFF0F1",100:"#FFE2E5",200:"#FFBAC3",300:"#F96979",400:"#F1365C",500:"#EB0A4E",600:"#CA0755",700:"#A90556",800:"#880352",900:"#70014E",1e3:"#380027"},blue:{0:"#F4F8FA",50:"#F2F9FC",100:"#CDF0FE",200:"#9CDDFD",300:"#6AC3FB",400:"#46AAF8",500:"#0B82F4",600:"#0864D1",700:"#054BAF",800:"#03348D",900:"#022575",1e3:"#02194F"},yellow:{0:"#FFFEF5",50:"#FFFCE4",100:"#FEFACF",200:"#FEF4A0",300:"#FEED71",400:"#FDE54E",500:"#FCD914",600:"#D8BA0E",700:"#B59B0A",800:"#927D06",900:"#695A02",1e3:"#2D2601"},green:{0:"#FBFFF5",50:"#F4FFE2",100:"#ECFCD3",200:"#D6F9A9",300:"#B4ED7B",400:"#92DB57",500:"#63C427",600:"#49A81C",700:"#338D13",800:"#20710C",900:"#135E07",1e3:"#072102"},gray:{0:"#FFFFFF",50:"#F8F9FA",100:"#F2F4F5",200:"#E2E8EA",300:"#D1D5DA",400:"#B3BAC1",500:"#959FA9",600:"#778490",700:"#596978",800:"#1F3449",900:"#041C33",1e3:"#001326"}};function N(e){return e&&"object"==typeof e&&!Array.isArray(e)}function T(e,t,n={clone:!0}){const r=n.clone?Object.assign({},e):e;return N(e)&&N(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(N(t[i])&&i in e?r[i]=T(e[i],t[i],n):r[i]=t[i])})),r}const Z={white:z.gray[0],black:z.gray[900],primary:{pure:z.blue[0],ultraLight:z.blue[50],highlight:z.blue[100],softLight:z.blue[200],lighter:z.blue[300],light:z.blue[400],base:z.blue[500],dark:z.blue[600],darker:z.blue[700],deepDark:z.blue[800],ultraDark:z.blue[900],deepest:z.blue[1e3]},success:{pure:z.green[0],ultraLight:z.green[50],highlight:z.green[100],softLight:z.green[200],lighter:z.green[300],light:z.green[400],base:z.green[500],dark:z.green[600],darker:z.green[700],deepDark:z.green[800],ultraDark:z.green[900],deepest:z.green[1e3]},warning:{pure:z.yellow[0],ultraLight:z.yellow[50],highlight:z.yellow[100],softLight:z.yellow[200],lighter:z.yellow[300],light:z.yellow[400],base:z.yellow[500],dark:z.yellow[600],darker:z.yellow[700],deepDark:z.yellow[800],ultraDark:z.yellow[900],deepest:z.yellow[1e3]},danger:{pure:z.red[0],ultraLight:z.red[50],highlight:z.red[100],softLight:z.red[200],lighter:z.red[300],light:z.red[400],base:z.red[500],dark:z.red[600],darker:z.red[700],deepDark:z.red[800],ultraDark:z.red[900],deepest:z.red[1e3]},neutral:{pure:z.gray[0],ultraLight:z.gray[50],highlight:z.gray[100],softLight:z.gray[200],lighter:z.gray[300],light:z.gray[400],base:z.gray[500],dark:z.gray[600],darker:z.gray[700],deepDark:z.gray[800],ultraDark:z.gray[900],deepest:z.gray[1e3]},text:{primary:z.gray[900],accent:z.blue[500],secondary:z.gray[700],disabled:z.gray[400],hint:z.gray[400],white:z.gray[0]},background:{default:z.gray[0],dark:z.blue[50],active:z.blue[100],hint:z.blue[50]},divider:z.gray[400],icon:{active:z.blue[500],fill:z.gray[700],line:z.gray[600]},action:{shadowOpacity:.08,shadowBase:z.gray[900]},chart:{series:{main:["#0B59ED","#DB870D","#0FF5B4","#8116FA","#EB40B0","#3EC3F7","#2B2224"],sub:["#4EA21B","#C44D58","#8C6239","#FAD50F","#7FFF00","#FE0541","#C6C6C6"]},colorSchemes:{accessible:{main:["#0173B2","#DE8F05","#029E73","#CC78BC","#CA9161","#FBAFE4","#949494"],sub:["#ECE133","#56B4E9","#D55E00","#009E73","#F0E442","#0072B2","#999999"]}},layout:{minSlotSize:36,narrowContainerBreakpoint:480,horizontalMinValueWidth:200},motion:{durationMs:400,staggerMs:48},axis:{fontSize:13,color:z.gray[900]},grid:z.gray[200],line:{strokeWidth:3,pointRadius:4,crosshairColor:z.gray[500]},legend:{fontSize:13,gap:8,color:z.gray[900]},tooltip:{background:z.gray[900],text:z.gray[0],fontSize:13}}};function B(e){return T(Z,e)}const P={"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)","3dShadowPrimarySubtle":"0px -3px 0px 0px rgba(11, 130, 244, 0.06) inset, 0px 1px 0px 0px rgba(4, 28, 51, 0.04)","3dShadowPrimarySubtleActive":"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)",dropdown:"0px 0px 16px rgba(4, 28, 51, 0.08)"},_=8,G=8,j={xs:375,sm:576,md:768,lg:1024,xl:1280,xxl:1440},F={MOBILE_SMALL:j.xs,MOBILE:j.sm,TABLET:j.md,LAPTOP:j.lg,DESKTOP:j.xl,WIDE:j.xxl},Y={X_SMALL:j.xs,SMALL:j.sm,MEDIUM:j.md,LARGE:j.lg,X_LARGE:j.xl,XX_LARGE:j.xxl},W=y`
|
|
2
2
|
text-box: trim-both cap alphabetic;
|
|
3
3
|
`,X={appBar:1100,drawer:1200,modal:1300,configPanel:1349,calendar:1350,calendarRange:1350,dropdown:1351,snackbar:1400,tooltip:1500,toast:1700},J=y`
|
|
4
4
|
border-color: ${({theme:e})=>e.palette.primary.base};
|
|
@@ -110,7 +110,7 @@ import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRe
|
|
|
110
110
|
&:disabled {
|
|
111
111
|
cursor: not-allowed;
|
|
112
112
|
}
|
|
113
|
-
`,$e=new Set;function Ae(e,t){"production"!==process.env.NODE_ENV&&($e.has(e)||($e.add(e),console.warn(`[ingred-ui] ${t}`)))}const Le=e.forwardRef((function(t,n){var{children:r,icon:i,color:o="primary",disabled:a}=t,l=D(t,["children","icon","color","disabled"]);Ae("ActionButton",'ActionButton は非推奨です。代わりに Button の Subtle(color="primarySubtle" 等)を使用してください。');const s=ne(),c=((e,t)=>t?"disabled":e)(o,a),d=(e=>({primary:e.palette.primary.softLight,warning:z.red[200],disabled:z.gray[400]}))(s)[c],u=(e=>({primary:e.palette.background.hint,warning:e.palette.danger.highlight,disabled:e.palette.neutral.softLight}))(s)[c],p=(e=>({primary:e.palette.primary.highlight,warning:z.red[200],disabled:e.palette.neutral.softLight}))(s)[c],m=(e=>({primary:e.palette.primary.base,warning:e.palette.danger.base,disabled:e.palette.text.disabled}))(s)[c];return e.createElement(Me,Object.assign({},l,{ref:n,borderColor:d,normalBackgroundColor:u,hoverBackgroundColor:p,disabled:a}),i&&e.createElement(le,{name:i,color:m}),r&&e.createElement(ke,{color:m,size:"md"},r))})),Ve={small:{height:"20px",fontSize:"11px",padding:"2px 4px",iconSize:"12px",borderRadius:"4px",prependGap:"2px",itemGap:"4px"},medium:{height:"22px",fontSize:"12px",padding:"2px 4px",iconSize:"14px",borderRadius:"4px",prependGap:"2px",itemGap:"6px"},large:{height:"26px",fontSize:"13px",padding:"4px 6px",iconSize:"16px",borderRadius:"4px",prependGap:"4px",itemGap:"8px"},xl:{height:"30px",fontSize:"14px",padding:"4px 8px",iconSize:"16px",borderRadius:"4px",prependGap:"4px",itemGap:"8px"}},He={light:{background:z.gray[0],border:z.gray[400],text:z.gray[900],hoverIcon:z.gray[800]},dark:{background:z.gray[100],border:z.gray[400],text:z.gray[900],hoverIcon:z.gray[800]}},
|
|
113
|
+
`,$e=new Set;function Ae(e,t){"production"!==process.env.NODE_ENV&&($e.has(e)||($e.add(e),console.warn(`[ingred-ui] ${t}`)))}const Le=e.forwardRef((function(t,n){var{children:r,icon:i,color:o="primary",disabled:a}=t,l=D(t,["children","icon","color","disabled"]);Ae("ActionButton",'ActionButton は非推奨です。代わりに Button の Subtle(color="primarySubtle" 等)を使用してください。');const s=ne(),c=((e,t)=>t?"disabled":e)(o,a),d=(e=>({primary:e.palette.primary.softLight,warning:z.red[200],disabled:z.gray[400]}))(s)[c],u=(e=>({primary:e.palette.background.hint,warning:e.palette.danger.highlight,disabled:e.palette.neutral.softLight}))(s)[c],p=(e=>({primary:e.palette.primary.highlight,warning:z.red[200],disabled:e.palette.neutral.softLight}))(s)[c],m=(e=>({primary:e.palette.primary.base,warning:e.palette.danger.base,disabled:e.palette.text.disabled}))(s)[c];return e.createElement(Me,Object.assign({},l,{ref:n,borderColor:d,normalBackgroundColor:u,hoverBackgroundColor:p,disabled:a}),i&&e.createElement(le,{name:i,color:m}),r&&e.createElement(ke,{color:m,size:"md"},r))})),Ve={small:{height:"20px",fontSize:"11px",padding:"2px 4px",iconSize:"12px",borderRadius:"4px",prependGap:"2px",itemGap:"4px"},medium:{height:"22px",fontSize:"12px",padding:"2px 4px",iconSize:"14px",borderRadius:"4px",prependGap:"2px",itemGap:"6px"},large:{height:"26px",fontSize:"13px",padding:"4px 6px",iconSize:"16px",borderRadius:"4px",prependGap:"4px",itemGap:"8px"},xl:{height:"30px",fontSize:"14px",padding:"4px 8px",iconSize:"16px",borderRadius:"4px",prependGap:"4px",itemGap:"8px"}},He={light:{background:z.gray[0],border:z.gray[400],text:z.gray[900],hoverIcon:z.gray[800]},dark:{background:z.gray[100],border:z.gray[400],text:z.gray[900],hoverIcon:z.gray[800]}},Se=v.div`
|
|
114
114
|
isolation: isolate;
|
|
115
115
|
display: inline-flex;
|
|
116
116
|
align-items: center;
|
|
@@ -132,7 +132,7 @@ import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRe
|
|
|
132
132
|
&:hover {
|
|
133
133
|
background-color: ${({$variant:e,$disabled:t,$clickable:n})=>{if(n&&!t)return"light"===e?z.gray[50]:z.gray[200]}};
|
|
134
134
|
}
|
|
135
|
-
`,
|
|
135
|
+
`,Oe=v.span`
|
|
136
136
|
display: inline-flex;
|
|
137
137
|
flex-shrink: 0;
|
|
138
138
|
align-items: center;
|
|
@@ -162,7 +162,7 @@ import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRe
|
|
|
162
162
|
width: 100%;
|
|
163
163
|
height: 100%;
|
|
164
164
|
}
|
|
165
|
-
`,ze=({label:e,size:n="medium",variant:r="light",onRemove:i,className:o,disabled:a=!1,boldText:s,onClick:c,onPointerDown:d,"aria-label":u,"data-tag":p,prepend:m})=>{const h=a?void 0:i,g=!!c,f=l((()=>{if(!s)return e;const n=(Array.isArray(s)?s:[s]).filter((t=>t&&e.includes(t)));if(0===n.length)return e;const r=n.map((e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))),i=new RegExp(`(${r.join("|")})`,"g"),o=e.split(i);return t.createElement(t.Fragment,null,o.map(((e,r)=>{const i=`${String(e)}-${r}`;return n.includes(e)?t.createElement("strong",{key:i},e):t.createElement(t.Fragment,{key:i},e)})))}),[e,s]),b=l((()=>{var e;return null==m?null:t.isValidElement(m)&&m.type===le?t.cloneElement(m,{color:null!==(e=m.props.color)&&void 0!==e?e:"currentColor",size:parseInt(Ve[n].iconSize,10)}):m}),[m,n]);return t.createElement(
|
|
165
|
+
`,ze=({label:e,size:n="medium",variant:r="light",onRemove:i,className:o,disabled:a=!1,boldText:s,onClick:c,onPointerDown:d,"aria-label":u,"data-tag":p,prepend:m})=>{const h=a?void 0:i,g=!!c,f=l((()=>{if(!s)return e;const n=(Array.isArray(s)?s:[s]).filter((t=>t&&e.includes(t)));if(0===n.length)return e;const r=n.map((e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))),i=new RegExp(`(${r.join("|")})`,"g"),o=e.split(i);return t.createElement(t.Fragment,null,o.map(((e,r)=>{const i=`${String(e)}-${r}`;return n.includes(e)?t.createElement("strong",{key:i},e):t.createElement(t.Fragment,{key:i},e)})))}),[e,s]),b=l((()=>{var e;return null==m?null:t.isValidElement(m)&&m.type===le?t.cloneElement(m,{color:null!==(e=m.props.color)&&void 0!==e?e:"currentColor",size:parseInt(Ve[n].iconSize,10)}):m}),[m,n]);return t.createElement(Se,{$size:n,$variant:r,$disabled:a,$clickable:g,className:o,"data-tag":p,role:g?"button":void 0,tabIndex:g&&!a?0:void 0,"aria-label":u,onPointerDown:d,onClick:c?e=>{!a&&c&&(e.stopPropagation(),c())}:void 0},null!=b&&t.createElement(Oe,{$size:n},b),t.createElement(De,{$size:n,$variant:r,$disabled:a,$hasTrailing:!!i},f),i&&t.createElement(Re,{type:"button","aria-label":"削除",$size:n,$variant:r,$disabled:a,onClick:e=>{e.stopPropagation(),null==h||h()}},t.createElement(le,{name:"close_circle",type:"fill",color:"currentColor",size:parseInt(Ve[n].iconSize,10)})))},Ne={small:{height:"30px",fontSize:"12px",padding:"0 6px",borderRadius:"4px",iconSize:14},medium:{height:"32px",fontSize:"13px",padding:"0 8px",borderRadius:"6px",iconSize:16},large:{height:"40px",fontSize:"14px",padding:"0 10px",borderRadius:"6px",iconSize:18}},Te=e=>({light:{background:e.palette.background.default,borderColor:e.palette.divider,hoverBorderColor:e.palette.primary.base,color:e.palette.text.hint},dark:{background:e.palette.neutral.ultraLight,borderColor:e.palette.divider,hoverBorderColor:e.palette.primary.base,color:e.palette.text.hint}}),Ze={MENU_WIDTH:160,CONFIG_PANEL_WIDTH:264,DEFAULT_MENU_POSITION:24,TAG_SPACING:8,TAG_OFFSET_MULTIPLE:40,ESTIMATED_TAG_WIDTH:120,ICON_AREA_WIDTH:24,CLEAR_BUTTON_WIDTH:16,FALLBACK_POSITION_X:80,FALLBACK_POSITION_Y:148,CONFIG_PANEL_HEADER_HEIGHT:60,CONFIG_PANEL_BUTTON_HEIGHT:50,CONFIG_PANEL_PADDING:16,CONFIG_PANEL_MIN_CONTENT_HEIGHT:200,TRANSITION_DURATION:200,MIN_VALUE_LENGTH:1},Be="条件を維持",Pe="[data-tag]",_e='[role="menu"]',Ge='[data-advanced-filter-trigger="true"]',je='[role="button"]',Fe=(e,t)=>{if(!t)return!1;const n=t.operators.find((t=>t.value===e));return(null==n?void 0:n.isRange)||!1},Ye=(e,t)=>{var n;const r=null===(n=null==t?void 0:t.operators)||void 0===n?void 0:n.find((t=>t.value===e));return(null==r?void 0:r.isCustom)||!1},We=()=>`filter_${Date.now()}_${Math.random().toString(36).substring(2,11)}`,Xe=e=>{var t;return!0===(null===(t=null==e?void 0:e.persistOption)||void 0===t?void 0:t.enabled)},Je=(e,t)=>{var n,r;return void 0!==(null==t?void 0:t.persist)?t.persist:null!==(r=null===(n=null==e?void 0:e.persistOption)||void 0===n?void 0:n.defaultValue)&&void 0!==r&&r},Ue=e=>{var t,n;return null!==(n=null===(t=null==e?void 0:e.persistOption)||void 0===t?void 0:t.label)&&void 0!==n?n:Be},Qe=(e,t)=>void 0===t.persist?e:Object.assign(Object.assign({},e),{persist:t.persist}),qe=(e,t,n)=>n.conditions&&n.conditions.length>0?Qe({id:We(),type:e,typeLabel:t,operator:"",operatorLabel:"",values:[],valueLabels:[],isRange:!1,conditions:n.conditions},n):Qe({id:We(),type:e,typeLabel:t,operator:n.operator,operatorLabel:n.operatorLabel,values:n.values,valueLabels:n.valueLabels,isRange:n.isRange},n),Ke=(e,t)=>t.conditions&&t.conditions.length>0?Qe(Object.assign(Object.assign({},e),{operator:"",operatorLabel:"",values:[],valueLabels:[],isRange:!1,conditions:t.conditions}),t):Qe(Object.assign(Object.assign({},e),{operator:t.operator,operatorLabel:t.operatorLabel,values:t.values,valueLabels:t.valueLabels,isRange:t.isRange,conditions:void 0}),t),et=e=>{var t,n,r;if(null==e?void 0:e.defaultOperator){if(!(null===(t=e.operators)||void 0===t?void 0:t.some((t=>t.value===e.defaultOperator)))){const t=null!==(r=null===(n=e.operators)||void 0===n?void 0:n.map((e=>e.value)).join(", "))&&void 0!==r?r:"(none)";throw new Error(`AdvancedFilter: defaultOperator "${e.defaultOperator}" is not in operators. Available: [${t}]`)}return e.defaultOperator}return(null==e?void 0:e.operators)&&e.operators.length>0?e.operators[0].value:"equals"},tt=e=>(null==e?void 0:e.operators)||[],nt=(e,t)=>{if(t&&e){const n=e.operators.find((e=>e.value===t));if(null==n?void 0:n.inputType)return n.inputType}return(null==e?void 0:e.inputType)||"text"},rt=e=>(null==e?void 0:e.placeholder)||"値を入力",it=(e,t)=>{if(t&&e){const n=e.operators.find((e=>e.value===t));if(null==n?void 0:n.options)return n.options}return(null==e?void 0:e.options)||[]},ot=e=>(null==e?void 0:e.dateFormat)||"YYYY-MM-DD",at=(e,t,n)=>0===e.length?"":t&&2===e.length?`${e[0]} - ${e[1]}`:e.join(n),lt=e=>{const t=e.conditions.filter((e=>e.valueLabels.length>0)).map(((e,t)=>{const{operatorLabel:n,valueLabels:r,isRange:i}=e,o=0===t?`が${n}`:n;return i&&2===r.length?`${o} ${r[0]} - ${r[1]}`:`${o} ${r.join(", ")}`}));return`${e.typeLabel} ${t.join(" & ")}`},st=e=>{if(e.conditions&&e.conditions.length>0)return lt(e);const{typeLabel:t,operatorLabel:n,valueLabels:r,isRange:i}=e,o=`が${n}`,a=at(r,i,", ");return a?`${t} ${o} ${a}`:`${t} ${o}`},ct=e=>{if(e.conditions&&e.conditions.length>0)return lt(e);const{typeLabel:t,operatorLabel:n,valueLabels:r,isRange:i}=e,o=`が${n}`,a=at(r,i,"\n");return a?`${t} ${o}\n${a}`:`${t} ${o}`},dt=e=>!!(e.operator.length>0&&e.operatorLabel.length>0&&e.values.length>0&&e.valueLabels.length>0&&e.values.length===e.valueLabels.length)&&(!e.isRange||2===e.values.length),ut=(e,t)=>t.some((t=>t.type===e)),pt=(e,t)=>e.filter((e=>!t.some((t=>t.type===e.type)))),mt=(e,t)=>{var n;return t?(null===(n=e.find((e=>e.type===t)))||void 0===n?void 0:n.label)||t:""},ht=e=>{if(e.conditions&&e.conditions.length>0){const t=[];for(const n of e.conditions){const{valueLabels:e,isRange:r}=n;0!==e.length&&(r&&2===e.length?t.push(`${e[0]} - ${e[1]}`):e.length>0&&t.push(...e))}return t}return at(e.valueLabels,e.isRange,", ")},gt=e=>(null==e?void 0:e.multiConditionConfigs)||[],ft=(e,t)=>{var n;return null===(n=null==e?void 0:e.multiConditionConfigs)||void 0===n?void 0:n.find((e=>e.conditionKey===t))},bt=(e,t,n)=>{const r=e.enabledWhen;if(!r)return!1;const i=t.find((e=>e.conditionKey===r.conditionKey)),o=ft(n,r.conditionKey);if(!i||!o)return!0;const a=((e,t)=>{const n=yt(t,e.operator);return"radio"===n?""!==e.selectedRadioValue&&void 0!==e.selectedRadioValue&&null!==e.selectedRadioValue?[e.selectedRadioValue]:1===e.selectedValues.length?e.selectedValues:[]:"checkbox"===n?e.selectedValues:""!==e.value.trim()?[e.value]:[]})(i,o);return 0===a.length||!a.some((e=>r.values.includes(e)))},vt=e=>{var t,n,r;if(e.defaultOperator){if(!(null===(t=e.operators)||void 0===t?void 0:t.some((t=>t.value===e.defaultOperator)))){const t=null!==(r=null===(n=e.operators)||void 0===n?void 0:n.map((e=>e.value)).join(", "))&&void 0!==r?r:"(none)";throw new Error(`AdvancedFilter: defaultOperator "${e.defaultOperator}" in condition "${e.conditionKey}" is not in operators. Available: [${t}]`)}return e.defaultOperator}return e.operators&&e.operators.length>0?e.operators[0].value:"equals"},xt=e=>e.operators||[],yt=(e,t)=>{if(t){const n=e.operators.find((e=>e.value===t));if(null==n?void 0:n.inputType)return n.inputType}return e.inputType||"text"},wt=(e,t)=>{const n=e.operators.find((e=>e.value===t));return(null==n?void 0:n.isRange)||!1},Ct=(e,t)=>{for(const n of gt(e)){const e=t.find((e=>e.conditionKey===n.conditionKey));if(!e)continue;if("text"===yt(n,e.operator)&&!wt(n,e.operator))return e.id}return null},Et=e=>`slot-${e}`,It=e=>e.conditions&&e.conditions.length>0?e.conditions.some((e=>e.valueLabels.length>0)):e.valueLabels.length>0,kt=e=>e.filter(It),Mt=(e,t)=>e.map((e=>{var n,r;const i=null!==(n=t.find((t=>t.type===e.type&&It(t))))&&void 0!==n?n:null;return{type:e.type,typeLabel:e.label,disabled:e.disabled,slotId:null!==(r=null==i?void 0:i.id)&&void 0!==r?r:Et(e.type),filter:i}})),$t=s({isRoot:!1,activeIndex:null,maxActiveIndex:-1,setActiveIndex:()=>{},close:()=>{}}),At=y`
|
|
166
166
|
display: flex;
|
|
167
167
|
align-items: center;
|
|
168
168
|
box-sizing: border-box;
|
|
@@ -192,7 +192,7 @@ import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRe
|
|
|
192
192
|
}
|
|
193
193
|
`,Ht=v.span`
|
|
194
194
|
${W}
|
|
195
|
-
`,
|
|
195
|
+
`,St=v.span`
|
|
196
196
|
display: inline-flex;
|
|
197
197
|
align-items: center;
|
|
198
198
|
justify-content: center;
|
|
@@ -202,7 +202,7 @@ import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRe
|
|
|
202
202
|
button:disabled & {
|
|
203
203
|
color: ${({theme:e})=>e.palette.text.disabled};
|
|
204
204
|
}
|
|
205
|
-
`,
|
|
205
|
+
`,Ot=n(((e,n)=>{var{pressed:r,prepend:i,append:o,children:a,closeOnClick:l,onClick:s}=e,u=D(e,["pressed","prepend","append","children","closeOnClick","onClick"]);const{close:p}=c($t),m=d((e=>{s&&s(e),l&&p()}),[l,p,s]),h=t.isValidElement(i)&&i.type===le?t.cloneElement(i,{color:i.props.color||"currentColor",size:"md"}):i;return t.createElement("button",Object.assign({type:"button"},u,{ref:n,"data-pressed":r,onClick:m}),h&&t.createElement(Vt,null,h),t.createElement(Ht,null,a),o&&t.createElement(St,null,o))}));Ot.displayName="ContextMenu2ButtonItem";const Dt=v(Ot)`
|
|
206
206
|
${At}
|
|
207
207
|
${Lt}
|
|
208
208
|
gap: 6px;
|
|
@@ -408,12 +408,12 @@ import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRe
|
|
|
408
408
|
gap: 8px;
|
|
409
409
|
flex-shrink: 0;
|
|
410
410
|
margin-left: auto;
|
|
411
|
-
`,cn=n((({placeholder:e="フィルターを追加",disabled:n=!1,isOpen:r=!1,onClick:i,appliedFilters:o=[],selectionMode:a="menu",filterSlots:l=[],onEditFilter:s,onSlotClick:c,onRemoveFilter:d,onClearAll:u,size:p="medium",variant:m="light",width:h="100%"},g)=>{const f="presetSlots"===a,b="light"===m?"dark":"light",v=f?l.some((e=>null!==e.filter)):o.length>0,x=e=>{null==s||s(e)},y=e=>{null==d||d(e)},w=e=>{0===e.button&&("mouse"!==e.pointerType&&"touch"!==e.pointerType||e.preventDefault())},C=()=>l.map((e=>{if(null!==e.filter&&e.filter){const n=e.filter,r=st(n),i=ht(n);return t.createElement(ze,{key:e.slotId,"aria-label":`フィルターを編集: ${r}`,label:r,boldText:i,size:p,variant:b,className:Ft,"data-tag":e.slotId,onPointerDown:w,onClick:()=>x(n),onRemove:()=>y(n.id)})}return t.createElement(ze,{key:e.slotId,"aria-label":`${e.typeLabel}の条件を設定`,label:e.typeLabel,size:p,variant:b,disabled:n||e.disabled,"data-tag":e.slotId,onPointerDown:w,onClick:()=>{return t=e.type,r=e.disabled,void(n||r||null==c||c(t));var t,r}})}));return t.createElement(Gt,{ref:g,"aria-label":f?"フィルター条件":o.length>0?`フィルターを追加(現在${o.length}個適用中)`:e,"aria-expanded":f?void 0:r,"aria-haspopup":f?void 0:"menu","data-advanced-filter-trigger":"true","data-disabled":n,role:f?"group":"button",tabIndex:f||n?-1:0,$size:p,$variant:m,$width:h,onClick:e=>{f||null==i||i(e)},onKeyDown:e=>{f||n||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),null==i||i())}},t.createElement(jt,null,t.createElement(le,{name:"filter",size:Ne[p].iconSize,"data-icon":"filter"})),t.createElement(Yt,null,f?C():o.length>0?o.map((e=>{const n=st(e),r=ht(e);return t.createElement(ze,{key:e.id,"aria-label":`フィルターを編集: ${n}`,label:n,boldText:r,size:p,variant:b,"data-tag":e.id,onPointerDown:w,onClick:()=>x(e),onRemove:()=>y(e.id)})})):t.createElement(Wt,null,e)),t.createElement(Xt,{$size:p},u&&v&&t.createElement(Jt,{type:"button","aria-label":"すべてのフィルターをクリア",$size:p,onClick:e=>{e.stopPropagation(),null==u||u()}},t.createElement(le,{name:"close_circle",type:"fill",color:"currentColor",size:Ne[p].iconSize}))))}));function dn(e){return mn(e)?(e.nodeName||"").toLowerCase():"#document"}function un(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function pn(e){var t;return null==(t=(mn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function mn(e){return e instanceof Node||e instanceof un(e).Node}function hn(e){return e instanceof Element||e instanceof un(e).Element}function gn(e){return e instanceof HTMLElement||e instanceof un(e).HTMLElement}function fn(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof un(e).ShadowRoot)}function bn(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Cn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function vn(e){return["table","td","th"].includes(dn(e))}function xn(e){const t=yn(),n=Cn(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 yn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function wn(e){return["html","body","#document"].includes(dn(e))}function Cn(e){return un(e).getComputedStyle(e)}function En(e){return hn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function In(e){if("html"===dn(e))return e;const t=e.assignedSlot||e.parentNode||fn(e)&&e.host||pn(e);return fn(t)?t.host:t}function kn(e){const t=In(e);return wn(t)?e.ownerDocument?e.ownerDocument.body:e.body:gn(t)&&bn(t)?t:kn(t)}function Mn(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=kn(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=un(i);return o?t.concat(a,a.visualViewport||[],bn(i)?i:[],a.frameElement&&n?Mn(a.frameElement):[]):t.concat(i,Mn(i,[],n))}function $n(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 An(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&fn(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ln(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Vn(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Sn()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Hn(e){return!Sn()&&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 On(){return/apple/i.test(navigator.vendor)}function Sn(){const e=/android/i;return e.test(Ln())||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 Dn(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Rn(e){return(null==e?void 0:e.ownerDocument)||document}function zn(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 Nn(e){return"composedPath"in e?e.composedPath()[0]:e.target}cn.displayName="AdvancedFilterTrigger";const Tn="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Zn(e){return gn(e)&&e.matches(Tn)}function Bn(e){e.preventDefault(),e.stopPropagation()}const Pn=["start","end"],_n=["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-"+Pn[0],t+"-"+Pn[1])),[]),Gn=Math.min,jn=Math.max,Fn=Math.round,Yn=Math.floor,Wn=e=>({x:e,y:e}),Xn={left:"right",right:"left",bottom:"top",top:"bottom"},Jn={start:"end",end:"start"};function Un(e,t,n){return jn(e,Gn(t,n))}function Qn(e,t){return"function"==typeof e?e(t):e}function qn(e){return e.split("-")[0]}function Kn(e){return e.split("-")[1]}function er(e){return"x"===e?"y":"x"}function tr(e){return"y"===e?"height":"width"}function nr(e){return["top","bottom"].includes(qn(e))?"y":"x"}function rr(e){return er(nr(e))}function ir(e,t,n){void 0===n&&(n=!1);const r=Kn(e),i=rr(e),o=tr(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ar(a)),[a,ar(a)]}function or(e){return e.replace(/start|end/g,(e=>Jn[e]))}function ar(e){return e.replace(/left|right|bottom|top/g,(e=>Xn[e]))}function lr(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 sr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function cr(e,t,n){let{reference:r,floating:i}=e;const o=nr(t),a=rr(t),l=tr(a),s=qn(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(Kn(t)){case"start":m[a]-=p*(n&&c?-1:1);break;case"end":m[a]+=p*(n&&c?-1:1)}return m}async function dr(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}=Qn(t,e),h=lr(m),g=l[p?"floating"===u?"reference":"floating":u],f=sr(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.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=sr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:s}):b);return{top:(f.top-y.top+h.top)/x.y,bottom:(y.bottom-f.bottom+h.bottom)/x.y,left:(f.left-y.left+h.left)/x.x,right:(y.right-f.right+h.right)/x.x}}const ur=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}=Qn(e,t)||{};if(null==c)return{};const u=lr(d),p={x:n,y:r},m=rr(i),h=tr(m),g=await a.getDimensions(c),f="y"===m,b=f?"top":"left",v=f?"bottom":"right",x=f?"clientHeight":"clientWidth",y=o.reference[h]+o.reference[m]-p[m]-o.floating[h],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[h]);const I=y/2-w/2,k=E/2-g[h]/2-1,M=Gn(u[b],k),$=Gn(u[v],k),A=M,L=E-g[h]-$,V=E/2-g[h]/2+I,H=Un(A,V,L),O=!s.arrow&&null!=Kn(i)&&V!=H&&o.reference[h]/2-(V<A?M:$)-g[h]/2<0,S=O?V<A?V-A:V-L:0;return{[m]:p[m]+S,data:{[m]:H,centerOffset:V-H-S,...O&&{alignmentOffset:S}},reset:O}}});const pr=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=_n,autoAlignment:m=!0,...h}=Qn(e,t),g=void 0!==u||p===_n?function(e,t,n){return(e?[...n.filter((t=>Kn(t)===e)),...n.filter((t=>Kn(t)!==e))]:n.filter((e=>qn(e)===e))).filter((n=>!e||Kn(n)===e||!!t&&or(n)!==n))}(u||null,m,p):p,f=await dr(t,h),b=(null==(n=a.autoPlacement)?void 0:n.index)||0,v=g[b];if(null==v)return{};const x=ir(v,o,await(null==s.isRTL?void 0:s.isRTL(c.floating)));if(l!==v)return{reset:{placement:g[0]}};const y=[f[qn(v)],f[x[0]],f[x[1]]],w=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:v,overflows:y}],C=g[b+1];if(C)return{data:{index:b+1,overflows:w},reset:{placement:C}};const E=w.map((e=>{const t=Kn(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,Kn(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}}:{}}}},mr=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:h="none",flipAlignment:g=!0,...f}=Qn(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const b=qn(i),v=qn(l)===l,x=await(null==s.isRTL?void 0:s.isRTL(c.floating)),y=p||(v||!g?[ar(l)]:function(e){const t=ar(e);return[or(e),t,or(t)]}(l));p||"none"===h||y.push(...function(e,t,n,r){const i=Kn(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[]}}(qn(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(or)))),o}(l,g,h,x));const w=[l,...y],C=await dr(t,f),E=[];let I=(null==(r=o.flip)?void 0:r.overflows)||[];if(d&&E.push(C[b]),u){const e=ir(i,a,x);E.push(C[e[0]],C[e[1]])}if(I=[...I,{placement:i,overflows:E}],!E.every((e=>e<=0))){var k,M;const e=((null==(k=o.flip)?void 0:k.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(M=I.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:M.placement;if(!n)switch(m){case"bestFit":{var $;const e=null==($=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:$[0];e&&(n=e);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};const hr=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=qn(n),l=Kn(n),s="y"===nr(n),c=["left","top"].includes(a)?-1:1,d=o&&s?-1:1,u=Qn(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:h}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&"number"==typeof h&&(m="end"===l?-1*h:h),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}}}},gr=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}=Qn(e,t),c={x:n,y:r},d=await dr(t,s),u=nr(qn(i)),p=er(u);let m=c[p],h=c[u];if(o){const e="y"===p?"bottom":"right";m=Un(m+d["y"===p?"top":"left"],m,m-d[e])}if(a){const e="y"===u?"bottom":"right";h=Un(h+d["y"===u?"top":"left"],h,h-d[e])}const g=l.fn({...t,[p]:m,[u]:h});return{...g,data:{x:g.x-n,y:g.y-r}}}}},fr=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}=Qn(e,t),s=await dr(t,l),c=qn(n),d=Kn(n),u="y"===nr(n),{width:p,height:m}=r.floating;let h,g;"top"===c||"bottom"===c?(h=c,g=d===(await(null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(g=c,h="end"===d?"top":"bottom");const f=m-s[h],b=p-s[g],v=!t.middlewareData.shift;let x=f,y=b;if(u){const e=p-s.left-s.right;y=d||v?Gn(b,e):e}else{const e=m-s.top-s.bottom;x=d||v?Gn(f,e):e}if(v&&!d){const e=jn(s.left,0),t=jn(s.right,0),n=jn(s.top,0),r=jn(s.bottom,0);u?y=p-2*(0!==e||0!==t?e+t:jn(s.left,s.right)):x=m-2*(0!==n||0!==r?n+r:jn(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 br(e){const t=Cn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=gn(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=Fn(n)!==o||Fn(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function vr(e){return hn(e)?e:e.contextElement}function xr(e){const t=vr(e);if(!gn(t))return Wn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=br(t);let a=(o?Fn(n.width):n.width)/r,l=(o?Fn(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const yr=Wn(0);function wr(e){const t=un(e);return yn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:yr}function Cr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=vr(e);let a=Wn(1);t&&(r?hn(r)&&(a=xr(r)):a=xr(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==un(e))&&t}(o,n,r)?wr(o):Wn(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=un(o),t=r&&hn(r)?un(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=xr(n),t=n.getBoundingClientRect(),r=Cn(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=un(n).frameElement}}return sr({width:d,height:u,x:s,y:c})}function Er(e){return Cr(pn(e)).left+En(e).scrollLeft}function Ir(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=un(e),r=pn(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=yn();(!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=pn(e),n=En(e),r=e.ownerDocument.body,i=jn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=jn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Er(e);const l=-n.scrollTop;return"rtl"===Cn(r).direction&&(a+=jn(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}(pn(e));else if(hn(t))r=function(e,t){const n=Cr(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=gn(e)?xr(e):Wn(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=wr(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return sr(r)}function kr(e,t){const n=In(e);return!(n===t||!hn(n)||wn(n))&&("fixed"===Cn(n).position||kr(n,t))}function Mr(e,t,n){const r=gn(t),i=pn(t),o="fixed"===n,a=Cr(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const s=Wn(0);if(r||!r&&!o)if(("body"!==dn(t)||bn(i))&&(l=En(t)),r){const e=Cr(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Er(i));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function $r(e,t){return gn(e)&&"fixed"!==Cn(e).position?t?t(e):e.offsetParent:null}function Ar(e,t){const n=un(e);if(!gn(e))return n;let r=$r(e,t);for(;r&&vn(r)&&"static"===Cn(r).position;)r=$r(r,t);return r&&("html"===dn(r)||"body"===dn(r)&&"static"===Cn(r).position&&!xn(r))?n:r||function(e){let t=In(e);for(;gn(t)&&!wn(t);){if(xn(t))return t;t=In(t)}return null}(e)||n}const Lr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=gn(n),o=pn(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},l=Wn(1);const s=Wn(0);if((i||!i&&"fixed"!==r)&&(("body"!==dn(n)||bn(o))&&(a=En(n)),gn(n))){const e=Cr(n);l=xr(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:pn,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=Mn(e,[],!1).filter((e=>hn(e)&&"body"!==dn(e))),i=null;const o="fixed"===Cn(e).position;let a=o?In(e):e;for(;hn(a)&&!wn(a);){const t=Cn(a),n=xn(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||bn(a)&&!n&&kr(e,a))?r=r.filter((e=>e!==a)):i=t,a=In(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],l=o.reduce(((e,n)=>{const r=Ir(t,n,i);return e.top=jn(r.top,e.top),e.right=Gn(r.right,e.right),e.bottom=Gn(r.bottom,e.bottom),e.left=jn(r.left,e.left),e}),Ir(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ar,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||Ar,o=this.getDimensions;return{reference:Mr(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 br(e)},getScale:xr,isElement:hn,isRTL:function(e){return"rtl"===Cn(e).direction}};function Vr(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=vr(e),d=i||o?[...c?Mn(c):[],...Mn(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=pn(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:-Yn(d)+"px "+-Yn(i.clientWidth-(c+u))+"px "+-Yn(i.clientHeight-(d+p))+"px "+-Yn(c)+"px",threshold:jn(0,Gn(1,s))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(g,{...m,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),o}(c,n):null;let p,m=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{h&&h.observe(t)}))),n()})),c&&!s&&h.observe(c),h.observe(t));let g=s?Cr(e):null;return s&&function t(){const r=Cr(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,p=requestAnimationFrame(t)}(),n(),()=>{d.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),u&&u(),h&&h.disconnect(),h=null,s&&cancelAnimationFrame(p)}}const Hr=(e,t,n)=>{const r=new Map,i={platform:Lr,...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}=cr(c,r,s),p=r,m={},h=0;for(let n=0;n<l.length;n++){const{name:o,fn:g}=l[n],{x:f,y:b,data:v,reset:x}=await g({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&&h<=50&&(h++,"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}=cr(c,p,s))),n=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:m}})(e,t,{...i,platform:o})},Or=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?ur({element:n.current,padding:r}).fn(t):{}:n?ur({element:n,padding:r}).fn(t):{};var i}});var Sr="undefined"!=typeof document?u:a;function Dr(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(!Dr(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)&&!Dr(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Rr(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zr(e,t){const n=Rr(e);return Math.round(t*n)/n}function Nr(t){const n=e.useRef(t);return Sr((()=>{n.current=t})),n}
|
|
411
|
+
`,cn=n((({placeholder:e="フィルターを追加",disabled:n=!1,isOpen:r=!1,onClick:i,appliedFilters:o=[],selectionMode:a="menu",filterSlots:l=[],onEditFilter:s,onSlotClick:c,onRemoveFilter:d,onClearAll:u,size:p="medium",variant:m="light",width:h="100%"},g)=>{const f="presetSlots"===a,b="light"===m?"dark":"light",v=f?l.some((e=>null!==e.filter)):o.length>0,x=e=>{null==s||s(e)},y=e=>{null==d||d(e)},w=e=>{0===e.button&&("mouse"!==e.pointerType&&"touch"!==e.pointerType||e.preventDefault())},C=()=>l.map((e=>{if(null!==e.filter&&e.filter){const n=e.filter,r=st(n),i=ht(n);return t.createElement(ze,{key:e.slotId,"aria-label":`フィルターを編集: ${r}`,label:r,boldText:i,size:p,variant:b,className:Ft,"data-tag":e.slotId,onPointerDown:w,onClick:()=>x(n),onRemove:()=>y(n.id)})}return t.createElement(ze,{key:e.slotId,"aria-label":`${e.typeLabel}の条件を設定`,label:e.typeLabel,size:p,variant:b,disabled:n||e.disabled,"data-tag":e.slotId,onPointerDown:w,onClick:()=>{return t=e.type,r=e.disabled,void(n||r||null==c||c(t));var t,r}})}));return t.createElement(Gt,{ref:g,"aria-label":f?"フィルター条件":o.length>0?`フィルターを追加(現在${o.length}個適用中)`:e,"aria-expanded":f?void 0:r,"aria-haspopup":f?void 0:"menu","data-advanced-filter-trigger":"true","data-disabled":n,role:f?"group":"button",tabIndex:f||n?-1:0,$size:p,$variant:m,$width:h,onClick:e=>{f||null==i||i(e)},onKeyDown:e=>{f||n||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),null==i||i())}},t.createElement(jt,null,t.createElement(le,{name:"filter",size:Ne[p].iconSize,"data-icon":"filter"})),t.createElement(Yt,null,f?C():o.length>0?o.map((e=>{const n=st(e),r=ht(e);return t.createElement(ze,{key:e.id,"aria-label":`フィルターを編集: ${n}`,label:n,boldText:r,size:p,variant:b,"data-tag":e.id,onPointerDown:w,onClick:()=>x(e),onRemove:()=>y(e.id)})})):t.createElement(Wt,null,e)),t.createElement(Xt,{$size:p},u&&v&&t.createElement(Jt,{type:"button","aria-label":"すべてのフィルターをクリア",$size:p,onClick:e=>{e.stopPropagation(),null==u||u()}},t.createElement(le,{name:"close_circle",type:"fill",color:"currentColor",size:Ne[p].iconSize}))))}));function dn(e){return mn(e)?(e.nodeName||"").toLowerCase():"#document"}function un(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function pn(e){var t;return null==(t=(mn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function mn(e){return e instanceof Node||e instanceof un(e).Node}function hn(e){return e instanceof Element||e instanceof un(e).Element}function gn(e){return e instanceof HTMLElement||e instanceof un(e).HTMLElement}function fn(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof un(e).ShadowRoot)}function bn(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Cn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function vn(e){return["table","td","th"].includes(dn(e))}function xn(e){const t=yn(),n=Cn(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 yn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function wn(e){return["html","body","#document"].includes(dn(e))}function Cn(e){return un(e).getComputedStyle(e)}function En(e){return hn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function In(e){if("html"===dn(e))return e;const t=e.assignedSlot||e.parentNode||fn(e)&&e.host||pn(e);return fn(t)?t.host:t}function kn(e){const t=In(e);return wn(t)?e.ownerDocument?e.ownerDocument.body:e.body:gn(t)&&bn(t)?t:kn(t)}function Mn(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=kn(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=un(i);return o?t.concat(a,a.visualViewport||[],bn(i)?i:[],a.frameElement&&n?Mn(a.frameElement):[]):t.concat(i,Mn(i,[],n))}function $n(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 An(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&fn(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ln(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Vn(e){return!(0!==e.mozInputSource||!e.isTrusted)||(On()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Hn(e){return!On()&&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 Sn(){return/apple/i.test(navigator.vendor)}function On(){const e=/android/i;return e.test(Ln())||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 Dn(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Rn(e){return(null==e?void 0:e.ownerDocument)||document}function zn(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 Nn(e){return"composedPath"in e?e.composedPath()[0]:e.target}cn.displayName="AdvancedFilterTrigger";const Tn="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Zn(e){return gn(e)&&e.matches(Tn)}function Bn(e){e.preventDefault(),e.stopPropagation()}const Pn=["start","end"],_n=["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-"+Pn[0],t+"-"+Pn[1])),[]),Gn=Math.min,jn=Math.max,Fn=Math.round,Yn=Math.floor,Wn=e=>({x:e,y:e}),Xn={left:"right",right:"left",bottom:"top",top:"bottom"},Jn={start:"end",end:"start"};function Un(e,t,n){return jn(e,Gn(t,n))}function Qn(e,t){return"function"==typeof e?e(t):e}function qn(e){return e.split("-")[0]}function Kn(e){return e.split("-")[1]}function er(e){return"x"===e?"y":"x"}function tr(e){return"y"===e?"height":"width"}function nr(e){return["top","bottom"].includes(qn(e))?"y":"x"}function rr(e){return er(nr(e))}function ir(e,t,n){void 0===n&&(n=!1);const r=Kn(e),i=rr(e),o=tr(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ar(a)),[a,ar(a)]}function or(e){return e.replace(/start|end/g,(e=>Jn[e]))}function ar(e){return e.replace(/left|right|bottom|top/g,(e=>Xn[e]))}function lr(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 sr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function cr(e,t,n){let{reference:r,floating:i}=e;const o=nr(t),a=rr(t),l=tr(a),s=qn(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(Kn(t)){case"start":m[a]-=p*(n&&c?-1:1);break;case"end":m[a]+=p*(n&&c?-1:1)}return m}async function dr(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}=Qn(t,e),h=lr(m),g=l[p?"floating"===u?"reference":"floating":u],f=sr(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.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=sr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:s}):b);return{top:(f.top-y.top+h.top)/x.y,bottom:(y.bottom-f.bottom+h.bottom)/x.y,left:(f.left-y.left+h.left)/x.x,right:(y.right-f.right+h.right)/x.x}}const ur=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}=Qn(e,t)||{};if(null==c)return{};const u=lr(d),p={x:n,y:r},m=rr(i),h=tr(m),g=await a.getDimensions(c),f="y"===m,b=f?"top":"left",v=f?"bottom":"right",x=f?"clientHeight":"clientWidth",y=o.reference[h]+o.reference[m]-p[m]-o.floating[h],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[h]);const I=y/2-w/2,k=E/2-g[h]/2-1,M=Gn(u[b],k),$=Gn(u[v],k),A=M,L=E-g[h]-$,V=E/2-g[h]/2+I,H=Un(A,V,L),S=!s.arrow&&null!=Kn(i)&&V!=H&&o.reference[h]/2-(V<A?M:$)-g[h]/2<0,O=S?V<A?V-A:V-L:0;return{[m]:p[m]+O,data:{[m]:H,centerOffset:V-H-O,...S&&{alignmentOffset:O}},reset:S}}});const pr=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=_n,autoAlignment:m=!0,...h}=Qn(e,t),g=void 0!==u||p===_n?function(e,t,n){return(e?[...n.filter((t=>Kn(t)===e)),...n.filter((t=>Kn(t)!==e))]:n.filter((e=>qn(e)===e))).filter((n=>!e||Kn(n)===e||!!t&&or(n)!==n))}(u||null,m,p):p,f=await dr(t,h),b=(null==(n=a.autoPlacement)?void 0:n.index)||0,v=g[b];if(null==v)return{};const x=ir(v,o,await(null==s.isRTL?void 0:s.isRTL(c.floating)));if(l!==v)return{reset:{placement:g[0]}};const y=[f[qn(v)],f[x[0]],f[x[1]]],w=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:v,overflows:y}],C=g[b+1];if(C)return{data:{index:b+1,overflows:w},reset:{placement:C}};const E=w.map((e=>{const t=Kn(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,Kn(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}}:{}}}},mr=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:h="none",flipAlignment:g=!0,...f}=Qn(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const b=qn(i),v=qn(l)===l,x=await(null==s.isRTL?void 0:s.isRTL(c.floating)),y=p||(v||!g?[ar(l)]:function(e){const t=ar(e);return[or(e),t,or(t)]}(l));p||"none"===h||y.push(...function(e,t,n,r){const i=Kn(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[]}}(qn(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(or)))),o}(l,g,h,x));const w=[l,...y],C=await dr(t,f),E=[];let I=(null==(r=o.flip)?void 0:r.overflows)||[];if(d&&E.push(C[b]),u){const e=ir(i,a,x);E.push(C[e[0]],C[e[1]])}if(I=[...I,{placement:i,overflows:E}],!E.every((e=>e<=0))){var k,M;const e=((null==(k=o.flip)?void 0:k.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(M=I.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:M.placement;if(!n)switch(m){case"bestFit":{var $;const e=null==($=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:$[0];e&&(n=e);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};const hr=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=qn(n),l=Kn(n),s="y"===nr(n),c=["left","top"].includes(a)?-1:1,d=o&&s?-1:1,u=Qn(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:h}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&"number"==typeof h&&(m="end"===l?-1*h:h),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}}}},gr=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}=Qn(e,t),c={x:n,y:r},d=await dr(t,s),u=nr(qn(i)),p=er(u);let m=c[p],h=c[u];if(o){const e="y"===p?"bottom":"right";m=Un(m+d["y"===p?"top":"left"],m,m-d[e])}if(a){const e="y"===u?"bottom":"right";h=Un(h+d["y"===u?"top":"left"],h,h-d[e])}const g=l.fn({...t,[p]:m,[u]:h});return{...g,data:{x:g.x-n,y:g.y-r}}}}},fr=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}=Qn(e,t),s=await dr(t,l),c=qn(n),d=Kn(n),u="y"===nr(n),{width:p,height:m}=r.floating;let h,g;"top"===c||"bottom"===c?(h=c,g=d===(await(null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(g=c,h="end"===d?"top":"bottom");const f=m-s[h],b=p-s[g],v=!t.middlewareData.shift;let x=f,y=b;if(u){const e=p-s.left-s.right;y=d||v?Gn(b,e):e}else{const e=m-s.top-s.bottom;x=d||v?Gn(f,e):e}if(v&&!d){const e=jn(s.left,0),t=jn(s.right,0),n=jn(s.top,0),r=jn(s.bottom,0);u?y=p-2*(0!==e||0!==t?e+t:jn(s.left,s.right)):x=m-2*(0!==n||0!==r?n+r:jn(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 br(e){const t=Cn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=gn(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=Fn(n)!==o||Fn(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function vr(e){return hn(e)?e:e.contextElement}function xr(e){const t=vr(e);if(!gn(t))return Wn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=br(t);let a=(o?Fn(n.width):n.width)/r,l=(o?Fn(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const yr=Wn(0);function wr(e){const t=un(e);return yn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:yr}function Cr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=vr(e);let a=Wn(1);t&&(r?hn(r)&&(a=xr(r)):a=xr(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==un(e))&&t}(o,n,r)?wr(o):Wn(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=un(o),t=r&&hn(r)?un(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=xr(n),t=n.getBoundingClientRect(),r=Cn(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=un(n).frameElement}}return sr({width:d,height:u,x:s,y:c})}function Er(e){return Cr(pn(e)).left+En(e).scrollLeft}function Ir(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=un(e),r=pn(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=yn();(!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=pn(e),n=En(e),r=e.ownerDocument.body,i=jn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=jn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Er(e);const l=-n.scrollTop;return"rtl"===Cn(r).direction&&(a+=jn(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}(pn(e));else if(hn(t))r=function(e,t){const n=Cr(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=gn(e)?xr(e):Wn(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=wr(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return sr(r)}function kr(e,t){const n=In(e);return!(n===t||!hn(n)||wn(n))&&("fixed"===Cn(n).position||kr(n,t))}function Mr(e,t,n){const r=gn(t),i=pn(t),o="fixed"===n,a=Cr(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const s=Wn(0);if(r||!r&&!o)if(("body"!==dn(t)||bn(i))&&(l=En(t)),r){const e=Cr(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Er(i));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function $r(e,t){return gn(e)&&"fixed"!==Cn(e).position?t?t(e):e.offsetParent:null}function Ar(e,t){const n=un(e);if(!gn(e))return n;let r=$r(e,t);for(;r&&vn(r)&&"static"===Cn(r).position;)r=$r(r,t);return r&&("html"===dn(r)||"body"===dn(r)&&"static"===Cn(r).position&&!xn(r))?n:r||function(e){let t=In(e);for(;gn(t)&&!wn(t);){if(xn(t))return t;t=In(t)}return null}(e)||n}const Lr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=gn(n),o=pn(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},l=Wn(1);const s=Wn(0);if((i||!i&&"fixed"!==r)&&(("body"!==dn(n)||bn(o))&&(a=En(n)),gn(n))){const e=Cr(n);l=xr(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:pn,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=Mn(e,[],!1).filter((e=>hn(e)&&"body"!==dn(e))),i=null;const o="fixed"===Cn(e).position;let a=o?In(e):e;for(;hn(a)&&!wn(a);){const t=Cn(a),n=xn(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||bn(a)&&!n&&kr(e,a))?r=r.filter((e=>e!==a)):i=t,a=In(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],l=o.reduce(((e,n)=>{const r=Ir(t,n,i);return e.top=jn(r.top,e.top),e.right=Gn(r.right,e.right),e.bottom=Gn(r.bottom,e.bottom),e.left=jn(r.left,e.left),e}),Ir(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ar,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||Ar,o=this.getDimensions;return{reference:Mr(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 br(e)},getScale:xr,isElement:hn,isRTL:function(e){return"rtl"===Cn(e).direction}};function Vr(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=vr(e),d=i||o?[...c?Mn(c):[],...Mn(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=pn(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:-Yn(d)+"px "+-Yn(i.clientWidth-(c+u))+"px "+-Yn(i.clientHeight-(d+p))+"px "+-Yn(c)+"px",threshold:jn(0,Gn(1,s))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(g,{...m,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),o}(c,n):null;let p,m=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{h&&h.observe(t)}))),n()})),c&&!s&&h.observe(c),h.observe(t));let g=s?Cr(e):null;return s&&function t(){const r=Cr(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,p=requestAnimationFrame(t)}(),n(),()=>{d.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),u&&u(),h&&h.disconnect(),h=null,s&&cancelAnimationFrame(p)}}const Hr=(e,t,n)=>{const r=new Map,i={platform:Lr,...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}=cr(c,r,s),p=r,m={},h=0;for(let n=0;n<l.length;n++){const{name:o,fn:g}=l[n],{x:f,y:b,data:v,reset:x}=await g({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&&h<=50&&(h++,"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}=cr(c,p,s))),n=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:m}})(e,t,{...i,platform:o})},Sr=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?ur({element:n.current,padding:r}).fn(t):{}:n?ur({element:n,padding:r}).fn(t):{};var i}});var Or="undefined"!=typeof document?u:a;function Dr(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(!Dr(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)&&!Dr(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Rr(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zr(e,t){const n=Rr(e);return Math.round(t*n)/n}function Nr(t){const n=e.useRef(t);return Or((()=>{n.current=t})),n}
|
|
412
412
|
/*!
|
|
413
413
|
* tabbable 6.2.0
|
|
414
414
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
415
415
|
*/
|
|
416
|
-
var Tr=["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(","),Zr="undefined"==typeof Element,Br=Zr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Pr=!Zr&&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},_r=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)},Gr=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!_r(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{Br.call(a,Tr)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),d=!_r(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},jr=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Fr=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))&&!jr(e)?0:e.tabIndex},Yr=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Wr=function(e){return"INPUT"===e.tagName},Xr=function(e){return function(e){return Wr(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Pr(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)},Jr=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Ur=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=Br.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Br.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Jr(e)}else{if("function"==typeof r){for(var o=e;e;){var a=e.parentElement,l=Pr(e);if(a&&!a.shadowRoot&&!0===r(a))return Jr(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&&Pr(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=Pr(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},Qr=function(e,t){return!(t.disabled||_r(t)||function(e){return Wr(e)&&"hidden"===e.type}(t)||Ur(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!!Br.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},qr=function(e,t){return!(Xr(t)||Fr(t)<0||!Qr(e,t))},Kr=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},ei=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=Fr(e);return n<0&&t&&!jr(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(Yr).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},ti=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Gr([e],t.includeContainer,{filter:qr.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Kr}):function(e,t,n){if(_r(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Tr));return t&&Br.call(e,Tr)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,qr.bind(null,t)),ei(n)};const ni=e["useInsertionEffect".toString()]||(e=>e());function ri(t){const n=e.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return ni((()=>{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 ii="ArrowUp",oi="ArrowDown",ai="ArrowLeft",li="ArrowRight";function si(e,t,n){return Math.floor(e/t)!==n}function ci(e,t){return t<0||t>=e.current.length}function di(e,t){return pi(e,{disabledIndices:t})}function ui(e,t){return pi(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function pi(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 mi=0;function hi(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(mi);const o=()=>null==e?void 0:e.focus({preventScroll:n});i?o():mi=requestAnimationFrame(o)}var gi="undefined"!=typeof document?u:a;function fi(){return fi=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},fi.apply(this,arguments)}let bi=!1,xi=0;const yi=()=>"floating-ui-"+xi++;const wi=e["useId".toString()]||function(){const[t,n]=e.useState((()=>bi?yi():void 0));return gi((()=>{null==t&&n(yi())}),[]),e.useEffect((()=>{bi||(bi=!0)}),[]),t},Ci=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,...h}={},...g}=t;"production"!==process.env.NODE_ENV&&(n||console.warn("Floating UI: The `ref` prop is required for the `FloatingArrow`","component."));const f=wi();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=Lr.isRTL(i),E=!!p,I="top"===y||"bottom"===y,k=d&&"end"===w?"bottom":"top";let M=d&&"end"===w?"right":"left";d&&C&&(M="end"===w?"left":"right");const $=null!=(null==o?void 0:o.x)?d||o.x:"",A=null!=(null==o?void 0:o.y)?d||o.y:"",L=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",fi({},g,{"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",[M]:$,[k]:A,[y]:I||E?"100%":"calc(100% - "+c/2+"px)",transform:""+V+(null!=m?m:""),...h}}),c>0&&e.createElement("path",{clipPath:"url(#"+f+")",fill:"none",stroke:u,strokeWidth:c+(p?0:1),d:L}),e.createElement("path",{stroke:c&&!p?g.fill:"none",d:L}),e.createElement("clipPath",{id:f},e.createElement("rect",{x:-b,y:b*(E?-1:1),width:a+c,height:a})))}));function Ei(){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 Ii=e.createContext(null),ki=e.createContext(null),Mi=()=>{var t;return(null==(t=e.useContext(Ii))?void 0:t.id)||null},$i=()=>e.useContext(ki);function Ai(t){let{children:n,id:r}=t;const i=Mi();return e.createElement(Ii.Provider,{value:e.useMemo((()=>({id:r,parentId:i})),[r,i])},n)}function Li(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((()=>Ei()))[0];return e.createElement(ki.Provider,{value:e.useMemo((()=>({nodesRef:r,addNode:i,removeNode:o,events:a})),[r,i,o,a])},n)}function Vi(e){return"data-floating-ui-"+e}function Hi(e){const t=o(e);return gi((()=>{t.current=e})),t}const Oi=Vi("safe-polygon");function Si(e,t,n){return n&&!Dn(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Di(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:h=0,move:g=!0}=n,f=$i(),b=Mi(),v=Hi(p),x=Hi(u),y=e.useRef(),w=e.useRef(),C=e.useRef(),E=e.useRef(),I=e.useRef(!0),k=e.useRef(!1),M=e.useRef((()=>{})),$=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){$()&&i(!1,e,"hover")}const t=Rn(s).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[s,r,i,d,v,o,$]);const A=e.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=Si(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]),L=e.useCallback((()=>{M.current(),C.current=void 0}),[]),V=e.useCallback((()=>{if(k.current){const e=Rn(c.floating.current).body;e.style.pointerEvents="",e.removeAttribute(Oi),k.current=!1}}),[c]);return e.useEffect((()=>{if(d&&hn(l)){const e=l;return r&&e.addEventListener("mouseleave",c),null==s||s.addEventListener("mouseleave",c),g&&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),g&&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&&!Dn(y.current)||h>0&&0===Si(x.current,"open"))return;const t=Si(x.current,"open",y.current);t?w.current=setTimeout((()=>{i(!0,e,"hover")}),t):i(!0,e,"hover")}function a(n){if(e())return;M.current();const i=Rn(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(),L(),A(n,!0,"safe-polygon")}});const e=C.current;return i.addEventListener("mousemove",e),void(M.current=()=>{i.removeEventListener("mousemove",e)})}("touch"!==y.current||!An(s,n.relatedTarget))&&A(n)}function c(n){e()||null==v.current||v.current({...t,tree:f,x:n.clientX,y:n.clientY,onClose(){V(),L(),A(n)}})(n)}}),[l,s,d,t,m,h,g,A,L,V,i,r,f,x,v,o]),gi((()=>{var e;if(d&&r&&null!=(e=v.current)&&e.__options.blockPointerEvents&&$()){const e=Rn(s).body;if(e.setAttribute(Oi,""),e.style.pointerEvents="none",k.current=!0,hn(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,$]),gi((()=>{r||(y.current=void 0,L(),V())}),[r,L,V]),e.useEffect((()=>()=>{L(),clearTimeout(w.current),clearTimeout(E.current),V()}),[d,l,L,V]),e.useMemo((()=>{if(!d)return{};function e(e){y.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){r||0===h||(clearTimeout(E.current),E.current=setTimeout((()=>{I.current||i(!0,e.nativeEvent,"hover")}),h))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){A(e.nativeEvent,!1)}}}}),[d,h,r,i,A])}const Ri=e.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),zi=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 gi((()=>{o.currentId?null===l.current?l.current=o.currentId:a({isInstantPhase:!0}):(a({isInstantPhase:!1}),l.current=null)}),[o.currentId]),e.createElement(Ri.Provider,{value:e.useMemo((()=>({...o,setState:a,setCurrentId:s})),[o,a,s])},n)};function Ni(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 Ti=new WeakMap,Zi=new WeakSet,Bi={},Pi=0;const _i=e=>e&&(e.host||_i(e.parentNode)),Gi=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=_i(t);return e.contains(n)?n:null})).filter((e=>null!=e));function ji(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Rn(e[0]).body;return function(e,t,n,r){const i="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,a=Gi(t,e),l=new Set,s=new Set(a),c=[];Bi[i]||(Bi[i]=new WeakMap);const d=Bi[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=(Ti.get(t)||0)+1,a=(d.get(t)||0)+1;Ti.set(t,r),d.set(t,a),c.push(t),1===r&&n&&Zi.add(t),1===a&&t.setAttribute(i,""),!n&&o&&t.setAttribute(o,"true")}}))}(t),l.clear(),Pi++,()=>{c.forEach((e=>{const t=(Ti.get(e)||0)-1,n=(d.get(e)||0)-1;Ti.set(e,t),d.set(e,n),t||(!Zi.has(e)&&o&&e.removeAttribute(o),Zi.delete(e)),n||e.removeAttribute(i)})),Pi--,Pi||(Ti=new WeakMap,Ti=new WeakMap,Zi=new WeakSet,Bi={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Fi=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Yi(e,t){const n=ti(e,Fi());"prev"===t&&n.reverse();const r=n.indexOf($n(Rn(e)));return n.slice(r+1)[0]}function Wi(){return Yi(document.body,"next")}function Xi(){return Yi(document.body,"prev")}function Ji(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!An(n,r)}function Ui(e){ti(e,Fi()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Qi(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 qi={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 Ki(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const eo=e.forwardRef((function(t,n){const[r,i]=e.useState();gi((()=>(On()&&i("button"),document.addEventListener("keydown",Ki),()=>{document.removeEventListener("keydown",Ki)})),[]);const o={ref:n,tabIndex:0,role:r,"aria-hidden":!r||void 0,[Vi("focus-guard")]:"",style:qi};return e.createElement("span",fi({},t,o))})),to=e.createContext(null);function no(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=wi(),l=ro(),s=e.useMemo((()=>({id:n,root:r,portalContext:l,uniqueId:a})),[n,r,l,a]),c=e.useRef();return gi((()=>()=>{null==i||i.remove()}),[i,s]),gi((()=>{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=Vi("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&&!hn(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&&Ji(e)){("focusin"===e.type?Qi:Ui)(a)}}}),[a,o,null==l?void 0:l.modal]),e.createElement(to.Provider,{value:e.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:d,beforeInsideRef:u,afterInsideRef:p,portalNode:a,setFocusManagerState:s})),[o,a])},m&&a&&e.createElement(eo,{"data-type":"outside",ref:c,onFocus:e=>{if(Ji(e,a)){var t;null==(t=u.current)||t.focus()}else{const e=Xi()||(null==l?void 0:l.refs.domReference.current);null==e||e.focus()}}}),m&&a&&e.createElement("span",{"aria-owns":a.id,style:qi}),a&&k(n,a),m&&a&&e.createElement(eo,{"data-type":"outside",ref:d,onFocus:e=>{if(Ji(e,a)){var t;null==(t=p.current)||t.focus()}else{const t=Wi()||(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 ro=()=>e.useContext(to),io=e.forwardRef((function(t,n){return e.createElement("button",fi({},t,{type:"button",ref:n,tabIndex:-1,style:qi}))}));function oo(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:h,onOpenChange:g,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"))&&Zn(v)&&y,C=!w&&c,E="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||a,I=Hi(o),k=Hi(l),M=Hi(s),$=$i(),A=ro(),L=e.useRef(null),V=e.useRef(null),H=e.useRef(!1),O=e.useRef(null),S=e.useRef(!1),D=null!=A,R=e.useCallback((function(e){return void 0===e&&(e=x),e?ti(e,Fi()):[]}),[x]),z=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 N(t){return!i&&d&&C?e.createElement(io,{ref:"start"===t?L:V,onClick:e=>g(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}e.useEffect((()=>{if(i||!C)return;function e(e){if("Tab"===e.key){An(x,$n(Rn(x)))&&0===R().length&&!w&&Bn(e);const t=z(),n=Nn(e);"reference"===I.current[0]&&n===v&&(Bn(e),e.shiftKey?hi(t[t.length-1]):hi(t[1])),"floating"===I.current[1]&&n===x&&e.shiftKey&&(Bn(e),hi(t[0]))}}const t=Rn(x);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[i,v,x,C,I,m,w,R,z]),e.useEffect((()=>{if(!i&&u)return x&&gn(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(){S.current=!0,setTimeout((()=>{S.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(An(v,t)||An(x,t)||An(t,x)||An(null==A?void 0:A.portalNode,t)||null!=t&&t.hasAttribute(Vi("focus-guard"))||$&&(Ni($.nodesRef.current,h).find((e=>{var n,r;return An(null==(n=e.context)?void 0:n.elements.floating,t)||An(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}($.nodesRef.current,h).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&&!S.current&&t!==O.current&&(H.current=!0,g(!1,e))}))}}),[i,v,x,C,h,$,A,g,u]),e.useEffect((()=>{var e;if(i)return;const t=Array.from((null==A||null==(e=A.portalNode)?void 0:e.querySelectorAll("["+Vi("portal")+"]"))||[]);if(x){const e=[x,...t,L.current,V.current,I.current.includes("reference")||w?v:null].filter((e=>null!=e)),n=c||w?ji(e,E,!E):ji(e);return()=>{n()}}}),[i,v,x,c,I,A,w,E]),gi((()=>{if(i||!x)return;const e=$n(Rn(x));queueMicrotask((()=>{const t=z(x),n=k.current,r=("number"==typeof n?t[n]:n.current)||x,i=An(x,e);y||i||!p||hi(r,{preventScroll:r===x})}))}),[i,p,x,y,z,k]),gi((()=>{if(i||!x)return;let e=!1;const t=Rn(x),n=$n(t),r=b.current;function o(t){let{reason:n,event:r,nested:i}=t;"escape-key"===n&&m.domReference.current&&(O.current=m.domReference.current),"hover"===n&&"mouseleave"===r.type&&(H.current=!0),"outside-press"===n&&(i?(H.current=!1,e=!0):H.current=!(Vn(r)||Hn(r)))}return O.current=n,f.on("openchange",o),()=>{f.off("openchange",o);const i=$n(t),a=An(x,i)||$&&Ni($.nodesRef.current,h).some((e=>{var t;return An(null==(t=e.context)?void 0:t.elements.floating,i)}));(a||r.openEvent&&["click","mousedown"].includes(r.openEvent.type))&&m.domReference.current&&(O.current=m.domReference.current),M.current&&gn(O.current)&&!H.current&&(n===i||i===t.body||a)&&hi(O.current,{cancelPrevious:!1,preventScroll:e})}}),[i,x,M,b,m,f,$,h]),gi((()=>{if(!i&&A)return A.setFocusManagerState({modal:C,closeOnFocusOut:u,open:p,onOpenChange:g,refs:m}),()=>{A.setFocusManagerState(null)}}),[i,A,C,p,g,m,u]),gi((()=>{if(i||!x||"function"!=typeof MutationObserver||y)return;const e=()=>{const e=x.getAttribute("tabindex");I.current.includes("floating")||$n(Rn(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&&(D||C);return e.createElement(e.Fragment,null,T&&e.createElement(eo,{"data-type":"inside",ref:null==A?void 0:A.beforeInsideRef,onFocus:e=>{if(C){const e=z();hi("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(H.current=!1,Ji(e,A.portalNode)){const e=Wi()||v;null==e||e.focus()}else{var t;null==(t=A.beforeOutsideRef.current)||t.focus()}}}),!w&&N("start"),r,N("end"),T&&e.createElement(eo,{"data-type":"inside",ref:null==A?void 0:A.afterInsideRef,onFocus:e=>{if(C)hi(z()[0]);else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(u&&(H.current=!0),Ji(e,A.portalNode)){const e=Xi()||v;null==e||e.focus()}else{var t;null==(t=A.afterOutsideRef.current)||t.focus()}}}))}function ao(e){return gn(e.target)&&"BUTTON"===e.target.tagName}function lo(e){return Zn(e)}const so={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},co={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},uo=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 po(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:h=!1,referencePressEvent:g="pointerdown",ancestorScroll:f=!1,bubbles:b,capture:v}=n,x=$i(),y=ri("function"==typeof p?p:()=>!1),w="function"==typeof p?y:p,C=e.useRef(!1),E=e.useRef(!1),{escapeKey:I,outsidePress:k}=uo(b),{escapeKey:M,outsidePress:$}=uo(v),A=ri((e=>{if(!r||!d||!u||"Escape"!==e.key)return;const t=x?Ni(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")})),L=ri((e=>{var t;const n=()=>{var t;A(e),null==(t=Nn(e))||t.removeEventListener("keydown",n)};null==(t=Nn(e))||t.addEventListener("keydown",n)})),V=ri((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=Nn(e),a="["+Vi("inert")+"]",c=Rn(s).querySelectorAll(a);let d=hn(r)?r:null;for(;d&&!wn(d);){const e=In(d);if(e===Rn(s).body||!hn(e))break;d=e}if(c.length&&hn(r)&&!r.matches("html,body")&&!An(r,s)&&Array.from(c).every((e=>!An(d,e))))return;if(gn(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"===Cn(r).direction&&(i=e.offsetX<=r.offsetWidth-r.clientWidth)}if(i||t&&e.offsetY>r.clientHeight)return}const u=x&&Ni(x.nodesRef.current,o).some((t=>{var n;return zn(e,null==(n=t.context)?void 0:n.elements.floating)}));if(zn(e,s)||zn(e,l)||u)return;const p=x?Ni(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")})),H=ri((e=>{var t;const n=()=>{var t;V(e),null==(t=Nn(e))||t.removeEventListener(m,n)};null==(t=Nn(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=k;const t=Rn(s);u&&t.addEventListener("keydown",M?L:A,M),w&&t.addEventListener(m,$?H:V,$);let n=[];return f&&(hn(l)&&(n=Mn(l)),hn(s)&&(n=n.concat(Mn(s))),!hn(a)&&a&&a.contextElement&&(n=n.concat(Mn(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",M?L:A,M),w&&t.removeEventListener(m,$?H:V,$),n.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[c,s,l,a,u,w,m,r,i,f,d,I,k,A,M,L,V,$,H]),e.useEffect((()=>{C.current=!1}),[w,m]),e.useMemo((()=>d?{reference:{onKeyDown:A,[so[g]]:e=>{h&&i(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:A,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[co[m]]:()=>{C.current=!0}}}:{}),[d,h,m,g,i,A])}let mo;function ho(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&&!hn(t.elements.reference))if(null==(l=mo)||!l.has(e))null==(s=mo)||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,h]=e.useState(i);Dr(m,i)||h(i);const[g,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!==k.current&&(k.current=e,v(e))}),[v]),w=a||g,C=l||b,I=e.useRef(null),k=e.useRef(null),M=e.useRef(u),$=Nr(c),A=Nr(o),L=e.useCallback((()=>{if(!I.current||!k.current)return;const e={placement:n,strategy:r,middleware:m};A.current&&(e.platform=A.current),Hr(I.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};V.current&&!Dr(M.current,t)&&(M.current=t,E.flushSync((()=>{p(t)})))}))}),[m,n,r,A]);Sr((()=>{!1===d&&M.current.isPositioned&&(M.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const V=e.useRef(!1);Sr((()=>(V.current=!0,()=>{V.current=!1})),[]),Sr((()=>{if(w&&(I.current=w),C&&(k.current=C),w&&C){if($.current)return $.current(w,C,L);L()}}),[w,C,L,$]);const H=e.useMemo((()=>({reference:I,floating:k,setReference:x,setFloating:y})),[x,y]),O=e.useMemo((()=>({reference:w,floating:C})),[w,C]),S=e.useMemo((()=>{const e={position:r,left:0,top:0};if(!O.floating)return e;const t=zr(O.floating,u.x),n=zr(O.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...Rr(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,s,O.floating,u.x,u.y]);return e.useMemo((()=>({...u,update:L,refs:H,elements:O,floatingStyles:S})),[u,L,H,O,S])}(t),m=$i(),h=null!=Mi(),g=ri(((e,t,n)=>{e&&(b.current.openEvent=t),v.emit("openchange",{open:e,event:t,reason:n,nested:h}),null==i||i(e,t,n)})),f=e.useRef(null),b=e.useRef({}),v=e.useState((()=>Ei()))[0],x=wi(),y=e.useCallback((e=>{const t=hn(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;p.refs.setReference(t)}),[p.refs]),w=e.useCallback((e=>{(hn(e)||null===e)&&(f.current=e,d(e)),(hn(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!hn(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]),k=e.useMemo((()=>({...p,refs:C,elements:I,dataRef:b,nodeId:o,floatingId:x,events:v,open:r,onOpenChange:g})),[p,o,x,v,r,g,C,I]);return gi((()=>{const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===o));e&&(e.context=k)})),e.useMemo((()=>({...p,context:k,refs:C,elements:I})),[p,C,I,k])}function go(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 fo(t){void 0===t&&(t=[]);const n=t,r=e.useCallback((e=>go(e,t,"reference")),n),i=e.useCallback((e=>go(e,t,"floating")),n),o=e.useCallback((e=>go(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&&(mo=new Set);let bo=!1;function vo(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function xo(e,t){return vo(t,e===ii||e===oi,e===ai||e===li)}function yo(e,t,n){return vo(t,e===oi,n?e===ai:e===li)||"Enter"===e||" "==e||""===e}function wo(e,t,n){return vo(t,n?e===li:e===ai,e===ii)}function Co(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:h=!1,nested:g=!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:k}=n;"production"!==process.env.NODE_ENV&&(m&&(h||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 M=Mi(),$=$i(),A=ri(d),L=e.useRef(v),V=e.useRef(null!=p?p:-1),H=e.useRef(null),O=e.useRef(!0),S=e.useRef(A),D=e.useRef(!!l),R=e.useRef(!1),z=e.useRef(!1),N=Hi(w),T=Hi(r),Z=Hi(I),[B,P]=e.useState(),[_,G]=e.useState(),j=ri((function(e,t,n){void 0===n&&(n=!1);const r=e.current[t.current];r&&(b?(P(r.id),null==$||$.events.emit("virtualfocus",r),k&&(k.current=r)):hi(r,{preventScroll:!0,sync:!(!Ln().toLowerCase().startsWith("mac")||navigator.maxTouchPoints||!On())&&(bo||R.current)}),requestAnimationFrame((()=>{const e=Z.current;e&&r&&(n||!O.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))})))}));gi((()=>{document.createElement("div").focus({get preventScroll(){return bo=!0,!1}})}),[]),gi((()=>{u&&(r&&l?L.current&&null!=p&&(z.current=!0,A(p)):D.current&&(V.current=-1,S.current(null)))}),[u,r,l,p,A]),gi((()=>{if(u&&r&&l)if(null==c){if(R.current=!1,null!=p)return;if(D.current&&(V.current=-1,j(s,V)),!D.current&&L.current&&(null!=H.current||!0===L.current&&null==H.current)){let e=0;const t=()=>{if(null==s.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else V.current=null==H.current||yo(H.current,C,f)||g?di(s,N.current):ui(s,N.current),H.current=null,A(V.current)};t()}}else ci(s,c)||(V.current=c,j(s,V,z.current),z.current=!1)}),[u,r,l,c,p,g,s,C,f,A,j,N]),gi((()=>{var e,t;if(!u||l||!$||b||!D.current)return;const n=$.nodesRef.current,r=null==(e=n.find((e=>e.id===M)))||null==(t=e.context)?void 0:t.elements.floating,i=$n(Rn(l)),o=n.some((e=>e.context&&An(e.context.elements.floating,i)));r&&!o&&O.current&&r.focus({preventScroll:!0})}),[u,l,$,M,b]),gi((()=>{if(u&&$&&b&&!M)return $.events.on("virtualfocus",e),()=>{$.events.off("virtualfocus",e)};function e(e){G(e.id),k&&(k.current=e)}}),[u,$,b,M,k]),gi((()=>{S.current=A,D.current=!!l})),gi((()=>{r||(H.current=null)}),[r]);const F=null!=c,Y=e.useMemo((()=>{function e(e){if(!r)return;const t=s.current.indexOf(e);-1!==t&&A(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;O.current&&"touch"!==t&&(V.current=-1,j(s,V),A(null),b||hi(o.floating.current,{preventScroll:!0}))}}};return t}),[r,o,j,x,s,A,b]);return e.useMemo((()=>{if(!u)return{};const e=N.current;function t(t){if(O.current=!1,R.current=!0,!T.current&&t.currentTarget===o.floating.current)return;if(g&&wo(t.key,C,f))return Bn(t),i(!1,t.nativeEvent,"list-navigation"),void(gn(a)&&!b&&a.focus());const n=V.current,l=di(s,e),c=ui(s,e);if("Home"===t.key&&(Bn(t),V.current=l,A(V.current)),"End"===t.key&&(Bn(t),V.current=c,A(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===ii){if(d&&Bn(n),-1===c)u=s;else if(u=pi(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}ci(e,u)&&(u=c)}if(n.key===oi&&(d&&Bn(n),-1===c?u=l:(u=pi(e,{startingIndex:c,amount:o,disabledIndices:a}),i&&c+o>s&&(u=pi(e,{startingIndex:c%o-o,amount:o,disabledIndices:a}))),ci(e,u)&&(u=c)),"both"===r){const t=Yn(c/o);n.key===li&&(d&&Bn(n),c%o!=o-1?(u=pi(e,{startingIndex:c,disabledIndices:a}),i&&si(u,o,t)&&(u=pi(e,{startingIndex:c-c%o-1,disabledIndices:a}))):i&&(u=pi(e,{startingIndex:c-c%o-1,disabledIndices:a})),si(u,o,t)&&(u=c)),n.key===ai&&(d&&Bn(n),c%o!=0?(u=pi(e,{startingIndex:c,disabledIndices:a,decrement:!0}),i&&si(u,o,t)&&(u=pi(e,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:a}))):i&&(u=pi(e,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:a})),si(u,o,t)&&(u=c));const r=Yn(s/o)===t;ci(e,u)&&(u=i&&r?n.key===ai?s:pi(e,{startingIndex:c-c%o-1,disabledIndices:a}):c)}return u}(s,{event:t,orientation:C,loop:h,cols:E,disabledIndices:e,minIndex:l,maxIndex:c,prevIndex:V.current,stopEvent:!0}),A(V.current),"both"===C))&&xo(t.key,C)){if(Bn(t),r&&!b&&$n(t.currentTarget.ownerDocument)===t.currentTarget)return V.current=yo(t.key,C,f)?l:c,void A(V.current);yo(t.key,C,f)?V.current=h?n>=c?m&&n!==s.current.length?-1:l:pi(s,{startingIndex:n,disabledIndices:e}):Math.min(c,pi(s,{startingIndex:n,disabledIndices:e})):V.current=h?n<=l?m&&-1!==n?s.current.length:c:pi(s,{startingIndex:n,decrement:!0,disabledIndices:e}):Math.max(l,pi(s,{startingIndex:n,decrement:!0,disabledIndices:e})),ci(s,V.current)?A(null):A(V.current)}}function n(e){"auto"===v&&Vn(e.nativeEvent)&&(L.current=!0)}const l=b&&r&&F&&{"aria-activedescendant":_||B},c=s.current.find((e=>(null==e?void 0:e.id)===B));return{reference:{...l,onKeyDown(n){O.current=!1;const o=0===n.key.indexOf("Arrow"),a=function(e,t,n){return vo(t,n?e===ai:e===li,e===oi)}(n.key,C,f),l=wo(n.key,C,f),d=xo(n.key,C),u=(g?a:d)||"Enter"===n.key||""===n.key.trim();if(b&&r){const e=null==$?void 0:$.nodesRef.current.find((e=>null==e.parentId)),r=$&&e?function(e,t){let n,r=-1;return function t(i,o){o>r&&(n=i,r=o),Ni(e,i).forEach((e=>{t(e.id,o+1)}))}(t,0),e.find((e=>e.id===n))}($.nodesRef.current,e.id):null;if(o&&r&&k){const e=new KeyboardEvent("keydown",{key:n.key,bubbles:!0});if(a||l){var m,h;const t=(null==(m=r.context)?void 0:m.elements.domReference)===n.currentTarget,i=l&&!t?null==(h=r.context)?void 0:h.elements.domReference:a?c:null;i&&(Bn(n),i.dispatchEvent(e),G(void 0))}var v;if(d&&r.context)if(r.context.open&&r.parentId&&n.currentTarget!==r.context.elements.domReference)return Bn(n),void(null==(v=r.context.elements.domReference)||v.dispatchEvent(e))}return t(n)}(r||y||!o)&&(u&&(H.current=g&&d?null:n.key),g?a&&(Bn(n),r?(V.current=di(s,e),A(V.current)):i(!0,n.nativeEvent,"list-navigation")):d&&(null!=p&&(V.current=p),Bn(n),!r&&y?i(!0,n.nativeEvent,"list-navigation"):t(n),r&&A(V.current)))},onFocus(){r&&A(null)},onPointerDown:function(e){L.current=v,"auto"===v&&Hn(e.nativeEvent)&&(L.current=!0)},onMouseDown:n,onClick:n},floating:{"aria-orientation":"both"===C?void 0:C,...l,onKeyDown:t,onPointerMove(){O.current=!0}},item:Y}}),[a,o,B,_,N,T,s,u,C,f,b,r,F,g,p,y,m,E,h,v,A,i,Y,$,k])}function Eo(t,n){void 0===n&&(n={});const{open:r,floatingId:i}=t,{enabled:o=!0,role:a="dialog"}=n,l=wi();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 Io(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 ko(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:h}=e;return function(e){function g(){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=Nn(e),y="mouseleave"===e.type,w=An(u.floating,x),C=An(u.domReference,x),E=u.domReference.getBoundingClientRect(),I=u.floating.getBoundingClientRect(),k=d.split("-")[0],M=n>I.right-I.width/2,$=c>I.bottom-I.height/2,A=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),L=I.width>E.width,V=I.height>E.height,H=(L?E:I).left,O=(L?E:I).right,S=(V?E:I).top,D=(V?E:I).bottom;if(w&&(o=!0,!y))return;if(C&&(o=!1),C&&!y)return void(o=!0);if(y&&hn(e.relatedTarget)&&An(u.floating,e.relatedTarget))return;if(h&&Ni(h.nodesRef.current,m).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===k&&c>=E.bottom-1||"bottom"===k&&c<=E.top+1||"left"===k&&n>=E.right-1||"right"===k&&n<=E.left+1)return g();let R=[];switch(k){case"top":R=[[H,E.top+1],[H,I.bottom-1],[O,I.bottom-1],[O,E.top+1]];break;case"bottom":R=[[H,I.top+1],[H,E.bottom-1],[O,E.bottom-1],[O,I.top+1]];break;case"left":R=[[I.right-1,D],[I.right-1,S],[E.left+1,S],[E.left+1,D]];break;case"right":R=[[E.right-1,D],[E.right-1,S],[I.left+1,S],[I.left+1,D]]}if(!Io([f,b],R)){if(o&&!A)return g();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 g()}Io([f,b],function(e){let[n,r]=e;switch(k){case"top":return[[L?n+t/2:M?n+4*t:n-4*t,r+t+1],[L?n-t/2:M?n+4*t:n-4*t,r+t+1],...[[I.left,M||L?I.bottom-t:I.top],[I.right,M?L?I.bottom-t:I.top:I.bottom-t]]];case"bottom":return[[L?n+t/2:M?n+4*t:n-4*t,r-t],[L?n-t/2:M?n+4*t:n-4*t,r-t],...[[I.left,M||L?I.top+t:I.bottom],[I.right,M?L?I.top+t:I.bottom:I.top+t]]];case"left":{const e=[n+t+1,V?r+t/2:$?r+4*t:r-4*t],i=[n+t+1,V?r-t/2:$?r+4*t:r-4*t];return[...[[$||V?I.right-t:I.left,I.top],[$?V?I.right-t:I.left:I.right-t,I.bottom]],e,i]}case"right":return[[n-t,V?r+t/2:$?r+4*t:r-4*t],[n-t,V?r-t/2:$?r+4*t:r-4*t],...[[$||V?I.left+t:I.right,I.top],[$?V?I.left+t:I.right:I.left+t,I.bottom]]]}}([n,c]))?!o&&r&&(i=window.setTimeout(g,40)):g()}}};return c.__options={blockPointerEvents:n},c}function Mo(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 $o(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&&Mo(o,a,r));return a}(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const Ao="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function Lo(e){const[n,r]=t.useState((()=>"undefined"!=typeof window&&window.matchMedia(e).matches)),i=t.useRef(null),o=t.useRef(null);return Ao((()=>{if("undefined"==typeof window)return;if(i.current&&o.current){const e=i.current,t=o.current;e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}const t=window.matchMedia(e);i.current=t;const n=e=>{r(e.matches)};return o.current=n,r(t.matches),t.addEventListener?t.addEventListener("change",n):t.addListener(n),()=>{if(i.current&&o.current){const e=i.current,t=o.current;e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t),i.current=null,o.current=null}}}),[e]),n}const Vo=v.span`
|
|
416
|
+
var Tr=["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(","),Zr="undefined"==typeof Element,Br=Zr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Pr=!Zr&&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},_r=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)},Gr=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!_r(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{Br.call(a,Tr)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),d=!_r(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},jr=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Fr=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))&&!jr(e)?0:e.tabIndex},Yr=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Wr=function(e){return"INPUT"===e.tagName},Xr=function(e){return function(e){return Wr(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Pr(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)},Jr=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Ur=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=Br.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Br.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Jr(e)}else{if("function"==typeof r){for(var o=e;e;){var a=e.parentElement,l=Pr(e);if(a&&!a.shadowRoot&&!0===r(a))return Jr(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&&Pr(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=Pr(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},Qr=function(e,t){return!(t.disabled||_r(t)||function(e){return Wr(e)&&"hidden"===e.type}(t)||Ur(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!!Br.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},qr=function(e,t){return!(Xr(t)||Fr(t)<0||!Qr(e,t))},Kr=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},ei=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=Fr(e);return n<0&&t&&!jr(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(Yr).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},ti=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Gr([e],t.includeContainer,{filter:qr.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Kr}):function(e,t,n){if(_r(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Tr));return t&&Br.call(e,Tr)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,qr.bind(null,t)),ei(n)};const ni=e["useInsertionEffect".toString()]||(e=>e());function ri(t){const n=e.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return ni((()=>{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 ii="ArrowUp",oi="ArrowDown",ai="ArrowLeft",li="ArrowRight";function si(e,t,n){return Math.floor(e/t)!==n}function ci(e,t){return t<0||t>=e.current.length}function di(e,t){return pi(e,{disabledIndices:t})}function ui(e,t){return pi(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function pi(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 mi=0;function hi(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(mi);const o=()=>null==e?void 0:e.focus({preventScroll:n});i?o():mi=requestAnimationFrame(o)}var gi="undefined"!=typeof document?u:a;function fi(){return fi=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},fi.apply(this,arguments)}let bi=!1,xi=0;const yi=()=>"floating-ui-"+xi++;const wi=e["useId".toString()]||function(){const[t,n]=e.useState((()=>bi?yi():void 0));return gi((()=>{null==t&&n(yi())}),[]),e.useEffect((()=>{bi||(bi=!0)}),[]),t},Ci=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,...h}={},...g}=t;"production"!==process.env.NODE_ENV&&(n||console.warn("Floating UI: The `ref` prop is required for the `FloatingArrow`","component."));const f=wi();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=Lr.isRTL(i),E=!!p,I="top"===y||"bottom"===y,k=d&&"end"===w?"bottom":"top";let M=d&&"end"===w?"right":"left";d&&C&&(M="end"===w?"left":"right");const $=null!=(null==o?void 0:o.x)?d||o.x:"",A=null!=(null==o?void 0:o.y)?d||o.y:"",L=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",fi({},g,{"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",[M]:$,[k]:A,[y]:I||E?"100%":"calc(100% - "+c/2+"px)",transform:""+V+(null!=m?m:""),...h}}),c>0&&e.createElement("path",{clipPath:"url(#"+f+")",fill:"none",stroke:u,strokeWidth:c+(p?0:1),d:L}),e.createElement("path",{stroke:c&&!p?g.fill:"none",d:L}),e.createElement("clipPath",{id:f},e.createElement("rect",{x:-b,y:b*(E?-1:1),width:a+c,height:a})))}));function Ei(){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 Ii=e.createContext(null),ki=e.createContext(null),Mi=()=>{var t;return(null==(t=e.useContext(Ii))?void 0:t.id)||null},$i=()=>e.useContext(ki);function Ai(t){let{children:n,id:r}=t;const i=Mi();return e.createElement(Ii.Provider,{value:e.useMemo((()=>({id:r,parentId:i})),[r,i])},n)}function Li(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((()=>Ei()))[0];return e.createElement(ki.Provider,{value:e.useMemo((()=>({nodesRef:r,addNode:i,removeNode:o,events:a})),[r,i,o,a])},n)}function Vi(e){return"data-floating-ui-"+e}function Hi(e){const t=o(e);return gi((()=>{t.current=e})),t}const Si=Vi("safe-polygon");function Oi(e,t,n){return n&&!Dn(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Di(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:h=0,move:g=!0}=n,f=$i(),b=Mi(),v=Hi(p),x=Hi(u),y=e.useRef(),w=e.useRef(),C=e.useRef(),E=e.useRef(),I=e.useRef(!0),k=e.useRef(!1),M=e.useRef((()=>{})),$=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){$()&&i(!1,e,"hover")}const t=Rn(s).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[s,r,i,d,v,o,$]);const A=e.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=Oi(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]),L=e.useCallback((()=>{M.current(),C.current=void 0}),[]),V=e.useCallback((()=>{if(k.current){const e=Rn(c.floating.current).body;e.style.pointerEvents="",e.removeAttribute(Si),k.current=!1}}),[c]);return e.useEffect((()=>{if(d&&hn(l)){const e=l;return r&&e.addEventListener("mouseleave",c),null==s||s.addEventListener("mouseleave",c),g&&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),g&&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&&!Dn(y.current)||h>0&&0===Oi(x.current,"open"))return;const t=Oi(x.current,"open",y.current);t?w.current=setTimeout((()=>{i(!0,e,"hover")}),t):i(!0,e,"hover")}function a(n){if(e())return;M.current();const i=Rn(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(),L(),A(n,!0,"safe-polygon")}});const e=C.current;return i.addEventListener("mousemove",e),void(M.current=()=>{i.removeEventListener("mousemove",e)})}("touch"!==y.current||!An(s,n.relatedTarget))&&A(n)}function c(n){e()||null==v.current||v.current({...t,tree:f,x:n.clientX,y:n.clientY,onClose(){V(),L(),A(n)}})(n)}}),[l,s,d,t,m,h,g,A,L,V,i,r,f,x,v,o]),gi((()=>{var e;if(d&&r&&null!=(e=v.current)&&e.__options.blockPointerEvents&&$()){const e=Rn(s).body;if(e.setAttribute(Si,""),e.style.pointerEvents="none",k.current=!0,hn(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,$]),gi((()=>{r||(y.current=void 0,L(),V())}),[r,L,V]),e.useEffect((()=>()=>{L(),clearTimeout(w.current),clearTimeout(E.current),V()}),[d,l,L,V]),e.useMemo((()=>{if(!d)return{};function e(e){y.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){r||0===h||(clearTimeout(E.current),E.current=setTimeout((()=>{I.current||i(!0,e.nativeEvent,"hover")}),h))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){A(e.nativeEvent,!1)}}}}),[d,h,r,i,A])}const Ri=e.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),zi=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 gi((()=>{o.currentId?null===l.current?l.current=o.currentId:a({isInstantPhase:!0}):(a({isInstantPhase:!1}),l.current=null)}),[o.currentId]),e.createElement(Ri.Provider,{value:e.useMemo((()=>({...o,setState:a,setCurrentId:s})),[o,a,s])},n)};function Ni(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 Ti=new WeakMap,Zi=new WeakSet,Bi={},Pi=0;const _i=e=>e&&(e.host||_i(e.parentNode)),Gi=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=_i(t);return e.contains(n)?n:null})).filter((e=>null!=e));function ji(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Rn(e[0]).body;return function(e,t,n,r){const i="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,a=Gi(t,e),l=new Set,s=new Set(a),c=[];Bi[i]||(Bi[i]=new WeakMap);const d=Bi[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=(Ti.get(t)||0)+1,a=(d.get(t)||0)+1;Ti.set(t,r),d.set(t,a),c.push(t),1===r&&n&&Zi.add(t),1===a&&t.setAttribute(i,""),!n&&o&&t.setAttribute(o,"true")}}))}(t),l.clear(),Pi++,()=>{c.forEach((e=>{const t=(Ti.get(e)||0)-1,n=(d.get(e)||0)-1;Ti.set(e,t),d.set(e,n),t||(!Zi.has(e)&&o&&e.removeAttribute(o),Zi.delete(e)),n||e.removeAttribute(i)})),Pi--,Pi||(Ti=new WeakMap,Ti=new WeakMap,Zi=new WeakSet,Bi={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Fi=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Yi(e,t){const n=ti(e,Fi());"prev"===t&&n.reverse();const r=n.indexOf($n(Rn(e)));return n.slice(r+1)[0]}function Wi(){return Yi(document.body,"next")}function Xi(){return Yi(document.body,"prev")}function Ji(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!An(n,r)}function Ui(e){ti(e,Fi()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Qi(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 qi={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 Ki(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const eo=e.forwardRef((function(t,n){const[r,i]=e.useState();gi((()=>(Sn()&&i("button"),document.addEventListener("keydown",Ki),()=>{document.removeEventListener("keydown",Ki)})),[]);const o={ref:n,tabIndex:0,role:r,"aria-hidden":!r||void 0,[Vi("focus-guard")]:"",style:qi};return e.createElement("span",fi({},t,o))})),to=e.createContext(null);function no(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=wi(),l=ro(),s=e.useMemo((()=>({id:n,root:r,portalContext:l,uniqueId:a})),[n,r,l,a]),c=e.useRef();return gi((()=>()=>{null==i||i.remove()}),[i,s]),gi((()=>{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=Vi("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&&!hn(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&&Ji(e)){("focusin"===e.type?Qi:Ui)(a)}}}),[a,o,null==l?void 0:l.modal]),e.createElement(to.Provider,{value:e.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:d,beforeInsideRef:u,afterInsideRef:p,portalNode:a,setFocusManagerState:s})),[o,a])},m&&a&&e.createElement(eo,{"data-type":"outside",ref:c,onFocus:e=>{if(Ji(e,a)){var t;null==(t=u.current)||t.focus()}else{const e=Xi()||(null==l?void 0:l.refs.domReference.current);null==e||e.focus()}}}),m&&a&&e.createElement("span",{"aria-owns":a.id,style:qi}),a&&k(n,a),m&&a&&e.createElement(eo,{"data-type":"outside",ref:d,onFocus:e=>{if(Ji(e,a)){var t;null==(t=p.current)||t.focus()}else{const t=Wi()||(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 ro=()=>e.useContext(to),io=e.forwardRef((function(t,n){return e.createElement("button",fi({},t,{type:"button",ref:n,tabIndex:-1,style:qi}))}));function oo(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:h,onOpenChange:g,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"))&&Zn(v)&&y,C=!w&&c,E="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||a,I=Hi(o),k=Hi(l),M=Hi(s),$=$i(),A=ro(),L=e.useRef(null),V=e.useRef(null),H=e.useRef(!1),S=e.useRef(null),O=e.useRef(!1),D=null!=A,R=e.useCallback((function(e){return void 0===e&&(e=x),e?ti(e,Fi()):[]}),[x]),z=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 N(t){return!i&&d&&C?e.createElement(io,{ref:"start"===t?L:V,onClick:e=>g(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}e.useEffect((()=>{if(i||!C)return;function e(e){if("Tab"===e.key){An(x,$n(Rn(x)))&&0===R().length&&!w&&Bn(e);const t=z(),n=Nn(e);"reference"===I.current[0]&&n===v&&(Bn(e),e.shiftKey?hi(t[t.length-1]):hi(t[1])),"floating"===I.current[1]&&n===x&&e.shiftKey&&(Bn(e),hi(t[0]))}}const t=Rn(x);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[i,v,x,C,I,m,w,R,z]),e.useEffect((()=>{if(!i&&u)return x&&gn(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(){O.current=!0,setTimeout((()=>{O.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(An(v,t)||An(x,t)||An(t,x)||An(null==A?void 0:A.portalNode,t)||null!=t&&t.hasAttribute(Vi("focus-guard"))||$&&(Ni($.nodesRef.current,h).find((e=>{var n,r;return An(null==(n=e.context)?void 0:n.elements.floating,t)||An(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}($.nodesRef.current,h).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&&!O.current&&t!==S.current&&(H.current=!0,g(!1,e))}))}}),[i,v,x,C,h,$,A,g,u]),e.useEffect((()=>{var e;if(i)return;const t=Array.from((null==A||null==(e=A.portalNode)?void 0:e.querySelectorAll("["+Vi("portal")+"]"))||[]);if(x){const e=[x,...t,L.current,V.current,I.current.includes("reference")||w?v:null].filter((e=>null!=e)),n=c||w?ji(e,E,!E):ji(e);return()=>{n()}}}),[i,v,x,c,I,A,w,E]),gi((()=>{if(i||!x)return;const e=$n(Rn(x));queueMicrotask((()=>{const t=z(x),n=k.current,r=("number"==typeof n?t[n]:n.current)||x,i=An(x,e);y||i||!p||hi(r,{preventScroll:r===x})}))}),[i,p,x,y,z,k]),gi((()=>{if(i||!x)return;let e=!1;const t=Rn(x),n=$n(t),r=b.current;function o(t){let{reason:n,event:r,nested:i}=t;"escape-key"===n&&m.domReference.current&&(S.current=m.domReference.current),"hover"===n&&"mouseleave"===r.type&&(H.current=!0),"outside-press"===n&&(i?(H.current=!1,e=!0):H.current=!(Vn(r)||Hn(r)))}return S.current=n,f.on("openchange",o),()=>{f.off("openchange",o);const i=$n(t),a=An(x,i)||$&&Ni($.nodesRef.current,h).some((e=>{var t;return An(null==(t=e.context)?void 0:t.elements.floating,i)}));(a||r.openEvent&&["click","mousedown"].includes(r.openEvent.type))&&m.domReference.current&&(S.current=m.domReference.current),M.current&&gn(S.current)&&!H.current&&(n===i||i===t.body||a)&&hi(S.current,{cancelPrevious:!1,preventScroll:e})}}),[i,x,M,b,m,f,$,h]),gi((()=>{if(!i&&A)return A.setFocusManagerState({modal:C,closeOnFocusOut:u,open:p,onOpenChange:g,refs:m}),()=>{A.setFocusManagerState(null)}}),[i,A,C,p,g,m,u]),gi((()=>{if(i||!x||"function"!=typeof MutationObserver||y)return;const e=()=>{const e=x.getAttribute("tabindex");I.current.includes("floating")||$n(Rn(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&&(D||C);return e.createElement(e.Fragment,null,T&&e.createElement(eo,{"data-type":"inside",ref:null==A?void 0:A.beforeInsideRef,onFocus:e=>{if(C){const e=z();hi("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(H.current=!1,Ji(e,A.portalNode)){const e=Wi()||v;null==e||e.focus()}else{var t;null==(t=A.beforeOutsideRef.current)||t.focus()}}}),!w&&N("start"),r,N("end"),T&&e.createElement(eo,{"data-type":"inside",ref:null==A?void 0:A.afterInsideRef,onFocus:e=>{if(C)hi(z()[0]);else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(u&&(H.current=!0),Ji(e,A.portalNode)){const e=Xi()||v;null==e||e.focus()}else{var t;null==(t=A.afterOutsideRef.current)||t.focus()}}}))}function ao(e){return gn(e.target)&&"BUTTON"===e.target.tagName}function lo(e){return Zn(e)}const so={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},co={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},uo=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 po(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:h=!1,referencePressEvent:g="pointerdown",ancestorScroll:f=!1,bubbles:b,capture:v}=n,x=$i(),y=ri("function"==typeof p?p:()=>!1),w="function"==typeof p?y:p,C=e.useRef(!1),E=e.useRef(!1),{escapeKey:I,outsidePress:k}=uo(b),{escapeKey:M,outsidePress:$}=uo(v),A=ri((e=>{if(!r||!d||!u||"Escape"!==e.key)return;const t=x?Ni(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")})),L=ri((e=>{var t;const n=()=>{var t;A(e),null==(t=Nn(e))||t.removeEventListener("keydown",n)};null==(t=Nn(e))||t.addEventListener("keydown",n)})),V=ri((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=Nn(e),a="["+Vi("inert")+"]",c=Rn(s).querySelectorAll(a);let d=hn(r)?r:null;for(;d&&!wn(d);){const e=In(d);if(e===Rn(s).body||!hn(e))break;d=e}if(c.length&&hn(r)&&!r.matches("html,body")&&!An(r,s)&&Array.from(c).every((e=>!An(d,e))))return;if(gn(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"===Cn(r).direction&&(i=e.offsetX<=r.offsetWidth-r.clientWidth)}if(i||t&&e.offsetY>r.clientHeight)return}const u=x&&Ni(x.nodesRef.current,o).some((t=>{var n;return zn(e,null==(n=t.context)?void 0:n.elements.floating)}));if(zn(e,s)||zn(e,l)||u)return;const p=x?Ni(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")})),H=ri((e=>{var t;const n=()=>{var t;V(e),null==(t=Nn(e))||t.removeEventListener(m,n)};null==(t=Nn(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=k;const t=Rn(s);u&&t.addEventListener("keydown",M?L:A,M),w&&t.addEventListener(m,$?H:V,$);let n=[];return f&&(hn(l)&&(n=Mn(l)),hn(s)&&(n=n.concat(Mn(s))),!hn(a)&&a&&a.contextElement&&(n=n.concat(Mn(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",M?L:A,M),w&&t.removeEventListener(m,$?H:V,$),n.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[c,s,l,a,u,w,m,r,i,f,d,I,k,A,M,L,V,$,H]),e.useEffect((()=>{C.current=!1}),[w,m]),e.useMemo((()=>d?{reference:{onKeyDown:A,[so[g]]:e=>{h&&i(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:A,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[co[m]]:()=>{C.current=!0}}}:{}),[d,h,m,g,i,A])}let mo;function ho(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&&!hn(t.elements.reference))if(null==(l=mo)||!l.has(e))null==(s=mo)||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,h]=e.useState(i);Dr(m,i)||h(i);const[g,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!==k.current&&(k.current=e,v(e))}),[v]),w=a||g,C=l||b,I=e.useRef(null),k=e.useRef(null),M=e.useRef(u),$=Nr(c),A=Nr(o),L=e.useCallback((()=>{if(!I.current||!k.current)return;const e={placement:n,strategy:r,middleware:m};A.current&&(e.platform=A.current),Hr(I.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};V.current&&!Dr(M.current,t)&&(M.current=t,E.flushSync((()=>{p(t)})))}))}),[m,n,r,A]);Or((()=>{!1===d&&M.current.isPositioned&&(M.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const V=e.useRef(!1);Or((()=>(V.current=!0,()=>{V.current=!1})),[]),Or((()=>{if(w&&(I.current=w),C&&(k.current=C),w&&C){if($.current)return $.current(w,C,L);L()}}),[w,C,L,$]);const H=e.useMemo((()=>({reference:I,floating:k,setReference:x,setFloating:y})),[x,y]),S=e.useMemo((()=>({reference:w,floating:C})),[w,C]),O=e.useMemo((()=>{const e={position:r,left:0,top:0};if(!S.floating)return e;const t=zr(S.floating,u.x),n=zr(S.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...Rr(S.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,s,S.floating,u.x,u.y]);return e.useMemo((()=>({...u,update:L,refs:H,elements:S,floatingStyles:O})),[u,L,H,S,O])}(t),m=$i(),h=null!=Mi(),g=ri(((e,t,n)=>{e&&(b.current.openEvent=t),v.emit("openchange",{open:e,event:t,reason:n,nested:h}),null==i||i(e,t,n)})),f=e.useRef(null),b=e.useRef({}),v=e.useState((()=>Ei()))[0],x=wi(),y=e.useCallback((e=>{const t=hn(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;p.refs.setReference(t)}),[p.refs]),w=e.useCallback((e=>{(hn(e)||null===e)&&(f.current=e,d(e)),(hn(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!hn(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]),k=e.useMemo((()=>({...p,refs:C,elements:I,dataRef:b,nodeId:o,floatingId:x,events:v,open:r,onOpenChange:g})),[p,o,x,v,r,g,C,I]);return gi((()=>{const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===o));e&&(e.context=k)})),e.useMemo((()=>({...p,context:k,refs:C,elements:I})),[p,C,I,k])}function go(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 fo(t){void 0===t&&(t=[]);const n=t,r=e.useCallback((e=>go(e,t,"reference")),n),i=e.useCallback((e=>go(e,t,"floating")),n),o=e.useCallback((e=>go(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&&(mo=new Set);let bo=!1;function vo(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function xo(e,t){return vo(t,e===ii||e===oi,e===ai||e===li)}function yo(e,t,n){return vo(t,e===oi,n?e===ai:e===li)||"Enter"===e||" "==e||""===e}function wo(e,t,n){return vo(t,n?e===li:e===ai,e===ii)}function Co(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:h=!1,nested:g=!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:k}=n;"production"!==process.env.NODE_ENV&&(m&&(h||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 M=Mi(),$=$i(),A=ri(d),L=e.useRef(v),V=e.useRef(null!=p?p:-1),H=e.useRef(null),S=e.useRef(!0),O=e.useRef(A),D=e.useRef(!!l),R=e.useRef(!1),z=e.useRef(!1),N=Hi(w),T=Hi(r),Z=Hi(I),[B,P]=e.useState(),[_,G]=e.useState(),j=ri((function(e,t,n){void 0===n&&(n=!1);const r=e.current[t.current];r&&(b?(P(r.id),null==$||$.events.emit("virtualfocus",r),k&&(k.current=r)):hi(r,{preventScroll:!0,sync:!(!Ln().toLowerCase().startsWith("mac")||navigator.maxTouchPoints||!Sn())&&(bo||R.current)}),requestAnimationFrame((()=>{const e=Z.current;e&&r&&(n||!S.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))})))}));gi((()=>{document.createElement("div").focus({get preventScroll(){return bo=!0,!1}})}),[]),gi((()=>{u&&(r&&l?L.current&&null!=p&&(z.current=!0,A(p)):D.current&&(V.current=-1,O.current(null)))}),[u,r,l,p,A]),gi((()=>{if(u&&r&&l)if(null==c){if(R.current=!1,null!=p)return;if(D.current&&(V.current=-1,j(s,V)),!D.current&&L.current&&(null!=H.current||!0===L.current&&null==H.current)){let e=0;const t=()=>{if(null==s.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else V.current=null==H.current||yo(H.current,C,f)||g?di(s,N.current):ui(s,N.current),H.current=null,A(V.current)};t()}}else ci(s,c)||(V.current=c,j(s,V,z.current),z.current=!1)}),[u,r,l,c,p,g,s,C,f,A,j,N]),gi((()=>{var e,t;if(!u||l||!$||b||!D.current)return;const n=$.nodesRef.current,r=null==(e=n.find((e=>e.id===M)))||null==(t=e.context)?void 0:t.elements.floating,i=$n(Rn(l)),o=n.some((e=>e.context&&An(e.context.elements.floating,i)));r&&!o&&S.current&&r.focus({preventScroll:!0})}),[u,l,$,M,b]),gi((()=>{if(u&&$&&b&&!M)return $.events.on("virtualfocus",e),()=>{$.events.off("virtualfocus",e)};function e(e){G(e.id),k&&(k.current=e)}}),[u,$,b,M,k]),gi((()=>{O.current=A,D.current=!!l})),gi((()=>{r||(H.current=null)}),[r]);const F=null!=c,Y=e.useMemo((()=>{function e(e){if(!r)return;const t=s.current.indexOf(e);-1!==t&&A(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;S.current&&"touch"!==t&&(V.current=-1,j(s,V),A(null),b||hi(o.floating.current,{preventScroll:!0}))}}};return t}),[r,o,j,x,s,A,b]);return e.useMemo((()=>{if(!u)return{};const e=N.current;function t(t){if(S.current=!1,R.current=!0,!T.current&&t.currentTarget===o.floating.current)return;if(g&&wo(t.key,C,f))return Bn(t),i(!1,t.nativeEvent,"list-navigation"),void(gn(a)&&!b&&a.focus());const n=V.current,l=di(s,e),c=ui(s,e);if("Home"===t.key&&(Bn(t),V.current=l,A(V.current)),"End"===t.key&&(Bn(t),V.current=c,A(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===ii){if(d&&Bn(n),-1===c)u=s;else if(u=pi(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}ci(e,u)&&(u=c)}if(n.key===oi&&(d&&Bn(n),-1===c?u=l:(u=pi(e,{startingIndex:c,amount:o,disabledIndices:a}),i&&c+o>s&&(u=pi(e,{startingIndex:c%o-o,amount:o,disabledIndices:a}))),ci(e,u)&&(u=c)),"both"===r){const t=Yn(c/o);n.key===li&&(d&&Bn(n),c%o!=o-1?(u=pi(e,{startingIndex:c,disabledIndices:a}),i&&si(u,o,t)&&(u=pi(e,{startingIndex:c-c%o-1,disabledIndices:a}))):i&&(u=pi(e,{startingIndex:c-c%o-1,disabledIndices:a})),si(u,o,t)&&(u=c)),n.key===ai&&(d&&Bn(n),c%o!=0?(u=pi(e,{startingIndex:c,disabledIndices:a,decrement:!0}),i&&si(u,o,t)&&(u=pi(e,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:a}))):i&&(u=pi(e,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:a})),si(u,o,t)&&(u=c));const r=Yn(s/o)===t;ci(e,u)&&(u=i&&r?n.key===ai?s:pi(e,{startingIndex:c-c%o-1,disabledIndices:a}):c)}return u}(s,{event:t,orientation:C,loop:h,cols:E,disabledIndices:e,minIndex:l,maxIndex:c,prevIndex:V.current,stopEvent:!0}),A(V.current),"both"===C))&&xo(t.key,C)){if(Bn(t),r&&!b&&$n(t.currentTarget.ownerDocument)===t.currentTarget)return V.current=yo(t.key,C,f)?l:c,void A(V.current);yo(t.key,C,f)?V.current=h?n>=c?m&&n!==s.current.length?-1:l:pi(s,{startingIndex:n,disabledIndices:e}):Math.min(c,pi(s,{startingIndex:n,disabledIndices:e})):V.current=h?n<=l?m&&-1!==n?s.current.length:c:pi(s,{startingIndex:n,decrement:!0,disabledIndices:e}):Math.max(l,pi(s,{startingIndex:n,decrement:!0,disabledIndices:e})),ci(s,V.current)?A(null):A(V.current)}}function n(e){"auto"===v&&Vn(e.nativeEvent)&&(L.current=!0)}const l=b&&r&&F&&{"aria-activedescendant":_||B},c=s.current.find((e=>(null==e?void 0:e.id)===B));return{reference:{...l,onKeyDown(n){S.current=!1;const o=0===n.key.indexOf("Arrow"),a=function(e,t,n){return vo(t,n?e===ai:e===li,e===oi)}(n.key,C,f),l=wo(n.key,C,f),d=xo(n.key,C),u=(g?a:d)||"Enter"===n.key||""===n.key.trim();if(b&&r){const e=null==$?void 0:$.nodesRef.current.find((e=>null==e.parentId)),r=$&&e?function(e,t){let n,r=-1;return function t(i,o){o>r&&(n=i,r=o),Ni(e,i).forEach((e=>{t(e.id,o+1)}))}(t,0),e.find((e=>e.id===n))}($.nodesRef.current,e.id):null;if(o&&r&&k){const e=new KeyboardEvent("keydown",{key:n.key,bubbles:!0});if(a||l){var m,h;const t=(null==(m=r.context)?void 0:m.elements.domReference)===n.currentTarget,i=l&&!t?null==(h=r.context)?void 0:h.elements.domReference:a?c:null;i&&(Bn(n),i.dispatchEvent(e),G(void 0))}var v;if(d&&r.context)if(r.context.open&&r.parentId&&n.currentTarget!==r.context.elements.domReference)return Bn(n),void(null==(v=r.context.elements.domReference)||v.dispatchEvent(e))}return t(n)}(r||y||!o)&&(u&&(H.current=g&&d?null:n.key),g?a&&(Bn(n),r?(V.current=di(s,e),A(V.current)):i(!0,n.nativeEvent,"list-navigation")):d&&(null!=p&&(V.current=p),Bn(n),!r&&y?i(!0,n.nativeEvent,"list-navigation"):t(n),r&&A(V.current)))},onFocus(){r&&A(null)},onPointerDown:function(e){L.current=v,"auto"===v&&Hn(e.nativeEvent)&&(L.current=!0)},onMouseDown:n,onClick:n},floating:{"aria-orientation":"both"===C?void 0:C,...l,onKeyDown:t,onPointerMove(){S.current=!0}},item:Y}}),[a,o,B,_,N,T,s,u,C,f,b,r,F,g,p,y,m,E,h,v,A,i,Y,$,k])}function Eo(t,n){void 0===n&&(n={});const{open:r,floatingId:i}=t,{enabled:o=!0,role:a="dialog"}=n,l=wi();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 Io(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 ko(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:h}=e;return function(e){function g(){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=Nn(e),y="mouseleave"===e.type,w=An(u.floating,x),C=An(u.domReference,x),E=u.domReference.getBoundingClientRect(),I=u.floating.getBoundingClientRect(),k=d.split("-")[0],M=n>I.right-I.width/2,$=c>I.bottom-I.height/2,A=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),L=I.width>E.width,V=I.height>E.height,H=(L?E:I).left,S=(L?E:I).right,O=(V?E:I).top,D=(V?E:I).bottom;if(w&&(o=!0,!y))return;if(C&&(o=!1),C&&!y)return void(o=!0);if(y&&hn(e.relatedTarget)&&An(u.floating,e.relatedTarget))return;if(h&&Ni(h.nodesRef.current,m).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===k&&c>=E.bottom-1||"bottom"===k&&c<=E.top+1||"left"===k&&n>=E.right-1||"right"===k&&n<=E.left+1)return g();let R=[];switch(k){case"top":R=[[H,E.top+1],[H,I.bottom-1],[S,I.bottom-1],[S,E.top+1]];break;case"bottom":R=[[H,I.top+1],[H,E.bottom-1],[S,E.bottom-1],[S,I.top+1]];break;case"left":R=[[I.right-1,D],[I.right-1,O],[E.left+1,O],[E.left+1,D]];break;case"right":R=[[E.right-1,D],[E.right-1,O],[I.left+1,O],[I.left+1,D]]}if(!Io([f,b],R)){if(o&&!A)return g();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 g()}Io([f,b],function(e){let[n,r]=e;switch(k){case"top":return[[L?n+t/2:M?n+4*t:n-4*t,r+t+1],[L?n-t/2:M?n+4*t:n-4*t,r+t+1],...[[I.left,M||L?I.bottom-t:I.top],[I.right,M?L?I.bottom-t:I.top:I.bottom-t]]];case"bottom":return[[L?n+t/2:M?n+4*t:n-4*t,r-t],[L?n-t/2:M?n+4*t:n-4*t,r-t],...[[I.left,M||L?I.top+t:I.bottom],[I.right,M?L?I.top+t:I.bottom:I.top+t]]];case"left":{const e=[n+t+1,V?r+t/2:$?r+4*t:r-4*t],i=[n+t+1,V?r-t/2:$?r+4*t:r-4*t];return[...[[$||V?I.right-t:I.left,I.top],[$?V?I.right-t:I.left:I.right-t,I.bottom]],e,i]}case"right":return[[n-t,V?r+t/2:$?r+4*t:r-4*t],[n-t,V?r-t/2:$?r+4*t:r-4*t],...[[$||V?I.left+t:I.right,I.top],[$?V?I.left+t:I.right:I.left+t,I.bottom]]]}}([n,c]))?!o&&r&&(i=window.setTimeout(g,40)):g()}}};return c.__options={blockPointerEvents:n},c}function Mo(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 $o(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&&Mo(o,a,r));return a}(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const Ao="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function Lo(e){const[n,r]=t.useState((()=>"undefined"!=typeof window&&window.matchMedia(e).matches)),i=t.useRef(null),o=t.useRef(null);return Ao((()=>{if("undefined"==typeof window)return;if(i.current&&o.current){const e=i.current,t=o.current;e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}const t=window.matchMedia(e);i.current=t;const n=e=>{r(e.matches)};return o.current=n,r(t.matches),t.addEventListener?t.addEventListener("change",n):t.addListener(n),()=>{if(i.current&&o.current){const e=i.current,t=o.current;e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t),i.current=null,o.current=null}}}),[e]),n}const Vo=v.span`
|
|
417
417
|
display: inline-flex;
|
|
418
418
|
align-items: center;
|
|
419
419
|
justify-content: center;
|
|
@@ -432,15 +432,15 @@ var Tr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
432
432
|
button:disabled & {
|
|
433
433
|
color: ${({theme:e})=>e.palette.text.disabled};
|
|
434
434
|
}
|
|
435
|
-
`,Oo=v.span`
|
|
436
|
-
${W}
|
|
437
435
|
`,So=v.span`
|
|
436
|
+
${W}
|
|
437
|
+
`,Oo=v.span`
|
|
438
438
|
display: inline-flex;
|
|
439
439
|
align-items: center;
|
|
440
440
|
justify-content: center;
|
|
441
441
|
width: 18px;
|
|
442
442
|
margin-right: 4px;
|
|
443
|
-
`,Do=n(((e,n)=>{var{checked:r,closeOnChange:i,prepend:o,append:a,children:l,onChange:s,color:u}=e,p=D(e,["checked","closeOnChange","prepend","append","children","onChange","color"]);const m=ne(),{close:h}=c($t),g=d((()=>{s&&s(!r),i&&h()}),[r,h,i,s]),f=t.isValidElement(o)&&o.type===le?t.cloneElement(o,{color:o.props.color||"currentColor",size:"md"}):o;return t.createElement("button",Object.assign({type:"button"},p,{ref:n,onClick:g}),t.createElement(
|
|
443
|
+
`,Do=n(((e,n)=>{var{checked:r,closeOnChange:i,prepend:o,append:a,children:l,onChange:s,color:u}=e,p=D(e,["checked","closeOnChange","prepend","append","children","onChange","color"]);const m=ne(),{close:h}=c($t),g=d((()=>{s&&s(!r),i&&h()}),[r,h,i,s]),f=t.isValidElement(o)&&o.type===le?t.cloneElement(o,{color:o.props.color||"currentColor",size:"md"}):o;return t.createElement("button",Object.assign({type:"button"},p,{ref:n,onClick:g}),t.createElement(Oo,null,r&&t.createElement(le,{name:"check_thin",color:"danger"===u?m.palette.danger.base:m.palette.primary.base})),f&&t.createElement(Vo,null,f),t.createElement(So,null,l),a&&t.createElement(Ho,null,a))}));Do.displayName="ContextMenu2CheckItem";const Ro=v(Do)`
|
|
444
444
|
${At}
|
|
445
445
|
${Lt}
|
|
446
446
|
gap: 6px;
|
|
@@ -536,7 +536,7 @@ var Tr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
536
536
|
}
|
|
537
537
|
`;Wo.displayName="ContextMenu2TriggerItem";const Xo=s({isSorting:!1,setIsSorting:e=>{}}),Jo=s({isGhost:!1}),Uo="ContextMenu2SortableItem",Qo="ContextMenu2SortableFixedItem",qo=e=>{if(!m(e))return!1;if("string"==typeof e.type)return!1;if(!("displayName"in e.type))return!1;const t=e.type.displayName;return t===Uo||t===Qo},Ko=v.div`
|
|
538
538
|
overflow: hidden;
|
|
539
|
-
`,ea=({order:e,displayOrder:n,children:r,onOrderChange:o})=>{const[a,s]=i(null),{setIsSorting:d}=c(Xo),u=null!=n?n:e,h=l((()=>p.toArray(r).filter(qo).sort(((e,t)=>{const n=u.indexOf(e.props.id),r=u.indexOf(t.props.id);return-1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r}))),[r,u]),g=l((()=>p.toArray(r).find((e=>!!m(e)&&e.props.id===a))),[r,a]),f=()=>{s(null),d(!1)};return t.createElement($,{modifiers:[
|
|
539
|
+
`,ea=({order:e,displayOrder:n,children:r,onOrderChange:o})=>{const[a,s]=i(null),{setIsSorting:d}=c(Xo),u=null!=n?n:e,h=l((()=>p.toArray(r).filter(qo).sort(((e,t)=>{const n=u.indexOf(e.props.id),r=u.indexOf(t.props.id);return-1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r}))),[r,u]),g=l((()=>p.toArray(r).find((e=>!!m(e)&&e.props.id===a))),[r,a]),f=()=>{s(null),d(!1)};return t.createElement($,{modifiers:[S],onDragStart:e=>{const{active:t}=e;s(t.id),d(!0)},onDragEnd:t=>{const{active:n,over:r}=t;if(s(null),d(!1),null==r)return;if(n.id===r.id)return;const i=e.indexOf(n.id),a=e.indexOf(r.id),l=H(e,i,a);o(l)},onDragCancel:f,onDragAbort:f},t.createElement(Ko,null,t.createElement(L,{items:e},h.map((e=>e)))),k(t.createElement(A,{zIndex:X.modal+1},t.createElement(Jo.Provider,{value:{isGhost:!0}},g)),document.body))},ta=v.div`
|
|
540
540
|
display: flex;
|
|
541
541
|
align-items: center;
|
|
542
542
|
cursor: ${({isGhost:e})=>e?"grabbing":""};
|
|
@@ -551,7 +551,7 @@ var Tr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
551
551
|
`,ra=v.div`
|
|
552
552
|
flex-grow: 1;
|
|
553
553
|
pointer-events: ${({isGhost:e})=>e?"none":"auto"};
|
|
554
|
-
`,ia=({id:e,disabled:n,children:r})=>{const{setNodeRef:i,setActivatorNodeRef:o,attributes:a,listeners:l,transform:s,transition:d,isDragging:u}=V({id:e,disabled:null!=n&&n}),{isGhost:p}=c(Jo),m=ne();return t.createElement(ta,{ref:i,isGhost:p,style:{transform:
|
|
554
|
+
`,ia=({id:e,disabled:n,children:r})=>{const{setNodeRef:i,setActivatorNodeRef:o,attributes:a,listeners:l,transform:s,transition:d,isDragging:u}=V({id:e,disabled:null!=n&&n}),{isGhost:p}=c(Jo),m=ne();return t.createElement(ta,{ref:i,isGhost:p,style:{transform:O.Transform.toString(s),transition:d,opacity:u?.25:1}},t.createElement(na,Object.assign({ref:o,isGhost:p,isDragging:u,disabled:n},a,l),t.createElement(le,{name:"braille",size:"lg",color:m.palette.black})),t.createElement(ra,{isGhost:p},r))};ia.displayName=Uo;const oa=v.div`
|
|
555
555
|
display: flex;
|
|
556
556
|
align-items: center;
|
|
557
557
|
`,aa=v.span`
|
|
@@ -723,7 +723,7 @@ var Tr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
723
723
|
min-height: 0;
|
|
724
724
|
overflow: auto;
|
|
725
725
|
padding: ${({$hasStickyHeader:e,$hasStickyFooter:t})=>`${e?"8px":"0"} 0 ${t?"8px":"0"}`};
|
|
726
|
-
`,
|
|
726
|
+
`,Sa=v.div`
|
|
727
727
|
position: absolute;
|
|
728
728
|
bottom: 0;
|
|
729
729
|
left: 0;
|
|
@@ -740,7 +740,7 @@ var Tr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
740
740
|
transparent 100%
|
|
741
741
|
);
|
|
742
742
|
z-index: 1;
|
|
743
|
-
`,
|
|
743
|
+
`,Oa=n((({open:n,trigger:r,width:s,minWidth:p,maxHeight:g,children:f,onOpenChange:b,stickyHeader:v,stickyFooter:x,placement:y,middleware:w},C)=>{const E=ne(),{isRoot:I,close:k}=c($t),[M,$]=i(!1),A=o(null),[L,V]=i(!1),[H,S]=i(!1),O=Lo(`(max-width: ${F.MOBILE}px)`),D=d((()=>{const e=A.current;if(!e)return;const{scrollTop:t,scrollHeight:n,clientHeight:r}=e;V(n>r&&t<n-r-1)}),[]),R=D,z=l((()=>!!H||(void 0!==n?n:M)),[n,M,H]),N=d((()=>{k(),$(!1),S(!1),null==b||b(!1)}),[k,$,S,b]),T=function(e){const t=wi(),n=$i(),r=Mi();return gi((()=>{const e={id:t,parentId:r};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,r]),t}(),{refs:Z,floatingStyles:B,context:P}=ho({nodeId:T,open:z,onOpenChange:e=>{$(e),null==b||b(e)},placement:y,middleware:null!=w?w:[hr({mainAxis:5,crossAxis:0}),pr((()=>I?{allowedPlacements:["bottom-start","bottom-end","top-start","top-end"]}:{allowedPlacements:O?["bottom-start"]:["right-start","left-start"],autoAlignment:!1})),fr({apply({availableWidth:e,availableHeight:t,elements:n}){let r=Math.max(0,t);if(g)if("number"==typeof g)r=Math.min(r,g);else{if(!/[a-z%]+$/i.test(g)){const e=parseFloat(g);isNaN(e)||(r=Math.min(r,e))}}Object.assign(n.floating.style,Object.assign({maxWidth:`${Math.max(0,e)}px`,maxHeight:`${r}px`},null!=s&&{width:`${s}px`}))}})],whileElementsMounted:Vr}),_=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&&(Dn(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:Dn(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||ao(e)||(" "!==e.key||lo(a)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&i(!r||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||ao(e)||lo(a)||" "===e.key&&m.current&&(m.current=!1,i(!r||!c,e.nativeEvent,"click"))}}}:{}),[l,o,s,d,u,a,c,r,i])}(P),G=Di(P,{enabled:!I,mouseOnly:!0,delay:{open:100,close:H?999999:100},restMs:100,handleClose:ko()}),j=po(P),[Y,W]=i(null),X=Eo(P),J=o([]),U=Co(P,{listRef:J,activeIndex:Y,onNavigate:W,loop:!0,nested:!I}),Q=$o(J,[]),{getReferenceProps:q,getFloatingProps:K,getItemProps:ee}=fo([_,G,j,X,U]),te=[Oa.displayName,Dt.displayName,Ro.displayName,_o.displayName,Wo.displayName,ya.displayName,Ca.displayName];a((()=>{Ia(r)&&Z.setPositionReference({getBoundingClientRect:()=>({width:0,height:0,x:r.x,y:r.y,top:r.y,left:r.x,right:r.x,bottom:r.y})})}),[r,C,Z]),u((()=>{if(!z)return void V(!1);const e=requestAnimationFrame((()=>{D()}));return()=>cancelAnimationFrame(e)}),[z,D]),a((()=>{if(!z)return;const e=A.current;if(!e)return;const t=new ResizeObserver((()=>{D()}));return t.observe(e),()=>{t.disconnect()}}),[z,D]);const re=m(r)?r.props.ref:void 0,ie=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)}([C,Z.setReference,re]),oe=!Ia(r)&&m(r)?(()=>{const e=Object.assign({},r.props);return delete e.ref,e})():{};return t.createElement(t.Fragment,null,Ia(r)?null:h(r,Object.assign(Object.assign(Object.assign({},oe),q()),{ref:ie})),t.createElement(Ai,{id:T},z&&t.createElement(no,null,t.createElement(oo,{context:P,modal:!1,initialFocus:-1,returnFocus:!1},t.createElement(Ma,Object.assign({ref:Z.setFloating,$maxHeight:g,style:Object.assign(Object.assign(Object.assign({},B),null!=w&&null!=s&&{width:`${s}px`}),{minWidth:null!=p?p:"auto"})},K()),t.createElement($a,null,t.createElement($t.Provider,{value:{isRoot:!1,activeIndex:Y,maxActiveIndex:Q,setActiveIndex:W,close:N}},t.createElement(Xo.Provider,{value:{isSorting:H,setIsSorting:S}},v&&t.createElement(Aa,null,v),t.createElement(Va,null,t.createElement(Ha,{ref:A,$hasStickyHeader:!!v,$hasStickyFooter:!!x,onScroll:R},((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)&&te.includes(r.displayName)))})).map((e=>t.isValidElement(e)?t.cloneElement(e,Object.assign(Object.assign(Object.assign({tabIndex:Y===e.key?0:-1,ref:t=>{J.current[e.key]=t}},ee()),e.props),{key:e.key})):e)))(f)),L&&t.createElement(Sa,{"aria-hidden":"true"},t.createElement(le,{name:"skip_down",type:"fill",size:"md",color:E.palette.black}))),x&&t.createElement(La,null,x)))))))))}));Oa.displayName="ContextMenu2";const Da=({children:e})=>{if(!m(e)||"string"==typeof e.type||"function"!=typeof e.type&&"object"!=typeof e.type||!("displayName"in e.type)||e.type.displayName!==Oa.displayName)throw new Error("ContextMenu2Container には 1 つの ContextMenu2 しか入れられません");return t.createElement($t.Provider,{value:{isRoot:!0,close:()=>{},activeIndex:null,maxActiveIndex:-1,setActiveIndex:()=>{}}},t.createElement(Li,null,e))},Ra=v.p`
|
|
744
744
|
border-radius: 4px;
|
|
745
745
|
padding: 4px 8px;
|
|
746
746
|
margin-bottom: 8px;
|
|
@@ -912,7 +912,7 @@ var Tr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
912
912
|
animation: ${qa} 1.5s ease-in-out infinite;
|
|
913
913
|
stroke-linecap: round;
|
|
914
914
|
stroke-miterlimit: 10;
|
|
915
|
-
`,rl=e.forwardRef((function({width:t="50px"},n){const r=ne();return e.createElement(Ka,{ref:n,width:t},e.createElement(el,{viewBox:"25 25 50 50"},e.createElement(tl,{cx:"50",cy:"50",r:"20",stroke:r.palette.neutral.softLight}),e.createElement(nl,{cx:"50",cy:"50",r:"20",stroke:r.palette.primary.base})))})),il={small:"28px",medium:"32px",large:"40px"},ol={small:`${we.sm}px`,medium:`${we.md}px`,large:`${we.xl}px`},al={small:"4px",medium:"6px",large:"6px"},ll={small:"6px",medium:"8px",large:"10px"};function sl(e,t){switch(t){case"primary":return e.palette.primary.darker;case"secondaryLight":return e.palette.neutral.softLight;case"secondaryDark":case"clear":return e.palette.neutral.lighter;case"danger":return e.palette.danger.darker;case"primarySubtle":return e.palette.primary.softLight}}const cl=e.forwardRef((function(t,n){var{component:r,children:i,color:o="primary",textColor:a,inline:l=!0,size:s="medium",icon:c,loading:d,isQuiet:u=!1}=t,p=D(t,["component","children","color","textColor","inline","size","icon","loading","isQuiet"]);const m=ne(),h=(e=>({primary:{normal:{background:e.palette.primary.base,color:e.palette.text.white,boxShadow:e.shadow["3dShadowPrimary"],border:`1px solid ${e.palette.primary.dark}`},hover:{background:e.palette.primary.dark,border:"none"},active:{background:e.palette.primary.dark,boxShadow:e.shadow["3dShadowActive"],border:"none"}},secondaryLight:{normal:{background:e.palette.background.default,color:e.palette.black,boxShadow:e.shadow["3dShadowBasic"],border:`1px solid ${e.palette.divider}`},hover:{background:e.palette.neutral.highlight,border:`1px solid ${e.palette.divider}`},active:{background:e.palette.neutral.highlight,boxShadow:e.shadow["3dShadowActive"],border:`1px solid ${e.palette.divider}`}},secondaryDark:{normal:{background:e.palette.neutral.highlight,color:e.palette.black,boxShadow:e.shadow["3dShadowBasic"],border:`1px solid ${e.palette.divider}`},hover:{background:e.palette.neutral.softLight,border:"none"},active:{background:e.palette.neutral.softLight,boxShadow:e.shadow["3dShadowBasicActive"],border:"none"}},danger:{normal:{background:e.palette.danger.base,color:e.palette.text.white,boxShadow:e.shadow["3dShadowDanger"],border:`1px solid ${e.palette.danger.dark}`},hover:{background:e.palette.danger.dark,border:"none"},active:{background:e.palette.danger.dark,boxShadow:e.shadow["3dShadowActive"],border:"none"}},clear:{normal:{background:"none",color:e.palette.black,boxShadow:"none",border:"none"},hover:{background:e.palette.neutral.softLight,border:"none"},active:{background:e.palette.neutral.lighter,boxShadow:"none",border:"none"}},primarySubtle:{normal:{background:e.palette.primary.ultraLight,color:e.palette.primary.dark,boxShadow:e.shadow["3dShadowPrimarySubtle"],border:`1px solid ${e.palette.primary.softLight}`},hover:{background:e.palette.primary.highlight,border:"none"},active:{background:e.palette.primary.highlight,boxShadow:e.shadow["3dShadowPrimarySubtleActive"],border:"none"}}}))(m)[o],g=e.useMemo((()=>u?{normal:Object.assign(Object.assign({},h.normal),{border:"none",boxShadow:"none"}),hover:Object.assign(Object.assign({},h.hover),{border:"none"}),active:Object.assign(Object.assign({},h.active),{background:sl(m,o),border:"none",boxShadow:"none"})}:h),[h,o,u,m]),f=!!d,b="string"==typeof d?d:d?"Loading...":void 0,v=e.useMemo((()=>({small:"16px",medium:"18px",large:"20px"}[s])),[s]),x=e.useMemo((()=>f?e.createElement(rl,{width:v}):null),[f,v]),y=!!c,w=!!i,C=f?y?x:void 0:c,E=f?!y&&w||y&&w?b:void 0:i,I=(()=>{if("string"==typeof p.href){const{href:e,target:t,rel:n}=p;return{as:r||"a",href:e,target:t,rel:n}}return{}})();return e.createElement(Wa,Object.assign({ref:n},p,{as:r||"button"},I,{size:s,inline:l,paddingInline:ll[s],normal:g.normal,hover:g.hover,active:g.active,borderRadius:al[s],fontSize:ol[s],height:il[s],color:o,$isQuiet:u,disabled:p.disabled||f}),C,C&&E&&e.createElement(Ua,{pr:.5}),E&&e.createElement(Ya,{$textColor:a},E))})),dl={1955:"国民の祝日・休日月日,国民の祝日・休日名称\n1955/1/1,元日\n1955/1/15,成人の日\n1955/3/21,春分の日\n1955/4/29,天皇誕生日\n1955/5/3,憲法記念日\n1955/5/5,こどもの日\n1955/9/24,秋分の日\n1955/11/3,文化の日\n1955/11/23,勤労感謝の日",1956:"国民の祝日・休日月日,国民の祝日・休日名称\n1956/1/1,元日\n1956/1/15,成人の日\n1956/3/21,春分の日\n1956/4/29,天皇誕生日\n1956/5/3,憲法記念日\n1956/5/5,こどもの日\n1956/9/23,秋分の日\n1956/11/3,文化の日\n1956/11/23,勤労感謝の日",1957:"国民の祝日・休日月日,国民の祝日・休日名称\n1957/1/1,元日\n1957/1/15,成人の日\n1957/3/21,春分の日\n1957/4/29,天皇誕生日\n1957/5/3,憲法記念日\n1957/5/5,こどもの日\n1957/9/23,秋分の日\n1957/11/3,文化の日\n1957/11/23,勤労感謝の日",1958:"国民の祝日・休日月日,国民の祝日・休日名称\n1958/1/1,元日\n1958/1/15,成人の日\n1958/3/21,春分の日\n1958/4/29,天皇誕生日\n1958/5/3,憲法記念日\n1958/5/5,こどもの日\n1958/9/23,秋分の日\n1958/11/3,文化の日\n1958/11/23,勤労感謝の日",1959:"国民の祝日・休日月日,国民の祝日・休日名称\n1959/1/1,元日\n1959/1/15,成人の日\n1959/3/21,春分の日\n1959/4/10,結婚の儀\n1959/4/29,天皇誕生日\n1959/5/3,憲法記念日\n1959/5/5,こどもの日\n1959/9/24,秋分の日\n1959/11/3,文化の日\n1959/11/23,勤労感謝の日",1960:"国民の祝日・休日月日,国民の祝日・休日名称\n1960/1/1,元日\n1960/1/15,成人の日\n1960/3/20,春分の日\n1960/4/29,天皇誕生日\n1960/5/3,憲法記念日\n1960/5/5,こどもの日\n1960/9/23,秋分の日\n1960/11/3,文化の日\n1960/11/23,勤労感謝の日",1961:"国民の祝日・休日月日,国民の祝日・休日名称\n1961/1/1,元日\n1961/1/15,成人の日\n1961/3/21,春分の日\n1961/4/29,天皇誕生日\n1961/5/3,憲法記念日\n1961/5/5,こどもの日\n1961/9/23,秋分の日\n1961/11/3,文化の日\n1961/11/23,勤労感謝の日",1962:"国民の祝日・休日月日,国民の祝日・休日名称\n1962/1/1,元日\n1962/1/15,成人の日\n1962/3/21,春分の日\n1962/4/29,天皇誕生日\n1962/5/3,憲法記念日\n1962/5/5,こどもの日\n1962/9/23,秋分の日\n1962/11/3,文化の日\n1962/11/23,勤労感謝の日",1963:"国民の祝日・休日月日,国民の祝日・休日名称\n1963/1/1,元日\n1963/1/15,成人の日\n1963/3/21,春分の日\n1963/4/29,天皇誕生日\n1963/5/3,憲法記念日\n1963/5/5,こどもの日\n1963/9/24,秋分の日\n1963/11/3,文化の日\n1963/11/23,勤労感謝の日",1964:"国民の祝日・休日月日,国民の祝日・休日名称\n1964/1/1,元日\n1964/1/15,成人の日\n1964/3/20,春分の日\n1964/4/29,天皇誕生日\n1964/5/3,憲法記念日\n1964/5/5,こどもの日\n1964/9/23,秋分の日\n1964/11/3,文化の日\n1964/11/23,勤労感謝の日",1965:"国民の祝日・休日月日,国民の祝日・休日名称\n1965/1/1,元日\n1965/1/15,成人の日\n1965/3/21,春分の日\n1965/4/29,天皇誕生日\n1965/5/3,憲法記念日\n1965/5/5,こどもの日\n1965/9/23,秋分の日\n1965/11/3,文化の日\n1965/11/23,勤労感謝の日",1966:"国民の祝日・休日月日,国民の祝日・休日名称\n1966/1/1,元日\n1966/1/15,成人の日\n1966/3/21,春分の日\n1966/4/29,天皇誕生日\n1966/5/3,憲法記念日\n1966/5/5,こどもの日\n1966/9/15,敬老の日\n1966/9/23,秋分の日\n1966/10/10,体育の日\n1966/11/3,文化の日\n1966/11/23,勤労感謝の日",1967:"国民の祝日・休日月日,国民の祝日・休日名称\n1967/1/1,元日\n1967/1/15,成人の日\n1967/2/11,建国記念の日\n1967/3/21,春分の日\n1967/4/29,天皇誕生日\n1967/5/3,憲法記念日\n1967/5/5,こどもの日\n1967/9/15,敬老の日\n1967/9/24,秋分の日\n1967/10/10,体育の日\n1967/11/3,文化の日\n1967/11/23,勤労感謝の日",1968:"国民の祝日・休日月日,国民の祝日・休日名称\n1968/1/1,元日\n1968/1/15,成人の日\n1968/2/11,建国記念の日\n1968/3/20,春分の日\n1968/4/29,天皇誕生日\n1968/5/3,憲法記念日\n1968/5/5,こどもの日\n1968/9/15,敬老の日\n1968/9/23,秋分の日\n1968/10/10,体育の日\n1968/11/3,文化の日\n1968/11/23,勤労感謝の日",1969:"国民の祝日・休日月日,国民の祝日・休日名称\n1969/1/1,元日\n1969/1/15,成人の日\n1969/2/11,建国記念の日\n1969/3/21,春分の日\n1969/4/29,天皇誕生日\n1969/5/3,憲法記念日\n1969/5/5,こどもの日\n1969/9/15,敬老の日\n1969/9/23,秋分の日\n1969/10/10,体育の日\n1969/11/3,文化の日\n1969/11/23,勤労感謝の日",1970:"国民の祝日・休日月日,国民の祝日・休日名称\n1970/1/1,元日\n1970/1/15,成人の日\n1970/2/11,建国記念の日\n1970/3/21,春分の日\n1970/4/29,天皇誕生日\n1970/5/3,憲法記念日\n1970/5/5,こどもの日\n1970/9/15,敬老の日\n1970/9/23,秋分の日\n1970/10/10,体育の日\n1970/11/3,文化の日\n1970/11/23,勤労感謝の日",1971:"国民の祝日・休日月日,国民の祝日・休日名称\n1971/1/1,元日\n1971/1/15,成人の日\n1971/2/11,建国記念の日\n1971/3/21,春分の日\n1971/4/29,天皇誕生日\n1971/5/3,憲法記念日\n1971/5/5,こどもの日\n1971/9/15,敬老の日\n1971/9/24,秋分の日\n1971/10/10,体育の日\n1971/11/3,文化の日\n1971/11/23,勤労感謝の日",1972:"国民の祝日・休日月日,国民の祝日・休日名称\n1972/1/1,元日\n1972/1/15,成人の日\n1972/2/11,建国記念の日\n1972/3/20,春分の日\n1972/4/29,天皇誕生日\n1972/5/3,憲法記念日\n1972/5/5,こどもの日\n1972/9/15,敬老の日\n1972/9/23,秋分の日\n1972/10/10,体育の日\n1972/11/3,文化の日\n1972/11/23,勤労感謝の日",1973:"国民の祝日・休日月日,国民の祝日・休日名称\n1973/1/1,元日\n1973/1/15,成人の日\n1973/2/11,建国記念の日\n1973/3/21,春分の日\n1973/4/29,天皇誕生日\n1973/4/30,休日\n1973/5/3,憲法記念日\n1973/5/5,こどもの日\n1973/9/15,敬老の日\n1973/9/23,秋分の日\n1973/9/24,休日\n1973/10/10,体育の日\n1973/11/3,文化の日\n1973/11/23,勤労感謝の日",1974:"国民の祝日・休日月日,国民の祝日・休日名称\n1974/1/1,元日\n1974/1/15,成人の日\n1974/2/11,建国記念の日\n1974/3/21,春分の日\n1974/4/29,天皇誕生日\n1974/5/3,憲法記念日\n1974/5/5,こどもの日\n1974/5/6,休日\n1974/9/15,敬老の日\n1974/9/16,休日\n1974/9/23,秋分の日\n1974/10/10,体育の日\n1974/11/3,文化の日\n1974/11/4,休日\n1974/11/23,勤労感謝の日",1975:"国民の祝日・休日月日,国民の祝日・休日名称\n1975/1/1,元日\n1975/1/15,成人の日\n1975/2/11,建国記念の日\n1975/3/21,春分の日\n1975/4/29,天皇誕生日\n1975/5/3,憲法記念日\n1975/5/5,こどもの日\n1975/9/15,敬老の日\n1975/9/24,秋分の日\n1975/10/10,体育の日\n1975/11/3,文化の日\n1975/11/23,勤労感謝の日\n1975/11/24,休日",1976:"国民の祝日・休日月日,国民の祝日・休日名称\n1976/1/1,元日\n1976/1/15,成人の日\n1976/2/11,建国記念の日\n1976/3/20,春分の日\n1976/4/29,天皇誕生日\n1976/5/3,憲法記念日\n1976/5/5,こどもの日\n1976/9/15,敬老の日\n1976/9/23,秋分の日\n1976/10/10,体育の日\n1976/10/11,休日\n1976/11/3,文化の日\n1976/11/23,勤労感謝の日",1977:"国民の祝日・休日月日,国民の祝日・休日名称\n1977/1/1,元日\n1977/1/15,成人の日\n1977/2/11,建国記念の日\n1977/3/21,春分の日\n1977/4/29,天皇誕生日\n1977/5/3,憲法記念日\n1977/5/5,こどもの日\n1977/9/15,敬老の日\n1977/9/23,秋分の日\n1977/10/10,体育の日\n1977/11/3,文化の日\n1977/11/23,勤労感謝の日",1978:"国民の祝日・休日月日,国民の祝日・休日名称\n1978/1/1,元日\n1978/1/2,休日\n1978/1/15,成人の日\n1978/1/16,休日\n1978/2/11,建国記念の日\n1978/3/21,春分の日\n1978/4/29,天皇誕生日\n1978/5/3,憲法記念日\n1978/5/5,こどもの日\n1978/9/15,敬老の日\n1978/9/23,秋分の日\n1978/10/10,体育の日\n1978/11/3,文化の日\n1978/11/23,勤労感謝の日",1979:"国民の祝日・休日月日,国民の祝日・休日名称\n1979/1/1,元日\n1979/1/15,成人の日\n1979/2/11,建国記念の日\n1979/2/12,休日\n1979/3/21,春分の日\n1979/4/29,天皇誕生日\n1979/4/30,休日\n1979/5/3,憲法記念日\n1979/5/5,こどもの日\n1979/9/15,敬老の日\n1979/9/24,秋分の日\n1979/10/10,体育の日\n1979/11/3,文化の日\n1979/11/23,勤労感謝の日",1980:"国民の祝日・休日月日,国民の祝日・休日名称\n1980/1/1,元日\n1980/1/15,成人の日\n1980/2/11,建国記念の日\n1980/3/20,春分の日\n1980/4/29,天皇誕生日\n1980/5/3,憲法記念日\n1980/5/5,こどもの日\n1980/9/15,敬老の日\n1980/9/23,秋分の日\n1980/10/10,体育の日\n1980/11/3,文化の日\n1980/11/23,勤労感謝の日\n1980/11/24,休日",1981:"国民の祝日・休日月日,国民の祝日・休日名称\n1981/1/1,元日\n1981/1/15,成人の日\n1981/2/11,建国記念の日\n1981/3/21,春分の日\n1981/4/29,天皇誕生日\n1981/5/3,憲法記念日\n1981/5/4,休日\n1981/5/5,こどもの日\n1981/9/15,敬老の日\n1981/9/23,秋分の日\n1981/10/10,体育の日\n1981/11/3,文化の日\n1981/11/23,勤労感謝の日",1982:"国民の祝日・休日月日,国民の祝日・休日名称\n1982/1/1,元日\n1982/1/15,成人の日\n1982/2/11,建国記念の日\n1982/3/21,春分の日\n1982/3/22,休日\n1982/4/29,天皇誕生日\n1982/5/3,憲法記念日\n1982/5/5,こどもの日\n1982/9/15,敬老の日\n1982/9/23,秋分の日\n1982/10/10,体育の日\n1982/10/11,休日\n1982/11/3,文化の日\n1982/11/23,勤労感謝の日",1983:"国民の祝日・休日月日,国民の祝日・休日名称\n1983/1/1,元日\n1983/1/15,成人の日\n1983/2/11,建国記念の日\n1983/3/21,春分の日\n1983/4/29,天皇誕生日\n1983/5/3,憲法記念日\n1983/5/5,こどもの日\n1983/9/15,敬老の日\n1983/9/23,秋分の日\n1983/10/10,体育の日\n1983/11/3,文化の日\n1983/11/23,勤労感謝の日",1984:"国民の祝日・休日月日,国民の祝日・休日名称\n1984/1/1,元日\n1984/1/2,休日\n1984/1/15,成人の日\n1984/1/16,休日\n1984/2/11,建国記念の日\n1984/3/20,春分の日\n1984/4/29,天皇誕生日\n1984/4/30,休日\n1984/5/3,憲法記念日\n1984/5/5,こどもの日\n1984/9/15,敬老の日\n1984/9/23,秋分の日\n1984/9/24,休日\n1984/10/10,体育の日\n1984/11/3,文化の日\n1984/11/23,勤労感謝の日",1985:"国民の祝日・休日月日,国民の祝日・休日名称\n1985/1/1,元日\n1985/1/15,成人の日\n1985/2/11,建国記念の日\n1985/3/21,春分の日\n1985/4/29,天皇誕生日\n1985/5/3,憲法記念日\n1985/5/5,こどもの日\n1985/5/6,休日\n1985/9/15,敬老の日\n1985/9/16,休日\n1985/9/23,秋分の日\n1985/10/10,体育の日\n1985/11/3,文化の日\n1985/11/4,休日\n1985/11/23,勤労感謝の日",1986:"国民の祝日・休日月日,国民の祝日・休日名称\n1986/1/1,元日\n1986/1/15,成人の日\n1986/2/11,建国記念の日\n1986/3/21,春分の日\n1986/4/29,天皇誕生日\n1986/5/3,憲法記念日\n1986/5/5,こどもの日\n1986/9/15,敬老の日\n1986/9/23,秋分の日\n1986/10/10,体育の日\n1986/11/3,文化の日\n1986/11/23,勤労感謝の日\n1986/11/24,休日",1987:"国民の祝日・休日月日,国民の祝日・休日名称\n1987/1/1,元日\n1987/1/15,成人の日\n1987/2/11,建国記念の日\n1987/3/21,春分の日\n1987/4/29,天皇誕生日\n1987/5/3,憲法記念日\n1987/5/4,休日\n1987/5/5,こどもの日\n1987/9/15,敬老の日\n1987/9/23,秋分の日\n1987/10/10,体育の日\n1987/11/3,文化の日\n1987/11/23,勤労感謝の日",1988:"国民の祝日・休日月日,国民の祝日・休日名称\n1988/1/1,元日\n1988/1/15,成人の日\n1988/2/11,建国記念の日\n1988/3/20,春分の日\n1988/3/21,休日\n1988/4/29,天皇誕生日\n1988/5/3,憲法記念日\n1988/5/4,休日\n1988/5/5,こどもの日\n1988/9/15,敬老の日\n1988/9/23,秋分の日\n1988/10/10,体育の日\n1988/11/3,文化の日\n1988/11/23,勤労感謝の日",1989:"国民の祝日・休日月日,国民の祝日・休日名称\n1989/1/1,元日\n1989/1/2,休日\n1989/1/15,成人の日\n1989/1/16,休日\n1989/2/11,建国記念の日\n1989/2/24,大喪の礼\n1989/3/21,春分の日\n1989/4/29,みどりの日\n1989/5/3,憲法記念日\n1989/5/4,休日\n1989/5/5,こどもの日\n1989/9/15,敬老の日\n1989/9/23,秋分の日\n1989/10/10,体育の日\n1989/11/3,文化の日\n1989/11/23,勤労感謝の日\n1989/12/23,天皇誕生日",1990:"国民の祝日・休日月日,国民の祝日・休日名称\n1990/1/1,元日\n1990/1/15,成人の日\n1990/2/11,建国記念の日\n1990/2/12,休日\n1990/3/21,春分の日\n1990/4/29,みどりの日\n1990/4/30,休日\n1990/5/3,憲法記念日\n1990/5/4,休日\n1990/5/5,こどもの日\n1990/9/15,敬老の日\n1990/9/23,秋分の日\n1990/9/24,休日\n1990/10/10,体育の日\n1990/11/3,文化の日\n1990/11/12,即位礼正殿の儀\n1990/11/23,勤労感謝の日\n1990/12/23,天皇誕生日\n1990/12/24,休日",1991:"国民の祝日・休日月日,国民の祝日・休日名称\n1991/1/1,元日\n1991/1/15,成人の日\n1991/2/11,建国記念の日\n1991/3/21,春分の日\n1991/4/29,みどりの日\n1991/5/3,憲法記念日\n1991/5/4,休日\n1991/5/5,こどもの日\n1991/5/6,休日\n1991/9/15,敬老の日\n1991/9/16,休日\n1991/9/23,秋分の日\n1991/10/10,体育の日\n1991/11/3,文化の日\n1991/11/4,休日\n1991/11/23,勤労感謝の日\n1991/12/23,天皇誕生日",1992:"国民の祝日・休日月日,国民の祝日・休日名称\n1992/1/1,元日\n1992/1/15,成人の日\n1992/2/11,建国記念の日\n1992/3/20,春分の日\n1992/4/29,みどりの日\n1992/5/3,憲法記念日\n1992/5/4,休日\n1992/5/5,こどもの日\n1992/9/15,敬老の日\n1992/9/23,秋分の日\n1992/10/10,体育の日\n1992/11/3,文化の日\n1992/11/23,勤労感謝の日\n1992/12/23,天皇誕生日",1993:"国民の祝日・休日月日,国民の祝日・休日名称\n1993/1/1,元日\n1993/1/15,成人の日\n1993/2/11,建国記念の日\n1993/3/20,春分の日\n1993/4/29,みどりの日\n1993/5/3,憲法記念日\n1993/5/4,休日\n1993/5/5,こどもの日\n1993/6/9,結婚の儀\n1993/9/15,敬老の日\n1993/9/23,秋分の日\n1993/10/10,体育の日\n1993/10/11,休日\n1993/11/3,文化の日\n1993/11/23,勤労感謝の日\n1993/12/23,天皇誕生日",1994:"国民の祝日・休日月日,国民の祝日・休日名称\n1994/1/1,元日\n1994/1/15,成人の日\n1994/2/11,建国記念の日\n1994/3/21,春分の日\n1994/4/29,みどりの日\n1994/5/3,憲法記念日\n1994/5/4,休日\n1994/5/5,こどもの日\n1994/9/15,敬老の日\n1994/9/23,秋分の日\n1994/10/10,体育の日\n1994/11/3,文化の日\n1994/11/23,勤労感謝の日\n1994/12/23,天皇誕生日",1995:"国民の祝日・休日月日,国民の祝日・休日名称\n1995/1/1,元日\n1995/1/2,休日\n1995/1/15,成人の日\n1995/1/16,休日\n1995/2/11,建国記念の日\n1995/3/21,春分の日\n1995/4/29,みどりの日\n1995/5/3,憲法記念日\n1995/5/4,休日\n1995/5/5,こどもの日\n1995/9/15,敬老の日\n1995/9/23,秋分の日\n1995/10/10,体育の日\n1995/11/3,文化の日\n1995/11/23,勤労感謝の日\n1995/12/23,天皇誕生日",1996:"国民の祝日・休日月日,国民の祝日・休日名称\n1996/1/1,元日\n1996/1/15,成人の日\n1996/2/11,建国記念の日\n1996/2/12,休日\n1996/3/20,春分の日\n1996/4/29,みどりの日\n1996/5/3,憲法記念日\n1996/5/4,休日\n1996/5/5,こどもの日\n1996/5/6,休日\n1996/7/20,海の日\n1996/9/15,敬老の日\n1996/9/16,休日\n1996/9/23,秋分の日\n1996/10/10,体育の日\n1996/11/3,文化の日\n1996/11/4,休日\n1996/11/23,勤労感謝の日\n1996/12/23,天皇誕生日",1997:"国民の祝日・休日月日,国民の祝日・休日名称\n1997/1/1,元日\n1997/1/15,成人の日\n1997/2/11,建国記念の日\n1997/3/20,春分の日\n1997/4/29,みどりの日\n1997/5/3,憲法記念日\n1997/5/5,こどもの日\n1997/7/20,海の日\n1997/7/21,休日\n1997/9/15,敬老の日\n1997/9/23,秋分の日\n1997/10/10,体育の日\n1997/11/3,文化の日\n1997/11/23,勤労感謝の日\n1997/11/24,休日\n1997/12/23,天皇誕生日",1998:"国民の祝日・休日月日,国民の祝日・休日名称\n1998/1/1,元日\n1998/1/15,成人の日\n1998/2/11,建国記念の日\n1998/3/21,春分の日\n1998/4/29,みどりの日\n1998/5/3,憲法記念日\n1998/5/4,休日\n1998/5/5,こどもの日\n1998/7/20,海の日\n1998/9/15,敬老の日\n1998/9/23,秋分の日\n1998/10/10,体育の日\n1998/11/3,文化の日\n1998/11/23,勤労感謝の日\n1998/12/23,天皇誕生日",1999:"国民の祝日・休日月日,国民の祝日・休日名称\n1999/1/1,元日\n1999/1/15,成人の日\n1999/2/11,建国記念の日\n1999/3/21,春分の日\n1999/3/22,休日\n1999/4/29,みどりの日\n1999/5/3,憲法記念日\n1999/5/4,休日\n1999/5/5,こどもの日\n1999/7/20,海の日\n1999/9/15,敬老の日\n1999/9/23,秋分の日\n1999/10/10,体育の日\n1999/10/11,休日\n1999/11/3,文化の日\n1999/11/23,勤労感謝の日\n1999/12/23,天皇誕生日",2e3:"国民の祝日・休日月日,国民の祝日・休日名称\n2000/1/1,元日\n2000/1/10,成人の日\n2000/2/11,建国記念の日\n2000/3/20,春分の日\n2000/4/29,みどりの日\n2000/5/3,憲法記念日\n2000/5/4,休日\n2000/5/5,こどもの日\n2000/7/20,海の日\n2000/9/15,敬老の日\n2000/9/23,秋分の日\n2000/10/9,体育の日\n2000/11/3,文化の日\n2000/11/23,勤労感謝の日\n2000/12/23,天皇誕生日",2001:"国民の祝日・休日月日,国民の祝日・休日名称\n2001/1/1,元日\n2001/1/8,成人の日\n2001/2/11,建国記念の日\n2001/2/12,休日\n2001/3/20,春分の日\n2001/4/29,みどりの日\n2001/4/30,休日\n2001/5/3,憲法記念日\n2001/5/4,休日\n2001/5/5,こどもの日\n2001/7/20,海の日\n2001/9/15,敬老の日\n2001/9/23,秋分の日\n2001/9/24,休日\n2001/10/8,体育の日\n2001/11/3,文化の日\n2001/11/23,勤労感謝の日\n2001/12/23,天皇誕生日\n2001/12/24,休日",2002:"国民の祝日・休日月日,国民の祝日・休日名称\n2002/1/1,元日\n2002/1/14,成人の日\n2002/2/11,建国記念の日\n2002/3/21,春分の日\n2002/4/29,みどりの日\n2002/5/3,憲法記念日\n2002/5/4,休日\n2002/5/5,こどもの日\n2002/5/6,休日\n2002/7/20,海の日\n2002/9/15,敬老の日\n2002/9/16,休日\n2002/9/23,秋分の日\n2002/10/14,体育の日\n2002/11/3,文化の日\n2002/11/4,休日\n2002/11/23,勤労感謝の日\n2002/12/23,天皇誕生日",2003:"国民の祝日・休日月日,国民の祝日・休日名称\n2003/1/1,元日\n2003/1/13,成人の日\n2003/2/11,建国記念の日\n2003/3/21,春分の日\n2003/4/29,みどりの日\n2003/5/3,憲法記念日\n2003/5/5,こどもの日\n2003/7/21,海の日\n2003/9/15,敬老の日\n2003/9/23,秋分の日\n2003/10/13,体育の日\n2003/11/3,文化の日\n2003/11/23,勤労感謝の日\n2003/11/24,休日\n2003/12/23,天皇誕生日",2004:"国民の祝日・休日月日,国民の祝日・休日名称\n2004/1/1,元日\n2004/1/12,成人の日\n2004/2/11,建国記念の日\n2004/3/20,春分の日\n2004/4/29,みどりの日\n2004/5/3,憲法記念日\n2004/5/4,休日\n2004/5/5,こどもの日\n2004/7/19,海の日\n2004/9/20,敬老の日\n2004/9/23,秋分の日\n2004/10/11,体育の日\n2004/11/3,文化の日\n2004/11/23,勤労感謝の日\n2004/12/23,天皇誕生日",2005:"国民の祝日・休日月日,国民の祝日・休日名称\n2005/1/1,元日\n2005/1/10,成人の日\n2005/2/11,建国記念の日\n2005/3/20,春分の日\n2005/3/21,休日\n2005/4/29,みどりの日\n2005/5/3,憲法記念日\n2005/5/4,休日\n2005/5/5,こどもの日\n2005/7/18,海の日\n2005/9/19,敬老の日\n2005/9/23,秋分の日\n2005/10/10,体育の日\n2005/11/3,文化の日\n2005/11/23,勤労感謝の日\n2005/12/23,天皇誕生日",2006:"国民の祝日・休日月日,国民の祝日・休日名称\n2006/1/1,元日\n2006/1/2,休日\n2006/1/9,成人の日\n2006/2/11,建国記念の日\n2006/3/21,春分の日\n2006/4/29,みどりの日\n2006/5/3,憲法記念日\n2006/5/4,休日\n2006/5/5,こどもの日\n2006/7/17,海の日\n2006/9/18,敬老の日\n2006/9/23,秋分の日\n2006/10/9,体育の日\n2006/11/3,文化の日\n2006/11/23,勤労感謝の日\n2006/12/23,天皇誕生日",2007:"国民の祝日・休日月日,国民の祝日・休日名称\n2007/1/1,元日\n2007/1/8,成人の日\n2007/2/11,建国記念の日\n2007/2/12,休日\n2007/3/21,春分の日\n2007/4/29,昭和の日\n2007/4/30,休日\n2007/5/3,憲法記念日\n2007/5/4,みどりの日\n2007/5/5,こどもの日\n2007/7/16,海の日\n2007/9/17,敬老の日\n2007/9/23,秋分の日\n2007/9/24,休日\n2007/10/8,体育の日\n2007/11/3,文化の日\n2007/11/23,勤労感謝の日\n2007/12/23,天皇誕生日\n2007/12/24,休日",2008:"国民の祝日・休日月日,国民の祝日・休日名称\n2008/1/1,元日\n2008/1/14,成人の日\n2008/2/11,建国記念の日\n2008/3/20,春分の日\n2008/4/29,昭和の日\n2008/5/3,憲法記念日\n2008/5/4,みどりの日\n2008/5/5,こどもの日\n2008/5/6,休日\n2008/7/21,海の日\n2008/9/15,敬老の日\n2008/9/23,秋分の日\n2008/10/13,体育の日\n2008/11/3,文化の日\n2008/11/23,勤労感謝の日\n2008/11/24,休日\n2008/12/23,天皇誕生日",2009:"国民の祝日・休日月日,国民の祝日・休日名称\n2009/1/1,元日\n2009/1/12,成人の日\n2009/2/11,建国記念の日\n2009/3/20,春分の日\n2009/4/29,昭和の日\n2009/5/3,憲法記念日\n2009/5/4,みどりの日\n2009/5/5,こどもの日\n2009/5/6,休日\n2009/7/20,海の日\n2009/9/21,敬老の日\n2009/9/22,休日\n2009/9/23,秋分の日\n2009/10/12,体育の日\n2009/11/3,文化の日\n2009/11/23,勤労感謝の日\n2009/12/23,天皇誕生日",2010:"国民の祝日・休日月日,国民の祝日・休日名称\n2010/1/1,元日\n2010/1/11,成人の日\n2010/2/11,建国記念の日\n2010/3/21,春分の日\n2010/3/22,休日\n2010/4/29,昭和の日\n2010/5/3,憲法記念日\n2010/5/4,みどりの日\n2010/5/5,こどもの日\n2010/7/19,海の日\n2010/9/20,敬老の日\n2010/9/23,秋分の日\n2010/10/11,体育の日\n2010/11/3,文化の日\n2010/11/23,勤労感謝の日\n2010/12/23,天皇誕生日",2011:"国民の祝日・休日月日,国民の祝日・休日名称\n2011/1/1,元日\n2011/1/10,成人の日\n2011/2/11,建国記念の日\n2011/3/21,春分の日\n2011/4/29,昭和の日\n2011/5/3,憲法記念日\n2011/5/4,みどりの日\n2011/5/5,こどもの日\n2011/7/18,海の日\n2011/9/19,敬老の日\n2011/9/23,秋分の日\n2011/10/10,体育の日\n2011/11/3,文化の日\n2011/11/23,勤労感謝の日\n2011/12/23,天皇誕生日",2012:"国民の祝日・休日月日,国民の祝日・休日名称\n2012/1/1,元日\n2012/1/2,休日\n2012/1/9,成人の日\n2012/2/11,建国記念の日\n2012/3/20,春分の日\n2012/4/29,昭和の日\n2012/4/30,休日\n2012/5/3,憲法記念日\n2012/5/4,みどりの日\n2012/5/5,こどもの日\n2012/7/16,海の日\n2012/9/17,敬老の日\n2012/9/22,秋分の日\n2012/10/8,体育の日\n2012/11/3,文化の日\n2012/11/23,勤労感謝の日\n2012/12/23,天皇誕生日\n2012/12/24,休日",2013:"国民の祝日・休日月日,国民の祝日・休日名称\n2013/1/1,元日\n2013/1/14,成人の日\n2013/2/11,建国記念の日\n2013/3/20,春分の日\n2013/4/29,昭和の日\n2013/5/3,憲法記念日\n2013/5/4,みどりの日\n2013/5/5,こどもの日\n2013/5/6,休日\n2013/7/15,海の日\n2013/9/16,敬老の日\n2013/9/23,秋分の日\n2013/10/14,体育の日\n2013/11/3,文化の日\n2013/11/4,休日\n2013/11/23,勤労感謝の日\n2013/12/23,天皇誕生日",2014:"国民の祝日・休日月日,国民の祝日・休日名称\n2014/1/1,元日\n2014/1/13,成人の日\n2014/2/11,建国記念の日\n2014/3/21,春分の日\n2014/4/29,昭和の日\n2014/5/3,憲法記念日\n2014/5/4,みどりの日\n2014/5/5,こどもの日\n2014/5/6,休日\n2014/7/21,海の日\n2014/9/15,敬老の日\n2014/9/23,秋分の日\n2014/10/13,体育の日\n2014/11/3,文化の日\n2014/11/23,勤労感謝の日\n2014/11/24,休日\n2014/12/23,天皇誕生日",2015:"国民の祝日・休日月日,国民の祝日・休日名称\n2015/1/1,元日\n2015/1/12,成人の日\n2015/2/11,建国記念の日\n2015/3/21,春分の日\n2015/4/29,昭和の日\n2015/5/3,憲法記念日\n2015/5/4,みどりの日\n2015/5/5,こどもの日\n2015/5/6,休日\n2015/7/20,海の日\n2015/9/21,敬老の日\n2015/9/22,休日\n2015/9/23,秋分の日\n2015/10/12,体育の日\n2015/11/3,文化の日\n2015/11/23,勤労感謝の日\n2015/12/23,天皇誕生日",2016:"国民の祝日・休日月日,国民の祝日・休日名称\n2016/1/1,元日\n2016/1/11,成人の日\n2016/2/11,建国記念の日\n2016/3/20,春分の日\n2016/3/21,休日\n2016/4/29,昭和の日\n2016/5/3,憲法記念日\n2016/5/4,みどりの日\n2016/5/5,こどもの日\n2016/7/18,海の日\n2016/8/11,山の日\n2016/9/19,敬老の日\n2016/9/22,秋分の日\n2016/10/10,体育の日\n2016/11/3,文化の日\n2016/11/23,勤労感謝の日\n2016/12/23,天皇誕生日",2017:"国民の祝日・休日月日,国民の祝日・休日名称\n2017/1/1,元日\n2017/1/2,休日\n2017/1/9,成人の日\n2017/2/11,建国記念の日\n2017/3/20,春分の日\n2017/4/29,昭和の日\n2017/5/3,憲法記念日\n2017/5/4,みどりの日\n2017/5/5,こどもの日\n2017/7/17,海の日\n2017/8/11,山の日\n2017/9/18,敬老の日\n2017/9/23,秋分の日\n2017/10/9,体育の日\n2017/11/3,文化の日\n2017/11/23,勤労感謝の日\n2017/12/23,天皇誕生日",2018:"国民の祝日・休日月日,国民の祝日・休日名称\n2018/1/1,元日\n2018/1/8,成人の日\n2018/2/11,建国記念の日\n2018/2/12,休日\n2018/3/21,春分の日\n2018/4/29,昭和の日\n2018/4/30,休日\n2018/5/3,憲法記念日\n2018/5/4,みどりの日\n2018/5/5,こどもの日\n2018/7/16,海の日\n2018/8/11,山の日\n2018/9/17,敬老の日\n2018/9/23,秋分の日\n2018/9/24,休日\n2018/10/8,体育の日\n2018/11/3,文化の日\n2018/11/23,勤労感謝の日\n2018/12/23,天皇誕生日\n2018/12/24,休日",2019:"国民の祝日・休日月日,国民の祝日・休日名称\n2019/1/1,元日\n2019/1/14,成人の日\n2019/2/11,建国記念の日\n2019/3/21,春分の日\n2019/4/29,昭和の日\n2019/4/30,休日\n2019/5/1,休日(祝日扱い)\n2019/5/2,休日\n2019/5/3,憲法記念日\n2019/5/4,みどりの日\n2019/5/5,こどもの日\n2019/5/6,休日\n2019/7/15,海の日\n2019/8/11,山の日\n2019/8/12,休日\n2019/9/16,敬老の日\n2019/9/23,秋分の日\n2019/10/14,体育の日(スポーツの日)\n2019/10/22,休日(祝日扱い)\n2019/11/3,文化の日\n2019/11/4,休日\n2019/11/23,勤労感謝の日",2020:"国民の祝日・休日月日,国民の祝日・休日名称\n2020/1/1,元日\n2020/1/13,成人の日\n2020/2/11,建国記念の日\n2020/2/23,天皇誕生日\n2020/2/24,休日\n2020/3/20,春分の日\n2020/4/29,昭和の日\n2020/5/3,憲法記念日\n2020/5/4,みどりの日\n2020/5/5,こどもの日\n2020/5/6,休日\n2020/7/23,海の日\n2020/7/24,スポーツの日\n2020/8/10,山の日\n2020/9/21,敬老の日\n2020/9/22,秋分の日\n2020/11/3,文化の日\n2020/11/23,勤労感謝の日",2021:"国民の祝日・休日月日,国民の祝日・休日名称\n2021/1/1,元日\n2021/1/11,成人の日\n2021/2/11,建国記念の日\n2021/2/23,天皇誕生日\n2021/3/20,春分の日\n2021/4/29,昭和の日\n2021/5/3,憲法記念日\n2021/5/4,みどりの日\n2021/5/5,こどもの日\n2021/7/22,海の日\n2021/7/23,スポーツの日\n2021/8/8,山の日\n2021/8/9,休日\n2021/9/20,敬老の日\n2021/9/23,秋分の日\n2021/11/3,文化の日\n2021/11/23,勤労感謝の日",2022:"国民の祝日・休日月日,国民の祝日・休日名称\n2022/1/1,元日\n2022/1/10,成人の日\n2022/2/11,建国記念の日\n2022/2/23,天皇誕生日\n2022/3/21,春分の日\n2022/4/29,昭和の日\n2022/5/3,憲法記念日\n2022/5/4,みどりの日\n2022/5/5,こどもの日\n2022/7/18,海の日\n2022/8/11,山の日\n2022/9/19,敬老の日\n2022/9/23,秋分の日\n2022/10/10,スポーツの日\n2022/11/3,文化の日\n2022/11/23,勤労感謝の日",2023:"国民の祝日・休日月日,国民の祝日・休日名称\n2023/1/1,元日\n2023/1/2,休日\n2023/1/9,成人の日\n2023/2/11,建国記念の日\n2023/2/23,天皇誕生日\n2023/3/21,春分の日\n2023/4/29,昭和の日\n2023/5/3,憲法記念日\n2023/5/4,みどりの日\n2023/5/5,こどもの日\n2023/7/17,海の日\n2023/8/11,山の日\n2023/9/18,敬老の日\n2023/9/23,秋分の日\n2023/10/9,スポーツの日\n2023/11/3,文化の日\n2023/11/23,勤労感謝の日",2024:"国民の祝日・休日月日,国民の祝日・休日名称\n2024/1/1,元日\n2024/1/8,成人の日\n2024/2/11,建国記念の日\n2024/2/12,休日\n2024/2/23,天皇誕生日\n2024/3/20,春分の日\n2024/4/29,昭和の日\n2024/5/3,憲法記念日\n2024/5/4,みどりの日\n2024/5/5,こどもの日\n2024/5/6,休日\n2024/7/15,海の日\n2024/8/11,山の日\n2024/8/12,休日\n2024/9/16,敬老の日\n2024/9/22,秋分の日\n2024/9/23,休日\n2024/10/14,スポーツの日\n2024/11/3,文化の日\n2024/11/4,休日\n2024/11/23,勤労感謝の日",2025:"国民の祝日・休日月日,国民の祝日・休日名称\n2025/1/1,元日\n2025/1/13,成人の日\n2025/2/11,建国記念の日\n2025/2/23,天皇誕生日\n2025/2/24,休日\n2025/3/20,春分の日\n2025/4/29,昭和の日\n2025/5/3,憲法記念日\n2025/5/4,みどりの日\n2025/5/5,こどもの日\n2025/5/6,休日\n2025/7/21,海の日\n2025/8/11,山の日\n2025/9/15,敬老の日\n2025/9/23,秋分の日\n2025/10/13,スポーツの日\n2025/11/3,文化の日\n2025/11/23,勤労感謝の日\n2025/11/24,休日",2026:"国民の祝日・休日月日,国民の祝日・休日名称\n2026/1/1,元日\n2026/1/12,成人の日\n2026/2/11,建国記念の日\n2026/2/23,天皇誕生日\n2026/3/20,春分の日\n2026/4/29,昭和の日\n2026/5/3,憲法記念日\n2026/5/4,みどりの日\n2026/5/5,こどもの日\n2026/5/6,休日\n2026/7/20,海の日\n2026/8/11,山の日\n2026/9/21,敬老の日\n2026/9/22,休日\n2026/9/23,秋分の日\n2026/10/12,スポーツの日\n2026/11/3,文化の日\n2026/11/23,勤労感謝の日",2027:"国民の祝日・休日月日,国民の祝日・休日名称\n2027/1/1,元日\n2027/1/11,成人の日\n2027/2/11,建国記念の日\n2027/2/23,天皇誕生日\n2027/3/21,春分の日\n2027/3/22,休日\n2027/4/29,昭和の日\n2027/5/3,憲法記念日\n2027/5/4,みどりの日\n2027/5/5,こどもの日\n2027/7/19,海の日\n2027/8/11,山の日\n2027/9/20,敬老の日\n2027/9/23,秋分の日\n2027/10/11,スポーツの日\n2027/11/3,文化の日\n2027/11/23,勤労感謝の日"},ul={},pl=e=>{const t=e||(new Date).getFullYear(),n=t.toString();if(ul[n])return ul[n];const r=(e=>{const t=(e||(new Date).getFullYear()).toString();return dl[t]?dl[t]:"国民の祝日・休日月日,国民の祝日・休日名称"})(t),i=r.split("\n"),o=[];for(let e=1;e<i.length;e++){const t=i[e].trim();if(t){const[e,n]=t.split(",");e&&n&&o.push({date:e.trim(),name:n.trim()})}}return ul[n]=o,o};var ml="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},hl=[],gl=[],fl="undefined"!=typeof Uint8Array?Uint8Array:Array,bl=!1;function vl(){bl=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)hl[t]=e[t],gl[e.charCodeAt(t)]=t;gl["-".charCodeAt(0)]=62,gl["_".charCodeAt(0)]=63}function xl(e,t,n){for(var r,i,o=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(hl[(i=r)>>18&63]+hl[i>>12&63]+hl[i>>6&63]+hl[63&i]);return o.join("")}function yl(e){var t;bl||vl();for(var n=e.length,r=n%3,i="",o=[],a=16383,l=0,s=n-r;l<s;l+=a)o.push(xl(e,l,l+a>s?s:l+a));return 1===r?(t=e[n-1],i+=hl[t>>2],i+=hl[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=hl[t>>10],i+=hl[t>>4&63],i+=hl[t<<2&63],i+="="),o.push(i),o.join("")}function wl(e,t,n,r,i){var o,a,l=8*i-r-1,s=(1<<l)-1,c=s>>1,d=-7,u=n?i-1:0,p=n?-1:1,m=e[t+u];for(u+=p,o=m&(1<<-d)-1,m>>=-d,d+=l;d>0;o=256*o+e[t+u],u+=p,d-=8);for(a=o&(1<<-d)-1,o>>=-d,d+=r;d>0;a=256*a+e[t+u],u+=p,d-=8);if(0===o)o=1-c;else{if(o===s)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,r),o-=c}return(m?-1:1)*a*Math.pow(2,o-r)}function Cl(e,t,n,r,i,o){var a,l,s,c=8*o-i-1,d=(1<<c)-1,u=d>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:o-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+u>=1?p/s:p*Math.pow(2,1-u))*s>=2&&(a++,s/=2),a+u>=d?(l=0,a=d):a+u>=1?(l=(t*s-1)*Math.pow(2,i),a+=u):(l=t*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;e[n+m]=255&l,m+=h,l/=256,i-=8);for(a=a<<i|l,c+=i;c>0;e[n+m]=255&a,m+=h,a/=256,c-=8);e[n+m-h]|=128*g}var El={}.toString,Il=Array.isArray||function(e){return"[object Array]"==El.call(e)};function kl(){return $l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ml(e,t){if(kl()<t)throw new RangeError("Invalid typed array length");return $l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=$l.prototype:(null===e&&(e=new $l(t)),e.length=t),e}function $l(e,t,n){if(!($l.TYPED_ARRAY_SUPPORT||this instanceof $l))return new $l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Vl(this,e)}return Al(this,e,t,n)}function Al(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);$l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=$l.prototype:e=Hl(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!$l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Dl(t,n);e=Ml(e,r);var i=e.write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(Sl(t)){var n=0|Ol(t.length);return 0===(e=Ml(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?Ml(e,0):Hl(e,t);if("Buffer"===t.type&&Il(t.data))return Hl(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Ll(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Vl(e,t){if(Ll(t),e=Ml(e,t<0?0:0|Ol(t)),!$l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function Hl(e,t){var n=t.length<0?0:0|Ol(t.length);e=Ml(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Ol(e){if(e>=kl())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kl().toString(16)+" bytes");return 0|e}function Sl(e){return!(null==e||!e._isBuffer)}function Dl(e,t){if(Sl(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return ls(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ss(e).length;default:if(r)return ls(e).length;t=(""+t).toLowerCase(),r=!0}}function Rl(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ul(this,t,n);case"utf8":case"utf-8":return Yl(this,t,n);case"ascii":return Xl(this,t,n);case"latin1":case"binary":return Jl(this,t,n);case"base64":return Fl(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ql(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function zl(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Nl(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=$l.from(t,r)),Sl(t))return 0===t.length?-1:Tl(e,t,n,r,i);if("number"==typeof t)return t&=255,$l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Tl(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Tl(e,t,n,r,i){var o,a=1,l=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,l/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var d=-1;for(o=n;o<l;o++)if(c(e,o)===c(t,-1===d?0:o-d)){if(-1===d&&(d=o),o-d+1===s)return d*a}else-1!==d&&(o-=o-d),d=-1}else for(n+s>l&&(n=l-s),o=n;o>=0;o--){for(var u=!0,p=0;p<s;p++)if(c(e,o+p)!==c(t,p)){u=!1;break}if(u)return o}return-1}function Zl(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var l=parseInt(t.substr(2*a,2),16);if(isNaN(l))return a;e[n+a]=l}return a}function Bl(e,t,n,r){return cs(ls(t,e.length-n),e,n,r)}function Pl(e,t,n,r){return cs(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _l(e,t,n,r){return Pl(e,t,n,r)}function Gl(e,t,n,r){return cs(ss(t),e,n,r)}function jl(e,t,n,r){return cs(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function Fl(e,t,n){return 0===t&&n===e.length?yl(e):yl(e.slice(t,n))}function Yl(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,l,s,c=e[i],d=null,u=c>239?4:c>223?3:c>191?2:1;if(i+u<=n)switch(u){case 1:c<128&&(d=c);break;case 2:128==(192&(o=e[i+1]))&&(s=(31&c)<<6|63&o)>127&&(d=s);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(s=(15&c)<<12|(63&o)<<6|63&a)>2047&&(s<55296||s>57343)&&(d=s);break;case 4:o=e[i+1],a=e[i+2],l=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&l)&&(s=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(d=s)}null===d?(d=65533,u=1):d>65535&&(d-=65536,r.push(d>>>10&1023|55296),d=56320|1023&d),r.push(d),i+=u}return function(e){var t=e.length;if(t<=Wl)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Wl));return n}(r)}$l.TYPED_ARRAY_SUPPORT=void 0===ml.TYPED_ARRAY_SUPPORT||ml.TYPED_ARRAY_SUPPORT,kl(),$l.poolSize=8192,$l._augment=function(e){return e.__proto__=$l.prototype,e},$l.from=function(e,t,n){return Al(null,e,t,n)},$l.TYPED_ARRAY_SUPPORT&&($l.prototype.__proto__=Uint8Array.prototype,$l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&$l[Symbol.species]),$l.alloc=function(e,t,n){return function(e,t,n,r){return Ll(t),t<=0?Ml(e,t):void 0!==n?"string"==typeof r?Ml(e,t).fill(n,r):Ml(e,t).fill(n):Ml(e,t)}(null,e,t,n)},$l.allocUnsafe=function(e){return Vl(null,e)},$l.allocUnsafeSlow=function(e){return Vl(null,e)},$l.isBuffer=ds,$l.compare=function(e,t){if(!Sl(e)||!Sl(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},$l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},$l.concat=function(e,t){if(!Il(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return $l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=$l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!Sl(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},$l.byteLength=Dl,$l.prototype._isBuffer=!0,$l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)zl(this,t,t+1);return this},$l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)zl(this,t,t+3),zl(this,t+1,t+2);return this},$l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)zl(this,t,t+7),zl(this,t+1,t+6),zl(this,t+2,t+5),zl(this,t+3,t+4);return this},$l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Yl(this,0,e):Rl.apply(this,arguments)},$l.prototype.equals=function(e){if(!Sl(e))throw new TypeError("Argument must be a Buffer");return this===e||0===$l.compare(this,e)},$l.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},$l.prototype.compare=function(e,t,n,r,i){if(!Sl(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),l=Math.min(o,a),s=this.slice(r,i),c=e.slice(t,n),d=0;d<l;++d)if(s[d]!==c[d]){o=s[d],a=c[d];break}return o<a?-1:a<o?1:0},$l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},$l.prototype.indexOf=function(e,t,n){return Nl(this,e,t,n,!0)},$l.prototype.lastIndexOf=function(e,t,n){return Nl(this,e,t,n,!1)},$l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Zl(this,e,t,n);case"utf8":case"utf-8":return Bl(this,e,t,n);case"ascii":return Pl(this,e,t,n);case"latin1":case"binary":return _l(this,e,t,n);case"base64":return Gl(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jl(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},$l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Wl=4096;function Xl(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function Jl(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function Ul(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=as(e[o]);return i}function Ql(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function ql(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Kl(e,t,n,r,i,o){if(!Sl(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function es(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function ts(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function ns(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function rs(e,t,n,r,i){return i||ns(e,0,n,4),Cl(e,t,n,r,23,4),n+4}function is(e,t,n,r,i){return i||ns(e,0,n,8),Cl(e,t,n,r,52,8),n+8}$l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),$l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=$l.prototype;else{var i=t-e;n=new $l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},$l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||ql(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},$l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||ql(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},$l.prototype.readUInt8=function(e,t){return t||ql(e,1,this.length),this[e]},$l.prototype.readUInt16LE=function(e,t){return t||ql(e,2,this.length),this[e]|this[e+1]<<8},$l.prototype.readUInt16BE=function(e,t){return t||ql(e,2,this.length),this[e]<<8|this[e+1]},$l.prototype.readUInt32LE=function(e,t){return t||ql(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},$l.prototype.readUInt32BE=function(e,t){return t||ql(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},$l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||ql(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},$l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||ql(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},$l.prototype.readInt8=function(e,t){return t||ql(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},$l.prototype.readInt16LE=function(e,t){t||ql(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},$l.prototype.readInt16BE=function(e,t){t||ql(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},$l.prototype.readInt32LE=function(e,t){return t||ql(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},$l.prototype.readInt32BE=function(e,t){return t||ql(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},$l.prototype.readFloatLE=function(e,t){return t||ql(e,4,this.length),wl(this,e,!0,23,4)},$l.prototype.readFloatBE=function(e,t){return t||ql(e,4,this.length),wl(this,e,!1,23,4)},$l.prototype.readDoubleLE=function(e,t){return t||ql(e,8,this.length),wl(this,e,!0,52,8)},$l.prototype.readDoubleBE=function(e,t){return t||ql(e,8,this.length),wl(this,e,!1,52,8)},$l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Kl(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},$l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Kl(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},$l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,1,255,0),$l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},$l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,2,65535,0),$l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):es(this,e,t,!0),t+2},$l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,2,65535,0),$l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):es(this,e,t,!1),t+2},$l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,4,4294967295,0),$l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):ts(this,e,t,!0),t+4},$l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,4,4294967295,0),$l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ts(this,e,t,!1),t+4},$l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Kl(this,e,t,n,i-1,-i)}var o=0,a=1,l=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===l&&0!==this[t+o-1]&&(l=1),this[t+o]=(e/a>>0)-l&255;return t+n},$l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Kl(this,e,t,n,i-1,-i)}var o=n-1,a=1,l=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===l&&0!==this[t+o+1]&&(l=1),this[t+o]=(e/a>>0)-l&255;return t+n},$l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,1,127,-128),$l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},$l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,2,32767,-32768),$l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):es(this,e,t,!0),t+2},$l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,2,32767,-32768),$l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):es(this,e,t,!1),t+2},$l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,4,2147483647,-2147483648),$l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):ts(this,e,t,!0),t+4},$l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),$l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ts(this,e,t,!1),t+4},$l.prototype.writeFloatLE=function(e,t,n){return rs(this,e,t,!0,n)},$l.prototype.writeFloatBE=function(e,t,n){return rs(this,e,t,!1,n)},$l.prototype.writeDoubleLE=function(e,t,n){return is(this,e,t,!0,n)},$l.prototype.writeDoubleBE=function(e,t,n){return is(this,e,t,!1,n)},$l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!$l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},$l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!$l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=Sl(e)?e:ls(new $l(e,r).toString()),l=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%l]}return this};var os=/[^+\/0-9A-Za-z-_]/g;function as(e){return e<16?"0"+e.toString(16):e.toString(16)}function ls(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function ss(e){return function(e){var t,n,r,i,o,a;bl||vl();var l=e.length;if(l%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[l-2]?2:"="===e[l-1]?1:0,a=new fl(3*l/4-o),r=o>0?l-4:l;var s=0;for(t=0,n=0;t<r;t+=4,n+=3)i=gl[e.charCodeAt(t)]<<18|gl[e.charCodeAt(t+1)]<<12|gl[e.charCodeAt(t+2)]<<6|gl[e.charCodeAt(t+3)],a[s++]=i>>16&255,a[s++]=i>>8&255,a[s++]=255&i;return 2===o?(i=gl[e.charCodeAt(t)]<<2|gl[e.charCodeAt(t+1)]>>4,a[s++]=255&i):1===o&&(i=gl[e.charCodeAt(t)]<<10|gl[e.charCodeAt(t+1)]<<4|gl[e.charCodeAt(t+2)]>>2,a[s++]=i>>8&255,a[s++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(os,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function cs(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function ds(e){return null!=e&&(!!e._isBuffer||us(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&us(e.slice(0,0))}(e))}function us(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}class ps extends Error{constructor(e,t,n,...r){Array.isArray(t)&&(t=t.join(" ").trim()),super(t),void 0!==Error.captureStackTrace&&Error.captureStackTrace(this,ps),this.code=e;for(const e of r)for(const t in e){const r=e[t];this[t]=ds(r)?r.toString(n.encoding):null==r?r:JSON.parse(JSON.stringify(r))}}}const ms=function(e){const t=[];for(let r=0,i=e.length;r<i;r++){const i=e[r];if(null==i||!1===i)t[r]={disabled:!0};else if("string"==typeof i)t[r]={name:i};else{if("object"!=typeof(n=i)||null===n||Array.isArray(n))throw new ps("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(i)} at position ${r}`]);if("string"!=typeof i.name)throw new ps("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${r}`,"when column is an object literal"]);t[r]=i}}var n;return t};class hs{constructor(e=100){this.size=e,this.length=0,this.buf=$l.allocUnsafe(e)}prepend(e){if(ds(e)){const t=this.length+e.length;if(t>=this.size&&(this.resize(),t>=this.size))throw Error("INVALID_BUFFER_STATE");const n=this.buf;this.buf=$l.allocUnsafe(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{const t=this.length++;t===this.size&&this.resize();const n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,t)}}append(e){const t=this.length++;t===this.size&&this.resize(),this.buf[t]=e}clone(){return $l.from(this.buf.slice(0,this.length))}resize(){const e=this.length;this.size=2*this.size;const t=$l.allocUnsafe(this.size);this.buf.copy(t,0,0,e),this.buf=t}toString(e){return e?this.buf.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}}const gs=function(e){return{bomSkipped:!1,bufBytesStart:0,castField:e.cast_function,commenting:!1,error:void 0,enabled:1===e.from_line,escaping:!1,escapeIsQuote:ds(e.escape)&&ds(e.quote)&&0===$l.compare(e.escape,e.quote),expectedRecordLength:Array.isArray(e.columns)?e.columns.length:void 0,field:new hs(20),firstLineToHeaders:e.cast_first_line_to_header,needMoreDataSize:Math.max(null!==e.comment?e.comment.length:0,...e.delimiter.map((e=>e.length)),null!==e.quote?e.quote.length:0),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new hs(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:0===e.record_delimiter.length?0:Math.max(...e.record_delimiter.map((e=>e.length))),trimChars:[$l.from(" ",e.encoding)[0],$l.from("\t",e.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:[$l.from($l.from([13],"utf8").toString(),e.encoding),$l.from($l.from([10],"utf8").toString(),e.encoding),$l.from($l.from([12],"utf8").toString(),e.encoding),$l.from($l.from([32],"utf8").toString(),e.encoding),$l.from($l.from([9],"utf8").toString(),e.encoding)]}},fs=function(e){const t={};for(const r in e)t[(n=r,n.replace(/([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})))]=e[r];var n;if(void 0===t.encoding||!0===t.encoding)t.encoding="utf8";else if(null===t.encoding||!1===t.encoding)t.encoding=null;else if("string"!=typeof t.encoding&&null!==t.encoding)throw new ps("CSV_INVALID_OPTION_ENCODING",["Invalid option encoding:","encoding must be a string or null to return a buffer,",`got ${JSON.stringify(t.encoding)}`],t);if(void 0===t.bom||null===t.bom||!1===t.bom)t.bom=!1;else if(!0!==t.bom)throw new ps("CSV_INVALID_OPTION_BOM",["Invalid option bom:","bom must be true,",`got ${JSON.stringify(t.bom)}`],t);if(t.cast_function=null,void 0===t.cast||null===t.cast||!1===t.cast||""===t.cast)t.cast=void 0;else if("function"==typeof t.cast)t.cast_function=t.cast,t.cast=!0;else if(!0!==t.cast)throw new ps("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(t.cast)}`],t);if(void 0===t.cast_date||null===t.cast_date||!1===t.cast_date||""===t.cast_date)t.cast_date=!1;else if(!0===t.cast_date)t.cast_date=function(e){const t=Date.parse(e);return isNaN(t)?e:new Date(t)};else if("function"!=typeof t.cast_date)throw new ps("CSV_INVALID_OPTION_CAST_DATE",["Invalid option cast_date:","cast_date must be true or a function,",`got ${JSON.stringify(t.cast_date)}`],t);if(t.cast_first_line_to_header=void 0,!0===t.columns)t.cast_first_line_to_header=void 0;else if("function"==typeof t.columns)t.cast_first_line_to_header=t.columns,t.columns=!0;else if(Array.isArray(t.columns))t.columns=ms(t.columns);else{if(void 0!==t.columns&&null!==t.columns&&!1!==t.columns)throw new ps("CSV_INVALID_OPTION_COLUMNS",["Invalid option columns:","expect an array, a function or true,",`got ${JSON.stringify(t.columns)}`],t);t.columns=!1}if(void 0===t.group_columns_by_name||null===t.group_columns_by_name||!1===t.group_columns_by_name)t.group_columns_by_name=!1;else{if(!0!==t.group_columns_by_name)throw new ps("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","expect an boolean,",`got ${JSON.stringify(t.group_columns_by_name)}`],t);if(!1===t.columns)throw new ps("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","the `columns` mode must be activated."],t)}if(void 0===t.comment||null===t.comment||!1===t.comment||""===t.comment)t.comment=null;else if("string"==typeof t.comment&&(t.comment=$l.from(t.comment,t.encoding)),!ds(t.comment))throw new ps("CSV_INVALID_OPTION_COMMENT",["Invalid option comment:","comment must be a buffer or a string,",`got ${JSON.stringify(t.comment)}`],t);if(void 0===t.comment_no_infix||null===t.comment_no_infix||!1===t.comment_no_infix)t.comment_no_infix=!1;else if(!0!==t.comment_no_infix)throw new ps("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(t.comment_no_infix)}`],t);const r=JSON.stringify(t.delimiter);if(Array.isArray(t.delimiter)||(t.delimiter=[t.delimiter]),0===t.delimiter.length)throw new ps("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${r}`],t);if(t.delimiter=t.delimiter.map((function(e){if(null==e||!1===e)return $l.from(",",t.encoding);if("string"==typeof e&&(e=$l.from(e,t.encoding)),!ds(e)||0===e.length)throw new ps("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${r}`],t);return e})),void 0===t.escape||!0===t.escape?t.escape=$l.from('"',t.encoding):"string"==typeof t.escape?t.escape=$l.from(t.escape,t.encoding):null!==t.escape&&!1!==t.escape||(t.escape=null),null!==t.escape&&!ds(t.escape))throw new Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(t.escape)}`);if(void 0===t.from||null===t.from)t.from=1;else{if("string"==typeof t.from&&/\d+/.test(t.from)&&(t.from=parseInt(t.from)),!Number.isInteger(t.from))throw new Error(`Invalid Option: from must be an integer, got ${JSON.stringify(t.from)}`);if(t.from<0)throw new Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(e.from)}`)}if(void 0===t.from_line||null===t.from_line)t.from_line=1;else{if("string"==typeof t.from_line&&/\d+/.test(t.from_line)&&(t.from_line=parseInt(t.from_line)),!Number.isInteger(t.from_line))throw new Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(e.from_line)}`);if(t.from_line<=0)throw new Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(e.from_line)}`)}if(void 0===t.ignore_last_delimiters||null===t.ignore_last_delimiters)t.ignore_last_delimiters=!1;else if("number"==typeof t.ignore_last_delimiters)t.ignore_last_delimiters=Math.floor(t.ignore_last_delimiters),0===t.ignore_last_delimiters&&(t.ignore_last_delimiters=!1);else if("boolean"!=typeof t.ignore_last_delimiters)throw new ps("CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS",["Invalid option `ignore_last_delimiters`:","the value must be a boolean value or an integer,",`got ${JSON.stringify(t.ignore_last_delimiters)}`],t);if(!0===t.ignore_last_delimiters&&!1===t.columns)throw new ps("CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS",["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],t);if(void 0===t.info||null===t.info||!1===t.info)t.info=!1;else if(!0!==t.info)throw new Error(`Invalid Option: info must be true, got ${JSON.stringify(t.info)}`);if(void 0===t.max_record_size||null===t.max_record_size||!1===t.max_record_size)t.max_record_size=0;else if(Number.isInteger(t.max_record_size)&&t.max_record_size>=0);else{if("string"!=typeof t.max_record_size||!/\d+/.test(t.max_record_size))throw new Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(t.max_record_size)}`);t.max_record_size=parseInt(t.max_record_size)}if(void 0===t.objname||null===t.objname||!1===t.objname)t.objname=void 0;else if(ds(t.objname)){if(0===t.objname.length)throw new Error("Invalid Option: objname must be a non empty buffer");null===t.encoding||(t.objname=t.objname.toString(t.encoding))}else if("string"==typeof t.objname){if(0===t.objname.length)throw new Error("Invalid Option: objname must be a non empty string")}else if("number"!=typeof t.objname)throw new Error(`Invalid Option: objname must be a string or a buffer, got ${t.objname}`);if(void 0!==t.objname)if("number"==typeof t.objname){if(!1!==t.columns)throw Error("Invalid Option: objname index cannot be combined with columns or be defined as a field")}else if(!1===t.columns)throw Error("Invalid Option: objname field must be combined with columns or be defined as an index");if(void 0===t.on_record||null===t.on_record)t.on_record=void 0;else if("function"!=typeof t.on_record)throw new ps("CSV_INVALID_OPTION_ON_RECORD",["Invalid option `on_record`:","expect a function,",`got ${JSON.stringify(t.on_record)}`],t);if(void 0!==t.on_skip&&null!==t.on_skip&&"function"!=typeof t.on_skip)throw new Error(`Invalid Option: on_skip must be a function, got ${JSON.stringify(t.on_skip)}`);if(null===t.quote||!1===t.quote||""===t.quote)t.quote=null;else if(void 0===t.quote||!0===t.quote?t.quote=$l.from('"',t.encoding):"string"==typeof t.quote&&(t.quote=$l.from(t.quote,t.encoding)),!ds(t.quote))throw new Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(t.quote)}`);if(void 0===t.raw||null===t.raw||!1===t.raw)t.raw=!1;else if(!0!==t.raw)throw new Error(`Invalid Option: raw must be true, got ${JSON.stringify(t.raw)}`);if(void 0===t.record_delimiter)t.record_delimiter=[];else if("string"==typeof t.record_delimiter||ds(t.record_delimiter)){if(0===t.record_delimiter.length)throw new ps("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer,",`got ${JSON.stringify(t.record_delimiter)}`],t);t.record_delimiter=[t.record_delimiter]}else if(!Array.isArray(t.record_delimiter))throw new ps("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer,",`got ${JSON.stringify(t.record_delimiter)}`],t);if(t.record_delimiter=t.record_delimiter.map((function(e,n){if("string"!=typeof e&&!ds(e))throw new ps("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${n},`,`got ${JSON.stringify(e)}`],t);if(0===e.length)throw new ps("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${n},`,`got ${JSON.stringify(e)}`],t);return"string"==typeof e&&(e=$l.from(e,t.encoding)),e})),"boolean"==typeof t.relax_column_count);else{if(void 0!==t.relax_column_count&&null!==t.relax_column_count)throw new Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(t.relax_column_count)}`);t.relax_column_count=!1}if("boolean"==typeof t.relax_column_count_less);else{if(void 0!==t.relax_column_count_less&&null!==t.relax_column_count_less)throw new Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(t.relax_column_count_less)}`);t.relax_column_count_less=!1}if("boolean"==typeof t.relax_column_count_more);else{if(void 0!==t.relax_column_count_more&&null!==t.relax_column_count_more)throw new Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(t.relax_column_count_more)}`);t.relax_column_count_more=!1}if("boolean"==typeof t.relax_quotes);else{if(void 0!==t.relax_quotes&&null!==t.relax_quotes)throw new Error(`Invalid Option: relax_quotes must be a boolean, got ${JSON.stringify(t.relax_quotes)}`);t.relax_quotes=!1}if("boolean"==typeof t.skip_empty_lines);else{if(void 0!==t.skip_empty_lines&&null!==t.skip_empty_lines)throw new Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(t.skip_empty_lines)}`);t.skip_empty_lines=!1}if("boolean"==typeof t.skip_records_with_empty_values);else{if(void 0!==t.skip_records_with_empty_values&&null!==t.skip_records_with_empty_values)throw new Error(`Invalid Option: skip_records_with_empty_values must be a boolean, got ${JSON.stringify(t.skip_records_with_empty_values)}`);t.skip_records_with_empty_values=!1}if("boolean"==typeof t.skip_records_with_error);else{if(void 0!==t.skip_records_with_error&&null!==t.skip_records_with_error)throw new Error(`Invalid Option: skip_records_with_error must be a boolean, got ${JSON.stringify(t.skip_records_with_error)}`);t.skip_records_with_error=!1}if(void 0===t.rtrim||null===t.rtrim||!1===t.rtrim)t.rtrim=!1;else if(!0!==t.rtrim)throw new Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(t.rtrim)}`);if(void 0===t.ltrim||null===t.ltrim||!1===t.ltrim)t.ltrim=!1;else if(!0!==t.ltrim)throw new Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(t.ltrim)}`);if(void 0===t.trim||null===t.trim||!1===t.trim)t.trim=!1;else if(!0!==t.trim)throw new Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(t.trim)}`);if(!0===t.trim&&!1!==e.ltrim?t.ltrim=!0:!0!==t.ltrim&&(t.ltrim=!1),!0===t.trim&&!1!==e.rtrim?t.rtrim=!0:!0!==t.rtrim&&(t.rtrim=!1),void 0===t.to||null===t.to)t.to=-1;else if(-1!==t.to){if("string"==typeof t.to&&/\d+/.test(t.to)&&(t.to=parseInt(t.to)),!Number.isInteger(t.to))throw new Error(`Invalid Option: to must be an integer, got ${JSON.stringify(e.to)}`);if(t.to<=0)throw new Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(e.to)}`)}if(void 0===t.to_line||null===t.to_line)t.to_line=-1;else if(-1!==t.to_line){if("string"==typeof t.to_line&&/\d+/.test(t.to_line)&&(t.to_line=parseInt(t.to_line)),!Number.isInteger(t.to_line))throw new Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(e.to_line)}`);if(t.to_line<=0)throw new Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(e.to_line)}`)}return t},bs=function(e){return e.every((e=>null==e||e.toString&&""===e.toString().trim()))},vs={utf8:$l.from([239,187,191]),utf16le:$l.from([255,254])},xs=function(e,t={}){"string"==typeof e&&(e=$l.from(e));const n=t&&t.objname?{}:[],r=function(e={}){const t=fs(e);return{info:{bytes:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},original_options:e,options:t,state:gs(t),__needMoreData:function(e,t,n){if(n)return!1;const{encoding:r,escape:i,quote:o}=this.options,{quoting:a,needMoreDataSize:l,recordDelimiterMaxLength:s}=this.state;return t-e-1<Math.max(l,0===s?$l.from("\r\n",r).length:s,a?(null===i?0:i.length)+o.length:0,a?o.length+s:0)},parse:function(e,t,n,r){const{bom:i,comment_no_infix:o,encoding:a,from_line:l,ltrim:s,max_record_size:c,raw:d,relax_quotes:u,rtrim:p,skip_empty_lines:m,to:h,to_line:g}=this.options;let{comment:f,escape:b,quote:v,record_delimiter:x}=this.options;const{bomSkipped:y,previousBuf:w,rawBuffer:C,escapeIsQuote:E}=this.state;let I;if(void 0===w){if(void 0===e)return void r();I=e}else I=void 0!==w&&void 0===e?w:$l.concat([w,e]);if(!1===y)if(!1===i)this.state.bomSkipped=!0;else if(I.length<3){if(!1===t)return void(this.state.previousBuf=I)}else{for(const e in vs)if(0===vs[e].compare(I,0,vs[e].length)){const t=vs[e].length;this.state.bufBytesStart+=t,I=I.slice(t);const n=fs({...this.original_options,encoding:e});for(const e in n)this.options[e]=n[e];({comment:f,escape:b,quote:v}=this.options);break}this.state.bomSkipped=!0}const k=I.length;let M;for(M=0;M<k&&!this.__needMoreData(M,k,t);M++){if(!0===this.state.wasRowDelimiter&&(this.info.lines++,this.state.wasRowDelimiter=!1),-1!==g&&this.info.lines>g)return this.state.stop=!0,void r();!1===this.state.quoting&&0===x.length&&this.__autoDiscoverRecordDelimiter(I,M)&&(x=this.options.record_delimiter);const e=I[M];if(!0===d&&C.append(e),13!==e&&10!==e||!1!==this.state.wasRowDelimiter||(this.state.wasRowDelimiter=!0),!0===this.state.escaping)this.state.escaping=!1;else{if(null!==b&&!0===this.state.quoting&&this.__isEscape(I,M,e)&&M+b.length<k){if(!E){this.state.escaping=!0,M+=b.length-1;continue}if(this.__isQuote(I,M+b.length)){this.state.escaping=!0,M+=b.length-1;continue}}if(!1===this.state.commenting&&this.__isQuote(I,M))if(!0===this.state.quoting){const t=I[M+v.length],n=p&&this.__isCharTrimable(I,M+v.length),r=null!==f&&this.__compareBytes(f,I,M+v.length,t),i=this.__isDelimiter(I,M+v.length,t),o=0===x.length?this.__autoDiscoverRecordDelimiter(I,M+v.length):this.__isRecordDelimiter(t,I,M+v.length);if(null!==b&&this.__isEscape(I,M,e)&&this.__isQuote(I,M+b.length))M+=b.length-1;else{if(!t||i||o||r||n){this.state.quoting=!1,this.state.wasQuoting=!0,M+=v.length-1;continue}if(!1===u){const e=this.__error(new ps("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(t)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(void 0!==e)return e}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(v),M+=v.length-1}}else{if(0===this.state.field.length){this.state.quoting=!0,M+=v.length-1;continue}if(!1===u){const e=this.__infoField(),t=Object.keys(vs).map((e=>!!vs[e].equals(this.state.field.toString())&&e)).filter(Boolean)[0],n=this.__error(new ps("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(e.column)} at line ${e.lines}, value is ${JSON.stringify(this.state.field.toString(a))}`,t?`(${t} bom)`:void 0],this.options,e,{field:this.state.field}));if(void 0!==n)return n}}if(!1===this.state.quoting){const t=this.__isRecordDelimiter(e,I,M);if(0!==t){if(this.state.commenting&&!1===this.state.wasQuoting&&0===this.state.record.length&&0===this.state.field.length)this.info.comment_lines++;else{if(!1===this.state.enabled&&this.info.lines+(!0===this.state.wasRowDelimiter?1:0)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),M+=t-1;continue}if(!0===m&&!1===this.state.wasQuoting&&0===this.state.record.length&&0===this.state.field.length){this.info.empty_lines++,M+=t-1;continue}this.info.bytes=this.state.bufBytesStart+M;const e=this.__onField();if(void 0!==e)return e;this.info.bytes=this.state.bufBytesStart+M+t;const i=this.__onRecord(n);if(void 0!==i)return i;if(-1!==h&&this.info.records>=h)return this.state.stop=!0,void r()}this.state.commenting=!1,M+=t-1;continue}if(this.state.commenting)continue;if(null!==f&&(!1===o||0===this.state.record.length&&0===this.state.field.length)&&0!==this.__compareBytes(f,I,M,e)){this.state.commenting=!0;continue}const i=this.__isDelimiter(I,M,e);if(0!==i){this.info.bytes=this.state.bufBytesStart+M;const e=this.__onField();if(void 0!==e)return e;M+=i-1;continue}}}if(!1===this.state.commenting&&0!==c&&this.state.record_length+this.state.field.length>c)return this.__error(new ps("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${c}`,`at line ${this.info.lines}`],this.options,this.__infoField()));const t=!1===s||!0===this.state.quoting||0!==this.state.field.length||!this.__isCharTrimable(I,M),i=!1===p||!1===this.state.wasQuoting;if(!0!==t||!0!==i){if(!0!==p||this.__isCharTrimable(I,M)){!1===t&&(M+=this.__isCharTrimable(I,M)-1);continue}return this.__error(new ps("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()))}this.state.field.append(e)}if(!0===t)if(!0===this.state.quoting){const e=this.__error(new ps("CSV_QUOTE_NOT_CLOSED",["Quote Not Closed:",`the parsing is finished with an opening quote at line ${this.info.lines}`],this.options,this.__infoField()));if(void 0!==e)return e}else if(!0===this.state.wasQuoting||0!==this.state.record.length||0!==this.state.field.length){this.info.bytes=this.state.bufBytesStart+M;const e=this.__onField();if(void 0!==e)return e;const t=this.__onRecord(n);if(void 0!==t)return t}else!0===this.state.wasRowDelimiter?this.info.empty_lines++:!0===this.state.commenting&&this.info.comment_lines++;else this.state.bufBytesStart+=M,this.state.previousBuf=I.slice(M);!0===this.state.wasRowDelimiter&&(this.info.lines++,this.state.wasRowDelimiter=!1)},__onRecord:function(e){const{columns:t,group_columns_by_name:n,encoding:r,info:i,from:o,relax_column_count:a,relax_column_count_less:l,relax_column_count_more:s,raw:c,skip_records_with_empty_values:d}=this.options,{enabled:u,record:p}=this.state;if(!1===u)return this.__resetRecord();const m=p.length;if(!0===t)return!0===d&&bs(p)?void this.__resetRecord():this.__firstLineToColumns(p);if(!1===t&&0===this.info.records&&(this.state.expectedRecordLength=m),m!==this.state.expectedRecordLength){const e=!1===t?new ps("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${m} on line ${this.info.lines}`],this.options,this.__infoField(),{record:p}):new ps("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${t.length},`,`got ${m} on line ${this.info.lines}`],this.options,this.__infoField(),{record:p});if(!0===a||!0===l&&m<this.state.expectedRecordLength||!0===s&&m>this.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=e;else{const t=this.__error(e);if(t)return t}}if(!0===d&&bs(p))this.__resetRecord();else{if(!0===this.state.recordHasError)return this.__resetRecord(),void(this.state.recordHasError=!1);if(this.info.records++,1===o||this.info.records>=o){const{objname:o}=this.options;if(!1!==t){const a={};for(let e=0,r=p.length;e<r;e++)void 0===t[e]||t[e].disabled||(!0===n&&void 0!==a[t[e].name]?Array.isArray(a[t[e].name])?a[t[e].name]=a[t[e].name].concat(p[e]):a[t[e].name]=[a[t[e].name],p[e]]:a[t[e].name]=p[e]);if(!0===c||!0===i){const t=Object.assign({record:a},!0===c?{raw:this.state.rawBuffer.toString(r)}:{},!0===i?{info:this.__infoRecord()}:{}),n=this.__push(void 0===o?t:[a[o],t],e);if(n)return n}else{const t=this.__push(void 0===o?a:[a[o],a],e);if(t)return t}}else if(!0===c||!0===i){const t=Object.assign({record:p},!0===c?{raw:this.state.rawBuffer.toString(r)}:{},!0===i?{info:this.__infoRecord()}:{}),n=this.__push(void 0===o?t:[p[o],t],e);if(n)return n}else{const t=this.__push(void 0===o?p:[p[o],p],e);if(t)return t}}this.__resetRecord()}},__firstLineToColumns:function(e){const{firstLineToHeaders:t}=this.state;try{const n=void 0===t?e:t.call(null,e);if(!Array.isArray(n))return this.__error(new ps("CSV_INVALID_COLUMN_MAPPING",["Invalid Column Mapping:","expect an array from column function,",`got ${JSON.stringify(n)}`],this.options,this.__infoField(),{headers:n}));const r=ms(n);return this.state.expectedRecordLength=r.length,this.options.columns=r,void this.__resetRecord()}catch(e){return e}},__resetRecord:function(){!0===this.options.raw&&this.state.rawBuffer.reset(),this.state.error=void 0,this.state.record=[],this.state.record_length=0},__onField:function(){const{cast:e,encoding:t,rtrim:n,max_record_size:r}=this.options,{enabled:i,wasQuoting:o}=this.state;if(!1===i)return this.__resetField();let a=this.state.field.toString(t);if(!0===n&&!1===o&&(a=a.trimRight()),!0===e){const[e,t]=this.__cast(a);if(void 0!==e)return e;a=t}this.state.record.push(a),0!==r&&"string"==typeof a&&(this.state.record_length+=a.length),this.__resetField()},__resetField:function(){this.state.field.reset(),this.state.wasQuoting=!1},__push:function(e,t){const{on_record:n}=this.options;if(void 0!==n){const t=this.__infoRecord();try{e=n.call(null,e,t)}catch(e){return e}if(null==e)return}t(e)},__cast:function(e){const{columns:t,relax_column_count:n}=this.options;if(!0===Array.isArray(t)&&n&&this.options.columns.length<=this.state.record.length)return[void 0,void 0];if(null!==this.state.castField)try{const t=this.__infoField();return[void 0,this.state.castField.call(null,e,t)]}catch(e){return[e]}if(this.__isFloat(e))return[void 0,parseFloat(e)];if(!1!==this.options.cast_date){const t=this.__infoField();return[void 0,this.options.cast_date.call(null,e,t)]}return[void 0,e]},__isCharTrimable:function(e,t){return((e,t)=>{const{timchars:n}=this.state;e:for(let r=0;r<n.length;r++){const i=n[r];for(let n=0;n<i.length;n++)if(i[n]!==e[t+n])continue e;return i.length}return 0})(e,t)},__isFloat:function(e){return e-parseFloat(e)+1>=0},__compareBytes:function(e,t,n,r){if(e[0]!==r)return 0;const i=e.length;for(let r=1;r<i;r++)if(e[r]!==t[n+r])return 0;return i},__isDelimiter:function(e,t,n){const{delimiter:r,ignore_last_delimiters:i}=this.options;if(!0===i&&this.state.record.length===this.options.columns.length-1)return 0;if(!1!==i&&"number"==typeof i&&this.state.record.length===i-1)return 0;e:for(let i=0;i<r.length;i++){const o=r[i];if(o[0]===n){for(let n=1;n<o.length;n++)if(o[n]!==e[t+n])continue e;return o.length}}return 0},__isRecordDelimiter:function(e,t,n){const{record_delimiter:r}=this.options,i=r.length;e:for(let o=0;o<i;o++){const i=r[o],a=i.length;if(i[0]===e){for(let e=1;e<a;e++)if(i[e]!==t[n+e])continue e;return i.length}}return 0},__isEscape:function(e,t,n){const{escape:r}=this.options;if(null===r)return!1;const i=r.length;if(r[0]===n){for(let n=0;n<i;n++)if(r[n]!==e[t+n])return!1;return!0}return!1},__isQuote:function(e,t){const{quote:n}=this.options;if(null===n)return!1;const r=n.length;for(let i=0;i<r;i++)if(n[i]!==e[t+i])return!1;return!0},__autoDiscoverRecordDelimiter:function(e,t){const{encoding:n}=this.options,r=[$l.from("\r\n",n),$l.from("\n",n),$l.from("\r",n)];e:for(let n=0;n<r.length;n++){const i=r[n].length;for(let o=0;o<i;o++)if(r[n][o]!==e[t+o])continue e;return this.options.record_delimiter.push(r[n]),this.state.recordDelimiterMaxLength=r[n].length,r[n].length}return 0},__error:function(e){const{encoding:t,raw:n,skip_records_with_error:r}=this.options,i="string"==typeof e?new Error(e):e;if(!r)return i;if(this.state.recordHasError=!0,void 0!==this.options.on_skip)try{this.options.on_skip(i,n?this.state.rawBuffer.toString(t):void 0)}catch(i){return i}},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){const{columns:e,raw:t,encoding:n}=this.options;return{...this.__infoDataSet(),error:this.state.error,header:!0===e,index:this.state.record.length,raw:t?this.state.rawBuffer.toString(n):void 0}},__infoField:function(){const{columns:e}=this.options,t=Array.isArray(e);return{...this.__infoRecord(),column:!0===t?e.length>this.state.record.length?e[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}}(t),i=r.parse(e,!0,(e=>{void 0===r.options.objname?n.push(e):n[e[0]]=e[1]}),(()=>{}));if(void 0!==i)throw i;return n},ys=e=>{var t;const n=e.trim();if(!n)return[];let r;const i=n.includes(","),o=n.startsWith('"')&&n.endsWith('"');if(i||o)try{r=null!==(t=xs(n,{columns:!1})[0])&&void 0!==t?t:[]}catch(e){r=n.split(",")}else r=[n];return r.filter((e=>e&&"string"==typeof e)).map((e=>e.trim())).filter((e=>e))},ws=v.div`
|
|
915
|
+
`,rl=e.forwardRef((function({width:t="50px"},n){const r=ne();return e.createElement(Ka,{ref:n,width:t},e.createElement(el,{viewBox:"25 25 50 50"},e.createElement(tl,{cx:"50",cy:"50",r:"20",stroke:r.palette.neutral.softLight}),e.createElement(nl,{cx:"50",cy:"50",r:"20",stroke:r.palette.primary.base})))})),il={small:"28px",medium:"32px",large:"40px"},ol={small:`${we.sm}px`,medium:`${we.md}px`,large:`${we.xl}px`},al={small:"4px",medium:"6px",large:"6px"},ll={small:"6px",medium:"8px",large:"10px"};function sl(e,t){switch(t){case"primary":return e.palette.primary.darker;case"secondaryLight":return e.palette.neutral.softLight;case"secondaryDark":case"clear":return e.palette.neutral.lighter;case"danger":return e.palette.danger.darker;case"primarySubtle":return e.palette.primary.softLight}}const cl=e.forwardRef((function(t,n){var{component:r,children:i,color:o="primary",textColor:a,inline:l=!0,size:s="medium",icon:c,loading:d,isQuiet:u=!1}=t,p=D(t,["component","children","color","textColor","inline","size","icon","loading","isQuiet"]);const m=ne(),h=(e=>({primary:{normal:{background:e.palette.primary.base,color:e.palette.text.white,boxShadow:e.shadow["3dShadowPrimary"],border:`1px solid ${e.palette.primary.dark}`},hover:{background:e.palette.primary.dark,border:"none"},active:{background:e.palette.primary.dark,boxShadow:e.shadow["3dShadowActive"],border:"none"}},secondaryLight:{normal:{background:e.palette.background.default,color:e.palette.black,boxShadow:e.shadow["3dShadowBasic"],border:`1px solid ${e.palette.divider}`},hover:{background:e.palette.neutral.highlight,border:`1px solid ${e.palette.divider}`},active:{background:e.palette.neutral.highlight,boxShadow:e.shadow["3dShadowActive"],border:`1px solid ${e.palette.divider}`}},secondaryDark:{normal:{background:e.palette.neutral.highlight,color:e.palette.black,boxShadow:e.shadow["3dShadowBasic"],border:`1px solid ${e.palette.divider}`},hover:{background:e.palette.neutral.softLight,border:"none"},active:{background:e.palette.neutral.softLight,boxShadow:e.shadow["3dShadowBasicActive"],border:"none"}},danger:{normal:{background:e.palette.danger.base,color:e.palette.text.white,boxShadow:e.shadow["3dShadowDanger"],border:`1px solid ${e.palette.danger.dark}`},hover:{background:e.palette.danger.dark,border:"none"},active:{background:e.palette.danger.dark,boxShadow:e.shadow["3dShadowActive"],border:"none"}},clear:{normal:{background:"none",color:e.palette.black,boxShadow:"none",border:"none"},hover:{background:e.palette.neutral.softLight,border:"none"},active:{background:e.palette.neutral.lighter,boxShadow:"none",border:"none"}},primarySubtle:{normal:{background:e.palette.primary.ultraLight,color:e.palette.primary.dark,boxShadow:e.shadow["3dShadowPrimarySubtle"],border:`1px solid ${e.palette.primary.softLight}`},hover:{background:e.palette.primary.highlight,border:"none"},active:{background:e.palette.primary.highlight,boxShadow:e.shadow["3dShadowPrimarySubtleActive"],border:"none"}}}))(m)[o],g=e.useMemo((()=>u?{normal:Object.assign(Object.assign({},h.normal),{border:"none",boxShadow:"none"}),hover:Object.assign(Object.assign({},h.hover),{border:"none"}),active:Object.assign(Object.assign({},h.active),{background:sl(m,o),border:"none",boxShadow:"none"})}:h),[h,o,u,m]),f=!!d,b="string"==typeof d?d:d?"Loading...":void 0,v=e.useMemo((()=>({small:"16px",medium:"18px",large:"20px"}[s])),[s]),x=e.useMemo((()=>f?e.createElement(rl,{width:v}):null),[f,v]),y=!!c,w=!!i,C=f?y?x:void 0:c,E=f?!y&&w||y&&w?b:void 0:i,I=(()=>{if("string"==typeof p.href){const{href:e,target:t,rel:n}=p;return{as:r||"a",href:e,target:t,rel:n}}return{}})();return e.createElement(Wa,Object.assign({ref:n},p,{as:r||"button"},I,{size:s,inline:l,paddingInline:ll[s],normal:g.normal,hover:g.hover,active:g.active,borderRadius:al[s],fontSize:ol[s],height:il[s],color:o,$isQuiet:u,disabled:p.disabled||f}),C,C&&E&&e.createElement(Ua,{pr:.5}),E&&e.createElement(Ya,{$textColor:a},E))})),dl={1955:"国民の祝日・休日月日,国民の祝日・休日名称\n1955/1/1,元日\n1955/1/15,成人の日\n1955/3/21,春分の日\n1955/4/29,天皇誕生日\n1955/5/3,憲法記念日\n1955/5/5,こどもの日\n1955/9/24,秋分の日\n1955/11/3,文化の日\n1955/11/23,勤労感謝の日",1956:"国民の祝日・休日月日,国民の祝日・休日名称\n1956/1/1,元日\n1956/1/15,成人の日\n1956/3/21,春分の日\n1956/4/29,天皇誕生日\n1956/5/3,憲法記念日\n1956/5/5,こどもの日\n1956/9/23,秋分の日\n1956/11/3,文化の日\n1956/11/23,勤労感謝の日",1957:"国民の祝日・休日月日,国民の祝日・休日名称\n1957/1/1,元日\n1957/1/15,成人の日\n1957/3/21,春分の日\n1957/4/29,天皇誕生日\n1957/5/3,憲法記念日\n1957/5/5,こどもの日\n1957/9/23,秋分の日\n1957/11/3,文化の日\n1957/11/23,勤労感謝の日",1958:"国民の祝日・休日月日,国民の祝日・休日名称\n1958/1/1,元日\n1958/1/15,成人の日\n1958/3/21,春分の日\n1958/4/29,天皇誕生日\n1958/5/3,憲法記念日\n1958/5/5,こどもの日\n1958/9/23,秋分の日\n1958/11/3,文化の日\n1958/11/23,勤労感謝の日",1959:"国民の祝日・休日月日,国民の祝日・休日名称\n1959/1/1,元日\n1959/1/15,成人の日\n1959/3/21,春分の日\n1959/4/10,結婚の儀\n1959/4/29,天皇誕生日\n1959/5/3,憲法記念日\n1959/5/5,こどもの日\n1959/9/24,秋分の日\n1959/11/3,文化の日\n1959/11/23,勤労感謝の日",1960:"国民の祝日・休日月日,国民の祝日・休日名称\n1960/1/1,元日\n1960/1/15,成人の日\n1960/3/20,春分の日\n1960/4/29,天皇誕生日\n1960/5/3,憲法記念日\n1960/5/5,こどもの日\n1960/9/23,秋分の日\n1960/11/3,文化の日\n1960/11/23,勤労感謝の日",1961:"国民の祝日・休日月日,国民の祝日・休日名称\n1961/1/1,元日\n1961/1/15,成人の日\n1961/3/21,春分の日\n1961/4/29,天皇誕生日\n1961/5/3,憲法記念日\n1961/5/5,こどもの日\n1961/9/23,秋分の日\n1961/11/3,文化の日\n1961/11/23,勤労感謝の日",1962:"国民の祝日・休日月日,国民の祝日・休日名称\n1962/1/1,元日\n1962/1/15,成人の日\n1962/3/21,春分の日\n1962/4/29,天皇誕生日\n1962/5/3,憲法記念日\n1962/5/5,こどもの日\n1962/9/23,秋分の日\n1962/11/3,文化の日\n1962/11/23,勤労感謝の日",1963:"国民の祝日・休日月日,国民の祝日・休日名称\n1963/1/1,元日\n1963/1/15,成人の日\n1963/3/21,春分の日\n1963/4/29,天皇誕生日\n1963/5/3,憲法記念日\n1963/5/5,こどもの日\n1963/9/24,秋分の日\n1963/11/3,文化の日\n1963/11/23,勤労感謝の日",1964:"国民の祝日・休日月日,国民の祝日・休日名称\n1964/1/1,元日\n1964/1/15,成人の日\n1964/3/20,春分の日\n1964/4/29,天皇誕生日\n1964/5/3,憲法記念日\n1964/5/5,こどもの日\n1964/9/23,秋分の日\n1964/11/3,文化の日\n1964/11/23,勤労感謝の日",1965:"国民の祝日・休日月日,国民の祝日・休日名称\n1965/1/1,元日\n1965/1/15,成人の日\n1965/3/21,春分の日\n1965/4/29,天皇誕生日\n1965/5/3,憲法記念日\n1965/5/5,こどもの日\n1965/9/23,秋分の日\n1965/11/3,文化の日\n1965/11/23,勤労感謝の日",1966:"国民の祝日・休日月日,国民の祝日・休日名称\n1966/1/1,元日\n1966/1/15,成人の日\n1966/3/21,春分の日\n1966/4/29,天皇誕生日\n1966/5/3,憲法記念日\n1966/5/5,こどもの日\n1966/9/15,敬老の日\n1966/9/23,秋分の日\n1966/10/10,体育の日\n1966/11/3,文化の日\n1966/11/23,勤労感謝の日",1967:"国民の祝日・休日月日,国民の祝日・休日名称\n1967/1/1,元日\n1967/1/15,成人の日\n1967/2/11,建国記念の日\n1967/3/21,春分の日\n1967/4/29,天皇誕生日\n1967/5/3,憲法記念日\n1967/5/5,こどもの日\n1967/9/15,敬老の日\n1967/9/24,秋分の日\n1967/10/10,体育の日\n1967/11/3,文化の日\n1967/11/23,勤労感謝の日",1968:"国民の祝日・休日月日,国民の祝日・休日名称\n1968/1/1,元日\n1968/1/15,成人の日\n1968/2/11,建国記念の日\n1968/3/20,春分の日\n1968/4/29,天皇誕生日\n1968/5/3,憲法記念日\n1968/5/5,こどもの日\n1968/9/15,敬老の日\n1968/9/23,秋分の日\n1968/10/10,体育の日\n1968/11/3,文化の日\n1968/11/23,勤労感謝の日",1969:"国民の祝日・休日月日,国民の祝日・休日名称\n1969/1/1,元日\n1969/1/15,成人の日\n1969/2/11,建国記念の日\n1969/3/21,春分の日\n1969/4/29,天皇誕生日\n1969/5/3,憲法記念日\n1969/5/5,こどもの日\n1969/9/15,敬老の日\n1969/9/23,秋分の日\n1969/10/10,体育の日\n1969/11/3,文化の日\n1969/11/23,勤労感謝の日",1970:"国民の祝日・休日月日,国民の祝日・休日名称\n1970/1/1,元日\n1970/1/15,成人の日\n1970/2/11,建国記念の日\n1970/3/21,春分の日\n1970/4/29,天皇誕生日\n1970/5/3,憲法記念日\n1970/5/5,こどもの日\n1970/9/15,敬老の日\n1970/9/23,秋分の日\n1970/10/10,体育の日\n1970/11/3,文化の日\n1970/11/23,勤労感謝の日",1971:"国民の祝日・休日月日,国民の祝日・休日名称\n1971/1/1,元日\n1971/1/15,成人の日\n1971/2/11,建国記念の日\n1971/3/21,春分の日\n1971/4/29,天皇誕生日\n1971/5/3,憲法記念日\n1971/5/5,こどもの日\n1971/9/15,敬老の日\n1971/9/24,秋分の日\n1971/10/10,体育の日\n1971/11/3,文化の日\n1971/11/23,勤労感謝の日",1972:"国民の祝日・休日月日,国民の祝日・休日名称\n1972/1/1,元日\n1972/1/15,成人の日\n1972/2/11,建国記念の日\n1972/3/20,春分の日\n1972/4/29,天皇誕生日\n1972/5/3,憲法記念日\n1972/5/5,こどもの日\n1972/9/15,敬老の日\n1972/9/23,秋分の日\n1972/10/10,体育の日\n1972/11/3,文化の日\n1972/11/23,勤労感謝の日",1973:"国民の祝日・休日月日,国民の祝日・休日名称\n1973/1/1,元日\n1973/1/15,成人の日\n1973/2/11,建国記念の日\n1973/3/21,春分の日\n1973/4/29,天皇誕生日\n1973/4/30,休日\n1973/5/3,憲法記念日\n1973/5/5,こどもの日\n1973/9/15,敬老の日\n1973/9/23,秋分の日\n1973/9/24,休日\n1973/10/10,体育の日\n1973/11/3,文化の日\n1973/11/23,勤労感謝の日",1974:"国民の祝日・休日月日,国民の祝日・休日名称\n1974/1/1,元日\n1974/1/15,成人の日\n1974/2/11,建国記念の日\n1974/3/21,春分の日\n1974/4/29,天皇誕生日\n1974/5/3,憲法記念日\n1974/5/5,こどもの日\n1974/5/6,休日\n1974/9/15,敬老の日\n1974/9/16,休日\n1974/9/23,秋分の日\n1974/10/10,体育の日\n1974/11/3,文化の日\n1974/11/4,休日\n1974/11/23,勤労感謝の日",1975:"国民の祝日・休日月日,国民の祝日・休日名称\n1975/1/1,元日\n1975/1/15,成人の日\n1975/2/11,建国記念の日\n1975/3/21,春分の日\n1975/4/29,天皇誕生日\n1975/5/3,憲法記念日\n1975/5/5,こどもの日\n1975/9/15,敬老の日\n1975/9/24,秋分の日\n1975/10/10,体育の日\n1975/11/3,文化の日\n1975/11/23,勤労感謝の日\n1975/11/24,休日",1976:"国民の祝日・休日月日,国民の祝日・休日名称\n1976/1/1,元日\n1976/1/15,成人の日\n1976/2/11,建国記念の日\n1976/3/20,春分の日\n1976/4/29,天皇誕生日\n1976/5/3,憲法記念日\n1976/5/5,こどもの日\n1976/9/15,敬老の日\n1976/9/23,秋分の日\n1976/10/10,体育の日\n1976/10/11,休日\n1976/11/3,文化の日\n1976/11/23,勤労感謝の日",1977:"国民の祝日・休日月日,国民の祝日・休日名称\n1977/1/1,元日\n1977/1/15,成人の日\n1977/2/11,建国記念の日\n1977/3/21,春分の日\n1977/4/29,天皇誕生日\n1977/5/3,憲法記念日\n1977/5/5,こどもの日\n1977/9/15,敬老の日\n1977/9/23,秋分の日\n1977/10/10,体育の日\n1977/11/3,文化の日\n1977/11/23,勤労感謝の日",1978:"国民の祝日・休日月日,国民の祝日・休日名称\n1978/1/1,元日\n1978/1/2,休日\n1978/1/15,成人の日\n1978/1/16,休日\n1978/2/11,建国記念の日\n1978/3/21,春分の日\n1978/4/29,天皇誕生日\n1978/5/3,憲法記念日\n1978/5/5,こどもの日\n1978/9/15,敬老の日\n1978/9/23,秋分の日\n1978/10/10,体育の日\n1978/11/3,文化の日\n1978/11/23,勤労感謝の日",1979:"国民の祝日・休日月日,国民の祝日・休日名称\n1979/1/1,元日\n1979/1/15,成人の日\n1979/2/11,建国記念の日\n1979/2/12,休日\n1979/3/21,春分の日\n1979/4/29,天皇誕生日\n1979/4/30,休日\n1979/5/3,憲法記念日\n1979/5/5,こどもの日\n1979/9/15,敬老の日\n1979/9/24,秋分の日\n1979/10/10,体育の日\n1979/11/3,文化の日\n1979/11/23,勤労感謝の日",1980:"国民の祝日・休日月日,国民の祝日・休日名称\n1980/1/1,元日\n1980/1/15,成人の日\n1980/2/11,建国記念の日\n1980/3/20,春分の日\n1980/4/29,天皇誕生日\n1980/5/3,憲法記念日\n1980/5/5,こどもの日\n1980/9/15,敬老の日\n1980/9/23,秋分の日\n1980/10/10,体育の日\n1980/11/3,文化の日\n1980/11/23,勤労感謝の日\n1980/11/24,休日",1981:"国民の祝日・休日月日,国民の祝日・休日名称\n1981/1/1,元日\n1981/1/15,成人の日\n1981/2/11,建国記念の日\n1981/3/21,春分の日\n1981/4/29,天皇誕生日\n1981/5/3,憲法記念日\n1981/5/4,休日\n1981/5/5,こどもの日\n1981/9/15,敬老の日\n1981/9/23,秋分の日\n1981/10/10,体育の日\n1981/11/3,文化の日\n1981/11/23,勤労感謝の日",1982:"国民の祝日・休日月日,国民の祝日・休日名称\n1982/1/1,元日\n1982/1/15,成人の日\n1982/2/11,建国記念の日\n1982/3/21,春分の日\n1982/3/22,休日\n1982/4/29,天皇誕生日\n1982/5/3,憲法記念日\n1982/5/5,こどもの日\n1982/9/15,敬老の日\n1982/9/23,秋分の日\n1982/10/10,体育の日\n1982/10/11,休日\n1982/11/3,文化の日\n1982/11/23,勤労感謝の日",1983:"国民の祝日・休日月日,国民の祝日・休日名称\n1983/1/1,元日\n1983/1/15,成人の日\n1983/2/11,建国記念の日\n1983/3/21,春分の日\n1983/4/29,天皇誕生日\n1983/5/3,憲法記念日\n1983/5/5,こどもの日\n1983/9/15,敬老の日\n1983/9/23,秋分の日\n1983/10/10,体育の日\n1983/11/3,文化の日\n1983/11/23,勤労感謝の日",1984:"国民の祝日・休日月日,国民の祝日・休日名称\n1984/1/1,元日\n1984/1/2,休日\n1984/1/15,成人の日\n1984/1/16,休日\n1984/2/11,建国記念の日\n1984/3/20,春分の日\n1984/4/29,天皇誕生日\n1984/4/30,休日\n1984/5/3,憲法記念日\n1984/5/5,こどもの日\n1984/9/15,敬老の日\n1984/9/23,秋分の日\n1984/9/24,休日\n1984/10/10,体育の日\n1984/11/3,文化の日\n1984/11/23,勤労感謝の日",1985:"国民の祝日・休日月日,国民の祝日・休日名称\n1985/1/1,元日\n1985/1/15,成人の日\n1985/2/11,建国記念の日\n1985/3/21,春分の日\n1985/4/29,天皇誕生日\n1985/5/3,憲法記念日\n1985/5/5,こどもの日\n1985/5/6,休日\n1985/9/15,敬老の日\n1985/9/16,休日\n1985/9/23,秋分の日\n1985/10/10,体育の日\n1985/11/3,文化の日\n1985/11/4,休日\n1985/11/23,勤労感謝の日",1986:"国民の祝日・休日月日,国民の祝日・休日名称\n1986/1/1,元日\n1986/1/15,成人の日\n1986/2/11,建国記念の日\n1986/3/21,春分の日\n1986/4/29,天皇誕生日\n1986/5/3,憲法記念日\n1986/5/5,こどもの日\n1986/9/15,敬老の日\n1986/9/23,秋分の日\n1986/10/10,体育の日\n1986/11/3,文化の日\n1986/11/23,勤労感謝の日\n1986/11/24,休日",1987:"国民の祝日・休日月日,国民の祝日・休日名称\n1987/1/1,元日\n1987/1/15,成人の日\n1987/2/11,建国記念の日\n1987/3/21,春分の日\n1987/4/29,天皇誕生日\n1987/5/3,憲法記念日\n1987/5/4,休日\n1987/5/5,こどもの日\n1987/9/15,敬老の日\n1987/9/23,秋分の日\n1987/10/10,体育の日\n1987/11/3,文化の日\n1987/11/23,勤労感謝の日",1988:"国民の祝日・休日月日,国民の祝日・休日名称\n1988/1/1,元日\n1988/1/15,成人の日\n1988/2/11,建国記念の日\n1988/3/20,春分の日\n1988/3/21,休日\n1988/4/29,天皇誕生日\n1988/5/3,憲法記念日\n1988/5/4,休日\n1988/5/5,こどもの日\n1988/9/15,敬老の日\n1988/9/23,秋分の日\n1988/10/10,体育の日\n1988/11/3,文化の日\n1988/11/23,勤労感謝の日",1989:"国民の祝日・休日月日,国民の祝日・休日名称\n1989/1/1,元日\n1989/1/2,休日\n1989/1/15,成人の日\n1989/1/16,休日\n1989/2/11,建国記念の日\n1989/2/24,大喪の礼\n1989/3/21,春分の日\n1989/4/29,みどりの日\n1989/5/3,憲法記念日\n1989/5/4,休日\n1989/5/5,こどもの日\n1989/9/15,敬老の日\n1989/9/23,秋分の日\n1989/10/10,体育の日\n1989/11/3,文化の日\n1989/11/23,勤労感謝の日\n1989/12/23,天皇誕生日",1990:"国民の祝日・休日月日,国民の祝日・休日名称\n1990/1/1,元日\n1990/1/15,成人の日\n1990/2/11,建国記念の日\n1990/2/12,休日\n1990/3/21,春分の日\n1990/4/29,みどりの日\n1990/4/30,休日\n1990/5/3,憲法記念日\n1990/5/4,休日\n1990/5/5,こどもの日\n1990/9/15,敬老の日\n1990/9/23,秋分の日\n1990/9/24,休日\n1990/10/10,体育の日\n1990/11/3,文化の日\n1990/11/12,即位礼正殿の儀\n1990/11/23,勤労感謝の日\n1990/12/23,天皇誕生日\n1990/12/24,休日",1991:"国民の祝日・休日月日,国民の祝日・休日名称\n1991/1/1,元日\n1991/1/15,成人の日\n1991/2/11,建国記念の日\n1991/3/21,春分の日\n1991/4/29,みどりの日\n1991/5/3,憲法記念日\n1991/5/4,休日\n1991/5/5,こどもの日\n1991/5/6,休日\n1991/9/15,敬老の日\n1991/9/16,休日\n1991/9/23,秋分の日\n1991/10/10,体育の日\n1991/11/3,文化の日\n1991/11/4,休日\n1991/11/23,勤労感謝の日\n1991/12/23,天皇誕生日",1992:"国民の祝日・休日月日,国民の祝日・休日名称\n1992/1/1,元日\n1992/1/15,成人の日\n1992/2/11,建国記念の日\n1992/3/20,春分の日\n1992/4/29,みどりの日\n1992/5/3,憲法記念日\n1992/5/4,休日\n1992/5/5,こどもの日\n1992/9/15,敬老の日\n1992/9/23,秋分の日\n1992/10/10,体育の日\n1992/11/3,文化の日\n1992/11/23,勤労感謝の日\n1992/12/23,天皇誕生日",1993:"国民の祝日・休日月日,国民の祝日・休日名称\n1993/1/1,元日\n1993/1/15,成人の日\n1993/2/11,建国記念の日\n1993/3/20,春分の日\n1993/4/29,みどりの日\n1993/5/3,憲法記念日\n1993/5/4,休日\n1993/5/5,こどもの日\n1993/6/9,結婚の儀\n1993/9/15,敬老の日\n1993/9/23,秋分の日\n1993/10/10,体育の日\n1993/10/11,休日\n1993/11/3,文化の日\n1993/11/23,勤労感謝の日\n1993/12/23,天皇誕生日",1994:"国民の祝日・休日月日,国民の祝日・休日名称\n1994/1/1,元日\n1994/1/15,成人の日\n1994/2/11,建国記念の日\n1994/3/21,春分の日\n1994/4/29,みどりの日\n1994/5/3,憲法記念日\n1994/5/4,休日\n1994/5/5,こどもの日\n1994/9/15,敬老の日\n1994/9/23,秋分の日\n1994/10/10,体育の日\n1994/11/3,文化の日\n1994/11/23,勤労感謝の日\n1994/12/23,天皇誕生日",1995:"国民の祝日・休日月日,国民の祝日・休日名称\n1995/1/1,元日\n1995/1/2,休日\n1995/1/15,成人の日\n1995/1/16,休日\n1995/2/11,建国記念の日\n1995/3/21,春分の日\n1995/4/29,みどりの日\n1995/5/3,憲法記念日\n1995/5/4,休日\n1995/5/5,こどもの日\n1995/9/15,敬老の日\n1995/9/23,秋分の日\n1995/10/10,体育の日\n1995/11/3,文化の日\n1995/11/23,勤労感謝の日\n1995/12/23,天皇誕生日",1996:"国民の祝日・休日月日,国民の祝日・休日名称\n1996/1/1,元日\n1996/1/15,成人の日\n1996/2/11,建国記念の日\n1996/2/12,休日\n1996/3/20,春分の日\n1996/4/29,みどりの日\n1996/5/3,憲法記念日\n1996/5/4,休日\n1996/5/5,こどもの日\n1996/5/6,休日\n1996/7/20,海の日\n1996/9/15,敬老の日\n1996/9/16,休日\n1996/9/23,秋分の日\n1996/10/10,体育の日\n1996/11/3,文化の日\n1996/11/4,休日\n1996/11/23,勤労感謝の日\n1996/12/23,天皇誕生日",1997:"国民の祝日・休日月日,国民の祝日・休日名称\n1997/1/1,元日\n1997/1/15,成人の日\n1997/2/11,建国記念の日\n1997/3/20,春分の日\n1997/4/29,みどりの日\n1997/5/3,憲法記念日\n1997/5/5,こどもの日\n1997/7/20,海の日\n1997/7/21,休日\n1997/9/15,敬老の日\n1997/9/23,秋分の日\n1997/10/10,体育の日\n1997/11/3,文化の日\n1997/11/23,勤労感謝の日\n1997/11/24,休日\n1997/12/23,天皇誕生日",1998:"国民の祝日・休日月日,国民の祝日・休日名称\n1998/1/1,元日\n1998/1/15,成人の日\n1998/2/11,建国記念の日\n1998/3/21,春分の日\n1998/4/29,みどりの日\n1998/5/3,憲法記念日\n1998/5/4,休日\n1998/5/5,こどもの日\n1998/7/20,海の日\n1998/9/15,敬老の日\n1998/9/23,秋分の日\n1998/10/10,体育の日\n1998/11/3,文化の日\n1998/11/23,勤労感謝の日\n1998/12/23,天皇誕生日",1999:"国民の祝日・休日月日,国民の祝日・休日名称\n1999/1/1,元日\n1999/1/15,成人の日\n1999/2/11,建国記念の日\n1999/3/21,春分の日\n1999/3/22,休日\n1999/4/29,みどりの日\n1999/5/3,憲法記念日\n1999/5/4,休日\n1999/5/5,こどもの日\n1999/7/20,海の日\n1999/9/15,敬老の日\n1999/9/23,秋分の日\n1999/10/10,体育の日\n1999/10/11,休日\n1999/11/3,文化の日\n1999/11/23,勤労感謝の日\n1999/12/23,天皇誕生日",2e3:"国民の祝日・休日月日,国民の祝日・休日名称\n2000/1/1,元日\n2000/1/10,成人の日\n2000/2/11,建国記念の日\n2000/3/20,春分の日\n2000/4/29,みどりの日\n2000/5/3,憲法記念日\n2000/5/4,休日\n2000/5/5,こどもの日\n2000/7/20,海の日\n2000/9/15,敬老の日\n2000/9/23,秋分の日\n2000/10/9,体育の日\n2000/11/3,文化の日\n2000/11/23,勤労感謝の日\n2000/12/23,天皇誕生日",2001:"国民の祝日・休日月日,国民の祝日・休日名称\n2001/1/1,元日\n2001/1/8,成人の日\n2001/2/11,建国記念の日\n2001/2/12,休日\n2001/3/20,春分の日\n2001/4/29,みどりの日\n2001/4/30,休日\n2001/5/3,憲法記念日\n2001/5/4,休日\n2001/5/5,こどもの日\n2001/7/20,海の日\n2001/9/15,敬老の日\n2001/9/23,秋分の日\n2001/9/24,休日\n2001/10/8,体育の日\n2001/11/3,文化の日\n2001/11/23,勤労感謝の日\n2001/12/23,天皇誕生日\n2001/12/24,休日",2002:"国民の祝日・休日月日,国民の祝日・休日名称\n2002/1/1,元日\n2002/1/14,成人の日\n2002/2/11,建国記念の日\n2002/3/21,春分の日\n2002/4/29,みどりの日\n2002/5/3,憲法記念日\n2002/5/4,休日\n2002/5/5,こどもの日\n2002/5/6,休日\n2002/7/20,海の日\n2002/9/15,敬老の日\n2002/9/16,休日\n2002/9/23,秋分の日\n2002/10/14,体育の日\n2002/11/3,文化の日\n2002/11/4,休日\n2002/11/23,勤労感謝の日\n2002/12/23,天皇誕生日",2003:"国民の祝日・休日月日,国民の祝日・休日名称\n2003/1/1,元日\n2003/1/13,成人の日\n2003/2/11,建国記念の日\n2003/3/21,春分の日\n2003/4/29,みどりの日\n2003/5/3,憲法記念日\n2003/5/5,こどもの日\n2003/7/21,海の日\n2003/9/15,敬老の日\n2003/9/23,秋分の日\n2003/10/13,体育の日\n2003/11/3,文化の日\n2003/11/23,勤労感謝の日\n2003/11/24,休日\n2003/12/23,天皇誕生日",2004:"国民の祝日・休日月日,国民の祝日・休日名称\n2004/1/1,元日\n2004/1/12,成人の日\n2004/2/11,建国記念の日\n2004/3/20,春分の日\n2004/4/29,みどりの日\n2004/5/3,憲法記念日\n2004/5/4,休日\n2004/5/5,こどもの日\n2004/7/19,海の日\n2004/9/20,敬老の日\n2004/9/23,秋分の日\n2004/10/11,体育の日\n2004/11/3,文化の日\n2004/11/23,勤労感謝の日\n2004/12/23,天皇誕生日",2005:"国民の祝日・休日月日,国民の祝日・休日名称\n2005/1/1,元日\n2005/1/10,成人の日\n2005/2/11,建国記念の日\n2005/3/20,春分の日\n2005/3/21,休日\n2005/4/29,みどりの日\n2005/5/3,憲法記念日\n2005/5/4,休日\n2005/5/5,こどもの日\n2005/7/18,海の日\n2005/9/19,敬老の日\n2005/9/23,秋分の日\n2005/10/10,体育の日\n2005/11/3,文化の日\n2005/11/23,勤労感謝の日\n2005/12/23,天皇誕生日",2006:"国民の祝日・休日月日,国民の祝日・休日名称\n2006/1/1,元日\n2006/1/2,休日\n2006/1/9,成人の日\n2006/2/11,建国記念の日\n2006/3/21,春分の日\n2006/4/29,みどりの日\n2006/5/3,憲法記念日\n2006/5/4,休日\n2006/5/5,こどもの日\n2006/7/17,海の日\n2006/9/18,敬老の日\n2006/9/23,秋分の日\n2006/10/9,体育の日\n2006/11/3,文化の日\n2006/11/23,勤労感謝の日\n2006/12/23,天皇誕生日",2007:"国民の祝日・休日月日,国民の祝日・休日名称\n2007/1/1,元日\n2007/1/8,成人の日\n2007/2/11,建国記念の日\n2007/2/12,休日\n2007/3/21,春分の日\n2007/4/29,昭和の日\n2007/4/30,休日\n2007/5/3,憲法記念日\n2007/5/4,みどりの日\n2007/5/5,こどもの日\n2007/7/16,海の日\n2007/9/17,敬老の日\n2007/9/23,秋分の日\n2007/9/24,休日\n2007/10/8,体育の日\n2007/11/3,文化の日\n2007/11/23,勤労感謝の日\n2007/12/23,天皇誕生日\n2007/12/24,休日",2008:"国民の祝日・休日月日,国民の祝日・休日名称\n2008/1/1,元日\n2008/1/14,成人の日\n2008/2/11,建国記念の日\n2008/3/20,春分の日\n2008/4/29,昭和の日\n2008/5/3,憲法記念日\n2008/5/4,みどりの日\n2008/5/5,こどもの日\n2008/5/6,休日\n2008/7/21,海の日\n2008/9/15,敬老の日\n2008/9/23,秋分の日\n2008/10/13,体育の日\n2008/11/3,文化の日\n2008/11/23,勤労感謝の日\n2008/11/24,休日\n2008/12/23,天皇誕生日",2009:"国民の祝日・休日月日,国民の祝日・休日名称\n2009/1/1,元日\n2009/1/12,成人の日\n2009/2/11,建国記念の日\n2009/3/20,春分の日\n2009/4/29,昭和の日\n2009/5/3,憲法記念日\n2009/5/4,みどりの日\n2009/5/5,こどもの日\n2009/5/6,休日\n2009/7/20,海の日\n2009/9/21,敬老の日\n2009/9/22,休日\n2009/9/23,秋分の日\n2009/10/12,体育の日\n2009/11/3,文化の日\n2009/11/23,勤労感謝の日\n2009/12/23,天皇誕生日",2010:"国民の祝日・休日月日,国民の祝日・休日名称\n2010/1/1,元日\n2010/1/11,成人の日\n2010/2/11,建国記念の日\n2010/3/21,春分の日\n2010/3/22,休日\n2010/4/29,昭和の日\n2010/5/3,憲法記念日\n2010/5/4,みどりの日\n2010/5/5,こどもの日\n2010/7/19,海の日\n2010/9/20,敬老の日\n2010/9/23,秋分の日\n2010/10/11,体育の日\n2010/11/3,文化の日\n2010/11/23,勤労感謝の日\n2010/12/23,天皇誕生日",2011:"国民の祝日・休日月日,国民の祝日・休日名称\n2011/1/1,元日\n2011/1/10,成人の日\n2011/2/11,建国記念の日\n2011/3/21,春分の日\n2011/4/29,昭和の日\n2011/5/3,憲法記念日\n2011/5/4,みどりの日\n2011/5/5,こどもの日\n2011/7/18,海の日\n2011/9/19,敬老の日\n2011/9/23,秋分の日\n2011/10/10,体育の日\n2011/11/3,文化の日\n2011/11/23,勤労感謝の日\n2011/12/23,天皇誕生日",2012:"国民の祝日・休日月日,国民の祝日・休日名称\n2012/1/1,元日\n2012/1/2,休日\n2012/1/9,成人の日\n2012/2/11,建国記念の日\n2012/3/20,春分の日\n2012/4/29,昭和の日\n2012/4/30,休日\n2012/5/3,憲法記念日\n2012/5/4,みどりの日\n2012/5/5,こどもの日\n2012/7/16,海の日\n2012/9/17,敬老の日\n2012/9/22,秋分の日\n2012/10/8,体育の日\n2012/11/3,文化の日\n2012/11/23,勤労感謝の日\n2012/12/23,天皇誕生日\n2012/12/24,休日",2013:"国民の祝日・休日月日,国民の祝日・休日名称\n2013/1/1,元日\n2013/1/14,成人の日\n2013/2/11,建国記念の日\n2013/3/20,春分の日\n2013/4/29,昭和の日\n2013/5/3,憲法記念日\n2013/5/4,みどりの日\n2013/5/5,こどもの日\n2013/5/6,休日\n2013/7/15,海の日\n2013/9/16,敬老の日\n2013/9/23,秋分の日\n2013/10/14,体育の日\n2013/11/3,文化の日\n2013/11/4,休日\n2013/11/23,勤労感謝の日\n2013/12/23,天皇誕生日",2014:"国民の祝日・休日月日,国民の祝日・休日名称\n2014/1/1,元日\n2014/1/13,成人の日\n2014/2/11,建国記念の日\n2014/3/21,春分の日\n2014/4/29,昭和の日\n2014/5/3,憲法記念日\n2014/5/4,みどりの日\n2014/5/5,こどもの日\n2014/5/6,休日\n2014/7/21,海の日\n2014/9/15,敬老の日\n2014/9/23,秋分の日\n2014/10/13,体育の日\n2014/11/3,文化の日\n2014/11/23,勤労感謝の日\n2014/11/24,休日\n2014/12/23,天皇誕生日",2015:"国民の祝日・休日月日,国民の祝日・休日名称\n2015/1/1,元日\n2015/1/12,成人の日\n2015/2/11,建国記念の日\n2015/3/21,春分の日\n2015/4/29,昭和の日\n2015/5/3,憲法記念日\n2015/5/4,みどりの日\n2015/5/5,こどもの日\n2015/5/6,休日\n2015/7/20,海の日\n2015/9/21,敬老の日\n2015/9/22,休日\n2015/9/23,秋分の日\n2015/10/12,体育の日\n2015/11/3,文化の日\n2015/11/23,勤労感謝の日\n2015/12/23,天皇誕生日",2016:"国民の祝日・休日月日,国民の祝日・休日名称\n2016/1/1,元日\n2016/1/11,成人の日\n2016/2/11,建国記念の日\n2016/3/20,春分の日\n2016/3/21,休日\n2016/4/29,昭和の日\n2016/5/3,憲法記念日\n2016/5/4,みどりの日\n2016/5/5,こどもの日\n2016/7/18,海の日\n2016/8/11,山の日\n2016/9/19,敬老の日\n2016/9/22,秋分の日\n2016/10/10,体育の日\n2016/11/3,文化の日\n2016/11/23,勤労感謝の日\n2016/12/23,天皇誕生日",2017:"国民の祝日・休日月日,国民の祝日・休日名称\n2017/1/1,元日\n2017/1/2,休日\n2017/1/9,成人の日\n2017/2/11,建国記念の日\n2017/3/20,春分の日\n2017/4/29,昭和の日\n2017/5/3,憲法記念日\n2017/5/4,みどりの日\n2017/5/5,こどもの日\n2017/7/17,海の日\n2017/8/11,山の日\n2017/9/18,敬老の日\n2017/9/23,秋分の日\n2017/10/9,体育の日\n2017/11/3,文化の日\n2017/11/23,勤労感謝の日\n2017/12/23,天皇誕生日",2018:"国民の祝日・休日月日,国民の祝日・休日名称\n2018/1/1,元日\n2018/1/8,成人の日\n2018/2/11,建国記念の日\n2018/2/12,休日\n2018/3/21,春分の日\n2018/4/29,昭和の日\n2018/4/30,休日\n2018/5/3,憲法記念日\n2018/5/4,みどりの日\n2018/5/5,こどもの日\n2018/7/16,海の日\n2018/8/11,山の日\n2018/9/17,敬老の日\n2018/9/23,秋分の日\n2018/9/24,休日\n2018/10/8,体育の日\n2018/11/3,文化の日\n2018/11/23,勤労感謝の日\n2018/12/23,天皇誕生日\n2018/12/24,休日",2019:"国民の祝日・休日月日,国民の祝日・休日名称\n2019/1/1,元日\n2019/1/14,成人の日\n2019/2/11,建国記念の日\n2019/3/21,春分の日\n2019/4/29,昭和の日\n2019/4/30,休日\n2019/5/1,休日(祝日扱い)\n2019/5/2,休日\n2019/5/3,憲法記念日\n2019/5/4,みどりの日\n2019/5/5,こどもの日\n2019/5/6,休日\n2019/7/15,海の日\n2019/8/11,山の日\n2019/8/12,休日\n2019/9/16,敬老の日\n2019/9/23,秋分の日\n2019/10/14,体育の日(スポーツの日)\n2019/10/22,休日(祝日扱い)\n2019/11/3,文化の日\n2019/11/4,休日\n2019/11/23,勤労感謝の日",2020:"国民の祝日・休日月日,国民の祝日・休日名称\n2020/1/1,元日\n2020/1/13,成人の日\n2020/2/11,建国記念の日\n2020/2/23,天皇誕生日\n2020/2/24,休日\n2020/3/20,春分の日\n2020/4/29,昭和の日\n2020/5/3,憲法記念日\n2020/5/4,みどりの日\n2020/5/5,こどもの日\n2020/5/6,休日\n2020/7/23,海の日\n2020/7/24,スポーツの日\n2020/8/10,山の日\n2020/9/21,敬老の日\n2020/9/22,秋分の日\n2020/11/3,文化の日\n2020/11/23,勤労感謝の日",2021:"国民の祝日・休日月日,国民の祝日・休日名称\n2021/1/1,元日\n2021/1/11,成人の日\n2021/2/11,建国記念の日\n2021/2/23,天皇誕生日\n2021/3/20,春分の日\n2021/4/29,昭和の日\n2021/5/3,憲法記念日\n2021/5/4,みどりの日\n2021/5/5,こどもの日\n2021/7/22,海の日\n2021/7/23,スポーツの日\n2021/8/8,山の日\n2021/8/9,休日\n2021/9/20,敬老の日\n2021/9/23,秋分の日\n2021/11/3,文化の日\n2021/11/23,勤労感謝の日",2022:"国民の祝日・休日月日,国民の祝日・休日名称\n2022/1/1,元日\n2022/1/10,成人の日\n2022/2/11,建国記念の日\n2022/2/23,天皇誕生日\n2022/3/21,春分の日\n2022/4/29,昭和の日\n2022/5/3,憲法記念日\n2022/5/4,みどりの日\n2022/5/5,こどもの日\n2022/7/18,海の日\n2022/8/11,山の日\n2022/9/19,敬老の日\n2022/9/23,秋分の日\n2022/10/10,スポーツの日\n2022/11/3,文化の日\n2022/11/23,勤労感謝の日",2023:"国民の祝日・休日月日,国民の祝日・休日名称\n2023/1/1,元日\n2023/1/2,休日\n2023/1/9,成人の日\n2023/2/11,建国記念の日\n2023/2/23,天皇誕生日\n2023/3/21,春分の日\n2023/4/29,昭和の日\n2023/5/3,憲法記念日\n2023/5/4,みどりの日\n2023/5/5,こどもの日\n2023/7/17,海の日\n2023/8/11,山の日\n2023/9/18,敬老の日\n2023/9/23,秋分の日\n2023/10/9,スポーツの日\n2023/11/3,文化の日\n2023/11/23,勤労感謝の日",2024:"国民の祝日・休日月日,国民の祝日・休日名称\n2024/1/1,元日\n2024/1/8,成人の日\n2024/2/11,建国記念の日\n2024/2/12,休日\n2024/2/23,天皇誕生日\n2024/3/20,春分の日\n2024/4/29,昭和の日\n2024/5/3,憲法記念日\n2024/5/4,みどりの日\n2024/5/5,こどもの日\n2024/5/6,休日\n2024/7/15,海の日\n2024/8/11,山の日\n2024/8/12,休日\n2024/9/16,敬老の日\n2024/9/22,秋分の日\n2024/9/23,休日\n2024/10/14,スポーツの日\n2024/11/3,文化の日\n2024/11/4,休日\n2024/11/23,勤労感謝の日",2025:"国民の祝日・休日月日,国民の祝日・休日名称\n2025/1/1,元日\n2025/1/13,成人の日\n2025/2/11,建国記念の日\n2025/2/23,天皇誕生日\n2025/2/24,休日\n2025/3/20,春分の日\n2025/4/29,昭和の日\n2025/5/3,憲法記念日\n2025/5/4,みどりの日\n2025/5/5,こどもの日\n2025/5/6,休日\n2025/7/21,海の日\n2025/8/11,山の日\n2025/9/15,敬老の日\n2025/9/23,秋分の日\n2025/10/13,スポーツの日\n2025/11/3,文化の日\n2025/11/23,勤労感謝の日\n2025/11/24,休日",2026:"国民の祝日・休日月日,国民の祝日・休日名称\n2026/1/1,元日\n2026/1/12,成人の日\n2026/2/11,建国記念の日\n2026/2/23,天皇誕生日\n2026/3/20,春分の日\n2026/4/29,昭和の日\n2026/5/3,憲法記念日\n2026/5/4,みどりの日\n2026/5/5,こどもの日\n2026/5/6,休日\n2026/7/20,海の日\n2026/8/11,山の日\n2026/9/21,敬老の日\n2026/9/22,休日\n2026/9/23,秋分の日\n2026/10/12,スポーツの日\n2026/11/3,文化の日\n2026/11/23,勤労感謝の日",2027:"国民の祝日・休日月日,国民の祝日・休日名称\n2027/1/1,元日\n2027/1/11,成人の日\n2027/2/11,建国記念の日\n2027/2/23,天皇誕生日\n2027/3/21,春分の日\n2027/3/22,休日\n2027/4/29,昭和の日\n2027/5/3,憲法記念日\n2027/5/4,みどりの日\n2027/5/5,こどもの日\n2027/7/19,海の日\n2027/8/11,山の日\n2027/9/20,敬老の日\n2027/9/23,秋分の日\n2027/10/11,スポーツの日\n2027/11/3,文化の日\n2027/11/23,勤労感謝の日"},ul={},pl=e=>{const t=e||(new Date).getFullYear(),n=t.toString();if(ul[n])return ul[n];const r=(e=>{const t=(e||(new Date).getFullYear()).toString();return dl[t]?dl[t]:"国民の祝日・休日月日,国民の祝日・休日名称"})(t),i=r.split("\n"),o=[];for(let e=1;e<i.length;e++){const t=i[e].trim();if(t){const[e,n]=t.split(",");e&&n&&o.push({date:e.trim(),name:n.trim()})}}return ul[n]=o,o};var ml="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},hl=[],gl=[],fl="undefined"!=typeof Uint8Array?Uint8Array:Array,bl=!1;function vl(){bl=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)hl[t]=e[t],gl[e.charCodeAt(t)]=t;gl["-".charCodeAt(0)]=62,gl["_".charCodeAt(0)]=63}function xl(e,t,n){for(var r,i,o=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(hl[(i=r)>>18&63]+hl[i>>12&63]+hl[i>>6&63]+hl[63&i]);return o.join("")}function yl(e){var t;bl||vl();for(var n=e.length,r=n%3,i="",o=[],a=16383,l=0,s=n-r;l<s;l+=a)o.push(xl(e,l,l+a>s?s:l+a));return 1===r?(t=e[n-1],i+=hl[t>>2],i+=hl[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=hl[t>>10],i+=hl[t>>4&63],i+=hl[t<<2&63],i+="="),o.push(i),o.join("")}function wl(e,t,n,r,i){var o,a,l=8*i-r-1,s=(1<<l)-1,c=s>>1,d=-7,u=n?i-1:0,p=n?-1:1,m=e[t+u];for(u+=p,o=m&(1<<-d)-1,m>>=-d,d+=l;d>0;o=256*o+e[t+u],u+=p,d-=8);for(a=o&(1<<-d)-1,o>>=-d,d+=r;d>0;a=256*a+e[t+u],u+=p,d-=8);if(0===o)o=1-c;else{if(o===s)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,r),o-=c}return(m?-1:1)*a*Math.pow(2,o-r)}function Cl(e,t,n,r,i,o){var a,l,s,c=8*o-i-1,d=(1<<c)-1,u=d>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:o-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+u>=1?p/s:p*Math.pow(2,1-u))*s>=2&&(a++,s/=2),a+u>=d?(l=0,a=d):a+u>=1?(l=(t*s-1)*Math.pow(2,i),a+=u):(l=t*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;e[n+m]=255&l,m+=h,l/=256,i-=8);for(a=a<<i|l,c+=i;c>0;e[n+m]=255&a,m+=h,a/=256,c-=8);e[n+m-h]|=128*g}var El={}.toString,Il=Array.isArray||function(e){return"[object Array]"==El.call(e)};function kl(){return $l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ml(e,t){if(kl()<t)throw new RangeError("Invalid typed array length");return $l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=$l.prototype:(null===e&&(e=new $l(t)),e.length=t),e}function $l(e,t,n){if(!($l.TYPED_ARRAY_SUPPORT||this instanceof $l))return new $l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Vl(this,e)}return Al(this,e,t,n)}function Al(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);$l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=$l.prototype:e=Hl(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!$l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Dl(t,n);e=Ml(e,r);var i=e.write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(Ol(t)){var n=0|Sl(t.length);return 0===(e=Ml(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?Ml(e,0):Hl(e,t);if("Buffer"===t.type&&Il(t.data))return Hl(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Ll(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Vl(e,t){if(Ll(t),e=Ml(e,t<0?0:0|Sl(t)),!$l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function Hl(e,t){var n=t.length<0?0:0|Sl(t.length);e=Ml(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Sl(e){if(e>=kl())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kl().toString(16)+" bytes");return 0|e}function Ol(e){return!(null==e||!e._isBuffer)}function Dl(e,t){if(Ol(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return ls(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ss(e).length;default:if(r)return ls(e).length;t=(""+t).toLowerCase(),r=!0}}function Rl(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ul(this,t,n);case"utf8":case"utf-8":return Yl(this,t,n);case"ascii":return Xl(this,t,n);case"latin1":case"binary":return Jl(this,t,n);case"base64":return Fl(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ql(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function zl(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Nl(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=$l.from(t,r)),Ol(t))return 0===t.length?-1:Tl(e,t,n,r,i);if("number"==typeof t)return t&=255,$l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Tl(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Tl(e,t,n,r,i){var o,a=1,l=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,l/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var d=-1;for(o=n;o<l;o++)if(c(e,o)===c(t,-1===d?0:o-d)){if(-1===d&&(d=o),o-d+1===s)return d*a}else-1!==d&&(o-=o-d),d=-1}else for(n+s>l&&(n=l-s),o=n;o>=0;o--){for(var u=!0,p=0;p<s;p++)if(c(e,o+p)!==c(t,p)){u=!1;break}if(u)return o}return-1}function Zl(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var l=parseInt(t.substr(2*a,2),16);if(isNaN(l))return a;e[n+a]=l}return a}function Bl(e,t,n,r){return cs(ls(t,e.length-n),e,n,r)}function Pl(e,t,n,r){return cs(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _l(e,t,n,r){return Pl(e,t,n,r)}function Gl(e,t,n,r){return cs(ss(t),e,n,r)}function jl(e,t,n,r){return cs(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function Fl(e,t,n){return 0===t&&n===e.length?yl(e):yl(e.slice(t,n))}function Yl(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,l,s,c=e[i],d=null,u=c>239?4:c>223?3:c>191?2:1;if(i+u<=n)switch(u){case 1:c<128&&(d=c);break;case 2:128==(192&(o=e[i+1]))&&(s=(31&c)<<6|63&o)>127&&(d=s);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(s=(15&c)<<12|(63&o)<<6|63&a)>2047&&(s<55296||s>57343)&&(d=s);break;case 4:o=e[i+1],a=e[i+2],l=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&l)&&(s=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(d=s)}null===d?(d=65533,u=1):d>65535&&(d-=65536,r.push(d>>>10&1023|55296),d=56320|1023&d),r.push(d),i+=u}return function(e){var t=e.length;if(t<=Wl)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Wl));return n}(r)}$l.TYPED_ARRAY_SUPPORT=void 0===ml.TYPED_ARRAY_SUPPORT||ml.TYPED_ARRAY_SUPPORT,kl(),$l.poolSize=8192,$l._augment=function(e){return e.__proto__=$l.prototype,e},$l.from=function(e,t,n){return Al(null,e,t,n)},$l.TYPED_ARRAY_SUPPORT&&($l.prototype.__proto__=Uint8Array.prototype,$l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&$l[Symbol.species]),$l.alloc=function(e,t,n){return function(e,t,n,r){return Ll(t),t<=0?Ml(e,t):void 0!==n?"string"==typeof r?Ml(e,t).fill(n,r):Ml(e,t).fill(n):Ml(e,t)}(null,e,t,n)},$l.allocUnsafe=function(e){return Vl(null,e)},$l.allocUnsafeSlow=function(e){return Vl(null,e)},$l.isBuffer=ds,$l.compare=function(e,t){if(!Ol(e)||!Ol(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},$l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},$l.concat=function(e,t){if(!Il(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return $l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=$l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!Ol(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},$l.byteLength=Dl,$l.prototype._isBuffer=!0,$l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)zl(this,t,t+1);return this},$l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)zl(this,t,t+3),zl(this,t+1,t+2);return this},$l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)zl(this,t,t+7),zl(this,t+1,t+6),zl(this,t+2,t+5),zl(this,t+3,t+4);return this},$l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Yl(this,0,e):Rl.apply(this,arguments)},$l.prototype.equals=function(e){if(!Ol(e))throw new TypeError("Argument must be a Buffer");return this===e||0===$l.compare(this,e)},$l.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},$l.prototype.compare=function(e,t,n,r,i){if(!Ol(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),l=Math.min(o,a),s=this.slice(r,i),c=e.slice(t,n),d=0;d<l;++d)if(s[d]!==c[d]){o=s[d],a=c[d];break}return o<a?-1:a<o?1:0},$l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},$l.prototype.indexOf=function(e,t,n){return Nl(this,e,t,n,!0)},$l.prototype.lastIndexOf=function(e,t,n){return Nl(this,e,t,n,!1)},$l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Zl(this,e,t,n);case"utf8":case"utf-8":return Bl(this,e,t,n);case"ascii":return Pl(this,e,t,n);case"latin1":case"binary":return _l(this,e,t,n);case"base64":return Gl(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jl(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},$l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Wl=4096;function Xl(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function Jl(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function Ul(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=as(e[o]);return i}function Ql(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function ql(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Kl(e,t,n,r,i,o){if(!Ol(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function es(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function ts(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function ns(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function rs(e,t,n,r,i){return i||ns(e,0,n,4),Cl(e,t,n,r,23,4),n+4}function is(e,t,n,r,i){return i||ns(e,0,n,8),Cl(e,t,n,r,52,8),n+8}$l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),$l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=$l.prototype;else{var i=t-e;n=new $l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},$l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||ql(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},$l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||ql(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},$l.prototype.readUInt8=function(e,t){return t||ql(e,1,this.length),this[e]},$l.prototype.readUInt16LE=function(e,t){return t||ql(e,2,this.length),this[e]|this[e+1]<<8},$l.prototype.readUInt16BE=function(e,t){return t||ql(e,2,this.length),this[e]<<8|this[e+1]},$l.prototype.readUInt32LE=function(e,t){return t||ql(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},$l.prototype.readUInt32BE=function(e,t){return t||ql(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},$l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||ql(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},$l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||ql(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},$l.prototype.readInt8=function(e,t){return t||ql(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},$l.prototype.readInt16LE=function(e,t){t||ql(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},$l.prototype.readInt16BE=function(e,t){t||ql(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},$l.prototype.readInt32LE=function(e,t){return t||ql(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},$l.prototype.readInt32BE=function(e,t){return t||ql(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},$l.prototype.readFloatLE=function(e,t){return t||ql(e,4,this.length),wl(this,e,!0,23,4)},$l.prototype.readFloatBE=function(e,t){return t||ql(e,4,this.length),wl(this,e,!1,23,4)},$l.prototype.readDoubleLE=function(e,t){return t||ql(e,8,this.length),wl(this,e,!0,52,8)},$l.prototype.readDoubleBE=function(e,t){return t||ql(e,8,this.length),wl(this,e,!1,52,8)},$l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Kl(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},$l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Kl(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},$l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,1,255,0),$l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},$l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,2,65535,0),$l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):es(this,e,t,!0),t+2},$l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,2,65535,0),$l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):es(this,e,t,!1),t+2},$l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,4,4294967295,0),$l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):ts(this,e,t,!0),t+4},$l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,4,4294967295,0),$l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ts(this,e,t,!1),t+4},$l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Kl(this,e,t,n,i-1,-i)}var o=0,a=1,l=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===l&&0!==this[t+o-1]&&(l=1),this[t+o]=(e/a>>0)-l&255;return t+n},$l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Kl(this,e,t,n,i-1,-i)}var o=n-1,a=1,l=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===l&&0!==this[t+o+1]&&(l=1),this[t+o]=(e/a>>0)-l&255;return t+n},$l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,1,127,-128),$l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},$l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,2,32767,-32768),$l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):es(this,e,t,!0),t+2},$l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,2,32767,-32768),$l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):es(this,e,t,!1),t+2},$l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,4,2147483647,-2147483648),$l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):ts(this,e,t,!0),t+4},$l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Kl(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),$l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ts(this,e,t,!1),t+4},$l.prototype.writeFloatLE=function(e,t,n){return rs(this,e,t,!0,n)},$l.prototype.writeFloatBE=function(e,t,n){return rs(this,e,t,!1,n)},$l.prototype.writeDoubleLE=function(e,t,n){return is(this,e,t,!0,n)},$l.prototype.writeDoubleBE=function(e,t,n){return is(this,e,t,!1,n)},$l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!$l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},$l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!$l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=Ol(e)?e:ls(new $l(e,r).toString()),l=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%l]}return this};var os=/[^+\/0-9A-Za-z-_]/g;function as(e){return e<16?"0"+e.toString(16):e.toString(16)}function ls(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function ss(e){return function(e){var t,n,r,i,o,a;bl||vl();var l=e.length;if(l%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[l-2]?2:"="===e[l-1]?1:0,a=new fl(3*l/4-o),r=o>0?l-4:l;var s=0;for(t=0,n=0;t<r;t+=4,n+=3)i=gl[e.charCodeAt(t)]<<18|gl[e.charCodeAt(t+1)]<<12|gl[e.charCodeAt(t+2)]<<6|gl[e.charCodeAt(t+3)],a[s++]=i>>16&255,a[s++]=i>>8&255,a[s++]=255&i;return 2===o?(i=gl[e.charCodeAt(t)]<<2|gl[e.charCodeAt(t+1)]>>4,a[s++]=255&i):1===o&&(i=gl[e.charCodeAt(t)]<<10|gl[e.charCodeAt(t+1)]<<4|gl[e.charCodeAt(t+2)]>>2,a[s++]=i>>8&255,a[s++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(os,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function cs(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function ds(e){return null!=e&&(!!e._isBuffer||us(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&us(e.slice(0,0))}(e))}function us(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}class ps extends Error{constructor(e,t,n,...r){Array.isArray(t)&&(t=t.join(" ").trim()),super(t),void 0!==Error.captureStackTrace&&Error.captureStackTrace(this,ps),this.code=e;for(const e of r)for(const t in e){const r=e[t];this[t]=ds(r)?r.toString(n.encoding):null==r?r:JSON.parse(JSON.stringify(r))}}}const ms=function(e){const t=[];for(let r=0,i=e.length;r<i;r++){const i=e[r];if(null==i||!1===i)t[r]={disabled:!0};else if("string"==typeof i)t[r]={name:i};else{if("object"!=typeof(n=i)||null===n||Array.isArray(n))throw new ps("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(i)} at position ${r}`]);if("string"!=typeof i.name)throw new ps("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${r}`,"when column is an object literal"]);t[r]=i}}var n;return t};class hs{constructor(e=100){this.size=e,this.length=0,this.buf=$l.allocUnsafe(e)}prepend(e){if(ds(e)){const t=this.length+e.length;if(t>=this.size&&(this.resize(),t>=this.size))throw Error("INVALID_BUFFER_STATE");const n=this.buf;this.buf=$l.allocUnsafe(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{const t=this.length++;t===this.size&&this.resize();const n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,t)}}append(e){const t=this.length++;t===this.size&&this.resize(),this.buf[t]=e}clone(){return $l.from(this.buf.slice(0,this.length))}resize(){const e=this.length;this.size=2*this.size;const t=$l.allocUnsafe(this.size);this.buf.copy(t,0,0,e),this.buf=t}toString(e){return e?this.buf.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}}const gs=function(e){return{bomSkipped:!1,bufBytesStart:0,castField:e.cast_function,commenting:!1,error:void 0,enabled:1===e.from_line,escaping:!1,escapeIsQuote:ds(e.escape)&&ds(e.quote)&&0===$l.compare(e.escape,e.quote),expectedRecordLength:Array.isArray(e.columns)?e.columns.length:void 0,field:new hs(20),firstLineToHeaders:e.cast_first_line_to_header,needMoreDataSize:Math.max(null!==e.comment?e.comment.length:0,...e.delimiter.map((e=>e.length)),null!==e.quote?e.quote.length:0),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new hs(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:0===e.record_delimiter.length?0:Math.max(...e.record_delimiter.map((e=>e.length))),trimChars:[$l.from(" ",e.encoding)[0],$l.from("\t",e.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:[$l.from($l.from([13],"utf8").toString(),e.encoding),$l.from($l.from([10],"utf8").toString(),e.encoding),$l.from($l.from([12],"utf8").toString(),e.encoding),$l.from($l.from([32],"utf8").toString(),e.encoding),$l.from($l.from([9],"utf8").toString(),e.encoding)]}},fs=function(e){const t={};for(const r in e)t[(n=r,n.replace(/([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})))]=e[r];var n;if(void 0===t.encoding||!0===t.encoding)t.encoding="utf8";else if(null===t.encoding||!1===t.encoding)t.encoding=null;else if("string"!=typeof t.encoding&&null!==t.encoding)throw new ps("CSV_INVALID_OPTION_ENCODING",["Invalid option encoding:","encoding must be a string or null to return a buffer,",`got ${JSON.stringify(t.encoding)}`],t);if(void 0===t.bom||null===t.bom||!1===t.bom)t.bom=!1;else if(!0!==t.bom)throw new ps("CSV_INVALID_OPTION_BOM",["Invalid option bom:","bom must be true,",`got ${JSON.stringify(t.bom)}`],t);if(t.cast_function=null,void 0===t.cast||null===t.cast||!1===t.cast||""===t.cast)t.cast=void 0;else if("function"==typeof t.cast)t.cast_function=t.cast,t.cast=!0;else if(!0!==t.cast)throw new ps("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(t.cast)}`],t);if(void 0===t.cast_date||null===t.cast_date||!1===t.cast_date||""===t.cast_date)t.cast_date=!1;else if(!0===t.cast_date)t.cast_date=function(e){const t=Date.parse(e);return isNaN(t)?e:new Date(t)};else if("function"!=typeof t.cast_date)throw new ps("CSV_INVALID_OPTION_CAST_DATE",["Invalid option cast_date:","cast_date must be true or a function,",`got ${JSON.stringify(t.cast_date)}`],t);if(t.cast_first_line_to_header=void 0,!0===t.columns)t.cast_first_line_to_header=void 0;else if("function"==typeof t.columns)t.cast_first_line_to_header=t.columns,t.columns=!0;else if(Array.isArray(t.columns))t.columns=ms(t.columns);else{if(void 0!==t.columns&&null!==t.columns&&!1!==t.columns)throw new ps("CSV_INVALID_OPTION_COLUMNS",["Invalid option columns:","expect an array, a function or true,",`got ${JSON.stringify(t.columns)}`],t);t.columns=!1}if(void 0===t.group_columns_by_name||null===t.group_columns_by_name||!1===t.group_columns_by_name)t.group_columns_by_name=!1;else{if(!0!==t.group_columns_by_name)throw new ps("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","expect an boolean,",`got ${JSON.stringify(t.group_columns_by_name)}`],t);if(!1===t.columns)throw new ps("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","the `columns` mode must be activated."],t)}if(void 0===t.comment||null===t.comment||!1===t.comment||""===t.comment)t.comment=null;else if("string"==typeof t.comment&&(t.comment=$l.from(t.comment,t.encoding)),!ds(t.comment))throw new ps("CSV_INVALID_OPTION_COMMENT",["Invalid option comment:","comment must be a buffer or a string,",`got ${JSON.stringify(t.comment)}`],t);if(void 0===t.comment_no_infix||null===t.comment_no_infix||!1===t.comment_no_infix)t.comment_no_infix=!1;else if(!0!==t.comment_no_infix)throw new ps("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(t.comment_no_infix)}`],t);const r=JSON.stringify(t.delimiter);if(Array.isArray(t.delimiter)||(t.delimiter=[t.delimiter]),0===t.delimiter.length)throw new ps("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${r}`],t);if(t.delimiter=t.delimiter.map((function(e){if(null==e||!1===e)return $l.from(",",t.encoding);if("string"==typeof e&&(e=$l.from(e,t.encoding)),!ds(e)||0===e.length)throw new ps("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${r}`],t);return e})),void 0===t.escape||!0===t.escape?t.escape=$l.from('"',t.encoding):"string"==typeof t.escape?t.escape=$l.from(t.escape,t.encoding):null!==t.escape&&!1!==t.escape||(t.escape=null),null!==t.escape&&!ds(t.escape))throw new Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(t.escape)}`);if(void 0===t.from||null===t.from)t.from=1;else{if("string"==typeof t.from&&/\d+/.test(t.from)&&(t.from=parseInt(t.from)),!Number.isInteger(t.from))throw new Error(`Invalid Option: from must be an integer, got ${JSON.stringify(t.from)}`);if(t.from<0)throw new Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(e.from)}`)}if(void 0===t.from_line||null===t.from_line)t.from_line=1;else{if("string"==typeof t.from_line&&/\d+/.test(t.from_line)&&(t.from_line=parseInt(t.from_line)),!Number.isInteger(t.from_line))throw new Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(e.from_line)}`);if(t.from_line<=0)throw new Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(e.from_line)}`)}if(void 0===t.ignore_last_delimiters||null===t.ignore_last_delimiters)t.ignore_last_delimiters=!1;else if("number"==typeof t.ignore_last_delimiters)t.ignore_last_delimiters=Math.floor(t.ignore_last_delimiters),0===t.ignore_last_delimiters&&(t.ignore_last_delimiters=!1);else if("boolean"!=typeof t.ignore_last_delimiters)throw new ps("CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS",["Invalid option `ignore_last_delimiters`:","the value must be a boolean value or an integer,",`got ${JSON.stringify(t.ignore_last_delimiters)}`],t);if(!0===t.ignore_last_delimiters&&!1===t.columns)throw new ps("CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS",["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],t);if(void 0===t.info||null===t.info||!1===t.info)t.info=!1;else if(!0!==t.info)throw new Error(`Invalid Option: info must be true, got ${JSON.stringify(t.info)}`);if(void 0===t.max_record_size||null===t.max_record_size||!1===t.max_record_size)t.max_record_size=0;else if(Number.isInteger(t.max_record_size)&&t.max_record_size>=0);else{if("string"!=typeof t.max_record_size||!/\d+/.test(t.max_record_size))throw new Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(t.max_record_size)}`);t.max_record_size=parseInt(t.max_record_size)}if(void 0===t.objname||null===t.objname||!1===t.objname)t.objname=void 0;else if(ds(t.objname)){if(0===t.objname.length)throw new Error("Invalid Option: objname must be a non empty buffer");null===t.encoding||(t.objname=t.objname.toString(t.encoding))}else if("string"==typeof t.objname){if(0===t.objname.length)throw new Error("Invalid Option: objname must be a non empty string")}else if("number"!=typeof t.objname)throw new Error(`Invalid Option: objname must be a string or a buffer, got ${t.objname}`);if(void 0!==t.objname)if("number"==typeof t.objname){if(!1!==t.columns)throw Error("Invalid Option: objname index cannot be combined with columns or be defined as a field")}else if(!1===t.columns)throw Error("Invalid Option: objname field must be combined with columns or be defined as an index");if(void 0===t.on_record||null===t.on_record)t.on_record=void 0;else if("function"!=typeof t.on_record)throw new ps("CSV_INVALID_OPTION_ON_RECORD",["Invalid option `on_record`:","expect a function,",`got ${JSON.stringify(t.on_record)}`],t);if(void 0!==t.on_skip&&null!==t.on_skip&&"function"!=typeof t.on_skip)throw new Error(`Invalid Option: on_skip must be a function, got ${JSON.stringify(t.on_skip)}`);if(null===t.quote||!1===t.quote||""===t.quote)t.quote=null;else if(void 0===t.quote||!0===t.quote?t.quote=$l.from('"',t.encoding):"string"==typeof t.quote&&(t.quote=$l.from(t.quote,t.encoding)),!ds(t.quote))throw new Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(t.quote)}`);if(void 0===t.raw||null===t.raw||!1===t.raw)t.raw=!1;else if(!0!==t.raw)throw new Error(`Invalid Option: raw must be true, got ${JSON.stringify(t.raw)}`);if(void 0===t.record_delimiter)t.record_delimiter=[];else if("string"==typeof t.record_delimiter||ds(t.record_delimiter)){if(0===t.record_delimiter.length)throw new ps("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer,",`got ${JSON.stringify(t.record_delimiter)}`],t);t.record_delimiter=[t.record_delimiter]}else if(!Array.isArray(t.record_delimiter))throw new ps("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer,",`got ${JSON.stringify(t.record_delimiter)}`],t);if(t.record_delimiter=t.record_delimiter.map((function(e,n){if("string"!=typeof e&&!ds(e))throw new ps("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${n},`,`got ${JSON.stringify(e)}`],t);if(0===e.length)throw new ps("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${n},`,`got ${JSON.stringify(e)}`],t);return"string"==typeof e&&(e=$l.from(e,t.encoding)),e})),"boolean"==typeof t.relax_column_count);else{if(void 0!==t.relax_column_count&&null!==t.relax_column_count)throw new Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(t.relax_column_count)}`);t.relax_column_count=!1}if("boolean"==typeof t.relax_column_count_less);else{if(void 0!==t.relax_column_count_less&&null!==t.relax_column_count_less)throw new Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(t.relax_column_count_less)}`);t.relax_column_count_less=!1}if("boolean"==typeof t.relax_column_count_more);else{if(void 0!==t.relax_column_count_more&&null!==t.relax_column_count_more)throw new Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(t.relax_column_count_more)}`);t.relax_column_count_more=!1}if("boolean"==typeof t.relax_quotes);else{if(void 0!==t.relax_quotes&&null!==t.relax_quotes)throw new Error(`Invalid Option: relax_quotes must be a boolean, got ${JSON.stringify(t.relax_quotes)}`);t.relax_quotes=!1}if("boolean"==typeof t.skip_empty_lines);else{if(void 0!==t.skip_empty_lines&&null!==t.skip_empty_lines)throw new Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(t.skip_empty_lines)}`);t.skip_empty_lines=!1}if("boolean"==typeof t.skip_records_with_empty_values);else{if(void 0!==t.skip_records_with_empty_values&&null!==t.skip_records_with_empty_values)throw new Error(`Invalid Option: skip_records_with_empty_values must be a boolean, got ${JSON.stringify(t.skip_records_with_empty_values)}`);t.skip_records_with_empty_values=!1}if("boolean"==typeof t.skip_records_with_error);else{if(void 0!==t.skip_records_with_error&&null!==t.skip_records_with_error)throw new Error(`Invalid Option: skip_records_with_error must be a boolean, got ${JSON.stringify(t.skip_records_with_error)}`);t.skip_records_with_error=!1}if(void 0===t.rtrim||null===t.rtrim||!1===t.rtrim)t.rtrim=!1;else if(!0!==t.rtrim)throw new Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(t.rtrim)}`);if(void 0===t.ltrim||null===t.ltrim||!1===t.ltrim)t.ltrim=!1;else if(!0!==t.ltrim)throw new Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(t.ltrim)}`);if(void 0===t.trim||null===t.trim||!1===t.trim)t.trim=!1;else if(!0!==t.trim)throw new Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(t.trim)}`);if(!0===t.trim&&!1!==e.ltrim?t.ltrim=!0:!0!==t.ltrim&&(t.ltrim=!1),!0===t.trim&&!1!==e.rtrim?t.rtrim=!0:!0!==t.rtrim&&(t.rtrim=!1),void 0===t.to||null===t.to)t.to=-1;else if(-1!==t.to){if("string"==typeof t.to&&/\d+/.test(t.to)&&(t.to=parseInt(t.to)),!Number.isInteger(t.to))throw new Error(`Invalid Option: to must be an integer, got ${JSON.stringify(e.to)}`);if(t.to<=0)throw new Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(e.to)}`)}if(void 0===t.to_line||null===t.to_line)t.to_line=-1;else if(-1!==t.to_line){if("string"==typeof t.to_line&&/\d+/.test(t.to_line)&&(t.to_line=parseInt(t.to_line)),!Number.isInteger(t.to_line))throw new Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(e.to_line)}`);if(t.to_line<=0)throw new Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(e.to_line)}`)}return t},bs=function(e){return e.every((e=>null==e||e.toString&&""===e.toString().trim()))},vs={utf8:$l.from([239,187,191]),utf16le:$l.from([255,254])},xs=function(e,t={}){"string"==typeof e&&(e=$l.from(e));const n=t&&t.objname?{}:[],r=function(e={}){const t=fs(e);return{info:{bytes:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},original_options:e,options:t,state:gs(t),__needMoreData:function(e,t,n){if(n)return!1;const{encoding:r,escape:i,quote:o}=this.options,{quoting:a,needMoreDataSize:l,recordDelimiterMaxLength:s}=this.state;return t-e-1<Math.max(l,0===s?$l.from("\r\n",r).length:s,a?(null===i?0:i.length)+o.length:0,a?o.length+s:0)},parse:function(e,t,n,r){const{bom:i,comment_no_infix:o,encoding:a,from_line:l,ltrim:s,max_record_size:c,raw:d,relax_quotes:u,rtrim:p,skip_empty_lines:m,to:h,to_line:g}=this.options;let{comment:f,escape:b,quote:v,record_delimiter:x}=this.options;const{bomSkipped:y,previousBuf:w,rawBuffer:C,escapeIsQuote:E}=this.state;let I;if(void 0===w){if(void 0===e)return void r();I=e}else I=void 0!==w&&void 0===e?w:$l.concat([w,e]);if(!1===y)if(!1===i)this.state.bomSkipped=!0;else if(I.length<3){if(!1===t)return void(this.state.previousBuf=I)}else{for(const e in vs)if(0===vs[e].compare(I,0,vs[e].length)){const t=vs[e].length;this.state.bufBytesStart+=t,I=I.slice(t);const n=fs({...this.original_options,encoding:e});for(const e in n)this.options[e]=n[e];({comment:f,escape:b,quote:v}=this.options);break}this.state.bomSkipped=!0}const k=I.length;let M;for(M=0;M<k&&!this.__needMoreData(M,k,t);M++){if(!0===this.state.wasRowDelimiter&&(this.info.lines++,this.state.wasRowDelimiter=!1),-1!==g&&this.info.lines>g)return this.state.stop=!0,void r();!1===this.state.quoting&&0===x.length&&this.__autoDiscoverRecordDelimiter(I,M)&&(x=this.options.record_delimiter);const e=I[M];if(!0===d&&C.append(e),13!==e&&10!==e||!1!==this.state.wasRowDelimiter||(this.state.wasRowDelimiter=!0),!0===this.state.escaping)this.state.escaping=!1;else{if(null!==b&&!0===this.state.quoting&&this.__isEscape(I,M,e)&&M+b.length<k){if(!E){this.state.escaping=!0,M+=b.length-1;continue}if(this.__isQuote(I,M+b.length)){this.state.escaping=!0,M+=b.length-1;continue}}if(!1===this.state.commenting&&this.__isQuote(I,M))if(!0===this.state.quoting){const t=I[M+v.length],n=p&&this.__isCharTrimable(I,M+v.length),r=null!==f&&this.__compareBytes(f,I,M+v.length,t),i=this.__isDelimiter(I,M+v.length,t),o=0===x.length?this.__autoDiscoverRecordDelimiter(I,M+v.length):this.__isRecordDelimiter(t,I,M+v.length);if(null!==b&&this.__isEscape(I,M,e)&&this.__isQuote(I,M+b.length))M+=b.length-1;else{if(!t||i||o||r||n){this.state.quoting=!1,this.state.wasQuoting=!0,M+=v.length-1;continue}if(!1===u){const e=this.__error(new ps("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(t)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(void 0!==e)return e}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(v),M+=v.length-1}}else{if(0===this.state.field.length){this.state.quoting=!0,M+=v.length-1;continue}if(!1===u){const e=this.__infoField(),t=Object.keys(vs).map((e=>!!vs[e].equals(this.state.field.toString())&&e)).filter(Boolean)[0],n=this.__error(new ps("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(e.column)} at line ${e.lines}, value is ${JSON.stringify(this.state.field.toString(a))}`,t?`(${t} bom)`:void 0],this.options,e,{field:this.state.field}));if(void 0!==n)return n}}if(!1===this.state.quoting){const t=this.__isRecordDelimiter(e,I,M);if(0!==t){if(this.state.commenting&&!1===this.state.wasQuoting&&0===this.state.record.length&&0===this.state.field.length)this.info.comment_lines++;else{if(!1===this.state.enabled&&this.info.lines+(!0===this.state.wasRowDelimiter?1:0)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),M+=t-1;continue}if(!0===m&&!1===this.state.wasQuoting&&0===this.state.record.length&&0===this.state.field.length){this.info.empty_lines++,M+=t-1;continue}this.info.bytes=this.state.bufBytesStart+M;const e=this.__onField();if(void 0!==e)return e;this.info.bytes=this.state.bufBytesStart+M+t;const i=this.__onRecord(n);if(void 0!==i)return i;if(-1!==h&&this.info.records>=h)return this.state.stop=!0,void r()}this.state.commenting=!1,M+=t-1;continue}if(this.state.commenting)continue;if(null!==f&&(!1===o||0===this.state.record.length&&0===this.state.field.length)&&0!==this.__compareBytes(f,I,M,e)){this.state.commenting=!0;continue}const i=this.__isDelimiter(I,M,e);if(0!==i){this.info.bytes=this.state.bufBytesStart+M;const e=this.__onField();if(void 0!==e)return e;M+=i-1;continue}}}if(!1===this.state.commenting&&0!==c&&this.state.record_length+this.state.field.length>c)return this.__error(new ps("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${c}`,`at line ${this.info.lines}`],this.options,this.__infoField()));const t=!1===s||!0===this.state.quoting||0!==this.state.field.length||!this.__isCharTrimable(I,M),i=!1===p||!1===this.state.wasQuoting;if(!0!==t||!0!==i){if(!0!==p||this.__isCharTrimable(I,M)){!1===t&&(M+=this.__isCharTrimable(I,M)-1);continue}return this.__error(new ps("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()))}this.state.field.append(e)}if(!0===t)if(!0===this.state.quoting){const e=this.__error(new ps("CSV_QUOTE_NOT_CLOSED",["Quote Not Closed:",`the parsing is finished with an opening quote at line ${this.info.lines}`],this.options,this.__infoField()));if(void 0!==e)return e}else if(!0===this.state.wasQuoting||0!==this.state.record.length||0!==this.state.field.length){this.info.bytes=this.state.bufBytesStart+M;const e=this.__onField();if(void 0!==e)return e;const t=this.__onRecord(n);if(void 0!==t)return t}else!0===this.state.wasRowDelimiter?this.info.empty_lines++:!0===this.state.commenting&&this.info.comment_lines++;else this.state.bufBytesStart+=M,this.state.previousBuf=I.slice(M);!0===this.state.wasRowDelimiter&&(this.info.lines++,this.state.wasRowDelimiter=!1)},__onRecord:function(e){const{columns:t,group_columns_by_name:n,encoding:r,info:i,from:o,relax_column_count:a,relax_column_count_less:l,relax_column_count_more:s,raw:c,skip_records_with_empty_values:d}=this.options,{enabled:u,record:p}=this.state;if(!1===u)return this.__resetRecord();const m=p.length;if(!0===t)return!0===d&&bs(p)?void this.__resetRecord():this.__firstLineToColumns(p);if(!1===t&&0===this.info.records&&(this.state.expectedRecordLength=m),m!==this.state.expectedRecordLength){const e=!1===t?new ps("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${m} on line ${this.info.lines}`],this.options,this.__infoField(),{record:p}):new ps("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${t.length},`,`got ${m} on line ${this.info.lines}`],this.options,this.__infoField(),{record:p});if(!0===a||!0===l&&m<this.state.expectedRecordLength||!0===s&&m>this.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=e;else{const t=this.__error(e);if(t)return t}}if(!0===d&&bs(p))this.__resetRecord();else{if(!0===this.state.recordHasError)return this.__resetRecord(),void(this.state.recordHasError=!1);if(this.info.records++,1===o||this.info.records>=o){const{objname:o}=this.options;if(!1!==t){const a={};for(let e=0,r=p.length;e<r;e++)void 0===t[e]||t[e].disabled||(!0===n&&void 0!==a[t[e].name]?Array.isArray(a[t[e].name])?a[t[e].name]=a[t[e].name].concat(p[e]):a[t[e].name]=[a[t[e].name],p[e]]:a[t[e].name]=p[e]);if(!0===c||!0===i){const t=Object.assign({record:a},!0===c?{raw:this.state.rawBuffer.toString(r)}:{},!0===i?{info:this.__infoRecord()}:{}),n=this.__push(void 0===o?t:[a[o],t],e);if(n)return n}else{const t=this.__push(void 0===o?a:[a[o],a],e);if(t)return t}}else if(!0===c||!0===i){const t=Object.assign({record:p},!0===c?{raw:this.state.rawBuffer.toString(r)}:{},!0===i?{info:this.__infoRecord()}:{}),n=this.__push(void 0===o?t:[p[o],t],e);if(n)return n}else{const t=this.__push(void 0===o?p:[p[o],p],e);if(t)return t}}this.__resetRecord()}},__firstLineToColumns:function(e){const{firstLineToHeaders:t}=this.state;try{const n=void 0===t?e:t.call(null,e);if(!Array.isArray(n))return this.__error(new ps("CSV_INVALID_COLUMN_MAPPING",["Invalid Column Mapping:","expect an array from column function,",`got ${JSON.stringify(n)}`],this.options,this.__infoField(),{headers:n}));const r=ms(n);return this.state.expectedRecordLength=r.length,this.options.columns=r,void this.__resetRecord()}catch(e){return e}},__resetRecord:function(){!0===this.options.raw&&this.state.rawBuffer.reset(),this.state.error=void 0,this.state.record=[],this.state.record_length=0},__onField:function(){const{cast:e,encoding:t,rtrim:n,max_record_size:r}=this.options,{enabled:i,wasQuoting:o}=this.state;if(!1===i)return this.__resetField();let a=this.state.field.toString(t);if(!0===n&&!1===o&&(a=a.trimRight()),!0===e){const[e,t]=this.__cast(a);if(void 0!==e)return e;a=t}this.state.record.push(a),0!==r&&"string"==typeof a&&(this.state.record_length+=a.length),this.__resetField()},__resetField:function(){this.state.field.reset(),this.state.wasQuoting=!1},__push:function(e,t){const{on_record:n}=this.options;if(void 0!==n){const t=this.__infoRecord();try{e=n.call(null,e,t)}catch(e){return e}if(null==e)return}t(e)},__cast:function(e){const{columns:t,relax_column_count:n}=this.options;if(!0===Array.isArray(t)&&n&&this.options.columns.length<=this.state.record.length)return[void 0,void 0];if(null!==this.state.castField)try{const t=this.__infoField();return[void 0,this.state.castField.call(null,e,t)]}catch(e){return[e]}if(this.__isFloat(e))return[void 0,parseFloat(e)];if(!1!==this.options.cast_date){const t=this.__infoField();return[void 0,this.options.cast_date.call(null,e,t)]}return[void 0,e]},__isCharTrimable:function(e,t){return((e,t)=>{const{timchars:n}=this.state;e:for(let r=0;r<n.length;r++){const i=n[r];for(let n=0;n<i.length;n++)if(i[n]!==e[t+n])continue e;return i.length}return 0})(e,t)},__isFloat:function(e){return e-parseFloat(e)+1>=0},__compareBytes:function(e,t,n,r){if(e[0]!==r)return 0;const i=e.length;for(let r=1;r<i;r++)if(e[r]!==t[n+r])return 0;return i},__isDelimiter:function(e,t,n){const{delimiter:r,ignore_last_delimiters:i}=this.options;if(!0===i&&this.state.record.length===this.options.columns.length-1)return 0;if(!1!==i&&"number"==typeof i&&this.state.record.length===i-1)return 0;e:for(let i=0;i<r.length;i++){const o=r[i];if(o[0]===n){for(let n=1;n<o.length;n++)if(o[n]!==e[t+n])continue e;return o.length}}return 0},__isRecordDelimiter:function(e,t,n){const{record_delimiter:r}=this.options,i=r.length;e:for(let o=0;o<i;o++){const i=r[o],a=i.length;if(i[0]===e){for(let e=1;e<a;e++)if(i[e]!==t[n+e])continue e;return i.length}}return 0},__isEscape:function(e,t,n){const{escape:r}=this.options;if(null===r)return!1;const i=r.length;if(r[0]===n){for(let n=0;n<i;n++)if(r[n]!==e[t+n])return!1;return!0}return!1},__isQuote:function(e,t){const{quote:n}=this.options;if(null===n)return!1;const r=n.length;for(let i=0;i<r;i++)if(n[i]!==e[t+i])return!1;return!0},__autoDiscoverRecordDelimiter:function(e,t){const{encoding:n}=this.options,r=[$l.from("\r\n",n),$l.from("\n",n),$l.from("\r",n)];e:for(let n=0;n<r.length;n++){const i=r[n].length;for(let o=0;o<i;o++)if(r[n][o]!==e[t+o])continue e;return this.options.record_delimiter.push(r[n]),this.state.recordDelimiterMaxLength=r[n].length,r[n].length}return 0},__error:function(e){const{encoding:t,raw:n,skip_records_with_error:r}=this.options,i="string"==typeof e?new Error(e):e;if(!r)return i;if(this.state.recordHasError=!0,void 0!==this.options.on_skip)try{this.options.on_skip(i,n?this.state.rawBuffer.toString(t):void 0)}catch(i){return i}},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){const{columns:e,raw:t,encoding:n}=this.options;return{...this.__infoDataSet(),error:this.state.error,header:!0===e,index:this.state.record.length,raw:t?this.state.rawBuffer.toString(n):void 0}},__infoField:function(){const{columns:e}=this.options,t=Array.isArray(e);return{...this.__infoRecord(),column:!0===t?e.length>this.state.record.length?e[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}}(t),i=r.parse(e,!0,(e=>{void 0===r.options.objname?n.push(e):n[e[0]]=e[1]}),(()=>{}));if(void 0!==i)throw i;return n},ys=e=>{var t;const n=e.trim();if(!n)return[];let r;const i=n.includes(","),o=n.startsWith('"')&&n.endsWith('"');if(i||o)try{r=null!==(t=xs(n,{columns:!1})[0])&&void 0!==t?t:[]}catch(e){r=n.split(",")}else r=[n];return r.filter((e=>e&&"string"==typeof e)).map((e=>e.trim())).filter((e=>e))},ws=v.div`
|
|
916
916
|
display: flex;
|
|
917
917
|
align-items: center;
|
|
918
918
|
align-content: center;
|
|
@@ -932,12 +932,12 @@ var Tr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
932
932
|
*
|
|
933
933
|
* This source code is licensed under the MIT license found in the
|
|
934
934
|
* LICENSE file in the root directory of this source tree.
|
|
935
|
-
*/"production"===process.env.NODE_ENV?As.exports=function(){if(Ms)return Ls;Ms=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,f=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case r:case o:case i:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case h:case m:case a:return e;default:return p}}case n:return p}}}function y(e){return x(e)===c}return Ls.AsyncMode=s,Ls.ConcurrentMode=c,Ls.ContextConsumer=l,Ls.ContextProvider=a,Ls.Element=t,Ls.ForwardRef=d,Ls.Fragment=r,Ls.Lazy=h,Ls.Memo=m,Ls.Portal=n,Ls.Profiler=o,Ls.StrictMode=i,Ls.Suspense=u,Ls.isAsyncMode=function(e){return y(e)||x(e)===s},Ls.isConcurrentMode=y,Ls.isContextConsumer=function(e){return x(e)===l},Ls.isContextProvider=function(e){return x(e)===a},Ls.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ls.isForwardRef=function(e){return x(e)===d},Ls.isFragment=function(e){return x(e)===r},Ls.isLazy=function(e){return x(e)===h},Ls.isMemo=function(e){return x(e)===m},Ls.isPortal=function(e){return x(e)===n},Ls.isProfiler=function(e){return x(e)===o},Ls.isStrictMode=function(e){return x(e)===i},Ls.isSuspense=function(e){return x(e)===u},Ls.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===f||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},Ls.typeOf=x,Ls}():As.exports=(Vs||(Vs=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,f=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case s:case c:case r:case o:case i:case u:return g;default:var f=g&&g.$$typeof;switch(f){case l:case d:case h:case m:case a:return f;default:return p}}case n:return p}}}var y=s,w=c,C=l,E=a,I=t,k=d,M=r,$=h,A=m,L=n,V=o,H=i,
|
|
935
|
+
*/"production"===process.env.NODE_ENV?As.exports=function(){if(Ms)return Ls;Ms=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,f=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case r:case o:case i:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case h:case m:case a:return e;default:return p}}case n:return p}}}function y(e){return x(e)===c}return Ls.AsyncMode=s,Ls.ConcurrentMode=c,Ls.ContextConsumer=l,Ls.ContextProvider=a,Ls.Element=t,Ls.ForwardRef=d,Ls.Fragment=r,Ls.Lazy=h,Ls.Memo=m,Ls.Portal=n,Ls.Profiler=o,Ls.StrictMode=i,Ls.Suspense=u,Ls.isAsyncMode=function(e){return y(e)||x(e)===s},Ls.isConcurrentMode=y,Ls.isContextConsumer=function(e){return x(e)===l},Ls.isContextProvider=function(e){return x(e)===a},Ls.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ls.isForwardRef=function(e){return x(e)===d},Ls.isFragment=function(e){return x(e)===r},Ls.isLazy=function(e){return x(e)===h},Ls.isMemo=function(e){return x(e)===m},Ls.isPortal=function(e){return x(e)===n},Ls.isProfiler=function(e){return x(e)===o},Ls.isStrictMode=function(e){return x(e)===i},Ls.isSuspense=function(e){return x(e)===u},Ls.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===f||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},Ls.typeOf=x,Ls}():As.exports=(Vs||(Vs=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,f=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case s:case c:case r:case o:case i:case u:return g;default:var f=g&&g.$$typeof;switch(f){case l:case d:case h:case m:case a:return f;default:return p}}case n:return p}}}var y=s,w=c,C=l,E=a,I=t,k=d,M=r,$=h,A=m,L=n,V=o,H=i,S=u,O=!1;function D(e){return x(e)===c}Hs.AsyncMode=y,Hs.ConcurrentMode=w,Hs.ContextConsumer=C,Hs.ContextProvider=E,Hs.Element=I,Hs.ForwardRef=k,Hs.Fragment=M,Hs.Lazy=$,Hs.Memo=A,Hs.Portal=L,Hs.Profiler=V,Hs.StrictMode=H,Hs.Suspense=S,Hs.isAsyncMode=function(e){return O||(O=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(e)||x(e)===s},Hs.isConcurrentMode=D,Hs.isContextConsumer=function(e){return x(e)===l},Hs.isContextProvider=function(e){return x(e)===a},Hs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Hs.isForwardRef=function(e){return x(e)===d},Hs.isFragment=function(e){return x(e)===r},Hs.isLazy=function(e){return x(e)===h},Hs.isMemo=function(e){return x(e)===m},Hs.isPortal=function(e){return x(e)===n},Hs.isProfiler=function(e){return x(e)===o},Hs.isStrictMode=function(e){return x(e)===i},Hs.isSuspense=function(e){return x(e)===u},Hs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===f||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},Hs.typeOf=x}()),Hs);var Ss,Os,Ds,Rs,zs,Ns,Ts,Zs,Bs,Ps,_s,Gs,js=As.exports;
|
|
936
936
|
/*
|
|
937
937
|
object-assign
|
|
938
938
|
(c) Sindre Sorhus
|
|
939
939
|
@license MIT
|
|
940
|
-
*/function Fs(){if(Ss)return Os;Ss=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Os=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},Os}function Ys(){if(Rs)return Ds;Rs=1;return Ds="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ws(){return Ns?zs:(Ns=1,zs=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Xs=js;$s.exports=function(){if(Ps)return Bs;Ps=1;var e=js,t=Fs(),n=Ys(),r=Ws(),i=function(){if(Zs)return Ts;Zs=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Ys(),n={},r=Ws();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={})},Ts=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){}}),Bs=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:g(a),arrayOf:function(e){return g((function(t,r,i,o,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new h("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:g((function(e,t,n,r,i){var o=e[t];return l(o)?null:new h("Invalid "+r+" `"+i+"` of type `"+x(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(t,n,r,i,o){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||u;return new h("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:g((function(e,t,n,r,i){return v(e[t])?null:new h("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,i,o,a,l){if("function"!=typeof e)return new h("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=t[i],c=x(s);if("object"!==c)return new h("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)?g((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 h("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 g((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 h("Invalid "+a+" `"+l+"` supplied to `"+o+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,r,i,o,a){var l=t[r],s=x(l);if("object"!==s)return new h("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 g((function(i,o,a,l,s){var c=i[o],d=x(c);if("object"!==d)return new h("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 h("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=m(c,p,a,l,s+"."+p,n);if(g)return g}return null}))}};function m(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(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 g=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 g.name="Invariant Violation",g}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 h("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("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 g((function(t,n,r,i,o,a){var l=t[n];return x(l)!==e?new h("Invalid "+i+" `"+o+"` of type `"+y(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,t,n,r,i){return new h((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 h.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Bs}()(Xs.isElement,!0)}else $s.exports=function(){if(Gs)return _s;Gs=1;var e=Ys();function t(){}function n(){}return n.resetWarningCache=t,_s=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 Js=Ba($s.exports);function Us(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Qs=!1,qs="production"!==process.env.NODE_ENV?Js.oneOfType([Js.number,Js.shape({enter:Js.number,exit:Js.number,appear:Js.number}).isRequired]):null,Ks="production"!==process.env.NODE_ENV?Js.oneOfType([Js.string,Js.shape({enter:Js.string,exit:Js.string,active:Js.string}),Js.shape({enter:Js.string,enterDone:Js.string,enterActive:Js.string,exit:Js.string,exitDone:Js.string,exitActive:Js.string})]):null,ec=t.createContext(null),tc=function(e){return e.scrollTop},nc="unmounted",rc="exited",ic="entering",oc="entered",ac="exiting",lc=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=rc,r.appearStatus=ic):i=oc:i=t.unmountOnExit||t.mountOnEnter?nc:rc,r.state={status:i},r.nextCallback=null,r}ks(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===nc?{status:rc}: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!==ic&&n!==oc&&(t=ic):n!==ic&&n!==oc||(t=ac)}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===ic){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:I.findDOMNode(this);n&&tc(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rc&&this.setState({status:nc})},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||Qs?this.safeSetState({status:oc},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:ic},(function(){t.props.onEntering(o,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:oc},(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&&!Qs?(this.props.onExit(r),this.safeSetState({status:ac},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:rc},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:rc},(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===nc)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=Es(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(ec.Provider,{value:null},"function"==typeof r?r(e,i):t.cloneElement(t.Children.only(r),i))},n}(t.Component);function sc(){}lc.contextType=ec,lc.propTypes="production"!==process.env.NODE_ENV?{nodeRef:Js.shape({current:"undefined"==typeof Element?Js.any:function(e,t,n,r,i,o){var a=e[t];return Js.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:Js.oneOfType([Js.func.isRequired,Js.element.isRequired]).isRequired,in:Js.bool,mountOnEnter:Js.bool,unmountOnExit:Js.bool,appear:Js.bool,enter:Js.bool,exit:Js.bool,timeout:function(e){var t=qs;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:Js.func,onEnter:Js.func,onEntering:Js.func,onEntered:Js.func,onExit:Js.func,onExiting:Js.func,onExited:Js.func}:{},lc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:sc,onEntering:sc,onEntered:sc,onExit:sc,onExiting:sc,onExited:sc},lc.UNMOUNTED=nc,lc.EXITED=rc,lc.ENTERING=ic,lc.ENTERED=oc,lc.EXITING=ac;var cc=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}))},dc=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=Us(n.className,r):n.setAttribute("class",Us(n.className&&n.className.baseVal||"",r)));var n,r}))},uc=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}ks(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&&tc(e),r&&(this.appliedClasses[t][n]=r,cc(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&&dc(e,r),i&&dc(e,i),o&&dc(e,o)},r.render=function(){var e=this.props;e.classNames;var n=Es(e,["classNames"]);return t.createElement(lc,Cs({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(t.Component);function pc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mc(e,t){var n=Object.create(null);return e&&p.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&m(e)?t(e):e}(e)})),n}function hc(e,t,n){return null!=n[t]?n[t]:e.props[t]}function gc(e,t,n){var r=mc(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 a=i[o];if(m(a)){var l=o in t,s=o in r,c=t[o],d=m(c)&&!c.props.in;!s||l&&!d?s||!l||d?s&&l&&m(c)&&(i[o]=h(a,{onExited:n.bind(null,a),in:c.props.in,exit:hc(a,"exit",e),enter:hc(a,"enter",e)})):i[o]=h(a,{in:!1}):i[o]=h(a,{onExited:n.bind(null,a),in:!0,exit:hc(a,"exit",e),enter:hc(a,"enter",e)})}})),i}uc.defaultProps={classNames:""},uc.propTypes="production"!==process.env.NODE_ENV?Cs({},lc.propTypes,{classNames:Ks,onEnter:Js.func,onEntering:Js.func,onEntered:Js.func,onExit:Js.func,onExiting:Js.func,onExited:Js.func}):{};var fc,bc,vc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},xc=function(e){function n(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(pc(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}ks(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,mc(n.children,(function(e){return h(e,{onExited:r.bind(null,e),in:!0,appear:hc(e,"appear",n),enter:hc(e,"enter",n),exit:hc(e,"exit",n)})}))):gc(e,i,o),firstRender:!1}},r.handleExited=function(e,t){var n=mc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Cs({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,n=e.component,r=e.childFactory,i=Es(e,["component","childFactory"]),o=this.state.contextValue,a=vc(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===n?t.createElement(ec.Provider,{value:o},a):t.createElement(ec.Provider,{value:o},t.createElement(n,i,a))},n}(t.Component);xc.propTypes="production"!==process.env.NODE_ENV?{component:Js.any,children:Js.node,appear:Js.bool,enter:Js.bool,exit:Js.bool,childFactory:Js.func}:{},xc.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}ks(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=Es(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(xc,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:Js.bool.isRequired,children:function(e,n){return 2!==t.Children.count(e[n])?new Error('"'+n+'" must be exactly two transition components.'):null}}:{};var yc="out-in",wc="in-out",Cc=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},Ec=((fc={})[yc]=function(e){var n=e.current,r=e.changeState;return t.cloneElement(n,{in:!1,onExited:Cc(n,"onExited",(function(){r(ic,null)}))})},fc[wc]=function(e){var n=e.current,r=e.changeState,i=e.children;return[n,t.cloneElement(i,{in:!0,onEntered:Cc(i,"onEntered",(function(){r(ic)}))})]},fc),Ic=((bc={})[yc]=function(e){var n=e.children,r=e.changeState;return t.cloneElement(n,{in:!0,onEntered:Cc(n,"onEntered",(function(){r(oc,t.cloneElement(n,{in:!0}))}))})},bc[wc]=function(e){var n=e.current,r=e.children,i=e.changeState;return[t.cloneElement(n,{in:!1,onExited:Cc(n,"onExited",(function(){i(oc,t.cloneElement(r,{in:!0}))}))}),t.cloneElement(r,{in:!0})]},bc),kc=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:oc,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}ks(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===ic&&e.mode===wc?{status:ic}:!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:ac};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 ic:e=Ic[i](s);break;case ac:e=Ec[i](s);break;case oc:e=l}return t.createElement(ec.Provider,{value:{isMounting:!this.appeared}},e)},n}(t.Component);kc.propTypes="production"!==process.env.NODE_ENV?{mode:Js.oneOf([wc,yc]),children:Js.oneOfType([Js.element.isRequired])}:{},kc.defaultProps={mode:yc};const Mc=(e,t)=>{switch(typeof e){case"number":return e;case"object":return e[t]||0;default:return 0}},$c="fade-transition",Ac=v(uc)`
|
|
940
|
+
*/function Fs(){if(Os)return Ss;Os=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Ss=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},Ss}function Ys(){if(Rs)return Ds;Rs=1;return Ds="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ws(){return Ns?zs:(Ns=1,zs=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Xs=js;$s.exports=function(){if(Ps)return Bs;Ps=1;var e=js,t=Fs(),n=Ys(),r=Ws(),i=function(){if(Zs)return Ts;Zs=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Ys(),n={},r=Ws();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={})},Ts=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){}}),Bs=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:g(a),arrayOf:function(e){return g((function(t,r,i,o,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new h("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:g((function(e,t,n,r,i){var o=e[t];return l(o)?null:new h("Invalid "+r+" `"+i+"` of type `"+x(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(t,n,r,i,o){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||u;return new h("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:g((function(e,t,n,r,i){return v(e[t])?null:new h("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,i,o,a,l){if("function"!=typeof e)return new h("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=t[i],c=x(s);if("object"!==c)return new h("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)?g((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 h("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 g((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 h("Invalid "+a+" `"+l+"` supplied to `"+o+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,r,i,o,a){var l=t[r],s=x(l);if("object"!==s)return new h("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 g((function(i,o,a,l,s){var c=i[o],d=x(c);if("object"!==d)return new h("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 h("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=m(c,p,a,l,s+"."+p,n);if(g)return g}return null}))}};function m(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(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 g=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 g.name="Invariant Violation",g}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 h("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("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 g((function(t,n,r,i,o,a){var l=t[n];return x(l)!==e?new h("Invalid "+i+" `"+o+"` of type `"+y(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,t,n,r,i){return new h((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 h.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Bs}()(Xs.isElement,!0)}else $s.exports=function(){if(Gs)return _s;Gs=1;var e=Ys();function t(){}function n(){}return n.resetWarningCache=t,_s=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 Js=Ba($s.exports);function Us(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Qs=!1,qs="production"!==process.env.NODE_ENV?Js.oneOfType([Js.number,Js.shape({enter:Js.number,exit:Js.number,appear:Js.number}).isRequired]):null,Ks="production"!==process.env.NODE_ENV?Js.oneOfType([Js.string,Js.shape({enter:Js.string,exit:Js.string,active:Js.string}),Js.shape({enter:Js.string,enterDone:Js.string,enterActive:Js.string,exit:Js.string,exitDone:Js.string,exitActive:Js.string})]):null,ec=t.createContext(null),tc=function(e){return e.scrollTop},nc="unmounted",rc="exited",ic="entering",oc="entered",ac="exiting",lc=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=rc,r.appearStatus=ic):i=oc:i=t.unmountOnExit||t.mountOnEnter?nc:rc,r.state={status:i},r.nextCallback=null,r}ks(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===nc?{status:rc}: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!==ic&&n!==oc&&(t=ic):n!==ic&&n!==oc||(t=ac)}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===ic){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:I.findDOMNode(this);n&&tc(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rc&&this.setState({status:nc})},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||Qs?this.safeSetState({status:oc},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:ic},(function(){t.props.onEntering(o,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:oc},(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&&!Qs?(this.props.onExit(r),this.safeSetState({status:ac},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:rc},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:rc},(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===nc)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=Es(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(ec.Provider,{value:null},"function"==typeof r?r(e,i):t.cloneElement(t.Children.only(r),i))},n}(t.Component);function sc(){}lc.contextType=ec,lc.propTypes="production"!==process.env.NODE_ENV?{nodeRef:Js.shape({current:"undefined"==typeof Element?Js.any:function(e,t,n,r,i,o){var a=e[t];return Js.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:Js.oneOfType([Js.func.isRequired,Js.element.isRequired]).isRequired,in:Js.bool,mountOnEnter:Js.bool,unmountOnExit:Js.bool,appear:Js.bool,enter:Js.bool,exit:Js.bool,timeout:function(e){var t=qs;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:Js.func,onEnter:Js.func,onEntering:Js.func,onEntered:Js.func,onExit:Js.func,onExiting:Js.func,onExited:Js.func}:{},lc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:sc,onEntering:sc,onEntered:sc,onExit:sc,onExiting:sc,onExited:sc},lc.UNMOUNTED=nc,lc.EXITED=rc,lc.ENTERING=ic,lc.ENTERED=oc,lc.EXITING=ac;var cc=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}))},dc=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=Us(n.className,r):n.setAttribute("class",Us(n.className&&n.className.baseVal||"",r)));var n,r}))},uc=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}ks(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&&tc(e),r&&(this.appliedClasses[t][n]=r,cc(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&&dc(e,r),i&&dc(e,i),o&&dc(e,o)},r.render=function(){var e=this.props;e.classNames;var n=Es(e,["classNames"]);return t.createElement(lc,Cs({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(t.Component);function pc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mc(e,t){var n=Object.create(null);return e&&p.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&m(e)?t(e):e}(e)})),n}function hc(e,t,n){return null!=n[t]?n[t]:e.props[t]}function gc(e,t,n){var r=mc(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 a=i[o];if(m(a)){var l=o in t,s=o in r,c=t[o],d=m(c)&&!c.props.in;!s||l&&!d?s||!l||d?s&&l&&m(c)&&(i[o]=h(a,{onExited:n.bind(null,a),in:c.props.in,exit:hc(a,"exit",e),enter:hc(a,"enter",e)})):i[o]=h(a,{in:!1}):i[o]=h(a,{onExited:n.bind(null,a),in:!0,exit:hc(a,"exit",e),enter:hc(a,"enter",e)})}})),i}uc.defaultProps={classNames:""},uc.propTypes="production"!==process.env.NODE_ENV?Cs({},lc.propTypes,{classNames:Ks,onEnter:Js.func,onEntering:Js.func,onEntered:Js.func,onExit:Js.func,onExiting:Js.func,onExited:Js.func}):{};var fc,bc,vc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},xc=function(e){function n(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(pc(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}ks(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,mc(n.children,(function(e){return h(e,{onExited:r.bind(null,e),in:!0,appear:hc(e,"appear",n),enter:hc(e,"enter",n),exit:hc(e,"exit",n)})}))):gc(e,i,o),firstRender:!1}},r.handleExited=function(e,t){var n=mc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Cs({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,n=e.component,r=e.childFactory,i=Es(e,["component","childFactory"]),o=this.state.contextValue,a=vc(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===n?t.createElement(ec.Provider,{value:o},a):t.createElement(ec.Provider,{value:o},t.createElement(n,i,a))},n}(t.Component);xc.propTypes="production"!==process.env.NODE_ENV?{component:Js.any,children:Js.node,appear:Js.bool,enter:Js.bool,exit:Js.bool,childFactory:Js.func}:{},xc.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}ks(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=Es(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(xc,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:Js.bool.isRequired,children:function(e,n){return 2!==t.Children.count(e[n])?new Error('"'+n+'" must be exactly two transition components.'):null}}:{};var yc="out-in",wc="in-out",Cc=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},Ec=((fc={})[yc]=function(e){var n=e.current,r=e.changeState;return t.cloneElement(n,{in:!1,onExited:Cc(n,"onExited",(function(){r(ic,null)}))})},fc[wc]=function(e){var n=e.current,r=e.changeState,i=e.children;return[n,t.cloneElement(i,{in:!0,onEntered:Cc(i,"onEntered",(function(){r(ic)}))})]},fc),Ic=((bc={})[yc]=function(e){var n=e.children,r=e.changeState;return t.cloneElement(n,{in:!0,onEntered:Cc(n,"onEntered",(function(){r(oc,t.cloneElement(n,{in:!0}))}))})},bc[wc]=function(e){var n=e.current,r=e.children,i=e.changeState;return[t.cloneElement(n,{in:!1,onExited:Cc(n,"onExited",(function(){i(oc,t.cloneElement(r,{in:!0}))}))}),t.cloneElement(r,{in:!0})]},bc),kc=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:oc,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}ks(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===ic&&e.mode===wc?{status:ic}:!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:ac};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 ic:e=Ic[i](s);break;case ac:e=Ec[i](s);break;case oc:e=l}return t.createElement(ec.Provider,{value:{isMounting:!this.appeared}},e)},n}(t.Component);kc.propTypes="production"!==process.env.NODE_ENV?{mode:Js.oneOf([wc,yc]),children:Js.oneOfType([Js.element.isRequired])}:{},kc.defaultProps={mode:yc};const Mc=(e,t)=>{switch(typeof e){case"number":return e;case"object":return e[t]||0;default:return 0}},$c="fade-transition",Ac=v(uc)`
|
|
941
941
|
&.${$c}-enter, &.${$c}-appear {
|
|
942
942
|
opacity: 0;
|
|
943
943
|
}
|
|
@@ -959,7 +959,7 @@ object-assign
|
|
|
959
959
|
&.${$c}-exit-done {
|
|
960
960
|
opacity: 0;
|
|
961
961
|
}
|
|
962
|
-
`,Lc=t=>{var{timeout:n=300,children:r,wrapperStyle:i}=t,o=D(t,["timeout","children","wrapperStyle"]);const a=e.useRef(null);return e.createElement(Ac,Object.assign({nodeRef:a,appear:!0,mountOnEnter:!0,timeout:n,classNames:$c},o),e.createElement("div",{ref:a,style:i},r))};function Vc(...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 Hc=["auto","auto-start","auto-end"],
|
|
962
|
+
`,Lc=t=>{var{timeout:n=300,children:r,wrapperStyle:i}=t,o=D(t,["timeout","children","wrapperStyle"]);const a=e.useRef(null);return e.createElement(Ac,Object.assign({nodeRef:a,appear:!0,mountOnEnter:!0,timeout:n,classNames:$c},o),e.createElement("div",{ref:a,style:i},r))};function Vc(...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 Hc=["auto","auto-start","auto-end"],Sc=e=>({placements:l((()=>e.filter((e=>!Hc.includes(e)))),[e]),isAuto:l((()=>e.some((e=>Hc.includes(e)))),[e])}),Oc=e.forwardRef((function(t,n){var{content:r,open:i=!1,disableHoverListener:o=!1,enterDelay:a=0,leaveDelay:l=0,positionPriority:s=["top"],offset:c=[0,10],width:d,disabled:u=!1,fadeProps:p,children:m}=t,h=D(t,["content","open","disableHoverListener","enterDelay","leaveDelay","positionPriority","offset","width","disabled","fadeProps","children"]);const{placements:g,isAuto:f}=Sc(s),b=e.useRef(null),[v,x]=e.useState(!1),y=ne(),{x:w,y:C,placement:E,refs:I,strategy:k,context:M}=ho({placement:g[0],open:v,onOpenChange:x,middleware:[s.length>0&&!f?mr({fallbackPlacements:g}):pr(),hr({mainAxis:c[1],crossAxis:c[0]}),gr({mainAxis:!1}),Sr({element:b})],whileElementsMounted:Vr}),$=Di(M,{enabled:!o,move:!1,mouseOnly:!0,delay:{open:a,close:l}}),A=Eo(M,{role:"tooltip"}),{getReferenceProps:L,getFloatingProps:V}=fo([$,A]),H=Object.assign(Object.assign(Object.assign({},m.props),L()),{ref:Vc(I.setReference,m.ref)}),S=Vc(n,I.setFloating);return e.createElement(e.Fragment,null,e.cloneElement(m,H),!u&&e.createElement(zi,{delay:{open:1e4,close:200}},e.createElement(no,null,e.createElement(Lc,Object.assign({in:v||i,unmountOnExit:!0,mountOnEnter:!0,wrapperStyle:{position:"relative",zIndex:y.depth.tooltip}},p),e.createElement(ws,Object.assign({ref:S,style:{position:k,top:C,left:w,zIndex:y.depth.tooltip}},h,V(),{width:d}),r,e.createElement(Ci,{ref:b,fill:y.palette.black,context:M,width:6,height:4,staticOffset:["top-start","top-end","bottom-start","bottom-end"].includes(E)?"10%":["bottom-start","bottom-end","left-start","left-end"].includes(E)?"30%":void 0}))))))})),Dc={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"}},Rc=v.div`
|
|
963
963
|
display: flex;
|
|
964
964
|
flex-direction: column;
|
|
965
965
|
width: 100%;
|
|
@@ -1168,9 +1168,9 @@ object-assign
|
|
|
1168
1168
|
color: ${({theme:e})=>e.palette.black};
|
|
1169
1169
|
cursor: pointer;
|
|
1170
1170
|
z-index: 1;
|
|
1171
|
-
`,Qc=e=>{var{value:n,multiple:r=!1,disabled:s=!1,placeholder:c="選択してください",size:u="medium",variant:h="light",tagVariant:g,tagOverflow:f="truncate",showBulkActions:b=!1,selectAllLabel:v="すべて選択",clearAllLabel:x="すべてクリア",searchable:y=!1,searchPlaceholder:w="検索",noResultsMessage:C="見つかりませんでした",showOptionsOnlyWhenSearching:E=!1,searchPromptMessage:I="キーワードを入力してください",error:k=!1,applyButtonText:M="適用",cancelButtonText:$="キャンセル",children:A,onChange:L,onTempChange:V,width:H,minWidth:
|
|
1171
|
+
`,Qc=e=>{var{value:n,multiple:r=!1,disabled:s=!1,placeholder:c="選択してください",size:u="medium",variant:h="light",tagVariant:g,tagOverflow:f="truncate",showBulkActions:b=!1,selectAllLabel:v="すべて選択",clearAllLabel:x="すべてクリア",searchable:y=!1,searchPlaceholder:w="検索",noResultsMessage:C="見つかりませんでした",showOptionsOnlyWhenSearching:E=!1,searchPromptMessage:I="キーワードを入力してください",error:k=!1,applyButtonText:M="適用",cancelButtonText:$="キャンセル",children:A,onChange:L,onTempChange:V,width:H,minWidth:S,placement:O,middleware:R}=e,z=D(e,["value","multiple","disabled","placeholder","size","variant","tagVariant","tagOverflow","showBulkActions","selectAllLabel","clearAllLabel","searchable","searchPlaceholder","noResultsMessage","showOptionsOnlyWhenSearching","searchPromptMessage","error","applyButtonText","cancelButtonText","children","onChange","onTempChange","width","minWidth","placement","middleware"]);const[N,T]=i(!1),[Z,B]=i(""),[P,_]=i([]),[G,j]=i(!1),F=o(null),Y=l((()=>g||("light"===h?"dark":"light")),[h,g]),W=l((()=>r?Array.isArray(n)?n:[]:void 0!==n?[n]:[]),[n,r]),X=l((()=>{if(!A)return[];const e=[],t=n=>{p.forEach(n,(n=>{if(!m(n))return;const r=n;if(r.type&&"string"!=typeof r.type){const n=r.type.displayName||r.type.name;if("Select2Option"===n){const t=r.props.value,n=r.props.children,i=!!r.props.disabled,o=r.props.prepend,a=r.props.append;void 0!==t&&e.push({value:t,label:String(n),disabled:i,prepend:o,append:a})}else"Select2OptionGroup"===n&&r.props.children&&t(r.props.children)}}))};return t(A),e}),[A]),J=d((e=>{null==L||L(e)}),[L]),U=d((e=>{s||(T(e),e&&r&&_([...W]),e||B(""))}),[s,r,W]),Q=d((e=>{e.disabled||(J(e.value),T(!1),B(""))}),[J]),q=d(((e,t)=>{t.disabled||_((n=>e?[...n,t.value]:n.filter((e=>e!==t.value))))}),[]),K=d((()=>{r&&J(P),T(!1),B("")}),[J,r,P]),ee=d((()=>{T(!1),B("")}),[]),te=d((e=>{if(r&&Array.isArray(n)){const t=n.filter((t=>t!==e));J(t)}}),[r,n,J]),ne=d((e=>{B(e.target.value)}),[]),re=d((e=>{e.stopPropagation(),B("")}),[]),ie=d((()=>{s||U(!N)}),[s,U,N]),oe=l((()=>X.find((e=>e.value===n))),[X,n]),ae=l((()=>r&&Array.isArray(n)?X.filter((e=>n.includes(e.value))):[]),[r,X,n]),se=E&&y&&""===Z.trim(),ce=l((()=>new Set(r?[...W,...P]:W)),[r,W,P]),de=l((()=>{if(!y||!Z)return X;const e=Z.trim();if(!e)return X;const t=e.includes(","),n=e.startsWith('"')&&e.endsWith('"'),r=ys(e);return X.filter((i=>{const o=i.label.toLowerCase();return n?r.some((e=>o===e.toLowerCase())):t?r.some((e=>o.includes(e.toLowerCase()))):o.includes(e.toLowerCase())}))}),[X,Z,y]),ue=l((()=>X.filter((e=>ce.has(e.value)))),[X,ce]),pe=se?ue:de,me=d((()=>{const e=pe.filter((e=>!e.disabled)).map((e=>e.value));_((t=>[...new Set([...t,...e])]))}),[pe]),he=d((()=>{_([])}),[]),ge=d((()=>{F.current&&"wrap"!==f&&j(F.current.scrollWidth>F.current.clientWidth)}),[f]);a((()=>{if(!window.ResizeObserver)return;if(!F.current)return;ge();const e=new window.ResizeObserver((()=>{F.current&&ge()}));return e.observe(F.current),()=>{e.disconnect()}}),[ge,ae,f]),a((()=>{r&&Array.isArray(n)&&_(n)}),[r,n]),a((()=>{r&&"function"==typeof V&&V(P)}),[r,P]);const fe=l((()=>b&&r?t.createElement(Jc,null,t.createElement(Oc,{content:v,positionPriority:["top"],offset:[0,8],disabled:0===pe.length},t.createElement(cl,{icon:t.createElement(le,{name:"check_thin",color:"currentColor"}),size:"small",color:"secondaryDark",disabled:0===pe.length,onClick:me})),t.createElement(Oc,{content:x,positionPriority:["top"],offset:[0,8],disabled:0===pe.length},t.createElement(cl,{icon:t.createElement(le,{name:"close",color:"currentColor"}),size:"small",color:"secondaryDark",disabled:0===pe.length,onClick:he}))):null),[b,r,v,x,pe,me,he]),be=l((()=>y&&b&&r?t.createElement(Wc,null,t.createElement(Xc,null,t.createElement(Yc,{autoFocus:!0,placeholder:w,value:Z,onChange:ne}),Z&&t.createElement(Uc,{type:"button","aria-label":"検索をリセット",onClick:re},t.createElement(le,{name:"close_circle",type:"fill",color:"currentColor"}))),fe):y?t.createElement(Wc,null,t.createElement(Xc,null,t.createElement(Yc,{autoFocus:!0,placeholder:w,value:Z,onChange:ne}),Z&&t.createElement(Uc,{type:"button","aria-label":"検索をリセット",onClick:re},t.createElement(le,{name:"close_circle",type:"fill",color:"currentColor"})))):b&&r?fe:null),[y,b,r,Z,w,ne,re,fe]),ve=l((()=>r?t.createElement(Za,null,t.createElement(cl,{color:"clear",size:"small",onClick:ee},$),t.createElement(cl,{color:"primary",size:"small",onClick:K},M)):null),[r,K,ee,M,$]),xe=z,ye="string"==typeof xe["aria-label"]||"string"==typeof xe["aria-labelledby"],we=t.createElement(Nc,Object.assign({$disabled:s,$error:k,$hasValue:r?Array.isArray(n)&&n.length>0:!!oe,$isOpen:N,$multiple:r,$size:u,$variant:h,"aria-expanded":N,"aria-invalid":k,"aria-label":ye?void 0:c,disabled:s,role:"combobox",type:"button"},z),r&&Array.isArray(n)&&0===n.length?t.createElement(jc,{$disabled:s,$variant:h},c):!r&&t.createElement(Zc,null,oe?t.createElement(t.Fragment,null,oe.prepend&&t.createElement(Pc,{$size:u,$disabled:s},t.isValidElement(oe.prepend)&&oe.prepend.type===le?t.cloneElement(oe.prepend,{size:parseInt(Dc[u].iconSize,10),color:oe.prepend.props.color||"currentColor"}):oe.prepend),t.createElement(Bc,null,oe.label)):t.createElement(jc,{$disabled:s,$variant:h},c)),t.createElement(Fc,{$disabled:s,$size:u,$multiple:r},t.createElement(le,{name:"arrow_down",color:"currentColor"})));return t.createElement(Rc,null,t.createElement(zc,{$disabled:s,$error:k,$isOpen:N,$size:u,$variant:h,$tagOverflow:f,"data-disabled":s,"data-overflowing":"wrap"!==f&&G,style:{cursor:r||s?"default":"pointer"}},t.createElement(Da,null,t.createElement(Oa,{noResultsMessage:y?C:void 0,open:N,stickyFooter:ve,stickyHeader:be,trigger:we,width:H,minWidth:S,placement:O,middleware:R,onOpenChange:U},(()=>{if(se&&0===pe.length)return t.createElement(Ca,{message:I});const e=se||y&&!!Z?new Set(pe.map((e=>e.value))):void 0;if(A){const i=((e,i)=>{const o=[];let a=null;const l=(e,o,a)=>{const l=e.props.value,s=!!e.props.disabled,c=e.props.children,d=e.props.prepend,u=e.props.append;if(i&&!i.has(l))return null;const p=r?P.includes(l):l===n;return t.createElement(Ro,{key:`${o}-${a}`,checked:p,closeOnChange:!r,disabled:s,tabIndex:0,prepend:d,append:u,onChange:()=>{r?q(!p,{value:l,label:String(c),disabled:s,prepend:d,append:u}):Q({value:l,label:String(c),disabled:s,prepend:d,append:u})}},c)},s=()=>{if(null===a)return;const e=a,n=e.options.map(((t,n)=>l(t,`option-${e.label}`,n))).filter(Boolean);0!==n.length&&(o.push(t.createElement(Ra,{key:`heading-${e.label}`},e.label)),o.push(...n))};return p.forEach(e,(e=>{if(!m(e))return;const n=e;if(n.type&&"string"!=typeof n.type){const e=n.type.displayName||n.type.name;if("Select2OptionGroup"===e)null!==a&&s(),a={label:n.props.label,options:[]},n.props.children&&p.forEach(n.props.children,(e=>{if(m(e)){const t=e;"Select2Option"===(t.type.displayName||t.type.name)&&null!==a&&a.options.push(t)}}));else if("Select2Separator"===e)o.length>0&&o.push(t.createElement(Ta,{key:`separator-${o.length}`}));else if("Select2Option"===e)if(null!==a)a.options.push(n);else{const e=n.props.value;if(i&&!i.has(e))return;o.push(l(n,"option",o.length))}else o.push(n)}})),null!==a&&s(),o})(A,e);return 0===i.length?t.createElement(Ca,{message:C}):i}return pe.length>0?pe.map((e=>{const i=r?P.includes(e.value):e.value===n;return t.createElement(Ro,{key:e.value.toString(),checked:i,closeOnChange:!r,disabled:e.disabled,tabIndex:0,prepend:e.prepend,append:e.append,onChange:()=>{r?q(!i,e):Q(e)}},e.label)})):t.createElement(Ca,{message:C})})())),r&&t.createElement(Tc,{$tagOverflow:f},t.createElement(_c,{ref:F,$tagOverflow:f,"data-testid":"tag-container",onClick:ie},ae.map((e=>{const n=s?void 0:()=>te(e.value);return t.createElement(Gc,{key:e.value.toString(),disabled:s,label:e.label,size:u,variant:Y,onRemove:n})}))))))},qc=e=>null;qc.displayName="Select2Option";const Kc=e=>null;Kc.displayName="Select2OptionGroup";const ed=()=>null;ed.displayName="Select2Separator";const td=v(ke)`
|
|
1172
1172
|
${W}
|
|
1173
|
-
`,nd=e.forwardRef((function({children:t,size:n="md"},r){const i=ne();return e.createElement(de,{ref:r,display:"flex",alignItems:"center"},e.createElement(Ua,{pr:.5},e.createElement(le,{name:"alert",type:"fill",color:i.palette.danger.base,size:"sm"===n?"sm-md":n})),e.createElement(td,{color:i.palette.danger.base,size:n},t))})),rd=e=>{const{inputType:t,selectedValues:n,selectedRadioValue:r,startDate:i,endDate:o,value:a,isRangeOperator:l}=e;return"checkbox"===t?n:"radio"===t?[r]:l?[i,o]:[a]},id=(e,t)=>{const n=xt(e).find((e=>e.value===t));return(null==n?void 0:n.label)||t},od=e=>{const{conditionConfig:t,inputType:n,operator:r,values:i,dateFormat:o}=e;return i.map((e=>{if("checkbox"===n||"radio"===n){const n=((e,t)=>{if(t){const n=e.operators.find((e=>e.value===t));if(null==n?void 0:n.options)return n.options}return e.options||[]})(t,r).find((t=>t.value===e));return(null==n?void 0:n.label)||String(e)}if("date"===n&&o){const t=String(e);if(!t||""===t.trim())return t;const n=_a(t,"YYYY-MM-DD");return n.isValid()?n.format(o):t}return String(e)}))},ad=e=>{const{inputType:t,operator:n,selectedValues:r,selectedRadioValue:i,startDate:o,endDate:a,value:l,isRangeOperator:s,customValidation:c}=e;if("checkbox"===t){if(0===r.length)return{isValid:!1,errorMessage:"少なくとも1つの項目を選択してください"}}else if("radio"===t){if(""===i||null==i)return{isValid:!1,errorMessage:"項目を選択してください"}}else if(s){if(!o||!a)return{isValid:!1,errorMessage:"開始日と終了日の両方を選択してください"}}else if(!l||""===l.trim())return{isValid:!1,errorMessage:"date"===t?"日付を選択してください":"値を入力してください"};if(c){let e;return e="checkbox"===t?r:"radio"===t?[i]:s?[o,a]:[l],c(e,n)}return s&&new Date(o)>new Date(a)?{isValid:!1,errorMessage:"開始日は終了日より前である必要があります"}:{isValid:!0,errorMessage:""}},ld=e=>{const{inputType:t,selectedValues:n,selectedRadioValue:r,startDate:i,endDate:o,value:a,isRangeOperator:l}=e;return"checkbox"===t?n.length>0:"radio"===t?""!==r&&null!=r:l?!(!i||!o):!(!a||""===a.trim())},sd=e=>!1!==e.required,cd=(e,t)=>{const n=ft(t,e.conditionKey);return n?{condition:e,conditionConfig:n}:null},dd=e=>{const{condition:t,conditionConfig:n}=e,r=yt(n,t.operator),i=wt(n,t.operator);return ld({inputType:r,selectedValues:t.selectedValues,selectedRadioValue:t.selectedRadioValue,startDate:t.startDate,endDate:t.endDate,value:t.value,isRangeOperator:i})},ud=e=>{const{condition:t,conditionConfig:n}=e,r=yt(n,t.operator),i=wt(n,t.operator);return ad({inputType:r,operator:t.operator,selectedValues:t.selectedValues,selectedRadioValue:t.selectedRadioValue,startDate:t.startDate,endDate:t.endDate,value:t.value,isRangeOperator:i,customValidation:n.customValidation})},pd=({option:e})=>{var n;return e.icon?t.createElement(le,{name:e.icon,type:null!==(n=e.iconType)&&void 0!==n?n:"line",color:e.iconColor}):null};pd.displayName="OptionValueIcon";const md=({options:e,selectedValues:n,onValueToggle:r,disabled:i=!1})=>t.createElement(_t,null,e.map((e=>t.createElement(Ro,{key:String(e.value),checked:n.includes(e.value),disabled:i,prepend:e.icon?t.createElement(pd,{option:e}):void 0,onChange:t=>r(e.value,t)},e.label))));md.displayName="CheckboxValueInput";const hd=({options:e,selectedRadioValue:n,onRadioChange:r,disabled:i=!1})=>t.createElement(_t,null,e.map((e=>t.createElement(Ro,{key:String(e.value),checked:n===e.value,disabled:i,prepend:e.icon?t.createElement(pd,{option:e}):void 0,onChange:t=>{i||t&&r(e.value)}},e.label))));hd.displayName="RadioValueInput";const gd=640,fd=["日","月","火","水","木","金","土"],bd={components:{ConfirmModal:{defaultProps:{confirmText:"確認",cancelText:"キャンセル"}},FullSizeConfirmModal:{defaultProps:{confirmText:"確認",cancelText:"キャンセル"}},FileUploader:{defaultProps:{title:"ファイルをドラッグ&ドロップ、またはここをクリック"}},ItemEmpty:{defaultProps:{title:"見つかりませんでした。"}},Select:{defaultProps:{placeholder:"選択...",emptyMessage:"見つかりません"}},CreatableSelect:{defaultProps:{placeholder:"選択...",emptyMessage:"見つかりません",addMessage:"次の文字列を追加する"}},MultipleFilter:{defaultProps:{placeholder:"新しいフィルターを追加してください"}},FilterCard:{defaultProps:{applyButtonTitle:"適用",inputErrorText:"入力してください",formPlaceholder:"検索",sectionTitle:"セクション"}},EditFilterCard:{defaultProps:{}},DatePicker:{defaultProps:{monthFormat:"YYYY年MM月",weekConfig:{start:0,labels:[...fd]}}},DateRangePicker:{defaultProps:{monthFormat:"YYYY年MM月",weekConfig:{start:0,labels:[...fd]},applyButtonText:"適用",cancelButtonText:"キャンセル"}},WeekTime:{defaultProps:{weekList:["月","火","水","木","金","土","日"]}},WeekTimeSelector:{defaultProps:{weekList:["月","火","水","木","金","土","日"]}},DualListBox:{defaultProps:{selectedItemTitle:"個選択済み"}}}},vd={components:{ConfirmModal:{defaultProps:{confirmText:"确认",cancelText:"取消"}},FullSizeConfirmModal:{defaultProps:{confirmText:"确认",cancelText:"取消"}},FileUploader:{defaultProps:{title:"把文件拖入, 同样支持点击上传。"}},ItemEmpty:{defaultProps:{title:"未找到。"}}}},xd={components:{DatePicker:{defaultProps:{monthFormat:"MMM YYYY",weekConfig:{start:0,labels:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}}},DateRangePicker:{defaultProps:{monthFormat:"MMM YYYY",weekConfig:{start:0,labels:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},applyButtonText:"Apply",cancelButtonText:"Cancel"}},WeekTime:{defaultProps:{weekList:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},WeekTimeSelector:{defaultProps:{weekList:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},DualListBox:{defaultProps:{selectedItemTitle:"selected"}}}},yd=e.createContext({locale:xd}),wd=({locale:t,children:n})=>e.createElement(yd.Provider,{value:{locale:t}},n);function Cd(e){var n,r;const{name:i,props:o}=e,a=t.useContext(yd).locale,l=Object.assign({},o);if(!a||!a.components)return l;const s=null===(r=null===(n=a.components)||void 0===n?void 0:n[i])||void 0===r?void 0:r.defaultProps;for(const e in s)void 0===l[e]&&(l[e]=s[e]);return l}const Ed=n((function(e,n){const r=Cd({props:e,name:"DatePicker"}),{date:o,format:a="YYYY-MM-DD",disabled:s=!1,size:c="medium",variant:u="light",width:p,monthFormat:m,weekConfig:h,showDateFields:g=!1,showTimeFields:f=!1,timeFieldProps:b,useCalendarRange:v=!1,isOutsideRange:x,error:y=!1,errorText:w,defaultPresetButton:C,presetButtons:E,onPresetButtonClick:I,onDateChange:k,onDatesChange:M,endDate:$}=r,A=ne(),[L,V]=i(!1),{context:H,refs:O,strategy:S,x:D,y:R}=ho({placement:"bottom-start",open:L,onOpenChange:V,middleware:[hr(10),mr(),gr({padding:8})]}),z=po(H),N=Eo(H),{getReferenceProps:T,getFloatingProps:Z}=fo([z,N]),B=d((()=>{s||V((e=>!e))}),[s]),P=d((e=>{k(e),V(!1)}),[k]),_=l((()=>t.createElement(le,{name:"date_range",color:s?A.palette.neutral.base:A.palette.text.accent})),[s,A]),G=l((()=>"100%"===p||"string"==typeof p&&p.includes("100%")?{width:"100%"}:{width:"fit-content"}),[p]);return t.createElement(de,{ref:n,style:G},t.createElement("div",Object.assign({ref:O.setReference},T()),t.createElement(lE,{date:o,format:a,error:y,errorText:w,disabled:s,size:c,variant:u,width:p,append:_,onDateChange:k,onAppendClick:B})),L&&t.createElement(no,null,t.createElement(oo,{context:H,modal:!1,initialFocus:-1,returnFocus:!1},v?t.createElement(am,Object.assign({ref:O.setFloating,startDate:o,endDate:$||o,monthFormat:m,weekConfig:h,defaultPresetButton:C,presetButtons:E,showDateFields:g,showTimeFields:f,timeFieldProps:b,dateFieldFormat:a,isOutsideRange:x,style:{position:S,top:null!=R?R:0,left:null!=D?D:0,zIndex:A.depth.calendarRange,overflow:"hidden",maxWidth:"min(640px, calc(100vw - 16px))"},onPresetButtonClick:I,onDatesChange:M},Z())):t.createElement(Tp,Object.assign({ref:O.setFloating,date:o,monthFormat:m,weekConfig:h,defaultPresetButton:C,presetButtons:E,showDateFields:g,showTimeFields:f,timeFieldProps:b,dateFieldFormat:a,isOutsideRange:x,style:{position:S,top:null!=R?R:0,left:null!=D?D:0,zIndex:A.depth.calendar,overflow:"hidden",maxWidth:"min(640px, calc(100vw - 16px))"},onPresetButtonClick:I,onDateChange:P},Z())))))}));var Id=g(Ed);const kd=({startDate:e,endDate:n,onStartDateChange:r,onEndDateChange:i,format:o="YYYY-MM-DD",disabled:a=!1})=>{const s=l((()=>{if(e&&""!==e.trim()){const t=_a(e,"YYYY-MM-DD");return t.isValid()?t:_a()}return _a()}),[e]),c=l((()=>{if(n&&""!==n.trim()){const e=_a(n,"YYYY-MM-DD");return e.isValid()?e:_a()}return _a()}),[n]);return t.createElement(zt,null,t.createElement(Tt,null,t.createElement(Pt,{htmlFor:"start-date-picker"},"開始日"),t.createElement(Id,{date:s,format:o,variant:"dark",width:"100%",disabled:a,onDateChange:e=>{r(e.format("YYYY-MM-DD"))}})),t.createElement(Tt,null,t.createElement(Pt,{htmlFor:"end-date-picker"},"終了日"),t.createElement(Id,{date:c,format:o,variant:"dark",width:"100%",disabled:a,onDateChange:e=>{i(e.format("YYYY-MM-DD"))}})))};kd.displayName="DateRangeInput";const Md=({inputType:e,value:n,placeholder:r,onValueChange:i,onKeyDown:o,format:a="YYYY-MM-DD",inputRef:s,disabled:c=!1})=>{const d=l((()=>{if("date"===e&&n&&""!==n.trim()){const e=_a(n,"YYYY-MM-DD");return e.isValid()?e:_a()}return _a()}),[e,n]),u=e=>{const t=e.format("YYYY-MM-DD");i(t)};return"date"===e?t.createElement(Bt,null,t.createElement(Id,{date:d,format:a,variant:"dark",width:"100%",disabled:c,onDateChange:u})):t.createElement(Zt,null,t.createElement(va,{ref:s,type:"text",value:n,placeholder:r,fullWidth:!0,variant:"dark",disabled:c,onChange:e=>i(e.target.value),onKeyDown:o}))};Md.displayName="TextValueInput";const $d=({filterConfig:e,operator:n,value:r,selectedValues:i,selectedRadioValue:o,startDate:a,endDate:l,onValueChange:s,onValueToggle:c,onRadioChange:d,onStartDateChange:u,onEndDateChange:p,onKeyDown:m,isRangeOperator:h,textInputRef:g,disabled:f=!1})=>{const b=nt(e,n);return"checkbox"===b?t.createElement(md,{options:it(e,n),selectedValues:i,disabled:f,onValueToggle:c}):"radio"===b?t.createElement(hd,{options:it(e,n),selectedRadioValue:o,disabled:f,onRadioChange:d}):h(n)?t.createElement(kd,{startDate:a,endDate:l,format:ot(e),disabled:f,onStartDateChange:u,onEndDateChange:p}):t.createElement(Md,{inputType:b,inputRef:"text"===b?g:void 0,value:r,placeholder:rt(e),format:"date"===b?ot(e):void 0,disabled:f,onValueChange:s,onKeyDown:m})};$d.displayName="ConfigPanelValueInput";const Ad=(e,t,n)=>{if(!t)return((e,t)=>{const n=vt(e),r=yt(e,n);let i="",o="",a="";return wt(e,n)?(o=t,a=t):"date"===r&&(i=t),{id:`condition_${e.conditionKey}`,conditionKey:e.conditionKey,conditionLabel:e.conditionLabel,operator:n,value:i,selectedValues:[],selectedRadioValue:"",startDate:o,endDate:a}})(e,n);let r="",i=[],o="",a="",l="";if((t.isRange||!1)&&t.values.length>=2)a="string"==typeof t.values[0]?t.values[0]:"",l="string"==typeof t.values[1]?t.values[1]:"";else if(t.values.length>0){const e=t.values[0];"string"==typeof e&&(r=e),i=t.values,o=e}return{id:`condition_${e.conditionKey}`,conditionKey:t.conditionKey,conditionLabel:t.conditionLabel,operator:t.operator,value:r,selectedValues:i,selectedRadioValue:o,startDate:a,endDate:l}},Ld={xs:{iconSize:12,height:"18px",pillHeight:"18px",gap:"2px",padding:e=>.5*e.spacing+"px",signalPaddingLeft:"2px",signalPaddingRight:"4px",dotSize:12,fontSize:"11px"},small:{iconSize:14,height:"22px",pillHeight:"20px",gap:"2px",padding:e=>.75*e.spacing+"px",signalPaddingLeft:"4px",signalPaddingRight:"6px",dotSize:14,fontSize:"12px"},medium:{iconSize:16,height:"24px",pillHeight:"24px",gap:"4px",padding:e=>`${e.spacing}px`,signalPaddingLeft:"4px",signalPaddingRight:"6px",dotSize:16,fontSize:"13px"}},Vd={normal:{primary:e=>e.palette.primary.highlight,secondaryDark:e=>e.palette.neutral.softLight,success:e=>e.palette.success.softLight||e.palette.success.lighter,warning:e=>e.palette.warning.highlight,danger:e=>e.palette.danger.highlight,inverse:e=>e.palette.black},pill:{primary:e=>e.palette.primary.base,secondaryDark:e=>e.palette.neutral.softLight,success:e=>e.palette.success.base,warning:e=>e.palette.warning.base,danger:e=>e.palette.danger.base,inverse:e=>e.palette.black},signal:{primary:e=>e.palette.primary.base,secondaryDark:e=>e.palette.neutral.base,success:e=>e.palette.success.base,warning:e=>e.palette.warning.base,danger:e=>e.palette.danger.base,inverse:e=>e.palette.black}},Hd={normal:{primary:e=>e.palette.text.accent,secondaryDark:e=>e.palette.text.secondary,success:e=>e.palette.success.darker,warning:e=>e.palette.warning.ultraDark,danger:e=>e.palette.danger.base,inverse:e=>e.palette.text.white},pill:{primary:e=>e.palette.text.white,secondaryDark:e=>e.palette.text.secondary,success:e=>e.palette.text.white,warning:e=>e.palette.warning.ultraDark,danger:e=>e.palette.text.white,inverse:e=>e.palette.text.white},signal:{primary:e=>e.palette.text.accent,secondaryDark:e=>e.palette.text.secondary,success:e=>e.palette.success.darker,warning:e=>e.palette.warning.ultraDark,danger:e=>e.palette.danger.darker,inverse:e=>e.palette.text.primary}},Od=(e,t,n)=>Vd[n][e](t),Sd=(e,t,n)=>Hd[n][e](t),Dd={primary:e=>e.palette.primary.base,secondaryDark:e=>e.palette.neutral.light,success:e=>e.palette.success.base,warning:e=>e.palette.warning.base,danger:e=>e.palette.danger.base,inverse:e=>e.palette.neutral.light},Rd=(e,t)=>Dd[e](t),zd={primary:e=>e.palette.primary.ultraLight,secondaryDark:e=>e.palette.neutral.ultraLight,success:e=>e.palette.success.ultraLight,warning:e=>e.palette.warning.ultraLight,danger:e=>e.palette.danger.ultraLight,inverse:e=>e.palette.neutral.pure},Nd=(e,t)=>zd[e](t),Td=y`
|
|
1173
|
+
`,nd=e.forwardRef((function({children:t,size:n="md"},r){const i=ne();return e.createElement(de,{ref:r,display:"flex",alignItems:"center"},e.createElement(Ua,{pr:.5},e.createElement(le,{name:"alert",type:"fill",color:i.palette.danger.base,size:"sm"===n?"sm-md":n})),e.createElement(td,{color:i.palette.danger.base,size:n},t))})),rd=e=>{const{inputType:t,selectedValues:n,selectedRadioValue:r,startDate:i,endDate:o,value:a,isRangeOperator:l}=e;return"checkbox"===t?n:"radio"===t?[r]:l?[i,o]:[a]},id=(e,t)=>{const n=xt(e).find((e=>e.value===t));return(null==n?void 0:n.label)||t},od=e=>{const{conditionConfig:t,inputType:n,operator:r,values:i,dateFormat:o}=e;return i.map((e=>{if("checkbox"===n||"radio"===n){const n=((e,t)=>{if(t){const n=e.operators.find((e=>e.value===t));if(null==n?void 0:n.options)return n.options}return e.options||[]})(t,r).find((t=>t.value===e));return(null==n?void 0:n.label)||String(e)}if("date"===n&&o){const t=String(e);if(!t||""===t.trim())return t;const n=_a(t,"YYYY-MM-DD");return n.isValid()?n.format(o):t}return String(e)}))},ad=e=>{const{inputType:t,operator:n,selectedValues:r,selectedRadioValue:i,startDate:o,endDate:a,value:l,isRangeOperator:s,customValidation:c}=e;if("checkbox"===t){if(0===r.length)return{isValid:!1,errorMessage:"少なくとも1つの項目を選択してください"}}else if("radio"===t){if(""===i||null==i)return{isValid:!1,errorMessage:"項目を選択してください"}}else if(s){if(!o||!a)return{isValid:!1,errorMessage:"開始日と終了日の両方を選択してください"}}else if(!l||""===l.trim())return{isValid:!1,errorMessage:"date"===t?"日付を選択してください":"値を入力してください"};if(c){let e;return e="checkbox"===t?r:"radio"===t?[i]:s?[o,a]:[l],c(e,n)}return s&&new Date(o)>new Date(a)?{isValid:!1,errorMessage:"開始日は終了日より前である必要があります"}:{isValid:!0,errorMessage:""}},ld=e=>{const{inputType:t,selectedValues:n,selectedRadioValue:r,startDate:i,endDate:o,value:a,isRangeOperator:l}=e;return"checkbox"===t?n.length>0:"radio"===t?""!==r&&null!=r:l?!(!i||!o):!(!a||""===a.trim())},sd=e=>!1!==e.required,cd=(e,t)=>{const n=ft(t,e.conditionKey);return n?{condition:e,conditionConfig:n}:null},dd=e=>{const{condition:t,conditionConfig:n}=e,r=yt(n,t.operator),i=wt(n,t.operator);return ld({inputType:r,selectedValues:t.selectedValues,selectedRadioValue:t.selectedRadioValue,startDate:t.startDate,endDate:t.endDate,value:t.value,isRangeOperator:i})},ud=e=>{const{condition:t,conditionConfig:n}=e,r=yt(n,t.operator),i=wt(n,t.operator);return ad({inputType:r,operator:t.operator,selectedValues:t.selectedValues,selectedRadioValue:t.selectedRadioValue,startDate:t.startDate,endDate:t.endDate,value:t.value,isRangeOperator:i,customValidation:n.customValidation})},pd=({option:e})=>{var n;return e.icon?t.createElement(le,{name:e.icon,type:null!==(n=e.iconType)&&void 0!==n?n:"line",color:e.iconColor}):null};pd.displayName="OptionValueIcon";const md=({options:e,selectedValues:n,onValueToggle:r,disabled:i=!1})=>t.createElement(_t,null,e.map((e=>t.createElement(Ro,{key:String(e.value),checked:n.includes(e.value),disabled:i,prepend:e.icon?t.createElement(pd,{option:e}):void 0,onChange:t=>r(e.value,t)},e.label))));md.displayName="CheckboxValueInput";const hd=({options:e,selectedRadioValue:n,onRadioChange:r,disabled:i=!1})=>t.createElement(_t,null,e.map((e=>t.createElement(Ro,{key:String(e.value),checked:n===e.value,disabled:i,prepend:e.icon?t.createElement(pd,{option:e}):void 0,onChange:t=>{i||t&&r(e.value)}},e.label))));hd.displayName="RadioValueInput";const gd=640,fd=["日","月","火","水","木","金","土"],bd={components:{ConfirmModal:{defaultProps:{confirmText:"確認",cancelText:"キャンセル"}},FullSizeConfirmModal:{defaultProps:{confirmText:"確認",cancelText:"キャンセル"}},FileUploader:{defaultProps:{title:"ファイルをドラッグ&ドロップ、またはここをクリック"}},ItemEmpty:{defaultProps:{title:"見つかりませんでした。"}},Select:{defaultProps:{placeholder:"選択...",emptyMessage:"見つかりません"}},CreatableSelect:{defaultProps:{placeholder:"選択...",emptyMessage:"見つかりません",addMessage:"次の文字列を追加する"}},MultipleFilter:{defaultProps:{placeholder:"新しいフィルターを追加してください"}},FilterCard:{defaultProps:{applyButtonTitle:"適用",inputErrorText:"入力してください",formPlaceholder:"検索",sectionTitle:"セクション"}},EditFilterCard:{defaultProps:{}},DatePicker:{defaultProps:{monthFormat:"YYYY年MM月",weekConfig:{start:0,labels:[...fd]}}},DateRangePicker:{defaultProps:{monthFormat:"YYYY年MM月",weekConfig:{start:0,labels:[...fd]},applyButtonText:"適用",cancelButtonText:"キャンセル"}},WeekTime:{defaultProps:{weekList:["月","火","水","木","金","土","日"]}},WeekTimeSelector:{defaultProps:{weekList:["月","火","水","木","金","土","日"]}},DualListBox:{defaultProps:{selectedItemTitle:"個選択済み"}}}},vd={components:{ConfirmModal:{defaultProps:{confirmText:"确认",cancelText:"取消"}},FullSizeConfirmModal:{defaultProps:{confirmText:"确认",cancelText:"取消"}},FileUploader:{defaultProps:{title:"把文件拖入, 同样支持点击上传。"}},ItemEmpty:{defaultProps:{title:"未找到。"}}}},xd={components:{DatePicker:{defaultProps:{monthFormat:"MMM YYYY",weekConfig:{start:0,labels:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}}},DateRangePicker:{defaultProps:{monthFormat:"MMM YYYY",weekConfig:{start:0,labels:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},applyButtonText:"Apply",cancelButtonText:"Cancel"}},WeekTime:{defaultProps:{weekList:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},WeekTimeSelector:{defaultProps:{weekList:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},DualListBox:{defaultProps:{selectedItemTitle:"selected"}}}},yd=e.createContext({locale:xd}),wd=({locale:t,children:n})=>e.createElement(yd.Provider,{value:{locale:t}},n);function Cd(e){var n,r;const{name:i,props:o}=e,a=t.useContext(yd).locale,l=Object.assign({},o);if(!a||!a.components)return l;const s=null===(r=null===(n=a.components)||void 0===n?void 0:n[i])||void 0===r?void 0:r.defaultProps;for(const e in s)void 0===l[e]&&(l[e]=s[e]);return l}const Ed=n((function(e,n){const r=Cd({props:e,name:"DatePicker"}),{date:o,format:a="YYYY-MM-DD",disabled:s=!1,size:c="medium",variant:u="light",width:p,monthFormat:m,weekConfig:h,showDateFields:g=!1,showTimeFields:f=!1,timeFieldProps:b,useCalendarRange:v=!1,isOutsideRange:x,error:y=!1,errorText:w,defaultPresetButton:C,presetButtons:E,onPresetButtonClick:I,onDateChange:k,onDatesChange:M,endDate:$}=r,A=ne(),[L,V]=i(!1),{context:H,refs:S,strategy:O,x:D,y:R}=ho({placement:"bottom-start",open:L,onOpenChange:V,middleware:[hr(10),mr(),gr({padding:8})]}),z=po(H),N=Eo(H),{getReferenceProps:T,getFloatingProps:Z}=fo([z,N]),B=d((()=>{s||V((e=>!e))}),[s]),P=d((e=>{k(e),V(!1)}),[k]),_=l((()=>t.createElement(le,{name:"date_range",color:s?A.palette.neutral.base:A.palette.text.accent})),[s,A]),G=l((()=>"100%"===p||"string"==typeof p&&p.includes("100%")?{width:"100%"}:{width:"fit-content"}),[p]);return t.createElement(de,{ref:n,style:G},t.createElement("div",Object.assign({ref:S.setReference},T()),t.createElement(lE,{date:o,format:a,error:y,errorText:w,disabled:s,size:c,variant:u,width:p,append:_,onDateChange:k,onAppendClick:B})),L&&t.createElement(no,null,t.createElement(oo,{context:H,modal:!1,initialFocus:-1,returnFocus:!1},v?t.createElement(am,Object.assign({ref:S.setFloating,startDate:o,endDate:$||o,monthFormat:m,weekConfig:h,defaultPresetButton:C,presetButtons:E,showDateFields:g,showTimeFields:f,timeFieldProps:b,dateFieldFormat:a,isOutsideRange:x,style:{position:O,top:null!=R?R:0,left:null!=D?D:0,zIndex:A.depth.calendarRange,overflow:"hidden",maxWidth:"min(640px, calc(100vw - 16px))"},onPresetButtonClick:I,onDatesChange:M},Z())):t.createElement(Tp,Object.assign({ref:S.setFloating,date:o,monthFormat:m,weekConfig:h,defaultPresetButton:C,presetButtons:E,showDateFields:g,showTimeFields:f,timeFieldProps:b,dateFieldFormat:a,isOutsideRange:x,style:{position:O,top:null!=R?R:0,left:null!=D?D:0,zIndex:A.depth.calendar,overflow:"hidden",maxWidth:"min(640px, calc(100vw - 16px))"},onPresetButtonClick:I,onDateChange:P},Z())))))}));var Id=g(Ed);const kd=({startDate:e,endDate:n,onStartDateChange:r,onEndDateChange:i,format:o="YYYY-MM-DD",disabled:a=!1})=>{const s=l((()=>{if(e&&""!==e.trim()){const t=_a(e,"YYYY-MM-DD");return t.isValid()?t:_a()}return _a()}),[e]),c=l((()=>{if(n&&""!==n.trim()){const e=_a(n,"YYYY-MM-DD");return e.isValid()?e:_a()}return _a()}),[n]);return t.createElement(zt,null,t.createElement(Tt,null,t.createElement(Pt,{htmlFor:"start-date-picker"},"開始日"),t.createElement(Id,{date:s,format:o,variant:"dark",width:"100%",disabled:a,onDateChange:e=>{r(e.format("YYYY-MM-DD"))}})),t.createElement(Tt,null,t.createElement(Pt,{htmlFor:"end-date-picker"},"終了日"),t.createElement(Id,{date:c,format:o,variant:"dark",width:"100%",disabled:a,onDateChange:e=>{i(e.format("YYYY-MM-DD"))}})))};kd.displayName="DateRangeInput";const Md=({inputType:e,value:n,placeholder:r,onValueChange:i,onKeyDown:o,format:a="YYYY-MM-DD",inputRef:s,disabled:c=!1})=>{const d=l((()=>{if("date"===e&&n&&""!==n.trim()){const e=_a(n,"YYYY-MM-DD");return e.isValid()?e:_a()}return _a()}),[e,n]),u=e=>{const t=e.format("YYYY-MM-DD");i(t)};return"date"===e?t.createElement(Bt,null,t.createElement(Id,{date:d,format:a,variant:"dark",width:"100%",disabled:c,onDateChange:u})):t.createElement(Zt,null,t.createElement(va,{ref:s,type:"text",value:n,placeholder:r,fullWidth:!0,variant:"dark",disabled:c,onChange:e=>i(e.target.value),onKeyDown:o}))};Md.displayName="TextValueInput";const $d=({filterConfig:e,operator:n,value:r,selectedValues:i,selectedRadioValue:o,startDate:a,endDate:l,onValueChange:s,onValueToggle:c,onRadioChange:d,onStartDateChange:u,onEndDateChange:p,onKeyDown:m,isRangeOperator:h,textInputRef:g,disabled:f=!1})=>{const b=nt(e,n);return"checkbox"===b?t.createElement(md,{options:it(e,n),selectedValues:i,disabled:f,onValueToggle:c}):"radio"===b?t.createElement(hd,{options:it(e,n),selectedRadioValue:o,disabled:f,onRadioChange:d}):h(n)?t.createElement(kd,{startDate:a,endDate:l,format:ot(e),disabled:f,onStartDateChange:u,onEndDateChange:p}):t.createElement(Md,{inputType:b,inputRef:"text"===b?g:void 0,value:r,placeholder:rt(e),format:"date"===b?ot(e):void 0,disabled:f,onValueChange:s,onKeyDown:m})};$d.displayName="ConfigPanelValueInput";const Ad=(e,t,n)=>{if(!t)return((e,t)=>{const n=vt(e),r=yt(e,n);let i="",o="",a="";return wt(e,n)?(o=t,a=t):"date"===r&&(i=t),{id:`condition_${e.conditionKey}`,conditionKey:e.conditionKey,conditionLabel:e.conditionLabel,operator:n,value:i,selectedValues:[],selectedRadioValue:"",startDate:o,endDate:a}})(e,n);let r="",i=[],o="",a="",l="";if((t.isRange||!1)&&t.values.length>=2)a="string"==typeof t.values[0]?t.values[0]:"",l="string"==typeof t.values[1]?t.values[1]:"";else if(t.values.length>0){const e=t.values[0];"string"==typeof e&&(r=e),i=t.values,o=e}return{id:`condition_${e.conditionKey}`,conditionKey:t.conditionKey,conditionLabel:t.conditionLabel,operator:t.operator,value:r,selectedValues:i,selectedRadioValue:o,startDate:a,endDate:l}},Ld={xs:{iconSize:12,height:"18px",pillHeight:"18px",gap:"2px",padding:e=>.5*e.spacing+"px",signalPaddingLeft:"2px",signalPaddingRight:"4px",dotSize:12,fontSize:"11px"},small:{iconSize:14,height:"22px",pillHeight:"20px",gap:"2px",padding:e=>.75*e.spacing+"px",signalPaddingLeft:"4px",signalPaddingRight:"6px",dotSize:14,fontSize:"12px"},medium:{iconSize:16,height:"24px",pillHeight:"24px",gap:"4px",padding:e=>`${e.spacing}px`,signalPaddingLeft:"4px",signalPaddingRight:"6px",dotSize:16,fontSize:"13px"}},Vd={normal:{primary:e=>e.palette.primary.highlight,secondaryDark:e=>e.palette.neutral.softLight,success:e=>e.palette.success.softLight||e.palette.success.lighter,warning:e=>e.palette.warning.highlight,danger:e=>e.palette.danger.highlight,inverse:e=>e.palette.black},pill:{primary:e=>e.palette.primary.base,secondaryDark:e=>e.palette.neutral.softLight,success:e=>e.palette.success.base,warning:e=>e.palette.warning.base,danger:e=>e.palette.danger.base,inverse:e=>e.palette.black},signal:{primary:e=>e.palette.primary.base,secondaryDark:e=>e.palette.neutral.base,success:e=>e.palette.success.base,warning:e=>e.palette.warning.base,danger:e=>e.palette.danger.base,inverse:e=>e.palette.black}},Hd={normal:{primary:e=>e.palette.text.accent,secondaryDark:e=>e.palette.text.secondary,success:e=>e.palette.success.darker,warning:e=>e.palette.warning.ultraDark,danger:e=>e.palette.danger.base,inverse:e=>e.palette.text.white},pill:{primary:e=>e.palette.text.white,secondaryDark:e=>e.palette.text.secondary,success:e=>e.palette.text.white,warning:e=>e.palette.warning.ultraDark,danger:e=>e.palette.text.white,inverse:e=>e.palette.text.white},signal:{primary:e=>e.palette.text.accent,secondaryDark:e=>e.palette.text.secondary,success:e=>e.palette.success.darker,warning:e=>e.palette.warning.ultraDark,danger:e=>e.palette.danger.darker,inverse:e=>e.palette.text.primary}},Sd=(e,t,n)=>Vd[n][e](t),Od=(e,t,n)=>Hd[n][e](t),Dd={primary:e=>e.palette.primary.base,secondaryDark:e=>e.palette.neutral.light,success:e=>e.palette.success.base,warning:e=>e.palette.warning.base,danger:e=>e.palette.danger.base,inverse:e=>e.palette.neutral.light},Rd=(e,t)=>Dd[e](t),zd={primary:e=>e.palette.primary.ultraLight,secondaryDark:e=>e.palette.neutral.ultraLight,success:e=>e.palette.success.ultraLight,warning:e=>e.palette.warning.ultraLight,danger:e=>e.palette.danger.ultraLight,inverse:e=>e.palette.neutral.pure},Nd=(e,t)=>zd[e](t),Td=y`
|
|
1174
1174
|
display: inline-flex;
|
|
1175
1175
|
align-items: center;
|
|
1176
1176
|
justify-content: center;
|
|
@@ -1215,7 +1215,7 @@ object-assign
|
|
|
1215
1215
|
flex-shrink: 0;
|
|
1216
1216
|
display: inline-flex;
|
|
1217
1217
|
align-items: center;
|
|
1218
|
-
`,jd=e.forwardRef((function(t,n){var{color:r,type:i="normal",component:o="span",fontSize:a,fontWeight:l="normal",size:s="medium",icon:c,children:d}=t,u=D(t,["color","type","component","fontSize","fontWeight","size","icon","children"]);const p=ne(),m=e.useMemo((()=>{if(!c)return null;const t=Ld[s].iconSize;return e.cloneElement(c,{size:t})}),[c,s]);if("signal"===i)return e.createElement(_d,Object.assign({ref:n,as:o,$backgroundColor:Nd(r,p),$borderColor:Rd(r,p),$fontSize:a,$size:s,$textColor:
|
|
1218
|
+
`,jd=e.forwardRef((function(t,n){var{color:r,type:i="normal",component:o="span",fontSize:a,fontWeight:l="normal",size:s="medium",icon:c,children:d}=t,u=D(t,["color","type","component","fontSize","fontWeight","size","icon","children"]);const p=ne(),m=e.useMemo((()=>{if(!c)return null;const t=Ld[s].iconSize;return e.cloneElement(c,{size:t})}),[c,s]);if("signal"===i)return e.createElement(_d,Object.assign({ref:n,as:o,$backgroundColor:Nd(r,p),$borderColor:Rd(r,p),$fontSize:a,$size:s,$textColor:Od(r,p,"signal"),$fontWeight:l},u),e.createElement(Gd,null,e.createElement(le,{name:"circle",type:"fill",size:Ld[s].dotSize,color:Sd(r,p,"signal")})),d&&e.createElement(Zd,null,d));const h=Od(r,p,i),g=Sd(r,p,i),f="normal"===i?Bd:Pd;return e.createElement(f,Object.assign({ref:n,as:o,$color:h,$backgroundColor:g,$fontSize:a,$fontWeight:l,$size:s},u),m&&e.createElement(Gd,null,m),d&&e.createElement(Zd,null,d))})),Fd=({logic:e})=>t.createElement(nn,null,t.createElement(jd,{color:"secondaryDark",size:"xs",type:"normal"},e.toUpperCase()),t.createElement(rn,null));Fd.displayName="MultiConditionLogicDivider";const Yd=({filterConfig:e,multiConditionState:n,onKeyDown:r,textInputRef:i})=>{const{conditions:o,updateConditionOperator:a,updateConditionValue:s,updateConditionSelectedValues:c,updateConditionSelectedRadioValue:d,updateConditionStartDate:u,updateConditionEndDate:p}=n,m=gt(e),h=(e=>{var t;return null!==(t=null==e?void 0:e.multiConditionLogic)&&void 0!==t?t:"and"})(e),g=l((()=>Ct(e,o)),[e,o]);return t.createElement("div",null,m.map(((n,l)=>{const f=o.find((e=>e.conditionKey===n.conditionKey));if(!f)return null;const b=yt(n,f.operator),v=wt(n,f.operator),x=bt(n,o,e),y=(e,t)=>{m.forEach((n=>{const r=n.enabledWhen;if(!r||r.conditionKey!==e)return;if(t.length>0&&t.some((e=>r.values.includes(e))))return;const i=o.find((e=>e.conditionKey===n.conditionKey));i&&(s(i.id,""),c(i.id,[]),d(i.id,""),u(i.id,""),p(i.id,""))}))},w=m.length>=2;return t.createElement("div",{key:f.id},l>0&&t.createElement(Fd,{logic:h}),w&&t.createElement(en,null,t.createElement(tn,null,n.conditionLabel),sd(n)&&t.createElement(jd,{color:"danger",size:"xs",type:"normal"},"必須")),t.createElement(on,null,t.createElement(Qc,{value:f.operator,variant:"dark",disabled:x,onChange:e=>{x||"string"!=typeof e||a(f.id,e)}},xt(n).map((e=>t.createElement(qc,{key:e.value,value:e.value},e.label))))),t.createElement(on,null,t.createElement($d,{disabled:x,endDate:f.endDate,filterConfig:e?Object.assign(Object.assign({},e),{operators:xt(n),inputType:b,options:n.options,placeholder:n.placeholder}):void 0,isRangeOperator:()=>v,operator:f.operator,selectedRadioValue:f.selectedRadioValue,selectedValues:f.selectedValues,startDate:f.startDate,textInputRef:f.id===g?i:void 0,value:f.value,onEndDateChange:e=>{x||p(f.id,e)},onKeyDown:r,onRadioChange:e=>{x||(d(f.id,e),y(f.conditionKey,[e]))},onStartDateChange:e=>{x||u(f.id,e)},onValueChange:e=>{x||s(f.id,e)},onValueToggle:(e,t)=>{if(x)return;const n=[...f.selectedValues];if(t)n.push(e);else{const t=n.indexOf(e);t>-1&&n.splice(t,1)}c(f.id,n),y(f.conditionKey,n)}})))})))};Yd.displayName="MultiConditionInput";const Wd={enabled:{minus:{small:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMyIgdmlld0JveD0iMCAwIDEwIDMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+IDxyZWN0IHg9IjAuNDU4OTg0IiB5PSIwLjUiIHdpZHRoPSI5LjA4MjUyIiBoZWlnaHQ9IjIuMDAwMDIiIHJ4PSIwLjMiIGZpbGw9IndoaXRlIi8+IDwvc3ZnPg==')",medium:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iNCIgdmlld0JveD0iMCAwIDEwIDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+IDxyZWN0IHk9IjAuODk4OTI2IiB3aWR0aD0iMTAiIGhlaWdodD0iMi4yMDIwNSIgcng9IjAuMyIgZmlsbD0id2hpdGUiLz4gPC9zdmc+')"},check:{small:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEwIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+IDxwYXRoIGQ9Ik0yLjU5MTMgNi4yNDc0OUMyLjQ4OTY1IDYuMTQ1ODMgMi40ODk2NSA1Ljk4MTAyIDIuNTkxMyA1Ljg3OTM2TDguMzU4NTQgMC4xMTIxMjlDOC40NjAxOSAwLjAxMDQ3NTMgOC42MjUwMSAwLjAxMDQ3NTEgOC43MjY2NiAwLjExMjEyOUw5LjcwOTU4IDEuMDk1MDRDOS44MTEyMyAxLjE5NjcgOS44MTEyMyAxLjM2MTUxIDkuNzA5NTggMS40NjMxN0wzLjk0MjM0IDcuMjMwNEMzLjg0MDY5IDcuMzMyMDUgMy42NzU4NyA3LjMzMjA1IDMuNTc0MjIgNy4yMzA0TDIuNTkxMyA2LjI0NzQ5WiIgZmlsbD0id2hpdGUiLz4gPHBhdGggZD0iTTMuOTQyMzQgNy4yMzA0QzMuODQwNjkgNy4zMzIwNSAzLjY3NTg3IDcuMzMyMDUgMy41NzQyMiA3LjIzMDRMMC40NzcxMTkgNC4xMzMzQzAuMzc1NDY1IDQuMDMxNjUgMC4zNzU0NjUgMy44NjY4NCAwLjQ3NzExOSAzLjc2NTE4TDEuNDYwMDMgMi43ODIyN0MxLjU2MTY5IDIuNjgwNjEgMS43MjY1IDIuNjgwNjEgMS44MjgxNiAyLjc4MjI3TDQuOTI1MzEgNS44Nzk0MkM1LjAyNjk3IDUuOTgxMDggNS4wMjY5NyA2LjE0NTg5IDQuOTI1MzEgNi4yNDc1NUwzLjk0MjM0IDcuMjMwNFoiIGZpbGw9IndoaXRlIi8+IDwvc3ZnPg==')",medium:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+IDxwYXRoIGQ9Ik0zLjM2OTcgNy4xNTg5NEMzLjI1MjU1IDcuMDQxNzggMy4yNTI1NSA2Ljg1MTgzIDMuMzY5NyA2LjczNDY3TDEwLjAxNjUgMC4wODc4NjgxQzEwLjEzMzcgLTAuMDI5Mjg5MiAxMC4zMjM2IC0wLjAyOTI4OTQgMTAuNDQwOCAwLjA4Nzg2NzlMMTEuNTczNiAxLjIyMDY5QzExLjY5MDcgMS4zMzc4NSAxMS42OTA3IDEuNTI3OCAxMS41NzM2IDEuNjQ0OTVMNC45MjY3OSA4LjI5MTc2QzQuODA5NjMgOC40MDg5MSA0LjYxOTY4IDguNDA4OTEgNC41MDI1MiA4LjI5MTc2TDMuMzY5NyA3LjE1ODk0WiIgZmlsbD0id2hpdGUiLz4gPHBhdGggZD0iTTQuOTI2NzkgOC4yOTE3NkM0LjgwOTYzIDguNDA4OTEgNC42MTk2OCA4LjQwODkxIDQuNTAyNTIgOC4yOTE3NkwwLjkzMzA4MyA0LjcyMzJDMC44MTU5MjYgNC42MDUxNiAwLjgxNTkyNiA0LjQxNTIxIDAuOTMzMDgzIDQuMjk4MDVMMi4wNjU5IDMuMTY1MjNDMi4xODMwNiAzLjA0ODA3IDIuMzczMDEgMy4wNDgwNyAyLjQ5MDE3IDMuMTY1MjNMNi4wNTk2OCA2LjczNDc0QzYuMTc2ODQgNi44NTE5IDYuMTc2ODQgNy4wNDE4NSA2LjA1OTY4IDcuMTU5MDFMNC45MjY3OSA4LjI5MTc2WiIgZmlsbD0id2hpdGUiLz4gPC9zdmc+')"}},disabled:{minus:{small:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMyIgdmlld0JveD0iMCAwIDEwIDMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+IDxyZWN0IHg9IjAuNDU4OTg0IiB5PSIwLjUiIHdpZHRoPSI5LjA4MjUyIiBoZWlnaHQ9IjIuMDAwMDIiIHJ4PSIwLjMiIGZpbGw9IiNCM0JBQzEiLz4gPC9zdmc+')",medium:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMyIgdmlld0JveD0iMCAwIDEwIDMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+IDxyZWN0IHk9IjAuMzk4OTI2IiB3aWR0aD0iMTAiIGhlaWdodD0iMi4yMDIwNSIgZmlsbD0iI0IzQkFDMSIvPiA8L3N2Zz4=')"},check:{small:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEwIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+IDxwYXRoIGQ9Ik0yLjU5MTMgNi4yNDc0OUMyLjQ4OTY1IDYuMTQ1ODMgMi40ODk2NSA1Ljk4MTAyIDIuNTkxMyA1Ljg3OTM2TDguMzU4NTQgMC4xMTIxMjlDOC40NjAxOSAwLjAxMDQ3NTMgOC42MjUwMSAwLjAxMDQ3NTEgOC43MjY2NiAwLjExMjEyOUw5LjcwOTU4IDEuMDk1MDRDOS44MTEyMyAxLjE5NjcgOS44MTEyMyAxLjM2MTUxIDkuNzA5NTggMS40NjMxN0wzLjk0MjM0IDcuMjMwNEMzLjg0MDY5IDcuMzMyMDUgMy42NzU4NyA3LjMzMjA1IDMuNTc0MjIgNy4yMzA0TDIuNTkxMyA2LjI0NzQ5WiIgZmlsbD0iI0IzQkFDMSIvPiA8cGF0aCBkPSJNMy45NDIzNCA3LjIzMDRDMy44NDA2OSA3LjMzMjA1IDMuNjc1ODcgNy4zMzIwNSAzLjU3NDIyIDcuMjMwNEwwLjQ3NzExOSA0LjEzMzNDMC4zNzU0NjUgNC4wMzE2NSAwLjM3NTQ2NSAzLjg2Njg0IDAuNDc3MTE5IDMuNzY1MThMMS40NjAwMyAyLjc4MjI3QzEuNTYxNjkgMi42ODA2MSAxLjcyNjUgMi42ODA2MSAxLjgyODE2IDIuNzgyMjdMNC45MjUzMSA1Ljg3OTQyQzUuMDI2OTcgNS45ODEwOCA1LjAyNjk3IDYuMTQ1ODkgNC45MjUzMSA2LjI0NzU1TDMuOTQyMzQgNy4yMzA0WiIgZmlsbD0iI0IzQkFDMSIvPiA8L3N2Zz4=')",medium:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+IDxwYXRoIGQ9Ik0zLjM2OTcgNy4xNTg5NEMzLjI1MjU1IDcuMDQxNzggMy4yNTI1NSA2Ljg1MTgzIDMuMzY5NyA2LjczNDY3TDEwLjAxNjUgMC4wODc4NjgxQzEwLjEzMzcgLTAuMDI5Mjg5MiAxMC4zMjM2IC0wLjAyOTI4OTQgMTAuNDQwOCAwLjA4Nzg2NzlMMTEuNTczNiAxLjIyMDY5QzExLjY5MDcgMS4zMzc4NSAxMS42OTA3IDEuNTI3OCAxMS41NzM2IDEuNjQ0OTVMNC45MjY3OSA4LjI5MTc2QzQuODA5NjMgOC40MDg5MSA0LjYxOTY4IDguNDA4OTEgNC41MDI1MiA4LjI5MTc2TDMuMzY5NyA3LjE1ODk0WiIgZmlsbD0iI0IzQkFDMSIvPiA8cGF0aCBkPSJNNC45MjY3OSA4LjI5MTc2QzQuODA5NjMgOC40MDg5MSA0LjYxOTY4IDguNDA4OTEgNC41MDI1MiA4LjI5MTc2TDAuOTMzMDgzIDQuNzIyMzJDMC44MTU5MjYgNC42MDUxNiAwLjgxNTkyNiA0LjQxNTIxIDAuOTMzMDgzIDQuMjk4MDVMMi4wNjU5IDMuMTY1MjNDMi4xODMwNiAzLjA0ODA3IDIuMzczMDEgMy4wNDgwNyAyLjQ5MDE3IDMuMTY1MjNMNi4wNTk2OCA2LjczNDc0QzYuMTc2ODQgNi44NTE5IDYuMTc2ODQgNy4wNDE4NSA2LjA1OTY4IDcuMTU5MDFMNC45MjY3OSA4LjI5MTc2WiIgZmlsbD0iI0IzQkFDMSIvPiA8L3N2Zz4=')"}}},Xd={small:"center 3.4px",medium:"center 4px"};const Jd=v.input`
|
|
1219
1219
|
opacity: 0;
|
|
1220
1220
|
-webkit-appearance: none;
|
|
1221
1221
|
appearance: none;
|
|
@@ -1280,7 +1280,7 @@ object-assign
|
|
|
1280
1280
|
}
|
|
1281
1281
|
`,qd=v.span`
|
|
1282
1282
|
${W}
|
|
1283
|
-
`,Kd=e.forwardRef((function(t,n){var{children:r,indeterminate:i=!1,error:o=!1,disabled:a=!1,inputRef:l,size:s="medium"}=t,c=D(t,["children","indeterminate","error","disabled","inputRef","size"]);return e.createElement(Ud,{ref:n,disabled:a},e.createElement(Jd,Object.assign({ref:l,error:o,readOnly:!0,type:"checkbox",indeterminate:i,disabled:a,_size:s},c)),e.createElement(Qd,{size:s,error:o,indeterminate:i,hasChild:!!r,disabled:a,checked:c.checked},null!=r?e.createElement(qd,null,r):null))})),eu=({label:e,initialChecked:n,onCheckedChange:r})=>{const[o,a]=i(n);return t.createElement(Kd,{size:"small",checked:o,onChange:e=>{const t=e.target.checked;a(t),r(t)}},e)};eu.displayName="ConfigPanelPersistOption";const tu=({filterType:e,isOpen:n,onApply:r,onCancel:s,editingFilter:c,filterConfig:p,savedCoordinates:m})=>{var h;const g=(e=>void 0!==(null==e?void 0:e.multiConditionConfigs)&&e.multiConditionConfigs.length>0)(p),[f,b]=i(""),v=d((()=>b("")),[]),x=d((e=>{const t=tt(p).find((t=>t.value===e));return(null==t?void 0:t.isRange)||!1}),[p]),y=((e,t,n,r)=>{const[o,l]=i(et(e)),[s,c]=i(""),[u,p]=i([]),[m,h]=i(""),[g,f]=i(""),[b,v]=i("");a((()=>{if(t)l(t.operator),c("string"==typeof t.values[0]?t.values[0]:""),p(t.values),h(t.values[0]||""),n&&n(t.operator)?(f("string"==typeof t.values[0]?t.values[0]:""),v("string"==typeof t.values[1]?t.values[1]:"")):(f(""),v(""));else{const t=et(e);l(t);const r=nt(e,t),i=_a().format("YYYY-MM-DD");n&&n(t)?(f(i),v(i),c("")):"date"===r?(c(i),f(""),v("")):(c(""),f(""),v("")),p([]),h("")}}),[t,n,e]);const x=d((e=>{c(e),null==r||r()}),[r]),y=d(((e,t)=>{p(t?t=>[...t,e]:t=>t.filter((t=>t!==e))),null==r||r()}),[r]),w=d((e=>{h(e),null==r||r()}),[r]),C=d((e=>{f(e),null==r||r()}),[r]),E=d((e=>{v(e),null==r||r()}),[r]);return{operator:o,value:s,selectedValues:u,selectedRadioValue:m,startDate:g,endDate:b,setOperator:l,setValue:c,setSelectedValues:p,setSelectedRadioValue:h,setStartDate:f,setEndDate:v,handleValueChange:x,handleValueToggle:y,handleRadioChange:w,handleStartDateChange:C,handleEndDateChange:E}})(p,c||void 0,x,v),w=((e,t,n)=>{const r=l((()=>gt(e)),[e]),[o,s]=i([]);a((()=>{var e;if(0===r.length)return;const n=_a().format("YYYY-MM-DD"),i=new Map((null===(e=null==t?void 0:t.conditions)||void 0===e?void 0:e.map((e=>[e.conditionKey,e])))||[]),o=r.map((e=>Ad(e,i.get(e.conditionKey),n)));s(o)}),[t,r]);const c=d((()=>{if(0===r.length)return;const e=new Set(o.map((e=>e.conditionKey))),t=r.find((t=>!e.has(t.conditionKey)))||r[0],i=vt(t),a=yt(t,i),l=_a().format("YYYY-MM-DD");let c="",d="",u="";wt(t,i)?(d=l,u=l):"date"===a&&(c=l);const p={id:`condition_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,conditionKey:t.conditionKey,conditionLabel:t.conditionLabel,operator:i,value:c,selectedValues:[],selectedRadioValue:"",startDate:d,endDate:u};s((e=>[...e,p])),null==n||n()}),[r,o,n]),u=d((e=>{s((t=>t.filter((t=>t.id!==e)))),null==n||n()}),[n]),p=d(((e,t,i)=>{const o=r.find((e=>e.conditionKey===t));if(!o)return;const a=vt(o),l=yt(o,a),c=_a().format("YYYY-MM-DD");let d="",u="",p="";wt(o,a)?(u=c,p=c):"date"===l&&(d=c),s((n=>n.map((n=>n.id===e?Object.assign(Object.assign({},n),{conditionKey:t,conditionLabel:i,operator:a,value:d,selectedValues:[],selectedRadioValue:"",startDate:u,endDate:p}):n)))),null==n||n()}),[r,n]),m=d(((e,t)=>{s((n=>n.map((n=>{if(n.id!==e)return n;const i=r.find((e=>e.conditionKey===n.conditionKey));if(!i)return n;const o=yt(i,t),a=_a().format("YYYY-MM-DD"),l=wt(i,t);let s=n.value,c=n.startDate,d=n.endDate,u=n.selectedValues,p=n.selectedRadioValue;return l?(c&&""!==c.trim()||(c=a),d&&""!==d.trim()||(d=a),s="",u=[],p=""):"date"===o?(s&&""!==s.trim()||(s=a),c="",d="",u=[],p=""):(c="",d=""),Object.assign(Object.assign({},n),{operator:t,value:s,startDate:c,endDate:d,selectedValues:u,selectedRadioValue:p})})))),null==n||n()}),[r,n]),h=d(((e,t)=>{s((n=>n.map((n=>n.id===e?Object.assign(Object.assign({},n),{value:t}):n)))),null==n||n()}),[n]),g=d(((e,t)=>{s((n=>n.map((n=>n.id===e?Object.assign(Object.assign({},n),{selectedValues:t}):n)))),null==n||n()}),[n]),f=d(((e,t)=>{s((n=>n.map((n=>n.id===e?Object.assign(Object.assign({},n),{selectedRadioValue:t,selectedValues:[t]}):n)))),null==n||n()}),[n]),b=d(((e,t)=>{s((n=>n.map((n=>n.id===e?Object.assign(Object.assign({},n),{startDate:t}):n)))),null==n||n()}),[n]),v=d(((e,t)=>{s((n=>n.map((n=>n.id===e?Object.assign(Object.assign({},n),{endDate:t}):n)))),null==n||n()}),[n]),x=d((e=>o.find((t=>t.id===e))),[o]);return{conditions:o,addCondition:c,removeCondition:u,updateConditionKey:p,updateConditionOperator:m,updateConditionValue:h,updateConditionSelectedValues:g,updateConditionSelectedRadioValue:f,updateConditionStartDate:b,updateConditionEndDate:v,getConditionById:x}})(p,c||null,v),C=d((()=>((e,t)=>{if(0===e.length)return{isValid:!1,errorMessage:"少なくとも1つの条件を設定してください"};if(!e.some((e=>{const n=cd(e,t);return!!n&&dd(n)})))return{isValid:!1,errorMessage:"少なくとも1つの条件を入力してください"};for(const n of e){const r=cd(n,t);if(!r)return{isValid:!1,errorMessage:`条件設定 ${n.conditionKey} が見つかりません`};if(bt(r.conditionConfig,e,t))continue;if(!sd(r.conditionConfig))continue;const i=ud(r);if(!i.isValid)return{isValid:!1,errorMessage:`${n.conditionLabel}: ${i.errorMessage}`}}return{isValid:!0,errorMessage:""}})(w.conditions,p)),[w.conditions,p]),E=d((()=>((e,t)=>0!==e.length&&(!!e.some((e=>{const n=cd(e,t);return!!n&&dd(n)}))&&e.every((n=>{const r=cd(n,t);return!!r&&(!!bt(r.conditionConfig,e,t)||!sd(r.conditionConfig)||dd(r))}))))(w.conditions,p)),[w.conditions,p]),{validateInput:I,canApply:k}=(({filterConfig:e,operator:t,selectedValues:n,selectedRadioValue:r,startDate:i,endDate:o,value:a,isRangeOperator:l})=>({validateInput:d((()=>{const s=nt(e,t);return ad({inputType:s,operator:t,selectedValues:n,selectedRadioValue:r,startDate:i,endDate:o,value:a,isRangeOperator:l(t),customValidation:null==e?void 0:e.customValidation})}),[e,t,n,r,i,o,a,l]),canApply:d((()=>{const s=nt(e,t);return ld({inputType:s,selectedValues:n,selectedRadioValue:r,startDate:i,endDate:o,value:a,isRangeOperator:l(t)})}),[e,n,r,t,i,o,a,l])}))({filterConfig:p,operator:y.operator,selectedValues:y.selectedValues,selectedRadioValue:y.selectedRadioValue,startDate:y.startDate,endDate:y.endDate,value:y.value,isRangeOperator:x}),{refs:M,floatingStyles:$,getFloatingProps:A,isPositioned:L,contentMaxHeight:V}=(({isOpen:e,savedCoordinates:t,onCancel:n})=>{const[r,o]=i(!1),[l,s]=i(300),{refs:c,floatingStyles:d,context:u}=ho({open:e,onOpenChange:e=>{e||n()},placement:"bottom-start",middleware:[gr({padding:8,crossAxis:!1}),fr({apply({availableWidth:e,availableHeight:t,elements:n}){if(n.floating){const r=Math.max(Ze.CONFIG_PANEL_MIN_CONTENT_HEIGHT,t-Ze.CONFIG_PANEL_HEADER_HEIGHT-Ze.CONFIG_PANEL_BUTTON_HEIGHT-Ze.CONFIG_PANEL_PADDING);s(r),Object.assign(n.floating.style,{maxWidth:`${Math.max(0,e)}px`})}}})]}),p=po(u,{outsidePress:e=>!e.target.closest("[data-tag]")}),{getFloatingProps:m}=fo([p]);return a((()=>{if(t&&e){const e={getBoundingClientRect:()=>({width:0,height:0,x:t.x,y:t.y,top:t.y,left:t.x,right:t.x,bottom:t.y})};c.setReference(e),o(!0)}}),[t,e,c]),a((()=>{e||o(!1)}),[e]),{refs:c,floatingStyles:d,getFloatingProps:m,isPositioned:r,contentMaxHeight:l,context:u}})({isOpen:n,savedCoordinates:m||null,onCancel:s}),H=o(null),O=Xe(p),S=`${null!==(h=null==c?void 0:c.id)&&void 0!==h?h:"new"}:${e}`,D=Je(p,c),R=o(S),z=o(D);R.current!==S&&(R.current=S,z.current=D);const N=d((e=>O?Object.assign(Object.assign({},e),{persist:z.current}):e),[O]);(({isOpen:e,isPositioned:t,focusSessionKey:n,shouldFocus:r,textInputRef:i})=>{const l=o(!1);a((()=>{e||(l.current=!1)}),[e]),a((()=>{l.current=!1}),[n]),u((()=>{var n;e&&t&&r&&!l.current&&(null===(n=i.current)||void 0===n||n.focus({preventScroll:!0}),l.current=!0)}),[e,t,r,n,i])})({isOpen:n,isPositioned:L,focusSessionKey:S,shouldFocus:l((()=>{if(g)return null!==Ct(p,w.conditions);return"text"===nt(p,y.operator)&&!x(y.operator)}),[g,p,w.conditions,y.operator,x]),textInputRef:H});const T=d((()=>{if(g){const e=C();if(!e.isValid)return void b(e.errorMessage);b("");const t=(e=>{const{conditions:t,filterConfig:n}=e,r=[],i=[];for(const e of t)try{const o=ft(n,e.conditionKey);if(!o){i.push(`条件設定 ${e.conditionKey} が見つかりません`);continue}if(bt(o,t,n))continue;const a=yt(o,e.operator),l=wt(o,e.operator),s=rd({inputType:a,selectedValues:e.selectedValues,selectedRadioValue:e.selectedRadioValue,startDate:e.startDate,endDate:e.endDate,value:e.value,isRangeOperator:l});if(!s||0===s.length||!s.some((e=>""!==e&&null!=e)))continue;const c=id(o,e.operator),d=od({conditionConfig:o,inputType:a,operator:e.operator,values:s,dateFormat:n?ot(n):void 0});r.push({conditionKey:e.conditionKey,conditionLabel:e.conditionLabel,operator:e.operator,operatorLabel:c,values:s,valueLabels:d,isRange:l})}catch(t){const n=t instanceof Error?t.message:"不明なエラーが発生しました";i.push(`条件 ${e.conditionLabel} の処理中にエラーが発生しました: ${n}`)}return{conditions:r,errors:i}})({conditions:w.conditions,filterConfig:p});if(t.errors.length>0)return void b(t.errors.join("\n"));r(N({operator:"",operatorLabel:"",values:[],valueLabels:[],isRange:!1,conditions:t.conditions}))}else{const e=I();if(!e.isValid)return void b(e.errorMessage);b("");const t=nt(p,y.operator),n=rd({inputType:t,selectedValues:y.selectedValues,selectedRadioValue:y.selectedRadioValue,startDate:y.startDate,endDate:y.endDate,value:y.value,isRangeOperator:x(y.operator)}),i=((e,t)=>{var n;return e&&(null===(n=tt(e).find((e=>e.value===t)))||void 0===n?void 0:n.label)||t})(p,y.operator),o=(e=>{const{filterConfig:t,inputType:n,operator:r,values:i}=e;return i.map((e=>{if("checkbox"===n||"radio"===n){const n=it(t,r).find((t=>t.value===e));return(null==n?void 0:n.label)||String(e)}if("date"===n){const n=ot(t),r=String(e);if(!r||""===r.trim())return r;const i=_a(r,"YYYY-MM-DD");return i.isValid()?i.format(n):r}return String(e)}))})({filterConfig:p,inputType:t,operator:y.operator,values:n});r(N({operator:y.operator,operatorLabel:i,values:n,valueLabels:o,isRange:x(y.operator)}))}}),[g,p,w,y,I,C,r,x,N]),{handleKeyDown:Z}=(({isOpen:e,canApply:t,handleApply:n,onCancel:r,floatingRef:i})=>{const o=d((e=>{if("Enter"===e.key&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){if(e.isComposing||229===e.keyCode)return void e.preventDefault();e.preventDefault(),t()&&n()}}),[t,n]);return a((()=>{const t=t=>{"Escape"===t.key&&e&&r()};return e&&document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[e,r]),a((()=>{if(!e)return;const t=e=>{var t;const n=e.target;(null===(t=i.current)||void 0===t?void 0:t.contains(n))&&o(e)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[e,o,i]),{handleKeyDown:e=>{o(e)}}})({isOpen:n,canApply:g?E:k,handleApply:T,onCancel:s,floatingRef:M.floating}),B=l((()=>{if(g)return!1;return"text"===nt(p,y.operator)&&("contains"===y.operator||"not_contains"===y.operator)}),[p,y.operator,g]);return t.createElement(Ut,Object.assign({ref:M.setFloating,$isOpen:n,$isPositioned:L,style:$,tabIndex:-1,onKeyDown:Z},A()),t.createElement(Qt,null,t.createElement(qt,null,e)),t.createElement(Kt,{style:{maxHeight:`${V}px`}},g?t.createElement(Yd,{filterConfig:p,multiConditionState:w,textInputRef:H,onKeyDown:Z}):t.createElement(t.Fragment,null,t.createElement(on,null,t.createElement(Qc,{value:y.operator,variant:"dark",onChange:e=>{if("string"!=typeof e)return;v();const t=e;y.setOperator(t);const n=_a().format("YYYY-MM-DD"),r=(e=>{const{filterConfig:t,newOperator:n,isRangeOperator:r,currentStartDate:i,currentEndDate:o,currentValue:a,todayString:l}=e;if(r(n))return{startDate:i&&""!==i.trim()?void 0:l,endDate:o&&""!==o.trim()?void 0:l};{const e={startDate:"",endDate:""};return"date"!==nt(t,n)||a&&""!==a.trim()||(e.value=l),e}})({filterConfig:p,newOperator:t,isRangeOperator:x,currentStartDate:y.startDate,currentEndDate:y.endDate,currentValue:y.value,todayString:n});void 0!==r.startDate&&y.setStartDate(r.startDate),void 0!==r.endDate&&y.setEndDate(r.endDate),void 0!==r.value&&y.setValue(r.value)}},tt(p).map((e=>t.createElement(qc,{key:e.value,value:e.value},e.label))))),t.createElement(on,null,t.createElement($d,{endDate:y.endDate,filterConfig:p,isRangeOperator:x,operator:y.operator,selectedRadioValue:y.selectedRadioValue,selectedValues:y.selectedValues,startDate:y.startDate,textInputRef:H,value:y.value,onEndDateChange:y.handleEndDateChange,onKeyDown:Z,onRadioChange:y.handleRadioChange,onStartDateChange:y.handleStartDateChange,onValueChange:y.handleValueChange,onValueToggle:y.handleValueToggle}),B&&t.createElement(Na,{prepend:t.createElement(le,{name:"question"})},"カンマ区切りで複数ワードをOR検索できます。")))),f&&t.createElement(an,null,t.createElement(nd,{size:"sm"},f)),t.createElement(ln,null,O&&t.createElement(eu,{key:S,initialChecked:D,label:Ue(p),onCheckedChange:e=>{z.current=e}}),t.createElement(sn,null,t.createElement(cl,{type:"button",size:"small",color:"clear",onClick:s},"キャンセル"),t.createElement(cl,{type:"button",size:"small",disabled:g?!E():!k(),onClick:T},"適用"))))};tu.displayName="AdvancedFilterConfigPanel";const nu=({types:e,selectionMode:t="menu",onFiltersChange:n,initialAppliedFilters:r})=>{const l="presetSlots"===t,[s,c]=i(null),[d,u]=i(!1),[p,m]=i((()=>null!=r?r:[])),[h,g]=i(null),[f,b]=i(!1),v=o(null),[x,y]=i(24),[w,C]=i(null),E=o(n);E.current=n;const I=o(h);I.current=h;const k=o(p);k.current=p;const M=e=>{var t;null===(t=E.current)||void 0===t||t.call(E,e)};a((()=>{const t=new Set(e.map((e=>e.type))),n=k.current,r=n.filter((e=>t.has(e.type)));if(r.length!==n.length){m(r),M(r);const e=I.current;e&&!t.has(e.type)&&(g(null),u(!1),c(null))}}),[e]);return{selectedType:s,isConfigPanelOpen:d,appliedFilters:p,editingFilter:h,isMenuOpen:f,menuPosition:x,savedMenuCoordinates:w,triggerRef:v,setSelectedType:c,setIsConfigPanelOpen:u,setAppliedFilters:m,setEditingFilter:g,setIsMenuOpen:b,setMenuPosition:y,setSavedMenuCoordinates:C,handleTypeSelect:e=>{c(e),g(null),u(!0)},handleSlotClick:e=>{f&&b(!1);const t=p.find((t=>t.type===e&&It(t)));g(null!=t?t:null),c(e),u(!0)},handleConfigApply:t=>{let n;if(h){const e=Ke(h,t);n=p.map((t=>t.id===h.id?e:t)),g(null)}else if(l&&s){const r=p.find((e=>e.type===s));if(r){const e=Ke(r,t);n=p.map((t=>t.id===r.id?e:t))}else{const r=mt(e,s),i=qe(s,r,t);n=[...p,i]}}else{const r=mt(e,s),i=qe(s,r,t);n=[...p,i]}m(n),M(n),u(!1),c(null)},handleRemoveFilter:e=>{const t=((e,t)=>e.filter((e=>e.id!==t)))(p,e);m(t),M(t),h&&h.id===e&&(g(null),u(!1),c(null))},handleClearAll:()=>{const e=[];m(e),M(e),g(null),u(!1),c(null),b(!1)},handleConfigCancel:()=>{u(!1),c(null),g(null)},handleEditFilter:e=>{h&&h.id===e.id||(f&&b(!1),g(e),c(e.type),u(!0))}}};class ru{static calculateMenuPosition(){const e=document.querySelectorAll(Pe);if(0===e.length)return Ze.DEFAULT_MENU_POSITION;const t=e[0].closest(je);if(!t)return Ze.DEFAULT_MENU_POSITION;const n=e[e.length-1].getBoundingClientRect(),r=t.getBoundingClientRect();let i=n.right-r.left+Ze.TAG_SPACING;return e.length>=1&&(i+=Ze.TAG_OFFSET_MULTIPLE),this.calculateSafePosition(i)}static calculateSafePosition(e){const t=window.innerWidth,n=Math.max(Ze.MENU_WIDTH,Ze.CONFIG_PANEL_WIDTH);return e+n>t-16?Math.max(0,t-n-16):e}static calculateConfigPanelPosition(e,t,n){const r=t.findIndex((t=>t.id===e.id));return this.calculateConfigPanelPositionBySlotId(e.id,r>=0?r:0,n)}static calculateConfigPanelPositionBySlotId(e,t,n){const r=document.querySelectorAll(Pe);let i=null;for(const t of Array.from(r)){if(t.getAttribute("data-tag")===e){i=t;break}}let o=null==n?void 0:n.current;if(!o){const e=document.querySelector(Ge);e&&(o=e)}return i&&o?this.calculateFromActualElements(i,o):o?this.calculateFromTrigger(o,t):this.getFallbackPosition(t)}static calculateFromActualElements(e,t){const n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return{position:r.left-n.left,coordinates:{x:r.left,y:r.bottom+16}}}static calculateFromTrigger(e,t){const n=e.getBoundingClientRect(),r=n.left+Ze.ICON_AREA_WIDTH+t*Ze.ESTIMATED_TAG_WIDTH;return{position:r-n.left,coordinates:{x:r,y:n.bottom+Ze.TAG_SPACING}}}static getFallbackPosition(e=0){const t=Ze.FALLBACK_POSITION_X+e*Ze.ESTIMATED_TAG_WIDTH;return{position:t,coordinates:{x:t,y:Ze.FALLBACK_POSITION_Y}}}static getSavedCoordinates(){const e=document.querySelector(_e);if(!e)return null;const t=e.getBoundingClientRect();return{x:t.left,y:t.top}}}const iu=({setMenuPosition:e})=>{const t=d((()=>{const t=ru.calculateMenuPosition();e(t)}),[e]);return{handleMenuOpen:t}};const ou=({types:e,placeholder:n="フィルターを追加",disabled:r=!1,filterConfigs:i={},size:o="medium",variant:a="light",width:s="100%",onFiltersChange:c,initialAppliedFilters:d,selectionMode:u="menu"})=>{const p="presetSlots"===u,{selectedType:m,isConfigPanelOpen:h,appliedFilters:g,editingFilter:f,isMenuOpen:b,menuPosition:v,savedMenuCoordinates:x,triggerRef:y,setMenuPosition:w,setSavedMenuCoordinates:C,setIsMenuOpen:E,handleTypeSelect:I,handleSlotClick:k,handleConfigApply:M,handleRemoveFilter:$,handleClearAll:A,handleConfigCancel:L,handleEditFilter:V}=nu({types:e,selectionMode:u,onFiltersChange:c,initialAppliedFilters:d}),H=l((()=>Mt(e,g)),[e,g]),{handleMenuOpen:O}=iu({setMenuPosition:w});t.useLayoutEffect((()=>{var e;if(h&&m){if(p){const t=null!==(e=null==f?void 0:f.id)&&void 0!==e?e:Et(m),n=H.findIndex((e=>e.slotId===t)),{position:r,coordinates:i}=ru.calculateConfigPanelPositionBySlotId(t,n>=0?n:0,y);return w(r),void C(i)}if(f){const{position:e,coordinates:t}=ru.calculateConfigPanelPosition(f,g,y);w(e),C(t)}}}),[h,m,p,f,g,H,y,w,C]);const S=pt(e,g),D={placeholder:n,disabled:r,appliedFilters:g,selectionMode:u,filterSlots:H,size:o,variant:a,width:s,onEditFilter:V,onSlotClick:k,onRemoveFilter:$,onClearAll:A},R=h&&m&&x?t.createElement(tu,{filterType:mt(e,m),isOpen:h,editingFilter:f,filterConfig:i[m],savedCoordinates:x,onApply:M,onCancel:L}):null;return p?t.createElement("div",null,t.createElement(cn,Object.assign({ref:y},D)),R):t.createElement("div",null,S.length>0&&t.createElement(Da,null,t.createElement(Sa,{open:b,trigger:t.createElement(cn,Object.assign({ref:y,isOpen:b},D)),minWidth:Ze.MENU_WIDTH,placement:"bottom-start",middleware:[hr({mainAxis:8,crossAxis:v}),gr({padding:8}),fr({apply({availableWidth:e,availableHeight:t,elements:n}){if(n.floating){Object.assign(n.floating.style,{width:"max-content",minWidth:`${Ze.MENU_WIDTH}px`,maxWidth:`${Math.max(0,e)}px`,maxHeight:`${Math.max(0,t)}px`});const r=n.floating.getBoundingClientRect();C({x:r.left,y:r.top})}}})],onOpenChange:e=>{E(e),e&&O()}},S.map((e=>t.createElement(Rt,{key:e.type,disabled:e.disabled,closeOnClick:!0,onClick:()=>I(e.type)},e.label))))),0===S.length&&t.createElement(cn,{placeholder:"すべてのフィルターが適用済み",disabled:!0,appliedFilters:g,size:o,variant:a,width:s,onEditFilter:V,onRemoveFilter:$,onClearAll:A}),R)};ou.displayName="AdvancedFilter";const au=e=>{if(e instanceof Date)return!isNaN(e.getTime());if("number"==typeof e){const t=new Date(e);return!isNaN(t.getTime())}if("string"==typeof e){if(""===e.trim())return!1;return _a(e).isValid()}return!1},lu=e=>{if(e instanceof Date)return isNaN(e.getTime())?null:e;if("number"==typeof e){const t=new Date(e);return isNaN(t.getTime())?null:t}if("string"==typeof e){const t=_a(e);if(t.isValid())return t.toDate()}return null},su=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),cu=(e,t)=>0===((e,t)=>{const n=su(e),r=su(t);return n.getTime()-r.getTime()})(e,t),du=[{value:"equals",label:"次に一致する"},{value:"contains",label:"次を含む"},{value:"starts_with",label:"次で始まる"},{value:"ends_with",label:"次で終わる"},{value:"not_equals",label:"次に一致しない"},{value:"not_contains",label:"次を含まない"}],uu=[{value:"equals",label:"次に一致する"},{value:"greater_than",label:"次より大きい"},{value:"less_than",label:"次より小さい"},{value:"greater_than_or_equal",label:"次以上"},{value:"less_than_or_equal",label:"次以下"},{value:"between",label:"次の範囲内",isRange:!0},{value:"not_between",label:"次の範囲外",isRange:!0}],pu=[{value:"equals",label:"次に一致する"},{value:"before",label:"次より前"},{value:"after",label:"次より後"},{value:"between",label:"次の範囲内",isRange:!0},{value:"not_between",label:"次の範囲外",isRange:!0}],mu=[{value:"equals",label:"次に一致する"},{value:"not_equals",label:"次に一致しない"},{value:"in",label:"次のいずれかに一致する"},{value:"not_in",label:"次のいずれにも一致しない"}],hu={text_basic:[du[0],du[1],du[2]],text_search:[du[1],du[0],du[5]],selection_basic:[mu[0],mu[1]],selection_multiple:[mu[2],mu[0],mu[3]],date_basic:[pu[0],pu[2],pu[1]],number_basic:[uu[0],uu[1],uu[2],uu[3],uu[4]]},gu=e=>{const t=hu[e];return t?[...t]:[]},fu=(e,t)=>({value:e,label:t}),bu=(...e)=>e.flat(),vu=(e,t)=>e.map((e=>Object.assign(Object.assign({},e),{label:t[e.value]||e.label}))),xu=(e,t)=>Object.assign(Object.assign({},e),{label:t}),yu=(e,t)=>{const n=gu(e);return vu(n,t)},wu=(e,t)=>t.map((t=>e.find((e=>e.value===t)))).filter((e=>void 0!==e)),Cu=(e,t)=>t.map((t=>e[t])).filter((e=>void 0!==e)),Eu=e=>e.normalize("NFKC").toLowerCase(),Iu=(e,t,n)=>{if("boolean"==typeof e&&"boolean"==typeof n[0])return((e,t,n)=>{switch(t){case"equals":return e===n;case"not_equals":return e!==n;default:return!1}})(e,t,n[0]);if("between"===t||"not_between"===t){if(n.length<2)return!1;if("boolean"==typeof e)return!1;return((e,t,n,r)=>{if(au(String(e))&&au(n)&&au(r)){const i=lu(String(e)),o=lu(n),a=lu(r);if(i&&o&&a){const e=su(i),n=su(o),r=su(a),l=e>=n&&e<=r;return"between"===t?l:!l}}const i=Number(e),o=Number(n),a=Number(r);if(!isNaN(i)&&!isNaN(o)&&!isNaN(a)){const e=i>=o&&i<=a;return"between"===t?e:!e}return!1})(e,t,"string"==typeof n[0]?n[0]:String(n[0]),"string"==typeof n[1]?n[1]:String(n[1]))}if("before"===t||"after"===t){if("boolean"==typeof e)return!1;return((e,t,n)=>{if(au(String(e))&&au(n)){const r=lu(String(e)),i=lu(n);if(r&&i){const e=su(r),n=su(i);return"before"===t?e<n:e>n}}const r=Number(e),i=Number(n);return!isNaN(r)&&!isNaN(i)&&("before"===t?r<i:r>i)})(e,t,"string"==typeof n[0]?n[0]:String(n[0]))}if("equals"===t||"not_equals"===t){if("boolean"==typeof e)return!1;if(n.length>1){const r=Eu(String(e)),i=n.map((e=>Eu("string"==typeof e?e:String(e)))).includes(r);return"equals"===t?i:!i}return((e,t,n)=>{if(au(String(e))&&au(n)){const r=lu(String(e)),i=lu(n);if(r&&i){const e=cu(r,i);return"equals"===t?e:!e}}const r=Eu(String(e))===Eu(n);return"equals"===t?r:!r})(e,t,"string"==typeof n[0]?n[0]:String(n[0]||""))}const r="string"==typeof n[0]?n[0]:String(n[0]||"");if("contains"===t||"not_contains"===t||"starts_with"===t||"ends_with"===t)return((e,t,n)=>{const r=Eu(e),i=n.trim();if(("contains"===t||"not_contains"===t)&&i.includes(",")){const e=ys(i);return"contains"===t?e.some((e=>r.includes(Eu(e)))):!e.some((e=>r.includes(Eu(e))))}const o=Eu(i);switch(t){case"contains":return r.includes(o);case"not_contains":return!r.includes(o);case"starts_with":return r.startsWith(o);case"ends_with":return r.endsWith(o);default:return!1}})(String(e),t,r);if("in"===t||"not_in"===t){const r=Eu(String(e)),i=n.map((e=>Eu("string"==typeof e?e:String(e)))).includes(r);return"in"===t?i:!i}if("greater_than"===t||"less_than"===t||"greater_than_or_equal"===t||"less_than_or_equal"===t){const n=Number(e);if(!isNaN(n))return((e,t,n)=>{const r=Number(n);if(isNaN(r))return!1;switch(t){case"greater_than":return e>r;case"less_than":return e<r;case"greater_than_or_equal":return e>=r;case"less_than_or_equal":return e<=r;default:return!1}})(n,t,r)}return!0},ku=(e,t,n,r)=>r.length?e.filter((e=>{const i=e[t];return Iu(i,n,r)})):e,Mu=(e,t)=>t.reduce(((e,t)=>ku(e,t.field,t.operator,t.values)),e),$u=(e,t,n,r)=>{const i=n.filter((e=>e.values&&e.values.length>0));return 0!==i.length&&i.every((n=>{var i;const{conditionKey:o,operator:a,values:l}=n,s=null==r?void 0:r[t],c=null===(i=null==s?void 0:s.multiConditionConfigs)||void 0===i?void 0:i.find((e=>e.conditionKey===o)),d=((e,t,n,r)=>{const i=e[r||`${t}Attr`];if(i&&"object"==typeof i&&n in i)return i[n]})(e,t,o,null==c?void 0:c.valueSource);return(null==c?void 0:c.customOperator)?c.customOperator(l,a,d):Iu(d,a,l)}))},Au=(e,t)=>({value:e,label:t}),Lu=(...e)=>e.flat(),Vu=(e,t)=>e.map((e=>Object.assign(Object.assign({},e),{label:t[e.value]||e.label}))),Hu=(e,t)=>Object.assign(Object.assign({},e),{label:t}),Ou=(e,t)=>t.map((t=>e.find((e=>e.value===t)))).filter((e=>void 0!==e)),Su=(e,t)=>t.map((t=>e[t])).filter((e=>void 0!==e)),Du=e=>e.map((e=>e.value)),Ru=e=>e.map((e=>e.label)),zu=(e,t)=>t.map((t=>{const n=e.find((e=>e.value===t));return(null==n?void 0:n.label)||t})),Nu=(...e)=>{const t=e.flat().filter(((e,t,n)=>t===n.findIndex((t=>t.value===e.value))));return t},Tu=(e,t="label")=>[...e].sort(((e,n)=>e[t].localeCompare(n[t]))),Zu=v.div`
|
|
1283
|
+
`,Kd=e.forwardRef((function(t,n){var{children:r,indeterminate:i=!1,error:o=!1,disabled:a=!1,inputRef:l,size:s="medium"}=t,c=D(t,["children","indeterminate","error","disabled","inputRef","size"]);return e.createElement(Ud,{ref:n,disabled:a},e.createElement(Jd,Object.assign({ref:l,error:o,readOnly:!0,type:"checkbox",indeterminate:i,disabled:a,_size:s},c)),e.createElement(Qd,{size:s,error:o,indeterminate:i,hasChild:!!r,disabled:a,checked:c.checked},null!=r?e.createElement(qd,null,r):null))})),eu=({label:e,initialChecked:n,onCheckedChange:r})=>{const[o,a]=i(n);return t.createElement(Kd,{size:"small",checked:o,onChange:e=>{const t=e.target.checked;a(t),r(t)}},e)};eu.displayName="ConfigPanelPersistOption";const tu=({filterType:e,isOpen:n,onApply:r,onCancel:s,editingFilter:c,filterConfig:p,savedCoordinates:m})=>{var h;const g=(e=>void 0!==(null==e?void 0:e.multiConditionConfigs)&&e.multiConditionConfigs.length>0)(p),[f,b]=i(""),v=d((()=>b("")),[]),x=d((e=>{const t=tt(p).find((t=>t.value===e));return(null==t?void 0:t.isRange)||!1}),[p]),y=((e,t,n,r)=>{const[o,l]=i(et(e)),[s,c]=i(""),[u,p]=i([]),[m,h]=i(""),[g,f]=i(""),[b,v]=i("");a((()=>{if(t)l(t.operator),c("string"==typeof t.values[0]?t.values[0]:""),p(t.values),h(t.values[0]||""),n&&n(t.operator)?(f("string"==typeof t.values[0]?t.values[0]:""),v("string"==typeof t.values[1]?t.values[1]:"")):(f(""),v(""));else{const t=et(e);l(t);const r=nt(e,t),i=_a().format("YYYY-MM-DD");n&&n(t)?(f(i),v(i),c("")):"date"===r?(c(i),f(""),v("")):(c(""),f(""),v("")),p([]),h("")}}),[t,n,e]);const x=d((e=>{c(e),null==r||r()}),[r]),y=d(((e,t)=>{p(t?t=>[...t,e]:t=>t.filter((t=>t!==e))),null==r||r()}),[r]),w=d((e=>{h(e),null==r||r()}),[r]),C=d((e=>{f(e),null==r||r()}),[r]),E=d((e=>{v(e),null==r||r()}),[r]);return{operator:o,value:s,selectedValues:u,selectedRadioValue:m,startDate:g,endDate:b,setOperator:l,setValue:c,setSelectedValues:p,setSelectedRadioValue:h,setStartDate:f,setEndDate:v,handleValueChange:x,handleValueToggle:y,handleRadioChange:w,handleStartDateChange:C,handleEndDateChange:E}})(p,c||void 0,x,v),w=((e,t,n)=>{const r=l((()=>gt(e)),[e]),[o,s]=i([]);a((()=>{var e;if(0===r.length)return;const n=_a().format("YYYY-MM-DD"),i=new Map((null===(e=null==t?void 0:t.conditions)||void 0===e?void 0:e.map((e=>[e.conditionKey,e])))||[]),o=r.map((e=>Ad(e,i.get(e.conditionKey),n)));s(o)}),[t,r]);const c=d((()=>{if(0===r.length)return;const e=new Set(o.map((e=>e.conditionKey))),t=r.find((t=>!e.has(t.conditionKey)))||r[0],i=vt(t),a=yt(t,i),l=_a().format("YYYY-MM-DD");let c="",d="",u="";wt(t,i)?(d=l,u=l):"date"===a&&(c=l);const p={id:`condition_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,conditionKey:t.conditionKey,conditionLabel:t.conditionLabel,operator:i,value:c,selectedValues:[],selectedRadioValue:"",startDate:d,endDate:u};s((e=>[...e,p])),null==n||n()}),[r,o,n]),u=d((e=>{s((t=>t.filter((t=>t.id!==e)))),null==n||n()}),[n]),p=d(((e,t,i)=>{const o=r.find((e=>e.conditionKey===t));if(!o)return;const a=vt(o),l=yt(o,a),c=_a().format("YYYY-MM-DD");let d="",u="",p="";wt(o,a)?(u=c,p=c):"date"===l&&(d=c),s((n=>n.map((n=>n.id===e?Object.assign(Object.assign({},n),{conditionKey:t,conditionLabel:i,operator:a,value:d,selectedValues:[],selectedRadioValue:"",startDate:u,endDate:p}):n)))),null==n||n()}),[r,n]),m=d(((e,t)=>{s((n=>n.map((n=>{if(n.id!==e)return n;const i=r.find((e=>e.conditionKey===n.conditionKey));if(!i)return n;const o=yt(i,t),a=_a().format("YYYY-MM-DD"),l=wt(i,t);let s=n.value,c=n.startDate,d=n.endDate,u=n.selectedValues,p=n.selectedRadioValue;return l?(c&&""!==c.trim()||(c=a),d&&""!==d.trim()||(d=a),s="",u=[],p=""):"date"===o?(s&&""!==s.trim()||(s=a),c="",d="",u=[],p=""):(c="",d=""),Object.assign(Object.assign({},n),{operator:t,value:s,startDate:c,endDate:d,selectedValues:u,selectedRadioValue:p})})))),null==n||n()}),[r,n]),h=d(((e,t)=>{s((n=>n.map((n=>n.id===e?Object.assign(Object.assign({},n),{value:t}):n)))),null==n||n()}),[n]),g=d(((e,t)=>{s((n=>n.map((n=>n.id===e?Object.assign(Object.assign({},n),{selectedValues:t}):n)))),null==n||n()}),[n]),f=d(((e,t)=>{s((n=>n.map((n=>n.id===e?Object.assign(Object.assign({},n),{selectedRadioValue:t,selectedValues:[t]}):n)))),null==n||n()}),[n]),b=d(((e,t)=>{s((n=>n.map((n=>n.id===e?Object.assign(Object.assign({},n),{startDate:t}):n)))),null==n||n()}),[n]),v=d(((e,t)=>{s((n=>n.map((n=>n.id===e?Object.assign(Object.assign({},n),{endDate:t}):n)))),null==n||n()}),[n]),x=d((e=>o.find((t=>t.id===e))),[o]);return{conditions:o,addCondition:c,removeCondition:u,updateConditionKey:p,updateConditionOperator:m,updateConditionValue:h,updateConditionSelectedValues:g,updateConditionSelectedRadioValue:f,updateConditionStartDate:b,updateConditionEndDate:v,getConditionById:x}})(p,c||null,v),C=d((()=>((e,t)=>{if(0===e.length)return{isValid:!1,errorMessage:"少なくとも1つの条件を設定してください"};if(!e.some((e=>{const n=cd(e,t);return!!n&&dd(n)})))return{isValid:!1,errorMessage:"少なくとも1つの条件を入力してください"};for(const n of e){const r=cd(n,t);if(!r)return{isValid:!1,errorMessage:`条件設定 ${n.conditionKey} が見つかりません`};if(bt(r.conditionConfig,e,t))continue;if(!sd(r.conditionConfig))continue;const i=ud(r);if(!i.isValid)return{isValid:!1,errorMessage:`${n.conditionLabel}: ${i.errorMessage}`}}return{isValid:!0,errorMessage:""}})(w.conditions,p)),[w.conditions,p]),E=d((()=>((e,t)=>0!==e.length&&(!!e.some((e=>{const n=cd(e,t);return!!n&&dd(n)}))&&e.every((n=>{const r=cd(n,t);return!!r&&(!!bt(r.conditionConfig,e,t)||!sd(r.conditionConfig)||dd(r))}))))(w.conditions,p)),[w.conditions,p]),{validateInput:I,canApply:k}=(({filterConfig:e,operator:t,selectedValues:n,selectedRadioValue:r,startDate:i,endDate:o,value:a,isRangeOperator:l})=>({validateInput:d((()=>{const s=nt(e,t);return ad({inputType:s,operator:t,selectedValues:n,selectedRadioValue:r,startDate:i,endDate:o,value:a,isRangeOperator:l(t),customValidation:null==e?void 0:e.customValidation})}),[e,t,n,r,i,o,a,l]),canApply:d((()=>{const s=nt(e,t);return ld({inputType:s,selectedValues:n,selectedRadioValue:r,startDate:i,endDate:o,value:a,isRangeOperator:l(t)})}),[e,n,r,t,i,o,a,l])}))({filterConfig:p,operator:y.operator,selectedValues:y.selectedValues,selectedRadioValue:y.selectedRadioValue,startDate:y.startDate,endDate:y.endDate,value:y.value,isRangeOperator:x}),{refs:M,floatingStyles:$,getFloatingProps:A,isPositioned:L,contentMaxHeight:V}=(({isOpen:e,savedCoordinates:t,onCancel:n})=>{const[r,o]=i(!1),[l,s]=i(300),{refs:c,floatingStyles:d,context:u}=ho({open:e,onOpenChange:e=>{e||n()},placement:"bottom-start",middleware:[gr({padding:8,crossAxis:!1}),fr({apply({availableWidth:e,availableHeight:t,elements:n}){if(n.floating){const r=Math.max(Ze.CONFIG_PANEL_MIN_CONTENT_HEIGHT,t-Ze.CONFIG_PANEL_HEADER_HEIGHT-Ze.CONFIG_PANEL_BUTTON_HEIGHT-Ze.CONFIG_PANEL_PADDING);s(r),Object.assign(n.floating.style,{maxWidth:`${Math.max(0,e)}px`})}}})]}),p=po(u,{outsidePress:e=>!e.target.closest("[data-tag]")}),{getFloatingProps:m}=fo([p]);return a((()=>{if(t&&e){const e={getBoundingClientRect:()=>({width:0,height:0,x:t.x,y:t.y,top:t.y,left:t.x,right:t.x,bottom:t.y})};c.setReference(e),o(!0)}}),[t,e,c]),a((()=>{e||o(!1)}),[e]),{refs:c,floatingStyles:d,getFloatingProps:m,isPositioned:r,contentMaxHeight:l,context:u}})({isOpen:n,savedCoordinates:m||null,onCancel:s}),H=o(null),S=Xe(p),O=`${null!==(h=null==c?void 0:c.id)&&void 0!==h?h:"new"}:${e}`,D=Je(p,c),R=o(O),z=o(D);R.current!==O&&(R.current=O,z.current=D);const N=d((e=>S?Object.assign(Object.assign({},e),{persist:z.current}):e),[S]);(({isOpen:e,isPositioned:t,focusSessionKey:n,shouldFocus:r,textInputRef:i})=>{const l=o(!1);a((()=>{e||(l.current=!1)}),[e]),a((()=>{l.current=!1}),[n]),u((()=>{var n;e&&t&&r&&!l.current&&(null===(n=i.current)||void 0===n||n.focus({preventScroll:!0}),l.current=!0)}),[e,t,r,n,i])})({isOpen:n,isPositioned:L,focusSessionKey:O,shouldFocus:l((()=>{if(g)return null!==Ct(p,w.conditions);return"text"===nt(p,y.operator)&&!x(y.operator)}),[g,p,w.conditions,y.operator,x]),textInputRef:H});const T=d((()=>{if(g){const e=C();if(!e.isValid)return void b(e.errorMessage);b("");const t=(e=>{const{conditions:t,filterConfig:n}=e,r=[],i=[];for(const e of t)try{const o=ft(n,e.conditionKey);if(!o){i.push(`条件設定 ${e.conditionKey} が見つかりません`);continue}if(bt(o,t,n))continue;const a=yt(o,e.operator),l=wt(o,e.operator),s=rd({inputType:a,selectedValues:e.selectedValues,selectedRadioValue:e.selectedRadioValue,startDate:e.startDate,endDate:e.endDate,value:e.value,isRangeOperator:l});if(!s||0===s.length||!s.some((e=>""!==e&&null!=e)))continue;const c=id(o,e.operator),d=od({conditionConfig:o,inputType:a,operator:e.operator,values:s,dateFormat:n?ot(n):void 0});r.push({conditionKey:e.conditionKey,conditionLabel:e.conditionLabel,operator:e.operator,operatorLabel:c,values:s,valueLabels:d,isRange:l})}catch(t){const n=t instanceof Error?t.message:"不明なエラーが発生しました";i.push(`条件 ${e.conditionLabel} の処理中にエラーが発生しました: ${n}`)}return{conditions:r,errors:i}})({conditions:w.conditions,filterConfig:p});if(t.errors.length>0)return void b(t.errors.join("\n"));r(N({operator:"",operatorLabel:"",values:[],valueLabels:[],isRange:!1,conditions:t.conditions}))}else{const e=I();if(!e.isValid)return void b(e.errorMessage);b("");const t=nt(p,y.operator),n=rd({inputType:t,selectedValues:y.selectedValues,selectedRadioValue:y.selectedRadioValue,startDate:y.startDate,endDate:y.endDate,value:y.value,isRangeOperator:x(y.operator)}),i=((e,t)=>{var n;return e&&(null===(n=tt(e).find((e=>e.value===t)))||void 0===n?void 0:n.label)||t})(p,y.operator),o=(e=>{const{filterConfig:t,inputType:n,operator:r,values:i}=e;return i.map((e=>{if("checkbox"===n||"radio"===n){const n=it(t,r).find((t=>t.value===e));return(null==n?void 0:n.label)||String(e)}if("date"===n){const n=ot(t),r=String(e);if(!r||""===r.trim())return r;const i=_a(r,"YYYY-MM-DD");return i.isValid()?i.format(n):r}return String(e)}))})({filterConfig:p,inputType:t,operator:y.operator,values:n});r(N({operator:y.operator,operatorLabel:i,values:n,valueLabels:o,isRange:x(y.operator)}))}}),[g,p,w,y,I,C,r,x,N]),{handleKeyDown:Z}=(({isOpen:e,canApply:t,handleApply:n,onCancel:r,floatingRef:i})=>{const o=d((e=>{if("Enter"===e.key&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){if(e.isComposing||229===e.keyCode)return void e.preventDefault();e.preventDefault(),t()&&n()}}),[t,n]);return a((()=>{const t=t=>{"Escape"===t.key&&e&&r()};return e&&document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[e,r]),a((()=>{if(!e)return;const t=e=>{var t;const n=e.target;(null===(t=i.current)||void 0===t?void 0:t.contains(n))&&o(e)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[e,o,i]),{handleKeyDown:e=>{o(e)}}})({isOpen:n,canApply:g?E:k,handleApply:T,onCancel:s,floatingRef:M.floating}),B=l((()=>{if(g)return!1;return"text"===nt(p,y.operator)&&("contains"===y.operator||"not_contains"===y.operator)}),[p,y.operator,g]);return t.createElement(Ut,Object.assign({ref:M.setFloating,$isOpen:n,$isPositioned:L,style:$,tabIndex:-1,onKeyDown:Z},A()),t.createElement(Qt,null,t.createElement(qt,null,e)),t.createElement(Kt,{style:{maxHeight:`${V}px`}},g?t.createElement(Yd,{filterConfig:p,multiConditionState:w,textInputRef:H,onKeyDown:Z}):t.createElement(t.Fragment,null,t.createElement(on,null,t.createElement(Qc,{value:y.operator,variant:"dark",onChange:e=>{if("string"!=typeof e)return;v();const t=e;y.setOperator(t);const n=_a().format("YYYY-MM-DD"),r=(e=>{const{filterConfig:t,newOperator:n,isRangeOperator:r,currentStartDate:i,currentEndDate:o,currentValue:a,todayString:l}=e;if(r(n))return{startDate:i&&""!==i.trim()?void 0:l,endDate:o&&""!==o.trim()?void 0:l};{const e={startDate:"",endDate:""};return"date"!==nt(t,n)||a&&""!==a.trim()||(e.value=l),e}})({filterConfig:p,newOperator:t,isRangeOperator:x,currentStartDate:y.startDate,currentEndDate:y.endDate,currentValue:y.value,todayString:n});void 0!==r.startDate&&y.setStartDate(r.startDate),void 0!==r.endDate&&y.setEndDate(r.endDate),void 0!==r.value&&y.setValue(r.value)}},tt(p).map((e=>t.createElement(qc,{key:e.value,value:e.value},e.label))))),t.createElement(on,null,t.createElement($d,{endDate:y.endDate,filterConfig:p,isRangeOperator:x,operator:y.operator,selectedRadioValue:y.selectedRadioValue,selectedValues:y.selectedValues,startDate:y.startDate,textInputRef:H,value:y.value,onEndDateChange:y.handleEndDateChange,onKeyDown:Z,onRadioChange:y.handleRadioChange,onStartDateChange:y.handleStartDateChange,onValueChange:y.handleValueChange,onValueToggle:y.handleValueToggle}),B&&t.createElement(Na,{prepend:t.createElement(le,{name:"question"})},"カンマ区切りで複数ワードをOR検索できます。")))),f&&t.createElement(an,null,t.createElement(nd,{size:"sm"},f)),t.createElement(ln,null,S&&t.createElement(eu,{key:O,initialChecked:D,label:Ue(p),onCheckedChange:e=>{z.current=e}}),t.createElement(sn,null,t.createElement(cl,{type:"button",size:"small",color:"clear",onClick:s},"キャンセル"),t.createElement(cl,{type:"button",size:"small",disabled:g?!E():!k(),onClick:T},"適用"))))};tu.displayName="AdvancedFilterConfigPanel";const nu=({types:e,selectionMode:t="menu",onFiltersChange:n,initialAppliedFilters:r})=>{const l="presetSlots"===t,[s,c]=i(null),[d,u]=i(!1),[p,m]=i((()=>null!=r?r:[])),[h,g]=i(null),[f,b]=i(!1),v=o(null),[x,y]=i(24),[w,C]=i(null),E=o(n);E.current=n;const I=o(h);I.current=h;const k=o(p);k.current=p;const M=e=>{var t;null===(t=E.current)||void 0===t||t.call(E,e)};a((()=>{const t=new Set(e.map((e=>e.type))),n=k.current,r=n.filter((e=>t.has(e.type)));if(r.length!==n.length){m(r),M(r);const e=I.current;e&&!t.has(e.type)&&(g(null),u(!1),c(null))}}),[e]);return{selectedType:s,isConfigPanelOpen:d,appliedFilters:p,editingFilter:h,isMenuOpen:f,menuPosition:x,savedMenuCoordinates:w,triggerRef:v,setSelectedType:c,setIsConfigPanelOpen:u,setAppliedFilters:m,setEditingFilter:g,setIsMenuOpen:b,setMenuPosition:y,setSavedMenuCoordinates:C,handleTypeSelect:e=>{c(e),g(null),u(!0)},handleSlotClick:e=>{f&&b(!1);const t=p.find((t=>t.type===e&&It(t)));g(null!=t?t:null),c(e),u(!0)},handleConfigApply:t=>{let n;if(h){const e=Ke(h,t);n=p.map((t=>t.id===h.id?e:t)),g(null)}else if(l&&s){const r=p.find((e=>e.type===s));if(r){const e=Ke(r,t);n=p.map((t=>t.id===r.id?e:t))}else{const r=mt(e,s),i=qe(s,r,t);n=[...p,i]}}else{const r=mt(e,s),i=qe(s,r,t);n=[...p,i]}m(n),M(n),u(!1),c(null)},handleRemoveFilter:e=>{const t=((e,t)=>e.filter((e=>e.id!==t)))(p,e);m(t),M(t),h&&h.id===e&&(g(null),u(!1),c(null))},handleClearAll:()=>{const e=[];m(e),M(e),g(null),u(!1),c(null),b(!1)},handleConfigCancel:()=>{u(!1),c(null),g(null)},handleEditFilter:e=>{h&&h.id===e.id||(f&&b(!1),g(e),c(e.type),u(!0))}}};class ru{static calculateMenuPosition(){const e=document.querySelectorAll(Pe);if(0===e.length)return Ze.DEFAULT_MENU_POSITION;const t=e[0].closest(je);if(!t)return Ze.DEFAULT_MENU_POSITION;const n=e[e.length-1].getBoundingClientRect(),r=t.getBoundingClientRect();let i=n.right-r.left+Ze.TAG_SPACING;return e.length>=1&&(i+=Ze.TAG_OFFSET_MULTIPLE),this.calculateSafePosition(i)}static calculateSafePosition(e){const t=window.innerWidth,n=Math.max(Ze.MENU_WIDTH,Ze.CONFIG_PANEL_WIDTH);return e+n>t-16?Math.max(0,t-n-16):e}static calculateConfigPanelPosition(e,t,n){const r=t.findIndex((t=>t.id===e.id));return this.calculateConfigPanelPositionBySlotId(e.id,r>=0?r:0,n)}static calculateConfigPanelPositionBySlotId(e,t,n){const r=document.querySelectorAll(Pe);let i=null;for(const t of Array.from(r)){if(t.getAttribute("data-tag")===e){i=t;break}}let o=null==n?void 0:n.current;if(!o){const e=document.querySelector(Ge);e&&(o=e)}return i&&o?this.calculateFromActualElements(i,o):o?this.calculateFromTrigger(o,t):this.getFallbackPosition(t)}static calculateFromActualElements(e,t){const n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return{position:r.left-n.left,coordinates:{x:r.left,y:r.bottom+16}}}static calculateFromTrigger(e,t){const n=e.getBoundingClientRect(),r=n.left+Ze.ICON_AREA_WIDTH+t*Ze.ESTIMATED_TAG_WIDTH;return{position:r-n.left,coordinates:{x:r,y:n.bottom+Ze.TAG_SPACING}}}static getFallbackPosition(e=0){const t=Ze.FALLBACK_POSITION_X+e*Ze.ESTIMATED_TAG_WIDTH;return{position:t,coordinates:{x:t,y:Ze.FALLBACK_POSITION_Y}}}static getSavedCoordinates(){const e=document.querySelector(_e);if(!e)return null;const t=e.getBoundingClientRect();return{x:t.left,y:t.top}}}const iu=({setMenuPosition:e})=>{const t=d((()=>{const t=ru.calculateMenuPosition();e(t)}),[e]);return{handleMenuOpen:t}};const ou=({types:e,placeholder:n="フィルターを追加",disabled:r=!1,filterConfigs:i={},size:o="medium",variant:a="light",width:s="100%",onFiltersChange:c,initialAppliedFilters:d,selectionMode:u="menu"})=>{const p="presetSlots"===u,{selectedType:m,isConfigPanelOpen:h,appliedFilters:g,editingFilter:f,isMenuOpen:b,menuPosition:v,savedMenuCoordinates:x,triggerRef:y,setMenuPosition:w,setSavedMenuCoordinates:C,setIsMenuOpen:E,handleTypeSelect:I,handleSlotClick:k,handleConfigApply:M,handleRemoveFilter:$,handleClearAll:A,handleConfigCancel:L,handleEditFilter:V}=nu({types:e,selectionMode:u,onFiltersChange:c,initialAppliedFilters:d}),H=l((()=>Mt(e,g)),[e,g]),{handleMenuOpen:S}=iu({setMenuPosition:w});t.useLayoutEffect((()=>{var e;if(h&&m){if(p){const t=null!==(e=null==f?void 0:f.id)&&void 0!==e?e:Et(m),n=H.findIndex((e=>e.slotId===t)),{position:r,coordinates:i}=ru.calculateConfigPanelPositionBySlotId(t,n>=0?n:0,y);return w(r),void C(i)}if(f){const{position:e,coordinates:t}=ru.calculateConfigPanelPosition(f,g,y);w(e),C(t)}}}),[h,m,p,f,g,H,y,w,C]);const O=pt(e,g),D={placeholder:n,disabled:r,appliedFilters:g,selectionMode:u,filterSlots:H,size:o,variant:a,width:s,onEditFilter:V,onSlotClick:k,onRemoveFilter:$,onClearAll:A},R=h&&m&&x?t.createElement(tu,{filterType:mt(e,m),isOpen:h,editingFilter:f,filterConfig:i[m],savedCoordinates:x,onApply:M,onCancel:L}):null;return p?t.createElement("div",null,t.createElement(cn,Object.assign({ref:y},D)),R):t.createElement("div",null,O.length>0&&t.createElement(Da,null,t.createElement(Oa,{open:b,trigger:t.createElement(cn,Object.assign({ref:y,isOpen:b},D)),minWidth:Ze.MENU_WIDTH,placement:"bottom-start",middleware:[hr({mainAxis:8,crossAxis:v}),gr({padding:8}),fr({apply({availableWidth:e,availableHeight:t,elements:n}){if(n.floating){Object.assign(n.floating.style,{width:"max-content",minWidth:`${Ze.MENU_WIDTH}px`,maxWidth:`${Math.max(0,e)}px`,maxHeight:`${Math.max(0,t)}px`});const r=n.floating.getBoundingClientRect();C({x:r.left,y:r.top})}}})],onOpenChange:e=>{E(e),e&&S()}},O.map((e=>t.createElement(Rt,{key:e.type,disabled:e.disabled,closeOnClick:!0,onClick:()=>I(e.type)},e.label))))),0===O.length&&t.createElement(cn,{placeholder:"すべてのフィルターが適用済み",disabled:!0,appliedFilters:g,size:o,variant:a,width:s,onEditFilter:V,onRemoveFilter:$,onClearAll:A}),R)};ou.displayName="AdvancedFilter";const au=e=>{if(e instanceof Date)return!isNaN(e.getTime());if("number"==typeof e){const t=new Date(e);return!isNaN(t.getTime())}if("string"==typeof e){if(""===e.trim())return!1;return _a(e).isValid()}return!1},lu=e=>{if(e instanceof Date)return isNaN(e.getTime())?null:e;if("number"==typeof e){const t=new Date(e);return isNaN(t.getTime())?null:t}if("string"==typeof e){const t=_a(e);if(t.isValid())return t.toDate()}return null},su=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),cu=(e,t)=>0===((e,t)=>{const n=su(e),r=su(t);return n.getTime()-r.getTime()})(e,t),du=[{value:"equals",label:"次に一致する"},{value:"contains",label:"次を含む"},{value:"starts_with",label:"次で始まる"},{value:"ends_with",label:"次で終わる"},{value:"not_equals",label:"次に一致しない"},{value:"not_contains",label:"次を含まない"}],uu=[{value:"equals",label:"次に一致する"},{value:"greater_than",label:"次より大きい"},{value:"less_than",label:"次より小さい"},{value:"greater_than_or_equal",label:"次以上"},{value:"less_than_or_equal",label:"次以下"},{value:"between",label:"次の範囲内",isRange:!0},{value:"not_between",label:"次の範囲外",isRange:!0}],pu=[{value:"equals",label:"次に一致する"},{value:"before",label:"次より前"},{value:"after",label:"次より後"},{value:"between",label:"次の範囲内",isRange:!0},{value:"not_between",label:"次の範囲外",isRange:!0}],mu=[{value:"equals",label:"次に一致する"},{value:"not_equals",label:"次に一致しない"},{value:"in",label:"次のいずれかに一致する"},{value:"not_in",label:"次のいずれにも一致しない"}],hu={text_basic:[du[0],du[1],du[2]],text_search:[du[1],du[0],du[5]],selection_basic:[mu[0],mu[1]],selection_multiple:[mu[2],mu[0],mu[3]],date_basic:[pu[0],pu[2],pu[1]],number_basic:[uu[0],uu[1],uu[2],uu[3],uu[4]]},gu=e=>{const t=hu[e];return t?[...t]:[]},fu=(e,t)=>({value:e,label:t}),bu=(...e)=>e.flat(),vu=(e,t)=>e.map((e=>Object.assign(Object.assign({},e),{label:t[e.value]||e.label}))),xu=(e,t)=>Object.assign(Object.assign({},e),{label:t}),yu=(e,t)=>{const n=gu(e);return vu(n,t)},wu=(e,t)=>t.map((t=>e.find((e=>e.value===t)))).filter((e=>void 0!==e)),Cu=(e,t)=>t.map((t=>e[t])).filter((e=>void 0!==e)),Eu=e=>e.normalize("NFKC").toLowerCase(),Iu=(e,t,n)=>{if("boolean"==typeof e&&"boolean"==typeof n[0])return((e,t,n)=>{switch(t){case"equals":return e===n;case"not_equals":return e!==n;default:return!1}})(e,t,n[0]);if("between"===t||"not_between"===t){if(n.length<2)return!1;if("boolean"==typeof e)return!1;return((e,t,n,r)=>{if(au(String(e))&&au(n)&&au(r)){const i=lu(String(e)),o=lu(n),a=lu(r);if(i&&o&&a){const e=su(i),n=su(o),r=su(a),l=e>=n&&e<=r;return"between"===t?l:!l}}const i=Number(e),o=Number(n),a=Number(r);if(!isNaN(i)&&!isNaN(o)&&!isNaN(a)){const e=i>=o&&i<=a;return"between"===t?e:!e}return!1})(e,t,"string"==typeof n[0]?n[0]:String(n[0]),"string"==typeof n[1]?n[1]:String(n[1]))}if("before"===t||"after"===t){if("boolean"==typeof e)return!1;return((e,t,n)=>{if(au(String(e))&&au(n)){const r=lu(String(e)),i=lu(n);if(r&&i){const e=su(r),n=su(i);return"before"===t?e<n:e>n}}const r=Number(e),i=Number(n);return!isNaN(r)&&!isNaN(i)&&("before"===t?r<i:r>i)})(e,t,"string"==typeof n[0]?n[0]:String(n[0]))}if("equals"===t||"not_equals"===t){if("boolean"==typeof e)return!1;if(n.length>1){const r=Eu(String(e)),i=n.map((e=>Eu("string"==typeof e?e:String(e)))).includes(r);return"equals"===t?i:!i}return((e,t,n)=>{if(au(String(e))&&au(n)){const r=lu(String(e)),i=lu(n);if(r&&i){const e=cu(r,i);return"equals"===t?e:!e}}const r=Eu(String(e))===Eu(n);return"equals"===t?r:!r})(e,t,"string"==typeof n[0]?n[0]:String(n[0]||""))}const r="string"==typeof n[0]?n[0]:String(n[0]||"");if("contains"===t||"not_contains"===t||"starts_with"===t||"ends_with"===t)return((e,t,n)=>{const r=Eu(e),i=n.trim();if(("contains"===t||"not_contains"===t)&&i.includes(",")){const e=ys(i);return"contains"===t?e.some((e=>r.includes(Eu(e)))):!e.some((e=>r.includes(Eu(e))))}const o=Eu(i);switch(t){case"contains":return r.includes(o);case"not_contains":return!r.includes(o);case"starts_with":return r.startsWith(o);case"ends_with":return r.endsWith(o);default:return!1}})(String(e),t,r);if("in"===t||"not_in"===t){const r=Eu(String(e)),i=n.map((e=>Eu("string"==typeof e?e:String(e)))).includes(r);return"in"===t?i:!i}if("greater_than"===t||"less_than"===t||"greater_than_or_equal"===t||"less_than_or_equal"===t){const n=Number(e);if(!isNaN(n))return((e,t,n)=>{const r=Number(n);if(isNaN(r))return!1;switch(t){case"greater_than":return e>r;case"less_than":return e<r;case"greater_than_or_equal":return e>=r;case"less_than_or_equal":return e<=r;default:return!1}})(n,t,r)}return!0},ku=(e,t,n,r)=>r.length?e.filter((e=>{const i=e[t];return Iu(i,n,r)})):e,Mu=(e,t)=>t.reduce(((e,t)=>ku(e,t.field,t.operator,t.values)),e),$u=(e,t,n,r)=>{const i=n.filter((e=>e.values&&e.values.length>0));return 0!==i.length&&i.every((n=>{var i;const{conditionKey:o,operator:a,values:l}=n,s=null==r?void 0:r[t],c=null===(i=null==s?void 0:s.multiConditionConfigs)||void 0===i?void 0:i.find((e=>e.conditionKey===o)),d=((e,t,n,r)=>{const i=e[r||`${t}Attr`];if(i&&"object"==typeof i&&n in i)return i[n]})(e,t,o,null==c?void 0:c.valueSource);return(null==c?void 0:c.customOperator)?c.customOperator(l,a,d):Iu(d,a,l)}))},Au=(e,t)=>({value:e,label:t}),Lu=(...e)=>e.flat(),Vu=(e,t)=>e.map((e=>Object.assign(Object.assign({},e),{label:t[e.value]||e.label}))),Hu=(e,t)=>Object.assign(Object.assign({},e),{label:t}),Su=(e,t)=>t.map((t=>e.find((e=>e.value===t)))).filter((e=>void 0!==e)),Ou=(e,t)=>t.map((t=>e[t])).filter((e=>void 0!==e)),Du=e=>e.map((e=>e.value)),Ru=e=>e.map((e=>e.label)),zu=(e,t)=>t.map((t=>{const n=e.find((e=>e.value===t));return(null==n?void 0:n.label)||t})),Nu=(...e)=>{const t=e.flat().filter(((e,t,n)=>t===n.findIndex((t=>t.value===e.value))));return t},Tu=(e,t="label")=>[...e].sort(((e,n)=>e[t].localeCompare(n[t]))),Zu=v.div`
|
|
1284
1284
|
position: fixed;
|
|
1285
1285
|
display: flex;
|
|
1286
1286
|
align-items: center;
|
|
@@ -1636,7 +1636,7 @@ object-assign
|
|
|
1636
1636
|
background-color: transparent;
|
|
1637
1637
|
color: ${({theme:e})=>e.palette.neutral.lighter};
|
|
1638
1638
|
}
|
|
1639
|
-
`,kp=g((function({selected:e,value:n,selectable:r,onClickDate:i,children:o,isSaturday:a=!1,isSundayOrHoliday:l=!1,isToday:s=!1}){return t.createElement(wp,{isToday:s},r?t.createElement(Ep,{type:"button",selected:e,isSaturday:a,isSundayOrHoliday:l,onClick:()=>{null==i||i(n)}},o):t.createElement(Ip,{type:"button",isSaturday:a,isSundayOrHoliday:l},o))})),Mp=e=>(e=>{try{const t=e.year(),n=pl(t),r=e.format("YYYY/M/D");return n.some((e=>e.date===r))}catch(e){return!1}})(e),$p=e=>e.format("YYYY-MM-DD")===_a().format("YYYY-MM-DD"),Ap=(e,t)=>_a(new Date(e.year(),e.month(),t)),Lp=e=>(e=>{const t=e.day(),n=0===t,r=6===t,i=Mp(e);return{dayOfWeek:t,isSunday:n,isSaturday:r,isHoliday:i,isSundayOrHoliday:n||i}})(e),Vp=(e,t)=>!t(e),Hp=e=>Array.from(new Array(e.daysInMonth()),((e,t)=>t+1)),
|
|
1639
|
+
`,kp=g((function({selected:e,value:n,selectable:r,onClickDate:i,children:o,isSaturday:a=!1,isSundayOrHoliday:l=!1,isToday:s=!1}){return t.createElement(wp,{isToday:s},r?t.createElement(Ep,{type:"button",selected:e,isSaturday:a,isSundayOrHoliday:l,onClick:()=>{null==i||i(n)}},o):t.createElement(Ip,{type:"button",isSaturday:a,isSundayOrHoliday:l},o))})),Mp=e=>(e=>{try{const t=e.year(),n=pl(t),r=e.format("YYYY/M/D");return n.some((e=>e.date===r))}catch(e){return!1}})(e),$p=e=>e.format("YYYY-MM-DD")===_a().format("YYYY-MM-DD"),Ap=(e,t)=>_a(new Date(e.year(),e.month(),t)),Lp=e=>(e=>{const t=e.day(),n=0===t,r=6===t,i=Mp(e);return{dayOfWeek:t,isSunday:n,isSaturday:r,isHoliday:i,isSundayOrHoliday:n||i}})(e),Vp=(e,t)=>!t(e),Hp=e=>Array.from(new Array(e.daysInMonth()),((e,t)=>t+1)),Sp=(e,t=0)=>(e.startOf("month").day()-t+7)%7,Op=({date:e,weekList:n,weekStart:r=0,monthFormat:i,current:o,isOutsideRange:a,onDateChange:l,onPreviousMonth:s,onNextMonth:c})=>t.createElement(ep,null,t.createElement(ap,null,t.createElement(op,null,t.createElement(ip,null,t.createElement(rp,{weight:"bold",size:"xl"},o.format(i))),t.createElement("div",{style:{display:"flex",gap:"8px"}},t.createElement(cl,{size:"small",color:"clear",icon:t.createElement(le,{name:"arrow_left",size:"md",color:"currentColor"}),type:"button","aria-label":"前の月",onClick:s}),t.createElement(Oc,{content:"今日を選択"},t.createElement(cl,{size:"small",color:"clear",icon:t.createElement(le,{name:"calendar",size:"md",color:"currentColor"}),type:"button","aria-label":"今日を選択",onClick:()=>l(_a())})),t.createElement(cl,{size:"small",color:"clear",icon:t.createElement(le,{name:"arrow_right",size:"md",color:"currentColor"}),type:"button","aria-label":"次の月",onClick:c})))),t.createElement(tp,null,null==n?void 0:n.map((e=>t.createElement(np,{key:e},e))),Array.from(new Array(Sp(o,r)),((e,n)=>t.createElement(np,{key:`empty-${n}`}))),Hp(o).map((n=>{const r=Ap(o,n),i=Lp(r),s=e.format("YYYY-MM-DD")===r.format("YYYY-MM-DD"),c=Vp(r,a);return t.createElement(kp,{key:n,value:r,selectable:c,selected:s,isSaturday:i.isSaturday,isSundayOrHoliday:i.isSundayOrHoliday,isToday:$p(r),onClickDate:l},n)})))),Dp=e=>{const[t,n]=i(e),r=d((()=>{n((e=>e.subtract(1,"month")))}),[]),o=d((()=>{n((e=>e.add(1,"month")))}),[]);return{currentMonth:t,goToPreviousMonth:r,goToNextMonth:o,goToMonth:d((e=>{n(e)}),[])}};function Rp(e){return(Math.trunc(e)%7+7)%7}function zp(e){const{weekConfig:t,fallbackLabels:n,fallbackStart:r}=e;if(void 0!==t){if(7!==t.labels.length)throw new Error("ingred-ui Calendar: weekConfig.labels must contain exactly 7 entries");return Object.assign(Object.assign({},t),{start:Rp(t.start)})}return{start:Rp(r),labels:n}}const Np=n((function(e,n){var{date:r,monthFormat:i="YYYY年M月",weekConfig:o,defaultPresetButton:s,presetButtons:c,onPresetButtonClick:u,showDateFields:p=!1,dateFieldFormat:m="YYYY-MM-DD",showTimeFields:h=!1,timeFieldProps:g,labelSuffix:f,isOutsideRange:b=(()=>!1),onDateChange:v}=e,x=D(e,["date","monthFormat","weekConfig","defaultPresetButton","presetButtons","onPresetButtonClick","showDateFields","dateFieldFormat","showTimeFields","timeFieldProps","labelSuffix","isOutsideRange","onDateChange"]);const[y,w]=t.useState(0),{currentMonth:C,goToPreviousMonth:E,goToNextMonth:I,goToMonth:k}=Dp(r),M=d((e=>{const t=r.hour(e.hour()).minute(e.minute()).second(0).millisecond(0);v(t)}),[r,v]),$=l((()=>p?t.createElement(bp,null,t.createElement(gp,null,t.createElement(xp,null,t.createElement(vp,null,"日付"),f),t.createElement(fp,null,t.createElement(lE,{date:r,format:m,size:"medium",variant:"dark",onDateChange:v}),h&&t.createElement(OL,Object.assign({size:(null==g?void 0:g.size)||"medium",time:r,variant:"dark",width:(null==g?void 0:g.width)||"80px",onTimeChange:M},g))))):null),[p,h,g,r,m,f,v,M]);a((()=>{k(r)}),[r,k]);const{labels:A,start:L}=zp({weekConfig:o,fallbackLabels:[...fd],fallbackStart:0});return t.createElement(qu,Object.assign({ref:n},x),t.createElement(lp,null,t.createElement(sp,null,t.createElement(Ku,null,t.createElement(Op,{date:r,current:C,monthFormat:i,weekList:A,weekStart:L,isOutsideRange:b,onDateChange:e=>{v(e),w((e=>e+1))},onPreviousMonth:E,onNextMonth:I})),t.createElement(yp,{key:y,defaultPresetButton:s,presetButtons:c,dateFields:$,onPresetButtonClick:u}))))}));var Tp=g(Np);const Zp="none",Bp="start",Pp="start_only",_p="end",Gp="between",jp="start",Fp="end",Yp=(e,t,n,r)=>{const i=((e,t,n)=>{const r=_a(new Date(t.year(),t.month(),n));return e.format("YYYY-MM-DD")===r.format("YYYY-MM-DD")})(e,n,r),o=((e,t,n)=>{const r=_a(new Date(t.year(),t.month(),n));return e.format("YYYY-MM-DD")===r.format("YYYY-MM-DD")})(t,n,r),a=((e,t,n,r)=>{const i=_a(new Date(n.year(),n.month(),r)),o=e.format("YYYY-MM-DD"),a=t.format("YYYY-MM-DD");return o!==a&&i.isAfter(o,"day")&&i.isBefore(a,"day")})(e,t,n,r),l=e.isSame(t,"day");switch(!0){case i&&l:return Pp;case i&&!l:return Bp;case o&&!l:return _p;case a:return Gp;default:return Zp}},Wp=v(up)``,Xp=v.button`
|
|
1640
1640
|
background-color: transparent;
|
|
1641
1641
|
border: none;
|
|
1642
1642
|
height: ${({theme:e})=>4*e.spacing}px;
|
|
@@ -1720,7 +1720,7 @@ object-assign
|
|
|
1720
1720
|
background-color: transparent;
|
|
1721
1721
|
color: ${({theme:e})=>e.palette.neutral.lighter};
|
|
1722
1722
|
}
|
|
1723
|
-
`,rm=g((function({state:e,value:n,selectable:r,onClickDate:i,children:o,isSaturday:a=!1,isSundayOrHoliday:l=!1,isToday:s=!1}){return t.createElement(Wp,{"data-state":e,isToday:s},(({state:e,value:n,selectable:r,onClickDate:i,children:o,isSaturday:a=!1,isSundayOrHoliday:l=!1})=>{const s=()=>{null==i||i(n)};if(!r)return t.createElement(nm,{type:"button",isSaturday:a,isSundayOrHoliday:l},o);switch(e){case Pp:return t.createElement(qp,{type:"button",isSaturday:a,isSundayOrHoliday:l,onClick:s},o);case Bp:return t.createElement(Kp,{type:"button",isSaturday:a,isSundayOrHoliday:l,onClick:s},o);case _p:return t.createElement(em,{type:"button",isSaturday:a,isSundayOrHoliday:l,onClick:s},o);case Gp:return t.createElement(tm,{type:"button",isSaturday:a,isSundayOrHoliday:l,onClick:s},o);default:return t.createElement(Jp,{type:"button",isSaturday:a,isSundayOrHoliday:l,onClick:s},o)}})({state:e,value:n,selectable:r,onClickDate:i,children:o,isSaturday:a,isSundayOrHoliday:l}))})),im=({startDate:e,endDate:n,monthFormat:r,weekList:o,weekStart:a=0,current:l,isOutsideRange:s,onDatesChange:c,onPreviousMonth:u,onNextMonth:p,onTodayClick:m})=>{const[h,g]=i(jp),f=d((t=>{if(e&&n&&!e.isSame(n,"day"))return null==c||c({startDate:t,endDate:t}),void g(Fp);switch(h){case jp:null==c||c({startDate:t,endDate:t}),g(Fp);break;case Fp:e&&t.isBefore(e)?null==c||c({startDate:t,endDate:e}):null==c||c({startDate:e,endDate:t}),g(jp)}}),[h,c,n,e]);return t.createElement(ep,null,t.createElement(ap,null,t.createElement(op,null,t.createElement(ip,null,t.createElement(rp,{weight:"bold",size:"xl"},l.format(r))),t.createElement("div",{style:{display:"flex",gap:"8px"}},t.createElement(cl,{size:"small",color:"clear",type:"button",icon:t.createElement(le,{name:"arrow_left",size:"md",color:"currentColor"}),"aria-label":"前の月",onClick:u}),t.createElement(
|
|
1723
|
+
`,rm=g((function({state:e,value:n,selectable:r,onClickDate:i,children:o,isSaturday:a=!1,isSundayOrHoliday:l=!1,isToday:s=!1}){return t.createElement(Wp,{"data-state":e,isToday:s},(({state:e,value:n,selectable:r,onClickDate:i,children:o,isSaturday:a=!1,isSundayOrHoliday:l=!1})=>{const s=()=>{null==i||i(n)};if(!r)return t.createElement(nm,{type:"button",isSaturday:a,isSundayOrHoliday:l},o);switch(e){case Pp:return t.createElement(qp,{type:"button",isSaturday:a,isSundayOrHoliday:l,onClick:s},o);case Bp:return t.createElement(Kp,{type:"button",isSaturday:a,isSundayOrHoliday:l,onClick:s},o);case _p:return t.createElement(em,{type:"button",isSaturday:a,isSundayOrHoliday:l,onClick:s},o);case Gp:return t.createElement(tm,{type:"button",isSaturday:a,isSundayOrHoliday:l,onClick:s},o);default:return t.createElement(Jp,{type:"button",isSaturday:a,isSundayOrHoliday:l,onClick:s},o)}})({state:e,value:n,selectable:r,onClickDate:i,children:o,isSaturday:a,isSundayOrHoliday:l}))})),im=({startDate:e,endDate:n,monthFormat:r,weekList:o,weekStart:a=0,current:l,isOutsideRange:s,onDatesChange:c,onPreviousMonth:u,onNextMonth:p,onTodayClick:m})=>{const[h,g]=i(jp),f=d((t=>{if(e&&n&&!e.isSame(n,"day"))return null==c||c({startDate:t,endDate:t}),void g(Fp);switch(h){case jp:null==c||c({startDate:t,endDate:t}),g(Fp);break;case Fp:e&&t.isBefore(e)?null==c||c({startDate:t,endDate:e}):null==c||c({startDate:e,endDate:t}),g(jp)}}),[h,c,n,e]);return t.createElement(ep,null,t.createElement(ap,null,t.createElement(op,null,t.createElement(ip,null,t.createElement(rp,{weight:"bold",size:"xl"},l.format(r))),t.createElement("div",{style:{display:"flex",gap:"8px"}},t.createElement(cl,{size:"small",color:"clear",type:"button",icon:t.createElement(le,{name:"arrow_left",size:"md",color:"currentColor"}),"aria-label":"前の月",onClick:u}),t.createElement(Oc,{content:"今日に戻る"},t.createElement(cl,{size:"small",color:"clear",type:"button",icon:t.createElement(le,{name:"calendar",size:"md",color:"currentColor"}),"aria-label":"今日に戻る",onClick:m})),t.createElement(cl,{size:"small",color:"clear",type:"button",icon:t.createElement(le,{name:"arrow_right",size:"md",color:"currentColor"}),"aria-label":"次の月",onClick:p})))),t.createElement(tp,null,null==o?void 0:o.map((e=>t.createElement(np,{key:e},e))),Array.from(new Array(Sp(l,a)),((e,n)=>t.createElement(np,{key:`empty-${n}`}))),Hp(l).map((r=>{const i=Ap(l,r),o=Lp(i),a=Vp(i,s);return t.createElement(rm,{key:r,value:i,state:Yp(e,n,l,r),selectable:a,isSaturday:o.isSaturday,isSundayOrHoliday:o.isSundayOrHoliday,isToday:$p(i),onClickDate:f},r)}))))},om=n((function(e,n){var{startDate:r,endDate:i,monthFormat:o="YYYY年M月",weekConfig:s,defaultPresetButton:c,presetButtons:u,onPresetButtonClick:p,showDateFields:m=!1,dateFieldFormat:h="YYYY-MM-DD",showTimeFields:g=!1,timeFieldProps:f,startLabelSuffix:b,endLabelSuffix:v,onApply:x,onCancel:y,applyButtonText:w="適用",cancelButtonText:C="キャンセル",isOutsideRange:E=(()=>!1),onDatesChange:I}=e,k=D(e,["startDate","endDate","monthFormat","weekConfig","defaultPresetButton","presetButtons","onPresetButtonClick","showDateFields","dateFieldFormat","showTimeFields","timeFieldProps","startLabelSuffix","endLabelSuffix","onApply","onCancel","applyButtonText","cancelButtonText","isOutsideRange","onDatesChange"]);const[M,$]=t.useState(0),{currentMonth:A,goToPreviousMonth:L,goToNextMonth:V,goToMonth:H}=Dp(r);a((()=>{H(r)}),[r,H]);const S=d((()=>{const e=_a();null==I||I({startDate:e,endDate:e}),H(e),$((e=>e+1))}),[I,H]),O=d((e=>{null==I||I({startDate:e,endDate:i})}),[i,I]),R=d((e=>{null==I||I({startDate:r,endDate:e})}),[r,I]),z=d((e=>{const t=r.hour(e.hour()).minute(e.minute()).second(0).millisecond(0);null==I||I({startDate:t,endDate:i})}),[r,i,I]),N=d((e=>{const t=i.hour(e.hour()).minute(e.minute()).second(0).millisecond(0);null==I||I({startDate:r,endDate:t})}),[r,i,I]),T=l((()=>m?t.createElement(bp,null,t.createElement(gp,null,t.createElement(xp,null,t.createElement(vp,null,"開始日時"),b),t.createElement(fp,null,t.createElement(lE,{date:r,format:h,size:"medium",variant:"dark",onDateChange:O}),g&&t.createElement(OL,Object.assign({size:(null==f?void 0:f.size)||"medium",time:r,variant:"dark",width:(null==f?void 0:f.width)||"80px",onTimeChange:z},f)))),t.createElement(gp,null,t.createElement(xp,null,t.createElement(vp,null,"終了日時"),v),t.createElement(fp,null,t.createElement(lE,{date:i,format:h,size:"medium",variant:"dark",onDateChange:R}),g&&t.createElement(OL,Object.assign({size:(null==f?void 0:f.size)||"medium",time:i,variant:"dark",width:(null==f?void 0:f.width)||"80px",onTimeChange:N},f))))):null),[m,g,f,r,i,h,b,v,O,R,z,N]),Z=Boolean(u||T),{labels:B,start:P}=zp({weekConfig:s,fallbackLabels:[...fd],fallbackStart:0}),_=Z?t.createElement(yp,{key:M,defaultPresetButton:c,presetButtons:u,dateFields:T,onPresetButtonClick:p}):null,G=t.createElement(Ku,null,t.createElement(im,{startDate:r,endDate:i,monthFormat:o,weekList:B,weekStart:P,current:A,isOutsideRange:E,onDatesChange:e=>{null==I||I(e),$((e=>e+1))},onPreviousMonth:L,onNextMonth:V,onTodayClick:S}));return t.createElement(qu,Object.assign({ref:n},k),t.createElement(lp,null,t.createElement(sp,null,G,_,x?t.createElement(cp,null,t.createElement(Za,null,y?t.createElement(cl,{color:"clear",size:"small",type:"button",onClick:y},C):null,t.createElement(cl,{color:"primary",size:"small",type:"button",onClick:x},w))):null)))}));var am=g(om);const lm=v.div`
|
|
1724
1724
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
1725
1725
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
1726
1726
|
width: ${({width:e})=>e||"auto"};
|
|
@@ -1889,7 +1889,7 @@ object-assign
|
|
|
1889
1889
|
padding-top: ${({theme:e})=>e.spacing/2}px;
|
|
1890
1890
|
border-top: 1px solid rgba(255, 255, 255, 0.2);
|
|
1891
1891
|
font-weight: 700;
|
|
1892
|
-
`,Om=({items:t,interactive:n=!0,onToggle:r})=>0===t.length?null:e.createElement(Cm,{role:"group","aria-label":"凡例"},t.map((t=>{const i=e.createElement(e.Fragment,null,e.createElement(km,{$color:t.color,$hidden:t.hidden}),e.createElement("span",null,t.label));return n?e.createElement(Em,{key:t.label,type:"button",$hidden:t.hidden,"aria-pressed":!t.hidden,"aria-label":`${t.label}を${t.hidden?"表示":"非表示"}にする`,onClick:()=>r(t.label)},i):e.createElement(Im,{key:t.label,$hidden:t.hidden},i)})));const Sm=({label:t,datasets:n,categoryIndex:r,clientX:i,clientY:o,valueFormatter:a,showTotal:l=!1})=>{const s=e.useRef(null),[c,d]=e.useState((()=>({left:i,top:o,transform:"translate(8px, -50%)"})));if(e.useLayoutEffect((()=>{const e=s.current;if(null==e||"undefined"==typeof window)return;const{width:t,height:n}=e.getBoundingClientRect();d(function(e,t,n,r,i,o,a=8,l=8){const s=r/2,c=a+s,d=o-a-s,u=c<=d?Math.min(Math.max(t,c),d):o/2;if(i-e-a-l>=n)return{left:e,top:u,transform:`translate(${l}px, -50%)`};if(e-a-l>=n)return{left:e,top:u,transform:`translate(calc(-100% - ${l}px), -50%)`};const p=n/2,m=a+p,h=i-a-p,g=m<=h?Math.min(Math.max(e,m),h):i/2,f=t-a-l,b=o-t-a-l;return f>=r||!(b>=r)&&f>=b?{left:g,top:t,transform:`translate(-50%, calc(-100% - ${l}px))`}:{left:g,top:t,transform:`translate(-50%, ${l}px)`}}(i,o,t,n,window.innerWidth,window.innerHeight))}),[r,i,o,n,t,l]),"undefined"==typeof document)return null;const u=n.reduce(((e,t)=>{const n=t.data[r];return e+(null!=n?n:0)}),0);return k(e.createElement($m,{ref:s,style:{left:c.left,top:c.top,transform:c.transform}},e.createElement(Am,null,t),n.map((t=>{const n=t.data[r];return null==n?null:e.createElement(Lm,{key:t.label},e.createElement(Vm,{$color:t.color}),e.createElement("span",null,t.label,": ",a(n)))})),l&&e.createElement(Hm,null,"Total: ",a(u))),document.body)};function Dm(e,t){return e.filter((e=>!t.has(e.label)))}function Rm(e,t,n){const r=new Set(e);if(r.has(t))return r.delete(t),r;return n.filter((t=>!e.has(t))).length<=1?e:(r.add(t),r)}function zm(e,t){const n=Math.max(e,1),r=[];for(let e=0;e<=t;e+=1){const i=Math.round(n/t*e);0!==r.length&&r[r.length-1]===i||r.push(i)}return r}function Nm(e){var t,n;if(0===e.length)return 1;const r=null!==(n=null===(t=e[0])||void 0===t?void 0:t.length)&&void 0!==n?n:0;let i=0;for(let t=0;t<r;t+=1){const n=e.reduce(((e,n)=>{const r=n[t];return e+(null!=r?r:0)}),0);i=Math.max(i,n)}return Math.max(i,1)}function Tm(e,t,n,r,i="vertical"){var o,a;const l=null!==(a=null===(o=e[0])||void 0===o?void 0:o.data.length)&&void 0!==a?a:0;return"horizontal"===i?"stacked"===t?function(e,t,n,r){const i=[];for(let o=0;o<r;o+=1){let r=0;const a=t.paddingTop+t.slotWidth*o+(t.slotWidth-t.barWidth)/2;e.forEach((e=>{var l;const s=null!==(l=e.data[o])&&void 0!==l?l:0;if(s<=0)return;const c=s/n*t.chartWidth,d=t.paddingLeft+r;r+=c,i.push({seriesLabel:e.label,color:e.color,value:s,x:d,y:a,width:c,height:t.barWidth,categoryIndex:o})}))}return i}(e,n,r,l):"grouped"===t?function(e,t,n,r){const i=[],o=t.groupWidth,a=o/Math.max(e.length,1);for(let l=0;l<r;l+=1){const r=t.paddingTop+t.slotWidth*l+(t.slotWidth-o)/2;e.forEach(((e,o)=>{const s=e.data[l];if(null==s||s<=0)return;const c=s/n*t.chartWidth,d=r+a*o,u=t.paddingLeft;i.push({seriesLabel:e.label,color:e.color,value:s,x:u,y:d,width:c,height:a,categoryIndex:l})}))}return i}(e,n,r,l):function(e,t,n,r){if(!e)return[];const i=[];for(let o=0;o<r;o+=1){const r=e.data[o];if(null==r||r<=0)continue;const a=r/n*t.chartWidth,l=t.paddingTop+t.slotWidth*o+(t.slotWidth-t.barWidth)/2,s=t.paddingLeft;i.push({seriesLabel:e.label,color:e.color,value:r,x:s,y:l,width:a,height:t.barWidth,categoryIndex:o})}return i}(e[0],n,r,l):"stacked"===t?function(e,t,n,r){const i=[];for(let o=0;o<r;o+=1){let r=0;const a=t.paddingLeft+t.slotWidth*o+(t.slotWidth-t.barWidth)/2;e.forEach((e=>{var l;const s=null!==(l=e.data[o])&&void 0!==l?l:0;if(s<=0)return;const c=s/n*t.chartHeight,d=t.paddingTop+t.chartHeight-r-c;r+=c,i.push({seriesLabel:e.label,color:e.color,value:s,x:a,y:d,width:t.barWidth,height:c,categoryIndex:o})}))}return i}(e,n,r,l):"grouped"===t?function(e,t,n,r){const i=[],o=t.groupWidth,a=o/Math.max(e.length,1);for(let l=0;l<r;l+=1){const r=t.paddingLeft+t.slotWidth*l+(t.slotWidth-o)/2;e.forEach(((e,o)=>{const s=e.data[l];if(null==s||s<=0)return;const c=s/n*t.chartHeight,d=r+a*o,u=t.paddingTop+t.chartHeight-c;i.push({seriesLabel:e.label,color:e.color,value:s,x:d,y:u,width:a,height:c,categoryIndex:l})}))}return i}(e,n,r,l):function(e,t,n,r){if(!e)return[];const i=[];for(let o=0;o<r;o+=1){const r=e.data[o];if(null==r||r<=0)continue;const a=r/n*t.chartHeight,l=t.paddingLeft+t.slotWidth*o+(t.slotWidth-t.barWidth)/2,s=t.paddingTop+t.chartHeight-a;i.push({seriesLabel:e.label,color:e.color,value:r,x:l,y:s,width:t.barWidth,height:a,categoryIndex:o})}return i}(e[0],n,r,l)}function Zm(e,t){return JSON.stringify({categories:e,series:t.map((e=>({label:e.label,length:e.data.length})))})}const Bm=.6,Pm=.8,_m=.1,Gm=1;function jm(e,t){const n=null!=t?t:"grouped"===e?Pm:Bm;return Math.min(Math.max(n,_m),Gm)}const Fm=320,Ym=Fm,Wm={minSlotSize:36,narrowContainerBreakpoint:480,horizontalMinValueWidth:200};function Xm(e,t){return e>14?5:t<24?3:t<36?2:1}function Jm(e){return"horizontal"===e.orientation?function({categoryCount:e,seriesCount:t=1,height:n=Fm,barWidthRatio:r,layout:i="single",containerWidth:o,layoutConfig:a=Wm}){const{minSlotSize:l,narrowContainerBreakpoint:s,horizontalMinValueWidth:c}=a,d=(null!=o?o:Number.POSITIVE_INFINITY)<s?72:96,u=l*Math.max(t,1),p=64+Math.max(e,1)*u,m=d+16+c,h=Math.max(n,p),g=null!=o&&o>0?Math.max(o,m):m,f=g-d-16,b=h-16-48,v=e>0?b/e:b,x=jm(i,r);return{width:g,height:h,paddingTop:16,paddingBottom:48,paddingLeft:d,paddingRight:16,chartWidth:f,chartHeight:b,slotWidth:v,barWidth:v*x,groupWidth:v*x,labelEvery:Xm(e,v),minContentWidth:m,minContentHeight:p,overflowsHorizontally:null!=o&&o>0&&m>o,overflowsVertically:p>n}}(e):function({categoryCount:e,seriesCount:t=1,height:n=Fm,barWidthRatio:r,layout:i="single",containerWidth:o,layoutConfig:a=Wm}){const{minSlotSize:l,narrowContainerBreakpoint:s}=a,c=(null!=o?o:Number.POSITIVE_INFINITY)<s?48:72,d=l*Math.max(t,1),u=c+16+Math.max(e,1)*d,p=null!=o&&o>0?Math.max(o,u):u,m=p-c-16,h=n-16-48,g=e>0?m/e:m,f=null!=o&&o>0?Math.min(o,p)-c-16:m,b=e>0?f/e:f,v=jm(i,r);return{width:p,height:n,paddingTop:16,paddingBottom:48,paddingLeft:c,paddingRight:16,chartWidth:m,chartHeight:h,slotWidth:g,barWidth:g*v,groupWidth:g*v,labelEvery:Xm(e,Math.min(g,b)),minContentWidth:u,minContentHeight:n,overflowsHorizontally:null!=o&&o>0&&u>o,overflowsVertically:!1}}(e)}function Um(e,t){return 0!==e.length&&0!==t.length&&t.some((e=>e.data.some((e=>null!=e&&e>0))))}function Qm(e,t,n){const r=te(t,n);return e.map(((e,t)=>{var n;return{label:e.label,color:null!==(n=e.color)&&void 0!==n?n:r[t%r.length],data:e.data}}))}function qm(e,t){return e<=1?"single":null!=t?t:"grouped"}const Km=({orientation:t,width:n,height:r,paddingLeft:i,paddingRight:o,paddingTop:a,paddingBottom:l,chartWidth:s,chartHeight:c,ticks:d,maxValue:u,valueFormatter:p})=>{const m=ne(),h=ee(m),g=h.axis.color,f=Math.max(u,1),b=2*m.spacing,v=m.spacing;return"horizontal"===t?e.createElement(e.Fragment,null,d.map((t=>{const n=i+t/f*s;return e.createElement("g",{key:t},e.createElement("line",{x1:n,x2:n,y1:a,y2:a+c,stroke:h.grid,strokeWidth:1}),e.createElement("text",{x:n,y:r-l+b,textAnchor:"middle",fontSize:h.axis.fontSize,fill:g},p(t)))}))):e.createElement(e.Fragment,null,d.map((t=>{const r=a+c-t/f*c;return e.createElement("g",{key:t},e.createElement("line",{x1:i,x2:n-o,y1:r,y2:r,stroke:h.grid,strokeWidth:1}),e.createElement("text",{x:i-v,y:r,textAnchor:"end",dominantBaseline:"middle",fontSize:h.axis.fontSize,fill:g},p(t)))})))},eh=({orientation:t,labels:n,height:r,paddingBottom:i,paddingLeft:o,paddingTop:a,slotWidth:l,labelEvery:s})=>{const c=ne(),d=ee(c),u=d.axis.color,p=2*c.spacing,m=c.spacing;return"horizontal"===t?n.map(((t,r)=>{if(!(r%s==0||r===n.length-1))return null;const i=a+l*r+l/2,c=`${t}-category-${i}`;return e.createElement("text",{key:c,x:o-m,y:i,textAnchor:"end",dominantBaseline:"middle",fontSize:d.axis.fontSize,fill:u},t)})):n.map(((t,a)=>{if(!(a%s==0||a===n.length-1))return null;const c=o+l*a+l/2,m=`${t}-category-${c}`;return e.createElement("text",{key:m,x:c,y:r-i+p,textAnchor:"middle",fontSize:d.axis.fontSize,fill:u},t)}))};function th(e){return`${Number(e.toFixed(1))}%`}function nh(e){var t,n;if(0===e.length)return[];const r=null!==(n=null===(t=e[0])||void 0===t?void 0:t.data.length)&&void 0!==n?n:0;return e.map((t=>({label:t.label,color:t.color,data:Array.from({length:r},((n,r)=>{const i=e.reduce(((e,t)=>{const n=t.data[r];return e+(null!=n&&n>0?n:0)}),0),o=t.data[r];return null==o||o<=0||i<=0?null:o/i*100}))})))}function rh(){const t=e.useRef(null),[n,r]=e.useState(void 0);return e.useEffect((()=>{const e=t.current;if(!e)return;const n=()=>{r(e.getBoundingClientRect().width)};if(n(),"undefined"==typeof ResizeObserver)return;const i=new ResizeObserver((()=>{n()}));return i.observe(e),()=>{i.disconnect()}}),[]),{containerRef:t,containerWidth:n}}const ih=e=>e.toLocaleString(),oh=({categories:t,series:n,layout:r,valueScale:i="absolute",orientation:o="vertical",colorScheme:a,valueFormatter:l,showLegend:s=!0,showTotalInTooltip:c=!0,interactiveLegend:d=!0,barWidthRatio:u,loading:p=!1,emptyMessage:m="データがありません","aria-label":h,height:g,className:f})=>{var b;const v=null!=l?l:"percent"===i?th:ih,x=ne(),y=ee(x),{containerRef:w,containerWidth:C}=rh(),[E,I]=e.useState(null),[k,M]=e.useState((()=>new Set)),[$,A]=e.useState((()=>new Set)),L=e.useRef(new Map),V=e.useRef(!1),{durationMs:H,staggerMs:O}=y.motion,S=Math.round(.65*H),{reflowSegments:D,reflowProgress:R,startReflow:z,cancelReflow:N,isReflowing:T}=function(t,n){const[r,i]=e.useState(null),[o,a]=e.useState(null),l=e.useRef(0),s=e.useRef(void 0),c=e.useCallback((()=>{var e;0!==l.current&&(cancelAnimationFrame(l.current),l.current=0),i(null),a(null),null===(e=s.current)||void 0===e||e.call(s),s.current=void 0}),[]),d=e.useCallback((()=>{c()}),[c]),u=e.useCallback(((e,r,o,s,c)=>{i(pm(e,r,0,n)),a({phaseIndex:o,phaseCount:s,progress:0});const d=performance.now(),u=p=>{const m=Math.min(1,(p-d)/t);i(pm(e,r,m,n)),a({phaseIndex:o,phaseCount:s,progress:m}),m<1?l.current=requestAnimationFrame(u):(l.current=0,c())};l.current=requestAnimationFrame(u)}),[t,n]),p=e.useCallback(((e,t,n)=>{0!==l.current&&(cancelAnimationFrame(l.current),l.current=0),s.current=n,u(e,t,0,1,(()=>{c()}))}),[c,u]);return e.useEffect((()=>()=>{d()}),[d]),{reflowSegments:r,reflowProgress:o,startReflow:p,cancelReflow:d,isReflowing:null!=o}}(H,o),[Z,B]=e.useState(null);e.useEffect((()=>{const e=L.current;return()=>{e.forEach((e=>{window.clearTimeout(e)})),e.clear(),N()}}),[N]);const P=e.useMemo((()=>Qm(n,x,a)),[n,x,a]),_=e.useMemo((()=>Zm(t,n)),[t,n]),G=e.useMemo((()=>P.map((e=>e.label))),[P]);e.useEffect((()=>{M(new Set),A(new Set),L.current.forEach((e=>{window.clearTimeout(e)})),L.current.clear(),V.current=!1,N(),B(null)}),[N,_,i]);const j=e.useCallback(((e,t)=>"percent"===i&&"stacked"===t?nh(e):e),[i]),F=e.useCallback(((e,t)=>"percent"===i&&"stacked"===t?100:function(e,t){if("stacked"===t)return Nm(e.map((e=>e.data)));const n=e.flatMap((e=>e.data.filter((e=>null!=e))));return Math.max(...n,1)}(e,t)),[i]);e.useEffect((()=>{const e=n.length*t.length,r=window.setTimeout((()=>{V.current=!0}),H+Math.min(e*O,H+80)+16);return()=>{window.clearTimeout(r)}}),[t.length,_,H,n.length,O]);const Y=e.useMemo((()=>Dm(P,k)),[P,k]),W=qm(Y.length,r),X=s&&P.length>1,J=function(e,t){return!(e<=1||"stacked"!==t&&"grouped"!==t&&void 0!==t)}(P.length,r),U=e.useCallback(((e,n)=>{const i=Dm(P,e),a=qm(i.length,r),l=Jm({categoryCount:t.length,seriesCount:"grouped"===a?i.length:1,height:g,barWidthRatio:u,layout:a,orientation:o,layoutConfig:y.layout,containerWidth:C}),s=j(i,a),c=F(i,a),d=null!=n?n:c;return{visibleSeries:i,layout:a,chartLayout:l,maxValue:d,segments:Tm(s,a,l,d,o)}}),[u,t.length,y.layout,C,g,r,o,j,F,P]),Q=U(k),{chartLayout:q,maxValue:K,segments:te}=Q,re=null!=D?D:te,ie=null!=Z?function(e,t,n){return null==n?t:e+(t-e)*cm(n.progress)}(Z.fromMaxValue,Z.toMaxValue,R):K,oe=zm(ie,4),ae=e.useRef(te);ae.current=re;const le=e.useCallback((()=>{B(null)}),[]),se=e.useCallback(((e,t,n)=>{if(!J)return;const r=U(t);B({fromMaxValue:n,toMaxValue:r.maxValue}),z(e,r.segments,le)}),[le,U,z,J]),ce=()=>{I(null)},de=null!=g?g:Ym;if(p)return e.createElement(xm,{ref:w,className:f},e.createElement(Mm,{$minHeight:de,role:"status","aria-label":`${h}(読み込み中)`},e.createElement(rl,{width:"32px"})));if(!Um(t,n))return e.createElement(xm,{ref:w,className:f},e.createElement(Mm,{$minHeight:de,role:"status","aria-live":"polite","aria-label":`${h}(${m})`},m));const ue=j(Y,W).map((e=>({label:e.label,color:e.color,data:e.data})));return e.createElement(xm,{ref:w,className:f},e.createElement(ym,{$overflowX:q.overflowsHorizontally,$overflowY:q.overflowsVertically,role:q.overflowsHorizontally?"region":void 0,"aria-label":q.overflowsHorizontally?`${h}(横スクロールで全体を表示)`:void 0,tabIndex:q.overflowsHorizontally?0:void 0},e.createElement(wm,{role:"img","aria-label":h,width:q.width,height:q.height,viewBox:`0 0 ${q.width} ${q.height}`,$minWidth:q.minContentWidth,$minHeight:q.minContentHeight},e.createElement(Km,{orientation:o,width:q.width,height:q.height,paddingLeft:q.paddingLeft,paddingRight:q.paddingRight,paddingTop:q.paddingTop,paddingBottom:q.paddingBottom,chartWidth:q.chartWidth,chartHeight:q.chartHeight,ticks:oe,maxValue:ie,valueFormatter:v}),re.map(((t,n)=>{return e.createElement(vm,{key:`${t.categoryIndex}-${t.seriesLabel}`,segment:t,orientation:o,animation:(r=t.seriesLabel,T?"none":$.has(r)?"exit":V.current?"none":"enter"),enterIndex:n,durationMs:$.has(t.seriesLabel)?S:H,staggerMs:O,onPointerMove:e=>((e,t)=>{I({categoryIndex:t,clientX:e.clientX,clientY:e.clientY})})(e,t.categoryIndex),onPointerLeave:ce});var r})),e.createElement(eh,{orientation:o,labels:t,height:q.height,paddingBottom:q.paddingBottom,paddingLeft:q.paddingLeft,paddingTop:q.paddingTop,slotWidth:q.slotWidth,labelEvery:q.labelEvery}))),X&&e.createElement(Om,{interactive:d,items:P.map((e=>({label:e.label,color:e.color,hidden:k.has(e.label)||$.has(e.label)}))),onToggle:e=>{I(null),N(),le();const t=L.current.get(e);if(null!=t&&(window.clearTimeout(t),L.current.delete(e)),k.has(e)){const t=ae.current,n=U(k).maxValue,r=Rm(k,e,G);return M(r),void se(t,r,n)}if(Rm(k,e,G)===k)return;const n=U(k).maxValue;A((t=>new Set(t).add(e)));const r=window.setTimeout((()=>{const t=ae.current.filter((t=>t.seriesLabel!==e));let r=k;M((t=>(r=function(e,t){const n=new Set(e);return n.add(t),n}(t,e),r))),A((t=>{const n=new Set(t);return n.delete(e),n})),L.current.delete(e),se(t,r,n)}),S);L.current.set(e,r)}}),null!=E&&ue.length>0&&e.createElement(Sm,{showTotal:"stacked"===W&&c,label:null!==(b=t[E.categoryIndex])&&void 0!==b?b:"",datasets:ue,categoryIndex:E.categoryIndex,clientX:E.clientX,clientY:E.clientY,valueFormatter:v}))};function ah(e){const t=e.flatMap((e=>e.data.filter((e=>null!=e))));return 0===t.length?1:Math.max(...t,1)}function lh(e,t){return t.paddingLeft+t.slotWidth*e+t.slotWidth/2}function sh(e,t,n){const r=Math.max(t,1);return n.paddingTop+n.chartHeight-e/r*n.chartHeight}function ch(e){if(0===e.length)return"";const[t,...n]=e,r=n.map((e=>`L ${e.x} ${e.y}`));return`M ${t.x} ${t.y}${r.length>0?` ${r.join(" ")}`:""}`}function dh(e,t,n){const r=[];let i=[];return e.data.forEach(((o,a)=>{null!=o?i.push({seriesLabel:e.label,color:e.color,value:o,x:lh(a,t),y:sh(o,n,t),categoryIndex:a}):i.length>0&&(r.push(i),i=[])})),i.length>0&&r.push(i),r.map((t=>({seriesLabel:e.label,color:e.color,points:t,d:ch(t)})))}function uh(e,t,n){const r=dh(e,t,n);return{segments:r,points:r.flatMap((e=>e.points))}}const ph=v.path`
|
|
1892
|
+
`,Sm=({items:t,interactive:n=!0,onToggle:r})=>0===t.length?null:e.createElement(Cm,{role:"group","aria-label":"凡例"},t.map((t=>{const i=e.createElement(e.Fragment,null,e.createElement(km,{$color:t.color,$hidden:t.hidden}),e.createElement("span",null,t.label));return n?e.createElement(Em,{key:t.label,type:"button",$hidden:t.hidden,"aria-pressed":!t.hidden,"aria-label":`${t.label}を${t.hidden?"表示":"非表示"}にする`,onClick:()=>r(t.label)},i):e.createElement(Im,{key:t.label,$hidden:t.hidden},i)})));const Om=({label:t,datasets:n,categoryIndex:r,clientX:i,clientY:o,valueFormatter:a,showTotal:l=!1})=>{const s=e.useRef(null),[c,d]=e.useState((()=>({left:i,top:o,transform:"translate(8px, -50%)"})));if(e.useLayoutEffect((()=>{const e=s.current;if(null==e||"undefined"==typeof window)return;const{width:t,height:n}=e.getBoundingClientRect();d(function(e,t,n,r,i,o,a=8,l=8){const s=r/2,c=a+s,d=o-a-s,u=c<=d?Math.min(Math.max(t,c),d):o/2;if(i-e-a-l>=n)return{left:e,top:u,transform:`translate(${l}px, -50%)`};if(e-a-l>=n)return{left:e,top:u,transform:`translate(calc(-100% - ${l}px), -50%)`};const p=n/2,m=a+p,h=i-a-p,g=m<=h?Math.min(Math.max(e,m),h):i/2,f=t-a-l,b=o-t-a-l;return f>=r||!(b>=r)&&f>=b?{left:g,top:t,transform:`translate(-50%, calc(-100% - ${l}px))`}:{left:g,top:t,transform:`translate(-50%, ${l}px)`}}(i,o,t,n,window.innerWidth,window.innerHeight))}),[r,i,o,n,t,l]),"undefined"==typeof document)return null;const u=n.reduce(((e,t)=>{const n=t.data[r];return e+(null!=n?n:0)}),0);return k(e.createElement($m,{ref:s,style:{left:c.left,top:c.top,transform:c.transform}},e.createElement(Am,null,t),n.map((t=>{const n=t.data[r];return null==n?null:e.createElement(Lm,{key:t.label},e.createElement(Vm,{$color:t.color}),e.createElement("span",null,t.label,": ",a(n)))})),l&&e.createElement(Hm,null,"Total: ",a(u))),document.body)};function Dm(e,t){return e.filter((e=>!t.has(e.label)))}function Rm(e,t,n){const r=new Set(e);if(r.has(t))return r.delete(t),r;return n.filter((t=>!e.has(t))).length<=1?e:(r.add(t),r)}function zm(e,t){const n=Math.max(e,1),r=[];for(let e=0;e<=t;e+=1){const i=Math.round(n/t*e);0!==r.length&&r[r.length-1]===i||r.push(i)}return r}function Nm(e){var t,n;if(0===e.length)return 1;const r=null!==(n=null===(t=e[0])||void 0===t?void 0:t.length)&&void 0!==n?n:0;let i=0;for(let t=0;t<r;t+=1){const n=e.reduce(((e,n)=>{const r=n[t];return e+(null!=r?r:0)}),0);i=Math.max(i,n)}return Math.max(i,1)}function Tm(e,t,n,r,i="vertical"){var o,a;const l=null!==(a=null===(o=e[0])||void 0===o?void 0:o.data.length)&&void 0!==a?a:0;return"horizontal"===i?"stacked"===t?function(e,t,n,r){const i=[];for(let o=0;o<r;o+=1){let r=0;const a=t.paddingTop+t.slotWidth*o+(t.slotWidth-t.barWidth)/2;e.forEach((e=>{var l;const s=null!==(l=e.data[o])&&void 0!==l?l:0;if(s<=0)return;const c=s/n*t.chartWidth,d=t.paddingLeft+r;r+=c,i.push({seriesLabel:e.label,color:e.color,value:s,x:d,y:a,width:c,height:t.barWidth,categoryIndex:o})}))}return i}(e,n,r,l):"grouped"===t?function(e,t,n,r){const i=[],o=t.groupWidth,a=o/Math.max(e.length,1);for(let l=0;l<r;l+=1){const r=t.paddingTop+t.slotWidth*l+(t.slotWidth-o)/2;e.forEach(((e,o)=>{const s=e.data[l];if(null==s||s<=0)return;const c=s/n*t.chartWidth,d=r+a*o,u=t.paddingLeft;i.push({seriesLabel:e.label,color:e.color,value:s,x:u,y:d,width:c,height:a,categoryIndex:l})}))}return i}(e,n,r,l):function(e,t,n,r){if(!e)return[];const i=[];for(let o=0;o<r;o+=1){const r=e.data[o];if(null==r||r<=0)continue;const a=r/n*t.chartWidth,l=t.paddingTop+t.slotWidth*o+(t.slotWidth-t.barWidth)/2,s=t.paddingLeft;i.push({seriesLabel:e.label,color:e.color,value:r,x:s,y:l,width:a,height:t.barWidth,categoryIndex:o})}return i}(e[0],n,r,l):"stacked"===t?function(e,t,n,r){const i=[];for(let o=0;o<r;o+=1){let r=0;const a=t.paddingLeft+t.slotWidth*o+(t.slotWidth-t.barWidth)/2;e.forEach((e=>{var l;const s=null!==(l=e.data[o])&&void 0!==l?l:0;if(s<=0)return;const c=s/n*t.chartHeight,d=t.paddingTop+t.chartHeight-r-c;r+=c,i.push({seriesLabel:e.label,color:e.color,value:s,x:a,y:d,width:t.barWidth,height:c,categoryIndex:o})}))}return i}(e,n,r,l):"grouped"===t?function(e,t,n,r){const i=[],o=t.groupWidth,a=o/Math.max(e.length,1);for(let l=0;l<r;l+=1){const r=t.paddingLeft+t.slotWidth*l+(t.slotWidth-o)/2;e.forEach(((e,o)=>{const s=e.data[l];if(null==s||s<=0)return;const c=s/n*t.chartHeight,d=r+a*o,u=t.paddingTop+t.chartHeight-c;i.push({seriesLabel:e.label,color:e.color,value:s,x:d,y:u,width:a,height:c,categoryIndex:l})}))}return i}(e,n,r,l):function(e,t,n,r){if(!e)return[];const i=[];for(let o=0;o<r;o+=1){const r=e.data[o];if(null==r||r<=0)continue;const a=r/n*t.chartHeight,l=t.paddingLeft+t.slotWidth*o+(t.slotWidth-t.barWidth)/2,s=t.paddingTop+t.chartHeight-a;i.push({seriesLabel:e.label,color:e.color,value:r,x:l,y:s,width:t.barWidth,height:a,categoryIndex:o})}return i}(e[0],n,r,l)}function Zm(e,t){return JSON.stringify({categories:e,series:t.map((e=>({label:e.label,length:e.data.length})))})}const Bm=.6,Pm=.8,_m=.1,Gm=1;function jm(e,t){const n=null!=t?t:"grouped"===e?Pm:Bm;return Math.min(Math.max(n,_m),Gm)}const Fm=320,Ym=Fm,Wm={minSlotSize:36,narrowContainerBreakpoint:480,horizontalMinValueWidth:200};function Xm(e,t){return e>14?5:t<24?3:t<36?2:1}function Jm(e){return"horizontal"===e.orientation?function({categoryCount:e,seriesCount:t=1,height:n=Fm,barWidthRatio:r,layout:i="single",containerWidth:o,layoutConfig:a=Wm}){const{minSlotSize:l,narrowContainerBreakpoint:s,horizontalMinValueWidth:c}=a,d=(null!=o?o:Number.POSITIVE_INFINITY)<s?72:96,u=l*Math.max(t,1),p=64+Math.max(e,1)*u,m=d+16+c,h=Math.max(n,p),g=null!=o&&o>0?Math.max(o,m):m,f=g-d-16,b=h-16-48,v=e>0?b/e:b,x=jm(i,r);return{width:g,height:h,paddingTop:16,paddingBottom:48,paddingLeft:d,paddingRight:16,chartWidth:f,chartHeight:b,slotWidth:v,barWidth:v*x,groupWidth:v*x,labelEvery:Xm(e,v),minContentWidth:m,minContentHeight:p,overflowsHorizontally:null!=o&&o>0&&m>o,overflowsVertically:p>n}}(e):function({categoryCount:e,seriesCount:t=1,height:n=Fm,barWidthRatio:r,layout:i="single",containerWidth:o,layoutConfig:a=Wm}){const{minSlotSize:l,narrowContainerBreakpoint:s}=a,c=(null!=o?o:Number.POSITIVE_INFINITY)<s?48:72,d=l*Math.max(t,1),u=c+16+Math.max(e,1)*d,p=null!=o&&o>0?Math.max(o,u):u,m=p-c-16,h=n-16-48,g=e>0?m/e:m,f=null!=o&&o>0?Math.min(o,p)-c-16:m,b=e>0?f/e:f,v=jm(i,r);return{width:p,height:n,paddingTop:16,paddingBottom:48,paddingLeft:c,paddingRight:16,chartWidth:m,chartHeight:h,slotWidth:g,barWidth:g*v,groupWidth:g*v,labelEvery:Xm(e,Math.min(g,b)),minContentWidth:u,minContentHeight:n,overflowsHorizontally:null!=o&&o>0&&u>o,overflowsVertically:!1}}(e)}function Um(e,t){return 0!==e.length&&0!==t.length&&t.some((e=>e.data.some((e=>null!=e&&e>0))))}function Qm(e,t,n){const r=te(t,n);return e.map(((e,t)=>{var n;return{label:e.label,color:null!==(n=e.color)&&void 0!==n?n:r[t%r.length],data:e.data}}))}function qm(e,t){return e<=1?"single":null!=t?t:"grouped"}const Km=({orientation:t,width:n,height:r,paddingLeft:i,paddingRight:o,paddingTop:a,paddingBottom:l,chartWidth:s,chartHeight:c,ticks:d,maxValue:u,valueFormatter:p})=>{const m=ne(),h=ee(m),g=h.axis.color,f=Math.max(u,1),b=2*m.spacing,v=m.spacing;return"horizontal"===t?e.createElement(e.Fragment,null,d.map((t=>{const n=i+t/f*s;return e.createElement("g",{key:t},e.createElement("line",{x1:n,x2:n,y1:a,y2:a+c,stroke:h.grid,strokeWidth:1}),e.createElement("text",{x:n,y:r-l+b,textAnchor:"middle",fontSize:h.axis.fontSize,fill:g},p(t)))}))):e.createElement(e.Fragment,null,d.map((t=>{const r=a+c-t/f*c;return e.createElement("g",{key:t},e.createElement("line",{x1:i,x2:n-o,y1:r,y2:r,stroke:h.grid,strokeWidth:1}),e.createElement("text",{x:i-v,y:r,textAnchor:"end",dominantBaseline:"middle",fontSize:h.axis.fontSize,fill:g},p(t)))})))},eh=({orientation:t,labels:n,height:r,paddingBottom:i,paddingLeft:o,paddingTop:a,slotWidth:l,labelEvery:s})=>{const c=ne(),d=ee(c),u=d.axis.color,p=2*c.spacing,m=c.spacing;return"horizontal"===t?n.map(((t,r)=>{if(!(r%s==0||r===n.length-1))return null;const i=a+l*r+l/2,c=`${t}-category-${i}`;return e.createElement("text",{key:c,x:o-m,y:i,textAnchor:"end",dominantBaseline:"middle",fontSize:d.axis.fontSize,fill:u},t)})):n.map(((t,a)=>{if(!(a%s==0||a===n.length-1))return null;const c=o+l*a+l/2,m=`${t}-category-${c}`;return e.createElement("text",{key:m,x:c,y:r-i+p,textAnchor:"middle",fontSize:d.axis.fontSize,fill:u},t)}))};function th(e){return`${Number(e.toFixed(1))}%`}function nh(e){var t,n;if(0===e.length)return[];const r=null!==(n=null===(t=e[0])||void 0===t?void 0:t.data.length)&&void 0!==n?n:0;return e.map((t=>({label:t.label,color:t.color,data:Array.from({length:r},((n,r)=>{const i=e.reduce(((e,t)=>{const n=t.data[r];return e+(null!=n&&n>0?n:0)}),0),o=t.data[r];return null==o||o<=0||i<=0?null:o/i*100}))})))}function rh(){const t=e.useRef(null),[n,r]=e.useState(void 0);return e.useEffect((()=>{const e=t.current;if(!e)return;const n=()=>{r(e.getBoundingClientRect().width)};if(n(),"undefined"==typeof ResizeObserver)return;const i=new ResizeObserver((()=>{n()}));return i.observe(e),()=>{i.disconnect()}}),[]),{containerRef:t,containerWidth:n}}const ih=e=>e.toLocaleString(),oh=({categories:t,series:n,layout:r,valueScale:i="absolute",orientation:o="vertical",colorScheme:a,valueFormatter:l,showLegend:s=!0,showTotalInTooltip:c=!0,interactiveLegend:d=!0,barWidthRatio:u,loading:p=!1,emptyMessage:m="データがありません","aria-label":h,height:g,className:f})=>{var b;const v=null!=l?l:"percent"===i?th:ih,x=ne(),y=ee(x),{containerRef:w,containerWidth:C}=rh(),[E,I]=e.useState(null),[k,M]=e.useState((()=>new Set)),[$,A]=e.useState((()=>new Set)),L=e.useRef(new Map),V=e.useRef(k);V.current=k;const[H,S]=e.useState(!1),{durationMs:O,staggerMs:D}=y.motion,R=Math.round(.65*O),{reflowSegments:z,reflowProgress:N,startReflow:T,cancelReflow:Z,isReflowing:B}=function(t,n){const[r,i]=e.useState(null),[o,a]=e.useState(null),l=e.useRef(0),s=e.useRef(void 0),c=e.useCallback((()=>{var e;0!==l.current&&(cancelAnimationFrame(l.current),l.current=0),i(null),a(null),null===(e=s.current)||void 0===e||e.call(s),s.current=void 0}),[]),d=e.useCallback((()=>{c()}),[c]),u=e.useCallback(((e,r,o,s,c)=>{i(pm(e,r,0,n)),a({phaseIndex:o,phaseCount:s,progress:0});const d=performance.now(),u=p=>{const m=Math.min(1,(p-d)/t);i(pm(e,r,m,n)),a({phaseIndex:o,phaseCount:s,progress:m}),m<1?l.current=requestAnimationFrame(u):(l.current=0,c())};l.current=requestAnimationFrame(u)}),[t,n]),p=e.useCallback(((e,t,n)=>{0!==l.current&&(cancelAnimationFrame(l.current),l.current=0),s.current=n,u(e,t,0,1,(()=>{c()}))}),[c,u]);return e.useEffect((()=>()=>{d()}),[d]),{reflowSegments:r,reflowProgress:o,startReflow:p,cancelReflow:d,isReflowing:null!=o}}(O,o),[P,_]=e.useState(null);e.useEffect((()=>{const e=L.current;return()=>{e.forEach((e=>{window.clearTimeout(e)})),e.clear(),Z()}}),[Z]);const G=e.useMemo((()=>Qm(n,x,a)),[n,x,a]),j=e.useMemo((()=>Zm(t,n)),[t,n]),F=e.useMemo((()=>G.map((e=>e.label))),[G]);e.useEffect((()=>{const e=new Set;V.current=e,M(e),A(new Set),L.current.forEach((e=>{window.clearTimeout(e)})),L.current.clear(),S(!1),Z(),_(null)}),[Z,j,i]);const Y=e.useCallback(((e,t)=>"percent"===i&&"stacked"===t?nh(e):e),[i]),W=e.useCallback(((e,t)=>"percent"===i&&"stacked"===t?100:function(e,t){if("stacked"===t)return Nm(e.map((e=>e.data)));const n=e.flatMap((e=>e.data.filter((e=>null!=e))));return Math.max(...n,1)}(e,t)),[i]);e.useEffect((()=>{if(H)return;const e=n.length*t.length,r=window.setTimeout((()=>{S(!0)}),O+Math.min(e*D,O+80)+16);return()=>{window.clearTimeout(r)}}),[t.length,j,O,H,n.length,D]);const X=e.useMemo((()=>Dm(G,k)),[G,k]),J=qm(X.length,r),U=s&&G.length>1,Q=function(e,t){return!(e<=1||"stacked"!==t&&"grouped"!==t&&void 0!==t)}(G.length,r),q=e.useCallback(((e,n)=>{const i=Dm(G,e),a=qm(i.length,r),l=Jm({categoryCount:t.length,seriesCount:"grouped"===a?i.length:1,height:g,barWidthRatio:u,layout:a,orientation:o,layoutConfig:y.layout,containerWidth:C}),s=Y(i,a),c=W(i,a),d=null!=n?n:c;return{visibleSeries:i,layout:a,chartLayout:l,maxValue:d,segments:Tm(s,a,l,d,o)}}),[u,t.length,y.layout,C,g,r,o,Y,W,G]),K=q(k),{chartLayout:te,maxValue:re,segments:ie}=K,oe=null!=z?z:ie,ae=null!=P?function(e,t,n){return null==n?t:e+(t-e)*cm(n.progress)}(P.fromMaxValue,P.toMaxValue,N):re,le=zm(ae,4),se=e.useRef(ie);se.current=oe;const ce=e.useCallback((()=>{_(null)}),[]),de=e.useCallback(((e,t,n)=>{if(!Q)return;const r=q(t);_({fromMaxValue:n,toMaxValue:r.maxValue}),T(e,r.segments,ce)}),[ce,q,T,Q]),ue=()=>{I(null)},pe=null!=g?g:Ym;if(p)return e.createElement(xm,{ref:w,className:f},e.createElement(Mm,{$minHeight:pe,role:"status","aria-label":`${h}(読み込み中)`},e.createElement(rl,{width:"32px"})));if(!Um(t,n))return e.createElement(xm,{ref:w,className:f},e.createElement(Mm,{$minHeight:pe,role:"status","aria-live":"polite","aria-label":`${h}(${m})`},m));const me=Y(X,J).map((e=>({label:e.label,color:e.color,data:e.data})));return e.createElement(xm,{ref:w,className:f},e.createElement(ym,{$overflowX:te.overflowsHorizontally,$overflowY:te.overflowsVertically,role:te.overflowsHorizontally?"region":void 0,"aria-label":te.overflowsHorizontally?`${h}(横スクロールで全体を表示)`:void 0,tabIndex:te.overflowsHorizontally?0:void 0},e.createElement(wm,{role:"img","aria-label":h,width:te.width,height:te.height,viewBox:`0 0 ${te.width} ${te.height}`,$minWidth:te.minContentWidth,$minHeight:te.minContentHeight},e.createElement(Km,{orientation:o,width:te.width,height:te.height,paddingLeft:te.paddingLeft,paddingRight:te.paddingRight,paddingTop:te.paddingTop,paddingBottom:te.paddingBottom,chartWidth:te.chartWidth,chartHeight:te.chartHeight,ticks:le,maxValue:ae,valueFormatter:v}),oe.map(((t,n)=>{return e.createElement(vm,{key:`${t.categoryIndex}-${t.seriesLabel}`,segment:t,orientation:o,animation:(r=t.seriesLabel,$.has(r)?"exit":B||H?"none":"enter"),enterIndex:n,durationMs:$.has(t.seriesLabel)?R:O,staggerMs:D,onPointerMove:e=>((e,t)=>{I({categoryIndex:t,clientX:e.clientX,clientY:e.clientY})})(e,t.categoryIndex),onPointerLeave:ue});var r})),e.createElement(eh,{orientation:o,labels:t,height:te.height,paddingBottom:te.paddingBottom,paddingLeft:te.paddingLeft,paddingTop:te.paddingTop,slotWidth:te.slotWidth,labelEvery:te.labelEvery}))),U&&e.createElement(Sm,{interactive:d,items:G.map((e=>({label:e.label,color:e.color,hidden:k.has(e.label)||$.has(e.label)}))),onToggle:e=>{I(null),S(!0),Z(),ce();const t=L.current.get(e);if(null!=t&&(window.clearTimeout(t),L.current.delete(e)),k.has(e)){const t=se.current,n=q(k).maxValue,r=Rm(k,e,F);return V.current=r,M(r),void de(t,r,n)}if(Rm(k,e,F)===k)return;const n=q(k).maxValue;A((t=>new Set(t).add(e)));const r=window.setTimeout((()=>{const t=se.current.filter((t=>t.seriesLabel!==e)),r=function(e,t){const n=new Set(e);return n.add(t),n}(V.current,e);V.current=r,M(r),A((t=>{const n=new Set(t);return n.delete(e),n})),L.current.delete(e),de(t,r,n)}),R);L.current.set(e,r)}}),null!=E&&me.length>0&&e.createElement(Om,{showTotal:"stacked"===J&&c,label:null!==(b=t[E.categoryIndex])&&void 0!==b?b:"",datasets:me,categoryIndex:E.categoryIndex,clientX:E.clientX,clientY:E.clientY,valueFormatter:v}))};function ah(e){const t=e.flatMap((e=>e.data.filter((e=>null!=e))));return 0===t.length?1:Math.max(...t,1)}function lh(e,t){return t.paddingLeft+t.slotWidth*e+t.slotWidth/2}function sh(e,t,n){const r=Math.max(t,1);return n.paddingTop+n.chartHeight-e/r*n.chartHeight}function ch(e){if(0===e.length)return"";const[t,...n]=e,r=n.map((e=>`L ${e.x} ${e.y}`));return`M ${t.x} ${t.y}${r.length>0?` ${r.join(" ")}`:""}`}function dh(e,t,n){const r=[];let i=[];return e.data.forEach(((o,a)=>{null!=o?i.push({seriesLabel:e.label,color:e.color,value:o,x:lh(a,t),y:sh(o,n,t),categoryIndex:a}):i.length>0&&(r.push(i),i=[])})),i.length>0&&r.push(i),r.map((t=>({seriesLabel:e.label,color:e.color,points:t,d:ch(t)})))}function uh(e,t,n){const r=dh(e,t,n);return{segments:r,points:r.flatMap((e=>e.points))}}const ph=v.path`
|
|
1893
1893
|
fill: none;
|
|
1894
1894
|
stroke-linecap: round;
|
|
1895
1895
|
stroke-linejoin: round;
|
|
@@ -1902,7 +1902,7 @@ object-assign
|
|
|
1902
1902
|
transition: opacity
|
|
1903
1903
|
${({theme:e})=>ee(e).motion.durationMs}ms
|
|
1904
1904
|
cubic-bezier(0.16, 1, 0.3, 1);
|
|
1905
|
-
`,hh=({segments:t,points:n,showPoints:r,strokeWidth:i,pointRadius:o,hidden:a})=>e.createElement("g",{"aria-hidden":a},t.map((t=>t.d?e.createElement(ph,{key:`${t.seriesLabel}-${t.points.map((e=>e.categoryIndex)).join("-")}`,d:t.d,stroke:t.color,strokeWidth:i,$hidden:a}):null)),r&&n.map((t=>e.createElement(mh,{key:`${t.seriesLabel}-${t.categoryIndex}`,cx:t.x,cy:t.y,r:o,fill:t.color,stroke:t.color,strokeWidth:1,$hidden:a})))),gh=({categoryCount:t,paddingLeft:n,paddingTop:r,slotWidth:i,chartHeight:o,onPointerMove:a,onPointerLeave:l})=>e.createElement(e.Fragment,null,Array.from({length:t},((t,s)=>e.createElement("rect",{key:`hover-${s}`,x:n+i*s,y:r,width:i,height:o,fill:"transparent",onPointerMove:e=>a(e,s),onPointerLeave:l})))),fh=({x:t,paddingTop:n,chartHeight:r,color:i})=>e.createElement("line",{x1:t,x2:t,y1:n,y2:n+r,stroke:i,strokeWidth:1,strokeDasharray:"4 4",pointerEvents:"none"});function bh(e,t){return 0!==e.length&&0!==t.length&&t.some((e=>e.data.some((e=>null!=e))))}const vh=e=>e.toLocaleString(),xh=({categories:t,series:n,colorScheme:r,valueFormatter:i=vh,showLegend:o=!0,showPoints:a=!0,interactiveLegend:l=!0,loading:s=!1,emptyMessage:c="データがありません","aria-label":d,height:u,className:p})=>{var m;const h=ne(),g=ee(h),{containerRef:f,containerWidth:b}=rh(),[v,x]=e.useState(null),[y,w]=e.useState((()=>new Set)),C=e.useMemo((()=>Qm(n,h,r)),[n,h,r]),E=e.useMemo((()=>Zm(t,n)),[t,n]),I=e.useMemo((()=>C.map((e=>e.label))),[C]);e.useEffect((()=>{w(new Set)}),[E]);const k=o&&C.length>1,M=e.useMemo((()=>Jm({categoryCount:t.length,seriesCount:1,height:u,layout:"single",layoutConfig:g.layout,containerWidth:b})),[t.length,g.layout,b,u]),$=e.useMemo((()=>Dm(C,y)),[C,y]),A=ah($),L=e.useMemo((()=>new Map(C.map((e=>[e.label,uh(e,M,A)])))),[M,A,C]),V=zm(A,4),H=null!=u?u:Ym;if(s)return e.createElement(xm,{ref:f,className:p},e.createElement(Mm,{$minHeight:H,role:"status","aria-label":`${d}(読み込み中)`},e.createElement(rl,{width:"32px"})));if(!bh(t,n))return e.createElement(xm,{ref:f,className:p},e.createElement(Mm,{$minHeight:H,role:"status","aria-live":"polite","aria-label":`${d}(${c})`},c));const
|
|
1905
|
+
`,hh=({segments:t,points:n,showPoints:r,strokeWidth:i,pointRadius:o,hidden:a})=>e.createElement("g",{"aria-hidden":a},t.map((t=>t.d?e.createElement(ph,{key:`${t.seriesLabel}-${t.points.map((e=>e.categoryIndex)).join("-")}`,d:t.d,stroke:t.color,strokeWidth:i,$hidden:a}):null)),r&&n.map((t=>e.createElement(mh,{key:`${t.seriesLabel}-${t.categoryIndex}`,cx:t.x,cy:t.y,r:o,fill:t.color,stroke:t.color,strokeWidth:1,$hidden:a})))),gh=({categoryCount:t,paddingLeft:n,paddingTop:r,slotWidth:i,chartHeight:o,onPointerMove:a,onPointerLeave:l})=>e.createElement(e.Fragment,null,Array.from({length:t},((t,s)=>e.createElement("rect",{key:`hover-${s}`,x:n+i*s,y:r,width:i,height:o,fill:"transparent",onPointerMove:e=>a(e,s),onPointerLeave:l})))),fh=({x:t,paddingTop:n,chartHeight:r,color:i})=>e.createElement("line",{x1:t,x2:t,y1:n,y2:n+r,stroke:i,strokeWidth:1,strokeDasharray:"4 4",pointerEvents:"none"});function bh(e,t){return 0!==e.length&&0!==t.length&&t.some((e=>e.data.some((e=>null!=e))))}const vh=e=>e.toLocaleString(),xh=({categories:t,series:n,colorScheme:r,valueFormatter:i=vh,showLegend:o=!0,showPoints:a=!0,interactiveLegend:l=!0,loading:s=!1,emptyMessage:c="データがありません","aria-label":d,height:u,className:p})=>{var m;const h=ne(),g=ee(h),{containerRef:f,containerWidth:b}=rh(),[v,x]=e.useState(null),[y,w]=e.useState((()=>new Set)),C=e.useMemo((()=>Qm(n,h,r)),[n,h,r]),E=e.useMemo((()=>Zm(t,n)),[t,n]),I=e.useMemo((()=>C.map((e=>e.label))),[C]);e.useEffect((()=>{w(new Set)}),[E]);const k=o&&C.length>1,M=e.useMemo((()=>Jm({categoryCount:t.length,seriesCount:1,height:u,layout:"single",layoutConfig:g.layout,containerWidth:b})),[t.length,g.layout,b,u]),$=e.useMemo((()=>Dm(C,y)),[C,y]),A=ah($),L=e.useMemo((()=>new Map(C.map((e=>[e.label,uh(e,M,A)])))),[M,A,C]),V=zm(A,4),H=null!=u?u:Ym;if(s)return e.createElement(xm,{ref:f,className:p},e.createElement(Mm,{$minHeight:H,role:"status","aria-label":`${d}(読み込み中)`},e.createElement(rl,{width:"32px"})));if(!bh(t,n))return e.createElement(xm,{ref:f,className:p},e.createElement(Mm,{$minHeight:H,role:"status","aria-live":"polite","aria-label":`${d}(${c})`},c));const S=$.map((e=>({label:e.label,color:e.color,data:e.data}))),O=null!=v?lh(v.categoryIndex,M):null;return e.createElement(xm,{ref:f,className:p},e.createElement(ym,{$overflowX:M.overflowsHorizontally,$overflowY:M.overflowsVertically,role:M.overflowsHorizontally?"region":void 0,"aria-label":M.overflowsHorizontally?`${d}(横スクロールで全体を表示)`:void 0,tabIndex:M.overflowsHorizontally?0:void 0},e.createElement(wm,{role:"img","aria-label":d,width:M.width,height:M.height,viewBox:`0 0 ${M.width} ${M.height}`,$minWidth:M.minContentWidth,$minHeight:M.minContentHeight},e.createElement(Km,{orientation:"vertical",width:M.width,height:M.height,paddingLeft:M.paddingLeft,paddingRight:M.paddingRight,paddingTop:M.paddingTop,paddingBottom:M.paddingBottom,chartWidth:M.chartWidth,chartHeight:M.chartHeight,ticks:V,maxValue:A,valueFormatter:i}),C.map((t=>{var n,r;const i=L.get(t.label);return e.createElement(hh,{key:t.label,segments:null!==(n=null==i?void 0:i.segments)&&void 0!==n?n:[],points:null!==(r=null==i?void 0:i.points)&&void 0!==r?r:[],showPoints:a,strokeWidth:g.line.strokeWidth,pointRadius:g.line.pointRadius,hidden:y.has(t.label)})})),null!=O&&e.createElement(fh,{x:O,paddingTop:M.paddingTop,chartHeight:M.chartHeight,color:g.line.crosshairColor}),e.createElement(eh,{orientation:"vertical",labels:t,height:M.height,paddingBottom:M.paddingBottom,paddingLeft:M.paddingLeft,paddingTop:M.paddingTop,slotWidth:M.slotWidth,labelEvery:M.labelEvery}),e.createElement(gh,{categoryCount:t.length,paddingLeft:M.paddingLeft,paddingTop:M.paddingTop,slotWidth:M.slotWidth,chartHeight:M.chartHeight,onPointerMove:(e,t)=>{x({categoryIndex:t,clientX:e.clientX,clientY:e.clientY})},onPointerLeave:()=>{x(null)}}))),k&&e.createElement(Sm,{interactive:l,items:C.map((e=>({label:e.label,color:e.color,hidden:y.has(e.label)}))),onToggle:e=>{x(null),w((t=>Rm(t,e,I)))}}),null!=v&&S.length>0&&e.createElement(Om,{label:null!==(m=t[v.categoryIndex])&&void 0!==m?m:"",datasets:S,categoryIndex:v.categoryIndex,clientX:v.clientX,clientY:v.clientY,valueFormatter:i}))};function yh(e){const t=e.split("/");return t.length>=3?[t[1],t[2]].map((e=>e.padStart(2,"0"))).join("/"):e}function wh(e,t){const n=e.split("/"),r=t.split("/");if(n.length<3||r.length<3)return e.localeCompare(t);for(let i=0;i<3;i+=1){const o=Number(n[i]),a=Number(r[i]);if(Number.isNaN(o)||Number.isNaN(a))return e.localeCompare(t);if(o!==a)return o-a}return 0}function Ch(e,t=yh){const n=Array.from(new Set(e.flatMap((e=>e.data.map((e=>e.date)))))).sort(wh);return{categories:n.map(t),series:e.map((e=>{const t=new Map(e.data.map((e=>[e.date,e.value])));return{label:e.label,data:n.map((e=>{var n;return null!==(n=t.get(e))&&void 0!==n?n:null}))}}))}}const Eh=v.div`
|
|
1906
1906
|
display: flex;
|
|
1907
1907
|
flex-direction: column;
|
|
1908
1908
|
align-items: stretch;
|
|
@@ -1991,7 +1991,7 @@ object-assign
|
|
|
1991
1991
|
font-weight: 400;
|
|
1992
1992
|
line-height: 1.5;
|
|
1993
1993
|
color: ${({theme:e,$disabled:t})=>t?e.palette.text.disabled:e.palette.text.secondary};
|
|
1994
|
-
`,Hh=e.forwardRef((function({checked:t,disabled:n=!1,header:r,onHeaderClick:i,slot:o,slotExpansion:a="whenChecked"},l){const s=null!=o,c=s&&("always"===a||"whenChecked"===a&&t);return e.createElement(Eh,{ref:l,$checked:t,$disabled:!!n},e.createElement(Ih,{$checked:t,$disabled:!!n,$clickable:!!i&&!n,onClick:i},r),s?e.createElement(kh,{$open:c},e.createElement(Mh,null,e.createElement($h,{$checked:t,$disabled:!!n},o))):null)}));function
|
|
1994
|
+
`,Hh=e.forwardRef((function({checked:t,disabled:n=!1,header:r,onHeaderClick:i,slot:o,slotExpansion:a="whenChecked"},l){const s=null!=o,c=s&&("always"===a||"whenChecked"===a&&t);return e.createElement(Eh,{ref:l,$checked:t,$disabled:!!n},e.createElement(Ih,{$checked:t,$disabled:!!n,$clickable:!!i&&!n,onClick:i},r),s?e.createElement(kh,{$open:c},e.createElement(Mh,null,e.createElement($h,{$checked:t,$disabled:!!n},o))):null)}));function Sh(t,n){const r=e.useRef(null),i=e.useRef(null),o=e.useCallback((e=>{r.current=e,n&&("function"==typeof n?n(e):n.current=e)}),[n]),a=e.useCallback((e=>{var n,o;t||(null===(n=i.current)||void 0===n?void 0:n.contains(e.target))||null===(o=r.current)||void 0===o||o.click()}),[t]);return{controlWrapRef:i,assignInputRef:o,handleHeaderClick:a}}function Oh(e){return null!=e&&("string"!=typeof e||e.trim().length>0)}const Dh=e.forwardRef((function(t,n){var{title:r,description:i,slotContent:o,slotExpansion:a="whenChecked",disabled:l,error:s,checked:c,indeterminate:d,inputRef:u}=t,p=D(t,["title","description","slotContent","slotExpansion","disabled","error","checked","indeterminate","inputRef"]);const m=!!c,{controlWrapRef:h,assignInputRef:g,handleHeaderClick:f}=Sh(l,u),b=e.createElement(Lh,null,e.createElement(Ah,{ref:h},e.createElement(Kd,Object.assign({},p,{checked:c,disabled:l,error:s,indeterminate:d,inputRef:g}),r)),Oh(i)?e.createElement(Vh,{$disabled:!!l},i):null);return e.createElement(Hh,{ref:n,checked:m,disabled:l,header:b,slot:o,slotExpansion:a,onHeaderClick:f})})),Rh=({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:Vc(r,n.ref)});return e.cloneElement(n,o)},zh=w`
|
|
1995
1995
|
0% {
|
|
1996
1996
|
transform: translate(-50%, calc(-50% + 8px));
|
|
1997
1997
|
}
|
|
@@ -2163,10 +2163,10 @@ object-assign
|
|
|
2163
2163
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
2164
2164
|
box-shadow: ${({theme:e})=>No(5,e.palette.action.shadowOpacity,e.palette.action.shadowBase)};
|
|
2165
2165
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
2166
|
-
`,og=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=D(t,["isOpen","onClose","baseElement","offset","positionPriority","modalProps","children"]);const{placements:u,isAuto:p}=
|
|
2166
|
+
`,og=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=D(t,["isOpen","onClose","baseElement","offset","positionPriority","modalProps","children"]);const{placements:u,isAuto:p}=Sc(l),{x:m,y:h,refs:g,strategy:f,context:b}=ho({elements:{reference:o},placement:u[0],open:r,middleware:[l.length>0&&!p?mr({padding:24,fallbackPlacements:u}):pr(),hr({mainAxis:a[1],crossAxis:a[0]}),gr({mainAxis:!1})],whileElementsMounted:Vr}),v=Eo(b),{getFloatingProps:x}=fo([v]),y=Vc(n,g.setFloating);return e.createElement(Yh,Object.assign({isOpen:r,backdropProps:{invisible:!0}},s,{onClose:i}),e.createElement(oo,{context:b,modal:!1,initialFocus:-1},e.createElement(ig,Object.assign({ref:y,style:{position:f,top:h,left:m}},x(),d),c)))})),ag=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=D(t,["isOpen","baseElement","contents","positionPriority","onClose","maxHeight","menuListProps","popoverProps"]);Ae("Menu","Menu は非推奨です。代わりに ContextMenu2 を使用してください。");return e.createElement(og,Object.assign({isOpen:r,baseElement:i,positionPriority:a,onClose:l},d),e.createElement(rg,Object.assign({ref:n,contents:o,maxHeight:s},u,c,{onClick:ga((e=>{l&&l(e,"clickMenuList")}),null==c?void 0:c.onClick)})))})),lg=v(Le)`
|
|
2167
2167
|
width: 34px;
|
|
2168
2168
|
height: 34px;
|
|
2169
|
-
`,sg=e.forwardRef((function({contents:t,positionPriority:n=["bottom-start","bottom-end","top-start","top-end"],menuMaxHeight:r="none",menuProps:i,actionButtonProps:o},a){Ae("ContextMenu","ContextMenu は非推奨です。代わりに ContextMenu2 を使用してください。");const[l,s]=e.useState(null),[c,d]=e.useState(!1),u=e=>()=>{d(e)},p=Vc(s,a);return e.createElement(e.Fragment,null,e.createElement(lg,Object.assign({ref:p,"data-testid":"icon-wrapper",icon:"more_vert",onClick:u(!c)},o)),e.createElement(ag,Object.assign({isOpen:c,baseElement:l,contents:t,positionPriority:n,maxHeight:r},i,{onClose:ga(u(!1),null==i?void 0:i.onClose)})))}));function cg(e){return cg="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},cg(e)}function dg(e){var t=function(e,t){if("object"!=cg(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=cg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cg(t)?t:t+""}function ug(e,t,n){return(t=dg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pg(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 mg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pg(Object(n),!0).forEach((function(t){ug(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hg(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,dg(r.key),r)}}function gg(e){return gg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gg(e)}function fg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fg=function(){return!!e})()}function bg(e){var t=fg();return function(){var n,r=gg(e);if(t){var i=gg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==cg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return pc(e)}(this,n)}}function vg(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 xg(e,t){if(e){if("string"==typeof e)return vg(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)?vg(e,t):void 0}}function yg(e){return function(e){if(Array.isArray(e))return vg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xg(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 wg=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}(),Cg="-ms-",Eg="-moz-",Ig="-webkit-",kg="comm",Mg="rule",$g="decl",Ag="@keyframes",Lg=Math.abs,Vg=String.fromCharCode,Hg=Object.assign;function Og(e){return e.trim()}function Sg(e,t,n){return e.replace(t,n)}function Dg(e,t){return e.indexOf(t)}function Rg(e,t){return 0|e.charCodeAt(t)}function zg(e,t,n){return e.slice(t,n)}function Ng(e){return e.length}function Tg(e){return e.length}function Zg(e,t){return t.push(e),e}var Bg=1,Pg=1,_g=0,Gg=0,jg=0,Fg="";function Yg(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Bg,column:Pg,length:a,return:""}}function Wg(e,t){return Hg(Yg("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xg(){return jg=Gg>0?Rg(Fg,--Gg):0,Pg--,10===jg&&(Pg=1,Bg--),jg}function Jg(){return jg=Gg<_g?Rg(Fg,Gg++):0,Pg++,10===jg&&(Pg=1,Bg++),jg}function Ug(){return Rg(Fg,Gg)}function Qg(){return Gg}function qg(e,t){return zg(Fg,e,t)}function Kg(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 ef(e){return Bg=Pg=1,_g=Ng(Fg=e),Gg=0,[]}function tf(e){return Fg="",e}function nf(e){return Og(qg(Gg-1,af(91===e?e+2:40===e?e+1:e)))}function rf(e){for(;(jg=Ug())&&jg<33;)Jg();return Kg(e)>2||Kg(jg)>3?"":" "}function of(e,t){for(;--t&&Jg()&&!(jg<48||jg>102||jg>57&&jg<65||jg>70&&jg<97););return qg(e,Qg()+(t<6&&32==Ug()&&32==Jg()))}function af(e){for(;Jg();)switch(jg){case e:return Gg;case 34:case 39:34!==e&&39!==e&&af(jg);break;case 40:41===e&&af(e);break;case 92:Jg()}return Gg}function lf(e,t){for(;Jg()&&e+jg!==57&&(e+jg!==84||47!==Ug()););return"/*"+qg(t,Gg-1)+"*"+Vg(47===e?e:Jg())}function sf(e){for(;!Kg(Ug());)Jg();return qg(e,Gg)}function cf(e){return tf(df("",null,null,null,[""],e=ef(e),0,[0],e))}function df(e,t,n,r,i,o,a,l,s){for(var c=0,d=0,u=a,p=0,m=0,h=0,g=1,f=1,b=1,v=0,x="",y=i,w=o,C=r,E=x;f;)switch(h=v,v=Jg()){case 40:if(108!=h&&58==Rg(E,u-1)){-1!=Dg(E+=Sg(nf(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:E+=nf(v);break;case 9:case 10:case 13:case 32:E+=rf(h);break;case 92:E+=of(Qg()-1,7);continue;case 47:switch(Ug()){case 42:case 47:Zg(pf(lf(Jg(),Qg()),t,n),s);break;default:E+="/"}break;case 123*g:l[c++]=Ng(E)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:f=0;case 59+d:-1==b&&(E=Sg(E,/\f/g,"")),m>0&&Ng(E)-u&&Zg(m>32?mf(E+";",r,n,u-1):mf(Sg(E," ","")+";",r,n,u-2),s);break;case 59:E+=";";default:if(Zg(C=uf(E,t,n,c,d,i,l,x,y=[],w=[],u),o),123===v)if(0===d)df(E,t,C,C,y,o,u,l,w);else switch(99===p&&110===Rg(E,3)?100:p){case 100:case 108:case 109:case 115:df(e,C,C,r&&Zg(uf(e,C,C,0,0,i,l,x,i,y=[],u),w),i,w,u,l,r?y:w);break;default:df(E,C,C,C,[""],w,0,l,w)}}c=d=m=0,g=b=1,x=E="",u=a;break;case 58:u=1+Ng(E),m=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Xg())continue;switch(E+=Vg(v),v*g){case 38:b=d>0?1:(E+="\f",-1);break;case 44:l[c++]=(Ng(E)-1)*b,b=1;break;case 64:45===Ug()&&(E+=nf(Jg())),p=Ug(),d=u=Ng(x=E+=sf(Qg())),v++;break;case 45:45===h&&2==Ng(E)&&(g=0)}}return o}function uf(e,t,n,r,i,o,a,l,s,c,d){for(var u=i-1,p=0===i?o:[""],m=Tg(p),h=0,g=0,f=0;h<r;++h)for(var b=0,v=zg(e,u+1,u=Lg(g=a[h])),x=e;b<m;++b)(x=Og(g>0?p[b]+" "+v:Sg(v,/&\f/g,p[b])))&&(s[f++]=x);return Yg(e,t,n,0===i?Mg:l,s,c,d)}function pf(e,t,n){return Yg(e,t,n,kg,Vg(jg),zg(e,2,-2),0)}function mf(e,t,n,r){return Yg(e,t,n,$g,zg(e,0,r),zg(e,r+1,-1),r)}function hf(e,t){for(var n="",r=Tg(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function gf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case $g:return e.return=e.return||e.value;case kg:return"";case Ag:return e.return=e.value+"{"+hf(e.children,r)+"}";case Mg:e.value=e.props.join(",")}return Ng(n=hf(e.children,r))?e.return=e.value+"{"+n+"}":""}function ff(e){var t=Tg(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 bf(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var vf=function(e,t,n){for(var r=0,i=0;r=i,i=Ug(),38===r&&12===i&&(t[n]=1),!Kg(i);)Jg();return qg(e,Gg)},xf=function(e,t){return tf(function(e,t){var n=-1,r=44;do{switch(Kg(r)){case 0:38===r&&12===Ug()&&(t[n]=1),e[n]+=vf(Gg-1,t,n);break;case 2:e[n]+=nf(r);break;case 4:if(44===r){e[++n]=58===Ug()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Vg(r)}}while(r=Jg());return e}(ef(e),t))},yf=new WeakMap,wf=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)||yf.get(n))&&!r){yf.set(e,!0);for(var i=[],o=xf(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]}}},Cf=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Ef=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},If=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},kf=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Mf=function(e,t,n){If(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."),kf(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!If(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."),kf(e)))};function $f(e,t){switch(function(e,t){return 45^Rg(e,0)?(((t<<2^Rg(e,0))<<2^Rg(e,1))<<2^Rg(e,2))<<2^Rg(e,3):0}(e,t)){case 5103:return Ig+"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 Ig+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ig+e+Eg+e+Cg+e+e;case 6828:case 4268:return Ig+e+Cg+e+e;case 6165:return Ig+e+Cg+"flex-"+e+e;case 5187:return Ig+e+Sg(e,/(\w+).+(:[^]+)/,Ig+"box-$1$2"+Cg+"flex-$1$2")+e;case 5443:return Ig+e+Cg+"flex-item-"+Sg(e,/flex-|-self/,"")+e;case 4675:return Ig+e+Cg+"flex-line-pack"+Sg(e,/align-content|flex-|-self/,"")+e;case 5548:return Ig+e+Cg+Sg(e,"shrink","negative")+e;case 5292:return Ig+e+Cg+Sg(e,"basis","preferred-size")+e;case 6060:return Ig+"box-"+Sg(e,"-grow","")+Ig+e+Cg+Sg(e,"grow","positive")+e;case 4554:return Ig+Sg(e,/([^-])(transform)/g,"$1"+Ig+"$2")+e;case 6187:return Sg(Sg(Sg(e,/(zoom-|grab)/,Ig+"$1"),/(image-set)/,Ig+"$1"),e,"")+e;case 5495:case 3959:return Sg(e,/(image-set\([^]*)/,Ig+"$1$`$1");case 4968:return Sg(Sg(e,/(.+:)(flex-)?(.*)/,Ig+"box-pack:$3"+Cg+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ig+e+e;case 4095:case 3583:case 4068:case 2532:return Sg(e,/(.+)-inline(.+)/,Ig+"$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(Ng(e)-1-t>6)switch(Rg(e,t+1)){case 109:if(45!==Rg(e,t+4))break;case 102:return Sg(e,/(.+:)(.+)-([^]+)/,"$1"+Ig+"$2-$3$1"+Eg+(108==Rg(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Dg(e,"stretch")?$f(Sg(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Rg(e,t+1))break;case 6444:switch(Rg(e,Ng(e)-3-(~Dg(e,"!important")&&10))){case 107:return Sg(e,":",":"+Ig)+e;case 101:return Sg(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ig+(45===Rg(e,14)?"inline-":"")+"box$3$1"+Ig+"$2$3$1"+Cg+"$2box$3")+e}break;case 5936:switch(Rg(e,t+11)){case 114:return Ig+e+Cg+Sg(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ig+e+Cg+Sg(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ig+e+Cg+Sg(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ig+e+Cg+e+e}return e}var Af,Lf,Vf="undefined"!=typeof document,Hf=Vf?void 0:(Af=function(){return bf((function(){var e={};return function(t){return e[t]}}))},Lf=new WeakMap,function(e){if(Lf.has(e))return Lf.get(e);var t=Af(e);return Lf.set(e,t),t}),Of=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $g:e.return=$f(e.value,e.length);break;case Ag:return hf([Wg(e,{value:Sg(e.value,"@","@"+Ig)})],r);case Mg: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 hf([Wg(e,{props:[Sg(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return hf([Wg(e,{props:[Sg(t,/:(plac\w+)/,":"+Ig+"input-$1")]}),Wg(e,{props:[Sg(t,/:(plac\w+)/,":-moz-$1")]}),Wg(e,{props:[Sg(t,/:(plac\w+)/,Cg+"input-$1")]})],r)}return""}))}}],Sf=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(Vf&&"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||Of;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=[];Vf&&(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=[wf,Cf];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(Ef(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}}),Mf),Vf){var d,u=[gf,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?d.insert(e.return):e.value&&e.type!==kg&&d.insert(e.value+"{}"))}:(s=function(e){d.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=ff(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)}}),hf(cf(e?e+"{"+t.styles+"}":t.styles),p),r&&(b.inserted[t.name]=!0)}}else{var m=[gf],h=ff(c.concat(r,m)),g=Hf(r)(t),f=function(e,t){var n=t.name;return void 0===g[n]&&(g[n]=hf(cf(e?e+"{"+t.styles+"}":t.styles),h)),g[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 wg({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},Df=js,Rf={};Rf[Df.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Rf[Df.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var zf="undefined"!=typeof document;function Nf(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Tf=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===zf&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Zf=function(e,t,n){Tf(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);zf||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!zf&&0!==i.length)return i}};var Bf={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},Pf="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",_f="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Gf=/[A-Z]|^ms/g,jf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ff=function(e){return 45===e.charCodeAt(1)},Yf=function(e){return null!=e&&"boolean"!=typeof e},Wf=bf((function(e){return Ff(e)?e:e.replace(Gf,"-$&").toLowerCase()})),Xf=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(jf,(function(e,t,n){return ib={name:t,styles:n,next:ib},t}))}return 1===Bf[e]||Ff(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var Jf=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Uf=["normal","none","initial","inherit","unset"],Qf=Xf,qf=/^-ms-/,Kf=/-(.)/g,eb={};Xf=function(e,t){if("content"===e&&("string"!=typeof t||-1===Uf.indexOf(t)&&!Jf.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=Qf(e,t);return""===n||Ff(e)||-1===e.indexOf("-")||void 0!==eb[e]||(eb[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(qf,"ms-").replace(Kf,(function(e,t){return t.toUpperCase()}))+"?")),n}}var tb="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function nb(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(tb);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ib={name:n.name,styles:n.styles,next:ib},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ib={name:r.name,styles:r.styles,next:ib},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+=nb(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]+"}":Yf(a)&&(r+=Wf(o)+":"+Xf(o,a)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error(tb);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=nb(e,t,a);switch(o){case"animation":case"animationName":r+=Wf(o)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===o&&console.error(_f),r+=o+"{"+l+"}"}}else for(var s=0;s<a.length;s++)Yf(a[s])&&(r+=Wf(o)+":"+Xf(o,a[s])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var o=ib,a=n(e);return ib=o,nb(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(jf,(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 rb,ib,ob=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(rb=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ab=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="";ib=void 0;var o,a=e[0];null==a||void 0===a.raw?(r=!1,i+=nb(n,t,a)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(Pf),i+=a[0]);for(var l=1;l<e.length;l++)i+=nb(n,t,e[l]),r&&("production"!==process.env.NODE_ENV&&void 0===a[l]&&console.error(Pf),i+=a[l]);"production"!==process.env.NODE_ENV&&(i=i.replace(rb,(function(e){return o=e,""}))),ob.lastIndex=0;for(var s,c="";null!==(s=ob.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:ib,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:ib}},lb="undefined"!=typeof document,sb=function(e){return e()},cb=!!e.useInsertionEffect&&e.useInsertionEffect,db=lb&&cb||sb,ub=cb||e.useLayoutEffect,pb="undefined"!=typeof document,mb={}.hasOwnProperty,hb=e.createContext("undefined"!=typeof HTMLElement?Sf({key:"css"}):null);"production"!==process.env.NODE_ENV&&(hb.displayName="EmotionCacheContext"),hb.Provider;var gb=function(e){return n((function(t,n){var r=c(hb);return e(t,r,n)}))};pb||(gb=function(t){return function(n){var r=c(hb);return null===r?(r=Sf({key:"css"}),e.createElement(hb.Provider,{value:r},t(n,r))):t(n,r)}});var fb=e.createContext({});"production"!==process.env.NODE_ENV&&(fb.displayName="EmotionThemeContext");var bb=function(e){var t=e.split(".");return t[t.length-1]},vb=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?bb(t[1]):void 0},xb=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),yb=function(e){return e.replace(/\$/g,"-")},wb="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Cb="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Eb=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)mb.call(t,r)&&(n[r]=t[r]);if(n[wb]=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=vb(t[n]);if(r){if(xb.has(r))break;if(/^[A-Z]/.test(r))return yb(r)}}}((new Error).stack);i&&(n[Cb]=i)}return n},Ib=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;Tf(n,r,i);var o=db((function(){return Zf(n,r,i)}));if(!pb&&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},kb=gb((function(t,n,r){var i=t.css;"string"==typeof i&&void 0!==n.registered[i]&&(i=n.registered[i]);var o=t[wb],a=[i],l="";"string"==typeof t.className?l=Nf(n.registered,a,t.className):null!=t.className&&(l=t.className+" ");var s=ab(a,void 0,e.useContext(fb));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var c=t[Cb];c&&(s=ab([s,"label:"+c+";"]))}l+=n.key+"-"+s.name;var d={};for(var u in t)!mb.call(t,u)||"css"===u||u===wb||"production"!==process.env.NODE_ENV&&u===Cb||(d[u]=t[u]);return d.ref=r,d.className=l,e.createElement(e.Fragment,null,e.createElement(Ib,{cache:n,serialized:s,isStringTag:"string"==typeof o}),e.createElement(o,d))}));"production"!==process.env.NODE_ENV&&(kb.displayName="EmotionCssPropInternal");var Mb=kb,$b=function(t,n){var r=arguments;if(null==n||!mb.call(n,"css"))return e.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=Mb,o[1]=Eb(t,n);for(var a=2;a<i;a++)o[a]=r[a];return e.createElement.apply(null,o)},Ab=!1,Lb=gb((function(t,n){"production"===process.env.NODE_ENV||Ab||!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?"),Ab=!0);var r=t.styles,i=ab([r],void 0,e.useContext(fb));if(!pb){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 ub((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]),ub((function(){var e=u.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==i.next&&Zf(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 Vb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ab(t)}"production"!==process.env.NODE_ENV&&(Lb.displayName="EmotionGlobal");var Hb=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 Ob=function(t){var n,r=t.cache,i=t.serializedArr,o=db((function(){for(var e="",t=0;t<i.length;t++){var n=Zf(r,i[t],!1);pb||void 0===n||(e+=n)}if(!pb)return e}));return pb||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))},Sb=gb((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=ab(t,n.registered);return i.push(a),Tf(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=Nf(e,r,n);return r.length<2?n:i+t(r)}(n.registered,o,Hb(t))},theme:e.useContext(fb)},l=t.children(a);return r=!0,e.createElement(e.Fragment,null,e.createElement(Ob,{cache:n,serializedArr:i}),l)}));if("production"!==process.env.NODE_ENV&&(Sb.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var Db="undefined"!=typeof document,Rb="undefined"!=typeof jest||"undefined"!=typeof vi;if(Db&&!Rb){var zb="undefined"!=typeof globalThis?globalThis:Db?window:global,Nb="__EMOTION_REACT_"+"11.11.1".split(".")[0]+"__";zb[Nb]&&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."),zb[Nb]=!0}}function Tb(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)||xg(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 Zb(e,t){if(null==e)return{};var n,r,i=Es(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 Bb="undefined"!=typeof document?u:function(){},Pb=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],_b=function(){};function Gb(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function jb(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(Gb(e,a)));return o.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Fb=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===cg(e)&&null!==e?[e]:[];var t},Yb=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,mg({},Zb(e,Pb))},Wb=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 Xb(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Jb(e){return Xb(e)?window.pageYOffset:e.scrollTop}function Ub(e,t){Xb(e)?window.scrollTo(0,t):e.scrollTop=t}function Qb(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_b,i=Jb(e),o=t-i,a=0;!function t(){var l,s=o*((l=(l=a+=10)/n-1)*l*l+1)+i;Ub(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function qb(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Ub(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Ub(e,Math.max(t.offsetTop-i,0))}function Kb(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ev=!1,tv={get passive(){return ev=!0}},nv="undefined"!=typeof window?window:{};nv.addEventListener&&nv.removeEventListener&&(nv.addEventListener("p",_b,tv),nv.removeEventListener("p",_b,!1));var rv=ev;function iv(e){return null!=e}function ov(e,t,n){return e?t:n}var av=["children","innerProps"],lv=["children","innerProps"];function sv(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,h=p.height,g=p.top,f=n.offsetParent.getBoundingClientRect().top,b=a?window.innerHeight:Xb(d=s)?window.innerHeight:d.clientHeight,v=Jb(s),x=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=f-y,C=b-g,E=w+v,I=u-v-g,k=m-b+v+x,M=v+g-y,$=160;switch(i){case"auto":case"bottom":if(C>=h)return{placement:"bottom",maxHeight:t};if(I>=h&&!a)return o&&Qb(s,k,$),{placement:"bottom",maxHeight:t};if(!a&&I>=r||a&&C>=r)return o&&Qb(s,k,$),{placement:"bottom",maxHeight:a?C-x:I-x};if("auto"===i||a){var A=t,L=a?w:E;return L>=r&&(A=Math.min(L-x-l,t)),{placement:"top",maxHeight:A}}if("bottom"===i)return o&&Ub(s,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(E>=h&&!a)return o&&Qb(s,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&&Qb(s,M,$),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var cv,dv=function(e){return"auto"===e?"bottom":e},uv=s(null),pv=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,a=e.menuPlacement,l=e.menuPosition,s=e.menuShouldScrollIntoView,d=e.theme,u=(c(uv)||{}).setPortalPlacement,p=o(null),m=Tb(i(r),2),h=m[0],g=m[1],f=Tb(i(null),2),b=f[0],v=f[1],x=d.spacing.controlHeight;return Bb((function(){var e=p.current;if(e){var t="fixed"===l,i=sv({maxHeight:r,menuEl:e,minHeight:n,placement:a,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:x});g(i.maxHeight),v(i.placement),null==u||u(i.placement)}}),[r,a,l,s,n,u,x]),t({ref:p,placerProps:mg(mg({},e),{},{placement:b||dv(a),maxHeight:h})})},mv=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return $b("div",Cs({},Wb(e,"menu",{menu:!0}),{ref:n},r),t)},hv=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return mg({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},gv=hv,fv=hv,bv=["size"],vv=["innerProps","isRtl","size"];var xv,yv,wv="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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",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)."}},Cv=function(e){var t=e.size,n=Zb(e,bv);return $b("svg",Cs({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:wv},n))},Ev=function(e){return $b(Cv,Cs({size:20},e),$b("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"}))},Iv=function(e){return $b(Cv,Cs({size:20},e),$b("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"}))},kv=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return mg({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},Mv=kv,$v=kv,Av=function(){var e=Vb.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_"}}}(cv||(xv=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],yv||(yv=xv.slice(0)),cv=Object.freeze(Object.defineProperties(xv,{raw:{value:Object.freeze(yv)}})))),Lv=function(e){var t=e.delay,n=e.offset;return $b("span",{css:Vb({animation:"".concat(Av," 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Vv=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return $b("div",Cs({ref:i},Wb(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},Hv=["data"],Ov=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 $b("div",Cs({},Wb(e,"group",{group:!0}),l),$b(o,Cs({},a,{selectProps:d,theme:c,getStyles:r,getClassNames:i,cx:n}),s),$b("div",null,t))},Sv=["innerRef","isDisabled","isHidden","inputClassName"],Dv={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Rv={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":mg({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Dv)},zv=function(e){return mg({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Dv)},Nv=function(e){var t=e.cx,n=e.value,r=Yb(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,l=r.inputClassName,s=Zb(r,Sv);return $b("div",Cs({},Wb(e,"input",{"input-container":!0}),{"data-value":n||""}),$b("input",Cs({className:t({input:!0},l),ref:i,style:zv(a),disabled:o},s)))},Tv=function(e){var t=e.children,n=e.innerProps;return $b("div",n,t)};var Zv=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 $b(s,{data:r,innerProps:mg(mg({},Wb(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:l},$b(c,{data:r,innerProps:mg({},Wb(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),$b(d,{data:r,innerProps:mg(mg({},Wb(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},Bv=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return $b("div",Cs({},Wb(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Pv=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return $b("div",Cs({},Wb(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},_v={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return $b("div",Cs({},Wb(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||$b(Ev,null))},Control:Vv,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return $b("div",Cs({},Wb(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||$b(Iv,null))},DownChevron:Iv,CrossIcon:Ev,Group:Ov,GroupHeading:function(e){var t=Yb(e);t.data;var n=Zb(t,Hv);return $b("div",Cs({},Wb(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return $b("div",Cs({},Wb(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return $b("span",Cs({},t,Wb(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Nv,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,o=Zb(e,vv);return $b("div",Cs({},Wb(mg(mg({},o),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),$b(Lv,{delay:0,offset:n}),$b(Lv,{delay:160,offset:!0}),$b(Lv,{delay:320,offset:!n}))},Menu:mv,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return $b("div",Cs({},Wb(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,a=e.innerProps,s=e.menuPlacement,c=e.menuPosition,u=o(null),p=o(null),m=Tb(i(dv(s)),2),h=m[0],g=m[1],f=l((function(){return{setPortalPlacement:g}}),[]),b=Tb(i(null),2),v=b[0],x=b[1],y=d((function(){if(r){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}}(r),t="fixed"===c?0:window.pageYOffset,n=e[h]+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})}}),[r,c,h,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);Bb((function(){y()}),[y]);var w=d((function(){"function"==typeof p.current&&(p.current(),p.current=null),r&&u.current&&(p.current=Vr(r,u.current,y,{elementResize:"ResizeObserver"in window}))}),[r,y]);Bb((function(){w()}),[w]);var C=d((function(e){u.current=e,w()}),[w]);if(!t&&"fixed"!==c||!v)return null;var E=$b("div",Cs({ref:C},Wb(mg(mg({},e),{},{offset:v.offset,position:c,rect:v.rect}),"menuPortal",{"menu-portal":!0}),a),n);return $b(uv.Provider,{value:f},t?k(E,t):E)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=Zb(e,lv);return $b("div",Cs({},Wb(mg(mg({},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=Zb(e,av);return $b("div",Cs({},Wb(mg(mg({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Zv,MultiValueContainer:Tv,MultiValueLabel:Tv,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return $b("div",Cs({role:"button"},n),t||$b(Ev,{size:14}))},Option:Bv,Placeholder:function(e){var t=e.children,n=e.innerProps;return $b("div",Cs({},Wb(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return $b("div",Cs({},Wb(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:Pv,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return $b("div",Cs({},Wb(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},Gv=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function jv(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||Gv(r)&&Gv(i)))return!1;var r,i;return!0}for(var Fv="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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+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)."}},Yv=function(e){return $b("span",Cs({css:Fv},e))},Wv={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:"",".")}},Xv=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,d=e.isAppleDevice,u=s.ariaLiveMessages,p=s.getOptionLabel,m=s.inputValue,h=s.isMulti,g=s.isOptionDisabled,f=s.isSearchable,v=s.menuIsOpen,x=s.options,y=s.screenReaderStatus,w=s.tabSelectsValue,C=s.isLoading,E=s["aria-label"],I=s["aria-live"],k=l((function(){return mg(mg({},Wv),u||{})}),[u]),M=l((function(){var e,n="";if(t&&k.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?p(c):"",u=i||l||void 0,m=u?u.map(p):[],h=mg({isDisabled:c&&g(c,a),label:d,labels:m},t);n=k.onChange(h)}return n}),[t,k,g,a,p]),$=l((function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&k.onFocus){var l={focused:t,label:p(t),isDisabled:g(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:d};e=k.onFocus(l)}return e}),[n,r,p,g,k,i,a,d]),A=l((function(){var e="";if(v&&x.length&&!C&&k.onFilter){var t=y({count:i.length});e=k.onFilter({inputValue:m,resultsMessage:t})}return e}),[i,m,v,k,x,y,C]),L="initial-input-focus"===(null==t?void 0:t.action),V=l((function(){var e="";if(k.guidance){var t=r?"value":v?"menu":"input";e=k.guidance({"aria-label":E,context:t,isDisabled:n&&g(n,a),isMulti:h,isSearchable:f,tabSelectsValue:w,isInitialFocus:L})}return e}),[E,n,r,h,g,f,v,k,a,w,L]),H=$b(b,null,$b("span",{id:"aria-selection"},M),$b("span",{id:"aria-focused"},$),$b("span",{id:"aria-results"},A),$b("span",{id:"aria-guidance"},V));return $b(b,null,$b(Yv,{id:c},L&&H),$b(Yv,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!L&&H))},Jv=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Uv=new RegExp("["+Jv.map((function(e){return e.letters})).join("")+"]","g"),Qv={},qv=0;qv<Jv.length;qv++)for(var Kv=Jv[qv],ex=0;ex<Kv.letters.length;ex++)Qv[Kv.letters[ex]]=Kv.base;var tx=function(e){return e.replace(Uv,(function(e){return Qv[e]}))},nx=function(e,t){void 0===t&&(t=jv);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}(tx),rx=function(e){return e.replace(/^\s+|\s+$/g,"")},ix=function(e){return"".concat(e.label," ").concat(e.value)},ox=["innerRef"];function ax(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=Tb(e,1)[0];return!n.includes(t)}));return i.reduce((function(e,t){var n=Tb(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})}(Zb(e,ox),"onExited","in","enter","exit","appear");return $b("input",Cs({ref:t},n,{css:Vb({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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var lx=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var sx=["boxSizing","height","overflow","paddingRight","position"],cx={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function dx(e){e.cancelable&&e.preventDefault()}function ux(e){e.stopPropagation()}function px(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function mx(){return"ontouchstart"in window||navigator.maxTouchPoints}var hx=!("undefined"==typeof window||!window.document||!window.document.createElement),gx=0,fx={capture:!1,passive:!1};var bx=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},vx="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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+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 xx(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,l=e.onTopLeave,s=o(!1),c=o(!1),u=o(0),p=o(null),m=d((function(e,t){if(null!==p.current){var o=p.current,a=o.scrollTop,d=o.scrollHeight,u=o.clientHeight,m=p.current,h=t>0,g=d-u-a,f=!1;g>t&&s.current&&(r&&r(e),s.current=!1),h&&c.current&&(l&&l(e),c.current=!1),h&&t>g?(n&&!s.current&&n(e),m.scrollTop=d,f=!0,s.current=!0):!h&&-t>a&&(i&&!c.current&&i(e),m.scrollTop=0,f=!0,c.current=!0),f&&lx(e)}}),[n,r,i,l]),h=d((function(e){m(e,e.deltaY)}),[m]),g=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=!!rv&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",g,t),e.addEventListener("touchmove",f,t)}}),[f,g,h]),v=d((function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",g,!1),e.removeEventListener("touchmove",f,!1))}),[f,g,h]);return a((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,i=o({}),l=o(null),s=d((function(e){if(hx){var t=document.body,n=t&&t.style;if(r&&sx.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&gx<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+o||0;Object.keys(cx).forEach((function(e){var t=cx[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&mx()&&(t.addEventListener("touchmove",dx,fx),e&&(e.addEventListener("touchstart",px,fx),e.addEventListener("touchmove",ux,fx))),gx+=1}}),[r]),c=d((function(e){if(hx){var t=document.body,n=t&&t.style;gx=Math.max(gx-1,0),r&&gx<1&&sx.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&mx()&&(t.removeEventListener("touchmove",dx,fx),e&&(e.removeEventListener("touchstart",px,fx),e.removeEventListener("touchmove",ux,fx)))}}),[r]);return a((function(){if(t){var e=l.current;return s(e),function(){c(e)}}}),[t,s,c]),function(e){l.current=e}}({isEnabled:n});return $b(b,null,n&&$b("div",{onClick:bx,css:vx}),t((function(e){i(e),l(e)})))}var yx="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)."}},wx=function(e){var t=e.name,n=e.onFocus;return $b("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:yx,value:"",onChange:function(){}})};function Cx(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 Ex(){return Cx(/^Mac/i)}function Ix(){return Cx(/^iPhone/i)||Cx(/^iPad/i)||Ex()&&navigator.maxTouchPoints>1}var kx=function(e){return e.label},Mx=function(e){return e.value},$x={clearIndicator:$v,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 mg({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:Mv,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 mg({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 mg({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 mg(mg({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Rv),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 mg({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:fv,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,l=i.colors;return mg((ug(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),ug(n,"position","absolute"),ug(n,"width","100%"),ug(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 mg({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 mg({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 mg({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 mg({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:gv,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,l=o.colors;return mg({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 mg({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 mg({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 mg({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")})}},Ax={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}},Lx={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Kb(),captureMenuScroll:!Kb(),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=mg({ignoreCase:!0,ignoreAccents:!0,stringify:ix,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,o=r.ignoreAccents,a=r.stringify,l=r.trim,s=r.matchFrom,c=l?rx(n):n,d=l?rx(a(t)):a(t);return i&&(c=c.toLowerCase(),d=d.toLowerCase()),o&&(c=nx(c),d=tx(d)),"start"===s?d.substr(0,c.length)===c:d.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:kx,getOptionValue:Mx,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 Vx(e,t,n,r){return{type:"option",data:t,isDisabled:Tx(e,t,n),isSelected:Zx(e,t,n),label:zx(e,t),value:Nx(e,t),index:r}}function Hx(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return Vx(e,n,t,r)})).filter((function(t){return Dx(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Vx(e,n,t,r);return Dx(e,o)?o:void 0})).filter(iv)}function Ox(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,yg(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Sx(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,yg(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 Dx(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,l=t.value;return(!Px(e)||!o)&&Bx(e,{label:a,value:l,data:i},r)}var Rx=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},zx=function(e,t){return e.getOptionLabel(t)},Nx=function(e,t){return e.getOptionValue(t)};function Tx(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Zx(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Nx(e,t);return n.some((function(t){return Nx(e,t)===r}))}function Bx(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Px=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},_x=1,Gx=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&&Is(e,t)}(r,f);var n=bg(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:"",isAppleDevice:!1},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.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(yg(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=ov(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(ov(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=ov(e,i,i[0]||null);r&&t.onChange(o,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return Rx(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Sx(Hx(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 jb.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return zx(t.props,e)},t.getOptionValue=function(e){return Nx(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=$x[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,mg(mg({},_v),e.components);var e},t.buildCategorizedOptions=function(){return Hx(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ox(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:mg({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&&Xb(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 Px(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,h=m.focusedOption,g=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(g)t.removeValue(g);else{if(!i)return;r?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!u||!h||p&&t.isOptionSelected(h,f))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(t.isComposing)return;t.selectOption(h);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(!h)return;t.selectOption(h);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||++_x),t.state.selectValue=Fb(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=Rx(i,o[a])}return t}return function(e,t,n){t&&hg(e.prototype,t),n&&hg(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&&qb(this.menuListRef,this.focusedOptionRef),(Ex()||Ix())&&this.setState({isAppleDevice:!0})}},{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&&(qb(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(Ax):mg(mg({},Ax),this.props.theme):Ax}},{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 Tx(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Zx(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Bx(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,h=this.commonProps,g=i||this.getElementId("input"),f=mg(mg(mg({"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.state.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,Cs({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,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(ax,Cs({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:_b,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,h=d.inputValue,g=d.placeholder,f=this.state,b=f.selectValue,v=f.focusedValue,x=f.isFocused;if(!this.hasValue()||!u)return h?null:e.createElement(s,Cs({},c,{key:"placeholder",isDisabled:p,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),g);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,Cs({},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(h)return null;var y=b[0];return e.createElement(l,Cs({},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,Cs({},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,Cs({},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,Cs({},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,Cs({},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,h=m.captureMenuScroll,g=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,k=m.menuShouldScrollIntoView,M=m.noOptionsMessage,$=m.onMenuScrollToTop,A=m.onMenuScrollToBottom;if(!y)return null;var L,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,h=a?void 0:function(){return t.onOptionHover(o)},g=a?void 0:function(){return t.selectOption(o)},f="".concat(t.getElementId("option"),"-").concat(r),b={id:f,onClick:g,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":t.state.isAppleDevice?void 0:l};return e.createElement(d,Cs({},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())L=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,Cs({},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 H=b({inputValue:g});if(null===H)return null;L=e.createElement(s,u,H)}else{var O=M({inputValue:g});if(null===O)return null;L=e.createElement(c,u,O)}var S={minMenuHeight:v,maxMenuHeight:x,menuPlacement:w,menuPosition:C,menuShouldScrollIntoView:k},D=e.createElement(pv,Cs({},u,S),(function(n){var r=n.ref,i=n.placerProps,l=i.placement,s=i.maxHeight;return e.createElement(o,Cs({},u,S,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:f,placement:l}),e.createElement(xx,{captureEnabled:h,onTopArrive:$,onBottomArrive:A,lockEnabled:I},(function(n){return e.createElement(a,Cs({},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}),L)})))}));return E||"fixed"===C?e.createElement(l,Cs({},u,{appendTo:E,controlElement:this.controlRef,menuPlacement:w,menuPosition:C}),D):D}},{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(wx,{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(Xv,Cs({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:i,focusedValue:o,isFocused:a,selectValue:l,focusableOptions:s,isAppleDevice:this.state.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,Cs({},p,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:u}),this.renderLiveRegion(),e.createElement(n,Cs({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:u,menuIsOpen:d}),e.createElement(o,Cs({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,Cs({},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,h=Fb(d),g={};if(n&&(d!==n.value||c!==n.options||u!==n.menuIsOpen||p!==n.inputValue)){var f=u?function(e,t){return Ox(Hx(e,t))}(e,h):[],b=u?Sx(Hx(e,h),"".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,h):null,x=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,f);g={selectValue:h,focusedOption:x,focusedOptionId:Rx(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:ov(m,h,h[0]||null),options:h,action:"initial-input-focus"},C=!l),"initial-input-focus"===(null==o?void 0:o.action)&&(w=null),mg(mg(mg({},g),y),{},{prevProps:e,ariaSelection:w,prevWasFocused:C})}}]),r}();Gx.defaultProps=Lx;var jx=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Fx(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,l=void 0===a?null:a,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,p=e.onInputChange,m=e.onMenuClose,h=e.onMenuOpen,g=e.value,f=Zb(e,jx),b=Tb(i(void 0!==s?s:n),2),v=b[0],x=b[1],y=Tb(i(void 0!==c?c:o),2),w=y[0],C=y[1],E=Tb(i(void 0!==g?g:l),2),I=E[0],k=E[1],M=d((function(e,t){"function"==typeof u&&u(e,t),k(e)}),[u]),$=d((function(e,t){var n;"function"==typeof p&&(n=p(e,t)),x(void 0!==n?n:e)}),[p]),A=d((function(){"function"==typeof h&&h(),C(!0)}),[h]),L=d((function(){"function"==typeof m&&m(),C(!1)}),[m]),V=void 0!==s?s:v,H=void 0!==c?c:w,O=void 0!==g?g:I;return mg(mg({},f),{},{inputValue:V,menuIsOpen:H,onChange:M,onInputChange:$,onMenuClose:L,onMenuOpen:A,value:O})}var Yx=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Wx=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},Xx={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return Wx(e,t,r)}))||n.some((function(t){return Wx(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};var Jx=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?Xx.formatCreateLabel:o,s=e.isValidNewOption,c=void 0===s?Xx.isValidNewOption:s,u=e.getNewOptionData,p=void 0===u?Xx.getNewOptionData:u,m=e.onCreateOption,h=e.options,g=void 0===h?[]:h,f=e.onChange,b=Zb(e,Yx),v=b.getOptionValue,x=void 0===v?Mx:v,y=b.getOptionLabel,w=void 0===y?kx:y,C=b.inputValue,E=b.isLoading,I=b.isMulti,k=b.value,M=b.name,$=l((function(){return c(C,Fb(k),g,{getOptionValue:x,getOptionLabel:w})?p(C,a(C)):void 0}),[a,p,w,x,C,c,g,k]),A=l((function(){return!n&&E||!$?g:"first"===i?[$].concat(yg(g)):[].concat(yg(g),[$])}),[n,i,E,$,g]),L=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]!==$)f(e,t);else if(m)m(C);else{var r=p(C,C),i={action:"create-option",name:M,option:r};f(ov(I,[].concat(yg(Fb(k)),[r]),r),i)}}),[p,C,I,M,$,m,f,k]);return mg(mg({},b),{},{options:A,onChange:L})}(Fx(t));return e.createElement(Gx,Cs({ref:n},r))})),Ux=Jx;const Qx=v.div`
|
|
2169
|
+
`,sg=e.forwardRef((function({contents:t,positionPriority:n=["bottom-start","bottom-end","top-start","top-end"],menuMaxHeight:r="none",menuProps:i,actionButtonProps:o},a){Ae("ContextMenu","ContextMenu は非推奨です。代わりに ContextMenu2 を使用してください。");const[l,s]=e.useState(null),[c,d]=e.useState(!1),u=e=>()=>{d(e)},p=Vc(s,a);return e.createElement(e.Fragment,null,e.createElement(lg,Object.assign({ref:p,"data-testid":"icon-wrapper",icon:"more_vert",onClick:u(!c)},o)),e.createElement(ag,Object.assign({isOpen:c,baseElement:l,contents:t,positionPriority:n,maxHeight:r},i,{onClose:ga(u(!1),null==i?void 0:i.onClose)})))}));function cg(e){return cg="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},cg(e)}function dg(e){var t=function(e,t){if("object"!=cg(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=cg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cg(t)?t:t+""}function ug(e,t,n){return(t=dg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pg(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 mg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pg(Object(n),!0).forEach((function(t){ug(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hg(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,dg(r.key),r)}}function gg(e){return gg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gg(e)}function fg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fg=function(){return!!e})()}function bg(e){var t=fg();return function(){var n,r=gg(e);if(t){var i=gg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==cg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return pc(e)}(this,n)}}function vg(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 xg(e,t){if(e){if("string"==typeof e)return vg(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)?vg(e,t):void 0}}function yg(e){return function(e){if(Array.isArray(e))return vg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xg(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 wg=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}(),Cg="-ms-",Eg="-moz-",Ig="-webkit-",kg="comm",Mg="rule",$g="decl",Ag="@keyframes",Lg=Math.abs,Vg=String.fromCharCode,Hg=Object.assign;function Sg(e){return e.trim()}function Og(e,t,n){return e.replace(t,n)}function Dg(e,t){return e.indexOf(t)}function Rg(e,t){return 0|e.charCodeAt(t)}function zg(e,t,n){return e.slice(t,n)}function Ng(e){return e.length}function Tg(e){return e.length}function Zg(e,t){return t.push(e),e}var Bg=1,Pg=1,_g=0,Gg=0,jg=0,Fg="";function Yg(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Bg,column:Pg,length:a,return:""}}function Wg(e,t){return Hg(Yg("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xg(){return jg=Gg>0?Rg(Fg,--Gg):0,Pg--,10===jg&&(Pg=1,Bg--),jg}function Jg(){return jg=Gg<_g?Rg(Fg,Gg++):0,Pg++,10===jg&&(Pg=1,Bg++),jg}function Ug(){return Rg(Fg,Gg)}function Qg(){return Gg}function qg(e,t){return zg(Fg,e,t)}function Kg(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 ef(e){return Bg=Pg=1,_g=Ng(Fg=e),Gg=0,[]}function tf(e){return Fg="",e}function nf(e){return Sg(qg(Gg-1,af(91===e?e+2:40===e?e+1:e)))}function rf(e){for(;(jg=Ug())&&jg<33;)Jg();return Kg(e)>2||Kg(jg)>3?"":" "}function of(e,t){for(;--t&&Jg()&&!(jg<48||jg>102||jg>57&&jg<65||jg>70&&jg<97););return qg(e,Qg()+(t<6&&32==Ug()&&32==Jg()))}function af(e){for(;Jg();)switch(jg){case e:return Gg;case 34:case 39:34!==e&&39!==e&&af(jg);break;case 40:41===e&&af(e);break;case 92:Jg()}return Gg}function lf(e,t){for(;Jg()&&e+jg!==57&&(e+jg!==84||47!==Ug()););return"/*"+qg(t,Gg-1)+"*"+Vg(47===e?e:Jg())}function sf(e){for(;!Kg(Ug());)Jg();return qg(e,Gg)}function cf(e){return tf(df("",null,null,null,[""],e=ef(e),0,[0],e))}function df(e,t,n,r,i,o,a,l,s){for(var c=0,d=0,u=a,p=0,m=0,h=0,g=1,f=1,b=1,v=0,x="",y=i,w=o,C=r,E=x;f;)switch(h=v,v=Jg()){case 40:if(108!=h&&58==Rg(E,u-1)){-1!=Dg(E+=Og(nf(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:E+=nf(v);break;case 9:case 10:case 13:case 32:E+=rf(h);break;case 92:E+=of(Qg()-1,7);continue;case 47:switch(Ug()){case 42:case 47:Zg(pf(lf(Jg(),Qg()),t,n),s);break;default:E+="/"}break;case 123*g:l[c++]=Ng(E)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:f=0;case 59+d:-1==b&&(E=Og(E,/\f/g,"")),m>0&&Ng(E)-u&&Zg(m>32?mf(E+";",r,n,u-1):mf(Og(E," ","")+";",r,n,u-2),s);break;case 59:E+=";";default:if(Zg(C=uf(E,t,n,c,d,i,l,x,y=[],w=[],u),o),123===v)if(0===d)df(E,t,C,C,y,o,u,l,w);else switch(99===p&&110===Rg(E,3)?100:p){case 100:case 108:case 109:case 115:df(e,C,C,r&&Zg(uf(e,C,C,0,0,i,l,x,i,y=[],u),w),i,w,u,l,r?y:w);break;default:df(E,C,C,C,[""],w,0,l,w)}}c=d=m=0,g=b=1,x=E="",u=a;break;case 58:u=1+Ng(E),m=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Xg())continue;switch(E+=Vg(v),v*g){case 38:b=d>0?1:(E+="\f",-1);break;case 44:l[c++]=(Ng(E)-1)*b,b=1;break;case 64:45===Ug()&&(E+=nf(Jg())),p=Ug(),d=u=Ng(x=E+=sf(Qg())),v++;break;case 45:45===h&&2==Ng(E)&&(g=0)}}return o}function uf(e,t,n,r,i,o,a,l,s,c,d){for(var u=i-1,p=0===i?o:[""],m=Tg(p),h=0,g=0,f=0;h<r;++h)for(var b=0,v=zg(e,u+1,u=Lg(g=a[h])),x=e;b<m;++b)(x=Sg(g>0?p[b]+" "+v:Og(v,/&\f/g,p[b])))&&(s[f++]=x);return Yg(e,t,n,0===i?Mg:l,s,c,d)}function pf(e,t,n){return Yg(e,t,n,kg,Vg(jg),zg(e,2,-2),0)}function mf(e,t,n,r){return Yg(e,t,n,$g,zg(e,0,r),zg(e,r+1,-1),r)}function hf(e,t){for(var n="",r=Tg(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function gf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case $g:return e.return=e.return||e.value;case kg:return"";case Ag:return e.return=e.value+"{"+hf(e.children,r)+"}";case Mg:e.value=e.props.join(",")}return Ng(n=hf(e.children,r))?e.return=e.value+"{"+n+"}":""}function ff(e){var t=Tg(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 bf(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var vf=function(e,t,n){for(var r=0,i=0;r=i,i=Ug(),38===r&&12===i&&(t[n]=1),!Kg(i);)Jg();return qg(e,Gg)},xf=function(e,t){return tf(function(e,t){var n=-1,r=44;do{switch(Kg(r)){case 0:38===r&&12===Ug()&&(t[n]=1),e[n]+=vf(Gg-1,t,n);break;case 2:e[n]+=nf(r);break;case 4:if(44===r){e[++n]=58===Ug()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Vg(r)}}while(r=Jg());return e}(ef(e),t))},yf=new WeakMap,wf=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)||yf.get(n))&&!r){yf.set(e,!0);for(var i=[],o=xf(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]}}},Cf=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Ef=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},If=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},kf=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Mf=function(e,t,n){If(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."),kf(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!If(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."),kf(e)))};function $f(e,t){switch(function(e,t){return 45^Rg(e,0)?(((t<<2^Rg(e,0))<<2^Rg(e,1))<<2^Rg(e,2))<<2^Rg(e,3):0}(e,t)){case 5103:return Ig+"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 Ig+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ig+e+Eg+e+Cg+e+e;case 6828:case 4268:return Ig+e+Cg+e+e;case 6165:return Ig+e+Cg+"flex-"+e+e;case 5187:return Ig+e+Og(e,/(\w+).+(:[^]+)/,Ig+"box-$1$2"+Cg+"flex-$1$2")+e;case 5443:return Ig+e+Cg+"flex-item-"+Og(e,/flex-|-self/,"")+e;case 4675:return Ig+e+Cg+"flex-line-pack"+Og(e,/align-content|flex-|-self/,"")+e;case 5548:return Ig+e+Cg+Og(e,"shrink","negative")+e;case 5292:return Ig+e+Cg+Og(e,"basis","preferred-size")+e;case 6060:return Ig+"box-"+Og(e,"-grow","")+Ig+e+Cg+Og(e,"grow","positive")+e;case 4554:return Ig+Og(e,/([^-])(transform)/g,"$1"+Ig+"$2")+e;case 6187:return Og(Og(Og(e,/(zoom-|grab)/,Ig+"$1"),/(image-set)/,Ig+"$1"),e,"")+e;case 5495:case 3959:return Og(e,/(image-set\([^]*)/,Ig+"$1$`$1");case 4968:return Og(Og(e,/(.+:)(flex-)?(.*)/,Ig+"box-pack:$3"+Cg+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ig+e+e;case 4095:case 3583:case 4068:case 2532:return Og(e,/(.+)-inline(.+)/,Ig+"$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(Ng(e)-1-t>6)switch(Rg(e,t+1)){case 109:if(45!==Rg(e,t+4))break;case 102:return Og(e,/(.+:)(.+)-([^]+)/,"$1"+Ig+"$2-$3$1"+Eg+(108==Rg(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Dg(e,"stretch")?$f(Og(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Rg(e,t+1))break;case 6444:switch(Rg(e,Ng(e)-3-(~Dg(e,"!important")&&10))){case 107:return Og(e,":",":"+Ig)+e;case 101:return Og(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ig+(45===Rg(e,14)?"inline-":"")+"box$3$1"+Ig+"$2$3$1"+Cg+"$2box$3")+e}break;case 5936:switch(Rg(e,t+11)){case 114:return Ig+e+Cg+Og(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ig+e+Cg+Og(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ig+e+Cg+Og(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ig+e+Cg+e+e}return e}var Af,Lf,Vf="undefined"!=typeof document,Hf=Vf?void 0:(Af=function(){return bf((function(){var e={};return function(t){return e[t]}}))},Lf=new WeakMap,function(e){if(Lf.has(e))return Lf.get(e);var t=Af(e);return Lf.set(e,t),t}),Sf=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $g:e.return=$f(e.value,e.length);break;case Ag:return hf([Wg(e,{value:Og(e.value,"@","@"+Ig)})],r);case Mg: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 hf([Wg(e,{props:[Og(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return hf([Wg(e,{props:[Og(t,/:(plac\w+)/,":"+Ig+"input-$1")]}),Wg(e,{props:[Og(t,/:(plac\w+)/,":-moz-$1")]}),Wg(e,{props:[Og(t,/:(plac\w+)/,Cg+"input-$1")]})],r)}return""}))}}],Of=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(Vf&&"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||Sf;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=[];Vf&&(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=[wf,Cf];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(Ef(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}}),Mf),Vf){var d,u=[gf,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?d.insert(e.return):e.value&&e.type!==kg&&d.insert(e.value+"{}"))}:(s=function(e){d.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=ff(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)}}),hf(cf(e?e+"{"+t.styles+"}":t.styles),p),r&&(b.inserted[t.name]=!0)}}else{var m=[gf],h=ff(c.concat(r,m)),g=Hf(r)(t),f=function(e,t){var n=t.name;return void 0===g[n]&&(g[n]=hf(cf(e?e+"{"+t.styles+"}":t.styles),h)),g[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 wg({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},Df=js,Rf={};Rf[Df.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Rf[Df.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var zf="undefined"!=typeof document;function Nf(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Tf=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===zf&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Zf=function(e,t,n){Tf(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);zf||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!zf&&0!==i.length)return i}};var Bf={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},Pf="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",_f="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Gf=/[A-Z]|^ms/g,jf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ff=function(e){return 45===e.charCodeAt(1)},Yf=function(e){return null!=e&&"boolean"!=typeof e},Wf=bf((function(e){return Ff(e)?e:e.replace(Gf,"-$&").toLowerCase()})),Xf=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(jf,(function(e,t,n){return ib={name:t,styles:n,next:ib},t}))}return 1===Bf[e]||Ff(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var Jf=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Uf=["normal","none","initial","inherit","unset"],Qf=Xf,qf=/^-ms-/,Kf=/-(.)/g,eb={};Xf=function(e,t){if("content"===e&&("string"!=typeof t||-1===Uf.indexOf(t)&&!Jf.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=Qf(e,t);return""===n||Ff(e)||-1===e.indexOf("-")||void 0!==eb[e]||(eb[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(qf,"ms-").replace(Kf,(function(e,t){return t.toUpperCase()}))+"?")),n}}var tb="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function nb(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(tb);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ib={name:n.name,styles:n.styles,next:ib},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ib={name:r.name,styles:r.styles,next:ib},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+=nb(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]+"}":Yf(a)&&(r+=Wf(o)+":"+Xf(o,a)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error(tb);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=nb(e,t,a);switch(o){case"animation":case"animationName":r+=Wf(o)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===o&&console.error(_f),r+=o+"{"+l+"}"}}else for(var s=0;s<a.length;s++)Yf(a[s])&&(r+=Wf(o)+":"+Xf(o,a[s])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var o=ib,a=n(e);return ib=o,nb(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(jf,(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 rb,ib,ob=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(rb=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ab=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="";ib=void 0;var o,a=e[0];null==a||void 0===a.raw?(r=!1,i+=nb(n,t,a)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(Pf),i+=a[0]);for(var l=1;l<e.length;l++)i+=nb(n,t,e[l]),r&&("production"!==process.env.NODE_ENV&&void 0===a[l]&&console.error(Pf),i+=a[l]);"production"!==process.env.NODE_ENV&&(i=i.replace(rb,(function(e){return o=e,""}))),ob.lastIndex=0;for(var s,c="";null!==(s=ob.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:ib,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:ib}},lb="undefined"!=typeof document,sb=function(e){return e()},cb=!!e.useInsertionEffect&&e.useInsertionEffect,db=lb&&cb||sb,ub=cb||e.useLayoutEffect,pb="undefined"!=typeof document,mb={}.hasOwnProperty,hb=e.createContext("undefined"!=typeof HTMLElement?Of({key:"css"}):null);"production"!==process.env.NODE_ENV&&(hb.displayName="EmotionCacheContext"),hb.Provider;var gb=function(e){return n((function(t,n){var r=c(hb);return e(t,r,n)}))};pb||(gb=function(t){return function(n){var r=c(hb);return null===r?(r=Of({key:"css"}),e.createElement(hb.Provider,{value:r},t(n,r))):t(n,r)}});var fb=e.createContext({});"production"!==process.env.NODE_ENV&&(fb.displayName="EmotionThemeContext");var bb=function(e){var t=e.split(".");return t[t.length-1]},vb=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?bb(t[1]):void 0},xb=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),yb=function(e){return e.replace(/\$/g,"-")},wb="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Cb="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Eb=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)mb.call(t,r)&&(n[r]=t[r]);if(n[wb]=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=vb(t[n]);if(r){if(xb.has(r))break;if(/^[A-Z]/.test(r))return yb(r)}}}((new Error).stack);i&&(n[Cb]=i)}return n},Ib=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;Tf(n,r,i);var o=db((function(){return Zf(n,r,i)}));if(!pb&&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},kb=gb((function(t,n,r){var i=t.css;"string"==typeof i&&void 0!==n.registered[i]&&(i=n.registered[i]);var o=t[wb],a=[i],l="";"string"==typeof t.className?l=Nf(n.registered,a,t.className):null!=t.className&&(l=t.className+" ");var s=ab(a,void 0,e.useContext(fb));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var c=t[Cb];c&&(s=ab([s,"label:"+c+";"]))}l+=n.key+"-"+s.name;var d={};for(var u in t)!mb.call(t,u)||"css"===u||u===wb||"production"!==process.env.NODE_ENV&&u===Cb||(d[u]=t[u]);return d.ref=r,d.className=l,e.createElement(e.Fragment,null,e.createElement(Ib,{cache:n,serialized:s,isStringTag:"string"==typeof o}),e.createElement(o,d))}));"production"!==process.env.NODE_ENV&&(kb.displayName="EmotionCssPropInternal");var Mb=kb,$b=function(t,n){var r=arguments;if(null==n||!mb.call(n,"css"))return e.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=Mb,o[1]=Eb(t,n);for(var a=2;a<i;a++)o[a]=r[a];return e.createElement.apply(null,o)},Ab=!1,Lb=gb((function(t,n){"production"===process.env.NODE_ENV||Ab||!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?"),Ab=!0);var r=t.styles,i=ab([r],void 0,e.useContext(fb));if(!pb){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 ub((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]),ub((function(){var e=u.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==i.next&&Zf(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 Vb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ab(t)}"production"!==process.env.NODE_ENV&&(Lb.displayName="EmotionGlobal");var Hb=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 Sb=function(t){var n,r=t.cache,i=t.serializedArr,o=db((function(){for(var e="",t=0;t<i.length;t++){var n=Zf(r,i[t],!1);pb||void 0===n||(e+=n)}if(!pb)return e}));return pb||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))},Ob=gb((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=ab(t,n.registered);return i.push(a),Tf(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=Nf(e,r,n);return r.length<2?n:i+t(r)}(n.registered,o,Hb(t))},theme:e.useContext(fb)},l=t.children(a);return r=!0,e.createElement(e.Fragment,null,e.createElement(Sb,{cache:n,serializedArr:i}),l)}));if("production"!==process.env.NODE_ENV&&(Ob.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var Db="undefined"!=typeof document,Rb="undefined"!=typeof jest||"undefined"!=typeof vi;if(Db&&!Rb){var zb="undefined"!=typeof globalThis?globalThis:Db?window:global,Nb="__EMOTION_REACT_"+"11.11.1".split(".")[0]+"__";zb[Nb]&&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."),zb[Nb]=!0}}function Tb(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)||xg(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 Zb(e,t){if(null==e)return{};var n,r,i=Es(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 Bb="undefined"!=typeof document?u:function(){},Pb=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],_b=function(){};function Gb(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function jb(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(Gb(e,a)));return o.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Fb=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===cg(e)&&null!==e?[e]:[];var t},Yb=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,mg({},Zb(e,Pb))},Wb=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 Xb(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Jb(e){return Xb(e)?window.pageYOffset:e.scrollTop}function Ub(e,t){Xb(e)?window.scrollTo(0,t):e.scrollTop=t}function Qb(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_b,i=Jb(e),o=t-i,a=0;!function t(){var l,s=o*((l=(l=a+=10)/n-1)*l*l+1)+i;Ub(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function qb(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Ub(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Ub(e,Math.max(t.offsetTop-i,0))}function Kb(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ev=!1,tv={get passive(){return ev=!0}},nv="undefined"!=typeof window?window:{};nv.addEventListener&&nv.removeEventListener&&(nv.addEventListener("p",_b,tv),nv.removeEventListener("p",_b,!1));var rv=ev;function iv(e){return null!=e}function ov(e,t,n){return e?t:n}var av=["children","innerProps"],lv=["children","innerProps"];function sv(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,h=p.height,g=p.top,f=n.offsetParent.getBoundingClientRect().top,b=a?window.innerHeight:Xb(d=s)?window.innerHeight:d.clientHeight,v=Jb(s),x=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=f-y,C=b-g,E=w+v,I=u-v-g,k=m-b+v+x,M=v+g-y,$=160;switch(i){case"auto":case"bottom":if(C>=h)return{placement:"bottom",maxHeight:t};if(I>=h&&!a)return o&&Qb(s,k,$),{placement:"bottom",maxHeight:t};if(!a&&I>=r||a&&C>=r)return o&&Qb(s,k,$),{placement:"bottom",maxHeight:a?C-x:I-x};if("auto"===i||a){var A=t,L=a?w:E;return L>=r&&(A=Math.min(L-x-l,t)),{placement:"top",maxHeight:A}}if("bottom"===i)return o&&Ub(s,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(E>=h&&!a)return o&&Qb(s,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&&Qb(s,M,$),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var cv,dv=function(e){return"auto"===e?"bottom":e},uv=s(null),pv=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,a=e.menuPlacement,l=e.menuPosition,s=e.menuShouldScrollIntoView,d=e.theme,u=(c(uv)||{}).setPortalPlacement,p=o(null),m=Tb(i(r),2),h=m[0],g=m[1],f=Tb(i(null),2),b=f[0],v=f[1],x=d.spacing.controlHeight;return Bb((function(){var e=p.current;if(e){var t="fixed"===l,i=sv({maxHeight:r,menuEl:e,minHeight:n,placement:a,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:x});g(i.maxHeight),v(i.placement),null==u||u(i.placement)}}),[r,a,l,s,n,u,x]),t({ref:p,placerProps:mg(mg({},e),{},{placement:b||dv(a),maxHeight:h})})},mv=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return $b("div",Cs({},Wb(e,"menu",{menu:!0}),{ref:n},r),t)},hv=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return mg({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},gv=hv,fv=hv,bv=["size"],vv=["innerProps","isRtl","size"];var xv,yv,wv="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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",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)."}},Cv=function(e){var t=e.size,n=Zb(e,bv);return $b("svg",Cs({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:wv},n))},Ev=function(e){return $b(Cv,Cs({size:20},e),$b("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"}))},Iv=function(e){return $b(Cv,Cs({size:20},e),$b("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"}))},kv=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return mg({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},Mv=kv,$v=kv,Av=function(){var e=Vb.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_"}}}(cv||(xv=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],yv||(yv=xv.slice(0)),cv=Object.freeze(Object.defineProperties(xv,{raw:{value:Object.freeze(yv)}})))),Lv=function(e){var t=e.delay,n=e.offset;return $b("span",{css:Vb({animation:"".concat(Av," 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Vv=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return $b("div",Cs({ref:i},Wb(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},Hv=["data"],Sv=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 $b("div",Cs({},Wb(e,"group",{group:!0}),l),$b(o,Cs({},a,{selectProps:d,theme:c,getStyles:r,getClassNames:i,cx:n}),s),$b("div",null,t))},Ov=["innerRef","isDisabled","isHidden","inputClassName"],Dv={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Rv={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":mg({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Dv)},zv=function(e){return mg({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Dv)},Nv=function(e){var t=e.cx,n=e.value,r=Yb(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,l=r.inputClassName,s=Zb(r,Ov);return $b("div",Cs({},Wb(e,"input",{"input-container":!0}),{"data-value":n||""}),$b("input",Cs({className:t({input:!0},l),ref:i,style:zv(a),disabled:o},s)))},Tv=function(e){var t=e.children,n=e.innerProps;return $b("div",n,t)};var Zv=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 $b(s,{data:r,innerProps:mg(mg({},Wb(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:l},$b(c,{data:r,innerProps:mg({},Wb(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),$b(d,{data:r,innerProps:mg(mg({},Wb(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},Bv=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return $b("div",Cs({},Wb(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Pv=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return $b("div",Cs({},Wb(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},_v={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return $b("div",Cs({},Wb(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||$b(Ev,null))},Control:Vv,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return $b("div",Cs({},Wb(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||$b(Iv,null))},DownChevron:Iv,CrossIcon:Ev,Group:Sv,GroupHeading:function(e){var t=Yb(e);t.data;var n=Zb(t,Hv);return $b("div",Cs({},Wb(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return $b("div",Cs({},Wb(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return $b("span",Cs({},t,Wb(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Nv,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,o=Zb(e,vv);return $b("div",Cs({},Wb(mg(mg({},o),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),$b(Lv,{delay:0,offset:n}),$b(Lv,{delay:160,offset:!0}),$b(Lv,{delay:320,offset:!n}))},Menu:mv,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return $b("div",Cs({},Wb(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,a=e.innerProps,s=e.menuPlacement,c=e.menuPosition,u=o(null),p=o(null),m=Tb(i(dv(s)),2),h=m[0],g=m[1],f=l((function(){return{setPortalPlacement:g}}),[]),b=Tb(i(null),2),v=b[0],x=b[1],y=d((function(){if(r){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}}(r),t="fixed"===c?0:window.pageYOffset,n=e[h]+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})}}),[r,c,h,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);Bb((function(){y()}),[y]);var w=d((function(){"function"==typeof p.current&&(p.current(),p.current=null),r&&u.current&&(p.current=Vr(r,u.current,y,{elementResize:"ResizeObserver"in window}))}),[r,y]);Bb((function(){w()}),[w]);var C=d((function(e){u.current=e,w()}),[w]);if(!t&&"fixed"!==c||!v)return null;var E=$b("div",Cs({ref:C},Wb(mg(mg({},e),{},{offset:v.offset,position:c,rect:v.rect}),"menuPortal",{"menu-portal":!0}),a),n);return $b(uv.Provider,{value:f},t?k(E,t):E)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=Zb(e,lv);return $b("div",Cs({},Wb(mg(mg({},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=Zb(e,av);return $b("div",Cs({},Wb(mg(mg({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Zv,MultiValueContainer:Tv,MultiValueLabel:Tv,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return $b("div",Cs({role:"button"},n),t||$b(Ev,{size:14}))},Option:Bv,Placeholder:function(e){var t=e.children,n=e.innerProps;return $b("div",Cs({},Wb(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return $b("div",Cs({},Wb(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:Pv,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return $b("div",Cs({},Wb(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},Gv=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function jv(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||Gv(r)&&Gv(i)))return!1;var r,i;return!0}for(var Fv="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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+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)."}},Yv=function(e){return $b("span",Cs({css:Fv},e))},Wv={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:"",".")}},Xv=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,d=e.isAppleDevice,u=s.ariaLiveMessages,p=s.getOptionLabel,m=s.inputValue,h=s.isMulti,g=s.isOptionDisabled,f=s.isSearchable,v=s.menuIsOpen,x=s.options,y=s.screenReaderStatus,w=s.tabSelectsValue,C=s.isLoading,E=s["aria-label"],I=s["aria-live"],k=l((function(){return mg(mg({},Wv),u||{})}),[u]),M=l((function(){var e,n="";if(t&&k.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?p(c):"",u=i||l||void 0,m=u?u.map(p):[],h=mg({isDisabled:c&&g(c,a),label:d,labels:m},t);n=k.onChange(h)}return n}),[t,k,g,a,p]),$=l((function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&k.onFocus){var l={focused:t,label:p(t),isDisabled:g(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:d};e=k.onFocus(l)}return e}),[n,r,p,g,k,i,a,d]),A=l((function(){var e="";if(v&&x.length&&!C&&k.onFilter){var t=y({count:i.length});e=k.onFilter({inputValue:m,resultsMessage:t})}return e}),[i,m,v,k,x,y,C]),L="initial-input-focus"===(null==t?void 0:t.action),V=l((function(){var e="";if(k.guidance){var t=r?"value":v?"menu":"input";e=k.guidance({"aria-label":E,context:t,isDisabled:n&&g(n,a),isMulti:h,isSearchable:f,tabSelectsValue:w,isInitialFocus:L})}return e}),[E,n,r,h,g,f,v,k,a,w,L]),H=$b(b,null,$b("span",{id:"aria-selection"},M),$b("span",{id:"aria-focused"},$),$b("span",{id:"aria-results"},A),$b("span",{id:"aria-guidance"},V));return $b(b,null,$b(Yv,{id:c},L&&H),$b(Yv,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!L&&H))},Jv=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Uv=new RegExp("["+Jv.map((function(e){return e.letters})).join("")+"]","g"),Qv={},qv=0;qv<Jv.length;qv++)for(var Kv=Jv[qv],ex=0;ex<Kv.letters.length;ex++)Qv[Kv.letters[ex]]=Kv.base;var tx=function(e){return e.replace(Uv,(function(e){return Qv[e]}))},nx=function(e,t){void 0===t&&(t=jv);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}(tx),rx=function(e){return e.replace(/^\s+|\s+$/g,"")},ix=function(e){return"".concat(e.label," ").concat(e.value)},ox=["innerRef"];function ax(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=Tb(e,1)[0];return!n.includes(t)}));return i.reduce((function(e,t){var n=Tb(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})}(Zb(e,ox),"onExited","in","enter","exit","appear");return $b("input",Cs({ref:t},n,{css:Vb({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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var lx=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var sx=["boxSizing","height","overflow","paddingRight","position"],cx={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function dx(e){e.cancelable&&e.preventDefault()}function ux(e){e.stopPropagation()}function px(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function mx(){return"ontouchstart"in window||navigator.maxTouchPoints}var hx=!("undefined"==typeof window||!window.document||!window.document.createElement),gx=0,fx={capture:!1,passive:!1};var bx=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},vx="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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+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 xx(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,l=e.onTopLeave,s=o(!1),c=o(!1),u=o(0),p=o(null),m=d((function(e,t){if(null!==p.current){var o=p.current,a=o.scrollTop,d=o.scrollHeight,u=o.clientHeight,m=p.current,h=t>0,g=d-u-a,f=!1;g>t&&s.current&&(r&&r(e),s.current=!1),h&&c.current&&(l&&l(e),c.current=!1),h&&t>g?(n&&!s.current&&n(e),m.scrollTop=d,f=!0,s.current=!0):!h&&-t>a&&(i&&!c.current&&i(e),m.scrollTop=0,f=!0,c.current=!0),f&&lx(e)}}),[n,r,i,l]),h=d((function(e){m(e,e.deltaY)}),[m]),g=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=!!rv&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",g,t),e.addEventListener("touchmove",f,t)}}),[f,g,h]),v=d((function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",g,!1),e.removeEventListener("touchmove",f,!1))}),[f,g,h]);return a((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,i=o({}),l=o(null),s=d((function(e){if(hx){var t=document.body,n=t&&t.style;if(r&&sx.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&gx<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+o||0;Object.keys(cx).forEach((function(e){var t=cx[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&mx()&&(t.addEventListener("touchmove",dx,fx),e&&(e.addEventListener("touchstart",px,fx),e.addEventListener("touchmove",ux,fx))),gx+=1}}),[r]),c=d((function(e){if(hx){var t=document.body,n=t&&t.style;gx=Math.max(gx-1,0),r&&gx<1&&sx.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&mx()&&(t.removeEventListener("touchmove",dx,fx),e&&(e.removeEventListener("touchstart",px,fx),e.removeEventListener("touchmove",ux,fx)))}}),[r]);return a((function(){if(t){var e=l.current;return s(e),function(){c(e)}}}),[t,s,c]),function(e){l.current=e}}({isEnabled:n});return $b(b,null,n&&$b("div",{onClick:bx,css:vx}),t((function(e){i(e),l(e)})))}var yx="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)."}},wx=function(e){var t=e.name,n=e.onFocus;return $b("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:yx,value:"",onChange:function(){}})};function Cx(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 Ex(){return Cx(/^Mac/i)}function Ix(){return Cx(/^iPhone/i)||Cx(/^iPad/i)||Ex()&&navigator.maxTouchPoints>1}var kx=function(e){return e.label},Mx=function(e){return e.value},$x={clearIndicator:$v,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 mg({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:Mv,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 mg({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 mg({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 mg(mg({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Rv),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 mg({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:fv,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,l=i.colors;return mg((ug(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),ug(n,"position","absolute"),ug(n,"width","100%"),ug(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 mg({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 mg({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 mg({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 mg({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:gv,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,l=o.colors;return mg({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 mg({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 mg({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 mg({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")})}},Ax={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}},Lx={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Kb(),captureMenuScroll:!Kb(),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=mg({ignoreCase:!0,ignoreAccents:!0,stringify:ix,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,o=r.ignoreAccents,a=r.stringify,l=r.trim,s=r.matchFrom,c=l?rx(n):n,d=l?rx(a(t)):a(t);return i&&(c=c.toLowerCase(),d=d.toLowerCase()),o&&(c=nx(c),d=tx(d)),"start"===s?d.substr(0,c.length)===c:d.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:kx,getOptionValue:Mx,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 Vx(e,t,n,r){return{type:"option",data:t,isDisabled:Tx(e,t,n),isSelected:Zx(e,t,n),label:zx(e,t),value:Nx(e,t),index:r}}function Hx(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return Vx(e,n,t,r)})).filter((function(t){return Dx(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Vx(e,n,t,r);return Dx(e,o)?o:void 0})).filter(iv)}function Sx(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,yg(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Ox(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,yg(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 Dx(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,l=t.value;return(!Px(e)||!o)&&Bx(e,{label:a,value:l,data:i},r)}var Rx=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},zx=function(e,t){return e.getOptionLabel(t)},Nx=function(e,t){return e.getOptionValue(t)};function Tx(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Zx(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Nx(e,t);return n.some((function(t){return Nx(e,t)===r}))}function Bx(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Px=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},_x=1,Gx=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&&Is(e,t)}(r,f);var n=bg(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:"",isAppleDevice:!1},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.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(yg(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=ov(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(ov(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=ov(e,i,i[0]||null);r&&t.onChange(o,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return Rx(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Ox(Hx(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 jb.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return zx(t.props,e)},t.getOptionValue=function(e){return Nx(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=$x[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,mg(mg({},_v),e.components);var e},t.buildCategorizedOptions=function(){return Hx(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Sx(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:mg({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&&Xb(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 Px(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,h=m.focusedOption,g=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(g)t.removeValue(g);else{if(!i)return;r?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!u||!h||p&&t.isOptionSelected(h,f))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(t.isComposing)return;t.selectOption(h);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(!h)return;t.selectOption(h);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||++_x),t.state.selectValue=Fb(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=Rx(i,o[a])}return t}return function(e,t,n){t&&hg(e.prototype,t),n&&hg(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&&qb(this.menuListRef,this.focusedOptionRef),(Ex()||Ix())&&this.setState({isAppleDevice:!0})}},{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&&(qb(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(Ax):mg(mg({},Ax),this.props.theme):Ax}},{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 Tx(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Zx(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Bx(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,h=this.commonProps,g=i||this.getElementId("input"),f=mg(mg(mg({"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.state.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,Cs({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,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(ax,Cs({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:_b,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,h=d.inputValue,g=d.placeholder,f=this.state,b=f.selectValue,v=f.focusedValue,x=f.isFocused;if(!this.hasValue()||!u)return h?null:e.createElement(s,Cs({},c,{key:"placeholder",isDisabled:p,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),g);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,Cs({},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(h)return null;var y=b[0];return e.createElement(l,Cs({},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,Cs({},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,Cs({},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,Cs({},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,Cs({},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,h=m.captureMenuScroll,g=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,k=m.menuShouldScrollIntoView,M=m.noOptionsMessage,$=m.onMenuScrollToTop,A=m.onMenuScrollToBottom;if(!y)return null;var L,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,h=a?void 0:function(){return t.onOptionHover(o)},g=a?void 0:function(){return t.selectOption(o)},f="".concat(t.getElementId("option"),"-").concat(r),b={id:f,onClick:g,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":t.state.isAppleDevice?void 0:l};return e.createElement(d,Cs({},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())L=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,Cs({},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 H=b({inputValue:g});if(null===H)return null;L=e.createElement(s,u,H)}else{var S=M({inputValue:g});if(null===S)return null;L=e.createElement(c,u,S)}var O={minMenuHeight:v,maxMenuHeight:x,menuPlacement:w,menuPosition:C,menuShouldScrollIntoView:k},D=e.createElement(pv,Cs({},u,O),(function(n){var r=n.ref,i=n.placerProps,l=i.placement,s=i.maxHeight;return e.createElement(o,Cs({},u,O,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:f,placement:l}),e.createElement(xx,{captureEnabled:h,onTopArrive:$,onBottomArrive:A,lockEnabled:I},(function(n){return e.createElement(a,Cs({},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}),L)})))}));return E||"fixed"===C?e.createElement(l,Cs({},u,{appendTo:E,controlElement:this.controlRef,menuPlacement:w,menuPosition:C}),D):D}},{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(wx,{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(Xv,Cs({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:i,focusedValue:o,isFocused:a,selectValue:l,focusableOptions:s,isAppleDevice:this.state.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,Cs({},p,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:u}),this.renderLiveRegion(),e.createElement(n,Cs({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:u,menuIsOpen:d}),e.createElement(o,Cs({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,Cs({},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,h=Fb(d),g={};if(n&&(d!==n.value||c!==n.options||u!==n.menuIsOpen||p!==n.inputValue)){var f=u?function(e,t){return Sx(Hx(e,t))}(e,h):[],b=u?Ox(Hx(e,h),"".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,h):null,x=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,f);g={selectValue:h,focusedOption:x,focusedOptionId:Rx(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:ov(m,h,h[0]||null),options:h,action:"initial-input-focus"},C=!l),"initial-input-focus"===(null==o?void 0:o.action)&&(w=null),mg(mg(mg({},g),y),{},{prevProps:e,ariaSelection:w,prevWasFocused:C})}}]),r}();Gx.defaultProps=Lx;var jx=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Fx(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,l=void 0===a?null:a,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,p=e.onInputChange,m=e.onMenuClose,h=e.onMenuOpen,g=e.value,f=Zb(e,jx),b=Tb(i(void 0!==s?s:n),2),v=b[0],x=b[1],y=Tb(i(void 0!==c?c:o),2),w=y[0],C=y[1],E=Tb(i(void 0!==g?g:l),2),I=E[0],k=E[1],M=d((function(e,t){"function"==typeof u&&u(e,t),k(e)}),[u]),$=d((function(e,t){var n;"function"==typeof p&&(n=p(e,t)),x(void 0!==n?n:e)}),[p]),A=d((function(){"function"==typeof h&&h(),C(!0)}),[h]),L=d((function(){"function"==typeof m&&m(),C(!1)}),[m]),V=void 0!==s?s:v,H=void 0!==c?c:w,S=void 0!==g?g:I;return mg(mg({},f),{},{inputValue:V,menuIsOpen:H,onChange:M,onInputChange:$,onMenuClose:L,onMenuOpen:A,value:S})}var Yx=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Wx=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},Xx={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return Wx(e,t,r)}))||n.some((function(t){return Wx(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};var Jx=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?Xx.formatCreateLabel:o,s=e.isValidNewOption,c=void 0===s?Xx.isValidNewOption:s,u=e.getNewOptionData,p=void 0===u?Xx.getNewOptionData:u,m=e.onCreateOption,h=e.options,g=void 0===h?[]:h,f=e.onChange,b=Zb(e,Yx),v=b.getOptionValue,x=void 0===v?Mx:v,y=b.getOptionLabel,w=void 0===y?kx:y,C=b.inputValue,E=b.isLoading,I=b.isMulti,k=b.value,M=b.name,$=l((function(){return c(C,Fb(k),g,{getOptionValue:x,getOptionLabel:w})?p(C,a(C)):void 0}),[a,p,w,x,C,c,g,k]),A=l((function(){return!n&&E||!$?g:"first"===i?[$].concat(yg(g)):[].concat(yg(g),[$])}),[n,i,E,$,g]),L=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]!==$)f(e,t);else if(m)m(C);else{var r=p(C,C),i={action:"create-option",name:M,option:r};f(ov(I,[].concat(yg(Fb(k)),[r]),r),i)}}),[p,C,I,M,$,m,f,k]);return mg(mg({},b),{},{options:A,onChange:L})}(Fx(t));return e.createElement(Gx,Cs({ref:n},r))})),Ux=Jx;const Qx=v.div`
|
|
2170
2170
|
min-width: ${({minWidth:e})=>e||"auto"};
|
|
2171
2171
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"auto"};
|
|
2172
2172
|
`,qx=v.div`
|
|
@@ -2372,7 +2372,7 @@ object-assign
|
|
|
2372
2372
|
& > tbody > tr:first-of-type > td {
|
|
2373
2373
|
border-top: none;
|
|
2374
2374
|
}
|
|
2375
|
-
`,
|
|
2375
|
+
`,Sy=({horizontalScrollable:t,children:n})=>e.createElement(Hy,{horizontalScrollable:t},n);Sy.Header=({children:t})=>e.createElement("thead",null,t),Sy.Body=({children:t})=>e.createElement("tbody",null,t),Sy.Row=t=>{var{highlighted:n=!1,verticalSpacing:r="medium",isStickyHeader:i=!1,disableHoverHighlight:o=!1,children:a}=t,l=D(t,["highlighted","verticalSpacing","isStickyHeader","disableHoverHighlight","children"]);return e.createElement(Vy,Object.assign({$highlighted:n,$verticalSpacing:r,$isStickyHeader:i,$disableHoverHighlight:o},l),a)},Sy.Cell=t=>{var{width:n="auto",enableRuledLine:r=!1,children:i}=t,o=D(t,["width","enableRuledLine","children"]);return e.createElement($y,Object.assign({width:n,enableRuledLine:r},o),i)};const Oy=e=>e,Dy=(e,t)=>e.sort(((e,n)=>{const r=((e,t,n=Oy)=>{const r=n(e),i=n(t);return i===r?0:i<r?-1:1})(e,n,t.getValue);return t.isDesc?r:-r})),Ry=v.button`
|
|
2376
2376
|
width: 28px;
|
|
2377
2377
|
height: 28px;
|
|
2378
2378
|
margin: 0 4px;
|
|
@@ -2441,7 +2441,7 @@ object-assign
|
|
|
2441
2441
|
border-radius: ${({theme:e})=>`${e.radius}px ${e.radius}px`} 0 0;
|
|
2442
2442
|
background-color: ${({active:e,theme:t})=>e?t.palette.background.default:"none"};
|
|
2443
2443
|
cursor: pointer;
|
|
2444
|
-
`,Qy=({items:t,value:n,onChange:r})=>{const i=e=>()=>{r(e)};return e.createElement(Xy,null,e.createElement(Jy,null,t.map((t=>e.createElement(Uy,{key:t.value,active:t.value===n,onClick:i(t.value)},e.createElement(ke,{size:"sm",color:t.value===n?"initial":"secondary",align:"center"},t.label))))))};function qy(e,t){const n=o(!1);a((()=>{n.current?e():n.current=!0}),t)}function Ky(e,t){var n;return!!t&&!(null===(n=t[e])||void 0===n?void 0:n.disabledCheck)}function ew(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 tw(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 nw({sourceData:e,tabs:t,currentTabIndex:n}){let r=e;return t&&t[n]&&(r=t[n].filter(r)),r}function rw({sourceData:e,sortState:t,filterState:n,enablePagination:r,tabs:i,currentTabIndex:o}){const a=nw({sourceData:e,tabs:i,currentTabIndex:o}),l=Dy(a,t);if(r){return Gy(l,n)}return l}var iw=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:h=!1,verticalSpacing:g="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,k]=e.useState(!1),M=p.length>0&&!I,$=!!a,A=!!l,[L,V]=e.useState(0),H=r.some((e=>e.enableMergeCell)),
|
|
2444
|
+
`,Qy=({items:t,value:n,onChange:r})=>{const i=e=>()=>{r(e)};return e.createElement(Xy,null,e.createElement(Jy,null,t.map((t=>e.createElement(Uy,{key:t.value,active:t.value===n,onClick:i(t.value)},e.createElement(ke,{size:"sm",color:t.value===n?"initial":"secondary",align:"center"},t.label))))))};function qy(e,t){const n=o(!1);a((()=>{n.current?e():n.current=!0}),t)}function Ky(e,t){var n;return!!t&&!(null===(n=t[e])||void 0===n?void 0:n.disabledCheck)}function ew(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 tw(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 nw({sourceData:e,tabs:t,currentTabIndex:n}){let r=e;return t&&t[n]&&(r=t[n].filter(r)),r}function rw({sourceData:e,sortState:t,filterState:n,enablePagination:r,tabs:i,currentTabIndex:o}){const a=nw({sourceData:e,tabs:i,currentTabIndex:o}),l=Dy(a,t);if(r){return Gy(l,n)}return l}var iw=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:h=!1,verticalSpacing:g="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,k]=e.useState(!1),M=p.length>0&&!I,$=!!a,A=!!l,[L,V]=e.useState(0),H=r.some((e=>e.enableMergeCell)),S=r.find((e=>e.name===d)),O=(null==S?void 0:S.sortable)?S:r.find((e=>!0===e.sortable)),[D,R]=(z={isDesc:"desc"===u,name:(null==O?void 0:O.name)||"",getValue:null==O?void 0:O.selector},e.useState(z));var z;const[N,T]=jy(c),[Z,B]=e.useState(rw({sourceData:t,sortState:D,filterState:N,enablePagination:i,tabs:l,currentTabIndex:L})),P=e.useMemo((()=>nw({sourceData:t,tabs:l,currentTabIndex:L}).length),[t,l,L]);qy((()=>{const e=rw({sourceData:t,sortState:D,filterState:N,enablePagination:i,tabs:l,currentTabIndex:L});B(e)}),[t,D,N,i,A,l,L]),qy((()=>{const e={index:1,per:N.per};T(e);const n=rw({sourceData:t,sortState:D,filterState:e,enablePagination:i,tabs:l,currentTabIndex:L});B(n)}),[t,L]);const _=(e,t)=>()=>{R(((e,t,n)=>({isDesc:e.name===n&&!e.isDesc,getValue:t,name:n}))(D,e,t))},G=e=>()=>{o&&(p.includes(e)?o(p.filter((t=>t!==e))):o([...p,e]))},j=e=>()=>{a&&a(e)};return e.createElement(cy,{ref:C},e.createElement(dy,{fullWidth:f},!!l&&e.createElement(Qy,{value:L,items:l.map(((e,t)=>({label:e.label,value:t}))),onChange:e=>{V(e)}}),e.createElement(uy,{maxHeight:v,horizontalScrollable:x,tabIndex:"none"!==v||x?0:void 0},e.createElement(Sy,{horizontalScrollable:x},e.createElement(Sy.Header,null,e.createElement(Sy.Row,{isStickyHeader:"none"!==v},(!A||Ky(L,l))&&e.createElement(e.Fragment,null,E&&e.createElement(vy,{header:!0,selected:p.length>0,indeterminate:M,onClick:()=>{o&&(p.length>0?(o([]),k(!1)):(o(Z.filter((e=>!e.selectDisabled)).map((e=>e[n]))),k(!0)))}}),$&&e.createElement(My,{header:!0})),r.map((t=>{return e.createElement(gy,{key:t.name,sortable:t.sortable&&!H,order:(n=D,r=t.name,n.name===r?n.isDesc?"desc":"asc":null),width:t.width,enableRuledLine:h,onClick:t.sortable&&!H?_(t.selector,t.name):void 0},t.headerCell||t.name);var n,r})))),e.createElement(Sy.Body,null,Z.length>0?Z.map(((t,i)=>e.createElement(e.Fragment,{key:i},E||$?e.createElement(e.Fragment,null,E&&e.createElement(Sy.Row,Object.assign({verticalSpacing:g,highlighted:!t.selectDisabled&&(p.includes(t[n])||m===t[n]),disableHoverHighlight:H},!b&&{onClick:G(t[n])}),(!A||Ky(L,l))&&!ew(Z,n,i)&&e.createElement(vy,Object.assign({selected:p.includes(t[n]),rowSpan:tw(Z,n,i)},b&&{onClick:G(t[n])})),r.map((r=>ew(Z,n,i,r)?null:e.createElement(Sy.Cell,{key:r.name,enableRuledLine:h,rowSpan:tw(Z,n,i,r)},r.renderCell?r.renderCell(t):e.createElement(ke,{align:r.align},r.selector(t)))))),$&&e.createElement(Sy.Row,Object.assign({verticalSpacing:g,highlighted:!t.selectDisabled&&(p.includes(t[n])||m===t[n]),disableHoverHighlight:H},!b&&{onClick:j(t[n])}),(!A||Ky(L,l))&&!ew(Z,n,i)&&e.createElement(My,{selected:t[n]===m,rowSpan:tw(Z,n,i),onClick:j(t[n])}),r.map((r=>ew(Z,n,i,r)?null:e.createElement(Sy.Cell,{key:r.name,enableRuledLine:h,rowSpan:tw(Z,n,i,r)},r.renderCell?r.renderCell(t):e.createElement(ke,{align:r.align},r.selector(t))))))):e.createElement(Sy.Row,{verticalSpacing:g,highlighted:!t.selectDisabled&&(p.includes(t[n])||m===t[n]),disableHoverHighlight:H},r.map((r=>ew(Z,n,i,r)?null:e.createElement(Sy.Cell,{key:r.name,enableRuledLine:h,rowSpan:tw(Z,n,i,r)},r.renderCell?r.renderCell(t):e.createElement(ke,{align:r.align},r.selector(t))))))))):e.createElement("tr",null,e.createElement("td",{colSpan:r.length+(!E&&!$||A&&!Ky(L,l)?0:1)},e.createElement(Wy,Object.assign({},s)))))))),i&&e.createElement(Ua,{p:3},e.createElement(de,{display:"flex",alignItems:"center",justifyContent:"space-between"},e.createElement(_y,{per:N.per,total:P,index:N.index,onClick:e=>{T({index:e,per:N.per})}}),e.createElement(my,{per:N.per,total:P,index:N.index,labelRowsPerPage:y,labelDisplayedRows:w,onChange:e=>{T({index:1,per:e})}}))))}));const ow=!0,aw=!0;function lw(e,t){return!!t.reorder&&(void 0!==e.reorderable?e.reorderable:e.sortable)}function sw(e,t){return!!t.visibility&&(void 0!==e.visibilityEditable?e.visibilityEditable:e.sortable)}function cw(e,t,n){const r=[...e].sort(((e,t)=>e.order-t.order));let i=0;const o=r.map((e=>(e=>!lw(e,n))(e)?e.id:t[i++]));return e.map((e=>{const t=o.indexOf(e.id);return t>=0?Object.assign(Object.assign({},e),{order:t}):e}))}const dw=s({rowIds:[],enableRowSelection:!0,hasRowControls:!1,checkedRows:[],isSmallLayout:!1,totalCount:0,currentPage:0,pageSize:100,pageSizeOptions:[10,50,100,200],columns:[],columnEditFeatures:{reorder:!0,visibility:!0},columnWidths:[],rowSpacing:0,setRowIds:()=>{},setCheckedRows:()=>{},setCurrentPage:()=>{},setPageSize:()=>{},setColumns:()=>{},setColumnWidth:()=>{},setRowSpacing:()=>{}}),uw=s({showStickyRightEdgeDecoration:!0}),pw=s({registerColumnSticky:()=>{},getStickyRightOffset:()=>{},rightStickyColumnIndex:null,getRightStickyZIndexHead:e=>3,getRightStickyZIndexBody:e=>1}),mw=s({index:0}),hw=e=>e<1e3?String(e):e.toLocaleString("en-US"),gw=e=>({toolbarActions:e.filter((e=>{const t="displayIn"in e?e.displayIn:void 0;return"toolbar"===(null!=t?t:"toolbar")})),dropdownActions:e.filter((e=>{const t="displayIn"in e?e.displayIn:void 0;return"dropdown"===(null!=t?t:"toolbar")}))}),fw=(e,t,n=!1)=>{var r,i;if(n)return t.length>0;let o=!1;if("checked"===e.enabledWhen||void 0===e.enabledWhen)o=0===t.length;else if("unchecked"===e.enabledWhen)o=t.length>0;else if("custom"===e.enabledWhen)return null!==(i=null===(r=e.disabled)||void 0===r?void 0:r.call(e,t))&&void 0!==i&&i;return e.disabled&&(o=o||e.disabled(t)),o},bw=(e,t)=>{var n;if("singleButton"===e.type)return`single-${e.label||`action-${t}`}`;if("groupButton"===e.type){return`group-${(null===(n=e.items[0])||void 0===n?void 0:n.label)||""||`action-${t}`}`}return"separator"===e.type?`separator-${t}`:"heading"===e.type?`heading-${e.label||`action-${t}`}`:"divider"===e.type?`divider-${t}`:`action-${t}`},vw=(e,t,n)=>`group-${t}-item-${e.label||`item-${n}`}`,xw=(e,t,n,r)=>{var i;let o=e.label;if(!o&&e.icon&&"object"==typeof e.icon&&null!==e.icon){const t=null===(i=e.icon)||void 0===i?void 0:i.props;(null==t?void 0:t.name)&&(o=`icon-${t.name}`)}return o||(o=`item-${r}`),`${t}-${n}-${o}`},yw=v.button`
|
|
2445
2445
|
display: flex;
|
|
2446
2446
|
gap: 4px;
|
|
2447
2447
|
box-sizing: border-box;
|
|
@@ -2601,11 +2601,11 @@ object-assign
|
|
|
2601
2601
|
flex-shrink: 0;
|
|
2602
2602
|
padding: 8px ${({isSmallLayout:e})=>e?12:16}px;
|
|
2603
2603
|
background: ${({theme:e})=>e.palette.neutral.ultraLight};
|
|
2604
|
-
`,Hw=v(yw)``,
|
|
2604
|
+
`,Hw=v(yw)``,Sw=v.thead`
|
|
2605
2605
|
position: relative;
|
|
2606
2606
|
z-index: 2;
|
|
2607
2607
|
background: transparent;
|
|
2608
|
-
`,
|
|
2608
|
+
`,Ow=v.th`
|
|
2609
2609
|
height: 1px; /* 子要素の高さ 100% を有効にする。table-layout: fixed になっている必要がある */
|
|
2610
2610
|
text-align: left;
|
|
2611
2611
|
font-weight: 700;
|
|
@@ -2925,7 +2925,7 @@ object-assign
|
|
|
2925
2925
|
&:hover:not(:disabled) {
|
|
2926
2926
|
background: ${({theme:e})=>e.palette.neutral.highlight};
|
|
2927
2927
|
}
|
|
2928
|
-
`,nC=()=>{const{columns:e,setColumns:n,isSmallLayout:r}=c(dw),[o,s]=i(!1),[u,p]=i(e.map((e=>e.filtered||!1))),m=l((()=>e.filter((e=>e.filtered)).length),[e]),h=d((()=>{p(e.map((e=>e.filtered||!1)))}),[e]),g=d(((e,t)=>{p((n=>n.map(((n,r)=>e===r?t:n))))}),[p]),f=d((()=>{h(),s(!1)}),[h]),b=d((()=>{const t=structuredClone(e).map(((e,t)=>Object.assign(Object.assign({},e),{filtered:u[t]})));n(t),s(!1)}),[e,n,u]),v=d((e=>{s(e),e||h()}),[s,h]);return a((()=>h()),[e,h]),t.createElement(Da,null,t.createElement(Sa,{width:360,trigger:t.createElement(Aw,{type:"button",disabled:0===m},t.createElement(le,{name:"filter",color:"currentColor"}),r?m:`${m}列に適用中`),open:o,onOpenChange:v},t.createElement(Ra,null,"フィルタが適用されている列"),e.map(((e,n)=>!0===e.filtered?t.createElement(_o,{key:e.id,checked:u[n],onChange:e=>g(n,e)},e.label):null)),t.createElement(Na,{prepend:t.createElement(le,{name:"question"})},"リセットしたいフィルタのボタンをオフにしてください"),t.createElement(Ta,null),t.createElement(Za,null,t.createElement(cl,{type:"button",size:"small",color:"clear",onClick:f},"キャンセル"),t.createElement(cl,{type:"button",size:"small",onClick:b},"適用"))))},rC=()=>{const{columns:e,setColumns:n,columnEditFeatures:r}=c(dw),i=l((()=>[...e].sort(((e,t)=>e.order-t.order))),[e]),o=l((()=>i.map((e=>e.id))),[i]),a=l((()=>i.filter((e=>lw(e,r))).map((e=>e.id))),[i,r]),s=d((t=>{r.reorder&&n(cw(e,t,r))}),[r,e,n]),u=d((t=>{r.visibility&&n(e.map((e=>e.id===t?Object.assign(Object.assign({},e),{visible:!e.visible}):e)))}),[r.visibility,e,n]),p=d(((e,t)=>{if(t)return()=>u(e)}),[u]),m=(h=r).reorder&&h.visibility?"カラムの並び順、表示・非表示を切り替えます。":h.reorder?"カラムの並び順を変更します。":"カラムの表示・非表示を切り替えます。";var h;const g=i.map((e=>(e=>{const n=lw(e,r),i=sw(e,r),o=p(e.id,i),a=t.createElement(_o,{disabled:!i,checked:e.visible,onChange:o},e.label);return n?t.createElement(ia,{key:e.id,id:e.id},a):t.createElement(sa,{key:e.id,id:e.id},a)})(e)));return t.createElement(Sa,{width:328,trigger:t.createElement(Wo,null,"カラムを編集")},r.reorder&&a.length>0?t.createElement(ea,{order:a,displayOrder:o,onOrderChange:s},g):g,t.createElement(Na,{prepend:t.createElement(le,{name:"question"})},m))},iC=()=>{const{pageSize:e,pageSizeOptions:n,setPageSize:r}=c(dw);return t.createElement(Sa,{width:136,trigger:t.createElement(Wo,{append:e},"件数を変更")},n.map((n=>t.createElement(Ro,{key:n,closeOnChange:!0,checked:e===n,onChange:()=>r(n)},n,"件"))))},oC=[{value:-2,label:"より狭くする"},{value:-1,label:"狭くする"},{value:0,label:"標準"},{value:1,label:"広くする"},{value:2,label:"より広くする"}],aC=()=>{const{rowSpacing:e,setRowSpacing:n}=c(dw),r=l((()=>{var t;return(null===(t=oC.find((t=>t.value===e)))||void 0===t?void 0:t.label)||"標準"}),[e]);return t.createElement(Sa,{width:168,trigger:t.createElement(Wo,{append:r},"表示密度を変更")},oC.map((({value:r,label:i})=>t.createElement(Ro,{key:r,closeOnChange:!0,checked:e===r,onChange:()=>(e=>{n(e)})(r)},i))))},lC="small",sC="secondaryLight",cC=n((function(e,n){var{rangeStart:r,rangeEnd:i,totalCount:o,locationSuffix:a}=e,l=D(e,["rangeStart","rangeEnd","totalCount","locationSuffix"]);return t.createElement(cl,Object.assign({},l,{ref:n,inline:!0,type:"button","aria-label":`表示件数を変更${a}`,size:lC,color:sC}),t.createElement(Iw,null,0===o?t.createElement(t.Fragment,null,t.createElement(kw,null,"0"),t.createElement(Mw,null," / "),t.createElement(kw,null,"0")):t.createElement(t.Fragment,null,t.createElement(kw,null,hw(r)),t.createElement(Mw,null,"-"),t.createElement(kw,null,hw(i)),t.createElement(Mw,null,"/"),t.createElement(kw,null,hw(o))),t.createElement($w,null,t.createElement(le,{name:"arrow_down",size:"sm-md",color:"currentColor"}))))})),dC=({location:e="toolbar"})=>{const n=(e=>"footer"===e?"(下部)":"")(e),{totalCount:r,currentPage:i,pageSize:o,pageSizeOptions:a,setCurrentPage:s,setPageSize:u}=c(dw),p=d((e=>{s(0),u(e)}),[s,u]),m=l((()=>Math.ceil(r/o)-1),[r,o]),h=Math.min(i*o+1,r),g=Math.min((i+1)*o,r);return t.createElement(Xu,{minSize:"fit-content"},t.createElement(cl,{inline:!0,type:"button","aria-label":`前のページへ${n}`,size:lC,color:sC,disabled:0===i||0===r,icon:t.createElement(le,{name:"arrow_left",size:"md",color:"currentColor"}),onClick:()=>s(Math.max(i-1,0))}),t.createElement(Da,null,t.createElement(Sa,{width:296,trigger:t.createElement(cC,{rangeStart:h,rangeEnd:g,totalCount:r,locationSuffix:n})},t.createElement(Ra,null,"表示件数を変更"),a.map((e=>t.createElement(Ro,{key:e,checked:o===e,onChange:()=>p(e)},e))))),t.createElement(cl,{inline:!0,type:"button","aria-label":`次のページへ${n}`,size:lC,color:sC,disabled:i===m||0===r,icon:t.createElement(le,{name:"arrow_right",size:"md",color:"currentColor"}),onClick:()=>s(Math.min(i+1,m))}))},uC=({tableActions:e,customTableActionArea:n})=>{const{isSmallLayout:r,columns:o,columnEditFeatures:a,rowIds:s,checkedRows:u,setCheckedRows:p,hasRowControls:m}=c(dw),h=ne(),g=l((()=>s.length>0&&u.length===s.length),[u,s]),f=l((()=>0!==u.length&&u.length!==s.length),[u,s]),[b,v]=i(!1),[x,y]=i(!1),[w,C]=i(!1),E=l((()=>o.some((e=>void 0!==e.filtered))),[o]),I=d((()=>{p(g?[]:s)}),[g,s,p]),k=d(((e,n)=>((e,n,r,i)=>{if(n&&t.isValidElement(e)){let o=r?n.enabled:n.disabled||"currentColor";return"success"===o?o=i.palette.success.base:"danger"===o?o=i.palette.danger.base:"primary"===o?o=i.palette.primary.base:"warning"===o&&(o=i.palette.warning.base),t.cloneElement(e,Object.assign(Object.assign({},e.props),{color:o}))}return e})(e,n,u.length>0,h)),[u.length,h]),M=d(((e,n,r)=>{var i;return"singleButton"===e.type?t.createElement(cl,{key:bw(e,n),icon:k(e.icon,e.dynamicIconColor),color:null!==(i=e.color)&&void 0!==i?i:"secondaryLight",size:"small",inline:r,style:e.style,disabled:fw(e,u),onClick:()=>e.onClick(u)},e.label):"groupButton"===e.type?t.createElement(Qu,{key:bw(e,n),size:"small"},e.items.map(((e,r)=>{var i;return t.createElement(cl,{key:vw(e,n,r),icon:k(e.icon,e.dynamicIconColor),color:null!==(i=e.color)&&void 0!==i?i:"secondaryLight",style:e.style,disabled:fw(e,u),onClick:()=>e.onClick(u)},e.label)}))):"separator"===e.type?t.createElement(Kw,{key:bw(e,n)}):"heading"===e.type?t.createElement("span",{key:bw(e,n),style:{padding:"8px",fontSize:"14px",fontWeight:"bold"}},e.label):t.createElement(Kw,{key:bw(e,n)})}),[u,k]),$=d(((e,n=!1)=>{const r=[],i=new Set;return e.forEach(((o,a)=>{if("singleButton"!==o.type&&"groupButton"!==o.type||!o.headingLabel||i.has(o.headingLabel))"singleButton"!==o.type&&"groupButton"!==o.type||o.headingLabel?"separator"===o.type?r.push(t.createElement(Ta,{key:`separator-${a}`})):"heading"===o.type?r.push(t.createElement(Ra,{key:`heading-${o.label||a}`},o.label)):"divider"===o.type&&r.push(t.createElement(Ta,{key:`divider-${a}`})):"singleButton"===o.type?r.push(t.createElement(Dt,{key:`single-${o.label||a}`,prepend:k(o.icon,o.dynamicIconColor),disabled:fw(o,u,n),onClick:()=>{o.onClick(u),n?C(!1):y(!1)}},o.label)):"groupButton"===o.type&&o.items.forEach(((e,i)=>{r.push(t.createElement(Dt,{key:xw(e,"mobile-group",a,i),prepend:k(e.icon,e.dynamicIconColor),disabled:fw(e,u,n),onClick:()=>{e.onClick(u),n?C(!1):y(!1)}},e.label))}));else{i.add(o.headingLabel);const a=e.filter((e=>("singleButton"===e.type||"groupButton"===e.type)&&e.headingLabel===o.headingLabel));r.push(t.createElement(Ra,{key:`group-${o.headingLabel}-heading`},o.headingLabel)),a.forEach(((e,i)=>{"singleButton"===e.type?r.push(t.createElement(Dt,{key:`group-${e.headingLabel}-${e.label||i}`,prepend:k(e.icon,e.dynamicIconColor),disabled:fw(e,u,n),onClick:()=>{e.onClick(u),n?C(!1):y(!1)}},e.label)):"groupButton"===e.type&&e.items.forEach(((e,a)=>{r.push(t.createElement(Dt,{key:xw(e,`group-${o.headingLabel}-group`,i,a),prepend:k(e.icon,e.dynamicIconColor),disabled:fw(e,u,n),onClick:()=>{e.onClick(u),n?C(!1):y(!1)}},e.label))}))}))}})),r}),[u,y,C,k]);let A=null;if(n)A=n({isSmallLayout:r,checkedRows:u});else if(e&&e.length>0){const{checkedActions:n,uncheckedActions:i}={checkedActions:(L=e).filter((e=>{const t="enabledWhen"in e?e.enabledWhen:void 0;return"checked"===t||void 0===t})),uncheckedActions:L.filter((e=>"unchecked"===("enabledWhen"in e?e.enabledWhen:void 0)))};if(r)A=t.createElement(eC,null,n.length>0&&t.createElement(Da,null,t.createElement(Sa,{open:x,trigger:t.createElement(tC,{type:"button",disabled:0===u.length},t.createElement("span",{style:{color:0===u.length?"inherit":h.palette.primary.base,fontWeight:700}},0===u.length?"-":u.length),"件を操作",t.createElement(le,{name:"arrow_down",size:"sm-md",color:"currentColor"})),width:200,onOpenChange:y},$(n))),i.length>0&&t.createElement(Da,null,t.createElement(Sa,{open:w,trigger:t.createElement(cl,{type:"button",color:"secondaryLight",size:"small",icon:t.createElement(le,{name:"more_vert",color:"currentColor"}),disabled:u.length>0}),width:200,onOpenChange:C},$(i,!0))));else{const{dropdownActions:e}=gw(n),{dropdownActions:r}=gw(i),o=()=>{const r=[];return n.forEach(((n,i)=>{var o;const a=null!==(o=n.displayIn)&&void 0!==o?o:"toolbar";if("toolbar"===a)r.push(M(n,i,!0));else if("dropdown"===a){r.some((e=>t.isValidElement(e)&&"checked-dropdown"===e.key))||r.push(t.createElement(Da,{key:"checked-dropdown"},t.createElement(Sa,{open:x,trigger:t.createElement(cl,{type:"button",color:"secondaryLight",size:"small",icon:t.createElement(le,{name:"more_vert",color:"currentColor"}),disabled:0===u.length}),width:200,onOpenChange:y},e.map(((e,n)=>"singleButton"===e.type?t.createElement(Dt,{key:`checked-single-${e.label||n}`,prepend:k(e.icon,e.dynamicIconColor),disabled:fw(e,u),onClick:()=>{e.onClick(u),y(!1)}},e.label):"groupButton"===e.type?e.items.map(((e,r)=>t.createElement(Dt,{key:xw(e,"checked-group",n,r),prepend:k(e.icon,e.dynamicIconColor),disabled:fw(e,u),onClick:()=>{e.onClick(u),y(!1)}},e.label))):"separator"===e.type?t.createElement(Ta,{key:`checked-separator-sep-${n}`}):"heading"===e.type?t.createElement(Ra,{key:`checked-heading-${e.label||`heading${n}`}`},e.label):t.createElement(Ta,{key:`checked-divider-div-${n}`}))))))}})),r},a=()=>{const e=[];return i.forEach(((n,i)=>{var o;const a=null!==(o=n.displayIn)&&void 0!==o?o:"toolbar";if("toolbar"===a)e.push(M(n,i,!0));else if("dropdown"===a){e.some((e=>t.isValidElement(e)&&"unchecked-dropdown"===e.key))||e.push(t.createElement(Da,{key:"unchecked-dropdown"},t.createElement(Sa,{open:w,trigger:t.createElement(cl,{type:"button",color:"secondaryLight",size:"small",icon:t.createElement(le,{name:"more_vert",color:"currentColor"}),disabled:u.length>0}),width:200,onOpenChange:C},r.map(((e,n)=>"singleButton"===e.type?t.createElement(Dt,{key:`unchecked-single-${e.label||n}`,prepend:k(e.icon,e.dynamicIconColor),disabled:fw(e,u,!0),onClick:()=>{e.onClick(u),C(!1)}},e.label):"groupButton"===e.type?e.items.map(((e,r)=>t.createElement(Dt,{key:xw(e,"unchecked-group",n,r),prepend:k(e.icon,e.dynamicIconColor),disabled:fw(e,u,!0),onClick:()=>{e.onClick(u),C(!1)}},e.label))):"separator"===e.type?t.createElement(Ta,{key:`unchecked-separator-sep-${n}`}):"heading"===e.type?t.createElement(Ra,{key:`unchecked-heading-${e.label||`heading${n}`}`},e.label):t.createElement(Ta,{key:`unchecked-divider-div-${n}`}))))))}})),e};A=t.createElement(eC,null,o(),n.length>0&&i.length>0&&t.createElement(Kw,null),a())}}var L;return t.createElement(Ew,{isSmallLayout:r},t.createElement(Uw,null,m&&t.createElement(t.Fragment,null,t.createElement(Kd,{checked:g||f,indeterminate:f,disabled:0===s.length,"aria-label":"すべての行を選択",onChange:I}),!r&&t.createElement(Qw,null,t.createElement("span",{style:{color:h.palette.primary.base,fontWeight:700}},0===u.length?"-":u.length),"件を")),A),t.createElement(Lw,null,E&&t.createElement(nC,null),t.createElement(dC,null),t.createElement(Da,null,t.createElement(Sa,{open:b,width:316,trigger:t.createElement(cl,{type:"button",color:"secondaryLight",size:"small",icon:t.createElement(le,{name:"setting",color:"currentColor"})}),onOpenChange:v},function(e,t){return!(!t.reorder&&!t.visibility)&&e.some((e=>lw(e,t)||sw(e,t)))}(o,a)&&t.createElement(rC,null),t.createElement(iC,null),t.createElement(aC,null)))))},pC=()=>{const{isSmallLayout:e}=c(dw);return t.createElement(Vw,{isSmallLayout:e},t.createElement(dC,{location:"footer"}))},mC=({children:e})=>{const[n,r]=i(!0),l=o(null),s=d((()=>{const e=l.current;if(!e)return;const{scrollLeft:t,scrollWidth:n,clientWidth:i}=e,o=Math.max(0,n-i),a=o>.5&&!(t>=o-1);r((e=>e===a?e:a))}),[]);return a((()=>{const e=l.current;if(!e)return;s(),e.addEventListener("scroll",s,{passive:!0});const t=new ResizeObserver(s);t.observe(e);const n=e.firstElementChild;return n instanceof HTMLElement&&t.observe(n),()=>{e.removeEventListener("scroll",s),t.disconnect()}}),[s]),t.createElement(uw.Provider,{value:{showStickyRightEdgeDecoration:n}},t.createElement(Cw,{ref:l},t.createElement("table",null,e)))},hC=({bordered:e,currentPage:n,pageSize:r,pageSizeOptions:s,totalCount:c,columns:u,onPageChange:p,onPageSizeChange:m,onColumnsChange:h,onCheckedRowsChange:g,children:f,tableActions:b,customTableActionArea:v,enableRowSelection:x=!0,columnEditFeatures:y,showBottomPagination:w=!1})=>{const C=l((()=>{return{reorder:null!==(t=null==(e=y)?void 0:e.reorder)&&void 0!==t?t:ow,visibility:null!==(n=null==e?void 0:e.visibility)&&void 0!==n?n:aw};var e,t,n}),[y]),[E,I]=i(!1),[k,M]=i([]),[$,A]=i([]),[L,V]=i([]),[H,O]=i(0),S=o(null),D=d(((e,t)=>{const n=[...L];n[e]=t,V(n)}),[L,V]);a((()=>{if(!S.current)return;const e=()=>{var e;S.current&&I((null===(e=S.current)||void 0===e?void 0:e.clientWidth)<F.TABLET)},t=new ResizeObserver(e);return e(),t.observe(S.current),()=>{t.disconnect()}}),[]);const R=d((e=>{A(e),null==g||g(e)}),[A,g]),z=o(n);a((()=>{z.current!==n&&R([]),z.current=n}),[n,R]),a((()=>{if(0===$.length)return;const e=$.filter((e=>k.includes(e)));e.length!==$.length&&R(e)}),[k,$,R]);const N=l((()=>Math.ceil(c/r)-1),[c,r]);a((()=>{n>N&&p(N)}),[n,N,p]);const T=x&&!!b,[Z,B]=i(null),P=d(((e,t)=>{B((n=>void 0===t?n===e?null:n:null!==n&&n!==e?("production"!==process.env.NODE_ENV&&console.warn(`[DataTable2] sticky="right" は 1 列のみです。既に列 index ${String(n)} で使用されているため、列 ${String(e)} の登録は無視しました。`),n):e))}),[]),_=l((()=>{const e=u.filter((e=>e.visible)).length;return{registerColumnSticky:P,getStickyRightOffset:t=>{var n;if(null===Z||t!==Z)return;let r=0;for(let i=t+1;i<e;i++)r+=null!==(n=L[i])&&void 0!==n?n:0;return r},rightStickyColumnIndex:Z,getRightStickyZIndexHead:e=>3,getRightStickyZIndexBody:e=>1}}),[L,u,P,Z]);return t.createElement(ww,{ref:S,bordered:e},t.createElement(dw.Provider,{value:{isSmallLayout:E,rowIds:k,enableRowSelection:x,hasRowControls:T,checkedRows:$,totalCount:c,currentPage:n,pageSize:r,pageSizeOptions:s,columns:u,columnEditFeatures:C,columnWidths:L,rowSpacing:H,setRowIds:M,setCheckedRows:R,setCurrentPage:p,setPageSize:m,setColumns:h,setColumnWidth:D,setRowSpacing:O}},t.createElement(pw.Provider,{value:_},t.createElement(uC,{tableActions:b,customTableActionArea:v}),t.createElement(mC,null,f),w&&t.createElement(pC,null))))},gC=({children:e})=>{const{hasRowControls:n,columns:r}=c(dw),i=l((()=>p.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=l((()=>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})=>m(n)?t.createElement("col",{key:e,style:{width:n.props.width}}):null))),t.createElement(Ow,null,t.createElement("tr",null,n&&t.createElement(Gw,{"aria-label":"empty cell"}),o.map((({id:e,index:n,child:r})=>t.createElement(mw.Provider,{key:e,value:{index:n}},r))))))},fC=({className:e,sticky:n,isResizable:r,width:l,minWidth:s=32,maxWidth:u=1/0,children:p,onWidthChange:m})=>{const{isSmallLayout:h,setColumnWidth:g}=c(dw),{registerColumnSticky:f,getStickyRightOffset:b,rightStickyColumnIndex:v,getRightStickyZIndexHead:x}=c(pw),{showStickyRightEdgeDecoration:y}=c(uw),w=c(mw),[C,E]=i(!1);a((()=>(f(w.index,"right"===n?"right":void 0),()=>{f(w.index,void 0)})),[n,w.index,f]);const I=b(w.index),M=void 0!==I&&w.index===v&&y,$=void 0!==I?x(w.index):void 0,A=o(null),L=o(null),V=o(0),H=o(0),O=d((e=>{E(!0),L.current&&null===A.current&&(A.current=e.pointerId,H.current=l||L.current.clientWidth,V.current=e.clientX)}),[l]),S=d((e=>{if(!m)return;if(A.current!==e.pointerId)return;e.cancelable&&e.preventDefault();const t=e.clientX-V.current,n=((e,t,n)=>Math.min(Math.max(e,t),n))(H.current+t,s,u);m(n),g(w.index,n)}),[m,s,u,g,w.index]),D=d((()=>{E(!1),A.current=null}),[]);return a((()=>{if(C)return document.addEventListener("pointermove",S),document.addEventListener("pointerup",D),()=>{document.removeEventListener("pointermove",S),document.removeEventListener("pointerup",D)}}),[C,S,D]),t.createElement(Sw,{ref:L,className:e,"data-dragging":C,$stickyRightOffset:I,$stickyZIndex:$,$showStickyEdgeDecoration:M,style:{minWidth:isFinite(s)&&s<=u?s:void 0,maxWidth:isFinite(s)&&s<=u?u:void 0}},t.createElement(Rw,{isSmallLayout:h},p,r&&t.createElement(zw,{type:"button","aria-label":"resize the column",onPointerDown:O}),C&&k(t.createElement(Nw,{"data-min":l&&s>=l,"data-max":l&&u<=l}),document.body)))},bC=({showSortButton:e,sortButtonDirection:n,onSortChange:r,children:i})=>{const o=l((()=>"asc"===n?"desc":"desc"!==n?"asc":void 0),[n]),a=d((()=>{null==r||r(o)}),[r,o]),s=l((()=>"asc"===n?"sort_up":"desc"===n?"sort_down":"sort_inactive"),[n]);return e?t.createElement(Bw,{type:"button",onClick:a},i,t.createElement(le,{name:s,size:"md"})):t.createElement(Zw,null,i)},vC=({children:e})=>{const{rowIds:n,setRowIds:r}=c(dw);return a((()=>{const t=[];p.forEach(e,(e=>{if(!m(e))return;const n=e.props;"string"==typeof n.id&&t.push(n.id)})),t.length===n.length&&t.every((e=>n.includes(e)))||r(t)}),[e,n,r]),t.createElement("tbody",null,e)},xC=({id:e,children:n})=>{const{isSmallLayout:r,columns:i,hasRowControls:o,checkedRows:a,setCheckedRows:s,rowSpacing:u}=c(dw),m=l((()=>a.includes(e)),[e,a]),h=d((()=>{const t=a.includes(e)?a.filter((t=>t!==e)):[...a,e];s(t)}),[e,a,s]),g=l((()=>p.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=l((()=>g.sort(((e,t)=>e.order-t.order)).filter((e=>e.visible))),[g]);return t.createElement(Pw,{"data-highlighted":m,"data-spacing":u,isSmallLayout:r},o&&t.createElement(_w,null,t.createElement(jw,null,t.createElement(Kd,{checked:m,"aria-label":"この行を選択",onChange:h}),t.createElement("input",{type:"checkbox","aria-label":"この行を選択"}))),f.map((({id:e,index:n,child:r})=>t.createElement(mw.Provider,{key:e,value:{index:n}},r))))},yC=({loading:e,sticky:n,children:r})=>{const{getStickyRightOffset:i,rightStickyColumnIndex:o,getRightStickyZIndexBody:a}=c(pw),{showStickyRightEdgeDecoration:l}=c(uw),s=c(mw),d=i(s.index),u=void 0!==d&&s.index===o&&l,p=void 0!==d?a(s.index):void 0;return t.createElement(Dw,{$stickyRightOffset:d,$stickyZIndex:p,$showStickyEdgeDecoration:u},t.createElement(Fw,null,t.createElement(Ww,null,r),e&&t.createElement(Yw,null,t.createElement(rl,{width:"20px"}))))},wC=({prepend:e,children:n,onClick:r})=>{const{isSmallLayout:i}=c(dw);return i?t.createElement(Dt,{prepend:e,onClick:r},n):t.createElement(Hw,{type:"button",onClick:r},e,n)},CC=({label:e,value:n,children:r,onChange:o})=>{const[l,s]=i(n),[c,d]=i(!1),u=()=>{d(!1),o(l)};return a((()=>{s(n)}),[n]),t.createElement(Xw,null,r,t.createElement(Jw,null,t.createElement(Da,null,t.createElement(Sa,{width:252,trigger:t.createElement(cl,{type:"button",color:"primarySubtle",size:"small",inline:!0,icon:t.createElement(le,{name:"pencil",color:"currentColor"})}),open:c,onOpenChange:d},t.createElement(Ra,null,e),t.createElement(ya,{value:l,onChange:e=>s(e.target.value),onEnter:u}),t.createElement(Ta,null),t.createElement(Za,null,t.createElement(cl,{type:"button",color:"clear",size:"small",onClick:()=>{d(!1),s(n)}},"キャンセル"),t.createElement(cl,{type:"button",color:"primary",size:"small",onClick:u},"適用"))))))},EC=({label:e,value:n,options:r,children:o,onChange:a})=>{const[l,s]=i(!1);return t.createElement(Xw,null,o,t.createElement(Jw,null,t.createElement(Da,null,t.createElement(Sa,{width:252,trigger:t.createElement(cl,{type:"button",color:"primarySubtle",size:"small",inline:!0,icon:t.createElement(le,{name:"pencil",color:"currentColor"})}),open:l,onOpenChange:s},t.createElement(Ra,null,e),r.map((e=>t.createElement(Ro,{key:e,closeOnChange:!0,checked:n===e,onChange:()=>a(e)},e)))))))},IC=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},kC=e=>e.map((e=>e.value)).join(""),MC=(e,t,n)=>{if(4===e)return"year";if(2===e){const e=(t.match(/[YMD]+/g)||[]).map(((e,t)=>({token:e,length:e.length,index:t}))),r=e[n];if(r){if(r.token.includes("Y"))return"year";if(r.token.includes("M"))return"month";if(r.token.includes("D"))return"day"}}return"unknown"},$C=(e,t,n,r)=>{if(0===t){const t=parseInt(e);return"month"===n?t>=2:"day"===n&&t>=4}return t+1===r},AC={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"},LC=["Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9"],VC=Object.keys(AC).filter((e=>!isNaN(Number(e)))),HC=Object.values(AC),OC=e=>LC.includes(e),SC=e=>{const t=e.match(/Numpad(\d)/);return t?t[1]:null},DC=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,RC=/\d\d/,zC=/-?\d\d?/,NC=/\d*[^-_:/,()\s\d]+/;let TC={},ZC=function(e){return(e=+e)+(e>68?1900:2e3)};const BC=function(e){return function(t){this[e]=+t}},PC=[/[+-]\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)}],_C=e=>{const t=TC[e];return t&&(t.indexOf?t:t.s.concat(t.f))},GC=(e,t)=>{let n;const{meridiem:r}=TC;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},jC={A:[NC,function(e){this.afternoon=GC(e,!1)}],a:[NC,function(e){this.afternoon=GC(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[RC,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[zC,BC("seconds")],ss:[zC,BC("seconds")],m:[zC,BC("minutes")],mm:[zC,BC("minutes")],H:[zC,BC("hours")],h:[zC,BC("hours")],HH:[zC,BC("hours")],hh:[zC,BC("hours")],D:[zC,BC("day")],DD:[RC,BC("day")],Do:[NC,function(e){const{ordinal:t}=TC;if([this.day]=e.match(/\d+/),t)for(let n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],M:[zC,BC("month")],MM:[RC,BC("month")],MMM:[NC,function(e){const t=_C("months"),n=(_C("monthsShort")||t.map((e=>e.slice(0,3)))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[NC,function(e){const t=_C("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,BC("year")],YY:[RC,function(e){this.year=ZC(e)}],YYYY:[/\d{4}/,BC("year")],Z:PC,ZZ:PC};const FC=(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(DC),{length:n}=t;for(let e=0;e<n;e+=1){const n=t[e],r=jC[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(),h=o-1,g=l||0,f=s||0,b=c||0,v=d||0;return u?new Date(Date.UTC(m,h,a,g,f,b,v+60*u.offset*1e3)):n?new Date(Date.UTC(m,h,a,g,f,b,v)):new Date(m,h,a,g,f,b,v)}catch(e){return new Date("")}};var YC=(e,t,n)=>{n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&({parseTwoDigitYear:ZC}=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),TC=this.$locale(),!e&&s&&(TC=n.Ls[s]),this.$d=FC(t,a,r),this.init(),s&&!0!==s&&(this.$L=this.locale(s).$L),l&&t!=this.format(a)&&(this.$d=new Date("")),TC={}}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 WC=({date:e,format:t="YYYY-MM-DD",onDateChange:n})=>{_a.extend(YC);const r=o(null),[l,s]=i(null==e?void 0:e.format(t)),[c,u]=i(IC(l)),[p,m]=i({start:0,end:c.length-1,current:0}),[h,g]=i(0),f=d((()=>{setTimeout((()=>{var e,t,n;if(0===c.length)return;const i=null!==(t=null===(e=r.current)||void 0===e?void 0:e.selectionStart)&&void 0!==t?t:0,o=c[c.length-1].end+1,a=i>=o?o:i,l=c.findIndex((e=>a>=e.start&&a<=e.end+1));-1!==l&&(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=r.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}))),g(0)}),[]),x=d((e=>{if(0===c.length)return;const r=OC(e.code),i=r?SC(e.code):null;if(!HC.includes(e.key)&&!r)return;if(e.key===AC.ArrowLeft||e.key===AC.ArrowRight){e.preventDefault();const t=e=>{const t=p.current;if(e===AC.ArrowLeft){for(let e=t-1;e>=0;e--)if(c[e].editable)return e-t}else if(e===AC.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===AC.ArrowUp||e.key===AC.ArrowDown){e.preventDefault();const r=e.key===AC.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=kC(a),d=_a(l,t);s(d.format(t)),d.isValid()&&n&&n(d)}const o=r?i:e.key;if((VC.includes(e.key)||r)&&o){e.preventDefault(),0===h&&(c[p.current].value="".padStart(c[p.current].value.length,"0"));const r=`${c[p.current].value.slice(1)}${o}`,i=[...c];i[p.current].value=r,u(i),g(h+1);const a=MC(c[p.current].value.length,t,p.current);if($C(o,h,a,c[p.current].value.length)){g(0);for(let e=p.current+1;e<c.length;e++)if(c[e].editable){m((t=>Object.assign(Object.assign({},t),{current:e})));break}const e=kC(c),r=_a(e,t);s(r.format(t)),n&&n(r)}else{const e=kC(c);if(!_a(e,t,!0).isValid())return void s(e);const r=_a(e,t);s(r.format(t)),n&&n(r)}}}),[c,t,n,p]),y=d((()=>{f()}),[f]),w=d((e=>{e.preventDefault();const r=e.clipboardData.getData("text").trim(),i=/[Hh]|mm|ss/.test(t),o=[];o.push(t),o.push("YYYY年M月D日","YYYY年MM月DD日"),i&&o.push("YYYY年M月D日 HH:mm","YYYY年MM月DD日 HH:mm","YYYY年M月D日 HH:mm:ss","YYYY年MM月DD日 HH:mm:ss"),o.push("YYYY-MM-DD","YYYY-M-DD","YYYY-MM-D","YYYY-M-D"),i&&o.push("YYYY-MM-DD HH:mm","YYYY-M-DD HH:mm","YYYY-MM-D HH:mm","YYYY-M-D HH:mm","YYYY-MM-DD HH:mm:ss","YYYY-M-DD HH:mm:ss","YYYY-MM-D HH:mm:ss","YYYY-M-D HH:mm:ss"),o.push("YYYY/MM/DD","YYYY/M/DD","YYYY/MM/D","YYYY/M/D"),i&&o.push("YYYY/MM/DD HH:mm","YYYY/M/DD HH:mm","YYYY/MM/D HH:mm","YYYY/M/D HH:mm","YYYY/MM/DD HH:mm:ss","YYYY/M/DD HH:mm:ss","YYYY/MM/D HH:mm:ss","YYYY/M/D HH:mm:ss");const a=r.match(/(\d{4})[-/年](\d{1,2})[-/月](\d{1,2})/);if(a){const e=parseInt(a[1],10),t=parseInt(a[2],10),n=parseInt(a[3],10);if(!(e>=1900&&e<=2100&&t>=1&&t<=12&&n>=1&&n<=31))return;if(n>_a(`${e}-${t}-01`).daysInMonth())return}let l=null;const s=_a(r);if(s.isValid())l=s;else for(const e of o){const t=_a(r,e,!0);if(t.isValid()){l=t;break}}if(!l||!l.isValid())return;const c=l.year(),d=l.month()+1,u=l.date();if(c>=1900&&c<=2100&&d>=1&&d<=12&&u>=1&&u<=31){if(i){const e=r.match(/(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?/);if(e){const t=parseInt(e[1],10),n=parseInt(e[2],10),r=e[3]?parseInt(e[3],10):0;if(!(!isNaN(t)&&!isNaN(n)&&!isNaN(r)&&t>=0&&t<=23&&n>=0&&n<=59&&r>=0&&r<=59))return}}n&&n(l)}}),[t,n]);return a((()=>{var e;if(0===c.length)return;const t=c[p.current];t&&(null===(e=r.current)||void 0===e||e.setSelectionRange(t.start,t.end+1))}),[p,c]),a((()=>{s(null==e?void 0:e.format(t)),u(IC(null==e?void 0:e.format(t)))}),[e,t]),{ref:r,value:l,onFocus:b,onBlur:v,onKeyDown:x,onMouseDown:y,onPaste:w}},XC=e=>[...e.split("")].reduce(((e,t)=>{const n=t.charCodeAt(0);return e+(n>=12288&&n<=65376?2:1)}),0),JC=n((function(e,n){var{error:r=!1,errorText:i,format:o="YYYY-MM-DD",disabled:a=!1,size:s="medium",variant:c="light",width:d,append:u,onAppendClick:p}=e,m=D(e,["error","errorText","format","disabled","size","variant","width","append","onAppendClick"]);Ae("DateField","DateField は非推奨です。代わりに DateField2 を使用してください。");const h=WC(Object.assign({format:o},m)),{ref:g}=h,f=D(h,["ref"]),b=Vc(n,g),v=l((()=>9*XC(o)*(parseInt(ca[s].fontSize)/13)+"px"),[o,s]),x=null!=d?d:v;return t.createElement(t.Fragment,null,t.createElement(va,Object.assign({ref:b,readOnly:!0,error:r||!!i,disabled:a,size:s,variant:c,width:x,append:u,onAppendClick:p},f)),i&&t.createElement(Ua,{pt:1},t.createElement(nd,null,i)))}));var UC=g(JC);const QC=v.div`
|
|
2928
|
+
`,nC=()=>{const{columns:e,setColumns:n,isSmallLayout:r}=c(dw),[o,s]=i(!1),[u,p]=i(e.map((e=>e.filtered||!1))),m=l((()=>e.filter((e=>e.filtered)).length),[e]),h=d((()=>{p(e.map((e=>e.filtered||!1)))}),[e]),g=d(((e,t)=>{p((n=>n.map(((n,r)=>e===r?t:n))))}),[p]),f=d((()=>{h(),s(!1)}),[h]),b=d((()=>{const t=structuredClone(e).map(((e,t)=>Object.assign(Object.assign({},e),{filtered:u[t]})));n(t),s(!1)}),[e,n,u]),v=d((e=>{s(e),e||h()}),[s,h]);return a((()=>h()),[e,h]),t.createElement(Da,null,t.createElement(Oa,{width:360,trigger:t.createElement(Aw,{type:"button",disabled:0===m},t.createElement(le,{name:"filter",color:"currentColor"}),r?m:`${m}列に適用中`),open:o,onOpenChange:v},t.createElement(Ra,null,"フィルタが適用されている列"),e.map(((e,n)=>!0===e.filtered?t.createElement(_o,{key:e.id,checked:u[n],onChange:e=>g(n,e)},e.label):null)),t.createElement(Na,{prepend:t.createElement(le,{name:"question"})},"リセットしたいフィルタのボタンをオフにしてください"),t.createElement(Ta,null),t.createElement(Za,null,t.createElement(cl,{type:"button",size:"small",color:"clear",onClick:f},"キャンセル"),t.createElement(cl,{type:"button",size:"small",onClick:b},"適用"))))},rC=()=>{const{columns:e,setColumns:n,columnEditFeatures:r}=c(dw),i=l((()=>[...e].sort(((e,t)=>e.order-t.order))),[e]),o=l((()=>i.map((e=>e.id))),[i]),a=l((()=>i.filter((e=>lw(e,r))).map((e=>e.id))),[i,r]),s=d((t=>{r.reorder&&n(cw(e,t,r))}),[r,e,n]),u=d((t=>{r.visibility&&n(e.map((e=>e.id===t?Object.assign(Object.assign({},e),{visible:!e.visible}):e)))}),[r.visibility,e,n]),p=d(((e,t)=>{if(t)return()=>u(e)}),[u]),m=(h=r).reorder&&h.visibility?"カラムの並び順、表示・非表示を切り替えます。":h.reorder?"カラムの並び順を変更します。":"カラムの表示・非表示を切り替えます。";var h;const g=i.map((e=>(e=>{const n=lw(e,r),i=sw(e,r),o=p(e.id,i),a=t.createElement(_o,{disabled:!i,checked:e.visible,onChange:o},e.label);return n?t.createElement(ia,{key:e.id,id:e.id},a):t.createElement(sa,{key:e.id,id:e.id},a)})(e)));return t.createElement(Oa,{width:328,trigger:t.createElement(Wo,null,"カラムを編集")},r.reorder&&a.length>0?t.createElement(ea,{order:a,displayOrder:o,onOrderChange:s},g):g,t.createElement(Na,{prepend:t.createElement(le,{name:"question"})},m))},iC=()=>{const{pageSize:e,pageSizeOptions:n,setPageSize:r}=c(dw);return t.createElement(Oa,{width:136,trigger:t.createElement(Wo,{append:e},"件数を変更")},n.map((n=>t.createElement(Ro,{key:n,closeOnChange:!0,checked:e===n,onChange:()=>r(n)},n,"件"))))},oC=[{value:-2,label:"より狭くする"},{value:-1,label:"狭くする"},{value:0,label:"標準"},{value:1,label:"広くする"},{value:2,label:"より広くする"}],aC=()=>{const{rowSpacing:e,setRowSpacing:n}=c(dw),r=l((()=>{var t;return(null===(t=oC.find((t=>t.value===e)))||void 0===t?void 0:t.label)||"標準"}),[e]);return t.createElement(Oa,{width:168,trigger:t.createElement(Wo,{append:r},"表示密度を変更")},oC.map((({value:r,label:i})=>t.createElement(Ro,{key:r,closeOnChange:!0,checked:e===r,onChange:()=>(e=>{n(e)})(r)},i))))},lC="small",sC="secondaryLight",cC=n((function(e,n){var{rangeStart:r,rangeEnd:i,totalCount:o,locationSuffix:a}=e,l=D(e,["rangeStart","rangeEnd","totalCount","locationSuffix"]);return t.createElement(cl,Object.assign({},l,{ref:n,inline:!0,type:"button","aria-label":`表示件数を変更${a}`,size:lC,color:sC}),t.createElement(Iw,null,0===o?t.createElement(t.Fragment,null,t.createElement(kw,null,"0"),t.createElement(Mw,null," / "),t.createElement(kw,null,"0")):t.createElement(t.Fragment,null,t.createElement(kw,null,hw(r)),t.createElement(Mw,null,"-"),t.createElement(kw,null,hw(i)),t.createElement(Mw,null,"/"),t.createElement(kw,null,hw(o))),t.createElement($w,null,t.createElement(le,{name:"arrow_down",size:"sm-md",color:"currentColor"}))))})),dC=({location:e="toolbar"})=>{const n=(e=>"footer"===e?"(下部)":"")(e),{totalCount:r,currentPage:i,pageSize:o,pageSizeOptions:a,setCurrentPage:s,setPageSize:u}=c(dw),p=d((e=>{s(0),u(e)}),[s,u]),m=l((()=>Math.ceil(r/o)-1),[r,o]),h=Math.min(i*o+1,r),g=Math.min((i+1)*o,r);return t.createElement(Xu,{minSize:"fit-content"},t.createElement(cl,{inline:!0,type:"button","aria-label":`前のページへ${n}`,size:lC,color:sC,disabled:0===i||0===r,icon:t.createElement(le,{name:"arrow_left",size:"md",color:"currentColor"}),onClick:()=>s(Math.max(i-1,0))}),t.createElement(Da,null,t.createElement(Oa,{width:296,trigger:t.createElement(cC,{rangeStart:h,rangeEnd:g,totalCount:r,locationSuffix:n})},t.createElement(Ra,null,"表示件数を変更"),a.map((e=>t.createElement(Ro,{key:e,checked:o===e,onChange:()=>p(e)},e))))),t.createElement(cl,{inline:!0,type:"button","aria-label":`次のページへ${n}`,size:lC,color:sC,disabled:i===m||0===r,icon:t.createElement(le,{name:"arrow_right",size:"md",color:"currentColor"}),onClick:()=>s(Math.min(i+1,m))}))},uC=({tableActions:e,customTableActionArea:n})=>{const{isSmallLayout:r,columns:o,columnEditFeatures:a,rowIds:s,checkedRows:u,setCheckedRows:p,hasRowControls:m}=c(dw),h=ne(),g=l((()=>s.length>0&&u.length===s.length),[u,s]),f=l((()=>0!==u.length&&u.length!==s.length),[u,s]),[b,v]=i(!1),[x,y]=i(!1),[w,C]=i(!1),E=l((()=>o.some((e=>void 0!==e.filtered))),[o]),I=d((()=>{p(g?[]:s)}),[g,s,p]),k=d(((e,n)=>((e,n,r,i)=>{if(n&&t.isValidElement(e)){let o=r?n.enabled:n.disabled||"currentColor";return"success"===o?o=i.palette.success.base:"danger"===o?o=i.palette.danger.base:"primary"===o?o=i.palette.primary.base:"warning"===o&&(o=i.palette.warning.base),t.cloneElement(e,Object.assign(Object.assign({},e.props),{color:o}))}return e})(e,n,u.length>0,h)),[u.length,h]),M=d(((e,n,r)=>{var i;return"singleButton"===e.type?t.createElement(cl,{key:bw(e,n),icon:k(e.icon,e.dynamicIconColor),color:null!==(i=e.color)&&void 0!==i?i:"secondaryLight",size:"small",inline:r,style:e.style,disabled:fw(e,u),onClick:()=>e.onClick(u)},e.label):"groupButton"===e.type?t.createElement(Qu,{key:bw(e,n),size:"small"},e.items.map(((e,r)=>{var i;return t.createElement(cl,{key:vw(e,n,r),icon:k(e.icon,e.dynamicIconColor),color:null!==(i=e.color)&&void 0!==i?i:"secondaryLight",style:e.style,disabled:fw(e,u),onClick:()=>e.onClick(u)},e.label)}))):"separator"===e.type?t.createElement(Kw,{key:bw(e,n)}):"heading"===e.type?t.createElement("span",{key:bw(e,n),style:{padding:"8px",fontSize:"14px",fontWeight:"bold"}},e.label):t.createElement(Kw,{key:bw(e,n)})}),[u,k]),$=d(((e,n=!1)=>{const r=[],i=new Set;return e.forEach(((o,a)=>{if("singleButton"!==o.type&&"groupButton"!==o.type||!o.headingLabel||i.has(o.headingLabel))"singleButton"!==o.type&&"groupButton"!==o.type||o.headingLabel?"separator"===o.type?r.push(t.createElement(Ta,{key:`separator-${a}`})):"heading"===o.type?r.push(t.createElement(Ra,{key:`heading-${o.label||a}`},o.label)):"divider"===o.type&&r.push(t.createElement(Ta,{key:`divider-${a}`})):"singleButton"===o.type?r.push(t.createElement(Dt,{key:`single-${o.label||a}`,prepend:k(o.icon,o.dynamicIconColor),disabled:fw(o,u,n),onClick:()=>{o.onClick(u),n?C(!1):y(!1)}},o.label)):"groupButton"===o.type&&o.items.forEach(((e,i)=>{r.push(t.createElement(Dt,{key:xw(e,"mobile-group",a,i),prepend:k(e.icon,e.dynamicIconColor),disabled:fw(e,u,n),onClick:()=>{e.onClick(u),n?C(!1):y(!1)}},e.label))}));else{i.add(o.headingLabel);const a=e.filter((e=>("singleButton"===e.type||"groupButton"===e.type)&&e.headingLabel===o.headingLabel));r.push(t.createElement(Ra,{key:`group-${o.headingLabel}-heading`},o.headingLabel)),a.forEach(((e,i)=>{"singleButton"===e.type?r.push(t.createElement(Dt,{key:`group-${e.headingLabel}-${e.label||i}`,prepend:k(e.icon,e.dynamicIconColor),disabled:fw(e,u,n),onClick:()=>{e.onClick(u),n?C(!1):y(!1)}},e.label)):"groupButton"===e.type&&e.items.forEach(((e,a)=>{r.push(t.createElement(Dt,{key:xw(e,`group-${o.headingLabel}-group`,i,a),prepend:k(e.icon,e.dynamicIconColor),disabled:fw(e,u,n),onClick:()=>{e.onClick(u),n?C(!1):y(!1)}},e.label))}))}))}})),r}),[u,y,C,k]);let A=null;if(n)A=n({isSmallLayout:r,checkedRows:u});else if(e&&e.length>0){const{checkedActions:n,uncheckedActions:i}={checkedActions:(L=e).filter((e=>{const t="enabledWhen"in e?e.enabledWhen:void 0;return"checked"===t||void 0===t})),uncheckedActions:L.filter((e=>"unchecked"===("enabledWhen"in e?e.enabledWhen:void 0)))};if(r)A=t.createElement(eC,null,n.length>0&&t.createElement(Da,null,t.createElement(Oa,{open:x,trigger:t.createElement(tC,{type:"button",disabled:0===u.length},t.createElement("span",{style:{color:0===u.length?"inherit":h.palette.primary.base,fontWeight:700}},0===u.length?"-":u.length),"件を操作",t.createElement(le,{name:"arrow_down",size:"sm-md",color:"currentColor"})),width:200,onOpenChange:y},$(n))),i.length>0&&t.createElement(Da,null,t.createElement(Oa,{open:w,trigger:t.createElement(cl,{type:"button",color:"secondaryLight",size:"small",icon:t.createElement(le,{name:"more_vert",color:"currentColor"}),disabled:u.length>0}),width:200,onOpenChange:C},$(i,!0))));else{const{dropdownActions:e}=gw(n),{dropdownActions:r}=gw(i),o=()=>{const r=[];return n.forEach(((n,i)=>{var o;const a=null!==(o=n.displayIn)&&void 0!==o?o:"toolbar";if("toolbar"===a)r.push(M(n,i,!0));else if("dropdown"===a){r.some((e=>t.isValidElement(e)&&"checked-dropdown"===e.key))||r.push(t.createElement(Da,{key:"checked-dropdown"},t.createElement(Oa,{open:x,trigger:t.createElement(cl,{type:"button",color:"secondaryLight",size:"small",icon:t.createElement(le,{name:"more_vert",color:"currentColor"}),disabled:0===u.length}),width:200,onOpenChange:y},e.map(((e,n)=>"singleButton"===e.type?t.createElement(Dt,{key:`checked-single-${e.label||n}`,prepend:k(e.icon,e.dynamicIconColor),disabled:fw(e,u),onClick:()=>{e.onClick(u),y(!1)}},e.label):"groupButton"===e.type?e.items.map(((e,r)=>t.createElement(Dt,{key:xw(e,"checked-group",n,r),prepend:k(e.icon,e.dynamicIconColor),disabled:fw(e,u),onClick:()=>{e.onClick(u),y(!1)}},e.label))):"separator"===e.type?t.createElement(Ta,{key:`checked-separator-sep-${n}`}):"heading"===e.type?t.createElement(Ra,{key:`checked-heading-${e.label||`heading${n}`}`},e.label):t.createElement(Ta,{key:`checked-divider-div-${n}`}))))))}})),r},a=()=>{const e=[];return i.forEach(((n,i)=>{var o;const a=null!==(o=n.displayIn)&&void 0!==o?o:"toolbar";if("toolbar"===a)e.push(M(n,i,!0));else if("dropdown"===a){e.some((e=>t.isValidElement(e)&&"unchecked-dropdown"===e.key))||e.push(t.createElement(Da,{key:"unchecked-dropdown"},t.createElement(Oa,{open:w,trigger:t.createElement(cl,{type:"button",color:"secondaryLight",size:"small",icon:t.createElement(le,{name:"more_vert",color:"currentColor"}),disabled:u.length>0}),width:200,onOpenChange:C},r.map(((e,n)=>"singleButton"===e.type?t.createElement(Dt,{key:`unchecked-single-${e.label||n}`,prepend:k(e.icon,e.dynamicIconColor),disabled:fw(e,u,!0),onClick:()=>{e.onClick(u),C(!1)}},e.label):"groupButton"===e.type?e.items.map(((e,r)=>t.createElement(Dt,{key:xw(e,"unchecked-group",n,r),prepend:k(e.icon,e.dynamicIconColor),disabled:fw(e,u,!0),onClick:()=>{e.onClick(u),C(!1)}},e.label))):"separator"===e.type?t.createElement(Ta,{key:`unchecked-separator-sep-${n}`}):"heading"===e.type?t.createElement(Ra,{key:`unchecked-heading-${e.label||`heading${n}`}`},e.label):t.createElement(Ta,{key:`unchecked-divider-div-${n}`}))))))}})),e};A=t.createElement(eC,null,o(),n.length>0&&i.length>0&&t.createElement(Kw,null),a())}}var L;return t.createElement(Ew,{isSmallLayout:r},t.createElement(Uw,null,m&&t.createElement(t.Fragment,null,t.createElement(Kd,{checked:g||f,indeterminate:f,disabled:0===s.length,"aria-label":"すべての行を選択",onChange:I}),!r&&t.createElement(Qw,null,t.createElement("span",{style:{color:h.palette.primary.base,fontWeight:700}},0===u.length?"-":u.length),"件を")),A),t.createElement(Lw,null,E&&t.createElement(nC,null),t.createElement(dC,null),t.createElement(Da,null,t.createElement(Oa,{open:b,width:316,trigger:t.createElement(cl,{type:"button",color:"secondaryLight",size:"small",icon:t.createElement(le,{name:"setting",color:"currentColor"})}),onOpenChange:v},function(e,t){return!(!t.reorder&&!t.visibility)&&e.some((e=>lw(e,t)||sw(e,t)))}(o,a)&&t.createElement(rC,null),t.createElement(iC,null),t.createElement(aC,null)))))},pC=()=>{const{isSmallLayout:e}=c(dw);return t.createElement(Vw,{isSmallLayout:e},t.createElement(dC,{location:"footer"}))},mC=({children:e})=>{const[n,r]=i(!0),l=o(null),s=d((()=>{const e=l.current;if(!e)return;const{scrollLeft:t,scrollWidth:n,clientWidth:i}=e,o=Math.max(0,n-i),a=o>.5&&!(t>=o-1);r((e=>e===a?e:a))}),[]);return a((()=>{const e=l.current;if(!e)return;s(),e.addEventListener("scroll",s,{passive:!0});const t=new ResizeObserver(s);t.observe(e);const n=e.firstElementChild;return n instanceof HTMLElement&&t.observe(n),()=>{e.removeEventListener("scroll",s),t.disconnect()}}),[s]),t.createElement(uw.Provider,{value:{showStickyRightEdgeDecoration:n}},t.createElement(Cw,{ref:l},t.createElement("table",null,e)))},hC=({bordered:e,currentPage:n,pageSize:r,pageSizeOptions:s,totalCount:c,columns:u,onPageChange:p,onPageSizeChange:m,onColumnsChange:h,onCheckedRowsChange:g,children:f,tableActions:b,customTableActionArea:v,enableRowSelection:x=!0,columnEditFeatures:y,showBottomPagination:w=!1})=>{const C=l((()=>{return{reorder:null!==(t=null==(e=y)?void 0:e.reorder)&&void 0!==t?t:ow,visibility:null!==(n=null==e?void 0:e.visibility)&&void 0!==n?n:aw};var e,t,n}),[y]),[E,I]=i(!1),[k,M]=i([]),[$,A]=i([]),[L,V]=i([]),[H,S]=i(0),O=o(null),D=d(((e,t)=>{const n=[...L];n[e]=t,V(n)}),[L,V]);a((()=>{if(!O.current)return;const e=()=>{var e;O.current&&I((null===(e=O.current)||void 0===e?void 0:e.clientWidth)<F.TABLET)},t=new ResizeObserver(e);return e(),t.observe(O.current),()=>{t.disconnect()}}),[]);const R=d((e=>{A(e),null==g||g(e)}),[A,g]),z=o(n);a((()=>{z.current!==n&&R([]),z.current=n}),[n,R]),a((()=>{if(0===$.length)return;const e=$.filter((e=>k.includes(e)));e.length!==$.length&&R(e)}),[k,$,R]);const N=l((()=>Math.ceil(c/r)-1),[c,r]);a((()=>{n>N&&p(N)}),[n,N,p]);const T=x&&!!b,[Z,B]=i(null),P=d(((e,t)=>{B((n=>void 0===t?n===e?null:n:null!==n&&n!==e?("production"!==process.env.NODE_ENV&&console.warn(`[DataTable2] sticky="right" は 1 列のみです。既に列 index ${String(n)} で使用されているため、列 ${String(e)} の登録は無視しました。`),n):e))}),[]),_=l((()=>{const e=u.filter((e=>e.visible)).length;return{registerColumnSticky:P,getStickyRightOffset:t=>{var n;if(null===Z||t!==Z)return;let r=0;for(let i=t+1;i<e;i++)r+=null!==(n=L[i])&&void 0!==n?n:0;return r},rightStickyColumnIndex:Z,getRightStickyZIndexHead:e=>3,getRightStickyZIndexBody:e=>1}}),[L,u,P,Z]);return t.createElement(ww,{ref:O,bordered:e},t.createElement(dw.Provider,{value:{isSmallLayout:E,rowIds:k,enableRowSelection:x,hasRowControls:T,checkedRows:$,totalCount:c,currentPage:n,pageSize:r,pageSizeOptions:s,columns:u,columnEditFeatures:C,columnWidths:L,rowSpacing:H,setRowIds:M,setCheckedRows:R,setCurrentPage:p,setPageSize:m,setColumns:h,setColumnWidth:D,setRowSpacing:S}},t.createElement(pw.Provider,{value:_},t.createElement(uC,{tableActions:b,customTableActionArea:v}),t.createElement(mC,null,f),w&&t.createElement(pC,null))))},gC=({children:e})=>{const{hasRowControls:n,columns:r}=c(dw),i=l((()=>p.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=l((()=>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})=>m(n)?t.createElement("col",{key:e,style:{width:n.props.width}}):null))),t.createElement(Sw,null,t.createElement("tr",null,n&&t.createElement(Gw,{"aria-label":"empty cell"}),o.map((({id:e,index:n,child:r})=>t.createElement(mw.Provider,{key:e,value:{index:n}},r))))))},fC=({className:e,sticky:n,isResizable:r,width:l,minWidth:s=32,maxWidth:u=1/0,children:p,onWidthChange:m})=>{const{isSmallLayout:h,setColumnWidth:g}=c(dw),{registerColumnSticky:f,getStickyRightOffset:b,rightStickyColumnIndex:v,getRightStickyZIndexHead:x}=c(pw),{showStickyRightEdgeDecoration:y}=c(uw),w=c(mw),[C,E]=i(!1);a((()=>(f(w.index,"right"===n?"right":void 0),()=>{f(w.index,void 0)})),[n,w.index,f]);const I=b(w.index),M=void 0!==I&&w.index===v&&y,$=void 0!==I?x(w.index):void 0,A=o(null),L=o(null),V=o(0),H=o(0),S=d((e=>{E(!0),L.current&&null===A.current&&(A.current=e.pointerId,H.current=l||L.current.clientWidth,V.current=e.clientX)}),[l]),O=d((e=>{if(!m)return;if(A.current!==e.pointerId)return;e.cancelable&&e.preventDefault();const t=e.clientX-V.current,n=((e,t,n)=>Math.min(Math.max(e,t),n))(H.current+t,s,u);m(n),g(w.index,n)}),[m,s,u,g,w.index]),D=d((()=>{E(!1),A.current=null}),[]);return a((()=>{if(C)return document.addEventListener("pointermove",O),document.addEventListener("pointerup",D),()=>{document.removeEventListener("pointermove",O),document.removeEventListener("pointerup",D)}}),[C,O,D]),t.createElement(Ow,{ref:L,className:e,"data-dragging":C,$stickyRightOffset:I,$stickyZIndex:$,$showStickyEdgeDecoration:M,style:{minWidth:isFinite(s)&&s<=u?s:void 0,maxWidth:isFinite(s)&&s<=u?u:void 0}},t.createElement(Rw,{isSmallLayout:h},p,r&&t.createElement(zw,{type:"button","aria-label":"resize the column",onPointerDown:S}),C&&k(t.createElement(Nw,{"data-min":l&&s>=l,"data-max":l&&u<=l}),document.body)))},bC=({showSortButton:e,sortButtonDirection:n,onSortChange:r,children:i})=>{const o=l((()=>"asc"===n?"desc":"desc"!==n?"asc":void 0),[n]),a=d((()=>{null==r||r(o)}),[r,o]),s=l((()=>"asc"===n?"sort_up":"desc"===n?"sort_down":"sort_inactive"),[n]);return e?t.createElement(Bw,{type:"button",onClick:a},i,t.createElement(le,{name:s,size:"md"})):t.createElement(Zw,null,i)},vC=({children:e})=>{const{rowIds:n,setRowIds:r}=c(dw);return a((()=>{const t=[];p.forEach(e,(e=>{if(!m(e))return;const n=e.props;"string"==typeof n.id&&t.push(n.id)})),t.length===n.length&&t.every((e=>n.includes(e)))||r(t)}),[e,n,r]),t.createElement("tbody",null,e)},xC=({id:e,children:n})=>{const{isSmallLayout:r,columns:i,hasRowControls:o,checkedRows:a,setCheckedRows:s,rowSpacing:u}=c(dw),m=l((()=>a.includes(e)),[e,a]),h=d((()=>{const t=a.includes(e)?a.filter((t=>t!==e)):[...a,e];s(t)}),[e,a,s]),g=l((()=>p.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=l((()=>g.sort(((e,t)=>e.order-t.order)).filter((e=>e.visible))),[g]);return t.createElement(Pw,{"data-highlighted":m,"data-spacing":u,isSmallLayout:r},o&&t.createElement(_w,null,t.createElement(jw,null,t.createElement(Kd,{checked:m,"aria-label":"この行を選択",onChange:h}),t.createElement("input",{type:"checkbox","aria-label":"この行を選択"}))),f.map((({id:e,index:n,child:r})=>t.createElement(mw.Provider,{key:e,value:{index:n}},r))))},yC=({loading:e,sticky:n,children:r})=>{const{getStickyRightOffset:i,rightStickyColumnIndex:o,getRightStickyZIndexBody:a}=c(pw),{showStickyRightEdgeDecoration:l}=c(uw),s=c(mw),d=i(s.index),u=void 0!==d&&s.index===o&&l,p=void 0!==d?a(s.index):void 0;return t.createElement(Dw,{$stickyRightOffset:d,$stickyZIndex:p,$showStickyEdgeDecoration:u},t.createElement(Fw,null,t.createElement(Ww,null,r),e&&t.createElement(Yw,null,t.createElement(rl,{width:"20px"}))))},wC=({prepend:e,children:n,onClick:r})=>{const{isSmallLayout:i}=c(dw);return i?t.createElement(Dt,{prepend:e,onClick:r},n):t.createElement(Hw,{type:"button",onClick:r},e,n)},CC=({label:e,value:n,children:r,onChange:o})=>{const[l,s]=i(n),[c,d]=i(!1),u=()=>{d(!1),o(l)};return a((()=>{s(n)}),[n]),t.createElement(Xw,null,r,t.createElement(Jw,null,t.createElement(Da,null,t.createElement(Oa,{width:252,trigger:t.createElement(cl,{type:"button",color:"primarySubtle",size:"small",inline:!0,icon:t.createElement(le,{name:"pencil",color:"currentColor"})}),open:c,onOpenChange:d},t.createElement(Ra,null,e),t.createElement(ya,{value:l,onChange:e=>s(e.target.value),onEnter:u}),t.createElement(Ta,null),t.createElement(Za,null,t.createElement(cl,{type:"button",color:"clear",size:"small",onClick:()=>{d(!1),s(n)}},"キャンセル"),t.createElement(cl,{type:"button",color:"primary",size:"small",onClick:u},"適用"))))))},EC=({label:e,value:n,options:r,children:o,onChange:a})=>{const[l,s]=i(!1);return t.createElement(Xw,null,o,t.createElement(Jw,null,t.createElement(Da,null,t.createElement(Oa,{width:252,trigger:t.createElement(cl,{type:"button",color:"primarySubtle",size:"small",inline:!0,icon:t.createElement(le,{name:"pencil",color:"currentColor"})}),open:l,onOpenChange:s},t.createElement(Ra,null,e),r.map((e=>t.createElement(Ro,{key:e,closeOnChange:!0,checked:n===e,onChange:()=>a(e)},e)))))))},IC=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},kC=e=>e.map((e=>e.value)).join(""),MC=(e,t,n)=>{if(4===e)return"year";if(2===e){const e=(t.match(/[YMD]+/g)||[]).map(((e,t)=>({token:e,length:e.length,index:t}))),r=e[n];if(r){if(r.token.includes("Y"))return"year";if(r.token.includes("M"))return"month";if(r.token.includes("D"))return"day"}}return"unknown"},$C=(e,t,n,r)=>{if(0===t){const t=parseInt(e);return"month"===n?t>=2:"day"===n&&t>=4}return t+1===r},AC={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"},LC=["Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9"],VC=Object.keys(AC).filter((e=>!isNaN(Number(e)))),HC=Object.values(AC),SC=e=>LC.includes(e),OC=e=>{const t=e.match(/Numpad(\d)/);return t?t[1]:null},DC=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,RC=/\d\d/,zC=/-?\d\d?/,NC=/\d*[^-_:/,()\s\d]+/;let TC={},ZC=function(e){return(e=+e)+(e>68?1900:2e3)};const BC=function(e){return function(t){this[e]=+t}},PC=[/[+-]\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)}],_C=e=>{const t=TC[e];return t&&(t.indexOf?t:t.s.concat(t.f))},GC=(e,t)=>{let n;const{meridiem:r}=TC;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},jC={A:[NC,function(e){this.afternoon=GC(e,!1)}],a:[NC,function(e){this.afternoon=GC(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[RC,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[zC,BC("seconds")],ss:[zC,BC("seconds")],m:[zC,BC("minutes")],mm:[zC,BC("minutes")],H:[zC,BC("hours")],h:[zC,BC("hours")],HH:[zC,BC("hours")],hh:[zC,BC("hours")],D:[zC,BC("day")],DD:[RC,BC("day")],Do:[NC,function(e){const{ordinal:t}=TC;if([this.day]=e.match(/\d+/),t)for(let n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],M:[zC,BC("month")],MM:[RC,BC("month")],MMM:[NC,function(e){const t=_C("months"),n=(_C("monthsShort")||t.map((e=>e.slice(0,3)))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[NC,function(e){const t=_C("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,BC("year")],YY:[RC,function(e){this.year=ZC(e)}],YYYY:[/\d{4}/,BC("year")],Z:PC,ZZ:PC};const FC=(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(DC),{length:n}=t;for(let e=0;e<n;e+=1){const n=t[e],r=jC[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(),h=o-1,g=l||0,f=s||0,b=c||0,v=d||0;return u?new Date(Date.UTC(m,h,a,g,f,b,v+60*u.offset*1e3)):n?new Date(Date.UTC(m,h,a,g,f,b,v)):new Date(m,h,a,g,f,b,v)}catch(e){return new Date("")}};var YC=(e,t,n)=>{n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&({parseTwoDigitYear:ZC}=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),TC=this.$locale(),!e&&s&&(TC=n.Ls[s]),this.$d=FC(t,a,r),this.init(),s&&!0!==s&&(this.$L=this.locale(s).$L),l&&t!=this.format(a)&&(this.$d=new Date("")),TC={}}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 WC=({date:e,format:t="YYYY-MM-DD",onDateChange:n})=>{_a.extend(YC);const r=o(null),[l,s]=i(null==e?void 0:e.format(t)),[c,u]=i(IC(l)),[p,m]=i({start:0,end:c.length-1,current:0}),[h,g]=i(0),f=d((()=>{setTimeout((()=>{var e,t,n;if(0===c.length)return;const i=null!==(t=null===(e=r.current)||void 0===e?void 0:e.selectionStart)&&void 0!==t?t:0,o=c[c.length-1].end+1,a=i>=o?o:i,l=c.findIndex((e=>a>=e.start&&a<=e.end+1));-1!==l&&(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=r.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}))),g(0)}),[]),x=d((e=>{if(0===c.length)return;const r=SC(e.code),i=r?OC(e.code):null;if(!HC.includes(e.key)&&!r)return;if(e.key===AC.ArrowLeft||e.key===AC.ArrowRight){e.preventDefault();const t=e=>{const t=p.current;if(e===AC.ArrowLeft){for(let e=t-1;e>=0;e--)if(c[e].editable)return e-t}else if(e===AC.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===AC.ArrowUp||e.key===AC.ArrowDown){e.preventDefault();const r=e.key===AC.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=kC(a),d=_a(l,t);s(d.format(t)),d.isValid()&&n&&n(d)}const o=r?i:e.key;if((VC.includes(e.key)||r)&&o){e.preventDefault(),0===h&&(c[p.current].value="".padStart(c[p.current].value.length,"0"));const r=`${c[p.current].value.slice(1)}${o}`,i=[...c];i[p.current].value=r,u(i),g(h+1);const a=MC(c[p.current].value.length,t,p.current);if($C(o,h,a,c[p.current].value.length)){g(0);for(let e=p.current+1;e<c.length;e++)if(c[e].editable){m((t=>Object.assign(Object.assign({},t),{current:e})));break}const e=kC(c),r=_a(e,t);s(r.format(t)),n&&n(r)}else{const e=kC(c);if(!_a(e,t,!0).isValid())return void s(e);const r=_a(e,t);s(r.format(t)),n&&n(r)}}}),[c,t,n,p]),y=d((()=>{f()}),[f]),w=d((e=>{e.preventDefault();const r=e.clipboardData.getData("text").trim(),i=/[Hh]|mm|ss/.test(t),o=[];o.push(t),o.push("YYYY年M月D日","YYYY年MM月DD日"),i&&o.push("YYYY年M月D日 HH:mm","YYYY年MM月DD日 HH:mm","YYYY年M月D日 HH:mm:ss","YYYY年MM月DD日 HH:mm:ss"),o.push("YYYY-MM-DD","YYYY-M-DD","YYYY-MM-D","YYYY-M-D"),i&&o.push("YYYY-MM-DD HH:mm","YYYY-M-DD HH:mm","YYYY-MM-D HH:mm","YYYY-M-D HH:mm","YYYY-MM-DD HH:mm:ss","YYYY-M-DD HH:mm:ss","YYYY-MM-D HH:mm:ss","YYYY-M-D HH:mm:ss"),o.push("YYYY/MM/DD","YYYY/M/DD","YYYY/MM/D","YYYY/M/D"),i&&o.push("YYYY/MM/DD HH:mm","YYYY/M/DD HH:mm","YYYY/MM/D HH:mm","YYYY/M/D HH:mm","YYYY/MM/DD HH:mm:ss","YYYY/M/DD HH:mm:ss","YYYY/MM/D HH:mm:ss","YYYY/M/D HH:mm:ss");const a=r.match(/(\d{4})[-/年](\d{1,2})[-/月](\d{1,2})/);if(a){const e=parseInt(a[1],10),t=parseInt(a[2],10),n=parseInt(a[3],10);if(!(e>=1900&&e<=2100&&t>=1&&t<=12&&n>=1&&n<=31))return;if(n>_a(`${e}-${t}-01`).daysInMonth())return}let l=null;const s=_a(r);if(s.isValid())l=s;else for(const e of o){const t=_a(r,e,!0);if(t.isValid()){l=t;break}}if(!l||!l.isValid())return;const c=l.year(),d=l.month()+1,u=l.date();if(c>=1900&&c<=2100&&d>=1&&d<=12&&u>=1&&u<=31){if(i){const e=r.match(/(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?/);if(e){const t=parseInt(e[1],10),n=parseInt(e[2],10),r=e[3]?parseInt(e[3],10):0;if(!(!isNaN(t)&&!isNaN(n)&&!isNaN(r)&&t>=0&&t<=23&&n>=0&&n<=59&&r>=0&&r<=59))return}}n&&n(l)}}),[t,n]);return a((()=>{var e;if(0===c.length)return;const t=c[p.current];t&&(null===(e=r.current)||void 0===e||e.setSelectionRange(t.start,t.end+1))}),[p,c]),a((()=>{s(null==e?void 0:e.format(t)),u(IC(null==e?void 0:e.format(t)))}),[e,t]),{ref:r,value:l,onFocus:b,onBlur:v,onKeyDown:x,onMouseDown:y,onPaste:w}},XC=e=>[...e.split("")].reduce(((e,t)=>{const n=t.charCodeAt(0);return e+(n>=12288&&n<=65376?2:1)}),0),JC=n((function(e,n){var{error:r=!1,errorText:i,format:o="YYYY-MM-DD",disabled:a=!1,size:s="medium",variant:c="light",width:d,append:u,onAppendClick:p}=e,m=D(e,["error","errorText","format","disabled","size","variant","width","append","onAppendClick"]);Ae("DateField","DateField は非推奨です。代わりに DateField2 を使用してください。");const h=WC(Object.assign({format:o},m)),{ref:g}=h,f=D(h,["ref"]),b=Vc(n,g),v=l((()=>9*XC(o)*(parseInt(ca[s].fontSize)/13)+"px"),[o,s]),x=null!=d?d:v;return t.createElement(t.Fragment,null,t.createElement(va,Object.assign({ref:b,readOnly:!0,error:r||!!i,disabled:a,size:s,variant:c,width:x,append:u,onAppendClick:p},f)),i&&t.createElement(Ua,{pt:1},t.createElement(nd,null,i)))}));var UC=g(JC);const QC=v.div`
|
|
2929
2929
|
display: flex;
|
|
2930
2930
|
align-items: center;
|
|
2931
2931
|
width: fit-content;
|
|
@@ -2974,7 +2974,7 @@ object-assign
|
|
|
2974
2974
|
}
|
|
2975
2975
|
`,qC=v.span`
|
|
2976
2976
|
${W}
|
|
2977
|
-
`,KC=n((function(e,n){var{format:r="YYYY-MM-DD",error:i=!1,errorText:o,disabled:a=!1,size:s="medium",variant:c="light",startWidth:d,endWidth:u,append:p,onAppendClick:m}=e,h=D(e,["format","error","errorText","disabled","size","variant","startWidth","endWidth","append","onAppendClick"]);Ae("DateRangeField","DateRangeField は非推奨です。代わりに DateRangeField2 を使用してください。");const g=l((()=>9*XC(r)*(parseInt(ca[s].fontSize)/13)+"px"),[r,s]),f=l((()=>`${9*XC(r)*(parseInt(ca[s].fontSize)/13)+(p?32:0)}px`),[r,s,p]),b=null!=d?d:g,v=null!=u?u:f,x=e=>t=>{var n,r;const{startDate:i,endDate:o}=h.date;e===jp?null===(n=h.onDatesChange)||void 0===n||n.call(h,{endDate:o,startDate:t}):null===(r=h.onDatesChange)||void 0===r||r.call(h,{startDate:i,endDate:t})},y=WC(Object.assign(Object.assign({},h),{format:r,date:h.date.startDate,onDateChange:x(jp)})),{ref:w}=y,C=D(y,["ref"]),E=WC(Object.assign(Object.assign({},h),{format:r,date:h.date.endDate,onDateChange:x(Fp)})),{ref:I}=E,k=D(E,["ref"]),M=Vc(n,w),$=Vc(n,I);return t.createElement(t.Fragment,null,t.createElement(QC,{error:i||!!o,disabled:a,$size:s,$variant:c},t.createElement(va,Object.assign({ref:M,readOnly:!0,disabled:a,width:b,size:s,variant:c,error:i||!!o,style:{border:"none",background:"transparent",textAlign:"center",boxShadow:"none"}},C)),t.createElement(qC,null,"-"),t.createElement(va,Object.assign({ref:$,readOnly:!0,disabled:a,width:v,size:s,variant:c,error:i||!!o,style:{border:"none",background:"transparent",textAlign:"center",boxShadow:"none"},append:p,onAppendClick:m},k))),o&&t.createElement(Ua,{pt:1},t.createElement(nd,null,o)))}));var eE=g(KC);const tE=({date:e,format:t="YYYY-MM-DD",disabled:n=!1,onDateChange:r})=>{var l;_a.extend(YC);const[s,c]=i(null!==(l=null==e?void 0:e.format(t))&&void 0!==l?l:""),[u,p]=i(IC(s)),[m,h]=i(null),g=o(null),f=o(0),[b,v]=i(!1),x=o([]),y=o(null),w=d((e=>{g.current=e,h(e)}),[]),C=d((e=>{w(e),f.current=0;const t=x.current[e];t&&t!==document.activeElement&&t.focus()}),[w]);a((()=>{var n;const r=null!==(n=null==e?void 0:e.format(t))&&void 0!==n?n:"";c(r),p(IC(r))}),[e,t]);const E=d(((e,t)=>{for(let n=e+t;n>=0&&n<u.length;n+=t)if(u[n].editable)return n;return null}),[u]),I=d((e=>{const n=g.current;if(null===n)return;const i=u[n];if(!(null==i?void 0:i.editable))return;const o=f.current;let a=i.value;0===o&&(a="".padStart(i.value.length,"0"));const l=`${a.slice(1)}${e}`,s=[...u];s[n]=Object.assign(Object.assign({},s[n]),{value:l}),p(s);const d=o+1;f.current=d;const m=u.slice(0,n+1).filter((e=>e.editable)).length-1,h=MC(i.value.length,t,m);if($C(e,o,h,i.value.length)){const e=kC(s);if(!_a(e,t,!0).isValid())return void c(e);f.current=0;const i=E(n,1);null!==i&&C(i);const o=_a(e,t,!0),a=o.format(t);c(a),p(IC(a)),null==r||r(o)}else{const e=kC(s);if(!_a(e,t,!0).isValid())return void c(e);const n=_a(e,t);c(n.format(t)),null==r||r(n)}}),[u,t,r,E,C]),k=d((e=>t=>{x.current[e]=t}),[]),M=d((e=>()=>{v(!0),w(e),f.current=0}),[w]),$=d((e=>t=>{const n=t.relatedTarget;y.current&&n&&y.current.contains(n)||g.current===e&&(v(!1),w(null),f.current=0)}),[w]),A=d((e=>n=>{const i=u[e];if(!(null==i?void 0:i.editable))return;if(n.ctrlKey||n.metaKey||n.altKey)return;if(n.key===AC.ArrowUp||n.key===AC.ArrowDown){n.preventDefault();const i=n.key===AC.ArrowUp?1:-1,o=Number(u[e].value)+i,a=String(o).padStart(u[e].value.length,"0"),l=[...u];l[e]=Object.assign(Object.assign({},l[e]),{value:a}),p(l);const s=kC(l),d=_a(s,t),m=d.format(t);return c(m),p(IC(m)),void(d.isValid()&&(null==r||r(d)))}if(n.key===AC.Backspace||n.key===AC.Delete){n.preventDefault(),n.stopPropagation();const t=n.key===AC.Backspace,r="0".repeat(i.value.length);if(i.value===r&&0===f.current){if(t){const t=E(e,-1);null!==t&&C(t)}return}const o=[...u];return o[e]=Object.assign(Object.assign({},o[e]),{value:r}),p(o),f.current=0,void c(kC(o))}if(
|
|
2977
|
+
`,KC=n((function(e,n){var{format:r="YYYY-MM-DD",error:i=!1,errorText:o,disabled:a=!1,size:s="medium",variant:c="light",startWidth:d,endWidth:u,append:p,onAppendClick:m}=e,h=D(e,["format","error","errorText","disabled","size","variant","startWidth","endWidth","append","onAppendClick"]);Ae("DateRangeField","DateRangeField は非推奨です。代わりに DateRangeField2 を使用してください。");const g=l((()=>9*XC(r)*(parseInt(ca[s].fontSize)/13)+"px"),[r,s]),f=l((()=>`${9*XC(r)*(parseInt(ca[s].fontSize)/13)+(p?32:0)}px`),[r,s,p]),b=null!=d?d:g,v=null!=u?u:f,x=e=>t=>{var n,r;const{startDate:i,endDate:o}=h.date;e===jp?null===(n=h.onDatesChange)||void 0===n||n.call(h,{endDate:o,startDate:t}):null===(r=h.onDatesChange)||void 0===r||r.call(h,{startDate:i,endDate:t})},y=WC(Object.assign(Object.assign({},h),{format:r,date:h.date.startDate,onDateChange:x(jp)})),{ref:w}=y,C=D(y,["ref"]),E=WC(Object.assign(Object.assign({},h),{format:r,date:h.date.endDate,onDateChange:x(Fp)})),{ref:I}=E,k=D(E,["ref"]),M=Vc(n,w),$=Vc(n,I);return t.createElement(t.Fragment,null,t.createElement(QC,{error:i||!!o,disabled:a,$size:s,$variant:c},t.createElement(va,Object.assign({ref:M,readOnly:!0,disabled:a,width:b,size:s,variant:c,error:i||!!o,style:{border:"none",background:"transparent",textAlign:"center",boxShadow:"none"}},C)),t.createElement(qC,null,"-"),t.createElement(va,Object.assign({ref:$,readOnly:!0,disabled:a,width:v,size:s,variant:c,error:i||!!o,style:{border:"none",background:"transparent",textAlign:"center",boxShadow:"none"},append:p,onAppendClick:m},k))),o&&t.createElement(Ua,{pt:1},t.createElement(nd,null,o)))}));var eE=g(KC);const tE=({date:e,format:t="YYYY-MM-DD",disabled:n=!1,onDateChange:r})=>{var l;_a.extend(YC);const[s,c]=i(null!==(l=null==e?void 0:e.format(t))&&void 0!==l?l:""),[u,p]=i(IC(s)),[m,h]=i(null),g=o(null),f=o(0),[b,v]=i(!1),x=o([]),y=o(null),w=d((e=>{g.current=e,h(e)}),[]),C=d((e=>{w(e),f.current=0;const t=x.current[e];t&&t!==document.activeElement&&t.focus()}),[w]);a((()=>{var n;const r=null!==(n=null==e?void 0:e.format(t))&&void 0!==n?n:"";c(r),p(IC(r))}),[e,t]);const E=d(((e,t)=>{for(let n=e+t;n>=0&&n<u.length;n+=t)if(u[n].editable)return n;return null}),[u]),I=d((e=>{const n=g.current;if(null===n)return;const i=u[n];if(!(null==i?void 0:i.editable))return;const o=f.current;let a=i.value;0===o&&(a="".padStart(i.value.length,"0"));const l=`${a.slice(1)}${e}`,s=[...u];s[n]=Object.assign(Object.assign({},s[n]),{value:l}),p(s);const d=o+1;f.current=d;const m=u.slice(0,n+1).filter((e=>e.editable)).length-1,h=MC(i.value.length,t,m);if($C(e,o,h,i.value.length)){const e=kC(s);if(!_a(e,t,!0).isValid())return void c(e);f.current=0;const i=E(n,1);null!==i&&C(i);const o=_a(e,t,!0),a=o.format(t);c(a),p(IC(a)),null==r||r(o)}else{const e=kC(s);if(!_a(e,t,!0).isValid())return void c(e);const n=_a(e,t);c(n.format(t)),null==r||r(n)}}),[u,t,r,E,C]),k=d((e=>t=>{x.current[e]=t}),[]),M=d((e=>()=>{v(!0),w(e),f.current=0}),[w]),$=d((e=>t=>{const n=t.relatedTarget;y.current&&n&&y.current.contains(n)||g.current===e&&(v(!1),w(null),f.current=0)}),[w]),A=d((e=>n=>{const i=u[e];if(!(null==i?void 0:i.editable))return;if(n.ctrlKey||n.metaKey||n.altKey)return;if(n.key===AC.ArrowUp||n.key===AC.ArrowDown){n.preventDefault();const i=n.key===AC.ArrowUp?1:-1,o=Number(u[e].value)+i,a=String(o).padStart(u[e].value.length,"0"),l=[...u];l[e]=Object.assign(Object.assign({},l[e]),{value:a}),p(l);const s=kC(l),d=_a(s,t),m=d.format(t);return c(m),p(IC(m)),void(d.isValid()&&(null==r||r(d)))}if(n.key===AC.Backspace||n.key===AC.Delete){n.preventDefault(),n.stopPropagation();const t=n.key===AC.Backspace,r="0".repeat(i.value.length);if(i.value===r&&0===f.current){if(t){const t=E(e,-1);null!==t&&C(t)}return}const o=[...u];return o[e]=Object.assign(Object.assign({},o[e]),{value:r}),p(o),f.current=0,void c(kC(o))}if(SC(n.code)){n.preventDefault();const e=OC(n.code);e&&I(e)}}),[u,t,r,I,E,C]),L=d((e=>e=>{const t=e.nativeEvent;if(e.preventDefault(),"deleteContentBackward"!==t.inputType&&"deleteContentForward"!==t.inputType&&null!=t.data){const e=t.data;/^\d$/.test(e)&&I(e)}}),[I]),V=d((e=>{var r;const i=u[e];if(!(!n&&(null==i?void 0:i.editable)))return{ref:k(e),"aria-hidden":!0};const o=u.slice(0,e+1).filter((e=>e.editable)).length-1,a=(null!==(r=t.match(/[YMDHms]+/g))&&void 0!==r?r:[])[o],l=(()=>{if(a)return a.includes("Y")?"年":a.includes("M")?"月":a.includes("D")?"日":a.includes("H")||a.includes("h")?"時":a.includes("m")?"分":a.includes("s")?"秒":void 0})();return{ref:k(e),role:"spinbutton",contentEditable:!0,suppressContentEditableWarning:!0,inputMode:"numeric",tabIndex:0,enterKeyHint:"next",spellCheck:!1,autoCorrect:"off",style:{caretColor:"transparent"},"aria-label":l,onFocus:M(e),onBlur:$(e),onKeyDown:A(e),onBeforeInput:L(e),onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}}}),[u,n,t,k,M,$,A,L]),H=d((e=>{const t=g.current;if(null!==t)if(e.key!==AC.ArrowLeft&&e.key!==AC.ArrowRight){if(e.key===AC.Tab){const n=e.shiftKey?-1:1,r=E(t,n);null!==r&&(e.preventDefault(),C(r))}}else{e.preventDefault();const n=e.key===AC.ArrowLeft?-1:1,r=E(t,n);null!==r&&C(r)}}),[E,C]),S=d((e=>{e.preventDefault();const n=e.clipboardData.getData("text").trim(),i=/[Hh]|mm|ss/.test(t),o=[t];o.push("YYYY年M月D日","YYYY年MM月DD日"),i&&o.push("YYYY年M月D日 HH:mm","YYYY年MM月DD日 HH:mm","YYYY年M月D日 HH:mm:ss","YYYY年MM月DD日 HH:mm:ss"),o.push("YYYY-MM-DD","YYYY-M-DD","YYYY-MM-D","YYYY-M-D","YYYY/MM/DD","YYYY/M/DD","YYYY/MM/D","YYYY/M/D"),i&&o.push("YYYY-MM-DD HH:mm","YYYY-M-DD HH:mm","YYYY-MM-D HH:mm","YYYY-M-D HH:mm","YYYY/MM/DD HH:mm","YYYY/M/DD HH:mm","YYYY/MM/D HH:mm","YYYY/M/D HH:mm");const a=n.match(/(\d{4})[-/年](\d{1,2})[-/月](\d{1,2})/);if(a){const[,e,t,n]=a,r=parseInt(e,10),i=parseInt(t,10),o=parseInt(n,10);if(r<1900||r>2100||i<1||i>12||o<1||o>31)return;if(o>_a(`${r}-${i}-01`).daysInMonth())return}let l=null;const s=_a(n);if(s.isValid())l=s;else for(const e of o){const t=_a(n,e,!0);if(t.isValid()){l=t;break}}if(!(null==l?void 0:l.isValid()))return;const c=l.year(),d=l.month()+1,u=l.date();if(!(c<1900||c>2100||d<1||d>12||u<1||u>31)){if(i){const e=n.match(/(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?/);if(e){const t=parseInt(e[1],10),n=parseInt(e[2],10),r=e[3]?parseInt(e[3],10):0;if(t<0||t>23||n<0||n>59||r<0||r>59)return}}null==r||r(l)}}),[t,r]);return{value:s,sections:u,focusedIndex:m,isFocused:b,getSegmentProps:V,groupProps:{ref:y,onKeyDown:H,onPaste:S}}},nE=v.div`
|
|
2978
2978
|
position: relative;
|
|
2979
2979
|
display: inline-flex;
|
|
2980
2980
|
align-items: center;
|
|
@@ -3075,7 +3075,7 @@ object-assign
|
|
|
3075
3075
|
`,cE=v.span`
|
|
3076
3076
|
${W}
|
|
3077
3077
|
padding: 4px 0;
|
|
3078
|
-
`,dE=n((function({date:e,format:n="YYYY-MM-DD",error:r=!1,errorText:i,disabled:o=!1,size:a="medium",variant:l="light",startWidth:s,endWidth:c,startName:u,endName:p,append:m,onAppendClick:h,onDatesChange:g},f){const b=d((t=>n=>{t===jp?null==g||g({startDate:n,endDate:e.endDate}):null==g||g({startDate:e.startDate,endDate:n})}),[e,g]),v=tE({date:e.startDate,format:n,disabled:o,onDateChange:b(jp)}),x=tE({date:e.endDate,format:n,disabled:o,onDateChange:b(Fp)}),y=null!=s?s:"fit-content",w=null!=c?c:"fit-content",C=r||!!i,E=ba(),I=d((e=>{e.stopPropagation(),null==h||h()}),[h]);return t.createElement(t.Fragment,null,t.createElement(sE,{ref:f,$disabled:o,$error:C,$focused:v.isFocused||x.isFocused,$isIOS:E,$size:a,$variant:l},t.createElement(nE,{$disabled:o,$error:!1,$focused:v.isFocused,$isIOS:E,$size:a,$variant:l,$width:y,style:{border:"none",background:"transparent",boxShadow:"none"}},t.createElement(rE,Object.assign({},v.groupProps),v.sections.map(((e,n)=>t.createElement(iE,Object.assign({key:`s-${e.start}-${e.end}`,$editable:e.editable,$focused:v.isFocused&&v.focusedIndex===n},v.getSegmentProps(n)),e.value))))),t.createElement(cE,null,"-"),t.createElement(nE,{$disabled:o,$error:!1,$focused:x.isFocused,$isIOS:E,$size:a,$variant:l,$width:w,style:{border:"none",background:"transparent",boxShadow:"none"}},t.createElement(rE,Object.assign({},x.groupProps),x.sections.map(((e,n)=>t.createElement(iE,Object.assign({key:`e-${e.start}-${e.end}`,$editable:e.editable,$focused:x.isFocused&&x.focusedIndex===n},x.getSegmentProps(n)),e.value)))),m&&t.createElement(oE,{onClick:I},m))),t.createElement("input",{type:"hidden",name:u,value:v.value,disabled:o}),t.createElement("input",{type:"hidden",name:p,value:x.value,disabled:o}),i&&t.createElement(Ua,{pt:1},t.createElement(nd,null,i)))}));var uE=g(dE);const pE=n((function(t,n){const r=Cd({props:t,name:"DateRangePicker"}),{startDate:a,endDate:s,error:c=!1,errorText:u,disabled:p=!1,size:m="medium",variant:h="light",monthFormat:g,weekConfig:f,showDateFields:b=!1,showTimeFields:v=!1,timeFieldProps:x,format:y="YYYY-MM-DD",applyButtonText:w,cancelButtonText:C,isOutsideRange:E=(()=>!1),defaultPresetButton:I,presetButtons:k,onPresetButtonClick:M,onDatesChange:$}=r,[A,L]=i(!1),V=o(null),H=d((e=>{e&&!A&&(V.current={startDate:a.clone(),endDate:s.clone()}),L(e)}),[A,a,s]),{context:
|
|
3078
|
+
`,dE=n((function({date:e,format:n="YYYY-MM-DD",error:r=!1,errorText:i,disabled:o=!1,size:a="medium",variant:l="light",startWidth:s,endWidth:c,startName:u,endName:p,append:m,onAppendClick:h,onDatesChange:g},f){const b=d((t=>n=>{t===jp?null==g||g({startDate:n,endDate:e.endDate}):null==g||g({startDate:e.startDate,endDate:n})}),[e,g]),v=tE({date:e.startDate,format:n,disabled:o,onDateChange:b(jp)}),x=tE({date:e.endDate,format:n,disabled:o,onDateChange:b(Fp)}),y=null!=s?s:"fit-content",w=null!=c?c:"fit-content",C=r||!!i,E=ba(),I=d((e=>{e.stopPropagation(),null==h||h()}),[h]);return t.createElement(t.Fragment,null,t.createElement(sE,{ref:f,$disabled:o,$error:C,$focused:v.isFocused||x.isFocused,$isIOS:E,$size:a,$variant:l},t.createElement(nE,{$disabled:o,$error:!1,$focused:v.isFocused,$isIOS:E,$size:a,$variant:l,$width:y,style:{border:"none",background:"transparent",boxShadow:"none"}},t.createElement(rE,Object.assign({},v.groupProps),v.sections.map(((e,n)=>t.createElement(iE,Object.assign({key:`s-${e.start}-${e.end}`,$editable:e.editable,$focused:v.isFocused&&v.focusedIndex===n},v.getSegmentProps(n)),e.value))))),t.createElement(cE,null,"-"),t.createElement(nE,{$disabled:o,$error:!1,$focused:x.isFocused,$isIOS:E,$size:a,$variant:l,$width:w,style:{border:"none",background:"transparent",boxShadow:"none"}},t.createElement(rE,Object.assign({},x.groupProps),x.sections.map(((e,n)=>t.createElement(iE,Object.assign({key:`e-${e.start}-${e.end}`,$editable:e.editable,$focused:x.isFocused&&x.focusedIndex===n},x.getSegmentProps(n)),e.value)))),m&&t.createElement(oE,{onClick:I},m))),t.createElement("input",{type:"hidden",name:u,value:v.value,disabled:o}),t.createElement("input",{type:"hidden",name:p,value:x.value,disabled:o}),i&&t.createElement(Ua,{pt:1},t.createElement(nd,null,i)))}));var uE=g(dE);const pE=n((function(t,n){const r=Cd({props:t,name:"DateRangePicker"}),{startDate:a,endDate:s,error:c=!1,errorText:u,disabled:p=!1,size:m="medium",variant:h="light",monthFormat:g,weekConfig:f,showDateFields:b=!1,showTimeFields:v=!1,timeFieldProps:x,format:y="YYYY-MM-DD",applyButtonText:w,cancelButtonText:C,isOutsideRange:E=(()=>!1),defaultPresetButton:I,presetButtons:k,onPresetButtonClick:M,onDatesChange:$}=r,[A,L]=i(!1),V=o(null),H=d((e=>{e&&!A&&(V.current={startDate:a.clone(),endDate:s.clone()}),L(e)}),[A,a,s]),{context:S,refs:O,strategy:D,x:R,y:z}=ho({placement:"bottom-start",open:A,onOpenChange:H,middleware:[hr(10),mr(),gr({padding:20})]}),N=Vc(n,o(null)),T=po(S),Z=Eo(S),{getReferenceProps:B,getFloatingProps:P}=fo([T,Z]),_=ne(),G=d((()=>{p||H(!A)}),[p,H,A]),j=d((()=>{L(!1)}),[]),F=d((()=>{const e=V.current;e&&$({startDate:e.startDate,endDate:e.endDate}),L(!1)}),[$]),Y=l((()=>e.createElement(le,{name:"date_range",color:p?_.palette.neutral.base:_.palette.text.accent})),[p,_]);return e.createElement(de,{ref:N},e.createElement("div",Object.assign({ref:O.setReference},B(),{style:{width:"fit-content"}}),e.createElement(uE,{date:{startDate:a,endDate:s},error:c,errorText:u,disabled:p,size:m,variant:h,format:y,append:Y,onDatesChange:$,onAppendClick:G})),A&&e.createElement(no,null,e.createElement(oo,{context:S,modal:!1,initialFocus:-1,returnFocus:!1},e.createElement(am,Object.assign({ref:O.setFloating,startDate:a,endDate:s,applyButtonText:w,cancelButtonText:C,defaultPresetButton:I,presetButtons:k,showDateFields:b,showTimeFields:v,timeFieldProps:x,dateFieldFormat:"YYYY-MM-DD",monthFormat:g,weekConfig:f,style:{position:D,top:null!=z?z:0,left:null!=R?R:0,zIndex:_.depth.calendarRange,overflow:"hidden",maxWidth:"min(640px, calc(100vw - 32px))"},isOutsideRange:E,onApply:j,onCancel:F,onDatesChange:$,onPresetButtonClick:M},P())))))}));var mE=e.memo(pE);const hE=(e,t)=>{if("number"==typeof e)return e;const n=parseFloat(e);if(e.includes("vw"))return n/100*window.innerWidth;if(e.includes("vh"))return n/100*window.innerHeight;if(e.includes("%")){return n/100*("left"===t||"right"===t?window.innerWidth:window.innerHeight)}return e.includes("px")?n:isNaN(n)?("production"!==process.env.NODE_ENV&&console.error(`Drawer: 無効なサイズ値です: "${e}". デフォルト値を使用します。`),400):("production"!==process.env.NODE_ENV&&console.warn(`Drawer: 文字列サイズには単位を指定してください。"${e}" → "${e}px" を推奨`),n)},gE=v.div`
|
|
3079
3079
|
position: fixed;
|
|
3080
3080
|
top: 0;
|
|
3081
3081
|
left: 0;
|
|
@@ -3164,7 +3164,7 @@ object-assign
|
|
|
3164
3164
|
z-index: 1;
|
|
3165
3165
|
border-top: 1px solid ${({theme:e})=>e.palette.neutral.softLight};
|
|
3166
3166
|
padding: ${({theme:e})=>2*e.spacing}px;
|
|
3167
|
-
`,CE=({isOpen:e,direction:n,onClose:r,size:l="40vw",resizable:s=!1,minSize:c="20vw",maxSize:u="90vw",onResize:p,stickyHeader:m,stickyFooter:h,confirmOnClose:g,allowBackgroundScroll:f=!1,children:b})=>{const v=300,x=hE(l,n),y=hE(c,n),w=hE(u,n),C=Math.min(y,w),E=Math.max(y,w),I=Math.max(C,Math.min(x,E));"production"!==process.env.NODE_ENV&&(y>w&&console.warn(`Drawer: minSize (${y}px) が maxSize (${w}px) より大きいです。自動補正します。`),(x<C||x>E)&&console.warn(`Drawer: size (${x}px) が min/max の範囲外です。自動補正します。`));const[k,M]=i(!1),[$,A]=i(!1),[L,V]=i(I),H=o(!1),
|
|
3167
|
+
`,CE=({isOpen:e,direction:n,onClose:r,size:l="40vw",resizable:s=!1,minSize:c="20vw",maxSize:u="90vw",onResize:p,stickyHeader:m,stickyFooter:h,confirmOnClose:g,allowBackgroundScroll:f=!1,children:b})=>{const v=300,x=hE(l,n),y=hE(c,n),w=hE(u,n),C=Math.min(y,w),E=Math.max(y,w),I=Math.max(C,Math.min(x,E));"production"!==process.env.NODE_ENV&&(y>w&&console.warn(`Drawer: minSize (${y}px) が maxSize (${w}px) より大きいです。自動補正します。`),(x<C||x>E)&&console.warn(`Drawer: size (${x}px) が min/max の範囲外です。自動補正します。`));const[k,M]=i(!1),[$,A]=i(!1),[L,V]=i(I),H=o(!1),S=o(0),O=o(0),D=o(!1),[R,z]=i(!1),[N,T]=i(null),[Z,B]=i(!1),P=t.useMemo((()=>{if(!g)return null;const e="string"==typeof g?{message:g}:g;return{title:e.title||"確認",message:e.message||"変更内容が保存されていません。閉じてもよろしいですか?",confirmText:e.confirmText||"変更を破棄して閉じる",cancelText:e.cancelText||"編集を続ける",buttonColor:e.buttonColor||"danger"}}),[g]);a((()=>{const e=hE(l,n),t=hE(c,n),r=hE(u,n),i=Math.min(t,r),o=Math.max(t,r),a=Math.max(i,Math.min(e,o));"production"!==process.env.NODE_ENV&&(t>r&&console.warn(`Drawer: minSize (${t}px) が maxSize (${r}px) より大きいです。自動補正します。`),(e<i||e>o)&&console.warn(`Drawer: size (${e}px) が min/max の範囲外です。自動補正します。`)),V(a)}),[l,c,u,n]),a((()=>{if(e){M(!0);const e=setTimeout((()=>{A(!0)}),16);return()=>clearTimeout(e)}if(k){A(!1);const e=setTimeout((()=>{M(!1)}),v);return()=>clearTimeout(e)}}),[e,k]),a((()=>{if(!f&&e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}}),[e,f]);const _=d((e=>{if(!H.current)return;const t="left"===n||"right"===n;let r;if(e instanceof TouchEvent){const n=e.touches[0]||e.changedTouches[0];r=t?n.clientX:n.clientY}else r=t?e.clientX:e.clientY;let i=r-S.current;"right"===n&&(i=-i),"bottom"===n&&(i=-i);let o=O.current+i;o=Math.max(C,Math.min(E,o)),V(o),null==p||p(o)}),[n,C,E,p]),G=d((()=>{H.current=!1,document.body.style.userSelect="",document.body.style.cursor="",D.current=!0,setTimeout((()=>{D.current=!1}),100)}),[]),j=d((e=>{if(!s)return;e.preventDefault(),e.stopPropagation(),H.current=!0;const t="left"===n||"right"===n;let r;r="touches"in e&&e.touches.length>0?t?e.touches[0].clientX:e.touches[0].clientY:"changedTouches"in e&&e.changedTouches.length>0?t?e.changedTouches[0].clientX:e.changedTouches[0].clientY:t?e.clientX:e.clientY,S.current=r,O.current=L,document.body.style.userSelect="none",document.body.style.cursor=t?"ew-resize":"ns-resize"}),[s,n,L]),F=d((e=>{j(e),B(!0)}),[j]),Y=d((()=>{B(!1)}),[]),W=d((()=>{B(!1)}),[]);a((()=>{if(!s)return;const e=e=>{H.current&&_(e)},t=()=>{H.current&&G()},n=e=>{H.current&&_(e)},r=()=>{H.current&&G()};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),window.addEventListener("touchmove",n),window.addEventListener("touchend",r),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t),window.removeEventListener("touchmove",n),window.removeEventListener("touchend",r)}}),[s,_,G]);const X=d((e=>{P?(T(e),z(!0)):null==r||r(e)}),[P,r]);a((()=>{const t=t=>{"Escape"===t.key&&e&&!R&&X("escapeKey")};return e&&window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}}),[e,R,X]);return k?t.createElement(t.Fragment,null,P&&t.createElement(Wh,{isOpen:R,title:P.title,confirmText:P.confirmText,cancelText:P.cancelText,buttonColor:P.buttonColor,onConfirm:()=>{z(!1),N&&r&&r(N),T(null)},onClose:()=>(z(!1),void T(null))},P.message),t.createElement(Fh,null,f?t.createElement(fE,{direction:n,currentSize:L,shouldShow:$,transitionDuration:v},s&&t.createElement(vE,{direction:n,"data-testid":"resize-bar",active:Z}),s&&t.createElement(bE,{direction:n,"data-testid":"resize-handle",onMouseDown:j,onTouchStart:F,onTouchEnd:Y,onTouchCancel:W,onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1)}),m&&t.createElement(xE,null,m),t.createElement(yE,null,b),h&&t.createElement(wE,null,h)):t.createElement(gE,{shouldShow:$,transitionDuration:v,onClick:e=>{H.current||D.current||e.target===e.currentTarget&&X("backdropClick")}},t.createElement(fE,{direction:n,currentSize:L,shouldShow:$,transitionDuration:v},s&&t.createElement(vE,{direction:n,"data-testid":"resize-bar",active:Z}),s&&t.createElement(bE,{direction:n,"data-testid":"resize-handle",onMouseDown:j,onTouchStart:F,onTouchEnd:Y,onTouchCancel:W,onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1)}),m&&t.createElement(xE,null,m),t.createElement(yE,null,b),h&&t.createElement(wE,null,h))))):null},EE={small:{arrowIconSize:16,arrowButtonPadding:"6px"},medium:{arrowIconSize:18,arrowButtonPadding:"8px"},large:{arrowIconSize:20,arrowButtonPadding:"10px"}},IE=v.div`
|
|
3168
3168
|
display: inline-flex;
|
|
3169
3169
|
`,kE=v(cl)`
|
|
3170
3170
|
border-top-right-radius: 0px;
|
|
@@ -3202,28 +3202,28 @@ object-assign
|
|
|
3202
3202
|
`,LE=v.span`
|
|
3203
3203
|
display: flex;
|
|
3204
3204
|
align-items: center;
|
|
3205
|
-
`,VE=({size:t="medium",color:n="primary",onClick:r,split:i=!1,contents:o=[],disabled:a=!1,children:l,icon:s,selectedValue:c,menuWidth:d=200,loading:u=!1,toggleAriaLabel:p="メニューを開く"})=>{const m=ne(),h=!!u,g="string"==typeof u?u:u?"Loading...":void 0,f=((e,t)=>e?m.palette.text.disabled:"primary"===t?m.palette.white:m.palette.black)(a||h,n),b=e.useMemo((()=>({small:"16px",medium:"18px",large:"20px"}[t])),[t]),v=void 0!==c?c:l,x=e.useMemo((()=>e.createElement(le,{name:"arrow_bottom",size:EE[t].arrowIconSize,color:f})),[t,f]),y=e.useMemo((()=>h?e.createElement(rl,{width:b}):null),[h,b]),w=!!s,C=!!v,E=h?w?y:void 0:s,I=h?!w&&C||w&&C?g:void 0:v,k=h?w?y:void 0:s,M=(()=>{if(h&&(!w||C))return C?g:void 0})(),$=i?e.createElement(IE,null,e.createElement(kE,{size:t,color:n,inline:!0,disabled:a||h,icon:E,onClick:r},I),e.createElement(ME,{size:t,color:n,inline:!0,disabled:a||h,"data-testid":"menu-toggle","aria-label":p},x)):e.createElement($E,{size:t,color:n,disabled:a||h,"data-testid":"menu-toggle",icon:k,"aria-label":C?void 0:p},e.createElement(AE,null,h?M?e.createElement(e.Fragment,null,"string"==typeof M?e.createElement(Ya,null,M):M,e.createElement(LE,null,e.createElement(Ua,{pr:.5}),x)):e.createElement(LE,null,e.createElement(Ua,{pr:.5}),x):e.createElement(e.Fragment,null,v&&e.createElement(Ya,null,v),e.createElement(LE,null,e.createElement(Ua,{pr:.5}),x))));return e.createElement(Da,null,e.createElement(
|
|
3205
|
+
`,VE=({size:t="medium",color:n="primary",onClick:r,split:i=!1,contents:o=[],disabled:a=!1,children:l,icon:s,selectedValue:c,menuWidth:d=200,loading:u=!1,toggleAriaLabel:p="メニューを開く"})=>{const m=ne(),h=!!u,g="string"==typeof u?u:u?"Loading...":void 0,f=((e,t)=>e?m.palette.text.disabled:"primary"===t?m.palette.white:m.palette.black)(a||h,n),b=e.useMemo((()=>({small:"16px",medium:"18px",large:"20px"}[t])),[t]),v=void 0!==c?c:l,x=e.useMemo((()=>e.createElement(le,{name:"arrow_bottom",size:EE[t].arrowIconSize,color:f})),[t,f]),y=e.useMemo((()=>h?e.createElement(rl,{width:b}):null),[h,b]),w=!!s,C=!!v,E=h?w?y:void 0:s,I=h?!w&&C||w&&C?g:void 0:v,k=h?w?y:void 0:s,M=(()=>{if(h&&(!w||C))return C?g:void 0})(),$=i?e.createElement(IE,null,e.createElement(kE,{size:t,color:n,inline:!0,disabled:a||h,icon:E,onClick:r},I),e.createElement(ME,{size:t,color:n,inline:!0,disabled:a||h,"data-testid":"menu-toggle","aria-label":p},x)):e.createElement($E,{size:t,color:n,disabled:a||h,"data-testid":"menu-toggle",icon:k,"aria-label":C?void 0:p},e.createElement(AE,null,h?M?e.createElement(e.Fragment,null,"string"==typeof M?e.createElement(Ya,null,M):M,e.createElement(LE,null,e.createElement(Ua,{pr:.5}),x)):e.createElement(LE,null,e.createElement(Ua,{pr:.5}),x):e.createElement(e.Fragment,null,v&&e.createElement(Ya,null,v),e.createElement(LE,null,e.createElement(Ua,{pr:.5}),x))));return e.createElement(Da,null,e.createElement(Oa,{trigger:$,width:d},o.map(((t,n)=>e.createElement(e.Fragment,{key:`${n}-${t.text}`},t.divideTop&&e.createElement(Ta,null),(t=>"heading"===t.type?e.createElement(Ra,null,t.text):"helpText"===t.type?e.createElement(Na,{prepend:t.prepend},t.text):void 0!==t.checked?e.createElement(Ro,{closeOnChange:!0,checked:t.checked,color:t.color,disabled:t.disabled,prepend:t.icon,onChange:t.onChange},t.text):e.createElement(Dt,{closeOnClick:!0,color:t.color,disabled:t.disabled,prepend:t.icon,onClick:t.onClick},t.text))(t))))))},HE=v.div`
|
|
3206
3206
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
3207
3207
|
border: 1px solid ${({theme:e})=>e.palette.divider};
|
|
3208
3208
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
3209
3209
|
display: flex;
|
|
3210
3210
|
height: 512px;
|
|
3211
3211
|
overflow: hidden;
|
|
3212
|
-
`,
|
|
3212
|
+
`,SE=v.ul`
|
|
3213
3213
|
flex: 1;
|
|
3214
3214
|
overflow-y: scroll;
|
|
3215
|
-
`,
|
|
3215
|
+
`,OE=v.li`
|
|
3216
3216
|
border-bottom: ${({isLastIndex:e,theme:t})=>e&&void 0!==e?"none":`1px solid ${t.palette.divider}`};
|
|
3217
3217
|
list-style: none;
|
|
3218
|
-
`,DE=v(
|
|
3218
|
+
`,DE=v(OE)`
|
|
3219
3219
|
padding: ${({theme:e})=>2*e.spacing}px;
|
|
3220
|
-
`,RE=v(
|
|
3220
|
+
`,RE=v(OE)`
|
|
3221
3221
|
border-bottom: 1px solid ${({theme:e})=>e.palette.divider};
|
|
3222
3222
|
`,zE=v(be)`
|
|
3223
3223
|
border-bottom: none;
|
|
3224
3224
|
`,NE=v.div`
|
|
3225
3225
|
padding-left: ${({theme:e})=>e.spacing/2}px;
|
|
3226
|
-
`,TE=({children:e,disableCheckbox:n=!1,item:r,onAdd:i,onRemove:o})=>{var a;return t.createElement(de,{display:"flex",justifyContent:"space-between"},r.items||n?e:t.createElement(Kd,{checked:null!==(a=null==r?void 0:r.selected)&&void 0!==a&&a,onClick:()=>{r.selected?null==o||o(r):null==i||i(r)}},e))},ZE=({disableCheckbox:e,items:n,onAdd:r,onRemove:i})=>t.createElement(
|
|
3226
|
+
`,TE=({children:e,disableCheckbox:n=!1,item:r,onAdd:i,onRemove:o})=>{var a;return t.createElement(de,{display:"flex",justifyContent:"space-between"},r.items||n?e:t.createElement(Kd,{checked:null!==(a=null==r?void 0:r.selected)&&void 0!==a&&a,onClick:()=>{r.selected?null==o||o(r):null==i||i(r)}},e))},ZE=({disableCheckbox:e,items:n,onAdd:r,onRemove:i})=>t.createElement(SE,null,n.map(((o,a)=>t.createElement(t.Fragment,null,o.items?t.createElement(RE,{key:o.id},t.createElement(zE,{title:t.createElement(NE,null,t.createElement(TE,{item:o,onAdd:r,onRemove:i},o.content))},t.createElement(ZE,{disableCheckbox:e,items:o.items,onAdd:r,onRemove:i}))):t.createElement(DE,{key:o.id,isLastIndex:a+1===n.length},t.createElement(TE,{disableCheckbox:e,item:o,onAdd:r,onRemove:i},o.content)))))),BE=v.div`
|
|
3227
3227
|
flex: 1;
|
|
3228
3228
|
overflow-y: scroll;
|
|
3229
3229
|
`,PE=v.div`
|
|
@@ -3672,9 +3672,9 @@ object-assign
|
|
|
3672
3672
|
color: ${({theme:e})=>e.palette.neutral.base};
|
|
3673
3673
|
font-size: 13px;
|
|
3674
3674
|
line-height: 16px;
|
|
3675
|
-
`,VI=({id:e,children:n,isIncluded:r=!1,isExcluded:i=!1,disableInclude:o,disableExclude:a})=>{const{onIncludedChange:l,onExcludedChange:s,includedIds:d,excludedIds:u}=c(HI),p=c(
|
|
3675
|
+
`,VI=({id:e,children:n,isIncluded:r=!1,isExcluded:i=!1,disableInclude:o,disableExclude:a})=>{const{onIncludedChange:l,onExcludedChange:s,includedIds:d,excludedIds:u}=c(HI),p=c(OI),m=p>=2,h=(e,t)=>e?t:z.gray[900],g=!o&&t.createElement(cl,{type:"button",size:"small",color:"secondaryLight","aria-pressed":r,"aria-label":"追加",icon:t.createElement(le,{name:"check_thin",color:h(r,z.blue[500])}),onClick:()=>{r?l(d.filter((t=>t!==e))):i?(s(u.filter((t=>t!==e))),l([...d,e])):l([...d,e])}}),f=!a&&t.createElement(cl,{type:"button",size:"small",color:"secondaryLight","aria-pressed":i,"aria-label":"除外",icon:t.createElement(le,{name:"forbid",color:h(i,z.red[500])}),onClick:()=>{i?s(u.filter((t=>t!==e))):r?(l(d.filter((t=>t!==e))),s([...u,e])):s([...u,e])}});return t.createElement(vI,{$depth:p,$nested:m},n,t.createElement(bI,null,o||a?t.createElement(t.Fragment,null,g,f):t.createElement(Qu,{size:"small",color:"secondaryLight"},g,f)))};VI.displayName="DualListBox2Item";const HI=s({filterWords:[],includedIds:[],excludedIds:[],activeSection:null,onIncludedChange:e=>{},onExcludedChange:e=>{},setActiveSection:e=>{}}),SI=s({groupName:""}),OI=s(0),DI=(e,t)=>{p.forEach(e,(e=>{if(t(e),!m(e))return;const n=e.props;n.children&&DI(n.children,t)}))},RI=e=>{const t=[];return DI(e,(e=>{if(m(e)&&"string"!=typeof e.type&&"symbol"!=typeof e.type&&e.type&&"function"==typeof e.type&&"displayName"in e.type&&e.type.displayName===VI.displayName){const n=e.props,r=n.label||(e=>{let t="";const n=e=>{"string"==typeof e||"number"==typeof e?t+=String(e):m(e)&&e.props.children?n(e.props.children):Array.isArray(e)&&e.forEach(n)};return n(e),t})(n.children);t.push({id:n.id,label:r,groupName:n.groupName})}})),t},zI=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,selectedContent:t.selectedContent}):e.push({groupName:t.groupName,items:[{id:t.id,label:t.label,selectedContent:t.selectedContent}]}),e}),[]),NI=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}),[]),TI=({label:e,children:n,onOpen:r,onClose:i})=>{const{activeSection:o,setActiveSection:a}=c(HI),s=l((()=>o===e),[e,o]),u=l((()=>null!==o&&o!==e),[e,o]),p=d((()=>{const t=!s;a(t?e:null),t&&r&&r(),!t&&i&&i()}),[e,s,a,r,i]);return u?null:t.createElement(SI.Provider,{value:{groupName:e}},t.createElement(AI,{type:"button","aria-label":`${e}を開く`,"aria-expanded":s,onClick:p},t.createElement(MI,null,t.createElement(le,{name:"arrow_left",color:z.gray[900]})),t.createElement("div",null,e),t.createElement($I,null,t.createElement(le,{name:"arrow_right",color:z.gray[900]}))),s&&n)};TI.displayName="DualListBox2Section";const ZI=v(Wo)`
|
|
3676
3676
|
margin-right: 16px;
|
|
3677
|
-
`,BI=({pageSize:e,pageSizeOptions:n,onPageSizeChange:r})=>t.createElement(
|
|
3677
|
+
`,BI=({pageSize:e,pageSizeOptions:n,onPageSizeChange:r})=>t.createElement(Oa,{width:136,trigger:t.createElement(ZI,{append:e},"件数を変更")},n.map((n=>t.createElement(Ro,{key:n,closeOnChange:!0,checked:e===n,onChange:()=>r(n)},n,"件")))),PI=({label:e,disableInclude:n,disableExclude:r,children:o,onOpen:a,onClose:s,onInclude:u,onExclude:p})=>{const[m,h]=i(!1),g=d((()=>{const e=!m;h(e),e&&a&&a(),!e&&s&&s()}),[m,a,s]),f=c(OI),{includedIds:b,excludedIds:v,onIncludedChange:x,onExcludedChange:y}=c(HI),w=l((()=>(e=>RI(e).map((e=>e.id)))(o)),[o]),C=!(n||void 0===u&&w.every((e=>b.includes(e)))),E=!(r||void 0===p&&w.every((e=>v.includes(e)))),I=d((()=>{u?u():w.every((e=>b.includes(e)))||(x(Array.from(new Set([...b,...w]))),y(v.filter((e=>!w.includes(e)))))}),[u,w,b,v,x,y]),k=d((()=>{p?p():w.every((e=>v.includes(e)))||(y(Array.from(new Set([...v,...w]))),x(b.filter((e=>!w.includes(e)))))}),[p,w,b,v,x,y]),M=C&&t.createElement(cl,{type:"button",size:"small",color:"secondaryLight","aria-label":"追加",icon:t.createElement(le,{name:"check_thin",color:z.blue[500]}),onClick:I}),$=E&&t.createElement(cl,{type:"button",size:"small",color:"secondaryLight","aria-label":"除外",icon:t.createElement(le,{name:"forbid",color:z.red[500]}),onClick:k});return t.createElement(t.Fragment,null,t.createElement(CI,{$depth:f},t.createElement(EI,{type:"button","aria-label":`${e}を開く`,"aria-expanded":m,onClick:g},f>=1&&t.createElement(le,{name:"corner_down_right",size:"md",color:z.gray[400]}),e),t.createElement(II,null,C&&E?t.createElement(Qu,{size:"small",color:"secondaryLight"},M,$):t.createElement(t.Fragment,null,M,$)),t.createElement(kI,null,t.createElement(le,{name:"arrow_down",color:z.gray[900]}))),m&&t.createElement(OI.Provider,{value:f+1},o))};PI.displayName="DualListBox2Accordion";const _I=t.memo((({id:e,children:n})=>{const{includedIds:r,excludedIds:i,onIncludedChange:o,onExcludedChange:a}=c(HI),s=l((()=>r.includes(e)),[r,e]),u=l((()=>i.includes(e)),[i,e]),p=d((()=>{s&&o(r.filter((t=>t!==e))),u&&a(i.filter((t=>t!==e)))}),[s,u,r,i,o,a,e]);return t.createElement(xI,null,n,t.createElement(yI,{type:"button","aria-label":"解除",onClick:p},t.createElement(le,{name:"close_circle",type:"fill",color:"currentColor"})))}));_I.displayName="DualListBox2SelectedItem";const GI=({label:e})=>t.createElement(wI,null,e),jI=[],FI=()=>!0,YI=n((({included:e,excluded:n,disableInclude:r,disableExclude:s,menuButtons:c,children:u,loading:p,onIncludedChange:h,onExcludedChange:g,onActiveSectionChange:f,onLoadMore:v,pageSize:x=50,pageSizeOptions:y=[10,50,100,200],onPageSizeChange:w,filter:C="",onFilterChange:E,renderFilterHeader:I,placement:k,middleware:M},$)=>{const[A,L]=i(0),[V,H]=i(null),[S,O]=i(!1),D=o(null),R=!!I,N=l((()=>RI(u)),[u]),T=l((()=>(e=>{const t={};return DI(e,(e=>{if(m(e)&&"string"!=typeof e.type&&"symbol"!=typeof e.type&&e.type&&"function"==typeof e.type&&"displayName"in e.type&&e.type.displayName===VI.displayName){const n=e.props;t[n.id]=n.children}})),t})(u)),[u]),{currentFilter:Z,filterWords:B,filteredChildren:P,matchesFilter:_,handleFilterChange:G,handleFilterReset:j}=function({children:e,externalFilter:n,onFilterChange:r,allItems:o}){const[a,s]=i(""),c=r?n:a,u=d((e=>{const t=e.target.value;r?r(t):s(t)}),[r]),p=d((()=>{r?r(""):s("")}),[r]),h=l((()=>{const e=c.trim();return e?e.split(/\s+/):[]}),[c]),g=d((e=>0===h.length||h.every((t=>e.toLowerCase().includes(t.toLowerCase())))),[h]),f=d((e=>{if(!m(e))return e;if(e.type!==VI)return e;const t=o.find((t=>t.id===e.props.id));return t&&g(t.label)?e:null}),[o,g]),b=d((e=>t.Children.toArray(e).filter(m).map((e=>{if(e.type===VI)return f(e);if("string"!=typeof e.type&&"symbol"!=typeof e.type&&"displayName"in e.type&&e.type.displayName===PI.displayName){const n=e,r=b(n.props.children);return 0===r.length?null:t.cloneElement(n,Object.assign(Object.assign({},n.props),{children:r}))}if("string"!=typeof e.type&&"symbol"!=typeof e.type&&"displayName"in e.type&&e.type.displayName===TI.displayName){const n=e,r=b(n.props.children);return t.cloneElement(n,Object.assign(Object.assign({},n.props),{children:r}))}return e})).filter(Boolean)),[f]),v=l((()=>0===h.length?e:b(e)),[e,h,b]);return{currentFilter:c,filterWords:h,filteredChildren:v,matchesFilter:g,handleFilterChange:u,handleFilterReset:p}}({children:u,externalFilter:C,onFilterChange:E,allItems:N}),F=R?u:P,Y=R?jI:B,W=R?FI:_,X=d((e=>{H(e),null==f||f(e),null!==e||R||j()}),[j,R,f]),J=l((()=>{let e=!1;return DI(u,(t=>{m(t)&&"string"!=typeof t.type&&"symbol"!=typeof t.type&&"displayName"in t.type&&t.type.displayName===TI.displayName&&(e=!0)})),e}),[u]),U=l((()=>e.map((e=>e.id))),[e]),Q=l((()=>n.map((e=>e.id))),[n]),q=l((()=>N.map((e=>e.id))),[N]),K=l((()=>q.filter((e=>{const t=N.find((t=>t.id===e));return!!t&&W(t.label)}))),[q,N,W]),ee=l((()=>{if(!J)return[];if(null===V)return[];const e=[];return DI(u,(t=>{if(!m(t)||"string"==typeof t.type||"symbol"==typeof t.type||!("displayName"in t.type)||t.type.displayName!==TI.displayName)return;const n=t.props;n.label===V&&DI(n.children,(t=>{m(t)&&"string"!=typeof t.type&&"symbol"!=typeof t.type&&"displayName"in t.type&&t.type.displayName===VI.displayName&&e.push(t.props.id)}))})),e}),[V,u,J]),te=l((()=>ee.filter((e=>{const t=N.find((t=>t.id===e));return!!t&&W(t.label)}))),[ee,N,W]),ne=l((()=>{if(J){if(null===V)return!0;return!!te.every((e=>U.includes(e)))}return!!K.every((e=>U.includes(e)))}),[J,V,K,te,U]),re=l((()=>{if(J){if(null===V)return!0;return!!te.every((e=>Q.includes(e)))}return!!K.every((e=>Q.includes(e)))}),[J,V,K,te,Q]),ie=d((()=>{e.length&&h([]),n.length&&g([])}),[e,n,h,g]),oe=d((()=>{if(J){if(null===V)return;return h(Array.from(new Set([...U,...te]))),void g(Q.filter((e=>!te.includes(e))))}h(Array.from(new Set([...U,...K]))),g(Q.filter((e=>!K.includes(e))))}),[K,h,g,J,V,U,Q,te]),ae=d((()=>{if(J){if(null===V)return;return g(Array.from(new Set([...Q,...te]))),void h(U.filter((e=>!te.includes(e))))}g(Array.from(new Set([...Q,...K]))),h(U.filter((e=>!K.includes(e))))}),[K,h,g,J,V,U,Q,te]),se=!r&&t.createElement(cl,{type:"button",size:"small",color:"secondaryLight",icon:t.createElement(le,{name:"check_thin",color:ne?z.gray[400]:z.blue[500]}),disabled:ne,onClick:oe},"全て追加"),ce=!s&&t.createElement(cl,{type:"button",size:"small",color:"secondaryLight",icon:t.createElement(le,{name:"forbid",color:re?z.gray[400]:z.red[500]}),disabled:re,onClick:ae},"全て除外"),de=d((async e=>{if(e[0].isIntersecting&&!S&&v){O(!0);try{await v()}finally{O(!1)}}}),[S,v]);return a((()=>{if("undefined"==typeof IntersectionObserver)return;const e=new IntersectionObserver(de,{root:null,rootMargin:"100px",threshold:.1}),t=D.current;return t&&e.observe(t),()=>{t&&e.unobserve(t)}}),[de]),t.createElement(JE,{ref:$,role:"region","aria-label":"アイテムの追加、除外選択エリア"},t.createElement(UE,{role:"tablist","aria-label":"リストの表示切り替え"},t.createElement("li",null,t.createElement("button",{type:"button",role:"tab","aria-selected":0===A,"aria-expanded":0===A,"aria-controls":"list-items-panel",onClick:()=>L(0)},"リストアイテム")),t.createElement("li",null,t.createElement("button",{type:"button",role:"tab","aria-selected":1===A,"aria-expanded":1===A,"aria-controls":"selected-items-panel",onClick:()=>L(1)},"選択済みアイテム",(e.length>0||n.length>0)&&t.createElement(QE,null,e.length+n.length)))),t.createElement(qE,null,t.createElement(HI.Provider,{value:{filterWords:Y,includedIds:U,excludedIds:Q,activeSection:V,onIncludedChange:h,onExcludedChange:g,setActiveSection:X}},t.createElement(KE,{isShow:0===A,id:"list-items-panel",role:"tabpanel","aria-labelledby":"list-items-tab"},t.createElement(tI,{hasMenu:!(!c&&!w),hasCustomFilterHeader:R},R?t.createElement(iI,null,I()):t.createElement(nI,null,t.createElement(le,{name:"search",size:"sm",color:z.gray[600]}),t.createElement("input",{"aria-label":"アイテムを検索",disabled:J&&null===V,placeholder:"検索",type:"text",value:Z,onChange:G}),Z&&t.createElement(rI,{type:"button","aria-label":"検索をリセット",onClick:j},t.createElement(le,{name:"close_circle",type:"fill",color:"currentColor"}))),(c||w)&&t.createElement(Da,null,t.createElement(Oa,{trigger:t.createElement(oI,{type:"button",size:"small",color:"secondaryLight",icon:t.createElement(le,{name:"more_vert",color:z.gray[900]})}),placement:k,middleware:M},w&&t.createElement(BI,{pageSize:x,pageSizeOptions:y,onPageSizeChange:w}),c)),t.createElement(aI,null,p?t.createElement(rl,{width:"16px"}):t.createElement(t.Fragment,null,J&&null===V?"-":J?te.length.toLocaleString("en-US"):K.length.toLocaleString("en-US"),"件")),t.createElement(lI,null,r||s?t.createElement(t.Fragment,null,se,ce):t.createElement(Qu,{size:"small",color:"secondaryLight"},se,ce))),t.createElement(eI,null,F,t.createElement("div",{ref:D,style:{height:"20px"}},p&&t.createElement(LI,null,"読み込み中...")))),t.createElement(sI,{isShow:1===A},t.createElement(cI,null,t.createElement(uI,null,0!==e.length&&t.createElement(mI,null,t.createElement(le,{name:"check_thin",color:z.blue[500]}),e.length),0!==n.length&&t.createElement(hI,null,t.createElement(le,{name:"forbid",color:z.red[500]}),n.length)),t.createElement(gI,null,t.createElement(cl,{type:"button",color:"secondaryLight",size:"small",disabled:!e.length&&!n.length,onClick:ie},"選択をクリア"))),t.createElement(dI,null,!!e.length&&t.createElement(fI,null,t.createElement(le,{name:"check_thin",color:z.blue[500]}),"追加"),zI(e).map((e=>t.createElement(b,{key:e.groupName||"_"},e.groupName&&t.createElement(GI,{label:e.groupName}),e.items.map((e=>t.createElement(_I,{key:e.id,id:e.id},T[e.id]||e.selectedContent||e.label)))))),!!n.length&&t.createElement(fI,null,t.createElement(le,{name:"forbid",color:z.red[500]}),"除外"),zI(n).map((e=>t.createElement(b,{key:e.groupName||"_"},e.groupName&&t.createElement(GI,{label:e.groupName}),e.items.map((e=>t.createElement(_I,{key:e.id,id:e.id},T[e.id]||e.selectedContent||e.label)))))))))))}));YI.displayName="DualListBox2";const WI=v.div`
|
|
3678
3678
|
display: flex;
|
|
3679
3679
|
justify-content: center;
|
|
3680
3680
|
align-items: center;
|
|
@@ -3833,7 +3833,7 @@ object-assign
|
|
|
3833
3833
|
width: 22px;
|
|
3834
3834
|
height: 22px;
|
|
3835
3835
|
}
|
|
3836
|
-
`;const rk=s({isSmall:!1,disabled:!1}),ik=({label:e,size:n="medium",variant:r="dark",onRemove:i})=>{const{disabled:o}=t.useContext(rk),a=o?void 0:i;return t.createElement(ze,{label:e,size:n,variant:r,disabled:o,onRemove:a})},ok=({selectedIndex:e,selectOptions:n,onSelectChange:r,children:l,size:s="medium",variant:c="light",disabled:u=!1,error:p=!1,isOpen:m=!1})=>{const[h,g]=i(!1),[f,b]=i(!1),v=o(null),x=n.map((e=>Object.assign(Object.assign({},e),{icon:t.isValidElement(e.icon)&&e.icon.type===le?t.cloneElement(e.icon,{color:e.icon.props.color||"currentColor"}):e.icon}))),y=d((e=>{r(e),g(!1)}),[r,g]),w=d((()=>{u||g(!h)}),[u,h,g]),C=d((e=>{u||g(e)}),[u,g]);return a((()=>{if(!window.ResizeObserver)return;if(!v.current)return;const e=new window.ResizeObserver((()=>{v.current&&b(v.current.clientWidth<130)}));return e.observe(v.current),()=>{e.disconnect()}}),[b]),t.createElement(tk,{ref:v,"data-small":f,"data-size":s,"data-disabled":u,$isOpen:m,$error:p,$disabled:u},t.createElement(Da,null,t.createElement(
|
|
3836
|
+
`;const rk=s({isSmall:!1,disabled:!1}),ik=({label:e,size:n="medium",variant:r="dark",onRemove:i})=>{const{disabled:o}=t.useContext(rk),a=o?void 0:i;return t.createElement(ze,{label:e,size:n,variant:r,disabled:o,onRemove:a})},ok=({selectedIndex:e,selectOptions:n,onSelectChange:r,children:l,size:s="medium",variant:c="light",disabled:u=!1,error:p=!1,isOpen:m=!1})=>{const[h,g]=i(!1),[f,b]=i(!1),v=o(null),x=n.map((e=>Object.assign(Object.assign({},e),{icon:t.isValidElement(e.icon)&&e.icon.type===le?t.cloneElement(e.icon,{color:e.icon.props.color||"currentColor"}):e.icon}))),y=d((e=>{r(e),g(!1)}),[r,g]),w=d((()=>{u||g(!h)}),[u,h,g]),C=d((e=>{u||g(e)}),[u,g]);return a((()=>{if(!window.ResizeObserver)return;if(!v.current)return;const e=new window.ResizeObserver((()=>{v.current&&b(v.current.clientWidth<130)}));return e.observe(v.current),()=>{e.disconnect()}}),[b]),t.createElement(tk,{ref:v,"data-small":f,"data-size":s,"data-disabled":u,$isOpen:m,$error:p,$disabled:u},t.createElement(Da,null,t.createElement(Oa,{open:!u&&h,trigger:t.createElement(nk,{$variant:c,type:"button",disabled:u,"aria-label":"フィルターのタイプを選ぶ",onClick:w},x[e].icon,t.createElement(le,{name:"arrow_down",color:"currentColor"})),onOpenChange:C},x.map((({label:n,icon:r},i)=>t.createElement(Ro,{key:n,prepend:r,checked:e===i,disabled:u,onChange:()=>y(i)},n))))),t.createElement(rk.Provider,{value:{isSmall:f,disabled:u}},l))};v.button`
|
|
3837
3837
|
box-sizing: border-box;
|
|
3838
3838
|
display: flex;
|
|
3839
3839
|
align-items: center;
|
|
@@ -4032,7 +4032,7 @@ object-assign
|
|
|
4032
4032
|
border-bottom-left-radius: 0;
|
|
4033
4033
|
border-top-left-radius: 0;
|
|
4034
4034
|
}
|
|
4035
|
-
`,bk=({values:e,options:n,selectedIndex:r,selectOptions:s,onChange:c,onSelectChange:u,size:p="medium",variant:m="dark",tagVariant:h,searchPlaceholder:g="検索",noResultsMessage:f="見つかりませんでした",showOptionsOnlyWhenSearching:b=!1,searchPromptMessage:v="キーワードを入力してください",filterLocally:x=!0,onSearchChange:y,isLoading:w=!1,disabled:C=!1,applyButtonText:E="適用",cancelButtonText:I="キャンセル",error:k=!1,placement:M,middleware:$})=>{const[A,L]=i(""),[V,H]=i(!1),[O
|
|
4035
|
+
`,bk=({values:e,options:n,selectedIndex:r,selectOptions:s,onChange:c,onSelectChange:u,size:p="medium",variant:m="dark",tagVariant:h,searchPlaceholder:g="検索",noResultsMessage:f="見つかりませんでした",showOptionsOnlyWhenSearching:b=!1,searchPromptMessage:v="キーワードを入力してください",filterLocally:x=!0,onSearchChange:y,isLoading:w=!1,disabled:C=!1,applyButtonText:E="適用",cancelButtonText:I="キャンセル",error:k=!1,placement:M,middleware:$})=>{const[A,L]=i(""),[V,H]=i(!1),[S,O]=i(e),[D,R]=i(!1),z=l((()=>h||("light"===m?"dark":"light")),[m,h]),[N,T]=i(!1),Z=o(null),B=d((()=>{Z.current&&T(Z.current.clientWidth<Z.current.scrollWidth)}),[]),P=d((e=>{const t=e.trim();if(!t)return n.map((e=>Array.isArray(e)?e:[e]));const r=t.includes(","),i=t.startsWith('"')&&t.endsWith('"'),o=ys(t);return n.filter((e=>{if(!Array.isArray(e)){const n=e.toLowerCase();return i?o.some((e=>n===e.toLowerCase())):r?o.some((e=>n.includes(e.toLowerCase()))):n.includes(t.toLowerCase())}return i?e.some((e=>o.some((t=>e.toLowerCase()===t.toLowerCase())))):r?e.some((e=>o.some((t=>e.toLowerCase().includes(t.toLowerCase()))))):e.some((e=>e.toLowerCase().includes(t.toLowerCase())))})).map((e=>Array.isArray(e)?e:[e]))}),[n]),_=b&&""===A.trim(),G=l((()=>x?P(A):n.map((e=>Array.isArray(e)?e:[e]))),[A,P,x,n]),j=l((()=>Array.from(new Set([...e,...S])).map((e=>[e]))),[e,S]),F=_?j:G,Y=d((e=>{S.includes(e)?O(S.filter((t=>t!==e))):O([...S,e])}),[S]),W=d((()=>{if(V)return;if(!A.trim())return;const e=x?P(A):F;1===e.length&&(Y(e[0][0]),L(""),null==y||y(""))}),[V,A,P,Y,x,F,y]),X=d((e=>{L(e.target.value),null==y||y(e.target.value)}),[y]),J=o(null),U=d((e=>{var t;e.stopPropagation(),L(""),null==y||y(""),null===(t=J.current)||void 0===t||t.focus()}),[y]),Q=d((e=>{e.key}),[]),q=d((t=>{const n=e.filter((e=>e!==t));c(n),O(n)}),[e,c]),K=d((t=>{R(t),t&&O(e),L(""),null==y||y("")}),[e,y]),ee=d((()=>{c(S),R(!1)}),[c,S]),te=d((()=>{O(e),R(!1)}),[e]),ne=d((()=>{const e=F.map((e=>e[0])),t=[...new Set([...S,...e])];O(t)}),[F,S]),re=d((()=>{O([])}),[]),ie=l((()=>t.createElement(mk,null,t.createElement(hk,null,t.createElement(uk,{ref:J,autoFocus:!0,value:A,placeholder:g,onChange:X,onKeyDown:Q,onCompositionStart:()=>H(!0),onCompositionEnd:()=>H(!1),onEnter:W}),A&&t.createElement(gk,{type:"button","aria-label":"検索をリセット",onClick:U},t.createElement(le,{name:"close_circle",type:"fill",color:"currentColor"}))),t.createElement(fk,null,t.createElement(Oc,{content:"すべて選択",positionPriority:["top"],offset:[0,8],disabled:0===F.length},t.createElement(cl,{"aria-label":"すべて選択",icon:t.createElement(le,{name:"check_thin",color:"currentColor"}),size:"small",color:"secondaryDark",disabled:0===F.length,onClick:ne})),t.createElement(Oc,{content:"すべてクリア",positionPriority:["top"],offset:[0,8],disabled:0===F.length},t.createElement(cl,{"aria-label":"すべてクリア",icon:t.createElement(le,{name:"close",color:"currentColor"}),size:"small",color:"secondaryDark",disabled:0===F.length,onClick:re}))))),[A,g,X,Q,W,ne,re,U,F]),oe=l((()=>t.createElement(Za,null,t.createElement(cl,{size:"small",color:"clear",onClick:te},I),t.createElement(cl,{size:"small",onClick:ee},E))),[te,ee,E,I]);a((()=>{if(!window.ResizeObserver)return;if(!Z.current)return;const e=new window.ResizeObserver((()=>{Z.current&&B()}));return e.observe(Z.current),B(),()=>{e.disconnect()}}),[B]);return t.createElement(ok,{variant:m,size:p,selectedIndex:r,selectOptions:s,disabled:C,error:k,isOpen:D,onSelectChange:u},t.createElement(lk,{$variant:m,$size:p,"data-overflowing":N},t.createElement(Da,null,t.createElement(Oa,{open:D&&!C,trigger:t.createElement(ck,{type:"button",$variant:m,$size:p,disabled:C,"aria-label":"タグを追加",onClick:()=>{C||R(!D)}},t.createElement(dk,null,t.createElement(le,{name:"arrow_down",color:"currentColor"}))),stickyHeader:ie,stickyFooter:oe,noResultsMessage:f,placement:M,middleware:$,onOpenChange:e=>!C&&K(e)},_&&0===F.length?t.createElement(Ca,{message:v}):!_&&w?t.createElement(pk,{role:"status","aria-label":"読み込み中"},t.createElement(rl,{width:"24px"})):0===F.length?t.createElement(Ca,{message:f}):F.map((e=>t.createElement(Ro,{key:e[0],checked:S.includes(e[0]),closeOnChange:!1,onChange:()=>Y(e[0])},e[0]))))),t.createElement(sk,{ref:Z},e.map((e=>t.createElement(ik,{key:e,label:e,size:p,variant:z,onRemove:()=>q(e)}))))))},vk=v.div`
|
|
4036
4036
|
min-width: 0;
|
|
4037
4037
|
width: calc(100% + 46px);
|
|
4038
4038
|
height: 100%;
|
|
@@ -4177,7 +4177,7 @@ object-assign
|
|
|
4177
4177
|
color: ${({theme:e})=>e.palette.black};
|
|
4178
4178
|
cursor: pointer;
|
|
4179
4179
|
z-index: 1;
|
|
4180
|
-
`,$k=({value:e,options:n,selectedIndex:r,selectOptions:s,onChange:c,onSelectChange:u,size:p="medium",variant:m="dark",searchPlaceholder:h="絞り込む",noResultsMessage:g="見つかりませんでした",disabled:f=!1,error:b=!1,placement:v,middleware:x})=>{const[y,w]=i(0),[C,E]=i(""),[I,k]=i(""),[M,$]=i(!1),[A,L]=i(!1),V=o(null);a((()=>{if(!window.ResizeObserver)return;if(!V.current)return;const e=new window.ResizeObserver((()=>{V.current&&w(V.current.offsetWidth)}));return e.observe(V.current),()=>{e.disconnect()}}),[]);const H=l((()=>{const e=I.trim();return""===e?n:n.filter((t=>t.toLowerCase().includes(e.toLowerCase())))}),[n,I]),
|
|
4180
|
+
`,$k=({value:e,options:n,selectedIndex:r,selectOptions:s,onChange:c,onSelectChange:u,size:p="medium",variant:m="dark",searchPlaceholder:h="絞り込む",noResultsMessage:g="見つかりませんでした",disabled:f=!1,error:b=!1,placement:v,middleware:x})=>{const[y,w]=i(0),[C,E]=i(""),[I,k]=i(""),[M,$]=i(!1),[A,L]=i(!1),V=o(null);a((()=>{if(!window.ResizeObserver)return;if(!V.current)return;const e=new window.ResizeObserver((()=>{V.current&&w(V.current.offsetWidth)}));return e.observe(V.current),()=>{e.disconnect()}}),[]);const H=l((()=>{const e=I.trim();return""===e?n:n.filter((t=>t.toLowerCase().includes(e.toLowerCase())))}),[n,I]),S=d((e=>{E(e.target.value),M||k(e.target.value)}),[M]),O=d((e=>{e.stopPropagation(),E(""),k("")}),[]),D=d((e=>{"Enter"!==e.key||k(C)}),[C]),R=d((e=>{L(e),e||(E(""),k(""))}),[]),z=d((e=>{c(e),L(!1)}),[c]),N=d((()=>{f||L(!A)}),[f,A]),T=d((e=>{f||R(e)}),[f,R]),Z=l((()=>t.createElement(kk,null,t.createElement(Ek,{autoFocus:!0,value:C,placeholder:h,disabled:f,onChange:S,onKeyDown:D,onCompositionStart:()=>$(!0),onCompositionEnd:()=>$(!1)}),C&&t.createElement(Mk,{type:"button","aria-label":"検索をリセット",onClick:O},t.createElement(le,{name:"close_circle",type:"fill",color:"currentColor"})))),[C,h,f,S,D,O]);return t.createElement(ok,{variant:m,size:p,selectedIndex:r,selectOptions:s,disabled:f,error:b,isOpen:A,onSelectChange:u},t.createElement(vk,{ref:V},t.createElement(Da,null,t.createElement(Oa,{open:A&&!f,minWidth:y,trigger:t.createElement(xk,{type:"button",$size:p,$variant:m,disabled:f,onClick:N},t.createElement(wk,{$size:p},e),t.createElement(Ck,null,t.createElement(le,{name:"arrow_down",color:"currentColor"}))),stickyHeader:Z,placement:v,middleware:x,onOpenChange:T},H.length>0?H.map((n=>t.createElement(Ro,{key:n,checked:n===e,disabled:f,onChange:()=>z(n)},n))):t.createElement(Ca,{message:g})))))},Ak=v.div`
|
|
4181
4181
|
display: flex;
|
|
4182
4182
|
align-items: center;
|
|
4183
4183
|
min-height: 100%;
|
|
@@ -4255,7 +4255,7 @@ object-assign
|
|
|
4255
4255
|
background-color: transparent;
|
|
4256
4256
|
pointer-events: none;
|
|
4257
4257
|
}
|
|
4258
|
-
`,
|
|
4258
|
+
`,Sk=v.div`
|
|
4259
4259
|
position: relative;
|
|
4260
4260
|
flex-grow: 1;
|
|
4261
4261
|
min-width: 100px;
|
|
@@ -4281,7 +4281,7 @@ object-assign
|
|
|
4281
4281
|
width: 20px;
|
|
4282
4282
|
color: ${({theme:e})=>e.palette.icon.line};
|
|
4283
4283
|
pointer-events: none;
|
|
4284
|
-
`;const
|
|
4284
|
+
`;const Ok=v.div`
|
|
4285
4285
|
display: grid;
|
|
4286
4286
|
grid-template:
|
|
4287
4287
|
"title title"
|
|
@@ -4309,7 +4309,7 @@ object-assign
|
|
|
4309
4309
|
"bottom";
|
|
4310
4310
|
gap: 16px;
|
|
4311
4311
|
}
|
|
4312
|
-
`,Dk=v((({className:e,children:n})=>t.createElement("div",{className:e},t.createElement(
|
|
4312
|
+
`,Dk=v((({className:e,children:n})=>t.createElement("div",{className:e},t.createElement(Ok,null,n))))`
|
|
4313
4313
|
container-type: inline-size;
|
|
4314
4314
|
position: absolute;
|
|
4315
4315
|
inset: 20px;
|
|
@@ -4469,7 +4469,7 @@ object-assign
|
|
|
4469
4469
|
padding: 16px 0 0;
|
|
4470
4470
|
border-top: 1px solid ${({theme:e})=>e.palette.neutral.softLight};
|
|
4471
4471
|
list-style: none;
|
|
4472
|
-
`,Jk=({isOpen:e,title:n,values:r,selectedIndex:s,selectOptions:c,onApply:u,onClose:p,menuIconSize:m})=>{const[h,g]=i(""),[f,b]=i(!1),[v,x]=i([]),[y,w]=i(0),[E,I]=i(!1),k=C(),M=d((e=>{const t=e.trim();""===t||v.includes(t)||x([...v,t]),g("")}),[v]),$=l((()=>c.map((e=>Object.assign(Object.assign({},e),{icon:t.cloneElement(e.icon,{size:m,color:k.palette.black})})))),[c,m,k.palette.black]),A=l((()=>$.reduce(((e,t)=>t.label.length>e.label.length?t:e),$[0])),[$]),L=o(null),V=d((e=>{w(e),I(!1)}),[]),H=d((()=>{var e;null===(e=L.current)||void 0===e||e.focus()}),[]),
|
|
4472
|
+
`,Jk=({isOpen:e,title:n,values:r,selectedIndex:s,selectOptions:c,onApply:u,onClose:p,menuIconSize:m})=>{const[h,g]=i(""),[f,b]=i(!1),[v,x]=i([]),[y,w]=i(0),[E,I]=i(!1),k=C(),M=d((e=>{const t=e.trim();""===t||v.includes(t)||x([...v,t]),g("")}),[v]),$=l((()=>c.map((e=>Object.assign(Object.assign({},e),{icon:t.cloneElement(e.icon,{size:m,color:k.palette.black})})))),[c,m,k.palette.black]),A=l((()=>$.reduce(((e,t)=>t.label.length>e.label.length?t:e),$[0])),[$]),L=o(null),V=d((e=>{w(e),I(!1)}),[]),H=d((()=>{var e;null===(e=L.current)||void 0===e||e.focus()}),[]),S=d((e=>{const t=[...v];t.splice(e,1),x(t)}),[v]),O=d((e=>{f||e.target instanceof HTMLInputElement&&("Backspace"!==e.key||0!==e.target.selectionStart?"Enter"===e.key&&M(e.target.value):x(v.slice(0,-1)))}),[v,f,M]),D=d((()=>{x([]),g(""),b(!1)}),[]),R=d((()=>{p()}),[p]),z=d((()=>{u(v,y),p()}),[v,y,u,p]),N=d((e=>{g(e.target.value)}),[]),T=d((()=>{b(!0)}),[]),Z=d((()=>{b(!1)}),[]),B=d((()=>{M(h)}),[h,M]),P=l((()=>v.map(((e,n)=>t.createElement(ik,{key:e,size:"medium",variant:"light",label:e,onRemove:()=>S(n)})))),[v,S]),_=l((()=>$.map((({label:e,icon:n},r)=>t.createElement(Ro,{key:e,prepend:n,checked:y===r,onChange:()=>V(r)},e)))),[$,y,V]),G=l((()=>t.createElement(t.Fragment,null,t.cloneElement($[y].icon,{size:m}),$[y].label)),[$,y,m]);return a((()=>{e&&(x(r),w(s))}),[e,s,r]),t.createElement(Yh,{isOpen:e,onClose:p},t.createElement(Lc,{in:e},t.createElement(Dk,null,t.createElement(Rk,null,n),t.createElement(zk,null,t.createElement(Tk,null,"条件"),t.createElement(Da,null,t.createElement(Oa,{open:E,trigger:t.createElement(Zk,null,t.createElement(Bk,{role:"presentation"},A.icon,A.label),t.createElement(Pk,null,G),t.createElement(_k,null,t.createElement(le,{name:"arrow_down",color:"currentColor"}))),onOpenChange:I},_))),t.createElement(Nk,null,t.createElement(Tk,null,"値"),t.createElement(Gk,null,t.createElement(jk,{type:"button",onClick:H}),P,t.createElement(Fk,null,t.createElement("input",{ref:L,type:"text","aria-label":"フィルターする値",value:h,onChange:N,onCompositionStart:T,onCompositionEnd:Z,onKeyDown:O,onBlur:B}),t.createElement(Yk,null,h)),t.createElement(Wk,{type:"button",onClick:D},t.createElement(le,{name:"close_circle",type:"fill",color:"currentColor"})))),t.createElement(Xk,null,t.createElement("li",null,t.createElement(cl,{size:"small",color:"clear",onClick:R},"キャンセル")),t.createElement("li",null,t.createElement(cl,{size:"small",onClick:z},"適用"))))))},Uk=({title:e,values:n,selectedIndex:r,selectOptions:s,onChange:u,onSelectChange:p,size:m="medium",variant:h="dark",tagVariant:g,menuIconSize:f=22,disabled:b=!1,error:v=!1})=>{const{isSmall:x}=c(rk),[y,w]=i(""),[C,E]=i(!1),[I,k]=i(!1),[M,$]=i(!1),[A,L]=i(!1),V=o(null),H=l((()=>g||("light"===h?"dark":"light")),[h,g]),S=o(null),O=o(null),D=d((()=>{S.current&&E(S.current.clientWidth<S.current.scrollWidth)}),[E]),R=d((()=>{if(!S.current||!V.current)return;const e=V.current.getBoundingClientRect(),t=S.current.getBoundingClientRect(),n=Number(window.getComputedStyle(S.current).paddingRight.replace("px",""));return t.right-n-e.left}),[]),z=d((e=>{const t=e.trim();""!==t?n.includes(t)?w(""):(u([...n,t],r),w(""),requestAnimationFrame((()=>{D(),R()}))):w("")}),[n,u,r,D,R]),N=d((e=>{if(!I&&e.target instanceof HTMLInputElement)return"Backspace"===e.key&&0===e.target.selectionStart?(u(n.slice(0,-1),r),void requestAnimationFrame((()=>{D(),R()}))):void("Enter"===e.key&&z(e.target.value))}),[I,u,n,r,D,R,z]),T=d((e=>{const t=[...n];t.splice(e,1),u(t,r),requestAnimationFrame((()=>{D(),R()}))}),[n,u,r]),Z=d(((e,t)=>{u(e,t),p(t),requestAnimationFrame((()=>{D(),R()}))}),[u,p]),B=d((e=>{w(e.target.value)}),[]),P=d((()=>{k(!0)}),[]),_=d((()=>{k(!1)}),[]),G=d((()=>{$(!0)}),[]),j=d((()=>{$(!1)}),[]),F=d((()=>{b||L(!0)}),[b]),Y=d((()=>{L(!1)}),[]),W=d((()=>{Y(),z(y)}),[Y,y,z]);a((()=>{if(!window.ResizeObserver)return;if(!S.current)return;const e=new window.ResizeObserver((()=>{S.current&&(D(),R())}));return e.observe(S.current),()=>{e.disconnect()}}),[D,R]);const X=l((()=>n.map(((e,n)=>t.createElement(ik,{key:e,size:m,variant:H,label:e,onRemove:()=>T(n)})))),[n,m,H,T]),J={small:18,medium:20,large:22}[m];return t.createElement(t.Fragment,null,t.createElement(ok,{variant:h,size:m,selectedIndex:r,selectOptions:s,disabled:b,error:v,isOpen:A,onSelectChange:p},t.createElement(Ak,{ref:S,$size:m,$variant:h},t.createElement(Lk,{ref:O},X,t.createElement(Sk,null,t.createElement("input",{ref:V,"aria-label":"フィルターする値",disabled:b,type:"text",value:y,enterKeyHint:"enter",onChange:B,onCompositionEnd:_,onCompositionStart:P,onFocus:F,onKeyDown:N,onBlur:W})))),t.createElement(Hk,{$size:m,$variant:h,"aria-label":"フィルター入力パネルを開く","data-overflowing":C,type:"button",disabled:b,onClick:G},t.createElement(le,{name:x?"filter":"expand_diagonal_s_fill",color:"currentColor",size:J}))),t.createElement(Jk,{isOpen:M,menuIconSize:f,selectOptions:s,selectedIndex:r,title:e,values:n,onApply:Z,onClose:j}))},Qk=v.div`
|
|
4473
4473
|
position: fixed;
|
|
4474
4474
|
${({isOpen:e,height:t,offset:n,placement:r})=>`${r}: ${e?`${n}px`:""+(0!==t?`calc(${-t}px - 10px)`:"-100vh")}`};
|
|
4475
4475
|
width: 100%;
|
|
@@ -4705,9 +4705,9 @@ object-assign
|
|
|
4705
4705
|
padding: ${({theme:e})=>2*e.spacing}px
|
|
4706
4706
|
${({theme:e})=>3*e.spacing}px;
|
|
4707
4707
|
border-bottom: 1px solid ${({theme:e})=>e.palette.neutral.lighter};
|
|
4708
|
-
`,OM=v.div`
|
|
4709
|
-
cursor: pointer;
|
|
4710
4708
|
`,SM=v.div`
|
|
4709
|
+
cursor: pointer;
|
|
4710
|
+
`,OM=v.div`
|
|
4711
4711
|
padding: ${({theme:e})=>2*e.spacing}px
|
|
4712
4712
|
${({theme:e})=>3*e.spacing}px;
|
|
4713
4713
|
`,DM=v.div`
|
|
@@ -4732,7 +4732,7 @@ object-assign
|
|
|
4732
4732
|
left: 10px;
|
|
4733
4733
|
`,ZM=v(NM)`
|
|
4734
4734
|
right: 10px;
|
|
4735
|
-
`,BM=e.forwardRef((function(t,n){var{errorText:r,icon:i,type:o,inputRef:a}=t,l=D(t,["errorText","icon","type","inputRef"]);Ae("TextField","TextField は非推奨です。代わりに Input(+必要なら ErrorText)を使用してください。");const[s,c]=e.useState(!1),d=ne(),u=()=>{c(!s)};return e.createElement(RM,{ref:n},e.createElement(zM,{hasLeftIcon:null!=i,hasRightIcon:"password"===o},null!=i&&e.createElement(TM,{onClick:u},e.createElement(le,{name:i,size:"md",color:d.palette.neutral.base})),e.createElement(va,Object.assign({ref:a},l,{error:!!r,type:s?"text":o})),"password"===o&&e.createElement(ZM,{onClick:u},e.createElement(le,{name:s?"eye":"eye_off",size:"md",color:d.palette.black}))),r&&e.createElement(Ua,{pt:1},e.createElement(nd,null,r)))})),PM=t=>{var n,r;const i=Cd({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:h=""}=i,g=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,k]=e.useState(""),M=null==l?void 0:l.filters.find((e=>e.filterName===(null==w?void 0:w.filterName))),$=null==l?void 0:l.filters.map((e=>({label:e.filterName,value:e.filterName}))),A=e=>{k(""),y(e.target.value)},L=e=>{e.target.value||k(c)},V=e=>{y(null==e?void 0:e.value)};return e.createElement(VM,{width:u},e.createElement(HM,null,e.createElement(ke,{weight:"bold",size:"xxl"},null==l?void 0:l.categoryName),e.createElement(Ua,{pr:2}),e.createElement(
|
|
4735
|
+
`,BM=e.forwardRef((function(t,n){var{errorText:r,icon:i,type:o,inputRef:a}=t,l=D(t,["errorText","icon","type","inputRef"]);Ae("TextField","TextField は非推奨です。代わりに Input(+必要なら ErrorText)を使用してください。");const[s,c]=e.useState(!1),d=ne(),u=()=>{c(!s)};return e.createElement(RM,{ref:n},e.createElement(zM,{hasLeftIcon:null!=i,hasRightIcon:"password"===o},null!=i&&e.createElement(TM,{onClick:u},e.createElement(le,{name:i,size:"md",color:d.palette.neutral.base})),e.createElement(va,Object.assign({ref:a},l,{error:!!r,type:s?"text":o})),"password"===o&&e.createElement(ZM,{onClick:u},e.createElement(le,{name:s?"eye":"eye_off",size:"md",color:d.palette.black}))),r&&e.createElement(Ua,{pt:1},e.createElement(nd,null,r)))})),PM=t=>{var n,r;const i=Cd({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:h=""}=i,g=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,k]=e.useState(""),M=null==l?void 0:l.filters.find((e=>e.filterName===(null==w?void 0:w.filterName))),$=null==l?void 0:l.filters.map((e=>({label:e.filterName,value:e.filterName}))),A=e=>{k(""),y(e.target.value)},L=e=>{e.target.value||k(c)},V=e=>{y(null==e?void 0:e.value)};return e.createElement(VM,{width:u},e.createElement(HM,null,e.createElement(ke,{weight:"bold",size:"xxl"},null==l?void 0:l.categoryName),e.createElement(Ua,{pr:2}),e.createElement(SM,{key:"close",onClick:o},e.createElement(le,{name:"close",size:"md",color:g.palette.black}))),e.createElement(OM,null,f&&e.createElement(e.Fragment,null,e.createElement(ke,{weight:"bold",size:"lg"},(null==l?void 0:l.sectionTitle)||m),e.createElement(Ua,{py:.5}),e.createElement(ly,{maxMenuHeight:250,options:(e=>{const t=p.map((e=>e.filterName));return null==e?void 0:e.filter((e=>!t.includes(e.label)))})($),autoFocus:!0,onChange:e=>{if(k(""),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(Ua,{py:1})),w&&e.createElement("div",null,e.createElement(ke,{weight:"bold",size:"lg"},(null==M?void 0:M.conditionTitle)||h),e.createElement(Ua,{py:.5}),M&&(t=>{switch(null==t?void 0:t.control.type){case"text":return e.createElement(BM,{placeholder:d,icon:"search",name:"condition",errorText:I,autoFocus:!0,onChange:A,onBlur:L});case"select":const n=null==t?void 0:t.control.options;return e.createElement(ly,{options:n.map((e=>({label:e,value:e}))),autoFocus:!0,onChange:V});case"boolean":return e.createElement("div",null,e.createElement(ky,{name:"condition",value:"true",autoFocus:!0,onChange:A,onBlur:L},"true"),e.createElement("br",null),e.createElement(ky,{name:"condition",value:"false",autoFocus:!0,onChange:A,onBlur:L},"false"))}})(M),e.createElement(Ua,{py:1})),e.createElement(eg,{orientation:"horizontal",color:g.palette.neutral.softLight,my:2}),e.createElement(DM,null,e.createElement(cl,{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))))},_M=v(lm)`
|
|
4736
4736
|
box-shadow: 0px 0px 16px
|
|
4737
4737
|
${({theme:e})=>zo(e.palette.neutral.lighter,.4)};
|
|
4738
4738
|
min-width: 300px;
|
|
@@ -4903,7 +4903,7 @@ object-assign
|
|
|
4903
4903
|
`,V$=t.forwardRef((function({children:e},n){const{isFixed:r}=t.useContext(h$);return t.createElement(L$,{ref:n,isFixed:r},e)})),H$=v.span`
|
|
4904
4904
|
display: inline-flex;
|
|
4905
4905
|
line-height: 0;
|
|
4906
|
-
`,
|
|
4906
|
+
`,S$=t.forwardRef((function({labelFixtureTooltip:e=(e=>(e?"Unfix":"Fix")+" the side menu")},n){const r=ne(),{isOpen:i,isFixed:o,isMobile:a,handleFixed:l,handleUnFixed:s,slotNotificationCount:c}=t.useContext(h$),d=e(o),u=!a&&!i&&!o&&c>0,p=t.useCallback((()=>{o?null==s||s():null==l||l()}),[o,l,s]),m=t.createElement(cl,{ref:n,isQuiet:!0,color:"clear",size:"medium","aria-label":d,icon:t.createElement(le,{name:o?"sidebar_fold":"sidebar_unfold",color:"currentColor"}),onClick:p});return t.createElement(Oc,{key:o?"fixed":"unfixed",content:d,positionPriority:["right"],offset:[0,2.5*r.spacing],enterDelay:d$},t.createElement(H$,null,u?t.createElement(C$,{variant:"dot",dotSize:"small",position:"top-right",overlayOffsetPercent:10},m):m))})),O$=v.div`
|
|
4907
4907
|
cursor: pointer;
|
|
4908
4908
|
display: flex;
|
|
4909
4909
|
align-items: center;
|
|
@@ -4964,7 +4964,7 @@ object-assign
|
|
|
4964
4964
|
${({invisible:e})=>e&&y`
|
|
4965
4965
|
display: none;
|
|
4966
4966
|
`}
|
|
4967
|
-
`,N$=({notificationCount:t=0,invisible:n=!1,style:r})=>{const i=t>=100?"99+":t;return e.createElement(z$,{invisible:n,style:r},i)},T$=e.forwardRef((function(t,n){var{title:r,isActive:i=!1,iconName:o,notificationCount:a=0,badge:l}=t,s=D(t,["title","isActive","iconName","notificationCount","badge"]);const c=ne(),{isOpen:d,isMobile:u,isMobileMenuOpen:p}=e.useContext(h$),m=void 0!==l,h=a>0,g=u?p:d;return e.createElement(
|
|
4967
|
+
`,N$=({notificationCount:t=0,invisible:n=!1,style:r})=>{const i=t>=100?"99+":t;return e.createElement(z$,{invisible:n,style:r},i)},T$=e.forwardRef((function(t,n){var{title:r,isActive:i=!1,iconName:o,notificationCount:a=0,badge:l}=t,s=D(t,["title","isActive","iconName","notificationCount","badge"]);const c=ne(),{isOpen:d,isMobile:u,isMobileMenuOpen:p}=e.useContext(h$),m=void 0!==l,h=a>0,g=u?p:d;return e.createElement(O$,Object.assign({ref:n,isActive:i,$isMenuExpanded:g,"aria-current":i?"page":void 0},s),h?e.createElement(C$,{badgeContent:a,position:"top-left",invisible:g},e.createElement(le,{name:o,size:"lg",type:i?"fill":"line",color:i?"active":c.palette.black})):e.createElement(le,{name:o,size:"lg",type:i?"fill":"line",color:i?"active":c.palette.black}),e.createElement(D$,{isOpen:u?p:d},e.createElement(R$,{component:"span",color:i?"primary":"initial",weight:"bold",size:"sm"},r)),m&&(u?p:d)&&e.createElement(jd,Object.assign({},l,{size:l.size||"small"})),h&&e.createElement(N$,{notificationCount:a,invisible:0===a||!(u?p:d),style:{marginLeft:m&&(u?p:d)?"4px":"0"}}))})),Z$=v.div`
|
|
4968
4968
|
cursor: pointer;
|
|
4969
4969
|
display: flex;
|
|
4970
4970
|
align-items: center;
|
|
@@ -5153,7 +5153,7 @@ object-assign
|
|
|
5153
5153
|
width: 100%;
|
|
5154
5154
|
}
|
|
5155
5155
|
`}
|
|
5156
|
-
`,nA=t.forwardRef((function({children:e,actions:n,mobileLeadingActions:r},i){const{isOpen:o,isFixed:a,isMobile:l,handleMobileMenuToggle:s}=m$(),c=l||o||a,d=t.Children.count(e)>0,u=t.createElement(cl,{color:"clear",size:"medium","aria-label":"メニューを閉じる",icon:t.createElement(le,{name:"close",color:"currentColor"}),onClick:s}),p=l?u:null!=n?n:t.createElement(
|
|
5156
|
+
`,nA=t.forwardRef((function({children:e,actions:n,mobileLeadingActions:r},i){const{isOpen:o,isFixed:a,isMobile:l,handleMobileMenuToggle:s}=m$(),c=l||o||a,d=t.Children.count(e)>0,u=t.createElement(cl,{color:"clear",size:"medium","aria-label":"メニューを閉じる",icon:t.createElement(le,{name:"close",color:"currentColor"}),onClick:s}),p=l?u:null!=n?n:t.createElement(S$,null),m=t.createElement(K$,{$showCustom:c,"data-testid":"navigation-rail-slot-custom"},e),h=null!=r;return l?t.createElement(X$,{ref:i,"data-testid":"navigation-rail-slot",$showCustom:c},t.createElement(J$,{$showCustom:c,$hasLeadingActions:h,"data-testid":"navigation-rail-slot-mobile-close"},h?t.createElement(U$,{"data-testid":"navigation-rail-slot-mobile-leading"},r):null,t.createElement(Q$,null,u)),d?t.createElement(q$,{$showCustom:c},m):null):t.createElement(q$,{ref:i,"data-testid":"navigation-rail-slot",$showCustom:c},m,t.createElement(eA,{$showCustom:c},p))})),rA=t.forwardRef((function({children:e,visibility:n="all"},r){return t.createElement(tA,{ref:r,$visibility:n,$passthrough:"all"===n},e)})),iA="undefined"!=typeof window?t.useLayoutEffect:t.useEffect,oA=t.forwardRef((function(e,n){const{registerMobileMenuButton:r,unregisterMobileMenuButton:i}=m$();return iA((()=>(null==r||r(),()=>null==i?void 0:i())),[r,i]),t.createElement(E$,{ref:n})}));function aA(e){let n=!1;return t.Children.forEach(e,(e=>{!n&&t.isValidElement(e)&&(e.type!==nA?e.type===t.Fragment&&(n=aA(e.props.children)):n=!0)})),n}const lA=t.forwardRef((function({children:e},n){const{isOpen:r,isFixed:i,handleOpen:o,handleClose:a,isMobile:l,isMobileMenuOpen:s,handleMobileMenuToggle:c}=t.useContext(h$),d=aA(e),u=l&&!d?t.createElement(nA,null):null;return t.createElement(t.Fragment,null,t.createElement(p$,{isVisible:l&&s,"data-testid":"navigation-rail-overlay",onClick:c}),t.createElement(u$,{ref:n,isOpen:r,isFixed:i,isMobile:l,isMobileMenuOpen:s,onMouseEnter:()=>{l||null==o||o()},onMouseLeave:()=>{l||null==a||a()}},u,e))}));lA.Container=k$,lA.Header=M$,lA.Content=$$,lA.Footer=A$,lA.Menu=T$,lA.ExpansionMenu=j$,lA.ExpansionMenuItem=W$,lA.Fixture=S$,lA.MainContent=V$,lA.Slot=nA,lA.SlotContent=rA,lA.MobileMenuButton=oA;const sA=e.forwardRef((function(t,n){var{title:r,description:i,slotContent:o,slotExpansion:a="whenChecked",disabled:l,error:s,checked:c,inputRef:d}=t,u=D(t,["title","description","slotContent","slotExpansion","disabled","error","checked","inputRef"]);const p=!!c,{controlWrapRef:m,assignInputRef:h,handleHeaderClick:g}=Sh(l,d),f=e.createElement(Lh,null,e.createElement(Ah,{ref:m},e.createElement(ky,Object.assign({},u,{checked:c,disabled:l,error:s,inputRef:h}),r)),Oh(i)?e.createElement(Vh,{$disabled:!!l},i):null);return e.createElement(Hh,{ref:n,checked:p,disabled:l,header:f,slot:o,slotExpansion:a,onHeaderClick:g})})),cA=new Set(["height","maxHeight","minHeight"]),dA=v.div.withConfig({shouldForwardProp:e=>!cA.has(e)})`
|
|
5157
5157
|
${({height:e,maxHeight:t,minHeight:n})=>Xh({height:e,maxHeight:t,minHeight:n})}
|
|
5158
5158
|
`,uA=e.forwardRef((function(t,n){var{height:r="auto",maxHeight:i="none",minHeight:o="none",children:a}=t,l=D(t,["height","maxHeight","minHeight","children"]);return e.createElement(dA,Object.assign({height:r,maxHeight:i,minHeight:o,tabIndex:0},l,{ref:n}),a)})),pA="24px",mA=v.div`
|
|
5159
5159
|
flex-direction: row;
|
|
@@ -5249,7 +5249,7 @@ object-assign
|
|
|
5249
5249
|
|
|
5250
5250
|
width: 8px;
|
|
5251
5251
|
height: 8px;
|
|
5252
|
-
`,yA=(e,t,n)=>Math.max(t,Math.min(n,e)),wA=(e,t,n,r)=>void 0===e?r?[t,n]:t:Array.isArray(e)?[yA(e[0],t,n),yA(e[1],t,n)]:yA(e,t,n),CA=(e,t,n)=>(e-t)/(n-t)*100,EA=(e,t,n,r,i)=>{const o=n+(e-t.left)/t.width*100/100*(r-n),a=Math.round(o/i)*i;return yA(a,n,r)},IA=(e,t)=>{if(1===t.length)return 0;const[n,r]=t,i=Math.abs(e-n),o=Math.abs(e-r);if(i!==o)return i<o?0:1;return e>=(n+r)/2?1:0},kA=(e,t,n,r,i,o,a)=>{const l="PageUp"===t||"PageDown"===t?10*i:i;let s;if(o&&Array.isArray(e)){const i=null!=a?a:0,o=e[i];switch(t){case"ArrowLeft":case"ArrowDown":case"PageDown":s=yA(o-l,n,r);break;case"ArrowRight":case"ArrowUp":case"PageUp":s=yA(o+l,n,r);break;case"Home":s=n;break;case"End":s=r;break;default:return e}const c=[...e];return c[i]=s,0===i?c[0]=Math.min(s,c[1]):c[1]=Math.max(s,c[0]),c}{const i=Array.isArray(e)?e[0]:e;switch(t){case"ArrowLeft":case"ArrowDown":case"PageDown":s=yA(i-l,n,r);break;case"ArrowRight":case"ArrowUp":case"PageUp":s=yA(i+l,n,r);break;case"Home":s=n;break;case"End":s=r;break;default:return e}return s}},MA=()=>{document.body.style.userSelect="none"},$A=()=>{document.body.style.userSelect=""},AA=e=>{e.preventDefault()};function LA({value:t,defaultValue:n,onChange:r,min:i,max:o,step:a,disabled:l=!1}){const s=e.useCallback((e=>{const r=Array.isArray(t)||Array.isArray(n);return wA(e,i,o,r)}),[i,o,t,n]),[c,d]=e.useState(s(n)),[u,p]=e.useState(!1),[m,h]=e.useState(null),[g,f]=e.useState(new Map),[b,v]=e.useState(new Map),x=e.useRef(null),y=e.useRef(null);e.useEffect((()=>{if(void 0===t&&void 0!==n){const e=s(n);d(e)}}),[t,n,s]);const w=void 0!==t?t:c,C=e.useCallback((e=>{r?r(e):d(e)}),[r]),E=e.useCallback((e=>{if(!x.current)return i;const t=x.current.getBoundingClientRect();return EA(e,t,i,o,a)}),[i,o,a]),I=e.useCallback((e=>{if(l)return;e.preventDefault(),p(!0),MA(),document.addEventListener("wheel",AA,{passive:!1}),document.addEventListener("touchmove",AA,{passive:!1});const t=E(e.clientX);if(Array.isArray(w)){const e=IA(t,w);h(e);const n=[...w];n[e]=t,C(n)}else h(0),C(t)}),[l,E,w,C]),k=e.useCallback((e=>{if(!u||l)return;const t=E(e.clientX);if(Array.isArray(w)&&null!==m){const e=[...w];e[m]=t,0===m?e[0]=Math.min(t,e[1]):e[1]=Math.max(t,e[0]),C(e)}else Array.isArray(w)||C(t)}),[u,l,E,w,m,C]),M=e.useCallback((()=>{p(!1),h(null),$A(),document.removeEventListener("wheel",AA),document.removeEventListener("touchmove",AA)}),[]),$=e.useCallback((e=>{if(l)return;e.preventDefault(),p(!0),MA(),document.addEventListener("wheel",AA,{passive:!1}),document.addEventListener("touchmove",AA,{passive:!1});const t=new Map,n=new Map;Array.from(e.changedTouches).forEach((e=>{const r=E(e.clientX);if(t.set(e.identifier,e),Array.isArray(w)){const t=IA(r,w);n.set(e.identifier,t)}else n.set(e.identifier,0)})),f(t),v(n)}),[l,E,w]),A=e.useCallback((e=>{u&&!l&&(e.preventDefault(),Array.from(e.changedTouches).forEach((e=>{const t=b.get(e.identifier);if(void 0===t)return;const n=E(e.clientX);if(Array.isArray(w)){const e=[...w];e[t]=n,0===t?e[0]=Math.min(n,e[1]):e[1]=Math.max(n,e[0]),C(e)}else C(n)})))}),[u,l,E,w,b,C]),L=e.useCallback((e=>{const t=new Map(g),n=new Map(b);Array.from(e.changedTouches).forEach((e=>{t.delete(e.identifier),n.delete(e.identifier)})),f(t),v(n),0===t.size&&(p(!1),$A(),document.removeEventListener("wheel",AA),document.removeEventListener("touchmove",AA))}),[g,b]);return{currentValue:w,isDragging:u,trackRef:x,thumbRef:y,handleChange:C,handleMouseDown:I,handleMouseMove:k,handleMouseUp:M,handleTouchStart:$,handleTouchMove:A,handleTouchEnd:L}}function VA({showScale:t,min:n,max:r,step:i,currentValue:o}){const a=e.useCallback((()=>{if(!t)return[];const e=[];for(let t=n;t<=r;t+=i)e.push(t);return e}),[t,n,r,i]),l=e.useCallback((e=>Array.isArray(o)?e>=o[0]&&e<=o[1]:e<=o),[o]),s=e.useCallback((()=>{if(!t)return null;const i=a();return e.createElement(bA,{},i.map((t=>e.createElement(vA,{key:t,percentage:(t-n)/(r-n)*100},e.createElement(xA,{isOnFill:l(t)})))))}),[t,a,n,r,l]);return{getScaleValues:a,isScaleOnFill:l,renderScale:s}}let HA=0;const
|
|
5252
|
+
`,yA=(e,t,n)=>Math.max(t,Math.min(n,e)),wA=(e,t,n,r)=>void 0===e?r?[t,n]:t:Array.isArray(e)?[yA(e[0],t,n),yA(e[1],t,n)]:yA(e,t,n),CA=(e,t,n)=>(e-t)/(n-t)*100,EA=(e,t,n,r,i)=>{const o=n+(e-t.left)/t.width*100/100*(r-n),a=Math.round(o/i)*i;return yA(a,n,r)},IA=(e,t)=>{if(1===t.length)return 0;const[n,r]=t,i=Math.abs(e-n),o=Math.abs(e-r);if(i!==o)return i<o?0:1;return e>=(n+r)/2?1:0},kA=(e,t,n,r,i,o,a)=>{const l="PageUp"===t||"PageDown"===t?10*i:i;let s;if(o&&Array.isArray(e)){const i=null!=a?a:0,o=e[i];switch(t){case"ArrowLeft":case"ArrowDown":case"PageDown":s=yA(o-l,n,r);break;case"ArrowRight":case"ArrowUp":case"PageUp":s=yA(o+l,n,r);break;case"Home":s=n;break;case"End":s=r;break;default:return e}const c=[...e];return c[i]=s,0===i?c[0]=Math.min(s,c[1]):c[1]=Math.max(s,c[0]),c}{const i=Array.isArray(e)?e[0]:e;switch(t){case"ArrowLeft":case"ArrowDown":case"PageDown":s=yA(i-l,n,r);break;case"ArrowRight":case"ArrowUp":case"PageUp":s=yA(i+l,n,r);break;case"Home":s=n;break;case"End":s=r;break;default:return e}return s}},MA=()=>{document.body.style.userSelect="none"},$A=()=>{document.body.style.userSelect=""},AA=e=>{e.preventDefault()};function LA({value:t,defaultValue:n,onChange:r,min:i,max:o,step:a,disabled:l=!1}){const s=e.useCallback((e=>{const r=Array.isArray(t)||Array.isArray(n);return wA(e,i,o,r)}),[i,o,t,n]),[c,d]=e.useState(s(n)),[u,p]=e.useState(!1),[m,h]=e.useState(null),[g,f]=e.useState(new Map),[b,v]=e.useState(new Map),x=e.useRef(null),y=e.useRef(null);e.useEffect((()=>{if(void 0===t&&void 0!==n){const e=s(n);d(e)}}),[t,n,s]);const w=void 0!==t?t:c,C=e.useCallback((e=>{r?r(e):d(e)}),[r]),E=e.useCallback((e=>{if(!x.current)return i;const t=x.current.getBoundingClientRect();return EA(e,t,i,o,a)}),[i,o,a]),I=e.useCallback((e=>{if(l)return;e.preventDefault(),p(!0),MA(),document.addEventListener("wheel",AA,{passive:!1}),document.addEventListener("touchmove",AA,{passive:!1});const t=E(e.clientX);if(Array.isArray(w)){const e=IA(t,w);h(e);const n=[...w];n[e]=t,C(n)}else h(0),C(t)}),[l,E,w,C]),k=e.useCallback((e=>{if(!u||l)return;const t=E(e.clientX);if(Array.isArray(w)&&null!==m){const e=[...w];e[m]=t,0===m?e[0]=Math.min(t,e[1]):e[1]=Math.max(t,e[0]),C(e)}else Array.isArray(w)||C(t)}),[u,l,E,w,m,C]),M=e.useCallback((()=>{p(!1),h(null),$A(),document.removeEventListener("wheel",AA),document.removeEventListener("touchmove",AA)}),[]),$=e.useCallback((e=>{if(l)return;e.preventDefault(),p(!0),MA(),document.addEventListener("wheel",AA,{passive:!1}),document.addEventListener("touchmove",AA,{passive:!1});const t=new Map,n=new Map;Array.from(e.changedTouches).forEach((e=>{const r=E(e.clientX);if(t.set(e.identifier,e),Array.isArray(w)){const t=IA(r,w);n.set(e.identifier,t)}else n.set(e.identifier,0)})),f(t),v(n)}),[l,E,w]),A=e.useCallback((e=>{u&&!l&&(e.preventDefault(),Array.from(e.changedTouches).forEach((e=>{const t=b.get(e.identifier);if(void 0===t)return;const n=E(e.clientX);if(Array.isArray(w)){const e=[...w];e[t]=n,0===t?e[0]=Math.min(n,e[1]):e[1]=Math.max(n,e[0]),C(e)}else C(n)})))}),[u,l,E,w,b,C]),L=e.useCallback((e=>{const t=new Map(g),n=new Map(b);Array.from(e.changedTouches).forEach((e=>{t.delete(e.identifier),n.delete(e.identifier)})),f(t),v(n),0===t.size&&(p(!1),$A(),document.removeEventListener("wheel",AA),document.removeEventListener("touchmove",AA))}),[g,b]);return{currentValue:w,isDragging:u,trackRef:x,thumbRef:y,handleChange:C,handleMouseDown:I,handleMouseMove:k,handleMouseUp:M,handleTouchStart:$,handleTouchMove:A,handleTouchEnd:L}}function VA({showScale:t,min:n,max:r,step:i,currentValue:o}){const a=e.useCallback((()=>{if(!t)return[];const e=[];for(let t=n;t<=r;t+=i)e.push(t);return e}),[t,n,r,i]),l=e.useCallback((e=>Array.isArray(o)?e>=o[0]&&e<=o[1]:e<=o),[o]),s=e.useCallback((()=>{if(!t)return null;const i=a();return e.createElement(bA,{},i.map((t=>e.createElement(vA,{key:t,percentage:(t-n)/(r-n)*100},e.createElement(xA,{isOnFill:l(t)})))))}),[t,a,n,r,l]);return{getScaleValues:a,isScaleOnFill:l,renderScale:s}}let HA=0;const SA={min:0,max:100,step:1,disabled:!1,showScale:!1},OA=e.forwardRef((function(t,n){var{value:r,defaultValue:i,onChange:o,min:a=SA.min,max:l=SA.max,step:s=SA.step,disabled:c=SA.disabled,showScale:d=SA.showScale,id:u,className:p,style:m,"aria-label":h,"aria-labelledby":g,"aria-describedby":f}=t,b=D(t,["value","defaultValue","onChange","min","max","step","disabled","showScale","id","className","style","aria-label","aria-labelledby","aria-describedby"]);const v=ne(),x=e.useId(),y=e.useMemo((()=>"slider-"+ ++HA),[]),w=u||x||y,{currentValue:C,isDragging:E,trackRef:I,thumbRef:k,handleChange:M,handleMouseDown:$,handleMouseMove:A,handleMouseUp:L,handleTouchStart:V,handleTouchMove:H,handleTouchEnd:S}=LA({value:r,defaultValue:i,onChange:o,min:a,max:l,step:s,disabled:c}),{renderScale:O}=VA({showScale:d,min:a,max:l,step:s,currentValue:C}),R=e.useCallback((e=>CA(e,a,l)),[a,l]),z=e.useCallback((e=>{if(c)return;const t=Array.isArray(C),n=kA(C,e.key,a,l,s,t,null);n!==C&&(e.preventDefault(),M(n))}),[c,C,a,l,s,M]),N=e.useCallback((e=>{const t=parseFloat(e.target.value);if(Array.isArray(C)){const e=[...C];e[0]=t,M(e)}else M(t)}),[C,M]),T=e.useCallback((e=>{if(!Array.isArray(C))return;const t=parseFloat(e.target.value),n=[...C];n[0]=Math.min(t,n[1]),M(n)}),[C,M]),Z=e.useCallback((e=>{if(!Array.isArray(C))return;const t=parseFloat(e.target.value),n=[...C];n[1]=Math.max(t,n[0]),M(n)}),[C,M]);return e.useEffect((()=>{if(E){document.addEventListener("mousemove",A),document.addEventListener("mouseup",L),document.addEventListener("touchmove",H),document.addEventListener("touchend",S);const e=e=>e.preventDefault();return document.addEventListener("contextmenu",e),()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",L),document.removeEventListener("touchmove",H),document.removeEventListener("touchend",S),document.removeEventListener("contextmenu",e)}}}),[E,A,L,H,S]),e.createElement(mA,Object.assign({ref:n,theme:v,disabled:c,className:p,style:m},b),e.createElement(hA,{ref:I,id:w,tabIndex:c?-1:0,role:"slider","aria-valuemin":a,"aria-valuemax":l,"aria-valuenow":Array.isArray(C)?C[0]:C,"aria-valuetext":Array.isArray(C)?`${C[0]} to ${C[1]}`:void 0,"aria-disabled":c,"aria-label":h,"aria-labelledby":g,"aria-describedby":f,onMouseDown:$,onTouchStart:V,onKeyDown:z},Array.isArray(C)?e.createElement(e.Fragment,null,e.createElement(gA,{percentage:R(C[1])-R(C[0]),isDragging:E,startPercentage:R(C[0]),disabled:c}),e.createElement(fA,{ref:k,percentage:R(C[0]),isDragging:E,disabled:c}),e.createElement(fA,{percentage:R(C[1]),isDragging:E,disabled:c})):e.createElement(e.Fragment,null,e.createElement(gA,{percentage:R(C),isDragging:E,disabled:c}),e.createElement(fA,{ref:k,percentage:R(C),isDragging:E,disabled:c})),O()),Array.isArray(C)?e.createElement(e.Fragment,null,e.createElement("input",{type:"range",min:a,max:l,step:s,value:C[0],style:{position:"absolute",opacity:0,pointerEvents:"none",width:"1px",height:"1px",margin:"-1px",padding:0,border:"none",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap"},"aria-label":"Slider minimum value","aria-labelledby":g,"aria-describedby":f,disabled:c,onChange:T}),e.createElement("input",{type:"range",min:a,max:l,step:s,value:C[1],style:{position:"absolute",opacity:0,pointerEvents:"none",width:"1px",height:"1px",margin:"-1px",padding:0,border:"none",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap"},"aria-label":"Slider maximum value","aria-labelledby":g,"aria-describedby":f,disabled:c,onChange:Z})):e.createElement("input",{type:"range",min:a,max:l,step:s,value:C,style:{position:"absolute",opacity:0,pointerEvents:"none",width:"1px",height:"1px",margin:"-1px",padding:0,border:"none",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap"},"aria-label":"Slider input","aria-labelledby":g,"aria-describedby":f,disabled:c,onChange:N}))})),DA=s(null),RA=()=>{const e=c(DA);if(!e)throw new Error("SliderField components must be used within a SliderField");return e},zA=({children:e})=>{const n=r(),i={fieldId:n,sliderId:`${n}-slider`,outputId:`${n}-output`};return t.createElement(DA.Provider,{value:i},e)};zA.Slider=e=>{const{sliderId:n,outputId:r}=RA(),i=e.id||n,o=e["aria-describedby"]||r;return t.createElement(OA,Object.assign({},e,{id:i,"aria-describedby":o}))},zA.Output=e=>{var{children:n,id:r}=e,i=D(e,["children","id"]);const{outputId:o}=RA();return t.createElement("div",Object.assign({},i,{id:r||o}),n)};const NA=e=>{switch(e){case"down":default:return"translateY(100vh)";case"up":return"translateY(-100vh)";case"right":return"translateX(100vw)";case"left":return"translateX(-100vw)"}},TA="slide-transition",ZA=v(uc)`
|
|
5253
5253
|
&.${TA}-enter, &.${TA}-appear {
|
|
5254
5254
|
transform: ${({direction:e})=>NA(e)};
|
|
5255
5255
|
}
|
|
@@ -5360,7 +5360,7 @@ object-assign
|
|
|
5360
5360
|
transition: all 0.3s ease-in-out; //インジケーターの動きだしタイミングを少しだけ速くする
|
|
5361
5361
|
background-color: ${({$variant:e,theme:t,$disabled:n})=>{if(n)return t.palette.text.disabled;return JA(t)[e].indicatorBackground}};
|
|
5362
5362
|
border-radius: ${({$size:e})=>XA[e].itemRadius};
|
|
5363
|
-
`,nL="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function rL(e){const n=t.useRef(e);return nL((()=>{n.current=e})),t.useCallback(((...e)=>n.current(...e)),[])}const iL=e.forwardRef((function({cases:t,value:n,onChange:r,size:i="medium",variant:o="light",disabled:a=!1,fullWidth:l=!1,width:s,showTooltip:c=!1,tooltipPosition:d=["top-start","bottom-start","auto"]},u){const p=ne(),m=t,h=new Map,g=e.useRef(null),f=e.useRef(null),[b,v]=e.useState({}),x=(e,t)=>()=>{!r||a||t||r(e)},y=e.useMemo((()=>"small"===i||"medium"===i?"sm-md":"md"),[i]),w=e.useCallback(((e,t)=>e&&t?p.palette.background.default:e?p.palette.text.disabled:t?p.palette.background.default:JA(p)[o].iconColor),[p,o]),C=e.useMemo((()=>"small"===i?"xs":"sm"),[i]),E=rL((()=>{const{tabsMeta:e,tabMeta:t}=(()=>{const e=g.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&&null!=n&&f.current){const e=f.current.children;if(e.length>0){const t=e[h.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===b.left||void 0===b.width)v(i);else{const e=Math.abs(b.left-i.left),t=Math.abs((null==b?void 0:b.width)-i.width);(e>=1||t>=1)&&v(i)}}));return e.useEffect((()=>{E()}),[n,m.length,i,o,E]),e.useEffect((()=>{const e=()=>{E()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[E]),e.createElement(UA,{ref:u,$size:i,$variant:o,$disabled:a,$fullWidth:l,$width:s,role:"tablist","aria-label":"Switch options"},e.createElement(QA,{ref:g},e.createElement(tL,{$size:i,$variant:o,$disabled:a,style:Object.assign({},b)}),e.createElement(qA,{ref:f,$size:i,$fullWidth:l},m.map(((t,r)=>{const l=void 0===t.value?r:t.value;h.set(l,r);const s=l===n,u=t.disabled||a,p=null!=t.icon?e.createElement(KA,{$size:i,$variant:o,$active:s,$disabled:u,"data-disabled":u,role:"tab","aria-selected":s,tabIndex:u?-1:0,onClick:x(l,u)},e.createElement(le,{name:t.icon,size:y,color:w(u,s)})):e.createElement(eL,{key:t.name,$size:i,$variant:o,$active:s,$disabled:u,"data-disabled":u,role:"tab","aria-selected":s,tabIndex:u?-1:0,onClick:x(l,u)},e.createElement(ke,{trimVertical:!0,component:"span",size:C,weight:"normal",color:"secondary"},t.name));return c?e.createElement(
|
|
5363
|
+
`,nL="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function rL(e){const n=t.useRef(e);return nL((()=>{n.current=e})),t.useCallback(((...e)=>n.current(...e)),[])}const iL=e.forwardRef((function({cases:t,value:n,onChange:r,size:i="medium",variant:o="light",disabled:a=!1,fullWidth:l=!1,width:s,showTooltip:c=!1,tooltipPosition:d=["top-start","bottom-start","auto"]},u){const p=ne(),m=t,h=new Map,g=e.useRef(null),f=e.useRef(null),[b,v]=e.useState({}),x=(e,t)=>()=>{!r||a||t||r(e)},y=e.useMemo((()=>"small"===i||"medium"===i?"sm-md":"md"),[i]),w=e.useCallback(((e,t)=>e&&t?p.palette.background.default:e?p.palette.text.disabled:t?p.palette.background.default:JA(p)[o].iconColor),[p,o]),C=e.useMemo((()=>"small"===i?"xs":"sm"),[i]),E=rL((()=>{const{tabsMeta:e,tabMeta:t}=(()=>{const e=g.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&&null!=n&&f.current){const e=f.current.children;if(e.length>0){const t=e[h.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===b.left||void 0===b.width)v(i);else{const e=Math.abs(b.left-i.left),t=Math.abs((null==b?void 0:b.width)-i.width);(e>=1||t>=1)&&v(i)}}));return e.useEffect((()=>{E()}),[n,m.length,i,o,E]),e.useEffect((()=>{const e=()=>{E()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[E]),e.createElement(UA,{ref:u,$size:i,$variant:o,$disabled:a,$fullWidth:l,$width:s,role:"tablist","aria-label":"Switch options"},e.createElement(QA,{ref:g},e.createElement(tL,{$size:i,$variant:o,$disabled:a,style:Object.assign({},b)}),e.createElement(qA,{ref:f,$size:i,$fullWidth:l},m.map(((t,r)=>{const l=void 0===t.value?r:t.value;h.set(l,r);const s=l===n,u=t.disabled||a,p=null!=t.icon?e.createElement(KA,{$size:i,$variant:o,$active:s,$disabled:u,"data-disabled":u,role:"tab","aria-selected":s,tabIndex:u?-1:0,onClick:x(l,u)},e.createElement(le,{name:t.icon,size:y,color:w(u,s)})):e.createElement(eL,{key:t.name,$size:i,$variant:o,$active:s,$disabled:u,"data-disabled":u,role:"tab","aria-selected":s,tabIndex:u?-1:0,onClick:x(l,u)},e.createElement(ke,{trimVertical:!0,component:"span",size:C,weight:"normal",color:"secondary"},t.name));return c?e.createElement(Oc,{key:t.name,content:t.name,positionPriority:d,offset:[0,15]},p):e.createElement(e.Fragment,{key:t.name},p)})))))})),oL=e.forwardRef((function(t,n){var{children:r}=t,i=D(t,["children"]);return e.createElement("tbody",Object.assign({ref:n},i),r)})),aL=v.td`
|
|
5364
5364
|
width: ${({width:e})=>e};
|
|
5365
5365
|
padding: ${({theme:e})=>2*e.spacing}px;
|
|
5366
5366
|
`,lL=e.forwardRef((function(t,n){var{width:r="auto",children:i}=t,o=D(t,["width","children"]);return e.createElement(aL,Object.assign({ref:n,width:r},o),e.createElement(ke,{component:"div"},i))})),sL=e.forwardRef((function({children:t},n){return e.createElement("thead",{ref:n},t)})),cL={small:"8px",medium:"12px",large:"16px"},dL=e=>cL[e],uL=v.tr`
|
|
@@ -5471,7 +5471,7 @@ object-assign
|
|
|
5471
5471
|
background: ${({theme:e})=>e.palette.neutral.lighter};
|
|
5472
5472
|
`,$L=e.forwardRef((function({text:t,count:n,countMax:r,value:i,selected:o,orientation:a,onChange:l,onClick:s},c){const d=o?"primary":"secondaryDark";return e.createElement(CL,{ref:c,value:i,tabIndex:o?0:-1,role:"tab","aria-selected":o,selected:o,$orientation:a,onClick:e=>{!o&&l&&l(i),s&&s(e)}},e.createElement(EL,{$orientation:a},e.createElement(C$,{showZero:!0,layout:"inline",badgeContent:n,max:null!=r?r:99,color:d,size:"small"},e.createElement(IL,{selected:o},t))))})),AL=({ref:t,data:n,value:r,orientation:i="horizontal",onChange:o,onClick:a})=>{const l="vertical"===i,s=new Map,c=e.useRef(null),[d,u]=e.useState({}),p=Vc(t),m=rL((()=>{var e,t;const n=(()=>{const e=c.current;if(!e||!r)return null;const t=s.get(r);return void 0===t?null:e.children[t]})(),i={left:null!==(e=null==n?void 0:n.offsetLeft)&&void 0!==e?e:0,width:null!==(t=null==n?void 0:n.offsetWidth)&&void 0!==t?t:0};if(void 0===d.left||void 0===d.width)u(i);else{const e=Math.abs(d.left-i.left),t=Math.abs(d.width-i.width);(e>=1||t>=1)&&u(i)}}));e.useEffect((()=>{l||m()})),e.useEffect((()=>{if(l)return;const e=()=>{m()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[l,m]);const h=n.map(((t,n)=>{const l=t.value,c=l===r;return s.set(l,n),e.createElement($L,{key:n.toString(),selected:c,orientation:i,value:l,count:t.count,countMax:t.countMax,text:t.text,onChange:o,onClick:a})}));return e.createElement(bL,{ref:p},l?e.createElement(vL,{ref:c,role:"tablist",$orientation:i,"aria-orientation":"vertical"},h):e.createElement(xL,null,e.createElement(yL,null,e.createElement(wL,{ref:c,role:"tablist","aria-orientation":"horizontal"},h,e.createElement(kL,{"aria-hidden":"true",style:Object.assign({},d)}))),e.createElement(ML,null)))},LL=v.div`
|
|
5473
5473
|
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
5474
|
-
`,VL=(e=15)=>{const t=[];for(let n=0;n<24;n++)for(let r=0;r<60;r+=e){const e=_a().hour(n).minute(r).format("HH:mm");t.push(e)}return t},HL=(e,t,n,r)=>{let i;if(0===t)i=e.add(n,"hour").second(0).millisecond(0);else{if(2!==t)return null;i=e.add(n,"minute").second(0).millisecond(0)}const o=i.format(r);return{newTime:i,normalizedValue:o}};var OL=g((({time:e,error:n=!1,errorText:s,disabled:c=!1,onTimeChange:u,dropdownInterval:p=60,filterTimeOptions:m,size:h="medium",variant:g="light",width:f="120px",maxHeight:b=300,onFocus:v,onBlur:x})=>{var y,w,C,E;Ae("TimeField","TimeField は非推奨です。代わりに TimeField2 を使用してください。");const I=ne(),[k,$]=i(!1),A=o(null),L=r(),V="HH:mm",H=e||_a(),O=l((()=>{const e=VL(p);return m&&m.length>0?e.filter((e=>m.every((t=>t(e))))):e}),[p,m]),[S,D]=i(H.format(V)),[R,z]=i(IC(S)),[N,T]=i({start:0,end:R.length-1,current:0}),[Z,B]=i(null);a((()=>{const e=H.format(V);D(e),z(IC(e))}),[H,V]);const P=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=R[R.length-1].end+1,o=r>=i?i:r,a=R.findIndex((e=>o>=e.start&&o<=e.end+1));T((e=>R[a].editable?e.current===a?e:Object.assign(Object.assign({},e),{current:a}):Object.assign(Object.assign({},e),{current:a+1}))),null===(n=A.current)||void 0===n||n.setSelectionRange(R[a].start,R[a].end+1)}))}),[R]),_=d((()=>{P(),null==v||v()}),[P,v]),G=d((()=>{T((e=>Object.assign(Object.assign({},e),{current:0}))),B(null),null==x||x()}),[x]),j=d(((e,t,n)=>{const r=HL(e,t,n,V);return r?r.newTime:null}),[V]),F=d((t=>{const n=OC(t.code),r=n?SC(t.code):null;if(!HC.includes(t.key)&&!n)return;if(t.key===AC.ArrowLeft||t.key===AC.ArrowRight){t.preventDefault();const e=((e,t,n)=>{if(t===AC.ArrowLeft){for(let t=e-1;t>=0;t--)if(n[t].editable)return t-e}else if(t===AC.ArrowRight)for(let t=e+1;t<n.length;t++)if(n[t].editable)return t-e;return 0})(N.current,t.key,R);T((t=>Object.assign(Object.assign({},t),{current:t.current+e}))),B(null)}if(t.key===AC.ArrowUp||t.key===AC.ArrowDown){t.preventDefault();const n=t.key===AC.ArrowUp?1:-1,r=e||_a(),i=j(r,N.current,n);if(i){const e=i.format(V);D(e),z(IC(e)),u&&u(i)}}const i=n?r:t.key;if((VC.includes(t.key)||n)&&i){t.preventDefault();const n=((e,t,n,r)=>{const i=t.map((e=>Object.assign({},e)));let o=!1,a=null;if(r!==n){i[n].value=e.padStart(t[n].value.length,"0");const r=parseInt(e);(0===n?r<=2:r<=5)?a=n:(a=null,o=!0)}else{const r=(t[n].value.slice(1)+e).slice(-t[n].value.length);i[n].value=r,a=null,o=!0}return{newSections:i,shouldMoveToNextSection:o,newLastEditedSection:a}})(i,R,N.current,Z),r=kC(n.newSections),o=e||_a(),a=r,l=_a(`${o.format("YYYY-MM-DD")} ${a}`),s=l.format(V);if(M((()=>{D(s),z(IC(s))})),l.isValid()&&u){const e=o.hour(l.hour()).minute(l.minute()).second(0).millisecond(0);u(e)}if(B(n.newLastEditedSection),n.shouldMoveToNextSection)for(let e=N.current+1;e<R.length;e++)if(R[e].editable){T((t=>Object.assign(Object.assign({},t),{current:e})));break}}if(t.key===AC.Backspace){t.preventDefault();const e=((e,t)=>{const n=e.map((e=>Object.assign({},e)));return n[t].value="0".padStart(e[t].value.length,"0"),n})(R,N.current);z(e),B(null);const n=kC(e);D(n)}}),[R,N,Z,V,u,e,j]),Y=d((()=>{P()}),[P]),W=d((t=>{const[n,r]=t.split(":").map(Number),i=(e||_a()).hour(n).minute(r).second(0).millisecond(0);u&&u(i),$(!1)}),[e,u]),X=d((t=>{t.preventDefault();const n=t.clipboardData.getData("text").trim(),[r,i]=n.split(":"),o=parseInt(r,10),a=parseInt(i,10);if(!(!isNaN(o)&&!isNaN(a)&&o>=0&&o<=23&&a>=0&&a<=59))return;const l=e||_a(),s=_a(`${l.format("YYYY-MM-DD")} ${n}`);if(s.isValid()){const e=l.hour(s.hour()).minute(s.minute()).second(0).millisecond(0),t=e.format(V);D(t),z(IC(t)),u&&u(e)}}),[e,V,u]);return a((()=>{var e;R[N.current]&&(null===(e=A.current)||void 0===e||e.setSelectionRange(R[N.current].start,R[N.current].end+1))}),[N,R]),a((()=>{if(k&&e){const t=e.format(V);requestAnimationFrame((()=>{const e=document.querySelector(`[data-timefield-item="${CSS.escape(L)}-${t}"]`);e&&"function"==typeof e.scrollIntoView&&e.scrollIntoView({block:"center"})}))}}),[k,e,L,V]),t.createElement(t.Fragment,null,t.createElement(va,{ref:A,readOnly:!0,multiline:!1,error:n||!!s,disabled:c,width:f,size:h,variant:g,value:S,append:t.createElement(LL,{disabled:c,"aria-label":"時刻を選択",role:"button",tabIndex:c?-1:0,onClick:e=>{e.stopPropagation(),e.preventDefault(),c||$(!k)}},t.createElement(le,{name:"arrow_down",color:c?I.palette.text.disabled:I.palette.black})),onFocus:_,onBlur:G,onKeyDown:F,onMouseDown:Y,onPaste:X}),t.createElement(Da,null,t.createElement(Sa,{open:k,trigger:{x:null!==(w=null===(y=A.current)||void 0===y?void 0:y.getBoundingClientRect().left)&&void 0!==w?w:0,y:(null!==(E=null===(C=A.current)||void 0===C?void 0:C.getBoundingClientRect().bottom)&&void 0!==E?E:0)+5},placement:"bottom-start",width:120,maxHeight:b,onOpenChange:$},O.length>0?O.map((n=>{const r=(null==e?void 0:e.format(V))===n;return t.createElement(Ro,{key:n,"data-timefield-item":`${L}-${n}`,checked:r,onChange:e=>{e&&W(n)}},n)})):t.createElement(Dt,{disabled:!0},"選択可能な時刻がありません"))),s&&t.createElement(t.Fragment,null,t.createElement(Ua,{py:1}),t.createElement(nd,null,s)))}));var SL=g((({time:e,name:n,error:s=!1,errorText:c,disabled:u=!1,onTimeChange:p,dropdownInterval:m=60,filterTimeOptions:h,size:g="medium",variant:f="light",width:b="120px",maxHeight:v=480,onFocus:x,onBlur:y})=>{var w,C,E,I;const k=ne(),[M,$]=i(!1),A=o(null),L=r(),V="HH:mm",H=ba(),O=e||_a(),S=l((()=>{const e=VL(m);return h&&h.length>0?e.filter((e=>h.every((t=>t(e))))):e}),[m,h]),{value:D,sections:R,focusedIndex:z,isFocused:N,getSegmentProps:T,groupProps:Z}=(({time:e,disabled:t=!1,onTimeChange:n})=>{const r="HH:mm",l=e||_a(),[s,c]=i(l.format(r)),u=o(s),[p,m]=i(IC(s)),[h,g]=i(null),f=o(null),b=o(0),[v,x]=i(!1),y=o([]),w=o(null),C=d((e=>{f.current=e,g(e)}),[]),E=d((e=>{C(e),b.current=0;const t=y.current[e];t&&t!==document.activeElement&&t.focus()}),[C]);a((()=>{const t=(e||_a()).format(r);c(t),u.current=t,m(IC(t))}),[e]);const I=d(((e,t)=>{for(let n=e+t;n>=0&&n<p.length;n+=t)if(p[n].editable)return n;return null}),[p]),k=d((t=>{const i=f.current;if(null===i)return;const o=p[i];if(!(null==o?void 0:o.editable))return;const a=b.current;let l=o.value;0===a&&(l="".padStart(o.value.length,"0"));const s=`${l.slice(1)}${t}`,d=[...p];d[i]=Object.assign(Object.assign({},d[i]),{value:s}),m(d);const h=a+1;b.current=h;const g=0===i,v=parseInt(t);let x=!1;x=0===a?!(g?v<=2:v<=5):h>=o.value.length;const y=kC(d),w=e||_a(),C=_a(`${w.format("YYYY-MM-DD")} ${y}`),k=C.format(r);if(c(k),u.current=k,m(IC(k)),x){b.current=0;const e=I(i,1);null!==e&&E(e)}if(C.isValid()&&n){const e=w.hour(C.hour()).minute(C.minute()).second(0).millisecond(0);n(e)}}),[p,e,n,I,E]),M=d((e=>t=>{y.current[e]=t}),[]),$=d((e=>()=>{x(!0),C(e),b.current=0}),[C]),A=d((e=>t=>{const n=t.relatedTarget;w.current&&n&&w.current.contains(n)||f.current===e&&(x(!1),C(null),b.current=0)}),[C]),L=d((t=>i=>{const o=p[t];if((null==o?void 0:o.editable)&&!(i.ctrlKey||i.metaKey||i.altKey))if(i.key!==AC.ArrowUp&&i.key!==AC.ArrowDown){if(i.key===AC.Backspace||i.key===AC.Delete){i.preventDefault(),i.stopPropagation();const e=i.key===AC.Backspace,n="0".repeat(o.value.length);if(o.value===n&&0===b.current){if(e){const e=I(t,-1);null!==e&&E(e)}return}const r=[...p];r[t]=Object.assign(Object.assign({},r[t]),{value:n}),m(r),b.current=0;const a=kC(r);return c(a),void(u.current=a)}if(OC(i.code)){i.preventDefault();const e=SC(i.code);e&&k(e)}}else{i.preventDefault();const o=i.key===AC.ArrowUp?1:-1,a=e||_a(),[l,s]=u.current.split(":").map(Number),d=a.hour(l).minute(s).second(0).millisecond(0),p=HL(d,t,o,r);p&&(c(p.normalizedValue),u.current=p.normalizedValue,m(IC(p.normalizedValue)),null==n||n(p.newTime))}}),[p,e,r,n,k,I,E]),V=d((e=>e=>{const t=e.nativeEvent;if(e.preventDefault(),"deleteContentBackward"!==t.inputType&&"deleteContentForward"!==t.inputType&&null!=t.data){const e=t.data;/^\d$/.test(e)&&k(e)}}),[k]),H=d((e=>{const n=p[e];if(t||!(null==n?void 0:n.editable))return{ref:M(e),"aria-hidden":!0};const r=["時","分"][p.slice(0,e+1).filter((e=>e.editable)).length-1];return{ref:M(e),role:"spinbutton",contentEditable:!0,suppressContentEditableWarning:!0,inputMode:"numeric",tabIndex:0,enterKeyHint:"next",spellCheck:!1,autoCorrect:"off",style:{caretColor:"transparent"},"aria-label":r,onFocus:$(e),onBlur:A(e),onKeyDown:L(e),onBeforeInput:V(e),onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}}}),[p,t,M,$,A,L,V]),O=d((e=>{const t=f.current;if(null!==t)if(e.key!==AC.ArrowLeft&&e.key!==AC.ArrowRight){if(e.key===AC.Tab){const n=e.shiftKey?-1:1,r=I(t,n);null!==r&&(e.preventDefault(),E(r))}}else{e.preventDefault();const n=e.key===AC.ArrowLeft?-1:1,r=I(t,n);null!==r&&E(r)}}),[I,E]),S=d((t=>{t.preventDefault();const i=t.clipboardData.getData("text").trim(),[o,a]=i.split(":"),l=parseInt(o,10),s=parseInt(a,10);if(isNaN(l)||isNaN(s)||l<0||l>23||s<0||s>59)return;const d=(e||_a()).hour(l).minute(s).second(0).millisecond(0),p=d.format(r);c(p),u.current=p,m(IC(p)),null==n||n(d)}),[e,r,n]);return{value:s,sections:p,focusedIndex:h,isFocused:v,getSegmentProps:H,groupProps:{ref:w,onKeyDown:O,onPaste:S}}})({time:O,disabled:u,onTimeChange:p}),B=d((()=>{null==x||x()}),[x]),P=d((e=>{const t=e.relatedTarget;A.current&&t&&A.current.contains(t)||null==y||y()}),[y]),_=d((t=>{const[n,r]=t.split(":").map(Number),i=(e||_a()).hour(n).minute(r).second(0).millisecond(0);null==p||p(i),$(!1)}),[e,p]),G=d((e=>{e.stopPropagation(),e.preventDefault(),u||$(!M)}),[u,M]),j=d((e=>t=>{t&&_(e)}),[_]);return a((()=>{if(M&&e){const t=e.format(V);requestAnimationFrame((()=>{const e=document.querySelector(`[data-timefield-item="${CSS.escape(L)}-${t}"]`);e&&"function"==typeof e.scrollIntoView&&e.scrollIntoView({block:"center"})}))}}),[M,e,L,V]),t.createElement(t.Fragment,null,t.createElement(nE,{ref:A,$disabled:u,$error:s||!!c,$focused:N,$isIOS:H,$size:g,$variant:f,$width:b,onBlurCapture:P,onFocusCapture:B},t.createElement(rE,Object.assign({},Z),R.map(((e,n)=>t.createElement(iE,Object.assign({key:`${e.start}-${e.end}`,$editable:e.editable,$focused:N&&z===n},T(n)),e.value)))),t.createElement(oE,null,t.createElement(LL,{disabled:u,"aria-label":"時刻を選択",role:"button",tabIndex:u?-1:0,onClick:G},t.createElement(le,{color:u?k.palette.text.disabled:k.palette.black,name:"arrow_down"})))),t.createElement("input",{type:"hidden",name:n,value:D,disabled:u}),t.createElement(Da,null,t.createElement(Sa,{maxHeight:v,open:M,placement:"bottom-start",trigger:{x:null!==(C=null===(w=A.current)||void 0===w?void 0:w.getBoundingClientRect().left)&&void 0!==C?C:0,y:(null!==(I=null===(E=A.current)||void 0===E?void 0:E.getBoundingClientRect().bottom)&&void 0!==I?I:0)+5},width:120,onOpenChange:$},S.length>0?S.map((n=>{const r=(null==e?void 0:e.format(V))===n;return t.createElement(Ro,{key:n,checked:r,"data-timefield-item":`${L}-${n}`,onChange:j(n)},n)})):t.createElement(Dt,{disabled:!0},"選択可能な時刻がありません"))),c&&t.createElement(t.Fragment,null,t.createElement(Ua,{py:1}),t.createElement(nd,null,c)))}));const DL="calc(100vw - 24px)",RL="800px",zL=v.div`
|
|
5474
|
+
`,VL=(e=15)=>{const t=[];for(let n=0;n<24;n++)for(let r=0;r<60;r+=e){const e=_a().hour(n).minute(r).format("HH:mm");t.push(e)}return t},HL=(e,t,n,r)=>{let i;if(0===t)i=e.add(n,"hour").second(0).millisecond(0);else{if(2!==t)return null;i=e.add(n,"minute").second(0).millisecond(0)}const o=i.format(r);return{newTime:i,normalizedValue:o}};var SL=g((({time:e,error:n=!1,errorText:s,disabled:c=!1,onTimeChange:u,dropdownInterval:p=60,filterTimeOptions:m,size:h="medium",variant:g="light",width:f="120px",maxHeight:b=300,onFocus:v,onBlur:x})=>{var y,w,C,E;Ae("TimeField","TimeField は非推奨です。代わりに TimeField2 を使用してください。");const I=ne(),[k,$]=i(!1),A=o(null),L=r(),V="HH:mm",H=e||_a(),S=l((()=>{const e=VL(p);return m&&m.length>0?e.filter((e=>m.every((t=>t(e))))):e}),[p,m]),[O,D]=i(H.format(V)),[R,z]=i(IC(O)),[N,T]=i({start:0,end:R.length-1,current:0}),[Z,B]=i(null);a((()=>{const e=H.format(V);D(e),z(IC(e))}),[H,V]);const P=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=R[R.length-1].end+1,o=r>=i?i:r,a=R.findIndex((e=>o>=e.start&&o<=e.end+1));T((e=>R[a].editable?e.current===a?e:Object.assign(Object.assign({},e),{current:a}):Object.assign(Object.assign({},e),{current:a+1}))),null===(n=A.current)||void 0===n||n.setSelectionRange(R[a].start,R[a].end+1)}))}),[R]),_=d((()=>{P(),null==v||v()}),[P,v]),G=d((()=>{T((e=>Object.assign(Object.assign({},e),{current:0}))),B(null),null==x||x()}),[x]),j=d(((e,t,n)=>{const r=HL(e,t,n,V);return r?r.newTime:null}),[V]),F=d((t=>{const n=SC(t.code),r=n?OC(t.code):null;if(!HC.includes(t.key)&&!n)return;if(t.key===AC.ArrowLeft||t.key===AC.ArrowRight){t.preventDefault();const e=((e,t,n)=>{if(t===AC.ArrowLeft){for(let t=e-1;t>=0;t--)if(n[t].editable)return t-e}else if(t===AC.ArrowRight)for(let t=e+1;t<n.length;t++)if(n[t].editable)return t-e;return 0})(N.current,t.key,R);T((t=>Object.assign(Object.assign({},t),{current:t.current+e}))),B(null)}if(t.key===AC.ArrowUp||t.key===AC.ArrowDown){t.preventDefault();const n=t.key===AC.ArrowUp?1:-1,r=e||_a(),i=j(r,N.current,n);if(i){const e=i.format(V);D(e),z(IC(e)),u&&u(i)}}const i=n?r:t.key;if((VC.includes(t.key)||n)&&i){t.preventDefault();const n=((e,t,n,r)=>{const i=t.map((e=>Object.assign({},e)));let o=!1,a=null;if(r!==n){i[n].value=e.padStart(t[n].value.length,"0");const r=parseInt(e);(0===n?r<=2:r<=5)?a=n:(a=null,o=!0)}else{const r=(t[n].value.slice(1)+e).slice(-t[n].value.length);i[n].value=r,a=null,o=!0}return{newSections:i,shouldMoveToNextSection:o,newLastEditedSection:a}})(i,R,N.current,Z),r=kC(n.newSections),o=e||_a(),a=r,l=_a(`${o.format("YYYY-MM-DD")} ${a}`),s=l.format(V);if(M((()=>{D(s),z(IC(s))})),l.isValid()&&u){const e=o.hour(l.hour()).minute(l.minute()).second(0).millisecond(0);u(e)}if(B(n.newLastEditedSection),n.shouldMoveToNextSection)for(let e=N.current+1;e<R.length;e++)if(R[e].editable){T((t=>Object.assign(Object.assign({},t),{current:e})));break}}if(t.key===AC.Backspace){t.preventDefault();const e=((e,t)=>{const n=e.map((e=>Object.assign({},e)));return n[t].value="0".padStart(e[t].value.length,"0"),n})(R,N.current);z(e),B(null);const n=kC(e);D(n)}}),[R,N,Z,V,u,e,j]),Y=d((()=>{P()}),[P]),W=d((t=>{const[n,r]=t.split(":").map(Number),i=(e||_a()).hour(n).minute(r).second(0).millisecond(0);u&&u(i),$(!1)}),[e,u]),X=d((t=>{t.preventDefault();const n=t.clipboardData.getData("text").trim(),[r,i]=n.split(":"),o=parseInt(r,10),a=parseInt(i,10);if(!(!isNaN(o)&&!isNaN(a)&&o>=0&&o<=23&&a>=0&&a<=59))return;const l=e||_a(),s=_a(`${l.format("YYYY-MM-DD")} ${n}`);if(s.isValid()){const e=l.hour(s.hour()).minute(s.minute()).second(0).millisecond(0),t=e.format(V);D(t),z(IC(t)),u&&u(e)}}),[e,V,u]);return a((()=>{var e;R[N.current]&&(null===(e=A.current)||void 0===e||e.setSelectionRange(R[N.current].start,R[N.current].end+1))}),[N,R]),a((()=>{if(k&&e){const t=e.format(V);requestAnimationFrame((()=>{const e=document.querySelector(`[data-timefield-item="${CSS.escape(L)}-${t}"]`);e&&"function"==typeof e.scrollIntoView&&e.scrollIntoView({block:"center"})}))}}),[k,e,L,V]),t.createElement(t.Fragment,null,t.createElement(va,{ref:A,readOnly:!0,multiline:!1,error:n||!!s,disabled:c,width:f,size:h,variant:g,value:O,append:t.createElement(LL,{disabled:c,"aria-label":"時刻を選択",role:"button",tabIndex:c?-1:0,onClick:e=>{e.stopPropagation(),e.preventDefault(),c||$(!k)}},t.createElement(le,{name:"arrow_down",color:c?I.palette.text.disabled:I.palette.black})),onFocus:_,onBlur:G,onKeyDown:F,onMouseDown:Y,onPaste:X}),t.createElement(Da,null,t.createElement(Oa,{open:k,trigger:{x:null!==(w=null===(y=A.current)||void 0===y?void 0:y.getBoundingClientRect().left)&&void 0!==w?w:0,y:(null!==(E=null===(C=A.current)||void 0===C?void 0:C.getBoundingClientRect().bottom)&&void 0!==E?E:0)+5},placement:"bottom-start",width:120,maxHeight:b,onOpenChange:$},S.length>0?S.map((n=>{const r=(null==e?void 0:e.format(V))===n;return t.createElement(Ro,{key:n,"data-timefield-item":`${L}-${n}`,checked:r,onChange:e=>{e&&W(n)}},n)})):t.createElement(Dt,{disabled:!0},"選択可能な時刻がありません"))),s&&t.createElement(t.Fragment,null,t.createElement(Ua,{py:1}),t.createElement(nd,null,s)))}));var OL=g((({time:e,name:n,error:s=!1,errorText:c,disabled:u=!1,onTimeChange:p,dropdownInterval:m=60,filterTimeOptions:h,size:g="medium",variant:f="light",width:b="120px",maxHeight:v=480,onFocus:x,onBlur:y})=>{var w,C,E,I;const k=ne(),[M,$]=i(!1),A=o(null),L=r(),V="HH:mm",H=ba(),S=e||_a(),O=l((()=>{const e=VL(m);return h&&h.length>0?e.filter((e=>h.every((t=>t(e))))):e}),[m,h]),{value:D,sections:R,focusedIndex:z,isFocused:N,getSegmentProps:T,groupProps:Z}=(({time:e,disabled:t=!1,onTimeChange:n})=>{const r="HH:mm",l=e||_a(),[s,c]=i(l.format(r)),u=o(s),[p,m]=i(IC(s)),[h,g]=i(null),f=o(null),b=o(0),[v,x]=i(!1),y=o([]),w=o(null),C=d((e=>{f.current=e,g(e)}),[]),E=d((e=>{C(e),b.current=0;const t=y.current[e];t&&t!==document.activeElement&&t.focus()}),[C]);a((()=>{const t=(e||_a()).format(r);c(t),u.current=t,m(IC(t))}),[e]);const I=d(((e,t)=>{for(let n=e+t;n>=0&&n<p.length;n+=t)if(p[n].editable)return n;return null}),[p]),k=d((t=>{const i=f.current;if(null===i)return;const o=p[i];if(!(null==o?void 0:o.editable))return;const a=b.current;let l=o.value;0===a&&(l="".padStart(o.value.length,"0"));const s=`${l.slice(1)}${t}`,d=[...p];d[i]=Object.assign(Object.assign({},d[i]),{value:s}),m(d);const h=a+1;b.current=h;const g=0===i,v=parseInt(t);let x=!1;x=0===a?!(g?v<=2:v<=5):h>=o.value.length;const y=kC(d),w=e||_a(),C=_a(`${w.format("YYYY-MM-DD")} ${y}`),k=C.format(r);if(c(k),u.current=k,m(IC(k)),x){b.current=0;const e=I(i,1);null!==e&&E(e)}if(C.isValid()&&n){const e=w.hour(C.hour()).minute(C.minute()).second(0).millisecond(0);n(e)}}),[p,e,n,I,E]),M=d((e=>t=>{y.current[e]=t}),[]),$=d((e=>()=>{x(!0),C(e),b.current=0}),[C]),A=d((e=>t=>{const n=t.relatedTarget;w.current&&n&&w.current.contains(n)||f.current===e&&(x(!1),C(null),b.current=0)}),[C]),L=d((t=>i=>{const o=p[t];if((null==o?void 0:o.editable)&&!(i.ctrlKey||i.metaKey||i.altKey))if(i.key!==AC.ArrowUp&&i.key!==AC.ArrowDown){if(i.key===AC.Backspace||i.key===AC.Delete){i.preventDefault(),i.stopPropagation();const e=i.key===AC.Backspace,n="0".repeat(o.value.length);if(o.value===n&&0===b.current){if(e){const e=I(t,-1);null!==e&&E(e)}return}const r=[...p];r[t]=Object.assign(Object.assign({},r[t]),{value:n}),m(r),b.current=0;const a=kC(r);return c(a),void(u.current=a)}if(SC(i.code)){i.preventDefault();const e=OC(i.code);e&&k(e)}}else{i.preventDefault();const o=i.key===AC.ArrowUp?1:-1,a=e||_a(),[l,s]=u.current.split(":").map(Number),d=a.hour(l).minute(s).second(0).millisecond(0),p=HL(d,t,o,r);p&&(c(p.normalizedValue),u.current=p.normalizedValue,m(IC(p.normalizedValue)),null==n||n(p.newTime))}}),[p,e,r,n,k,I,E]),V=d((e=>e=>{const t=e.nativeEvent;if(e.preventDefault(),"deleteContentBackward"!==t.inputType&&"deleteContentForward"!==t.inputType&&null!=t.data){const e=t.data;/^\d$/.test(e)&&k(e)}}),[k]),H=d((e=>{const n=p[e];if(t||!(null==n?void 0:n.editable))return{ref:M(e),"aria-hidden":!0};const r=["時","分"][p.slice(0,e+1).filter((e=>e.editable)).length-1];return{ref:M(e),role:"spinbutton",contentEditable:!0,suppressContentEditableWarning:!0,inputMode:"numeric",tabIndex:0,enterKeyHint:"next",spellCheck:!1,autoCorrect:"off",style:{caretColor:"transparent"},"aria-label":r,onFocus:$(e),onBlur:A(e),onKeyDown:L(e),onBeforeInput:V(e),onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}}}),[p,t,M,$,A,L,V]),S=d((e=>{const t=f.current;if(null!==t)if(e.key!==AC.ArrowLeft&&e.key!==AC.ArrowRight){if(e.key===AC.Tab){const n=e.shiftKey?-1:1,r=I(t,n);null!==r&&(e.preventDefault(),E(r))}}else{e.preventDefault();const n=e.key===AC.ArrowLeft?-1:1,r=I(t,n);null!==r&&E(r)}}),[I,E]),O=d((t=>{t.preventDefault();const i=t.clipboardData.getData("text").trim(),[o,a]=i.split(":"),l=parseInt(o,10),s=parseInt(a,10);if(isNaN(l)||isNaN(s)||l<0||l>23||s<0||s>59)return;const d=(e||_a()).hour(l).minute(s).second(0).millisecond(0),p=d.format(r);c(p),u.current=p,m(IC(p)),null==n||n(d)}),[e,r,n]);return{value:s,sections:p,focusedIndex:h,isFocused:v,getSegmentProps:H,groupProps:{ref:w,onKeyDown:S,onPaste:O}}})({time:S,disabled:u,onTimeChange:p}),B=d((()=>{null==x||x()}),[x]),P=d((e=>{const t=e.relatedTarget;A.current&&t&&A.current.contains(t)||null==y||y()}),[y]),_=d((t=>{const[n,r]=t.split(":").map(Number),i=(e||_a()).hour(n).minute(r).second(0).millisecond(0);null==p||p(i),$(!1)}),[e,p]),G=d((e=>{e.stopPropagation(),e.preventDefault(),u||$(!M)}),[u,M]),j=d((e=>t=>{t&&_(e)}),[_]);return a((()=>{if(M&&e){const t=e.format(V);requestAnimationFrame((()=>{const e=document.querySelector(`[data-timefield-item="${CSS.escape(L)}-${t}"]`);e&&"function"==typeof e.scrollIntoView&&e.scrollIntoView({block:"center"})}))}}),[M,e,L,V]),t.createElement(t.Fragment,null,t.createElement(nE,{ref:A,$disabled:u,$error:s||!!c,$focused:N,$isIOS:H,$size:g,$variant:f,$width:b,onBlurCapture:P,onFocusCapture:B},t.createElement(rE,Object.assign({},Z),R.map(((e,n)=>t.createElement(iE,Object.assign({key:`${e.start}-${e.end}`,$editable:e.editable,$focused:N&&z===n},T(n)),e.value)))),t.createElement(oE,null,t.createElement(LL,{disabled:u,"aria-label":"時刻を選択",role:"button",tabIndex:u?-1:0,onClick:G},t.createElement(le,{color:u?k.palette.text.disabled:k.palette.black,name:"arrow_down"})))),t.createElement("input",{type:"hidden",name:n,value:D,disabled:u}),t.createElement(Da,null,t.createElement(Oa,{maxHeight:v,open:M,placement:"bottom-start",trigger:{x:null!==(C=null===(w=A.current)||void 0===w?void 0:w.getBoundingClientRect().left)&&void 0!==C?C:0,y:(null!==(I=null===(E=A.current)||void 0===E?void 0:E.getBoundingClientRect().bottom)&&void 0!==I?I:0)+5},width:120,onOpenChange:$},O.length>0?O.map((n=>{const r=(null==e?void 0:e.format(V))===n;return t.createElement(Ro,{key:n,checked:r,"data-timefield-item":`${L}-${n}`,onChange:j(n)},n)})):t.createElement(Dt,{disabled:!0},"選択可能な時刻がありません"))),c&&t.createElement(t.Fragment,null,t.createElement(Ua,{py:1}),t.createElement(nd,null,c)))}));const DL="calc(100vw - 24px)",RL="800px",zL=v.div`
|
|
5475
5475
|
box-sizing: border-box;
|
|
5476
5476
|
display: inline-flex;
|
|
5477
5477
|
flex-direction: column;
|
|
@@ -5693,7 +5693,7 @@ object-assign
|
|
|
5693
5693
|
width: 0;
|
|
5694
5694
|
height: 0;
|
|
5695
5695
|
visibility: hidden;
|
|
5696
|
-
`,
|
|
5696
|
+
`,SV=e.forwardRef((function(t,n){const{checked:r=!1,disabled:i=!1,onChange:o,width:a="48px",checkedText:l="",unCheckedText:s="",inputRef:c,children:d}=t;return"production"!==process.env.NODE_ENV&&d&&console.warn("[ingred-ui] ToggleButton: childrenによるラベル指定は非推奨です。別の手段でラベルを指定してください。"),e.createElement(kV,{ref:n,width:a},e.createElement(VV,{checked:r,disabled:i,width:a},e.createElement(HV,{ref:c,checked:r,type:"checkbox",readOnly:null==o,disabled:i,onChange:o}),e.createElement(AV,null,e.createElement(ke,{component:"div",color:i?"disabled":"primary",align:"left",size:"xs",weight:"bold"},l)),e.createElement(LV,null,e.createElement(ke,{component:"div",color:i?"disabled":"secondary",align:"right",size:"xs",weight:"bold"},s)),e.createElement(MV,{checked:r,disabled:i})))})),OV=v.div``,DV=v.span`
|
|
5697
5697
|
background-color: ${({active:e,theme:t})=>e?t.palette.primary.base:t.palette.white};
|
|
5698
5698
|
border: 1px solid
|
|
5699
5699
|
${({theme:e,active:t})=>t?e.palette.primary.dark:e.palette.neutral.lighter};
|
|
@@ -5720,7 +5720,7 @@ object-assign
|
|
|
5720
5720
|
width: 24px;
|
|
5721
5721
|
`,ZV=v(zV)`
|
|
5722
5722
|
border: none;
|
|
5723
|
-
`,BV=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},PV=Array.from(Array(24)).map(((e,t)=>t)),_V=({weekList:e,weekTime:n,WeekTimeItem:r,interactive:i=!1,isWithinHoverRange:o,onMouseOver:a,onMouseDown:s})=>{const c=l((()=>BV(n)),[n]),d=(e,t)=>()=>{null==a||a(e,t)},u=(e,t,n)=>()=>{null==s||s(e,t,n)};return t.createElement(RV,null,t.createElement(ZV,null),PV.map((e=>t.createElement(TV,{key:e},e))),c.map(((n,a)=>t.createElement(b,{key:a},t.createElement(NV,null,e[a]),n.map(((n,l)=>t.createElement(r,Object.assign({key:`${a}-${l}`,active:"1"===n,hover:!!o&&o(a,l)},i?{"aria-label":`${e[a]} ${String(l).padStart(2,"0")}:00`,"aria-pressed":"1"===n}:{},{onMouseOver:d(a,l),onMouseDown:u(a,l,n)}))))))))},GV=t.forwardRef((function(e,n){const r=Cd({props:e,name:"WeekTime"}),{weekList:i,weekTime:o}=r;return t.createElement(
|
|
5723
|
+
`,BV=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},PV=Array.from(Array(24)).map(((e,t)=>t)),_V=({weekList:e,weekTime:n,WeekTimeItem:r,interactive:i=!1,isWithinHoverRange:o,onMouseOver:a,onMouseDown:s})=>{const c=l((()=>BV(n)),[n]),d=(e,t)=>()=>{null==a||a(e,t)},u=(e,t,n)=>()=>{null==s||s(e,t,n)};return t.createElement(RV,null,t.createElement(ZV,null),PV.map((e=>t.createElement(TV,{key:e},e))),c.map(((n,a)=>t.createElement(b,{key:a},t.createElement(NV,null,e[a]),n.map(((n,l)=>t.createElement(r,Object.assign({key:`${a}-${l}`,active:"1"===n,hover:!!o&&o(a,l)},i?{"aria-label":`${e[a]} ${String(l).padStart(2,"0")}:00`,"aria-pressed":"1"===n}:{},{onMouseOver:d(a,l),onMouseDown:u(a,l,n)}))))))))},GV=t.forwardRef((function(e,n){const r=Cd({props:e,name:"WeekTime"}),{weekList:i,weekTime:o}=r;return t.createElement(OV,{ref:n},t.createElement(_V,{weekTime:o,weekList:i,WeekTimeItem:DV}))})),jV=v.div``,FV=v.button`
|
|
5724
5724
|
background-color: ${({active:e,hover:t,theme:n})=>t?n.palette.primary.highlight:e?n.palette.primary.base:n.palette.white};
|
|
5725
5725
|
border: 1px solid
|
|
5726
5726
|
${({theme:e,active:t,hover:n})=>n?e.palette.primary.softLight:t?e.palette.primary.dark:e.palette.neutral.lighter};
|
|
@@ -5729,5 +5729,5 @@ object-assign
|
|
|
5729
5729
|
height: ${({theme:e})=>3*e.spacing}px;
|
|
5730
5730
|
width: ${({theme:e})=>3*e.spacing}px;
|
|
5731
5731
|
outline: none;
|
|
5732
|
-
`,YV=t.forwardRef((function(e,n){const r=Cd({props:e,name:"WeekTimeSelector"}),{weekList:o,weekTime:s,errorText:c,onChange:d}=r,u=l((()=>BV(s)),[s]),[p,m]=i({weekIndex:0,timeIndex:0}),[h,g]=i({weekIndex:0,timeIndex:0}),[f,b]=i("none"),[v,x]=i("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})(p.weekIndex,p.timeIndex,e,t,n,[...u]);b("none"),null==d||d((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}),g({weekIndex:e,timeIndex:t}),b("choosing"))},w=()=>{"choosing"===f&&y(h.weekIndex,h.timeIndex,v)};return a((()=>(addEventListener("mouseup",w),()=>{removeEventListener("mouseup",w)}))),t.createElement(jV,{ref:n},t.createElement(_V,{weekTime:s,weekList:o,WeekTimeItem:FV,interactive:!0,isWithinHoverRange:(e,t)=>{if("choosing"===f){const n=Math.min(p.weekIndex,h.weekIndex),r=Math.max(p.weekIndex,h.weekIndex),i=Math.min(p.timeIndex,h.timeIndex),o=Math.max(p.timeIndex,h.timeIndex);return e>=n&&e<=r&&t>=i&&t<=o}return!1},onMouseOver:(e,t)=>{"none"!==f&&g({weekIndex:e,timeIndex:t})},onMouseDown:(e,t,n)=>{const r="1"===n?"0":"1";x(r),y(e,t,r)}}),c&&t.createElement(Ua,{pt:1},t.createElement(nd,null,c)))}));export{Ze as ADVANCED_FILTER_CONSTANTS,be as Accordion,Le as ActionButton,ou as AdvancedFilter,tu as AdvancedFilterConfigPanel,cn as AdvancedFilterTrigger,Bu as Backdrop,jd as Badge,Wu as Banner,oh as BarChart,F as BreakPoint,cl as Button,Qu as ButtonGroup,Ym as CHART_DEFAULT_HEIGHT,Tp as Calendar,am as CalendarRange,lm as Card,Kd as Checkbox,Dh as CheckboxCard,Rh as ClickAwayListener,Wh as ConfirmModal,Y as ContainerBreakPoint,sg as ContextMenu,
|
|
5732
|
+
`,YV=t.forwardRef((function(e,n){const r=Cd({props:e,name:"WeekTimeSelector"}),{weekList:o,weekTime:s,errorText:c,onChange:d}=r,u=l((()=>BV(s)),[s]),[p,m]=i({weekIndex:0,timeIndex:0}),[h,g]=i({weekIndex:0,timeIndex:0}),[f,b]=i("none"),[v,x]=i("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})(p.weekIndex,p.timeIndex,e,t,n,[...u]);b("none"),null==d||d((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}),g({weekIndex:e,timeIndex:t}),b("choosing"))},w=()=>{"choosing"===f&&y(h.weekIndex,h.timeIndex,v)};return a((()=>(addEventListener("mouseup",w),()=>{removeEventListener("mouseup",w)}))),t.createElement(jV,{ref:n},t.createElement(_V,{weekTime:s,weekList:o,WeekTimeItem:FV,interactive:!0,isWithinHoverRange:(e,t)=>{if("choosing"===f){const n=Math.min(p.weekIndex,h.weekIndex),r=Math.max(p.weekIndex,h.weekIndex),i=Math.min(p.timeIndex,h.timeIndex),o=Math.max(p.timeIndex,h.timeIndex);return e>=n&&e<=r&&t>=i&&t<=o}return!1},onMouseOver:(e,t)=>{"none"!==f&&g({weekIndex:e,timeIndex:t})},onMouseDown:(e,t,n)=>{const r="1"===n?"0":"1";x(r),y(e,t,r)}}),c&&t.createElement(Ua,{pt:1},t.createElement(nd,null,c)))}));export{Ze as ADVANCED_FILTER_CONSTANTS,be as Accordion,Le as ActionButton,ou as AdvancedFilter,tu as AdvancedFilterConfigPanel,cn as AdvancedFilterTrigger,Bu as Backdrop,jd as Badge,Wu as Banner,oh as BarChart,F as BreakPoint,cl as Button,Qu as ButtonGroup,Ym as CHART_DEFAULT_HEIGHT,Tp as Calendar,am as CalendarRange,lm as Card,Kd as Checkbox,Dh as CheckboxCard,Rh as ClickAwayListener,Wh as ConfirmModal,Y as ContainerBreakPoint,sg as ContextMenu,Oa as ContextMenu2,Za as ContextMenu2ButtonControlsItem,Dt as ContextMenu2ButtonItem,Ro as ContextMenu2CheckItem,Da as ContextMenu2Container,Ra as ContextMenu2HeadingItem,Na as ContextMenu2HelpTextItem,Ta as ContextMenu2SeparatorItem,sa as ContextMenu2SortableFixedItem,ea as ContextMenu2SortableGroup,ia as ContextMenu2SortableItem,_o as ContextMenu2SwitchItem,ya as ContextMenu2TextInputItem,Wo as ContextMenu2TriggerItem,sy as CreatableSelect,pu as DATE_OPERATORS,Be as DEFAULT_PERSIST_OPTION_LABEL,iw as DataTable,hC as DataTable2,wC as DataTable2ActionButton,vC as DataTable2Body,yC as DataTable2Cell,fC as DataTable2Column,bC as DataTable2ColumnLabel,gC as DataTable2Head,CC as DataTable2InlineEditor,EC as DataTable2InlineSelectEditor,xC as DataTable2Row,UC as DateField,lE as DateField2,Id as DatePicker,eE as DateRangeField,uE as DateRangeField2,mE as DateRangePicker,tg as Divider,CE as Drawer,VE as DropdownButton,XE as DualListBox,YI as DualListBox2,PI as DualListBox2Accordion,VI as DualListBox2Item,TI as DualListBox2Section,nd as ErrorText,Lc as Fade,JI as FileUploader,bk as FilterComboBox,ru as FilterPositionCalculator,$k as FilterSelectInput,Uk as FilterTagInput,qk as FixedPanel,de as Flex,nM as FloatingTip,uM as FullSizeConfirmModal,hM as Grow,le as Icon,xM as IconText,va as Input,Wy as ItemEmpty,xh as LineChart,CM as LoadingBar,wd as LocaleProvider,ag as Menu,rg as MenuList,Yh as Modal,r$ as MultipleFilter,uu as NUMBER_OPERATORS,lA as NavigationRail,h$ as NavigationRailContext,C$ as NotificationBadge,hu as PRESET_OPERATORS,_y as Pager,og as Popover,Fh as Portal,ky as RadioButton,sA as RadioCard,_ as Radius,Dc as SELECT2_SIZES,mu as SELECTION_OPERATORS,uA as ScrollArea,ly as Select,Qc as Select2,qc as Select2Option,Kc as Select2OptionGroup,ed as Select2Separator,P as Shadow,BA as Slide,OA as Slider,zA as SliderField,FA as Snackbar,G as Space,Ua as Spacer,rl as Spinner,WA as SplitAnnotation,iL as Switch,du as TEXT_OPERATORS,fL as Table,AL as Tabs,ze as Tag,BM as TextField,R as ThemeProvider,SL as TimeField,OL as TimeField2,IV as Toast,SV as ToggleButton,Oc as Tooltip,ke as Typography,GV as WeekTime,YV as WeekTimeSelector,ku as applyFilter,Mu as applyMultipleFilters,Iu as applyOperatorToValue,j as breakpointPrimitives,Mt as buildFilterSlots,xu as changeOperatorLabel,Hu as changeValueLabel,yA as clamp,z as colors,bu as combineOperators,Lu as combineValues,ah as computeLineChartMaxValue,Nm as computeMaxStackedTotal,zm as computeYTicks,fu as createOperator,q as createTheme,Au as createValue,K as defaultTheme,xd as enUS,$u as evaluateFilterConditions,we as fontSize,th as formatChartPercentValue,yh as formatDateAsMonthDay,st as generateTagText,ct as generateTagTitle,pt as getAvailableTypes,ee as getChartPalette,te as getChartSeriesColors,wA as getClampedValue,kt as getConfiguredFilters,mt as getFilterTypeLabel,Gy as getFilteredItems,Je as getInitialPersistValue,kA as getKeyboardValue,zu as getLabelsForValues,dh as getLinePathSegments,uh as getLineSeriesGeometry,IA as getNearestThumbIndex,CA as getPercentage,Ue as getPersistOptionLabel,gu as getPresetOperators,yu as getPresetOperatorsWithLabels,Et as getPresetSlotId,ye as getResponsiveFontSizeCss,ht as getTagBoldText,EA as getValueFromPosition,Ru as getValueLabels,Du as getValueStrings,Um as hasChartData,bh as hasLineChartData,It as isConfiguredFilter,Ye as isCustomOperator,Xe as isPersistOptionEnabled,Fe as isRangeOperator,xe as isResponsiveObject,dt as isValidFilterConfig,ut as isValidFilterType,bd as jaJP,Ch as mapTimeSeriesChartData,Nu as mergeValues,Eu as normalizeForSearch,nh as normalizeStackedSeriesToPercent,vu as overrideOperatorLabels,Vu as overrideValueLabels,Z as palette,ch as pathFromPoints,AA as preventScroll,MA as preventTextSelection,Ie as resolveFontWeight,$A as restoreTextSelection,wu as selectOperators,Cu as selectOperatorsByIndex,Su as selectValues,Ou as selectValuesByIndex,Tu as sortValues,NI as toGroupedItems,W as trimVertical,nu as useAdvancedFilterState,Ea as useContextMenu2Anchor,iu as useFilterMenuPosition,jy as useFilterState,m$ as useNavigationRail,LA as useSlider,VA as useSliderScale,ne as useTheme,vd as zhCN};
|
|
5733
5733
|
//# sourceMappingURL=index.es.js.map
|