ingred-ui 37.1.3 → 37.2.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/components/AdvancedFilter/types.d.ts +2 -1
- package/dist/components/DualListBox2/styled.d.ts +1 -0
- package/dist/components/FilterInputAbstract/types.d.ts +2 -1
- package/dist/components/Input/types.d.ts +2 -1
- package/dist/components/Switch/types.d.ts +3 -2
- package/dist/components/Tag/types.d.ts +4 -4
- package/dist/index.es.js +104 -95
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +275 -266
- package/dist/index.js.map +1 -1
- package/dist/styles/index.d.ts +1 -0
- package/dist/styles/radius.d.ts +26 -0
- package/dist/themes/createTheme.d.ts +10 -0
- package/package.json +10 -10
package/dist/index.es.js
CHANGED
|
@@ -12,7 +12,7 @@ import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRe
|
|
|
12
12
|
outline: none;
|
|
13
13
|
${q}
|
|
14
14
|
box-shadow: 0 0 0 ${3}px ${e.palette.primary.highlight};
|
|
15
|
-
`;function ne(e={}){const{palette:t={},shadow:n,spacing:r,radius:i}=e,
|
|
15
|
+
`;function ne(e={}){const{palette:t={},shadow:n,spacing:r,radius:i,radii:a={}}=e,o=R(e,["palette","shadow","spacing","radius","radii"]),l=_(t),s=n||F(l),c=r||8,d=i||8,u=Object.assign(Object.assign({},(e=>({none:0,xs:e/4,small:e/2,medium:.75*e,large:e,xl:1.25*e,full:9999}))(d)),a),p=P({palette:l,shadow:s,spacing:c,depth:K,radius:d,radii:u},o);return p.interaction={focus:te(p)},p}const re=ne();function ie(e){var t;return function(e){var t,n,r,i,a;return Object.assign(Object.assign({},e),{series:null!==(t=e.series)&&void 0!==t?t:j.chart.series,layout:Object.assign(Object.assign({},j.chart.layout),e.layout),motion:Object.assign(Object.assign({},j.chart.motion),e.motion),axis:Object.assign(Object.assign(Object.assign({},j.chart.axis),e.axis),{color:j.chart.axis.color}),grid:j.chart.grid,line:Object.assign(Object.assign(Object.assign({},j.chart.line),e.line),{pointBorderColor:null!==(n=e.line.pointBorderColor)&&void 0!==n?n:j.chart.line.pointBorderColor,crosshairColor:null!==(r=e.line.crosshairColor)&&void 0!==r?r:j.chart.line.crosshairColor,crosshairStrokeWidth:null!==(i=e.line.crosshairStrokeWidth)&&void 0!==i?i:j.chart.line.crosshairStrokeWidth,crosshairOpacity:null!==(a=e.line.crosshairOpacity)&&void 0!==a?a:j.chart.line.crosshairOpacity}),legend:Object.assign(Object.assign({},j.chart.legend),e.legend),tooltip:Object.assign(Object.assign(Object.assign({},j.chart.tooltip),e.tooltip),{background:j.chart.tooltip.background,text:j.chart.tooltip.text,shadow:j.chart.tooltip.shadow}),referenceLine:Object.assign(Object.assign(Object.assign({},j.chart.referenceLine),e.referenceLine),{dasharray:j.chart.referenceLine.dasharray}),area:Object.assign(Object.assign({},j.chart.area),e.area),pie:Object.assign(Object.assign(Object.assign({},j.chart.pie),e.pie),{label:Object.assign(Object.assign({},j.chart.pie.label),e.pie.label),innerLabel:Object.assign(Object.assign({},j.chart.pie.innerLabel),e.pie.innerLabel),centerTotal:Object.assign(Object.assign({},j.chart.pie.centerTotal),e.pie.centerTotal)})})}(P(j.chart,null!==(t=e.palette.chart)&&void 0!==t?t:{}))}function ae(e,t){var n;const r=ie(e),i=null!=t?null===(n=r.colorSchemes)||void 0===n?void 0:n[t]:void 0;return[...(a=null!=i?i:r.series).main,...a.sub];var a}function oe(){return e.useContext(x)||re}const le=v.span`
|
|
16
16
|
display: block;
|
|
17
17
|
position: relative;
|
|
18
18
|
width: ${({size:e})=>`${e}px`};
|
|
@@ -99,7 +99,7 @@ import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRe
|
|
|
99
99
|
padding: ${({theme:e})=>.75*e.spacing}px;
|
|
100
100
|
border: 1px solid ${({borderColor:e})=>e};
|
|
101
101
|
cursor: pointer;
|
|
102
|
-
border-radius: ${({theme:e})=>e.
|
|
102
|
+
border-radius: ${({theme:e})=>e.radii.large}px;
|
|
103
103
|
background-color: ${({normalBackgroundColor:e})=>e};
|
|
104
104
|
white-space: nowrap;
|
|
105
105
|
transition: background-color 0.3s;
|
|
@@ -111,7 +111,7 @@ import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRe
|
|
|
111
111
|
&:disabled {
|
|
112
112
|
cursor: not-allowed;
|
|
113
113
|
}
|
|
114
|
-
`,Se=new Set;function Ve(e,t){"production"!==process.env.NODE_ENV&&(Se.has(e)||(Se.add(e),console.warn(`[ingred-ui] ${t}`)))}const Oe=e.forwardRef(function(t,n){var{children:r,icon:i,color:a="primary",disabled:o}=t,l=R(t,["children","icon","color","disabled"]);Ve("ActionButton",'ActionButton は非推奨です。代わりに Button の Subtle(color="primarySubtle" 等)を使用してください。');const s=oe(),c=((e,t)=>t?"disabled":e)(a,o),d=(e=>({primary:e.palette.primary.softLight,warning:e.palette.danger.softLight,disabled:e.palette.neutral.light}))(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:e.palette.danger.softLight,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(He,Object.assign({},l,{ref:n,borderColor:d,normalBackgroundColor:u,hoverBackgroundColor:p,disabled:o}),i&&e.createElement(ue,{name:i,color:m}),r&&e.createElement(Le,{color:m,size:"md"},r))}),De={small:{height:"20px",fontSize:"11px",padding:"2px 4px",iconSize:"12px",borderRadius:"
|
|
114
|
+
`,Se=new Set;function Ve(e,t){"production"!==process.env.NODE_ENV&&(Se.has(e)||(Se.add(e),console.warn(`[ingred-ui] ${t}`)))}const Oe=e.forwardRef(function(t,n){var{children:r,icon:i,color:a="primary",disabled:o}=t,l=R(t,["children","icon","color","disabled"]);Ve("ActionButton",'ActionButton は非推奨です。代わりに Button の Subtle(color="primarySubtle" 等)を使用してください。');const s=oe(),c=((e,t)=>t?"disabled":e)(a,o),d=(e=>({primary:e.palette.primary.softLight,warning:e.palette.danger.softLight,disabled:e.palette.neutral.light}))(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:e.palette.danger.softLight,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(He,Object.assign({},l,{ref:n,borderColor:d,normalBackgroundColor:u,hoverBackgroundColor:p,disabled:o}),i&&e.createElement(ue,{name:i,color:m}),r&&e.createElement(Le,{color:m,size:"md"},r))}),De={small:{height:"20px",fontSize:"11px",padding:"2px 4px",iconSize:"12px",borderRadius:"small",prependGap:"2px",itemGap:"4px"},medium:{height:"22px",fontSize:"12px",padding:"2px 4px",iconSize:"14px",borderRadius:"small",prependGap:"2px",itemGap:"6px"},large:{height:"26px",fontSize:"13px",padding:"4px 6px",iconSize:"16px",borderRadius:"small",prependGap:"4px",itemGap:"8px"},xl:{height:"30px",fontSize:"14px",padding:"4px 8px",iconSize:"16px",borderRadius:"small",prependGap:"4px",itemGap:"8px"}},Re=e=>({light:{background:e.palette.neutral.pure,border:e.palette.neutral.lighter,text:e.palette.neutral.ultraDark,hoverIcon:e.palette.neutral.deepDark},dark:{background:e.palette.neutral.highlight,border:e.palette.neutral.lighter,text:e.palette.neutral.ultraDark,hoverIcon:e.palette.neutral.deepDark}}),ze=v.div`
|
|
115
115
|
isolation: isolate;
|
|
116
116
|
display: inline-flex;
|
|
117
117
|
align-items: center;
|
|
@@ -120,7 +120,7 @@ import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRe
|
|
|
120
120
|
padding: ${({$size:e})=>De[e].padding};
|
|
121
121
|
border: 1px solid
|
|
122
122
|
${({$variant:e,theme:t})=>Re(t)[e].border};
|
|
123
|
-
border-radius: ${({$size:e})=>De[e].borderRadius};
|
|
123
|
+
border-radius: ${({$size:e,theme:t})=>t.radii[De[e].borderRadius]}px;
|
|
124
124
|
font-weight: 400;
|
|
125
125
|
font-size: ${({$size:e})=>De[e].fontSize};
|
|
126
126
|
line-height: 1.2;
|
|
@@ -163,7 +163,7 @@ import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRe
|
|
|
163
163
|
width: 100%;
|
|
164
164
|
height: 100%;
|
|
165
165
|
}
|
|
166
|
-
`,Be=({label:e,size:n="medium",variant:r="light",onRemove:i,className:a,disabled:o=!1,boldText:s,onClick:c,onPointerDown:d,"aria-label":u,"data-tag":p,prepend:m})=>{const h=o?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"),a=e.split(i);return t.createElement(t.Fragment,null,a.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===ue?t.cloneElement(m,{color:null!==(e=m.props.color)&&void 0!==e?e:"currentColor",size:parseInt(De[n].iconSize,10)}):m},[m,n]);return t.createElement(ze,{$size:n,$variant:r,$disabled:o,$clickable:g,className:a,"data-tag":p,role:g?"button":void 0,tabIndex:g&&!o?0:void 0,"aria-label":u,onPointerDown:d,onClick:c?e=>{!o&&c&&(e.stopPropagation(),c())}:void 0},null!=b&&t.createElement(Ne,{$size:n},b),t.createElement(Te,{$size:n,$variant:r,$disabled:o,$hasTrailing:!!i},f),i&&t.createElement(Ze,{type:"button","aria-label":"削除",$size:n,$variant:r,$disabled:o,onClick:e=>{e.stopPropagation(),null==h||h()}},t.createElement(ue,{name:"close_circle",type:"fill",color:"currentColor",size:parseInt(De[n].iconSize,10)})))},Pe={small:{height:"30px",fontSize:"12px",padding:"0 6px",borderRadius:"
|
|
166
|
+
`,Be=({label:e,size:n="medium",variant:r="light",onRemove:i,className:a,disabled:o=!1,boldText:s,onClick:c,onPointerDown:d,"aria-label":u,"data-tag":p,prepend:m})=>{const h=o?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"),a=e.split(i);return t.createElement(t.Fragment,null,a.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===ue?t.cloneElement(m,{color:null!==(e=m.props.color)&&void 0!==e?e:"currentColor",size:parseInt(De[n].iconSize,10)}):m},[m,n]);return t.createElement(ze,{$size:n,$variant:r,$disabled:o,$clickable:g,className:a,"data-tag":p,role:g?"button":void 0,tabIndex:g&&!o?0:void 0,"aria-label":u,onPointerDown:d,onClick:c?e=>{!o&&c&&(e.stopPropagation(),c())}:void 0},null!=b&&t.createElement(Ne,{$size:n},b),t.createElement(Te,{$size:n,$variant:r,$disabled:o,$hasTrailing:!!i},f),i&&t.createElement(Ze,{type:"button","aria-label":"削除",$size:n,$variant:r,$disabled:o,onClick:e=>{e.stopPropagation(),null==h||h()}},t.createElement(ue,{name:"close_circle",type:"fill",color:"currentColor",size:parseInt(De[n].iconSize,10)})))},Pe={small:{height:"30px",fontSize:"12px",padding:"0 6px",borderRadius:"small",iconSize:14},medium:{height:"32px",fontSize:"13px",padding:"0 8px",borderRadius:"medium",iconSize:16},large:{height:"40px",fontSize:"14px",padding:"0 10px",borderRadius:"medium",iconSize:18}},je=e=>({light:{background:e.palette.background.default,borderColor:e.palette.neutral.lighter,hoverBorderColor:e.palette.primary.base,color:e.palette.text.hint},dark:{background:e.palette.neutral.ultraLight,borderColor:e.palette.neutral.lighter,hoverBorderColor:e.palette.primary.base,color:e.palette.text.hint}}),_e={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,CONFIG_PANEL_VIEWPORT_MARGIN:8,CONFIG_PANEL_CLIP_SHADOW_MARGIN:24,TRANSITION_DURATION:200,MIN_VALUE_LENGTH:1},Fe="条件を維持",Ge="[data-tag]",Ye='[role="menu"]',We='[data-advanced-filter-trigger="true"]',Xe='[role="button"]',Je=(e,t)=>{if(!t)return!1;const n=t.operators.find(t=>t.value===e);return(null==n?void 0:n.isRange)||!1},Ue=(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},Qe=()=>`filter_${Date.now()}_${Math.random().toString(36).substring(2,11)}`,Ke=e=>{var t;return!0===(null===(t=null==e?void 0:e.persistOption)||void 0===t?void 0:t.enabled)},qe=(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},et=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:Fe},tt=(e,t)=>void 0===t.persist?e:Object.assign(Object.assign({},e),{persist:t.persist}),nt=(e,t,n)=>n.conditions&&n.conditions.length>0?tt({id:Qe(),type:e,typeLabel:t,operator:"",operatorLabel:"",values:[],valueLabels:[],isRange:!1,conditions:n.conditions},n):tt({id:Qe(),type:e,typeLabel:t,operator:n.operator,operatorLabel:n.operatorLabel,values:n.values,valueLabels:n.valueLabels,isRange:n.isRange},n),rt=(e,t)=>t.conditions&&t.conditions.length>0?tt(Object.assign(Object.assign({},e),{operator:"",operatorLabel:"",values:[],valueLabels:[],isRange:!1,conditions:t.conditions}),t):tt(Object.assign(Object.assign({},e),{operator:t.operator,operatorLabel:t.operatorLabel,values:t.values,valueLabels:t.valueLabels,isRange:t.isRange,conditions:void 0}),t),it=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"},at=e=>(null==e?void 0:e.operators)||[],ot=(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"},lt=e=>(null==e?void 0:e.placeholder)||"値を入力",st=(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)||[]},ct=e=>(null==e?void 0:e.dateFormat)||"YYYY-MM-DD",dt=(e,t,n)=>0===e.length?"":t&&2===e.length?`${e[0]} - ${e[1]}`:e.join(n),ut=e=>{const t=e.conditions.filter(e=>e.valueLabels.length>0).map((e,t)=>{const{operatorLabel:n,valueLabels:r,isRange:i}=e,a=0===t?`が${n}`:n;return i&&2===r.length?`${a} ${r[0]} - ${r[1]}`:`${a} ${r.join(", ")}`});return`${e.typeLabel} ${t.join(" & ")}`},pt=e=>{if(e.conditions&&e.conditions.length>0)return ut(e);const{typeLabel:t,operatorLabel:n,valueLabels:r,isRange:i}=e,a=`が${n}`,o=dt(r,i,", ");return o?`${t} ${a} ${o}`:`${t} ${a}`},mt=e=>{if(e.conditions&&e.conditions.length>0)return ut(e);const{typeLabel:t,operatorLabel:n,valueLabels:r,isRange:i}=e,a=`が${n}`,o=dt(r,i,"\n");return o?`${t} ${a}\n${o}`:`${t} ${a}`},ht=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),gt=(e,t)=>t.some(t=>t.type===e),ft=(e,t)=>e.filter(e=>!t.some(t=>t.type===e.type)),bt=(e,t)=>{var n;return t?(null===(n=e.find(e=>e.type===t))||void 0===n?void 0:n.label)||t:""},vt=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 dt(e.valueLabels,e.isRange,", ")},xt=e=>void 0!==(null==e?void 0:e.multiConditionConfigs)&&e.multiConditionConfigs.length>0,yt=e=>(null==e?void 0:e.multiConditionConfigs)||[],wt=(e,t)=>{var n;return null===(n=null==e?void 0:e.multiConditionConfigs)||void 0===n?void 0:n.find(e=>e.conditionKey===t)},Ct=(e,t,n)=>{const r=e.enabledWhen;if(!r)return!1;const i=t.find(e=>e.conditionKey===r.conditionKey),a=wt(n,r.conditionKey);if(!i||!a)return!0;const o=((e,t)=>{const n=$t(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,a);return 0===o.length||!o.some(e=>r.values.includes(e))},Et=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"},It=e=>e.operators||[],$t=(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"},Mt=(e,t)=>{const n=e.operators.find(e=>e.value===t);return(null==n?void 0:n.isRange)||!1},kt=(e,t)=>{for(const n of yt(e)){const e=t.find(e=>e.conditionKey===n.conditionKey);if(!e)continue;if("text"===$t(n,e.operator)&&!Mt(n,e.operator))return e.id}return null},At=e=>`slot-${e}`,Lt=e=>e.conditions&&e.conditions.length>0?e.conditions.some(e=>e.valueLabels.length>0):e.valueLabels.length>0,Ht=e=>e.filter(Lt),St=(e,t)=>e.map(e=>{var n,r;const i=null!==(n=t.find(t=>t.type===e.type&&Lt(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:At(e.type),filter:i}}),Vt=s({isRoot:!1,activeIndex:null,maxActiveIndex:-1,setActiveIndex:()=>{},close:()=>{}}),Ot=y`
|
|
167
167
|
display: flex;
|
|
168
168
|
align-items: center;
|
|
169
169
|
box-sizing: border-box;
|
|
@@ -171,7 +171,7 @@ import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRe
|
|
|
171
171
|
min-height: 36px;
|
|
172
172
|
padding: 8px;
|
|
173
173
|
border: 0;
|
|
174
|
-
border-radius:
|
|
174
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
175
175
|
background: transparent;
|
|
176
176
|
cursor: pointer;
|
|
177
177
|
transition: background 0.3s;
|
|
@@ -267,7 +267,7 @@ import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRe
|
|
|
267
267
|
min-height: ${({$size:e})=>Pe[e].height};
|
|
268
268
|
font-size: ${({$size:e})=>Pe[e].fontSize};
|
|
269
269
|
padding: ${({$size:e})=>Pe[e].padding};
|
|
270
|
-
border-radius: ${({$size:e})=>Pe[e].borderRadius};
|
|
270
|
+
border-radius: ${({$size:e,theme:t})=>t.radii[Pe[e].borderRadius]}px;
|
|
271
271
|
|
|
272
272
|
/* バリアントに基づくスタイル */
|
|
273
273
|
background: ${({$variant:e,theme:t})=>je(t)[e].background};
|
|
@@ -358,7 +358,7 @@ import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRe
|
|
|
358
358
|
padding: 8px;
|
|
359
359
|
background: ${({theme:e})=>e.palette.neutral.pure};
|
|
360
360
|
border: 1px solid ${({theme:e})=>e.palette.neutral.softLight};
|
|
361
|
-
border-radius:
|
|
361
|
+
border-radius: ${({theme:e})=>e.radii.medium}px;
|
|
362
362
|
box-shadow: ${({theme:e})=>e.shadow.dropdown};
|
|
363
363
|
z-index: ${({theme:e})=>e.depth.configPanel};
|
|
364
364
|
display: ${({$isOpen:e})=>e?"block":"none"};
|
|
@@ -385,7 +385,7 @@ import*as e from"react";import t,{forwardRef as n,useId as r,useState as i,useRe
|
|
|
385
385
|
display: flex;
|
|
386
386
|
align-items: center;
|
|
387
387
|
gap: 8px;
|
|
388
|
-
border-radius:
|
|
388
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
389
389
|
padding: 0 8px;
|
|
390
390
|
margin-bottom: 8px;
|
|
391
391
|
background: ${({theme:e})=>e.palette.neutral.highlight};
|
|
@@ -584,7 +584,7 @@ var Gr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
584
584
|
width: 24px;
|
|
585
585
|
`,po=v.div`
|
|
586
586
|
flex-grow: 1;
|
|
587
|
-
`,mo=({id:e,children:n})=>t.createElement(co,{"data-sortable-fixed-id":String(e)},t.createElement(uo,{"aria-hidden":!0}),t.createElement(po,null,n));mo.displayName=to;const ho={small:{height:"28px",fontSize:"12px",padding:"0 6px",borderRadius:"
|
|
587
|
+
`,mo=({id:e,children:n})=>t.createElement(co,{"data-sortable-fixed-id":String(e)},t.createElement(uo,{"aria-hidden":!0}),t.createElement(po,null,n));mo.displayName=to;const ho={small:{height:"28px",fontSize:"12px",padding:"0 6px",borderRadius:"small",iconSize:14},medium:{height:"34px",fontSize:"13px",padding:"0 8px",borderRadius:"medium",iconSize:16},large:{height:"40px",fontSize:"14px",padding:"0 10px",borderRadius:"medium",iconSize:18}},go=e=>({light:{background:e.palette.background.default,borderColor:e.palette.neutral.lighter,hoverBorderColor:e.palette.primary.base,focusBorderColor:e.palette.primary.base,focusShadowColor:`${e.palette.primary.softLight}66`},dark:{background:e.palette.neutral.ultraLight,borderColor:e.palette.neutral.lighter,hoverBorderColor:e.palette.primary.base,focusBorderColor:e.palette.primary.base,focusShadowColor:`${e.palette.primary.softLight}66`}}),fo=e=>({borderColor:e.palette.danger.base,shadowColor:`${e.palette.danger.lighter}66`,placeholderColor:e.palette.danger.lighter}),bo=(e,{error:t=!1,disabled:n=!1}={})=>n?e.palette.text.disabled:t?fo(e).placeholderColor:e.palette.text.hint,vo=v.div`
|
|
588
588
|
position: relative;
|
|
589
589
|
isolation: isolate;
|
|
590
590
|
display: ${({$width:e})=>"100%"===e||"string"==typeof e&&e.includes("100%")?"block":"inline-block"};
|
|
@@ -595,7 +595,7 @@ var Gr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
595
595
|
transform: translateY(-50%);
|
|
596
596
|
${({position:e})=>"start"===e?"left: 6px":"right: 6px"};
|
|
597
597
|
padding: 2px;
|
|
598
|
-
border-radius:
|
|
598
|
+
border-radius: ${({theme:e})=>e.radii.xs}px;
|
|
599
599
|
display: flex;
|
|
600
600
|
align-items: center;
|
|
601
601
|
justify-content: center;
|
|
@@ -621,7 +621,7 @@ var Gr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
621
621
|
height: ${({$size:e="medium",as:t})=>"textarea"===t?"auto":ho[e].height};
|
|
622
622
|
font-size: ${({$size:e="medium",$isIOS:t})=>{const n=ho[e].fontSize;if(t){return parseFloat(n)<16?"16px":n}return n}};
|
|
623
623
|
padding: ${({$size:e="medium",as:t,$hasStartIcon:n,$hasEndIcon:r})=>{if("textarea"===t)return"8px";const i=ho[e].padding,[a,o]=i.split(" ");let l=o,s=o;return n&&(l="32px"),r&&(s="32px"),`${a} ${s} ${a} ${l}`}};
|
|
624
|
-
border-radius: ${({$size:e="medium"})=>ho[e].borderRadius};
|
|
624
|
+
border-radius: ${({$size:e="medium",theme:t})=>t.radii[ho[e].borderRadius]}px;
|
|
625
625
|
|
|
626
626
|
/* バリアントに基づくスタイル */
|
|
627
627
|
background-color: ${({$error:e,$variant:t="light",theme:n})=>{const r=go(n);return e?n.palette.danger.highlight:r[t].background}};
|
|
@@ -719,7 +719,7 @@ var Gr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
719
719
|
`,Oo=v.div`
|
|
720
720
|
padding: 8px;
|
|
721
721
|
border: 1px solid ${({theme:e})=>e.palette.neutral.softLight};
|
|
722
|
-
border-radius:
|
|
722
|
+
border-radius: ${({theme:e})=>e.radii.medium}px;
|
|
723
723
|
box-shadow: ${({theme:e})=>e.shadow.dropdown};
|
|
724
724
|
background: ${({theme:e})=>e.palette.white};
|
|
725
725
|
animation: ${So} 0.1s ease-out;
|
|
@@ -775,7 +775,7 @@ var Gr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
775
775
|
);
|
|
776
776
|
z-index: 1;
|
|
777
777
|
`,Bo=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=oe(),{isRoot:I,close:$}=c(Vt),[M,k]=i(!1),A=a(null),L=a(null),[H,S]=i(!1),[V,O]=i(!1),D=Ra(`(max-width: ${J.MOBILE}px)`),R=d(()=>{const e=A.current;e&&S((({scrollTop:e,scrollHeight:t,clientHeight:n,epsilon:r=1})=>!(n<=0)&&t>n&&e<t-n-r)({scrollTop:e.scrollTop,scrollHeight:e.scrollHeight,clientHeight:e.clientHeight}))},[]),z=R,N=l(()=>!!V||(void 0!==n?n:M),[n,M,V]),T=d(()=>{$(),k(!1),O(!1),null==b||b(!1)},[$,k,O,b]),Z=function(){const e=Ai(),t=Di(),n=Oi();return Ei(()=>{const r={id:e,parentId:n};return null==t||t.addNode(r),()=>{null==t||t.removeNode(r)}},[t,e,n]),e}(),{refs:B,floatingStyles:P,context:j}=ya({nodeId:Z,open:N,onOpenChange:e=>{k(e),null==b||b(e)},placement:y,middleware:null!=w?w:[wr({mainAxis:5,crossAxis:0}),xr(()=>I?{allowedPlacements:["bottom-start","bottom-end","top-start","top-end"]}:{allowedPlacements:D?["bottom-start"]:["right-start","left-start"],autoAlignment:!1}),Er({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:Nr}),_=function(t,n){void 0===n&&(n={});const{open:r,onOpenChange:i,dataRef:a,elements:{domReference:o}}=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&&(jn(p.current,!0)&&d||"click"!==s&&(!r||!c||a.current.openEvent&&"mousedown"!==a.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:jn(p.current,!0)&&d||(!r||!c||a.current.openEvent&&"click"!==a.current.openEvent.type?i(!0,e.nativeEvent,"click"):i(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!u||ma(e)||(" "!==e.key||ha(o)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&i(!r||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||ma(e)||ha(o)||" "===e.key&&m.current&&(m.current=!1,i(!r||!c,e.nativeEvent,"click"))}}}:{},[l,a,s,d,u,o,c,r,i])}(j),F=Pi(j,{enabled:!I,mouseOnly:!0,delay:{open:100,close:V?999999:100},restMs:100,handleClose:Sa()}),G=va(j),[Y,W]=i(null),X=La(j),U=a([]),Q=Aa(j,{listRef:U,activeIndex:Y,onNavigate:W,loop:!0,nested:!I}),K=Oa(U,[]),{getReferenceProps:q,getFloatingProps:ee,getItemProps:te}=Ca([_,F,G,X,Q]),ne=[Bo.displayName,Zt.displayName,Pa.displayName,Ya.displayName,Qa.displayName,Mo.displayName,Ao.displayName];o(()=>{Ho(r)&&B.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,B]),u(()=>{N||S(e=>!e&&e)},[N]),u(()=>{if(!N)return;const e=requestAnimationFrame(()=>{R()});return()=>cancelAnimationFrame(e)},[N,f,R]),o(()=>{if(!N)return;if(!window.ResizeObserver)return;const e=A.current,t=L.current;if(!e)return;const n=new window.ResizeObserver(()=>{R()});return n.observe(e),t&&n.observe(t),()=>{n.disconnect()}},[N,R]);const re=m(r)?r.props.ref:void 0,ie=ci([C,B.setReference,re]),ae=!Ho(r)&&m(r)?(()=>{const e=Object.assign({},r.props);return delete e.ref,e})():{};return t.createElement(t.Fragment,null,Ho(r)?null:h(r,Object.assign(Object.assign(Object.assign({},ae),q()),{ref:ie})),t.createElement(Ri,{id:Z},N&&t.createElement(ca,null,t.createElement(pa,{context:j,modal:!1,initialFocus:-1,returnFocus:!1},t.createElement(Vo,Object.assign({ref:B.setFloating,$maxHeight:g,style:Object.assign(Object.assign(Object.assign({},P),null!=w&&null!=s&&{width:`${s}px`}),{minWidth:null!=p?p:"auto"})},ee()),t.createElement(Oo,null,t.createElement(Vt.Provider,{value:{isRoot:!1,activeIndex:Y,maxActiveIndex:K,setActiveIndex:W,close:T}},t.createElement(Ka.Provider,{value:{isSorting:V,setIsSorting:O}},v&&t.createElement(Do,null,v),t.createElement(zo,null,t.createElement(No,{ref:A,onScroll:z},t.createElement(To,{ref:L,$hasStickyHeader:!!v,$hasStickyFooter:!!x},((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)&&ne.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=>{U.current[e.key]=t}},te()),e.props),{key:e.key})):e))(f))),H&&t.createElement(Zo,{"aria-hidden":"true"},t.createElement(ue,{name:"skip_down",type:"fill",size:"md",color:E.palette.black}))),x&&t.createElement(Ro,null,x)))))))))});Bo.displayName="ContextMenu2";const Po=({children:e})=>{if(!m(e)||"string"==typeof e.type||"function"!=typeof e.type&&"object"!=typeof e.type||!("displayName"in e.type)||e.type.displayName!==Bo.displayName)throw new Error("ContextMenu2Container には 1 つの ContextMenu2 しか入れられません");return t.createElement(Vt.Provider,{value:{isRoot:!0,close:()=>{},activeIndex:null,maxActiveIndex:-1,setActiveIndex:()=>{}}},t.createElement(zi,null,e))},jo=v.p`
|
|
778
|
-
border-radius:
|
|
778
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
779
779
|
padding: 4px 8px;
|
|
780
780
|
margin-bottom: 8px;
|
|
781
781
|
font-weight: 700;
|
|
@@ -926,13 +926,13 @@ var Gr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
926
926
|
animation: ${al} 1.5s ease-in-out infinite;
|
|
927
927
|
stroke-linecap: round;
|
|
928
928
|
stroke-miterlimit: 10;
|
|
929
|
-
`,dl=e.forwardRef(function({width:t="50px"},n){const r=oe();return e.createElement(ol,{ref:n,width:t},e.createElement(ll,{viewBox:"25 25 50 50"},e.createElement(sl,{cx:"50",cy:"50",r:"20",stroke:r.palette.neutral.softLight}),e.createElement(cl,{cx:"50",cy:"50",r:"20",stroke:r.palette.primary.base})))}),ul={small:"28px",medium:"34px",large:"40px"},pl={small:`${$e.sm}px`,medium:`${$e.md}px`,large:`${$e.xl}px`},ml={small:"4px",medium:"6px",large:"6px"},hl={small:"6px",medium:"8px",large:"10px"};function gl(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 fl=e.forwardRef(function(t,n){var{component:r,children:i,color:a="primary",textColor:o,inline:l=!0,size:s="medium",icon:c,loading:d,isQuiet:u=!1}=t,p=R(t,["component","children","color","textColor","inline","size","icon","loading","isQuiet"]);const m=oe(),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.neutral.lighter}`},hover:{background:e.palette.neutral.highlight,border:`1px solid ${e.palette.neutral.lighter}`},active:{background:e.palette.neutral.highlight,boxShadow:e.shadow["3dShadowActive"],border:`1px solid ${e.palette.neutral.lighter}`}},secondaryDark:{normal:{background:e.palette.neutral.highlight,color:e.palette.black,boxShadow:e.shadow["3dShadowBasic"],border:`1px solid ${e.palette.neutral.lighter}`},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)[a],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:gl(m,a),border:"none",boxShadow:"none"})}:h,[h,a,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(dl,{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(el,Object.assign({ref:n},p,{as:r||"button"},I,{size:s,inline:l,paddingInline:hl[s],normal:g.normal,hover:g.hover,active:g.active,borderRadius:ml[s],fontSize:pl[s],height:ul[s],color:a,$isQuiet:u,disabled:p.disabled||f}),C,C&&E&&e.createElement(rl,{pr:.5}),E&&e.createElement(qo,{$textColor:o},E))}),bl={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,勤労感謝の日"},vl={},xl=e=>{const t=e||(new Date).getFullYear(),n=t.toString();if(vl[n])return vl[n];const r=(e=>{const t=(e||(new Date).getFullYear()).toString();return bl[t]?bl[t]:"国民の祝日・休日月日,国民の祝日・休日名称"})(t),i=r.split("\n"),a=[];for(let e=1;e<i.length;e++){const t=i[e].trim();if(t){const[e,n]=t.split(",");e&&n&&a.push({date:e.trim(),name:n.trim()})}}return vl[n]=a,a};var yl="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},wl=[],Cl=[],El="undefined"!=typeof Uint8Array?Uint8Array:Array,Il=!1;function $l(){Il=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)wl[t]=e[t],Cl[e.charCodeAt(t)]=t;Cl["-".charCodeAt(0)]=62,Cl["_".charCodeAt(0)]=63}function Ml(e){return wl[e>>18&63]+wl[e>>12&63]+wl[e>>6&63]+wl[63&e]}function kl(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(Ml(r));return i.join("")}function Al(e){var t;Il||$l();for(var n=e.length,r=n%3,i="",a=[],o=16383,l=0,s=n-r;l<s;l+=o)a.push(kl(e,l,l+o>s?s:l+o));return 1===r?(t=e[n-1],i+=wl[t>>2],i+=wl[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=wl[t>>10],i+=wl[t>>4&63],i+=wl[t<<2&63],i+="="),a.push(i),a.join("")}function Ll(e,t,n,r,i){var a,o,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,a=m&(1<<-d)-1,m>>=-d,d+=l;d>0;a=256*a+e[t+u],u+=p,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=r;d>0;o=256*o+e[t+u],u+=p,d-=8);if(0===a)a=1-c;else{if(a===s)return o?NaN:1/0*(m?-1:1);o+=Math.pow(2,r),a-=c}return(m?-1:1)*o*Math.pow(2,a-r)}function Hl(e,t,n,r,i,a){var o,l,s,c=8*a-i-1,d=(1<<c)-1,u=d>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:a-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,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+u>=1?p/s:p*Math.pow(2,1-u))*s>=2&&(o++,s/=2),o+u>=d?(l=0,o=d):o+u>=1?(l=(t*s-1)*Math.pow(2,i),o+=u):(l=t*Math.pow(2,u-1)*Math.pow(2,i),o=0));i>=8;e[n+m]=255&l,m+=h,l/=256,i-=8);for(o=o<<i|l,c+=i;c>0;e[n+m]=255&o,m+=h,o/=256,c-=8);e[n+m-h]|=128*g}var Sl={}.toString,Vl=Array.isArray||function(e){return"[object Array]"==Sl.call(e)};function Ol(){return Rl.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Dl(e,t){if(Ol()<t)throw new RangeError("Invalid typed array length");return Rl.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Rl.prototype:(null===e&&(e=new Rl(t)),e.length=t),e}function Rl(e,t,n){if(!(Rl.TYPED_ARRAY_SUPPORT||this instanceof Rl))return new Rl(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 Tl(this,e)}return zl(this,e,t,n)}function zl(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);Rl.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Rl.prototype:e=Zl(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!Rl.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|jl(t,n);e=Dl(e,r);var i=e.write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(Pl(t)){var n=0|Bl(t.length);return 0===(e=Dl(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?Dl(e,0):Zl(e,t);if("Buffer"===t.type&&Vl(t.data))return Zl(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Nl(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 Tl(e,t){if(Nl(t),e=Dl(e,t<0?0:0|Bl(t)),!Rl.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function Zl(e,t){var n=t.length<0?0:0|Bl(t.length);e=Dl(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Bl(e){if(e>=Ol())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ol().toString(16)+" bytes");return 0|e}function Pl(e){return!(null==e||!e._isBuffer)}function jl(e,t){if(Pl(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 gs(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return fs(e).length;default:if(r)return gs(e).length;t=(""+t).toLowerCase(),r=!0}}function _l(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 is(this,t,n);case"utf8":case"utf-8":return es(this,t,n);case"ascii":return ns(this,t,n);case"latin1":case"binary":return rs(this,t,n);case"base64":return ql(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return as(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Fl(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Gl(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=Rl.from(t,r)),Pl(t))return 0===t.length?-1:Yl(e,t,n,r,i);if("number"==typeof t)return t&=255,Rl.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Yl(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Yl(e,t,n,r,i){var a,o=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;o=2,l/=2,s/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var d=-1;for(a=n;a<l;a++)if(c(e,a)===c(t,-1===d?0:a-d)){if(-1===d&&(d=a),a-d+1===s)return d*o}else-1!==d&&(a-=a-d),d=-1}else for(n+s>l&&(n=l-s),a=n;a>=0;a--){for(var u=!0,p=0;p<s;p++)if(c(e,a+p)!==c(t,p)){u=!1;break}if(u)return a}return-1}function Wl(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var l=parseInt(t.substr(2*o,2),16);if(isNaN(l))return o;e[n+o]=l}return o}function Xl(e,t,n,r){return bs(gs(t,e.length-n),e,n,r)}function Jl(e,t,n,r){return bs(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Ul(e,t,n,r){return Jl(e,t,n,r)}function Ql(e,t,n,r){return bs(fs(t),e,n,r)}function Kl(e,t,n,r){return bs(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function ql(e,t,n){return 0===t&&n===e.length?Al(e):Al(e.slice(t,n))}function es(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,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&(a=e[i+1]))&&(s=(31&c)<<6|63&a)>127&&(d=s);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(s=(15&c)<<12|(63&a)<<6|63&o)>2047&&(s<55296||s>57343)&&(d=s);break;case 4:a=e[i+1],o=e[i+2],l=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&l)&&(s=(15&c)<<18|(63&a)<<12|(63&o)<<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<=ts)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=ts));return n}(r)}Rl.TYPED_ARRAY_SUPPORT=void 0===yl.TYPED_ARRAY_SUPPORT||yl.TYPED_ARRAY_SUPPORT,Ol(),Rl.poolSize=8192,Rl._augment=function(e){return e.__proto__=Rl.prototype,e},Rl.from=function(e,t,n){return zl(null,e,t,n)},Rl.TYPED_ARRAY_SUPPORT&&(Rl.prototype.__proto__=Uint8Array.prototype,Rl.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Rl[Symbol.species]),Rl.alloc=function(e,t,n){return function(e,t,n,r){return Nl(t),t<=0?Dl(e,t):void 0!==n?"string"==typeof r?Dl(e,t).fill(n,r):Dl(e,t).fill(n):Dl(e,t)}(null,e,t,n)},Rl.allocUnsafe=function(e){return Tl(null,e)},Rl.allocUnsafeSlow=function(e){return Tl(null,e)},Rl.isBuffer=vs,Rl.compare=function(e,t){if(!Pl(e)||!Pl(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},Rl.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}},Rl.concat=function(e,t){if(!Vl(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Rl.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Rl.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!Pl(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},Rl.byteLength=jl,Rl.prototype._isBuffer=!0,Rl.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)Fl(this,t,t+1);return this},Rl.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)Fl(this,t,t+3),Fl(this,t+1,t+2);return this},Rl.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)Fl(this,t,t+7),Fl(this,t+1,t+6),Fl(this,t+2,t+5),Fl(this,t+3,t+4);return this},Rl.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?es(this,0,e):_l.apply(this,arguments)},Rl.prototype.equals=function(e){if(!Pl(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Rl.compare(this,e)},Rl.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+">"},Rl.prototype.compare=function(e,t,n,r,i){if(!Pl(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 a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),l=Math.min(a,o),s=this.slice(r,i),c=e.slice(t,n),d=0;d<l;++d)if(s[d]!==c[d]){a=s[d],o=c[d];break}return a<o?-1:o<a?1:0},Rl.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},Rl.prototype.indexOf=function(e,t,n){return Gl(this,e,t,n,!0)},Rl.prototype.lastIndexOf=function(e,t,n){return Gl(this,e,t,n,!1)},Rl.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 a=!1;;)switch(r){case"hex":return Wl(this,e,t,n);case"utf8":case"utf-8":return Xl(this,e,t,n);case"ascii":return Jl(this,e,t,n);case"latin1":case"binary":return Ul(this,e,t,n);case"base64":return Ql(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kl(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},Rl.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ts=4096;function ns(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 rs(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 is(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=hs(e[a]);return i}function as(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function os(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 ls(e,t,n,r,i,a){if(!Pl(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function ss(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function cs(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function ds(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function us(e,t,n,r,i){return i||ds(e,0,n,4),Hl(e,t,n,r,23,4),n+4}function ps(e,t,n,r,i){return i||ds(e,0,n,8),Hl(e,t,n,r,52,8),n+8}Rl.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),Rl.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=Rl.prototype;else{var i=t-e;n=new Rl(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},Rl.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||os(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},Rl.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||os(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},Rl.prototype.readUInt8=function(e,t){return t||os(e,1,this.length),this[e]},Rl.prototype.readUInt16LE=function(e,t){return t||os(e,2,this.length),this[e]|this[e+1]<<8},Rl.prototype.readUInt16BE=function(e,t){return t||os(e,2,this.length),this[e]<<8|this[e+1]},Rl.prototype.readUInt32LE=function(e,t){return t||os(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Rl.prototype.readUInt32BE=function(e,t){return t||os(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Rl.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||os(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},Rl.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||os(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},Rl.prototype.readInt8=function(e,t){return t||os(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Rl.prototype.readInt16LE=function(e,t){t||os(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Rl.prototype.readInt16BE=function(e,t){t||os(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Rl.prototype.readInt32LE=function(e,t){return t||os(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Rl.prototype.readInt32BE=function(e,t){return t||os(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Rl.prototype.readFloatLE=function(e,t){return t||os(e,4,this.length),Ll(this,e,!0,23,4)},Rl.prototype.readFloatBE=function(e,t){return t||os(e,4,this.length),Ll(this,e,!1,23,4)},Rl.prototype.readDoubleLE=function(e,t){return t||os(e,8,this.length),Ll(this,e,!0,52,8)},Rl.prototype.readDoubleBE=function(e,t){return t||os(e,8,this.length),Ll(this,e,!1,52,8)},Rl.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||ls(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},Rl.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||ls(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},Rl.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,1,255,0),Rl.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Rl.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,2,65535,0),Rl.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ss(this,e,t,!0),t+2},Rl.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,2,65535,0),Rl.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ss(this,e,t,!1),t+2},Rl.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,4,4294967295,0),Rl.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):cs(this,e,t,!0),t+4},Rl.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,4,4294967295,0),Rl.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):cs(this,e,t,!1),t+4},Rl.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);ls(this,e,t,n,i-1,-i)}var a=0,o=1,l=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===l&&0!==this[t+a-1]&&(l=1),this[t+a]=(e/o|0)-l&255;return t+n},Rl.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);ls(this,e,t,n,i-1,-i)}var a=n-1,o=1,l=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===l&&0!==this[t+a+1]&&(l=1),this[t+a]=(e/o|0)-l&255;return t+n},Rl.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,1,127,-128),Rl.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Rl.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,2,32767,-32768),Rl.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ss(this,e,t,!0),t+2},Rl.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,2,32767,-32768),Rl.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ss(this,e,t,!1),t+2},Rl.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,4,2147483647,-2147483648),Rl.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):cs(this,e,t,!0),t+4},Rl.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Rl.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):cs(this,e,t,!1),t+4},Rl.prototype.writeFloatLE=function(e,t,n){return us(this,e,t,!0,n)},Rl.prototype.writeFloatBE=function(e,t,n){return us(this,e,t,!1,n)},Rl.prototype.writeDoubleLE=function(e,t,n){return ps(this,e,t,!0,n)},Rl.prototype.writeDoubleBE=function(e,t,n){return ps(this,e,t,!1,n)},Rl.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,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!Rl.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},Rl.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&&!Rl.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 a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=Pl(e)?e:gs(new Rl(e,r).toString()),l=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%l]}return this};var ms=/[^+\/0-9A-Za-z-_]/g;function hs(e){return e<16?"0"+e.toString(16):e.toString(16)}function gs(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function fs(e){return function(e){var t,n,r,i,a,o;Il||$l();var l=e.length;if(l%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[l-2]?2:"="===e[l-1]?1:0,o=new El(3*l/4-a),r=a>0?l-4:l;var s=0;for(t=0,n=0;t<r;t+=4,n+=3)i=Cl[e.charCodeAt(t)]<<18|Cl[e.charCodeAt(t+1)]<<12|Cl[e.charCodeAt(t+2)]<<6|Cl[e.charCodeAt(t+3)],o[s++]=i>>16&255,o[s++]=i>>8&255,o[s++]=255&i;return 2===a?(i=Cl[e.charCodeAt(t)]<<2|Cl[e.charCodeAt(t+1)]>>4,o[s++]=255&i):1===a&&(i=Cl[e.charCodeAt(t)]<<10|Cl[e.charCodeAt(t+1)]<<4|Cl[e.charCodeAt(t+2)]>>2,o[s++]=i>>8&255,o[s++]=255&i),o}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(ms,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function bs(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 vs(e){return null!=e&&(!!e._isBuffer||xs(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&xs(e.slice(0,0))}(e))}function xs(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}class ys extends Error{constructor(e,t,n,...r){Array.isArray(t)&&(t=t.join(" ").trim()),super(t),void 0!==Error.captureStackTrace&&Error.captureStackTrace(this,ys),this.code=e;for(const e of r)for(const t in e){const r=e[t];this[t]=vs(r)?r.toString(n.encoding):null==r?r:JSON.parse(JSON.stringify(r))}}}const ws=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)},Cs=function(e){const t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];if(null==r||!1===r)t[n]={disabled:!0};else if("string"==typeof r||"number"==typeof r)t[n]={name:`${r}`};else{if(!ws(r))throw new ys("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(r)} at position ${n}`]);if("string"!=typeof r.name)throw new ys("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${n}`,"when column is an object literal"]);t[n]=r}}return t};class Es{constructor(e=100){this.size=e,this.length=0,this.buf=Rl.allocUnsafe(e)}prepend(e){if(vs(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=Rl.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 Rl.from(this.buf.slice(0,this.length))}resize(){const e=this.length;this.size=2*this.size;const t=Rl.allocUnsafe(this.size);this.buf.copy(t,0,0,e),this.buf=t}toString(e){return e?this.buf.toString(e,0,this.length):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}}const Is=function(e){const t=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((t,n)=>{const r=Rl.from(String.fromCharCode(n),e.encoding);return 63!==n&&1===r.length&&63===r[0]||t.push(r),t},[]),n=new Uint8Array(256);for(const e of t)n[e[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:e.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:1===e.from_line,escaping:!1,escapeIsQuote:vs(e.escape)&&vs(e.quote)&&0===Rl.compare(e.escape,e.quote),expectedRecordLength:Array.isArray(e.columns)?e.columns.length:void 0,field:new Es(20),firstLineToHeaders:e.cast_first_line_to_header,needMoreDataSize:Math.max(null!==e.comment?e.comment.length:0,...e.delimiter?e.delimiter.map(e=>e.length):[],e.delimiter_auto?1:0,null!==e.quote?e.quote.length:0,...t.map(e=>e.length)),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new Es(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:0===e.record_delimiter.length?0:Math.max(...e.record_delimiter.map(e=>e.length)),trimChars:[Rl.from(" ",e.encoding)[0],Rl.from("\t",e.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:t,timcharFirstBytes:n}},$s=function(e){return e.replace(/([A-Z])/g,function(e,t){return"_"+t.toLowerCase()})},Ms=function(e){const t={};for(const n in e)t[$s(n)]=e[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 ys("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 ys("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 ys("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 ys("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=Cs(t.columns);else{if(void 0!==t.columns&&null!==t.columns&&!1!==t.columns)throw new ys("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 ys("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 ys("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=Rl.from(t.comment,t.encoding)),!vs(t.comment))throw new ys("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 ys("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(t.comment_no_infix)}`],t);if(void 0===t.delimiter_auto||null===t.delimiter_auto||!1===t.delimiter_auto)t.delimiter_auto=!1;else if(!0===t.delimiter_auto)t.delimiter_auto={};else if(!ws(t.delimiter_auto))throw new ys("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","delimiter_auto must be a boolean or a configuration object,",`got ${JSON.stringify(t.delimiter_auto)}`],t);if(t.delimiter_auto){if(void 0===t.delimiter_auto.preferred)t.delimiter_auto.preferred={[",".charCodeAt(0)]:1.8,["\t".charCodeAt(0)]:1.8,[";".charCodeAt(0)]:1.6,[" ".charCodeAt(0)]:1.6,[":".charCodeAt(0)]:1.5,[".".charCodeAt(0)]:1.4,["/".charCodeAt(0)]:1.4};else if(!ws(t.delimiter_auto.preferred))throw new ys("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","preferred must be an object,",`got ${JSON.stringify(t.delimiter_auto.preferred)}`],t);if(void 0===t.delimiter_auto.score)t.delimiter_auto.score=(e,t)=>(e.total-e.std)*(t.preferred[e.char_code]||1);else if("function"!=typeof t.delimiter_auto.score)throw new ys("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","score must be a function,",`got ${JSON.stringify(t.delimiter_auto.score)}`],t);if(void 0===t.delimiter_auto.size)t.delimiter_auto.size=2048;else if("number"!=typeof t.delimiter_auto.size)throw new ys("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","size must be a number,",`got ${JSON.stringify(t.delimiter_auto.size)}`],t)}const n=JSON.stringify(t.delimiter);if(!1!==t.delimiter_auto&&(t.delimiter=[]),Array.isArray(t.delimiter)||(void 0!==t.delimiter&&null!==t.delimiter&&!1!==t.delimiter||(t.delimiter=Rl.from(",",t.encoding)),t.delimiter=[t.delimiter]),t.delimiter=t.delimiter.map(function(e){if("string"==typeof e&&(e=Rl.from(e,t.encoding)),!vs(e)||0===e.length)throw new ys("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${n}`],t);return e}),void 0===t.escape||!0===t.escape?t.escape=Rl.from('"',t.encoding):"string"==typeof t.escape?t.escape=Rl.from(t.escape,t.encoding):null!==t.escape&&!1!==t.escape||(t.escape=null),null!==t.escape&&!vs(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 ys("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 ys("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(vs(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 ys("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=Rl.from('"',t.encoding):"string"==typeof t.quote&&(t.quote=Rl.from(t.quote,t.encoding)),!vs(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||vs(t.record_delimiter)){if(0===t.record_delimiter.length)throw new ys("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 ys("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&&!vs(e))throw new ys("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 ys("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=Rl.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},ks=function(e,t){t||({delimiter_auto:t}=Ms({delimiter_auto:!0})),"string"==typeof e&&(e=Rl.from(e)),vs(e)&&(e=(e=>{const t=[],n=Ss({delimiter:[]}).parse(e,!0,e=>t.push(e),()=>{});if(void 0!==n)throw n;return t})(e));const n=Array(127).fill().map(()=>({lines:[]}));e.map(([e],t)=>{for(let r=0,i=e.length;r<i;r++){const i=e.charCodeAt(r);void 0===n[i].lines[t]&&(n[i].lines[t]=0),n[i].lines[t]++}}),n.map((e,n)=>{e.char_code=n,e.std=As(e.lines),e.total=e.lines.reduce((e,t)=>e+t,0),e.preferred=!!t.preferred[n],e.score=t.score(e,t)});const r=n.reduce((e,t)=>e.score>t.score?e:t,{});return String.fromCharCode(r.char_code)},As=function(e){const t=e.length;if(0===t)return 0;const n=e.reduce((e,t)=>e+t)/t;return Math.sqrt(e.map(e=>Math.pow(e-n,2)).reduce((e,t)=>e+t)/t)},Ls=function(e){return e.every(e=>null==e||e.toString&&""===e.toString().trim())},Hs={utf8:Rl.from([239,187,191]),utf16le:Rl.from([255,254])},Ss=function(e={}){const t=Ms(e);return{info:{bytes:0,bytes_records:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},original_options:e,options:t,state:Is(t),__needMoreData:function(e,t,n){if(n)return!1;const{encoding:r,escape:i,quote:a}=this.options,{quoting:o,needMoreDataSize:l,recordDelimiterMaxLength:s}=this.state;return t-e-1<Math.max(l,0===s?Rl.from("\r\n",r).length:s,o?(null===i?0:i.length)+a.length:0,o?a.length+s:0)},parse:function(e,t,n,r){const{bom:i,comment_no_infix:a,delimiter_auto:o,encoding:l,from_line:s,ltrim:c,max_record_size:d,raw:u,relax_quotes:p,rtrim:m,skip_empty_lines:h,to:g,to_line:f}=this.options;let{comment:b,escape:v,quote:x,record_delimiter:y}=this.options;const{bomSkipped:w,delimiterDiscovered:C,delimiterBufPrevious:E,rawBuffer:I,escapeIsQuote:$}=this.state;if(!C&&o){let n;if(n=void 0===E?e:void 0!==E&&void 0===e?E:Rl.concat([E,e]),e=void 0,!(t||n.length>o.size))return void(this.state.delimiterBufPrevious=n);this.options.delimiter=[Rl.from(ks(n,this.options.delimiter_auto))],this.state.previousBuf=n,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0}const{previousBuf:M}=this.state;let k;if(void 0===M){if(void 0===e)return void r();k=e}else k=void 0!==M&&void 0===e?M:Rl.concat([M,e]);if(!1===w)if(!1===i)this.state.bomSkipped=!0;else if(k.length<3){if(!1===t)return void(this.state.previousBuf=k)}else{for(const e in Hs)if(0===Hs[e].compare(k,0,Hs[e].length)){const t=Hs[e].length;this.state.bufBytesStart+=t,k=k.slice(t);const n=Ms({...this.original_options,encoding:e});for(const e in n)this.options[e]=n[e];({comment:b,escape:v,quote:x}=this.options);break}this.state.bomSkipped=!0}const A=k.length;let L;for(L=0;L<A&&!this.__needMoreData(L,A,t);L++){if(!0===this.state.wasRowDelimiter&&(this.info.lines++,this.state.wasRowDelimiter=!1),-1!==f&&this.info.lines>f)return this.state.stop=!0,void r();if(!1===this.state.quoting&&0===y.length){this.__autoDiscoverRecordDelimiter(k,L)&&(y=this.options.record_delimiter)}const e=k[L];if(!0===u&&I.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!==v&&!0===this.state.quoting&&this.__isEscape(k,L,e)&&L+v.length<A){if(!$){this.state.escaping=!0,L+=v.length-1;continue}if(this.__isQuote(k,L+v.length)){this.state.escaping=!0,L+=v.length-1;continue}}if(!1===this.state.commenting&&this.__isQuote(k,L))if(!0===this.state.quoting){const t=k[L+x.length],n=m&&this.__isCharTrimable(k,L+x.length),r=null!==b&&this.__compareBytes(b,k,L+x.length,t),i=this.__isDelimiter(k,L+x.length,t),a=0===y.length?this.__autoDiscoverRecordDelimiter(k,L+x.length):this.__isRecordDelimiter(t,k,L+x.length);if(null!==v&&this.__isEscape(k,L,e)&&this.__isQuote(k,L+v.length))L+=v.length-1;else{if(!t||i||a||r||n){this.state.quoting=!1,this.state.wasQuoting=!0,L+=x.length-1;continue}if(!1===p){const e=this.__error(new ys("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(x),L+=x.length-1}}else{if(0===this.state.field.length){this.state.quoting=!0,L+=x.length-1;continue}if(!1===p){const e=this.__infoField(),t=Object.keys(Hs).map(e=>!!Hs[e].equals(this.state.field.toString())&&e).filter(Boolean)[0],n=this.__error(new ys("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(l))}`,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,k,L);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)>=s){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),L+=t-1;continue}if(!0===h&&!1===this.state.wasQuoting&&0===this.state.record.length&&0===this.state.field.length){this.info.empty_lines++,L+=t-1;continue}this.info.bytes=this.state.bufBytesStart+L;const e=this.__onField();if(void 0!==e)return e;this.info.bytes=this.state.bufBytesStart+L+t;const i=this.__onRecord(n);if(void 0!==i)return i;if(-1!==g&&this.info.records>=g)return this.state.stop=!0,void r()}this.state.commenting=!1,L+=t-1;continue}if(this.state.commenting)continue;if(null!==b&&(!1===a||0===this.state.record.length&&0===this.state.field.length)){if(0!==this.__compareBytes(b,k,L,e)){this.state.commenting=!0;continue}}const i=this.__isDelimiter(k,L,e);if(0!==i){this.info.bytes=this.state.bufBytesStart+L;const e=this.__onField();if(void 0!==e)return e;L+=i-1;continue}}}if(!1===this.state.commenting&&0!==d&&this.state.record_length+this.state.field.length>d)return this.__error(new ys("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${d}`,`at line ${this.info.lines}`],this.options,this.__infoField()));const t=!1===c||!0===this.state.quoting||0!==this.state.field.length||!this.__isCharTrimable(k,L),i=!1===m||!1===this.state.wasQuoting;if(!0!==t||!0!==i){if(!0!==m||this.__isCharTrimable(k,L)){!1===t&&(L+=this.__isCharTrimable(k,L)-1);continue}return this.__error(new ys("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 ys("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+L;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+=L,this.state.previousBuf=k.slice(L);!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:a,relax_column_count:o,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&&Ls(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 ys("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 ys("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===o||!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&&Ls(p))this.__resetRecord();else{if(!0===this.state.recordHasError)return this.__resetRecord(),void(this.state.recordHasError=!1);if(this.info.records++,1===a||this.info.records>=a){const{objname:a}=this.options;if(!1!==t){const o={};for(let e=0,r=p.length;e<r;e++)void 0===t[e]||t[e].disabled||(!0===n&&Object.hasOwn(o,t[e].name)?Array.isArray(o[t[e].name])?o[t[e].name]=o[t[e].name].concat(p[e]):o[t[e].name]=[o[t[e].name],p[e]]:Object.defineProperty(o,t[e].name,{value:p[e],enumerable:!0,writable:!0,configurable:!0}));if(!0===c||!0===i){const t=Object.assign({record:o},!0===c?{raw:this.state.rawBuffer.toString(r)}:{},!0===i?{info:this.__infoRecord()}:{}),n=this.__push(void 0===a?t:[o[a],t],e);if(n)return n}else{const t=this.__push(void 0===a?o:[o[a],o],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===a?t:[p[a],t],e);if(n)return n}else{const t=this.__push(void 0===a?p:[p[a],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 ys("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=Cs(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:a}=this.state;if(!1===i)return this.__resetField();let o=this.state.field.toString(t);if(!0===n&&!1===a&&(o=o.trimRight()),!0===e){const[e,t]=this.__cast(o);if(void 0!==e)return e;o=t}this.state.record.push(o),0!==r&&"string"==typeof o&&(this.state.record_length+=o.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}this.info.bytes_records+=this.info.bytes,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]},__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},__isCharTrimable:function(e,t){const{timchars:n,timcharFirstBytes:r}=this.state,i=e[t];if(void 0===i||0===r[i])return 0;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},__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 a=r[i];if(a[0]===n){for(let n=1;n<a.length;n++)if(a[n]!==e[t+n])continue e;return a.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},__isFloat:function(e){return e-parseFloat(e)+1>=0},__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},__isRecordDelimiter:function(e,t,n){const{record_delimiter:r}=this.options,i=r.length;e:for(let a=0;a<i;a++){const i=r[a],o=i.length;if(i[0]===e){for(let e=1;e<o;e++)if(i[e]!==t[n+e])continue e;return i.length}}return 0},__autoDiscoverRecordDelimiter:function(e,t){const{encoding:n}=this.options,r=[Rl.from("\r\n",n),Rl.from("\n",n),Rl.from("\r",n)];e:for(let n=0;n<r.length;n++){const i=r[n].length;for(let a=0;a<i;a++)if(r[n][a]!==e[t+a])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(),bytes_records:this.info.bytes,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),n=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:n,column:!0===t?e.length>this.state.record.length?e[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}},Vs=e=>e.normalize("NFKC").toLowerCase(),Os=e=>{var t;const n=e.trim();if(!n)return[];const r=Vs(n);let i,a;try{const e=[];i=null!==(t=function(e,t={}){"string"==typeof e&&(e=Rl.from(e));const n=t&&t.objname?Object.create(null):[],r=Ss(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}(r,{columns:!1,trim:!0,delimiter:[","," ","\t"],relax_column_count:!0,cast:(t,n)=>(e[n.index]=!!n.quoting,t)})[0])&&void 0!==t?t:[],a=i.map((t,n)=>!!e[n])}catch(e){i=r.split(",").map(e=>e.trim()),a=i.map(()=>!1)}const o=[];return i.forEach((e,t)=>{e&&o.push({text:e,exact:!!a[t]})}),o},Ds=e=>{const t=Os(e);return 0===t.length?()=>!0:e=>{const n=Vs(e);return t.some(e=>e.exact?n===e.text:n.includes(e.text))}},Rs=v.div`
|
|
929
|
+
`,dl=e.forwardRef(function({width:t="50px"},n){const r=oe();return e.createElement(ol,{ref:n,width:t},e.createElement(ll,{viewBox:"25 25 50 50"},e.createElement(sl,{cx:"50",cy:"50",r:"20",stroke:r.palette.neutral.softLight}),e.createElement(cl,{cx:"50",cy:"50",r:"20",stroke:r.palette.primary.base})))}),ul={small:"28px",medium:"34px",large:"40px"},pl={small:`${$e.sm}px`,medium:`${$e.md}px`,large:`${$e.xl}px`},ml={small:"small",medium:"medium",large:"medium"},hl={small:"6px",medium:"8px",large:"10px"};function gl(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 fl=e.forwardRef(function(t,n){var{component:r,children:i,color:a="primary",textColor:o,inline:l=!0,size:s="medium",icon:c,loading:d,isQuiet:u=!1}=t,p=R(t,["component","children","color","textColor","inline","size","icon","loading","isQuiet"]);const m=oe(),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.neutral.lighter}`},hover:{background:e.palette.neutral.highlight,border:`1px solid ${e.palette.neutral.lighter}`},active:{background:e.palette.neutral.highlight,boxShadow:e.shadow["3dShadowActive"],border:`1px solid ${e.palette.neutral.lighter}`}},secondaryDark:{normal:{background:e.palette.neutral.highlight,color:e.palette.black,boxShadow:e.shadow["3dShadowBasic"],border:`1px solid ${e.palette.neutral.lighter}`},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)[a],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:gl(m,a),border:"none",boxShadow:"none"})}:h,[h,a,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(dl,{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(el,Object.assign({ref:n},p,{as:r||"button"},I,{size:s,inline:l,paddingInline:hl[s],normal:g.normal,hover:g.hover,active:g.active,borderRadius:`${m.radii[ml[s]]}px`,fontSize:pl[s],height:ul[s],color:a,$isQuiet:u,disabled:p.disabled||f}),C,C&&E&&e.createElement(rl,{pr:.5}),E&&e.createElement(qo,{$textColor:o},E))}),bl={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,勤労感謝の日"},vl={},xl=e=>{const t=e||(new Date).getFullYear(),n=t.toString();if(vl[n])return vl[n];const r=(e=>{const t=(e||(new Date).getFullYear()).toString();return bl[t]?bl[t]:"国民の祝日・休日月日,国民の祝日・休日名称"})(t),i=r.split("\n"),a=[];for(let e=1;e<i.length;e++){const t=i[e].trim();if(t){const[e,n]=t.split(",");e&&n&&a.push({date:e.trim(),name:n.trim()})}}return vl[n]=a,a};var yl="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},wl=[],Cl=[],El="undefined"!=typeof Uint8Array?Uint8Array:Array,Il=!1;function $l(){Il=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)wl[t]=e[t],Cl[e.charCodeAt(t)]=t;Cl["-".charCodeAt(0)]=62,Cl["_".charCodeAt(0)]=63}function Ml(e){return wl[e>>18&63]+wl[e>>12&63]+wl[e>>6&63]+wl[63&e]}function kl(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(Ml(r));return i.join("")}function Al(e){var t;Il||$l();for(var n=e.length,r=n%3,i="",a=[],o=16383,l=0,s=n-r;l<s;l+=o)a.push(kl(e,l,l+o>s?s:l+o));return 1===r?(t=e[n-1],i+=wl[t>>2],i+=wl[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=wl[t>>10],i+=wl[t>>4&63],i+=wl[t<<2&63],i+="="),a.push(i),a.join("")}function Ll(e,t,n,r,i){var a,o,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,a=m&(1<<-d)-1,m>>=-d,d+=l;d>0;a=256*a+e[t+u],u+=p,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=r;d>0;o=256*o+e[t+u],u+=p,d-=8);if(0===a)a=1-c;else{if(a===s)return o?NaN:1/0*(m?-1:1);o+=Math.pow(2,r),a-=c}return(m?-1:1)*o*Math.pow(2,a-r)}function Hl(e,t,n,r,i,a){var o,l,s,c=8*a-i-1,d=(1<<c)-1,u=d>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:a-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,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+u>=1?p/s:p*Math.pow(2,1-u))*s>=2&&(o++,s/=2),o+u>=d?(l=0,o=d):o+u>=1?(l=(t*s-1)*Math.pow(2,i),o+=u):(l=t*Math.pow(2,u-1)*Math.pow(2,i),o=0));i>=8;e[n+m]=255&l,m+=h,l/=256,i-=8);for(o=o<<i|l,c+=i;c>0;e[n+m]=255&o,m+=h,o/=256,c-=8);e[n+m-h]|=128*g}var Sl={}.toString,Vl=Array.isArray||function(e){return"[object Array]"==Sl.call(e)};function Ol(){return Rl.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Dl(e,t){if(Ol()<t)throw new RangeError("Invalid typed array length");return Rl.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Rl.prototype:(null===e&&(e=new Rl(t)),e.length=t),e}function Rl(e,t,n){if(!(Rl.TYPED_ARRAY_SUPPORT||this instanceof Rl))return new Rl(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 Tl(this,e)}return zl(this,e,t,n)}function zl(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);Rl.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Rl.prototype:e=Zl(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!Rl.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|jl(t,n);e=Dl(e,r);var i=e.write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(Pl(t)){var n=0|Bl(t.length);return 0===(e=Dl(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?Dl(e,0):Zl(e,t);if("Buffer"===t.type&&Vl(t.data))return Zl(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Nl(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 Tl(e,t){if(Nl(t),e=Dl(e,t<0?0:0|Bl(t)),!Rl.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function Zl(e,t){var n=t.length<0?0:0|Bl(t.length);e=Dl(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Bl(e){if(e>=Ol())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ol().toString(16)+" bytes");return 0|e}function Pl(e){return!(null==e||!e._isBuffer)}function jl(e,t){if(Pl(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 gs(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return fs(e).length;default:if(r)return gs(e).length;t=(""+t).toLowerCase(),r=!0}}function _l(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 is(this,t,n);case"utf8":case"utf-8":return es(this,t,n);case"ascii":return ns(this,t,n);case"latin1":case"binary":return rs(this,t,n);case"base64":return ql(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return as(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Fl(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Gl(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=Rl.from(t,r)),Pl(t))return 0===t.length?-1:Yl(e,t,n,r,i);if("number"==typeof t)return t&=255,Rl.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Yl(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Yl(e,t,n,r,i){var a,o=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;o=2,l/=2,s/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var d=-1;for(a=n;a<l;a++)if(c(e,a)===c(t,-1===d?0:a-d)){if(-1===d&&(d=a),a-d+1===s)return d*o}else-1!==d&&(a-=a-d),d=-1}else for(n+s>l&&(n=l-s),a=n;a>=0;a--){for(var u=!0,p=0;p<s;p++)if(c(e,a+p)!==c(t,p)){u=!1;break}if(u)return a}return-1}function Wl(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var l=parseInt(t.substr(2*o,2),16);if(isNaN(l))return o;e[n+o]=l}return o}function Xl(e,t,n,r){return bs(gs(t,e.length-n),e,n,r)}function Jl(e,t,n,r){return bs(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Ul(e,t,n,r){return Jl(e,t,n,r)}function Ql(e,t,n,r){return bs(fs(t),e,n,r)}function Kl(e,t,n,r){return bs(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function ql(e,t,n){return 0===t&&n===e.length?Al(e):Al(e.slice(t,n))}function es(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,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&(a=e[i+1]))&&(s=(31&c)<<6|63&a)>127&&(d=s);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(s=(15&c)<<12|(63&a)<<6|63&o)>2047&&(s<55296||s>57343)&&(d=s);break;case 4:a=e[i+1],o=e[i+2],l=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&l)&&(s=(15&c)<<18|(63&a)<<12|(63&o)<<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<=ts)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=ts));return n}(r)}Rl.TYPED_ARRAY_SUPPORT=void 0===yl.TYPED_ARRAY_SUPPORT||yl.TYPED_ARRAY_SUPPORT,Ol(),Rl.poolSize=8192,Rl._augment=function(e){return e.__proto__=Rl.prototype,e},Rl.from=function(e,t,n){return zl(null,e,t,n)},Rl.TYPED_ARRAY_SUPPORT&&(Rl.prototype.__proto__=Uint8Array.prototype,Rl.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Rl[Symbol.species]),Rl.alloc=function(e,t,n){return function(e,t,n,r){return Nl(t),t<=0?Dl(e,t):void 0!==n?"string"==typeof r?Dl(e,t).fill(n,r):Dl(e,t).fill(n):Dl(e,t)}(null,e,t,n)},Rl.allocUnsafe=function(e){return Tl(null,e)},Rl.allocUnsafeSlow=function(e){return Tl(null,e)},Rl.isBuffer=vs,Rl.compare=function(e,t){if(!Pl(e)||!Pl(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},Rl.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}},Rl.concat=function(e,t){if(!Vl(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Rl.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Rl.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!Pl(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},Rl.byteLength=jl,Rl.prototype._isBuffer=!0,Rl.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)Fl(this,t,t+1);return this},Rl.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)Fl(this,t,t+3),Fl(this,t+1,t+2);return this},Rl.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)Fl(this,t,t+7),Fl(this,t+1,t+6),Fl(this,t+2,t+5),Fl(this,t+3,t+4);return this},Rl.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?es(this,0,e):_l.apply(this,arguments)},Rl.prototype.equals=function(e){if(!Pl(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Rl.compare(this,e)},Rl.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+">"},Rl.prototype.compare=function(e,t,n,r,i){if(!Pl(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 a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),l=Math.min(a,o),s=this.slice(r,i),c=e.slice(t,n),d=0;d<l;++d)if(s[d]!==c[d]){a=s[d],o=c[d];break}return a<o?-1:o<a?1:0},Rl.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},Rl.prototype.indexOf=function(e,t,n){return Gl(this,e,t,n,!0)},Rl.prototype.lastIndexOf=function(e,t,n){return Gl(this,e,t,n,!1)},Rl.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 a=!1;;)switch(r){case"hex":return Wl(this,e,t,n);case"utf8":case"utf-8":return Xl(this,e,t,n);case"ascii":return Jl(this,e,t,n);case"latin1":case"binary":return Ul(this,e,t,n);case"base64":return Ql(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kl(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},Rl.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ts=4096;function ns(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 rs(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 is(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=hs(e[a]);return i}function as(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function os(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 ls(e,t,n,r,i,a){if(!Pl(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function ss(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function cs(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function ds(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function us(e,t,n,r,i){return i||ds(e,0,n,4),Hl(e,t,n,r,23,4),n+4}function ps(e,t,n,r,i){return i||ds(e,0,n,8),Hl(e,t,n,r,52,8),n+8}Rl.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),Rl.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=Rl.prototype;else{var i=t-e;n=new Rl(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},Rl.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||os(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},Rl.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||os(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},Rl.prototype.readUInt8=function(e,t){return t||os(e,1,this.length),this[e]},Rl.prototype.readUInt16LE=function(e,t){return t||os(e,2,this.length),this[e]|this[e+1]<<8},Rl.prototype.readUInt16BE=function(e,t){return t||os(e,2,this.length),this[e]<<8|this[e+1]},Rl.prototype.readUInt32LE=function(e,t){return t||os(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Rl.prototype.readUInt32BE=function(e,t){return t||os(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Rl.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||os(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},Rl.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||os(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},Rl.prototype.readInt8=function(e,t){return t||os(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Rl.prototype.readInt16LE=function(e,t){t||os(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Rl.prototype.readInt16BE=function(e,t){t||os(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Rl.prototype.readInt32LE=function(e,t){return t||os(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Rl.prototype.readInt32BE=function(e,t){return t||os(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Rl.prototype.readFloatLE=function(e,t){return t||os(e,4,this.length),Ll(this,e,!0,23,4)},Rl.prototype.readFloatBE=function(e,t){return t||os(e,4,this.length),Ll(this,e,!1,23,4)},Rl.prototype.readDoubleLE=function(e,t){return t||os(e,8,this.length),Ll(this,e,!0,52,8)},Rl.prototype.readDoubleBE=function(e,t){return t||os(e,8,this.length),Ll(this,e,!1,52,8)},Rl.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||ls(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},Rl.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||ls(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},Rl.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,1,255,0),Rl.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Rl.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,2,65535,0),Rl.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ss(this,e,t,!0),t+2},Rl.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,2,65535,0),Rl.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ss(this,e,t,!1),t+2},Rl.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,4,4294967295,0),Rl.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):cs(this,e,t,!0),t+4},Rl.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,4,4294967295,0),Rl.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):cs(this,e,t,!1),t+4},Rl.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);ls(this,e,t,n,i-1,-i)}var a=0,o=1,l=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===l&&0!==this[t+a-1]&&(l=1),this[t+a]=(e/o|0)-l&255;return t+n},Rl.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);ls(this,e,t,n,i-1,-i)}var a=n-1,o=1,l=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===l&&0!==this[t+a+1]&&(l=1),this[t+a]=(e/o|0)-l&255;return t+n},Rl.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,1,127,-128),Rl.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Rl.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,2,32767,-32768),Rl.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ss(this,e,t,!0),t+2},Rl.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,2,32767,-32768),Rl.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ss(this,e,t,!1),t+2},Rl.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,4,2147483647,-2147483648),Rl.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):cs(this,e,t,!0),t+4},Rl.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||ls(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Rl.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):cs(this,e,t,!1),t+4},Rl.prototype.writeFloatLE=function(e,t,n){return us(this,e,t,!0,n)},Rl.prototype.writeFloatBE=function(e,t,n){return us(this,e,t,!1,n)},Rl.prototype.writeDoubleLE=function(e,t,n){return ps(this,e,t,!0,n)},Rl.prototype.writeDoubleBE=function(e,t,n){return ps(this,e,t,!1,n)},Rl.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,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!Rl.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},Rl.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&&!Rl.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 a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=Pl(e)?e:gs(new Rl(e,r).toString()),l=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%l]}return this};var ms=/[^+\/0-9A-Za-z-_]/g;function hs(e){return e<16?"0"+e.toString(16):e.toString(16)}function gs(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function fs(e){return function(e){var t,n,r,i,a,o;Il||$l();var l=e.length;if(l%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[l-2]?2:"="===e[l-1]?1:0,o=new El(3*l/4-a),r=a>0?l-4:l;var s=0;for(t=0,n=0;t<r;t+=4,n+=3)i=Cl[e.charCodeAt(t)]<<18|Cl[e.charCodeAt(t+1)]<<12|Cl[e.charCodeAt(t+2)]<<6|Cl[e.charCodeAt(t+3)],o[s++]=i>>16&255,o[s++]=i>>8&255,o[s++]=255&i;return 2===a?(i=Cl[e.charCodeAt(t)]<<2|Cl[e.charCodeAt(t+1)]>>4,o[s++]=255&i):1===a&&(i=Cl[e.charCodeAt(t)]<<10|Cl[e.charCodeAt(t+1)]<<4|Cl[e.charCodeAt(t+2)]>>2,o[s++]=i>>8&255,o[s++]=255&i),o}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(ms,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function bs(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 vs(e){return null!=e&&(!!e._isBuffer||xs(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&xs(e.slice(0,0))}(e))}function xs(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}class ys extends Error{constructor(e,t,n,...r){Array.isArray(t)&&(t=t.join(" ").trim()),super(t),void 0!==Error.captureStackTrace&&Error.captureStackTrace(this,ys),this.code=e;for(const e of r)for(const t in e){const r=e[t];this[t]=vs(r)?r.toString(n.encoding):null==r?r:JSON.parse(JSON.stringify(r))}}}const ws=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)},Cs=function(e){const t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];if(null==r||!1===r)t[n]={disabled:!0};else if("string"==typeof r||"number"==typeof r)t[n]={name:`${r}`};else{if(!ws(r))throw new ys("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(r)} at position ${n}`]);if("string"!=typeof r.name)throw new ys("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${n}`,"when column is an object literal"]);t[n]=r}}return t};class Es{constructor(e=100){this.size=e,this.length=0,this.buf=Rl.allocUnsafe(e)}prepend(e){if(vs(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=Rl.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 Rl.from(this.buf.slice(0,this.length))}resize(){const e=this.length;this.size=2*this.size;const t=Rl.allocUnsafe(this.size);this.buf.copy(t,0,0,e),this.buf=t}toString(e){return e?this.buf.toString(e,0,this.length):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}}const Is=function(e){const t=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((t,n)=>{const r=Rl.from(String.fromCharCode(n),e.encoding);return 63!==n&&1===r.length&&63===r[0]||t.push(r),t},[]),n=new Uint8Array(256);for(const e of t)n[e[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:e.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:1===e.from_line,escaping:!1,escapeIsQuote:vs(e.escape)&&vs(e.quote)&&0===Rl.compare(e.escape,e.quote),expectedRecordLength:Array.isArray(e.columns)?e.columns.length:void 0,field:new Es(20),firstLineToHeaders:e.cast_first_line_to_header,needMoreDataSize:Math.max(null!==e.comment?e.comment.length:0,...e.delimiter?e.delimiter.map(e=>e.length):[],e.delimiter_auto?1:0,null!==e.quote?e.quote.length:0,...t.map(e=>e.length)),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new Es(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:0===e.record_delimiter.length?0:Math.max(...e.record_delimiter.map(e=>e.length)),trimChars:[Rl.from(" ",e.encoding)[0],Rl.from("\t",e.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:t,timcharFirstBytes:n}},$s=function(e){return e.replace(/([A-Z])/g,function(e,t){return"_"+t.toLowerCase()})},Ms=function(e){const t={};for(const n in e)t[$s(n)]=e[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 ys("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 ys("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 ys("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 ys("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=Cs(t.columns);else{if(void 0!==t.columns&&null!==t.columns&&!1!==t.columns)throw new ys("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 ys("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 ys("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=Rl.from(t.comment,t.encoding)),!vs(t.comment))throw new ys("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 ys("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(t.comment_no_infix)}`],t);if(void 0===t.delimiter_auto||null===t.delimiter_auto||!1===t.delimiter_auto)t.delimiter_auto=!1;else if(!0===t.delimiter_auto)t.delimiter_auto={};else if(!ws(t.delimiter_auto))throw new ys("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","delimiter_auto must be a boolean or a configuration object,",`got ${JSON.stringify(t.delimiter_auto)}`],t);if(t.delimiter_auto){if(void 0===t.delimiter_auto.preferred)t.delimiter_auto.preferred={[",".charCodeAt(0)]:1.8,["\t".charCodeAt(0)]:1.8,[";".charCodeAt(0)]:1.6,[" ".charCodeAt(0)]:1.6,[":".charCodeAt(0)]:1.5,[".".charCodeAt(0)]:1.4,["/".charCodeAt(0)]:1.4};else if(!ws(t.delimiter_auto.preferred))throw new ys("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","preferred must be an object,",`got ${JSON.stringify(t.delimiter_auto.preferred)}`],t);if(void 0===t.delimiter_auto.score)t.delimiter_auto.score=(e,t)=>(e.total-e.std)*(t.preferred[e.char_code]||1);else if("function"!=typeof t.delimiter_auto.score)throw new ys("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","score must be a function,",`got ${JSON.stringify(t.delimiter_auto.score)}`],t);if(void 0===t.delimiter_auto.size)t.delimiter_auto.size=2048;else if("number"!=typeof t.delimiter_auto.size)throw new ys("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","size must be a number,",`got ${JSON.stringify(t.delimiter_auto.size)}`],t)}const n=JSON.stringify(t.delimiter);if(!1!==t.delimiter_auto&&(t.delimiter=[]),Array.isArray(t.delimiter)||(void 0!==t.delimiter&&null!==t.delimiter&&!1!==t.delimiter||(t.delimiter=Rl.from(",",t.encoding)),t.delimiter=[t.delimiter]),t.delimiter=t.delimiter.map(function(e){if("string"==typeof e&&(e=Rl.from(e,t.encoding)),!vs(e)||0===e.length)throw new ys("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${n}`],t);return e}),void 0===t.escape||!0===t.escape?t.escape=Rl.from('"',t.encoding):"string"==typeof t.escape?t.escape=Rl.from(t.escape,t.encoding):null!==t.escape&&!1!==t.escape||(t.escape=null),null!==t.escape&&!vs(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 ys("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 ys("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(vs(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 ys("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=Rl.from('"',t.encoding):"string"==typeof t.quote&&(t.quote=Rl.from(t.quote,t.encoding)),!vs(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||vs(t.record_delimiter)){if(0===t.record_delimiter.length)throw new ys("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 ys("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&&!vs(e))throw new ys("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 ys("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=Rl.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},ks=function(e,t){t||({delimiter_auto:t}=Ms({delimiter_auto:!0})),"string"==typeof e&&(e=Rl.from(e)),vs(e)&&(e=(e=>{const t=[],n=Ss({delimiter:[]}).parse(e,!0,e=>t.push(e),()=>{});if(void 0!==n)throw n;return t})(e));const n=Array(127).fill().map(()=>({lines:[]}));e.map(([e],t)=>{for(let r=0,i=e.length;r<i;r++){const i=e.charCodeAt(r);void 0===n[i].lines[t]&&(n[i].lines[t]=0),n[i].lines[t]++}}),n.map((e,n)=>{e.char_code=n,e.std=As(e.lines),e.total=e.lines.reduce((e,t)=>e+t,0),e.preferred=!!t.preferred[n],e.score=t.score(e,t)});const r=n.reduce((e,t)=>e.score>t.score?e:t,{});return String.fromCharCode(r.char_code)},As=function(e){const t=e.length;if(0===t)return 0;const n=e.reduce((e,t)=>e+t)/t;return Math.sqrt(e.map(e=>Math.pow(e-n,2)).reduce((e,t)=>e+t)/t)},Ls=function(e){return e.every(e=>null==e||e.toString&&""===e.toString().trim())},Hs={utf8:Rl.from([239,187,191]),utf16le:Rl.from([255,254])},Ss=function(e={}){const t=Ms(e);return{info:{bytes:0,bytes_records:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},original_options:e,options:t,state:Is(t),__needMoreData:function(e,t,n){if(n)return!1;const{encoding:r,escape:i,quote:a}=this.options,{quoting:o,needMoreDataSize:l,recordDelimiterMaxLength:s}=this.state;return t-e-1<Math.max(l,0===s?Rl.from("\r\n",r).length:s,o?(null===i?0:i.length)+a.length:0,o?a.length+s:0)},parse:function(e,t,n,r){const{bom:i,comment_no_infix:a,delimiter_auto:o,encoding:l,from_line:s,ltrim:c,max_record_size:d,raw:u,relax_quotes:p,rtrim:m,skip_empty_lines:h,to:g,to_line:f}=this.options;let{comment:b,escape:v,quote:x,record_delimiter:y}=this.options;const{bomSkipped:w,delimiterDiscovered:C,delimiterBufPrevious:E,rawBuffer:I,escapeIsQuote:$}=this.state;if(!C&&o){let n;if(n=void 0===E?e:void 0!==E&&void 0===e?E:Rl.concat([E,e]),e=void 0,!(t||n.length>o.size))return void(this.state.delimiterBufPrevious=n);this.options.delimiter=[Rl.from(ks(n,this.options.delimiter_auto))],this.state.previousBuf=n,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0}const{previousBuf:M}=this.state;let k;if(void 0===M){if(void 0===e)return void r();k=e}else k=void 0!==M&&void 0===e?M:Rl.concat([M,e]);if(!1===w)if(!1===i)this.state.bomSkipped=!0;else if(k.length<3){if(!1===t)return void(this.state.previousBuf=k)}else{for(const e in Hs)if(0===Hs[e].compare(k,0,Hs[e].length)){const t=Hs[e].length;this.state.bufBytesStart+=t,k=k.slice(t);const n=Ms({...this.original_options,encoding:e});for(const e in n)this.options[e]=n[e];({comment:b,escape:v,quote:x}=this.options);break}this.state.bomSkipped=!0}const A=k.length;let L;for(L=0;L<A&&!this.__needMoreData(L,A,t);L++){if(!0===this.state.wasRowDelimiter&&(this.info.lines++,this.state.wasRowDelimiter=!1),-1!==f&&this.info.lines>f)return this.state.stop=!0,void r();if(!1===this.state.quoting&&0===y.length){this.__autoDiscoverRecordDelimiter(k,L)&&(y=this.options.record_delimiter)}const e=k[L];if(!0===u&&I.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!==v&&!0===this.state.quoting&&this.__isEscape(k,L,e)&&L+v.length<A){if(!$){this.state.escaping=!0,L+=v.length-1;continue}if(this.__isQuote(k,L+v.length)){this.state.escaping=!0,L+=v.length-1;continue}}if(!1===this.state.commenting&&this.__isQuote(k,L))if(!0===this.state.quoting){const t=k[L+x.length],n=m&&this.__isCharTrimable(k,L+x.length),r=null!==b&&this.__compareBytes(b,k,L+x.length,t),i=this.__isDelimiter(k,L+x.length,t),a=0===y.length?this.__autoDiscoverRecordDelimiter(k,L+x.length):this.__isRecordDelimiter(t,k,L+x.length);if(null!==v&&this.__isEscape(k,L,e)&&this.__isQuote(k,L+v.length))L+=v.length-1;else{if(!t||i||a||r||n){this.state.quoting=!1,this.state.wasQuoting=!0,L+=x.length-1;continue}if(!1===p){const e=this.__error(new ys("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(x),L+=x.length-1}}else{if(0===this.state.field.length){this.state.quoting=!0,L+=x.length-1;continue}if(!1===p){const e=this.__infoField(),t=Object.keys(Hs).map(e=>!!Hs[e].equals(this.state.field.toString())&&e).filter(Boolean)[0],n=this.__error(new ys("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(l))}`,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,k,L);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)>=s){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),L+=t-1;continue}if(!0===h&&!1===this.state.wasQuoting&&0===this.state.record.length&&0===this.state.field.length){this.info.empty_lines++,L+=t-1;continue}this.info.bytes=this.state.bufBytesStart+L;const e=this.__onField();if(void 0!==e)return e;this.info.bytes=this.state.bufBytesStart+L+t;const i=this.__onRecord(n);if(void 0!==i)return i;if(-1!==g&&this.info.records>=g)return this.state.stop=!0,void r()}this.state.commenting=!1,L+=t-1;continue}if(this.state.commenting)continue;if(null!==b&&(!1===a||0===this.state.record.length&&0===this.state.field.length)){if(0!==this.__compareBytes(b,k,L,e)){this.state.commenting=!0;continue}}const i=this.__isDelimiter(k,L,e);if(0!==i){this.info.bytes=this.state.bufBytesStart+L;const e=this.__onField();if(void 0!==e)return e;L+=i-1;continue}}}if(!1===this.state.commenting&&0!==d&&this.state.record_length+this.state.field.length>d)return this.__error(new ys("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${d}`,`at line ${this.info.lines}`],this.options,this.__infoField()));const t=!1===c||!0===this.state.quoting||0!==this.state.field.length||!this.__isCharTrimable(k,L),i=!1===m||!1===this.state.wasQuoting;if(!0!==t||!0!==i){if(!0!==m||this.__isCharTrimable(k,L)){!1===t&&(L+=this.__isCharTrimable(k,L)-1);continue}return this.__error(new ys("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 ys("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+L;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+=L,this.state.previousBuf=k.slice(L);!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:a,relax_column_count:o,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&&Ls(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 ys("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 ys("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===o||!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&&Ls(p))this.__resetRecord();else{if(!0===this.state.recordHasError)return this.__resetRecord(),void(this.state.recordHasError=!1);if(this.info.records++,1===a||this.info.records>=a){const{objname:a}=this.options;if(!1!==t){const o={};for(let e=0,r=p.length;e<r;e++)void 0===t[e]||t[e].disabled||(!0===n&&Object.hasOwn(o,t[e].name)?Array.isArray(o[t[e].name])?o[t[e].name]=o[t[e].name].concat(p[e]):o[t[e].name]=[o[t[e].name],p[e]]:Object.defineProperty(o,t[e].name,{value:p[e],enumerable:!0,writable:!0,configurable:!0}));if(!0===c||!0===i){const t=Object.assign({record:o},!0===c?{raw:this.state.rawBuffer.toString(r)}:{},!0===i?{info:this.__infoRecord()}:{}),n=this.__push(void 0===a?t:[o[a],t],e);if(n)return n}else{const t=this.__push(void 0===a?o:[o[a],o],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===a?t:[p[a],t],e);if(n)return n}else{const t=this.__push(void 0===a?p:[p[a],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 ys("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=Cs(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:a}=this.state;if(!1===i)return this.__resetField();let o=this.state.field.toString(t);if(!0===n&&!1===a&&(o=o.trimRight()),!0===e){const[e,t]=this.__cast(o);if(void 0!==e)return e;o=t}this.state.record.push(o),0!==r&&"string"==typeof o&&(this.state.record_length+=o.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}this.info.bytes_records+=this.info.bytes,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]},__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},__isCharTrimable:function(e,t){const{timchars:n,timcharFirstBytes:r}=this.state,i=e[t];if(void 0===i||0===r[i])return 0;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},__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 a=r[i];if(a[0]===n){for(let n=1;n<a.length;n++)if(a[n]!==e[t+n])continue e;return a.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},__isFloat:function(e){return e-parseFloat(e)+1>=0},__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},__isRecordDelimiter:function(e,t,n){const{record_delimiter:r}=this.options,i=r.length;e:for(let a=0;a<i;a++){const i=r[a],o=i.length;if(i[0]===e){for(let e=1;e<o;e++)if(i[e]!==t[n+e])continue e;return i.length}}return 0},__autoDiscoverRecordDelimiter:function(e,t){const{encoding:n}=this.options,r=[Rl.from("\r\n",n),Rl.from("\n",n),Rl.from("\r",n)];e:for(let n=0;n<r.length;n++){const i=r[n].length;for(let a=0;a<i;a++)if(r[n][a]!==e[t+a])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(),bytes_records:this.info.bytes,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),n=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:n,column:!0===t?e.length>this.state.record.length?e[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}},Vs=e=>e.normalize("NFKC").toLowerCase(),Os=e=>{var t;const n=e.trim();if(!n)return[];const r=Vs(n);let i,a;try{const e=[];i=null!==(t=function(e,t={}){"string"==typeof e&&(e=Rl.from(e));const n=t&&t.objname?Object.create(null):[],r=Ss(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}(r,{columns:!1,trim:!0,delimiter:[","," ","\t"],relax_column_count:!0,cast:(t,n)=>(e[n.index]=!!n.quoting,t)})[0])&&void 0!==t?t:[],a=i.map((t,n)=>!!e[n])}catch(e){i=r.split(",").map(e=>e.trim()),a=i.map(()=>!1)}const o=[];return i.forEach((e,t)=>{e&&o.push({text:e,exact:!!a[t]})}),o},Ds=e=>{const t=Os(e);return 0===t.length?()=>!0:e=>{const n=Vs(e);return t.some(e=>e.exact?n===e.text:n.includes(e.text))}},Rs=v.div`
|
|
930
930
|
display: flex;
|
|
931
931
|
align-items: center;
|
|
932
932
|
align-content: center;
|
|
933
933
|
width: ${({width:e})=>e||"auto"};
|
|
934
934
|
padding: ${({theme:e})=>`${.5*e.spacing}px ${e.spacing}px`};
|
|
935
|
-
border-radius: ${({theme:e})
|
|
935
|
+
border-radius: ${({theme:e})=>`${e.radii.small}px`};
|
|
936
936
|
color: ${({theme:e})=>e.palette.white};
|
|
937
937
|
background-color: ${({theme:e})=>e.palette.black};
|
|
938
938
|
font-size: 12px;
|
|
@@ -987,7 +987,7 @@ object-assign
|
|
|
987
987
|
background-color: ${({theme:e,$variant:t,$disabled:n})=>n?e.palette.neutral.softLight:"light"===t?e.palette.background.default:e.palette.neutral.ultraLight};
|
|
988
988
|
border: 1px solid
|
|
989
989
|
${({theme:e,$error:t,$disabled:n})=>t?e.palette.danger.base:e.palette.neutral.lighter};
|
|
990
|
-
border-radius:
|
|
990
|
+
border-radius: ${({theme:e})=>e.radii.medium}px;
|
|
991
991
|
transition:
|
|
992
992
|
border-color 0.2s ease,
|
|
993
993
|
box-shadow 0.2s ease;
|
|
@@ -1174,7 +1174,7 @@ object-assign
|
|
|
1174
1174
|
width: 24px;
|
|
1175
1175
|
height: 18px;
|
|
1176
1176
|
border: 1px solid ${({theme:e})=>e.palette.neutral.lighter};
|
|
1177
|
-
border-radius:
|
|
1177
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
1178
1178
|
background: ${({theme:e})=>e.palette.neutral.ultraLight};
|
|
1179
1179
|
color: ${({theme:e})=>e.palette.icon.line};
|
|
1180
1180
|
pointer-events: none;
|
|
@@ -1211,7 +1211,7 @@ object-assign
|
|
|
1211
1211
|
display: flex;
|
|
1212
1212
|
align-items: center;
|
|
1213
1213
|
width: 100%;
|
|
1214
|
-
border-radius:
|
|
1214
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
1215
1215
|
transition: background-color 0.3s;
|
|
1216
1216
|
|
|
1217
1217
|
${dd} button {
|
|
@@ -1334,7 +1334,7 @@ object-assign
|
|
|
1334
1334
|
`,$u=v.span`
|
|
1335
1335
|
${Eu}
|
|
1336
1336
|
padding: 0 ${({$size:e="medium",theme:t})=>hu[e].padding(t)};
|
|
1337
|
-
border-radius: ${({theme:e})
|
|
1337
|
+
border-radius: ${({theme:e})=>`${e.radii.small}px`};
|
|
1338
1338
|
background-color: ${({$backgroundColor:e})=>e};
|
|
1339
1339
|
color: ${({$color:e})=>e};
|
|
1340
1340
|
gap: ${({$size:e="medium"})=>hu[e].gap};
|
|
@@ -1420,7 +1420,7 @@ object-assign
|
|
|
1420
1420
|
width: ${({size:e})=>"small"===e?"16px":"18px"};
|
|
1421
1421
|
border: 1px solid
|
|
1422
1422
|
${({error:e,theme:t})=>e?t.palette.danger.base:t.palette.neutral.lighter};
|
|
1423
|
-
border-radius: ${({theme:e})
|
|
1423
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
1424
1424
|
box-shadow: ${({theme:e})=>e.shadow["3dShadowBasic"]};
|
|
1425
1425
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
1426
1426
|
margin-right: ${({hasChild:e,theme:t})=>e?t.spacing/2+"px":"auto"};
|
|
@@ -1449,7 +1449,7 @@ object-assign
|
|
|
1449
1449
|
width: 100%;
|
|
1450
1450
|
/* サイズに応じたパディングの調整 */
|
|
1451
1451
|
padding: ${({theme:e,size:t})=>"small"===t?`${e.spacing}px`:1.5*e.spacing+"px"};
|
|
1452
|
-
border-radius: ${({theme:e,size:t})=>"small"===t
|
|
1452
|
+
border-radius: ${({theme:e,size:t})=>"small"===t?`${e.radii.small}px`:`${e.radii.large}px`};
|
|
1453
1453
|
position: relative;
|
|
1454
1454
|
|
|
1455
1455
|
/* タイプに基づいたスタイリング(背景色、テキスト色、ボーダー色) */
|
|
@@ -1490,7 +1490,7 @@ object-assign
|
|
|
1490
1490
|
margin-left: ${({theme:e})=>e.spacing}px;
|
|
1491
1491
|
background: none;
|
|
1492
1492
|
border: none;
|
|
1493
|
-
border-radius: ${({theme:e})=>e.
|
|
1493
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
1494
1494
|
transition: background-color 0.2s;
|
|
1495
1495
|
|
|
1496
1496
|
&:hover {
|
|
@@ -1525,7 +1525,7 @@ object-assign
|
|
|
1525
1525
|
min-width: ${264}px;
|
|
1526
1526
|
`,Bp=v(he)`
|
|
1527
1527
|
box-shadow: ${({theme:e})=>Z(5,e.palette.action.shadowOpacity,e.palette.action.shadowBase)};
|
|
1528
|
-
border-radius:
|
|
1528
|
+
border-radius: ${({theme:e})=>e.radii.medium}px;
|
|
1529
1529
|
background-color: ${({theme:e})=>e.palette.white};
|
|
1530
1530
|
border: 1px solid ${({theme:e})=>e.palette.neutral.softLight};
|
|
1531
1531
|
width: fit-content;
|
|
@@ -1660,7 +1660,7 @@ object-assign
|
|
|
1660
1660
|
padding: ${({theme:e})=>e.spacing/2}px 0;
|
|
1661
1661
|
text-align: center;
|
|
1662
1662
|
font-size: 14px;
|
|
1663
|
-
border-radius:
|
|
1663
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
1664
1664
|
${Q}
|
|
1665
1665
|
|
|
1666
1666
|
@container calendar (max-width: ${U.SMALL}px) {
|
|
@@ -1686,7 +1686,7 @@ object-assign
|
|
|
1686
1686
|
cursor: pointer;
|
|
1687
1687
|
background: ${({clicked:e,theme:t})=>e?t.palette.primary.highlight:t.palette.neutral.highlight};
|
|
1688
1688
|
border: ${({clicked:e,theme:t})=>e?`1px solid ${t.palette.primary.base}`:`1px solid ${t.palette.neutral.highlight}`};
|
|
1689
|
-
border-radius:
|
|
1689
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
1690
1690
|
white-space: nowrap;
|
|
1691
1691
|
width: auto;
|
|
1692
1692
|
flex: 0 0 auto;
|
|
@@ -1775,7 +1775,7 @@ object-assign
|
|
|
1775
1775
|
background-color: ${({selected:e,theme:t})=>e?t.palette.primary.base:"transparent"};
|
|
1776
1776
|
color: ${({selected:e,isSaturday:t,isSundayOrHoliday:n,theme:r})=>e?r.palette.white:Kp({isSaturday:t,isSundayOrHoliday:n,theme:r})};
|
|
1777
1777
|
border: none;
|
|
1778
|
-
border-radius:
|
|
1778
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
1779
1779
|
height: ${({theme:e})=>4*e.spacing}px;
|
|
1780
1780
|
width: ${({theme:e})=>4*e.spacing}px;
|
|
1781
1781
|
cursor: pointer;
|
|
@@ -1809,7 +1809,7 @@ object-assign
|
|
|
1809
1809
|
padding: ${({theme:e})=>e.spacing/2}px 0;
|
|
1810
1810
|
text-align: center;
|
|
1811
1811
|
font-size: 14px;
|
|
1812
|
-
border-radius:
|
|
1812
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
1813
1813
|
color: ${({isSaturday:e,isSundayOrHoliday:t,theme:n})=>Kp({isSaturday:e,isSundayOrHoliday:t,theme:n})};
|
|
1814
1814
|
${Q}
|
|
1815
1815
|
|
|
@@ -1818,7 +1818,7 @@ object-assign
|
|
|
1818
1818
|
background-color: ${({theme:e})=>e.palette.primary.highlight};
|
|
1819
1819
|
}
|
|
1820
1820
|
`,Nm=v(zm)``,Tm=v(zm)`
|
|
1821
|
-
border-radius:
|
|
1821
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
1822
1822
|
&::before {
|
|
1823
1823
|
height: ${({theme:e})=>4*e.spacing}px;
|
|
1824
1824
|
width: ${({theme:e})=>4*e.spacing}px;
|
|
@@ -1830,7 +1830,7 @@ object-assign
|
|
|
1830
1830
|
bottom: 0;
|
|
1831
1831
|
background-color: ${({theme:e})=>e.palette.primary.softLight};
|
|
1832
1832
|
z-index: -1;
|
|
1833
|
-
border-radius:
|
|
1833
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
1834
1834
|
}
|
|
1835
1835
|
`,Zm=v(Tm)`
|
|
1836
1836
|
background-color: ${({theme:e})=>e.palette.primary.base};
|
|
@@ -1840,7 +1840,7 @@ object-assign
|
|
|
1840
1840
|
width: 50%;
|
|
1841
1841
|
}
|
|
1842
1842
|
`,Bm=v(Zm)`
|
|
1843
|
-
border-radius:
|
|
1843
|
+
border-radius: ${({theme:e})=>e.radii.small}px; /* 全部角丸 */
|
|
1844
1844
|
&::before {
|
|
1845
1845
|
background-color: ${({theme:e})=>e.palette.white};
|
|
1846
1846
|
}
|
|
@@ -1848,19 +1848,19 @@ object-assign
|
|
|
1848
1848
|
background-color: ${({theme:e})=>e.palette.primary.base};
|
|
1849
1849
|
}
|
|
1850
1850
|
`,Pm=v(Zm)`
|
|
1851
|
-
border-radius:
|
|
1851
|
+
border-radius: ${({theme:e})=>`${e.radii.small}px 0 0 ${e.radii.small}px`}; /* 左上、左下のみ角丸 */
|
|
1852
1852
|
&::before {
|
|
1853
1853
|
transform: translateX(100%);
|
|
1854
|
-
border-radius:
|
|
1854
|
+
border-radius: ${({theme:e})=>`${e.radii.small}px 0 0 ${e.radii.small}px`}; /* 左上、左下のみ角丸 */
|
|
1855
1855
|
background-color: ${({theme:e})=>e.palette.primary.highlight};
|
|
1856
1856
|
}
|
|
1857
1857
|
&:hover {
|
|
1858
1858
|
background-color: ${({theme:e})=>e.palette.primary.base};
|
|
1859
1859
|
}
|
|
1860
1860
|
`,jm=v(Zm)`
|
|
1861
|
-
border-radius: 0
|
|
1861
|
+
border-radius: ${({theme:e})=>`0 ${e.radii.small}px ${e.radii.small}px 0`}; /* 右上、右下のみ角丸 */
|
|
1862
1862
|
&::before {
|
|
1863
|
-
border-radius: 0
|
|
1863
|
+
border-radius: ${({theme:e})=>`0 ${e.radii.small}px ${e.radii.small}px 0`}; /* 右上、右下のみ角丸 */
|
|
1864
1864
|
background-color: ${({theme:e})=>e.palette.primary.highlight};
|
|
1865
1865
|
}
|
|
1866
1866
|
&:hover {
|
|
@@ -1885,7 +1885,7 @@ object-assign
|
|
|
1885
1885
|
color: ${({theme:e})=>e.palette.neutral.lighter};
|
|
1886
1886
|
}
|
|
1887
1887
|
`,Gm=g(function({state:e,value:n,selectable:r,onClickDate:i,children:a,isSaturday:o=!1,isSundayOrHoliday:l=!1,isToday:s=!1}){return t.createElement(Rm,{"data-state":e,isToday:s},(({state:e,value:n,selectable:r,onClickDate:i,children:a,isSaturday:o=!1,isSundayOrHoliday:l=!1})=>{const s=()=>{null==i||i(n)};if(!r)return t.createElement(Fm,{type:"button",isSaturday:o,isSundayOrHoliday:l},a);switch(e){case Lm:return t.createElement(Bm,{type:"button",isSaturday:o,isSundayOrHoliday:l,onClick:s},a);case Am:return t.createElement(Pm,{type:"button",isSaturday:o,isSundayOrHoliday:l,onClick:s},a);case Hm:return t.createElement(jm,{type:"button",isSaturday:o,isSundayOrHoliday:l,onClick:s},a);case Sm:return t.createElement(_m,{type:"button",isSaturday:o,isSundayOrHoliday:l,onClick:s},a);default:return t.createElement(Nm,{type:"button",isSaturday:o,isSundayOrHoliday:l,onClick:s},a)}})({state:e,value:n,selectable:r,onClickDate:i,children:a,isSaturday:o,isSundayOrHoliday:l}))}),Ym=({startDate:e,endDate:n,monthFormat:r,weekList:a,weekStart:o=0,current:l,isOutsideRange:s,onDatesChange:c,onPreviousMonth:u,onNextMonth:p,onTodayClick:m})=>{const[h,g]=i(Vm),f=d(t=>{if(e&&n&&!e.isSame(n,"day"))return null==c||c({startDate:t,endDate:t}),void g(Om);switch(h){case Vm:null==c||c({startDate:t,endDate:t}),g(Om);break;case Om:e&&t.isBefore(e)?null==c||c({startDate:t,endDate:e}):null==c||c({startDate:e,endDate:t}),g(Vm)}},[h,c,n,e]);return t.createElement(jp,null,t.createElement(Xp,null,t.createElement(Wp,null,t.createElement(Yp,null,t.createElement(Gp,{weight:"bold",size:"xl"},l.format(r))),t.createElement("div",{style:{display:"flex",gap:"8px"}},t.createElement(fl,{size:"small",color:"clear",type:"button",icon:t.createElement(ue,{name:"arrow_left",size:"md",color:"currentColor"}),"aria-label":"前の月",onClick:u}),t.createElement(Fc,{content:"今日に戻る"},t.createElement(fl,{size:"small",color:"clear",type:"button",icon:t.createElement(ue,{name:"calendar",size:"md",color:"currentColor"}),"aria-label":"今日に戻る",onClick:m})),t.createElement(fl,{size:"small",color:"clear",type:"button",icon:t.createElement(ue,{name:"arrow_right",size:"md",color:"currentColor"}),"aria-label":"次の月",onClick:p})))),t.createElement(_p,null,null==a?void 0:a.map(e=>t.createElement(Fp,{key:e},e)),Array.from(new Array(ym(l,o)),(e,n)=>t.createElement(Fp,{key:`empty-${n}`})),xm(l).map(r=>{const i=fm(l,r),a=bm(i),o=vm(i,s);return t.createElement(Gm,{key:r,value:i,state:Dm(e,n,l,r),selectable:o,isSaturday:a.isSaturday,isSundayOrHoliday:a.isSundayOrHoliday,isToday:gm(i),onClickDate:f},r)})))},Wm=n(function(e,n){var{startDate:r,endDate:i,monthFormat:a="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,$=R(e,["startDate","endDate","monthFormat","weekConfig","defaultPresetButton","presetButtons","onPresetButtonClick","showDateFields","dateFieldFormat","showTimeFields","timeFieldProps","startLabelSuffix","endLabelSuffix","onApply","onCancel","applyButtonText","cancelButtonText","isOutsideRange","onDatesChange"]);const[M,k]=t.useState(0),{currentMonth:A,goToPreviousMonth:L,goToNextMonth:H,goToMonth:S}=Cm(r);o(()=>{S(r)},[r,S]);const V=d(()=>{const e=Jo();null==I||I({startDate:e,endDate:e}),S(e),k(e=>e+1)},[I,S]),O=d(e=>{null==I||I({startDate:e,endDate:i})},[i,I]),D=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(am,null,t.createElement(rm,null,t.createElement(lm,null,t.createElement(om,null,"開始日時"),b),t.createElement(im,null,t.createElement(QI,{date:r,format:h,size:"medium",variant:"dark",onDateChange:O}),g&&t.createElement(MS,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(rm,null,t.createElement(lm,null,t.createElement(om,null,"終了日時"),v),t.createElement(im,null,t.createElement(QI,{date:i,format:h,size:"medium",variant:"dark",onDateChange:D}),g&&t.createElement(MS,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,D,z,N]),Z=Boolean(u||T),{labels:B,start:P}=Im({weekConfig:s,fallbackLabels:[...tu],fallbackStart:0}),j=Z?t.createElement(sm,{key:M,defaultPresetButton:c,presetButtons:u,dateFields:T,onPresetButtonClick:p}):null,_=t.createElement(Pp,null,t.createElement(Ym,{startDate:r,endDate:i,monthFormat:a,weekList:B,weekStart:P,current:A,isOutsideRange:E,onDatesChange:e=>{null==I||I(e),k(e=>e+1)},onPreviousMonth:L,onNextMonth:H,onTodayClick:V}));return t.createElement(Zp,null,t.createElement(Bp,Object.assign({ref:n},$),t.createElement(Jp,null,t.createElement(Up,null,_,j,x?t.createElement(Qp,null,t.createElement(Fo,null,y?t.createElement(fl,{color:"clear",size:"small",type:"button",onClick:y},C):null,t.createElement(fl,{color:"primary",size:"small",type:"button",onClick:x},w))):null))))});var Xm=g(Wm);const Jm=v.div`
|
|
1888
|
-
border-radius: ${({theme:e})=>e.
|
|
1888
|
+
border-radius: ${({theme:e})=>e.radii.large}px;
|
|
1889
1889
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
1890
1890
|
width: ${({width:e})=>e||"auto"};
|
|
1891
1891
|
min-width: ${({minWidth:e})=>e||"auto"};
|
|
@@ -2033,8 +2033,7 @@ object-assign
|
|
|
2033
2033
|
gap: ${({theme:e})=>1.25*e.spacing}px;
|
|
2034
2034
|
/* Figma spacing/large = 10 */
|
|
2035
2035
|
padding: ${({theme:e})=>1.25*e.spacing}px;
|
|
2036
|
-
|
|
2037
|
-
border-radius: ${({theme:e})=>.75*e.radius}px;
|
|
2036
|
+
border-radius: ${({theme:e})=>e.radii.medium}px;
|
|
2038
2037
|
background-color: ${({theme:e})=>ie(e).tooltip.background};
|
|
2039
2038
|
color: ${({theme:e})=>ie(e).tooltip.text};
|
|
2040
2039
|
font-size: ${({theme:e})=>ie(e).tooltip.fontSize}px;
|
|
@@ -2213,7 +2212,7 @@ object-assign
|
|
|
2213
2212
|
width: 100%;
|
|
2214
2213
|
box-sizing: border-box;
|
|
2215
2214
|
overflow: hidden;
|
|
2216
|
-
border-radius: ${({theme:e})=>
|
|
2215
|
+
border-radius: ${({theme:e})=>e.radii.medium}px;
|
|
2217
2216
|
border-style: solid;
|
|
2218
2217
|
border-width: 1px;
|
|
2219
2218
|
transition: border-color 0.3s ease;
|
|
@@ -2267,8 +2266,8 @@ object-assign
|
|
|
2267
2266
|
border: 0;
|
|
2268
2267
|
border-top-style: dashed;
|
|
2269
2268
|
border-top-width: 1px;
|
|
2270
|
-
border-radius: 0 0 ${({theme:e})=>
|
|
2271
|
-
${({theme:e})=>
|
|
2269
|
+
border-radius: 0 0 ${({theme:e})=>e.radii.medium}px
|
|
2270
|
+
${({theme:e})=>e.radii.medium}px;
|
|
2272
2271
|
background: ${({theme:e})=>e.palette.white};
|
|
2273
2272
|
|
|
2274
2273
|
${({$checked:e,$disabled:t,theme:n})=>t?y`
|
|
@@ -2310,7 +2309,7 @@ object-assign
|
|
|
2310
2309
|
width: auto;
|
|
2311
2310
|
height: auto;
|
|
2312
2311
|
transform: translate(-50%, -50%);
|
|
2313
|
-
border-radius: ${({theme:e})=>`${e.
|
|
2312
|
+
border-radius: ${({theme:e})=>`${e.radii.large}px`};
|
|
2314
2313
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
2315
2314
|
animation: ${rb} 0.4s;
|
|
2316
2315
|
overflow: hidden;
|
|
@@ -2347,13 +2346,13 @@ object-assign
|
|
|
2347
2346
|
padding: ${({theme:e})=>2*e.spacing}px
|
|
2348
2347
|
${({theme:e})=>3*e.spacing}px;
|
|
2349
2348
|
background-color: ${({theme:e})=>e.palette.neutral.ultraLight};
|
|
2350
|
-
border-radius: ${({theme:e})=>`0 0 ${e.
|
|
2349
|
+
border-radius: ${({theme:e})=>`0 0 ${e.radii.large}px ${e.radii.large}px`};
|
|
2351
2350
|
margin-bottom: auto;
|
|
2352
2351
|
`,cb=v.div`
|
|
2353
2352
|
cursor: pointer;
|
|
2354
2353
|
height: fit-content;
|
|
2355
2354
|
& > span {
|
|
2356
|
-
border-radius: ${({theme:e})
|
|
2355
|
+
border-radius: ${({theme:e})=>`${e.radii.small}px`};
|
|
2357
2356
|
transition: background 0.2s;
|
|
2358
2357
|
}
|
|
2359
2358
|
&:hover > span {
|
|
@@ -2404,7 +2403,7 @@ object-assign
|
|
|
2404
2403
|
`,fb=v.div`
|
|
2405
2404
|
display: ${({inline:e})=>e?"inline-block":"block"};
|
|
2406
2405
|
padding: ${({theme:e})=>e.spacing}px 0;
|
|
2407
|
-
border-radius: ${({theme:e})=>e.
|
|
2406
|
+
border-radius: ${({theme:e})=>e.radii.large}px;
|
|
2408
2407
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
2409
2408
|
${({maxHeight:e})=>gb({maxHeight:e})}
|
|
2410
2409
|
`,bb=v.div`
|
|
@@ -2423,7 +2422,7 @@ object-assign
|
|
|
2423
2422
|
height: 32px;
|
|
2424
2423
|
margin: 0 ${({theme:e})=>e.spacing}px;
|
|
2425
2424
|
padding: 0 ${({theme:e})=>e.spacing}px;
|
|
2426
|
-
border-radius: ${({theme:e})=>e.
|
|
2425
|
+
border-radius: ${({theme:e})=>e.radii.large}px;
|
|
2427
2426
|
&:disabled {
|
|
2428
2427
|
${vb} {
|
|
2429
2428
|
opacity: 0.5;
|
|
@@ -2466,7 +2465,7 @@ object-assign
|
|
|
2466
2465
|
`,Cb=t.forwardRef(function(e,n){var{color:r,orientation:i="horizontal"}=e,a=R(e,["color","orientation"]);const o=oe(),l=r||o.palette.divider;return t.createElement(wb,Object.assign({ref:n,color:l,orientation:i},a))}),Eb=(e,t)=>{const n={default:{normal:{background:e.palette.background.default,color:e.palette.black},hover:{background:e.palette.neutral.softLight,color:e.palette.black},active:{background:e.palette.neutral.lighter,color:e.palette.black}},warning:{normal:{background:e.palette.neutral.highlight,color:e.palette.danger.base},hover:{background:e.palette.danger.base,color:e.palette.text.white},active:{background:e.palette.danger.dark,color:e.palette.text.white}},disabled:{normal:{background:"auto",color:"disabled"},hover:{background:"auto",color:"disabled"},active:{background:"auto",color:"disabled"}}};return t?n[t]:n.default},Ib=t.forwardRef(function(e,n){var{inline:r=!1,contents:i,maxHeight:a="none"}=e,o=R(e,["inline","contents","maxHeight"]);Ve("MenuList","MenuList は廃止予定です(後継なし)。ContextMenu2 への移行を検討してください。");const l=oe(),s=(e,t)=>"disabled"===e||!0===t,c=(e,t,n)=>s(t,n)?Eb(e,"disabled"):Eb(e,t),d=(e,t)=>()=>{s(e.type,t)||e.onClick()},u=e=>t.createElement(t.Fragment,{key:e.text},e.divideTop&&t.createElement(Cb,{my:1,mx:2,color:l.palette.neutral.softLight}),t.createElement(yb,{disabled:s(e.type,e.disabled),normal:c(l,e.type,e.disabled).normal,hover:c(l,e.type,e.disabled).hover,active:c(l,e.type,e.disabled).active,onClick:d(e,e.disabled)},e.iconName&&t.createElement(rl,{mr:1},t.createElement(vb,{disabled:s(e.type,e.disabled)},t.createElement(ue,{name:e.iconName,color:c(l,e.type,e.disabled).normal.color}))),t.createElement(xb,{size:"sm",color:c(l,e.type,e.disabled).normal.color},e.text)));return t.createElement(fb,Object.assign({inline:r,maxHeight:a},o,{ref:n}),i.map(e=>(e=>""===e.title||!!e.title)(e)?t.createElement(t.Fragment,{key:e.title},e.title&&t.createElement(bb,null,t.createElement(Le,{size:"xs",color:l.palette.text.secondary,weight:"bold"},e.title)),e.contents.map(u)):u(e)))}),$b=v.div`
|
|
2467
2466
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
2468
2467
|
box-shadow: ${({theme:e})=>Z(5,e.palette.action.shadowOpacity,e.palette.action.shadowBase)};
|
|
2469
|
-
border-radius: ${({theme:e})=>e.
|
|
2468
|
+
border-radius: ${({theme:e})=>e.radii.large}px;
|
|
2470
2469
|
`,Mb=e.forwardRef(function(t,n){var{isOpen:r=!0,onClose:i,baseElement:a,offset:o=[0,0],positionPriority:l=["auto"],modalProps:s,children:c}=t,d=R(t,["isOpen","onClose","baseElement","offset","positionPriority","modalProps","children"]);const{placements:u,isAuto:p}=_c(l),{x:m,y:h,refs:g,strategy:f,context:b}=ya({elements:{reference:a},placement:u[0],open:r,middleware:[l.length>0&&!p?yr({padding:24,fallbackPlacements:u}):xr(),wr({mainAxis:o[1],crossAxis:o[0]}),Cr({mainAxis:!1})],whileElementsMounted:Nr}),v=La(b),{getFloatingProps:x}=Ca([v]),y=Pc(n,g.setFloating);return e.createElement(mb,Object.assign({isOpen:r,backdropProps:{invisible:!0}},s,{onClose:i}),e.createElement(pa,{context:b,modal:!1,initialFocus:-1},e.createElement($b,Object.assign({ref:y,style:{position:f,top:h,left:m}},x(),d),c)))}),kb=e.forwardRef(function(t,n){var{isOpen:r=!0,baseElement:i=null,contents:a,positionPriority:o=["bottom-start","bottom-end","top-start","top-end"],onClose:l,maxHeight:s="none",menuListProps:c,popoverProps:d}=t,u=R(t,["isOpen","baseElement","contents","positionPriority","onClose","maxHeight","menuListProps","popoverProps"]);Ve("Menu","Menu は非推奨です。代わりに ContextMenu2 を使用してください。");return e.createElement(Mb,Object.assign({isOpen:r,baseElement:i,positionPriority:o,onClose:l},d),e.createElement(Ib,Object.assign({ref:n,contents:a,maxHeight:s},u,c,{onClick:wo(e=>{l&&l(e,"clickMenuList")},null==c?void 0:c.onClick)})))}),Ab=v(Oe)`
|
|
2471
2470
|
width: 34px;
|
|
2472
2471
|
height: 34px;
|
|
@@ -2478,13 +2477,13 @@ object-assign
|
|
|
2478
2477
|
`;var _w=n(function(t,n){var r=Rw(t);return e.createElement(Ow,zs({ref:n},r))});const Fw=v.div``,Gw=t=>{const n=oe(),r=Vy.ClearIndicator;return e.createElement(Fw,null,e.createElement(r,Object.assign({},t),e.createElement(ue,{name:"close_circle",color:n.palette.black,type:"fill"})))},Yw=v.div`
|
|
2479
2478
|
transition: transform 150ms;
|
|
2480
2479
|
transform: ${({menuIsOpen:e})=>e?"rotate(180deg)":""};
|
|
2481
|
-
`,Ww=t=>{var{isDisabled:n,error:r}=t,i=R(t,["isDisabled","error"]);const a=oe();let o="";o=n?a.palette.neutral.light:r?a.palette.danger.base:a.palette.black;const l=Vy.DropdownIndicator;return l&&e.createElement(l,Object.assign({},i),e.createElement(Yw,{menuIsOpen:i.selectProps.menuIsOpen},e.createElement(ue,{name:"arrow_bottom",size:"md",color:o})))},Xw=t=>{const n=oe(),r=Vy.MultiValueRemove;return e.createElement(r,Object.assign({},t),e.createElement(ue,{name:"close_circle",color:n.palette.black}))},Jw=(e,t)=>{const n={control:(n,{menuIsOpen:r})=>Object.assign(Object.assign({},n),{boxShadow:"none",borderTopColor:e.palette.neutral.lighter,borderRightColor:e.palette.neutral.lighter,borderLeftColor:e.palette.neutral.lighter,borderBottomColor:r?"transparent":e.palette.neutral.lighter,borderColor:t?`${e.palette.danger.base}!important`:"",borderRadius:r?`${e.
|
|
2480
|
+
`,Ww=t=>{var{isDisabled:n,error:r}=t,i=R(t,["isDisabled","error"]);const a=oe();let o="";o=n?a.palette.neutral.light:r?a.palette.danger.base:a.palette.black;const l=Vy.DropdownIndicator;return l&&e.createElement(l,Object.assign({},i),e.createElement(Yw,{menuIsOpen:i.selectProps.menuIsOpen},e.createElement(ue,{name:"arrow_bottom",size:"md",color:o})))},Xw=t=>{const n=oe(),r=Vy.MultiValueRemove;return e.createElement(r,Object.assign({},t),e.createElement(ue,{name:"close_circle",color:n.palette.black}))},Jw=(e,t)=>{const n={control:(n,{menuIsOpen:r})=>Object.assign(Object.assign({},n),{boxShadow:"none",borderTopColor:e.palette.neutral.lighter,borderRightColor:e.palette.neutral.lighter,borderLeftColor:e.palette.neutral.lighter,borderBottomColor:r?"transparent":e.palette.neutral.lighter,borderColor:t?`${e.palette.danger.base}!important`:"",borderRadius:r?`${e.radii.large}px ${e.radii.large}px 0 0`:`${e.radii.large}px`,"&:hover":{}}),input:e=>Object.assign(Object.assign({},e),{margin:"0 2px",paddingBottom:0,paddingTop:0}),menu:n=>Object.assign(Object.assign({},n),{marginTop:"-1px",boxShadow:"none",borderRadius:`0 0 ${e.radii.large}px ${e.radii.large}px`,borderRight:`1px solid ${t?e.palette.danger.base:e.palette.neutral.lighter}`,borderBottom:`1px solid ${t?e.palette.danger.base:e.palette.neutral.lighter}`,borderLeft:`1px solid ${t?e.palette.danger.base:e.palette.neutral.lighter}`}),menuPortal:e=>Object.assign(Object.assign({},e),{zIndex:K.dropdown}),menuList:e=>Object.assign(Object.assign({},e),{paddingTop:"12px",paddingBottom:"8px"}),noOptionsMessage:t=>Object.assign(Object.assign({},t),{fontSize:`${$e.sm}px`,color:e.palette.text.hint}),option:(t,{isSelected:n,isFocused:r,isDisabled:i})=>{let a="transparent",o=n?e.palette.white:e.palette.black;return n?a=e.palette.primary.base:i?o=e.palette.text.disabled:r&&(a=e.palette.neutral.softLight),Object.assign(Object.assign({},t),{padding:"4px 8px 5px",color:o,fontSize:`${$e.sm}px`,":active":{backgroundColor:e.palette.neutral.lighter},backgroundColor:a})},placeholder:(n,{isDisabled:r,isFocused:i})=>{let a=e.palette.black;switch(!0){case r:a=e.palette.text.disabled;break;case t:a=e.palette.danger.base;break;case i:a=e.palette.text.hint}return Object.assign(Object.assign({},n),{transition:"color 0.2s",color:a,fontSize:`${$e.sm}px`})},singleValue:(n,{isDisabled:r})=>{let i=e.palette.black;return t?i=e.palette.danger.base:r&&(i=e.palette.text.disabled),Object.assign(Object.assign({},n),{color:`${i}`,fontSize:`${$e.sm}px`})},multiValue:t=>Object.assign(Object.assign({},t),{backgroundColor:e.palette.neutral.highlight,padding:"2px 0px 3px 2px",margin:"0px 4px",border:`1px solid ${e.palette.neutral.lighter}`,borderRadius:`${e.radii.large}px`}),multiValueLabel:(n,{isDisabled:r})=>{let i=e.palette.black;return t?i=e.palette.danger.base:r&&(i=e.palette.text.disabled),Object.assign(Object.assign({},n),{padding:0,color:`${i}`,fontSize:`${$e.sm}px`})},multiValueRemove:e=>Object.assign(Object.assign({},e),{":hover":{backgroundColor:"transparent"},padding:"0px 8px"}),valueContainer:e=>Object.assign(Object.assign({},e),{minHeight:"40px"})};return n},Uw=({children:t,innerRef:n,innerProps:r,maxHeight:i})=>e.createElement(jw,Object.assign({ref:n,maxHeight:i},r),t);var Qw=e.forwardRef((t,n)=>{Ve("Select","Select は非推奨です。代わりに Select2 を使用してください。");const r=lu({props:t,name:"Select"}),{onInputChange:i,minWidth:a,isDisabled:o,error:l=!1,closeMenuOnSelect:s=!0,placeholder:c,emptyMessage:d="Not found"}=r,u=R(r,["onInputChange","minWidth","isDisabled","error","closeMenuOnSelect","placeholder","emptyMessage"]),p=oe();return e.createElement(Pw,{ref:n,minWidth:a,isDisabled:o},e.createElement(_w,Object.assign({isClearable:!0,placeholder:c,closeMenuOnSelect:s,noOptionsMessage:()=>d,isDisabled:o,styles:Jw(p,l),maxMenuHeight:150,theme:e=>Object.assign(Object.assign({},e),{palette:p.palette})},u,{components:Object.assign({DropdownIndicator:t=>e.createElement(Ww,Object.assign({},t,{error:l})),ClearIndicator:Gw,IndicatorSeparator:null,MultiValueRemove:Xw,MenuList:Uw},u.components),menuPortalTarget:document.body,onInputChange:(e,t)=>{i&&i(e,t)}})))});var Kw=e.forwardRef((t,n)=>{Ve("CreatableSelect","CreatableSelect は非推奨です。代わりに Select2 を使用してください。");const r=lu({props:t,name:"CreatableSelect"}),{onInputChange:i,minWidth:a,isDisabled:o,error:l=!1,closeMenuOnSelect:s=!0,placeholder:c,emptyMessage:d="Not found",addMessage:u="Create"}=r,p=R(r,["onInputChange","minWidth","isDisabled","error","closeMenuOnSelect","placeholder","emptyMessage","addMessage"]),m=oe();return e.createElement(Pw,{ref:n,minWidth:a,isDisabled:o},e.createElement(Bw,Object.assign({isClearable:!0,placeholder:c,closeMenuOnSelect:s,noOptionsMessage:()=>d,formatCreateLabel:e=>`${u} "${e}"`,isDisabled:o,styles:Jw(m,l),maxMenuHeight:150,theme:e=>Object.assign(Object.assign({},e),{palette:m.palette})},p,{components:Object.assign({DropdownIndicator:t=>e.createElement(Ww,Object.assign({},t,{error:l})),ClearIndicator:Gw,IndicatorSeparator:null,MultiValueRemove:Xw,MenuList:Uw},p.components),menuPortalTarget:document.body,onInputChange:(e,t)=>{i&&i(e,t)}})))});const qw=v.div`
|
|
2482
2481
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
2483
2482
|
`,eC=v.div`
|
|
2484
2483
|
border: ${({fullWidth:e,theme:t})=>e?"none":`1px solid ${t.palette.divider}`};
|
|
2485
2484
|
border-top: 1px solid ${({theme:e})=>e.palette.divider};
|
|
2486
2485
|
border-bottom: 1px solid ${({theme:e})=>e.palette.divider};
|
|
2487
|
-
border-radius: ${({fullWidth:e,theme:t})=>e?"none":`${t.
|
|
2486
|
+
border-radius: ${({fullWidth:e,theme:t})=>e?"none":`${t.radii.large}px`};
|
|
2488
2487
|
`,tC=v.div`
|
|
2489
2488
|
overflow-x: ${({horizontalScrollable:e})=>e?"scroll":"visible"};
|
|
2490
2489
|
overflow-y: ${({maxHeight:e})=>"none"!==e?"scroll":"visible"};
|
|
@@ -2667,10 +2666,10 @@ object-assign
|
|
|
2667
2666
|
white-space: ${({horizontalScrollable:e})=>e?"nowrap":"normal"};
|
|
2668
2667
|
& > thead > tr:first-of-type > th {
|
|
2669
2668
|
&:first-of-type {
|
|
2670
|
-
border-top-left-radius: ${({theme:e})=>e.
|
|
2669
|
+
border-top-left-radius: ${({theme:e})=>e.radii.large}px;
|
|
2671
2670
|
}
|
|
2672
2671
|
&:last-of-type {
|
|
2673
|
-
border-top-right-radius: ${({theme:e})=>e.
|
|
2672
|
+
border-top-right-radius: ${({theme:e})=>e.radii.large}px;
|
|
2674
2673
|
}
|
|
2675
2674
|
}
|
|
2676
2675
|
& > tbody > tr:first-of-type > td {
|
|
@@ -2680,7 +2679,7 @@ object-assign
|
|
|
2680
2679
|
width: 28px;
|
|
2681
2680
|
height: 28px;
|
|
2682
2681
|
margin: 0 4px;
|
|
2683
|
-
border-radius: ${({theme:e})=>e.
|
|
2682
|
+
border-radius: ${({theme:e})=>e.radii.large}px;
|
|
2684
2683
|
border: 0;
|
|
2685
2684
|
background-color: ${({active:e,theme:t})=>e?t.palette.primary.base:t.palette.background.hint};
|
|
2686
2685
|
transition: all 0.3s;
|
|
@@ -2692,7 +2691,7 @@ object-assign
|
|
|
2692
2691
|
width: 28px;
|
|
2693
2692
|
height: 28px;
|
|
2694
2693
|
padding: 0 5px;
|
|
2695
|
-
border-radius: ${({theme:e})=>e.
|
|
2694
|
+
border-radius: ${({theme:e})=>e.radii.large}px;
|
|
2696
2695
|
border: 0;
|
|
2697
2696
|
transition: all 0.3s;
|
|
2698
2697
|
&:first-child {
|
|
@@ -2731,7 +2730,8 @@ object-assign
|
|
|
2731
2730
|
padding-left: ${({theme:e})=>3*e.spacing}px;
|
|
2732
2731
|
background-color: ${({theme:e})=>e.palette.neutral.highlight};
|
|
2733
2732
|
border-bottom: 1px solid ${({theme:e})=>e.palette.divider};
|
|
2734
|
-
border-radius: ${({theme:e})=>`${e.
|
|
2733
|
+
border-radius: ${({theme:e})=>`${e.radii.large}px ${e.radii.large}px`}
|
|
2734
|
+
0 0;
|
|
2735
2735
|
`,ZC=v.ul`
|
|
2736
2736
|
list-style: none;
|
|
2737
2737
|
display: flex;
|
|
@@ -2742,7 +2742,8 @@ object-assign
|
|
|
2742
2742
|
padding: ${({active:e,theme:t})=>e?`calc(${1.5*t.spacing}px - 1px) calc(${2*t.spacing}px - 1px)`:`${1.5*t.spacing}px ${2*t.spacing}px`};
|
|
2743
2743
|
border: ${({active:e,theme:t})=>e?`1px solid ${t.palette.divider}`:"none"};
|
|
2744
2744
|
border-bottom: ${({active:e,theme:t})=>e?"none":`1px solid ${t.palette.divider}`};
|
|
2745
|
-
border-radius: ${({theme:e})=>`${e.
|
|
2745
|
+
border-radius: ${({theme:e})=>`${e.radii.large}px ${e.radii.large}px`}
|
|
2746
|
+
0 0;
|
|
2746
2747
|
background-color: ${({active:e,theme:t})=>e?t.palette.background.default:"none"};
|
|
2747
2748
|
cursor: pointer;
|
|
2748
2749
|
`,PC=({items:t,value:n,onChange:r})=>{const i=e=>()=>{r(e)};return e.createElement(TC,null,e.createElement(ZC,null,t.map(t=>e.createElement(BC,{key:t.value,active:t.value===n,onClick:i(t.value)},e.createElement(Le,{size:"sm",color:t.value===n?"initial":"secondary",align:"center"},t.label)))))};function jC(e,t){const n=a(!1);o(()=>{n.current?e():n.current=!0},t)}function _C(e,t){var n;return!!t&&!(null===(n=t[e])||void 0===n?void 0:n.disabledCheck)}function FC(e,t,n,r){if(0===n)return!1;const i=e[n],a=null==r?void 0:r.selector(i),o=e[n-1],l=null==r?void 0:r.selector(o);return!(r&&!r.enableMergeCell||i[t]!==o[t]||a!==l)}function GC(e,t,n,r){if(r&&!r.enableMergeCell)return 1;const i=e[n],a=null==r?void 0:r.selector(i);let o=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!==a)break;o++}return o}function YC({sourceData:e,tabs:t,currentTabIndex:n}){let r=e;return t&&t[n]&&(r=t[n].filter(r)),r}function WC({sourceData:e,sortState:t,filterState:n,enablePagination:r,tabs:i,currentTabIndex:a}){const o=YC({sourceData:e,tabs:i,currentTabIndex:a}),l=IC(o,t);if(r){return OC(l,n)}return l}var XC=e.forwardRef(({data:t,dataKey:n,columns:r,enablePagination:i=!1,onSelectRowsChange:a,onRadioChange:o,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=!!a,[I,$]=e.useState(!1),M=p.length>0&&!I,k=!!o,A=!!l,[L,H]=e.useState(0),S=r.some(e=>e.enableMergeCell),V=r.find(e=>e.name===d),O=(null==V?void 0:V.sortable)?V: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]=DC(c),[Z,B]=e.useState(WC({sourceData:t,sortState:D,filterState:N,enablePagination:i,tabs:l,currentTabIndex:L})),P=e.useMemo(()=>YC({sourceData:t,tabs:l,currentTabIndex:L}).length,[t,l,L]);jC(()=>{const e=WC({sourceData:t,sortState:D,filterState:N,enablePagination:i,tabs:l,currentTabIndex:L});B(e)},[t,D,N,i,A,l,L]),jC(()=>{const e={index:1,per:N.per};T(e);const n=WC({sourceData:t,sortState:D,filterState:e,enablePagination:i,tabs:l,currentTabIndex:L});B(n)},[t,L]);const j=(e,t)=>()=>{R(((e,t,n)=>({isDesc:e.name===n&&!e.isDesc,getValue:t,name:n}))(D,e,t))},_=e=>()=>{a&&(p.includes(e)?a(p.filter(t=>t!==e)):a([...p,e]))},F=e=>()=>{o&&o(e)};return e.createElement(qw,{ref:C},e.createElement(eC,{fullWidth:f},!!l&&e.createElement(PC,{value:L,items:l.map((e,t)=>({label:e.label,value:t})),onChange:e=>{H(e)}}),e.createElement(tC,{maxHeight:v,horizontalScrollable:x,tabIndex:"none"!==v||x?0:void 0},e.createElement(CC,{horizontalScrollable:x},e.createElement(CC.Header,null,e.createElement(CC.Row,{isStickyHeader:"none"!==v},(!A||_C(L,l))&&e.createElement(e.Fragment,null,E&&e.createElement(sC,{header:!0,selected:p.length>0,indeterminate:M,onClick:()=>{a&&(p.length>0?(a([]),$(!1)):(a(Z.filter(e=>!e.selectDisabled).map(e=>e[n])),$(!0)))}}),k&&e.createElement(fC,{header:!0})),r.map(t=>{return e.createElement(aC,{key:t.name,sortable:t.sortable&&!S,order:(n=D,r=t.name,n.name===r?n.isDesc?"desc":"asc":null),width:t.width,enableRuledLine:h,onClick:t.sortable&&!S?j(t.selector,t.name):void 0},t.headerCell||t.name);var n,r}))),e.createElement(CC.Body,null,Z.length>0?Z.map((t,i)=>e.createElement(e.Fragment,{key:i},E||k?e.createElement(e.Fragment,null,E&&e.createElement(CC.Row,Object.assign({verticalSpacing:g,highlighted:!t.selectDisabled&&(p.includes(t[n])||m===t[n]),disableHoverHighlight:S},!b&&{onClick:_(t[n])}),(!A||_C(L,l))&&!FC(Z,n,i)&&e.createElement(sC,Object.assign({selected:p.includes(t[n]),rowSpan:GC(Z,n,i)},b&&{onClick:_(t[n])})),r.map(r=>FC(Z,n,i,r)?null:e.createElement(CC.Cell,{key:r.name,enableRuledLine:h,rowSpan:GC(Z,n,i,r)},r.renderCell?r.renderCell(t):e.createElement(Le,{align:r.align},r.selector(t))))),k&&e.createElement(CC.Row,Object.assign({verticalSpacing:g,highlighted:!t.selectDisabled&&(p.includes(t[n])||m===t[n]),disableHoverHighlight:S},!b&&{onClick:F(t[n])}),(!A||_C(L,l))&&!FC(Z,n,i)&&e.createElement(fC,{selected:t[n]===m,rowSpan:GC(Z,n,i),onClick:F(t[n])}),r.map(r=>FC(Z,n,i,r)?null:e.createElement(CC.Cell,{key:r.name,enableRuledLine:h,rowSpan:GC(Z,n,i,r)},r.renderCell?r.renderCell(t):e.createElement(Le,{align:r.align},r.selector(t)))))):e.createElement(CC.Row,{verticalSpacing:g,highlighted:!t.selectDisabled&&(p.includes(t[n])||m===t[n]),disableHoverHighlight:S},r.map(r=>FC(Z,n,i,r)?null:e.createElement(CC.Cell,{key:r.name,enableRuledLine:h,rowSpan:GC(Z,n,i,r)},r.renderCell?r.renderCell(t):e.createElement(Le,{align:r.align},r.selector(t))))))):e.createElement("tr",null,e.createElement("td",{colSpan:r.length+(!E&&!k||A&&!_C(L,l)?0:1)},e.createElement(NC,Object.assign({},s)))))))),i&&e.createElement(rl,{p:3},e.createElement(he,{display:"flex",alignItems:"center",justifyContent:"space-between"},e.createElement(VC,{per:N.per,total:P,index:N.index,onClick:e=>{T({index:e,per:N.per})}}),e.createElement(rC,{per:N.per,total:P,index:N.index,labelRowsPerPage:y,labelDisplayedRows:w,onChange:e=>{T({index:1,per:e})}}))))});const JC=!0,UC=!0;function QC(e,t){return!!t.reorder&&(void 0!==e.reorderable?e.reorderable:e.sortable)}function KC(e,t){return!!t.visibility&&(void 0!==e.visibilityEditable?e.visibilityEditable:e.sortable)}function qC(e,t,n){const r=[...e].sort((e,t)=>e.order-t.order);let i=0;const a=r.map(e=>(e=>!QC(e,n))(e)?e.id:t[i++]);return e.map(e=>{const t=a.indexOf(e.id);return t>=0?Object.assign(Object.assign({},e),{order:t}):e})}const eE=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:()=>{}}),tE=s({showStickyRightEdgeDecoration:!0}),nE=s({registerColumnSticky:()=>{},getStickyRightOffset:()=>{},rightStickyColumnIndex:null,getRightStickyZIndexHead:e=>3,getRightStickyZIndexBody:e=>1}),rE=s({index:0}),iE=e=>e<1e3?String(e):e.toLocaleString("en-US"),aE=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")})}),oE=(e,t,n=!1)=>{var r,i;if(n)return t.length>0;let a=!1;if("checked"===e.enabledWhen||void 0===e.enabledWhen)a=0===t.length;else if("unchecked"===e.enabledWhen)a=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&&(a=a||e.disabled(t)),a},lE=(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}`},sE=(e,t,n)=>`group-${t}-item-${e.label||`item-${n}`}`,cE=(e,t,n,r)=>{var i;let a=e.label;if(!a&&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)&&(a=`icon-${t.name}`)}return a||(a=`item-${r}`),`${t}-${n}-${a}`},dE=v.button`
|
|
@@ -2751,7 +2752,7 @@ object-assign
|
|
|
2751
2752
|
box-sizing: border-box;
|
|
2752
2753
|
padding: 4px;
|
|
2753
2754
|
border: 1px solid ${({theme:e})=>e.palette.neutral.lighter};
|
|
2754
|
-
border-radius:
|
|
2755
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
2755
2756
|
background: ${({theme:e})=>e.palette.background.default};
|
|
2756
2757
|
/* UI/Text 12 */
|
|
2757
2758
|
font-size: 12px;
|
|
@@ -2798,7 +2799,7 @@ object-assign
|
|
|
2798
2799
|
|
|
2799
2800
|
${({bordered:e,theme:t})=>e&&y`
|
|
2800
2801
|
overflow: hidden;
|
|
2801
|
-
border-radius:
|
|
2802
|
+
border-radius: ${({theme:e})=>e.radii.medium}px;
|
|
2802
2803
|
|
|
2803
2804
|
&::after {
|
|
2804
2805
|
border-inline: 1px solid ${t.palette.neutral.lighter};
|
|
@@ -2873,7 +2874,7 @@ object-assign
|
|
|
2873
2874
|
gap: 4px;
|
|
2874
2875
|
padding: 5px 4px;
|
|
2875
2876
|
border: 0;
|
|
2876
|
-
border-radius:
|
|
2877
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
2877
2878
|
/* UI/Text 13 */
|
|
2878
2879
|
font-size: 13px;
|
|
2879
2880
|
line-height: 16px;
|
|
@@ -3238,7 +3239,7 @@ object-assign
|
|
|
3238
3239
|
|
|
3239
3240
|
/* サイズに応じた高さとボーダー半径 */
|
|
3240
3241
|
height: ${({$size:e})=>ho[e].height};
|
|
3241
|
-
border-radius: ${({$size:e})=>ho[e].borderRadius};
|
|
3242
|
+
border-radius: ${({$size:e,theme:t})=>t.radii[ho[e].borderRadius]}px;
|
|
3242
3243
|
font-size: ${({$size:e})=>ho[e].fontSize};
|
|
3243
3244
|
|
|
3244
3245
|
/* バリアントに応じた背景色 */
|
|
@@ -3286,7 +3287,7 @@ object-assign
|
|
|
3286
3287
|
cursor: ${({$disabled:e})=>e?"not-allowed":"text"};
|
|
3287
3288
|
|
|
3288
3289
|
height: ${({$size:e})=>ho[e].height};
|
|
3289
|
-
border-radius: ${({$size:e})=>ho[e].borderRadius};
|
|
3290
|
+
border-radius: ${({$size:e,theme:t})=>t.radii[ho[e].borderRadius]}px;
|
|
3290
3291
|
font-size: ${({$size:e,$isIOS:t})=>{const n=ho[e].fontSize;if(t){return parseFloat(n)<16?"16px":n}return n}};
|
|
3291
3292
|
padding: ${({$size:e})=>ho[e].padding};
|
|
3292
3293
|
|
|
@@ -3324,7 +3325,7 @@ object-assign
|
|
|
3324
3325
|
${Q}
|
|
3325
3326
|
display: inline-block;
|
|
3326
3327
|
padding: ${({$editable:e})=>e?"4px 2px":"4px 0"};
|
|
3327
|
-
border-radius:
|
|
3328
|
+
border-radius: ${({theme:e})=>e.radii.xs}px;
|
|
3328
3329
|
white-space: nowrap;
|
|
3329
3330
|
outline: none;
|
|
3330
3331
|
caret-color: transparent;
|
|
@@ -3349,7 +3350,7 @@ object-assign
|
|
|
3349
3350
|
padding: 0;
|
|
3350
3351
|
|
|
3351
3352
|
height: ${({$size:e})=>ho[e].height};
|
|
3352
|
-
border-radius: ${({$size:e})=>ho[e].borderRadius};
|
|
3353
|
+
border-radius: ${({$size:e,theme:t})=>t.radii[ho[e].borderRadius]}px;
|
|
3353
3354
|
font-size: ${({$size:e,$isIOS:t})=>{const n=ho[e].fontSize;if(t){return parseFloat(n)<16?"16px":n}return n}};
|
|
3354
3355
|
|
|
3355
3356
|
background-color: ${({theme:e,$error:t,$disabled:n,$variant:r})=>n?e.palette.neutral.softLight:t?e.palette.danger.highlight:go(e)[r].background};
|
|
@@ -3433,7 +3434,7 @@ object-assign
|
|
|
3433
3434
|
`}
|
|
3434
3435
|
`,s$=v.div`
|
|
3435
3436
|
background: ${({theme:e,active:t})=>t?e.palette.neutral.base:e.palette.neutral.lighter};
|
|
3436
|
-
border-radius: ${({theme:e})=>e.
|
|
3437
|
+
border-radius: ${({theme:e})=>e.radii.xs}px;
|
|
3437
3438
|
position: absolute;
|
|
3438
3439
|
z-index: 11;
|
|
3439
3440
|
${({direction:e})=>"bottom"===e?y`
|
|
@@ -3509,7 +3510,7 @@ object-assign
|
|
|
3509
3510
|
`,y$=({size:t="medium",color:n="primary",onClick:r,split:i=!1,contents:a=[],disabled:o=!1,children:l,icon:s,selectedValue:c,menuWidth:d=200,loading:u=!1,toggleAriaLabel:p="メニューを開く"})=>{const m=oe(),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)(o||h,n),b=e.useMemo(()=>({small:"16px",medium:"18px",large:"20px"}[t]),[t]),v=void 0!==c?c:l,x=e.useMemo(()=>e.createElement(ue,{name:"arrow_bottom",size:m$[t].arrowIconSize,color:f}),[t,f]),y=e.useMemo(()=>h?e.createElement(dl,{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,$=h?w?y:void 0:s,M=(()=>{if(h&&(!w||C))return C?g:void 0})(),k=i?e.createElement(h$,null,e.createElement(g$,{size:t,color:n,inline:!0,disabled:o||h,icon:E,onClick:r},I),e.createElement(f$,{size:t,color:n,inline:!0,disabled:o||h,"data-testid":"menu-toggle","aria-label":p},x)):e.createElement(b$,{size:t,color:n,disabled:o||h,"data-testid":"menu-toggle",icon:$,"aria-label":C?void 0:p},e.createElement(v$,null,h?M?e.createElement(e.Fragment,null,"string"==typeof M?e.createElement(qo,null,M):M,e.createElement(x$,null,e.createElement(rl,{pr:.5}),x)):e.createElement(x$,null,e.createElement(rl,{pr:.5}),x):e.createElement(e.Fragment,null,v&&e.createElement(qo,null,v),e.createElement(x$,null,e.createElement(rl,{pr:.5}),x))));return e.createElement(Po,null,e.createElement(Bo,{trigger:k,width:d},a.map((t,n)=>e.createElement(e.Fragment,{key:`${n}-${t.text}`},t.divideTop&&e.createElement(_o,null),(t=>"heading"===t.type?e.createElement(jo,null,t.text):"helpText"===t.type?e.createElement(Pt,{prepend:t.prepend},t.text):void 0!==t.checked?e.createElement(Pa,{closeOnChange:!0,checked:t.checked,color:t.color,disabled:t.disabled,prepend:t.icon,onChange:t.onChange},t.text):e.createElement(Zt,{closeOnClick:!0,color:t.color,disabled:t.disabled,prepend:t.icon,onClick:t.onClick},t.text))(t)))))},w$=v.div`
|
|
3510
3511
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
3511
3512
|
border: 1px solid ${({theme:e})=>e.palette.neutral.lighter};
|
|
3512
|
-
border-radius: ${({theme:e})=>e.
|
|
3513
|
+
border-radius: ${({theme:e})=>e.radii.large}px;
|
|
3513
3514
|
display: flex;
|
|
3514
3515
|
height: 512px;
|
|
3515
3516
|
overflow: hidden;
|
|
@@ -3621,7 +3622,7 @@ object-assign
|
|
|
3621
3622
|
height: 100%;
|
|
3622
3623
|
min-height: 0;
|
|
3623
3624
|
flex: 1 1 auto;
|
|
3624
|
-
border-radius:
|
|
3625
|
+
border-radius: ${({theme:e})=>e.radii.medium}px;
|
|
3625
3626
|
border: 1px solid ${({theme:e})=>e.palette.neutral.lighter};
|
|
3626
3627
|
background: ${({theme:e})=>e.palette.background.default};
|
|
3627
3628
|
|
|
@@ -3629,9 +3630,6 @@ object-assign
|
|
|
3629
3630
|
display: flex;
|
|
3630
3631
|
flex-direction: column;
|
|
3631
3632
|
overflow: hidden;
|
|
3632
|
-
}
|
|
3633
|
-
|
|
3634
|
-
@media (max-width: ${J.MOBILE}px) {
|
|
3635
3633
|
border: 0;
|
|
3636
3634
|
border-radius: 0;
|
|
3637
3635
|
}
|
|
@@ -3673,9 +3671,9 @@ object-assign
|
|
|
3673
3671
|
padding: 16px;
|
|
3674
3672
|
border-bottom: 1px solid ${({theme:e})=>e.palette.neutral.lighter};
|
|
3675
3673
|
background: ${({theme:e})=>e.palette.neutral.highlight};
|
|
3676
|
-
border-radius:
|
|
3674
|
+
border-radius: ${({theme:e})=>`${e.radii.medium}px 0 0 0`};
|
|
3677
3675
|
|
|
3678
|
-
@
|
|
3676
|
+
@container dual-list-box (max-width: ${U.SMALL}px) {
|
|
3679
3677
|
border-radius: 0;
|
|
3680
3678
|
}
|
|
3681
3679
|
`,Y$=v.div`
|
|
@@ -3688,7 +3686,7 @@ object-assign
|
|
|
3688
3686
|
padding: 0 6px;
|
|
3689
3687
|
background: ${({theme:e})=>e.palette.background.default};
|
|
3690
3688
|
border: 1px solid ${({theme:e})=>e.palette.neutral.lighter};
|
|
3691
|
-
border-radius:
|
|
3689
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
3692
3690
|
|
|
3693
3691
|
&:has(input:disabled) {
|
|
3694
3692
|
background: ${({theme:e})=>e.palette.neutral.softLight};
|
|
@@ -3751,19 +3749,30 @@ object-assign
|
|
|
3751
3749
|
display: flex;
|
|
3752
3750
|
justify-content: space-between;
|
|
3753
3751
|
padding: 8px 16px;
|
|
3754
|
-
border-top-right-radius:
|
|
3752
|
+
border-top-right-radius: ${({theme:e})=>e.radii.medium}px;
|
|
3755
3753
|
border-bottom: 1px solid ${({theme:e})=>e.palette.neutral.lighter};
|
|
3756
3754
|
border-left: 1px solid ${({theme:e})=>e.palette.neutral.lighter};
|
|
3757
3755
|
background: ${({theme:e})=>e.palette.neutral.highlight};
|
|
3758
3756
|
|
|
3759
3757
|
@container dual-list-box (max-width: ${U.SMALL}px) {
|
|
3760
3758
|
border-left: none;
|
|
3759
|
+
border-top-right-radius: 0;
|
|
3761
3760
|
}
|
|
3762
3761
|
`,eM=F$,tM=v.div`
|
|
3763
3762
|
display: flex;
|
|
3764
3763
|
align-items: center;
|
|
3765
3764
|
gap: 8px;
|
|
3766
|
-
`,nM=
|
|
3765
|
+
`,nM=y`
|
|
3766
|
+
display: flex;
|
|
3767
|
+
align-items: center;
|
|
3768
|
+
gap: 2px;
|
|
3769
|
+
padding: 2px 4px;
|
|
3770
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
3771
|
+
/* UI/Text 12 bold */
|
|
3772
|
+
font-weight: 700;
|
|
3773
|
+
font-size: 12px;
|
|
3774
|
+
line-height: 14px;
|
|
3775
|
+
`,rM=v.div`
|
|
3767
3776
|
${nM}
|
|
3768
3777
|
color: ${({theme:e})=>e.palette.primary.base};
|
|
3769
3778
|
background: ${({theme:e})=>e.palette.primary.highlight};
|
|
@@ -4007,12 +4016,12 @@ object-assign
|
|
|
4007
4016
|
border: 2px solid ${({theme:e})=>e.palette.primary.base};
|
|
4008
4017
|
background-color: ${({theme:e})=>e.palette.background.hint};
|
|
4009
4018
|
}
|
|
4010
|
-
`,NM=v.div``,TM=e.forwardRef(function(t,n){const r=lu({props:t,name:"FileUploader"}),{accept:i,title:a="Click or Drag & Drop file.",width:o,description:l,onSelectFiles:s}=r,c=e.useRef(null),[d,u]=e.useState(!1),p=e.useCallback(e=>{e.preventDefault(),e.stopPropagation(),u(!1),s(e,e.dataTransfer.files)},[u,s]),m=e.useCallback(e=>{e.preventDefault(),e.stopPropagation(),u(!0)},[u]),h=e.useCallback(()=>{u(!1)},[u]),g=e.useCallback(e=>{s(e,e.target.files)},[s]);return e.createElement(zM,{ref:n,width:o,filesDraggedOver:d,onDrop:p,onDragOver:m,onDragLeave:h,onClick:()=>{var e;null===(e=c.current)||void 0===e||e.click()}},e.createElement("input",{ref:c,multiple:!0,"aria-label":"file-uploader",type:"file",accept:i,onChange:g}),e.createElement(NM,null,e.createElement(he,{display:"flex"},e.createElement(ue,{name:"folder_open",size:"md",color:"active"}),e.createElement(Le,{weight:"bold",color:"primary"},a)),l&&e.createElement(e.Fragment,null,e.createElement(rl,{pt:2.5}),e.createElement(Le,{weight:"bold",align:"center",size:"sm",color:"secondary"},l))))}),ZM={small:{height:"28px",borderRadius:"
|
|
4019
|
+
`,NM=v.div``,TM=e.forwardRef(function(t,n){const r=lu({props:t,name:"FileUploader"}),{accept:i,title:a="Click or Drag & Drop file.",width:o,description:l,onSelectFiles:s}=r,c=e.useRef(null),[d,u]=e.useState(!1),p=e.useCallback(e=>{e.preventDefault(),e.stopPropagation(),u(!1),s(e,e.dataTransfer.files)},[u,s]),m=e.useCallback(e=>{e.preventDefault(),e.stopPropagation(),u(!0)},[u]),h=e.useCallback(()=>{u(!1)},[u]),g=e.useCallback(e=>{s(e,e.target.files)},[s]);return e.createElement(zM,{ref:n,width:o,filesDraggedOver:d,onDrop:p,onDragOver:m,onDragLeave:h,onClick:()=>{var e;null===(e=c.current)||void 0===e||e.click()}},e.createElement("input",{ref:c,multiple:!0,"aria-label":"file-uploader",type:"file",accept:i,onChange:g}),e.createElement(NM,null,e.createElement(he,{display:"flex"},e.createElement(ue,{name:"folder_open",size:"md",color:"active"}),e.createElement(Le,{weight:"bold",color:"primary"},a)),l&&e.createElement(e.Fragment,null,e.createElement(rl,{pt:2.5}),e.createElement(Le,{weight:"bold",align:"center",size:"sm",color:"secondary"},l))))}),ZM={small:{height:"28px",borderRadius:"small",iconSize:"20px",arrowIconSize:"16px",padding:"0 2px 0 6px"},medium:{height:"34px",borderRadius:"medium",iconSize:"22px",arrowIconSize:"18px",padding:"0 2px 0 6px"},large:{height:"40px",borderRadius:"medium",iconSize:"24px",arrowIconSize:"20px",padding:"0 4px 0 8px"}},BM=e=>({light:{background:e.palette.background.default},dark:{background:e.palette.neutral.ultraLight}}),PM=y`
|
|
4011
4020
|
border: 1px solid ${({theme:e})=>e.palette.neutral.lighter};
|
|
4012
4021
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
4013
4022
|
`,jM=e=>y`
|
|
4014
4023
|
height: ${ZM[e].height};
|
|
4015
|
-
border-radius: ${ZM[e].borderRadius};
|
|
4024
|
+
border-radius: ${({theme:t})=>t.radii[ZM[e].borderRadius]}px;
|
|
4016
4025
|
`,_M=e=>y`
|
|
4017
4026
|
/* 左側のアイコン */
|
|
4018
4027
|
span:first-child {
|
|
@@ -4351,7 +4360,7 @@ object-assign
|
|
|
4351
4360
|
align-items: center;
|
|
4352
4361
|
min-height: 100%;
|
|
4353
4362
|
padding: 0 5px;
|
|
4354
|
-
border-radius: 0
|
|
4363
|
+
border-radius: ${({theme:e})=>`0 ${e.radii.small}px ${e.radii.small}px 0`};
|
|
4355
4364
|
overflow: auto;
|
|
4356
4365
|
scrollbar-width: none;
|
|
4357
4366
|
background: ${({$variant:e,theme:t})=>BM(t)[e].background};
|
|
@@ -4400,7 +4409,7 @@ object-assign
|
|
|
4400
4409
|
width: ${({$size:e="medium"})=>bk[e]};
|
|
4401
4410
|
aspect-ratio: 1;
|
|
4402
4411
|
border: 1px solid ${({theme:e})=>e.palette.neutral.lighter};
|
|
4403
|
-
border-radius:
|
|
4412
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
4404
4413
|
box-shadow: ${({theme:e})=>Z(1,.04,e.palette.action.shadowBase)};
|
|
4405
4414
|
|
|
4406
4415
|
&:disabled {
|
|
@@ -4463,7 +4472,7 @@ object-assign
|
|
|
4463
4472
|
width: 100%;
|
|
4464
4473
|
max-width: 800px;
|
|
4465
4474
|
padding: 16px;
|
|
4466
|
-
border-radius:
|
|
4475
|
+
border-radius: ${({theme:e})=>e.radii.medium}px;
|
|
4467
4476
|
background: ${({theme:e})=>e.palette.background.default};
|
|
4468
4477
|
border: 1px solid ${({theme:e})=>e.palette.neutral.softLight};
|
|
4469
4478
|
/* Drop shadow Common */
|
|
@@ -4523,7 +4532,7 @@ object-assign
|
|
|
4523
4532
|
height: 34px;
|
|
4524
4533
|
padding: 4px 8px;
|
|
4525
4534
|
border: 1px solid ${({theme:e})=>e.palette.neutral.lighter};
|
|
4526
|
-
border-radius:
|
|
4535
|
+
border-radius: ${({theme:e})=>e.radii.medium}px;
|
|
4527
4536
|
/* UI/Text 13 */
|
|
4528
4537
|
font-weight: 400;
|
|
4529
4538
|
font-size: 13px;
|
|
@@ -4581,7 +4590,7 @@ object-assign
|
|
|
4581
4590
|
min-height: 34px;
|
|
4582
4591
|
padding: 6px 37px 6px 6px;
|
|
4583
4592
|
border: 1px solid ${({theme:e})=>e.palette.neutral.lighter};
|
|
4584
|
-
border-radius:
|
|
4593
|
+
border-radius: ${({theme:e})=>e.radii.medium}px;
|
|
4585
4594
|
background: ${({theme:e})=>e.palette.neutral.ultraLight};
|
|
4586
4595
|
cursor: text;
|
|
4587
4596
|
|
|
@@ -4671,7 +4680,7 @@ object-assign
|
|
|
4671
4680
|
width: 100vw;
|
|
4672
4681
|
height: 100vh;
|
|
4673
4682
|
transform: translate(-50%, -48%);
|
|
4674
|
-
border-radius:
|
|
4683
|
+
border-radius: ${({theme:e})=>`${e.radii.large}px ${e.radii.large}px 0 0`};
|
|
4675
4684
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
4676
4685
|
animation: ${Fk} 0.4s;
|
|
4677
4686
|
overflow: hidden;
|
|
@@ -4753,7 +4762,7 @@ object-assign
|
|
|
4753
4762
|
gap: ${({$size:e})=>nA[e].gap};
|
|
4754
4763
|
font-size: ${({$size:e})=>`${nA[e].fontSize}px`};
|
|
4755
4764
|
text-decoration: none;
|
|
4756
|
-
border-radius: ${({theme:e})=>e.
|
|
4765
|
+
border-radius: ${({theme:e})=>e.radii.small}px;
|
|
4757
4766
|
transition: background-color 0.3s ease;
|
|
4758
4767
|
|
|
4759
4768
|
${({$isLink:e,theme:t})=>e&&y`
|
|
@@ -4826,7 +4835,7 @@ object-assign
|
|
|
4826
4835
|
`,dA=v.div`
|
|
4827
4836
|
border: 1px solid
|
|
4828
4837
|
${({theme:e,isFocused:t})=>t?e.palette.primary.base:e.palette.neutral.lighter};
|
|
4829
|
-
border-radius: ${({theme:e})=>e.
|
|
4838
|
+
border-radius: ${({theme:e})=>e.radii.large}px;
|
|
4830
4839
|
display: flex;
|
|
4831
4840
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
4832
4841
|
`,uA=v.div`
|
|
@@ -4866,7 +4875,7 @@ object-assign
|
|
|
4866
4875
|
box-shadow: ${({theme:e})=>Z(5,e.palette.action.shadowOpacity,e.palette.action.shadowBase)};
|
|
4867
4876
|
min-width: 300px;
|
|
4868
4877
|
width: ${({width:e})=>e};
|
|
4869
|
-
border-radius: ${({theme:e})=>`${e.
|
|
4878
|
+
border-radius: ${({theme:e})=>`${e.radii.large}px`};
|
|
4870
4879
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
4871
4880
|
`,vA=v.div`
|
|
4872
4881
|
display: flex;
|
|
@@ -4907,7 +4916,7 @@ object-assign
|
|
|
4907
4916
|
${({theme:e})=>T(e.palette.neutral.lighter,.4)};
|
|
4908
4917
|
min-width: 300px;
|
|
4909
4918
|
width: ${({width:e})=>e};
|
|
4910
|
-
border-radius: ${({theme:e})=>`${e.
|
|
4919
|
+
border-radius: ${({theme:e})=>`${e.radii.large}px`};
|
|
4911
4920
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
4912
4921
|
`,HA=v.div`
|
|
4913
4922
|
display: flex;
|
|
@@ -4929,7 +4938,7 @@ object-assign
|
|
|
4929
4938
|
height: auto;
|
|
4930
4939
|
background-color: ${({theme:e})=>e.palette.neutral.highlight};
|
|
4931
4940
|
border: 1px solid ${({theme:e})=>e.palette.neutral.lighter};
|
|
4932
|
-
border-radius: ${({theme:e})=>e.
|
|
4941
|
+
border-radius: ${({theme:e})=>e.radii.large}px;
|
|
4933
4942
|
color: ${({theme:e})=>e.palette.black};
|
|
4934
4943
|
display: inline-flex;
|
|
4935
4944
|
justify-content: center;
|
|
@@ -5462,7 +5471,7 @@ object-assign
|
|
|
5462
5471
|
padding-left: ${({theme:e})=>2*e.spacing}px;
|
|
5463
5472
|
background: ${({background:e})=>e};
|
|
5464
5473
|
box-shadow: ${({boxShadow:e})=>e};
|
|
5465
|
-
border-radius: ${({theme:e})=>e.
|
|
5474
|
+
border-radius: ${({theme:e})=>e.radii.large}px;
|
|
5466
5475
|
color: ${({textColor:e})=>e||"inherit"};
|
|
5467
5476
|
`,zH=v.div`
|
|
5468
5477
|
position: absolute;
|
|
@@ -5471,13 +5480,13 @@ object-assign
|
|
|
5471
5480
|
cursor: pointer;
|
|
5472
5481
|
`,NH=({color:t,onClose:n,children:r})=>{const i=(e=>({default:{iconColor:e.palette.black,boxShadow:Z(5,e.palette.action.shadowOpacity,e.palette.action.shadowBase),background:e.palette.background.default},dark:{iconColor:e.palette.white,boxShadow:Z(5,e.palette.action.shadowOpacity,e.palette.action.shadowBase),background:e.palette.black,textColor:e.palette.text.white},warning:{iconColor:e.palette.warning.ultraDark,boxShadow:Z(5,e.palette.action.shadowOpacity,e.palette.warning.highlight),background:e.palette.warning.highlight}}))(oe())[t];return e.createElement(RH,Object.assign({},i),r,e.createElement(zH,{onClick:n},e.createElement(ue,{name:"close",color:i.iconColor})))},TH=e.forwardRef(function({color:t="default",anchorOrigin:{vertical:n,horizontal:r}={vertical:"bottom",horizontal:"right"},isOpen:i,onClose:a,children:o},l){return i?e.createElement(DH,{ref:l,vertical:n,horizontal:r,role:"warning"===t?"alert":"status"},e.createElement(NH,{color:t,onClose:a},o)):null}),ZH=v.div`
|
|
5473
5482
|
display: block;
|
|
5474
|
-
`,BH=e.forwardRef(function(t,n){var{children:r}=t,i=R(t,["children"]);return e.createElement(he,Object.assign({ref:n,display:"flex"},i),e.createElement(rl,{pr:1}),e.createElement(Cb,{orientation:"vertical"}),e.createElement(rl,{pr:1}),e.createElement(ZH,null,r))}),PH={small:{height:"28px",fontSize:"12px",padding:"3px",borderRadius:"
|
|
5483
|
+
`,BH=e.forwardRef(function(t,n){var{children:r}=t,i=R(t,["children"]);return e.createElement(he,Object.assign({ref:n,display:"flex"},i),e.createElement(rl,{pr:1}),e.createElement(Cb,{orientation:"vertical"}),e.createElement(rl,{pr:1}),e.createElement(ZH,null,r))}),PH={small:{height:"28px",fontSize:"12px",padding:"3px",borderRadius:"small",itemHeight:"20px",itemPadding:"0 4px",itemRadius:"xs",iconSize:"sm-md",iconItemWidth:"24px",gap:"8px"},medium:{height:"34px",fontSize:"12px",padding:"3px",borderRadius:"medium",itemHeight:"26px",itemPadding:"0 6px",itemRadius:"small",iconSize:"sm-md",iconItemWidth:"30px",gap:"8px"},large:{height:"40px",fontSize:"13px",padding:"3px",borderRadius:"medium",itemHeight:"32px",itemPadding:"0 6px",itemRadius:"small",iconSize:"md",iconItemWidth:"32px",gap:"8px"}},jH=e=>({light:{containerBackground:e.palette.background.default,indicatorBackground:e.palette.black,textColor:e.palette.black,textColorActive:e.palette.background.default,textColorDisabled:e.palette.text.disabled,iconColor:e.palette.black,iconColorActive:e.palette.background.default,iconColorDisabled:e.palette.neutral.lighter,borderColor:e.palette.neutral.lighter,hoverBackground:e.palette.neutral.softLight,indicatorShadow:`0px 1px 1px 0px ${T(e.palette.black,.16)}`},dark:{containerBackground:e.palette.neutral.highlight,indicatorBackground:e.palette.background.default,textColor:e.palette.text.secondary,textColorActive:e.palette.black,textColorDisabled:e.palette.text.disabled,iconColor:e.palette.text.secondary,iconColorActive:e.palette.black,iconColorDisabled:e.palette.neutral.lighter,borderColor:e.palette.neutral.lighter,hoverBackground:e.palette.neutral.softLight,indicatorShadow:`0px 1px 1px 0px ${T(e.palette.black,.16)}`},primary:{containerBackground:e.palette.primary.ultraLight,indicatorBackground:e.palette.primary.base,textColor:e.palette.primary.base,textColorActive:e.palette.background.default,textColorDisabled:e.palette.text.disabled,iconColor:e.palette.primary.base,iconColorActive:e.palette.background.default,iconColorDisabled:e.palette.neutral.lighter,borderColor:e.palette.primary.base,hoverBackground:e.palette.primary.highlight,indicatorShadow:`0px 1px 1px 0px ${T(e.palette.primary.base,.16)}`}}),_H=v.div`
|
|
5475
5484
|
box-sizing: border-box;
|
|
5476
5485
|
display: inline-flex;
|
|
5477
5486
|
align-items: center;
|
|
5478
5487
|
height: ${({$size:e})=>PH[e].height};
|
|
5479
5488
|
padding: ${({$size:e})=>PH[e].padding};
|
|
5480
|
-
border-radius: ${({$size:e})=>PH[e].borderRadius};
|
|
5489
|
+
border-radius: ${({$size:e,theme:t})=>t.radii[PH[e].borderRadius]}px;
|
|
5481
5490
|
background-color: ${({$variant:e,theme:t,$disabled:n})=>{if(n)return t.palette.neutral.softLight;return jH(t)[e].containerBackground}};
|
|
5482
5491
|
border: 1px solid
|
|
5483
5492
|
${({$variant:e,theme:t,$disabled:n})=>{if(n)return t.palette.neutral.lighter;return jH(t)[e].borderColor}};
|
|
@@ -5501,7 +5510,7 @@ object-assign
|
|
|
5501
5510
|
justify-content: center;
|
|
5502
5511
|
width: ${({$size:e})=>PH[e].iconItemWidth};
|
|
5503
5512
|
height: ${({$size:e})=>PH[e].itemHeight};
|
|
5504
|
-
border-radius: ${({$size:e})=>PH[e].itemRadius};
|
|
5513
|
+
border-radius: ${({$size:e,theme:t})=>t.radii[PH[e].itemRadius]}px;
|
|
5505
5514
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
5506
5515
|
transition: all 0.3s ease-in-out;
|
|
5507
5516
|
background-color: transparent;
|
|
@@ -5517,7 +5526,7 @@ object-assign
|
|
|
5517
5526
|
justify-content: center;
|
|
5518
5527
|
height: ${({$size:e})=>PH[e].itemHeight};
|
|
5519
5528
|
padding: ${({$size:e})=>PH[e].itemPadding};
|
|
5520
|
-
border-radius: ${({$size:e})=>PH[e].itemRadius};
|
|
5529
|
+
border-radius: ${({$size:e,theme:t})=>t.radii[PH[e].itemRadius]}px;
|
|
5521
5530
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
5522
5531
|
transition: all 0.3s ease-in-out;
|
|
5523
5532
|
background-color: transparent;
|
|
@@ -5539,8 +5548,8 @@ object-assign
|
|
|
5539
5548
|
transition: all 0.3s ease-in-out; //インジケーターの動きだしタイミングを少しだけ速くする
|
|
5540
5549
|
background-color: ${({$variant:e,theme:t,$disabled:n})=>{if(n)return t.palette.text.disabled;return jH(t)[e].indicatorBackground}};
|
|
5541
5550
|
box-shadow: ${({$variant:e,theme:t,$disabled:n})=>{if(n)return"none";return jH(t)[e].indicatorShadow}};
|
|
5542
|
-
border-radius: ${({$size:e})=>PH[e].itemRadius};
|
|
5543
|
-
`,JH="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function UH(e){const n=t.useRef(e);return JH(()=>{n.current=e}),t.useCallback((...e)=>n.current(...e),[])}const QH=e.forwardRef(function({cases:t,value:n,onChange:r,size:i="medium",variant:a="light",disabled:o=!1,fullWidth:l=!1,width:s,showTooltip:c=!1,tooltipPosition:d=["top-start","bottom-start","auto"]},u){const p=oe(),m=t,h=new Map,g=e.useRef(null),f=e.useRef(null),[b,v]=e.useState({}),x=(e,t)=>()=>{!r||o||t||r(e)},y=e.useMemo(()=>"small"===i||"medium"===i?"sm-md":"md",[i]),w=e.useCallback((e,t)=>t?jH(p)[a].iconColorActive:e?p.palette.text.disabled:jH(p)[a].iconColor,[p,a]),C=e.useCallback((e,t)=>{const n=jH(p)[a];return t?n.textColorActive:e?n.textColorDisabled:n.textColor},[p,a]),E=e.useMemo(()=>"small"===i?"xs":"sm",[i]),I=UH(()=>{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)}});e.useEffect(()=>{I()},[n,m.length,i,a,I]),e.useEffect(()=>{const e=()=>{I()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[I]);const $=o||m.some((e,t)=>(void 0===e.value?t:e.value)===n&&!!e.disabled);return e.createElement(_H,{ref:u,$size:i,$variant:a,$disabled:o,$fullWidth:l,$width:s,role:"tablist","aria-label":"Switch options"},e.createElement(FH,{ref:g},e.createElement(XH,{$size:i,$variant:a,$disabled:$,style:Object.assign({},b)}),e.createElement(GH,{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||o,p=null!=t.icon?e.createElement(YH,{$size:i,$variant:a,$active:s,$disabled:u,"data-disabled":u,role:"tab","aria-selected":s,tabIndex:u?-1:0,onClick:x(l,u)},e.createElement(ue,{name:t.icon,size:y,color:w(u,s)})):e.createElement(WH,{key:t.name,$size:i,$variant:a,$active:s,$disabled:u,"data-disabled":u,role:"tab","aria-selected":s,tabIndex:u?-1:0,onClick:x(l,u)},e.createElement(Le,{trimVertical:!0,component:"span",size:E,weight:"normal",color:C(u,s)},t.name));return c?e.createElement(Fc,{key:t.name,content:t.name,positionPriority:d,offset:[0,15]},p):e.createElement(e.Fragment,{key:t.name},p)}))))}),KH=e.forwardRef(function(t,n){var{children:r}=t,i=R(t,["children"]);return e.createElement("tbody",Object.assign({ref:n},i),r)}),qH=v.td`
|
|
5551
|
+
border-radius: ${({$size:e,theme:t})=>t.radii[PH[e].itemRadius]}px;
|
|
5552
|
+
`,JH="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function UH(e){const n=t.useRef(e);return JH(()=>{n.current=e}),t.useCallback((...e)=>n.current(...e),[])}const QH=e.forwardRef(function({cases:t,value:n,onChange:r,size:i="medium",variant:a="light",disabled:o=!1,fullWidth:l=!1,width:s,showTooltip:c=!1,tooltipPosition:d=["top-start","bottom-start","auto"]},u){const p=oe(),m=t,h=new Map,g=e.useRef(null),f=e.useRef(null),[b,v]=e.useState({}),x=(e,t)=>()=>{!r||o||t||r(e)},y=e.useMemo(()=>"small"===i||"medium"===i?"sm-md":"md",[i]),w=e.useCallback((e,t)=>t?jH(p)[a].iconColorActive:e?p.palette.text.disabled:jH(p)[a].iconColor,[p,a]),C=e.useCallback((e,t)=>{const n=jH(p)[a];return t?n.textColorActive:e?n.textColorDisabled:n.textColor},[p,a]),E=e.useMemo(()=>"small"===i?"xs":"sm",[i]),I=UH(()=>{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)}});e.useEffect(()=>{I()},[n,m.length,i,a,I]),e.useEffect(()=>{const e=()=>{I()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[I]);const $=o||m.some((e,t)=>(void 0===e.value?t:e.value)===n&&!!e.disabled);return e.createElement(_H,{ref:u,$size:i,$variant:a,$disabled:o,$fullWidth:l,$width:s,role:"tablist","aria-label":"Switch options"},e.createElement(FH,{ref:g},e.createElement(XH,{$size:i,$variant:a,$disabled:$,style:Object.assign({},b)}),e.createElement(GH,{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||o,p=null!=t.icon?e.createElement(YH,{$size:i,$variant:a,$active:s,$disabled:u,"data-disabled":u,role:"tab","aria-label":t.name,"aria-selected":s,tabIndex:u?-1:0,onClick:x(l,u)},e.createElement(ue,{name:t.icon,size:y,color:w(u,s)})):e.createElement(WH,{key:t.name,$size:i,$variant:a,$active:s,$disabled:u,"data-disabled":u,role:"tab","aria-selected":s,tabIndex:u?-1:0,onClick:x(l,u)},e.createElement(Le,{trimVertical:!0,component:"span",size:E,weight:"normal",color:C(u,s)},t.name));return c?e.createElement(Fc,{key:t.name,content:t.name,positionPriority:d,offset:[0,15]},p):e.createElement(e.Fragment,{key:t.name},p)}))))}),KH=e.forwardRef(function(t,n){var{children:r}=t,i=R(t,["children"]);return e.createElement("tbody",Object.assign({ref:n},i),r)}),qH=v.td`
|
|
5544
5553
|
width: ${({width:e})=>e};
|
|
5545
5554
|
padding: ${({theme:e})=>2*e.spacing}px;
|
|
5546
5555
|
`,eS=e.forwardRef(function(t,n){var{width:r="auto",children:i}=t,a=R(t,["width","children"]);return e.createElement(qH,Object.assign({ref:n,width:r},a),e.createElement(Le,{component:"div"},i))}),tS=e.forwardRef(function({children:t},n){return e.createElement("thead",{ref:n},t)}),nS={small:"8px",medium:"12px",large:"16px"},rS=e=>nS[e],iS=v.tr`
|
|
@@ -5609,7 +5618,7 @@ object-assign
|
|
|
5609
5618
|
padding: ${n.spacing}px;
|
|
5610
5619
|
text-align: left;
|
|
5611
5620
|
white-space: normal;
|
|
5612
|
-
border-radius:
|
|
5621
|
+
border-radius: ${n.radii.small}px;
|
|
5613
5622
|
|
|
5614
5623
|
${t&&y`
|
|
5615
5624
|
&::before {
|
|
@@ -5674,7 +5683,7 @@ object-assign
|
|
|
5674
5683
|
opacity ${({transitionDuration:e})=>e}ms;
|
|
5675
5684
|
transform: ${({transform:e})=>e};
|
|
5676
5685
|
opacity: ${({opacity:e})=>e};
|
|
5677
|
-
border-radius: ${({theme:e})=>e.
|
|
5686
|
+
border-radius: ${({theme:e})=>e.radii.large}px;
|
|
5678
5687
|
|
|
5679
5688
|
@media (min-width: ${J.MOBILE}px) {
|
|
5680
5689
|
min-width: ${400}px;
|