itmar-block-packages 1.4.0 → 1.4.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/README.md CHANGED
@@ -14,6 +14,9 @@ import {関数名又はコンポーネント名} from "itmar-block-packages"
14
14
  npm i @wordpress/scripts@^27.6.0 --save-dev
15
15
 
16
16
  ## 更新履歴
17
+ = 1.4.1 =
18
+ - UpdateAllPostsBlockAttributesコンポーネントの宣言の誤りを修正
19
+
17
20
  = 1.4.0 =
18
21
  - 指定した投稿タイプの投稿に含まれる特定のブロックの属性を書き換えるコンポーネントであるUpdateAllPostsBlockAttributesコンポーネントを追加
19
22
 
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '8a9b799afec20fc0d3e4');
1
+ <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '79af53cfd6b49f1b6015');
package/build/index.js CHANGED
@@ -22,4 +22,4 @@
22
22
  animation-fill-mode: forwards;
23
23
  opacity: 0;
24
24
  }
25
- `;function Jn(e){const{is_anime:t,anime_prm:n}=e.attributes;return(0,v.createElement)(v.Fragment,null,(0,v.createElement)(y.PanelBody,{title:(0,i.__)("Animation Setting","block-collections"),initialOpen:!0},(0,v.createElement)(y.ToggleControl,{label:(0,i.__)("Is Animation","block-collections"),checked:t,onChange:t=>{e.onChange({is_anime:t})}}),t&&(0,v.createElement)(v.Fragment,null,(0,v.createElement)("div",{className:"itmar_link_type"},(0,v.createElement)(y.RadioControl,{label:(0,i.__)("Animation Pattern","block-collections"),selected:n.pattern,options:[{label:"flipDown",value:"flipDown"},{label:"fadeUp",value:"fadeUp"},{label:"fadeLeft",value:"fadeLeft"},{label:"fadeRight",value:"fadeRight"}],onChange:t=>{e.onChange({anime_prm:{...n,pattern:t}})}})),(0,v.createElement)(y.RangeControl,{value:n.duration,label:(0,i.__)("Animation duration time","block-collections"),max:5,min:0,onChange:t=>{e.onChange({anime_prm:{...n,duration:t}})},step:.1,withInputField:!0}),(0,v.createElement)(y.RangeControl,{value:n.delay,label:(0,i.__)("Animation delay time","block-collections"),max:3,min:0,onChange:t=>{e.onChange({anime_prm:{...n,delay:t}})},step:.1,withInputField:!0}),(0,v.createElement)("div",{className:"itmar_link_type"},(0,v.createElement)(y.RadioControl,{label:(0,i.__)("Animation Trigger","block-collections"),selected:n.trigger,options:[{label:(0,i.__)("Page Opend","block-collections"),value:"opend"},{label:(0,i.__)("Enter Visible","block-collections"),value:"visible"}],onChange:t=>{e.onChange({anime_prm:{...n,trigger:t}})}})))))}const Kn=window.wp.primitives,Qn=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})),er=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),tr=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})),nr=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),rr=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})),or=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),ar=(0,v.createElement)(Kn.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,v.createElement)(Kn.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})),ir=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),lr=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})),sr=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})),cr=(0,v.createElement)(y.Icon,{icon:er,className:"rotate-icon"}),ur=(0,v.createElement)(y.Icon,{icon:tr,className:"rotate-icon"}),pr=(0,v.createElement)(y.Icon,{icon:nr,className:"rotate-icon"}),dr={left:er,center:tr,right:nr,upper:cr,middle:ur,lower:pr},fr=[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],mr=(e,t)=>Array.isArray(e)?Array.from({length:t},((t,n)=>e[n]||"1fr")):Array(t).fill("1fr"),hr=(e,t,n)=>{for(let r=0;r<e.length;r++){const{startCell:o,endCell:a}=e[r],i=Math.min(o?.rowInx,a?.rowInx),l=Math.max(o?.rowInx,a?.rowInx),s=Math.min(o?.colInx,a?.colInx),c=Math.max(o?.colInx,a?.colInx);if(t>=i&&t<=l&&n>=s&&n<=c)return{index:r,elm:e[r]}}return null},gr=({children:e})=>(0,v.createElement)("div",{className:"itmar_event_stopper",onClick:e=>{e.stopPropagation()}},e),vr=({attributes:n,clientId:r,onChange:o})=>{const{gridElms:a,rowNum:l,colNum:s,rowGap:c,colGap:u,rowUnit:p,colUnit:d}=n,[f,m]=(0,e.useState)(l),[h,g]=(0,e.useState)(s),b=(0,e.useRef)(!0),w=(e,n)=>{if(!C)return void(0,t.dispatch)("core/notices").createNotice("error",(0,i.__)("No blocks selected.","itmar_guest_contact_block"),{type:"snackbar",isDismissible:!0});if(hr(a,e,n))return void(0,t.dispatch)("core/notices").createNotice("error",(0,i.__)("That cell is already selected by another block.","itmar_guest_contact_block"),{type:"snackbar",isDismissible:!0});const r=C.startCell?{...C,endCell:{rowInx:e,colInx:n}}:{...C,startCell:{rowInx:e,colInx:n},endCell:{rowInx:e,colInx:n}};E(r);const o=a?.findIndex((e=>e.value===C.value)),l=[...S.slice(0,o),r,...S.slice(o+1)];O(l)},_=(e,t)=>{if(C){const n=Math.min(C.startCell?.rowInx,C.endCell?.rowInx),r=Math.max(C.startCell?.rowInx,C.endCell?.rowInx),o=Math.min(C.startCell?.colInx,C.endCell?.colInx),a=Math.max(C.startCell?.colInx,C.endCell?.colInx);return e>=n&&e<=r&&t>=o&&t<=a}return!1},x=(e,t,n)=>{const r={...S[e],[n]:t},o=[...S.slice(0,e),r,...S.slice(e+1)];O(o)},[C,E]=(0,e.useState)(null),k=(0,t.useSelect)((e=>e("core/block-editor").getBlocks(r).map(((e,t)=>a.length>t?{value:e.clientId,label:e.name,startCell:a[t].startCell,endCell:a[t].endCell,latAlign:a[t].latAlign,vertAlign:a[t].vertAlign}:{value:e.clientId,label:e.name}))),[r]),[S,O]=(0,e.useState)(k),I=()=>{const e=S.map((e=>({value:e.value,label:e.label})));O(e)},P=mr(p,f),[M,$]=(0,e.useState)(P),R=mr(d,h),[A,T]=(0,e.useState)(R);return(0,e.useEffect)((()=>{const e={...n,gridElms:S,rowNum:f,colNum:h,rowUnit:M,colUnit:A};o(e)}),[S,M,A]),(0,e.useEffect)((()=>{if(b.current)b.current=!1;else{I();const e=mr(p,f);$(e);const t=mr(d,h);T(t)}}),[f,h]),(0,v.createElement)(v.Fragment,null,(0,v.createElement)(y.PanelRow,{className:"distance_row"},(0,v.createElement)(y.__experimentalNumberControl,{onChange:e=>{const t="number"==typeof e?e:Number(e);m(t)},label:(0,i.__)("Number of Row ","block-collections"),value:f,min:2}),(0,v.createElement)(y.__experimentalNumberControl,{onChange:e=>{const t="number"==typeof e?e:Number(e);g(t)},label:(0,i.__)("Number of Colum","block-collections"),value:h})),(0,v.createElement)(y.PanelRow,{className:"distance_row"},(0,v.createElement)(y.__experimentalUnitControl,{onChange:e=>{e=""!=e?e:"0px";const t={...n,rowGap:e};o(t)},label:(0,i.__)("Row Gap","block-collections"),value:c,units:fr}),(0,v.createElement)(y.__experimentalUnitControl,{onChange:e=>{e=""!=e?e:"0px";const t={...n,colGap:e};o(t)},label:(0,i.__)("Colum Gap","block-collections"),value:u,units:fr})),(0,v.createElement)(y.PanelRow,{className:"distance_row"},(0,v.createElement)("p",null,(0,i.__)("Element placement","block-collections")),(0,v.createElement)(y.Button,{variant:"secondary",onClick:I},(0,i.__)("Clear","block-collections"))),(0,v.createElement)(y.PanelRow,{className:"grid_table"},(0,v.createElement)("table",null,(()=>{const e=new Array(f).fill(0).map((()=>new Array(h).fill(!1)));let t=[],n=[(0,v.createElement)("th",{key:"header-corner"})];for(let e=0;e<h;e++)n.push((0,v.createElement)("th",{key:`header-${e}`},(0,v.createElement)(y.__experimentalInputControl,{value:d?d[e]:"",type:"text",isPressEnterToChange:!0,onChange:t=>{const n=[...d.slice(0,e),t,...d.slice(e+1)];T(n)}})));t.push((0,v.createElement)("tr",{key:"header-row"},n));for(let n=0;n<f;n++){let r=[];r.push((0,v.createElement)("th",{key:`row-header-${n}`},(0,v.createElement)(y.__experimentalInputControl,{value:p?p[n]:"",type:"text",isPressEnterToChange:!0,onChange:e=>{const t=[...p.slice(0,n),e,...p.slice(n+1)];$(t)}})));for(let t=0;t<h;t++){if(e[n][t])continue;const o=hr(a,n,t),l=o?Math.abs(o.elm.startCell.rowInx-o.elm.endCell.rowInx):0,s=o?Math.abs(o.elm.startCell.colInx-o.elm.endCell.colInx):0,c={...0!==l&&{rowspan:l+1},...0!==s&&{colspan:s+1}};for(let r=0;r<=l;r++)for(let o=0;o<=s;o++)n+r<f&&t+o<h&&(e[n+r][t+o]=!0);r.push((0,v.createElement)("td",{key:`cell-${n}-${t}`,...c,className:_(n,t)?"selected":"",style:o?{backgroundColor:`var(--wp--custom--color--area-${o.index})`}:void 0,onClick:()=>w(n,t)},o&&(0,v.createElement)(gr,null,(0,v.createElement)(y.ToolbarDropdownMenu,{label:(0,i.__)("Lateral Alignment","block-collections"),icon:o.elm.latAlign?dr[o.elm.latAlign]:dr.left,controls:["left","center","right"].map((e=>({icon:dr[e],isActive:o.elm.latAlign===e,onClick:()=>x(o.index,e,"latAlign")})))}),(0,v.createElement)(y.ToolbarDropdownMenu,{label:(0,i.__)("Vertical Alignment","block-collections"),icon:o.elm.vertAlign?dr[o.elm.vertAlign]:dr.upper,controls:["upper","middle","lower"].map((e=>({icon:dr[e],isActive:o.elm.vertAlign===e,onClick:()=>x(o.index,e,"vertAlign")})))}))))}t.push((0,v.createElement)("tr",{key:`row-${n}`},r))}return t})())),(0,v.createElement)(y.ComboboxControl,{label:(0,i.__)("InnerBlock Name","block-collections"),options:S,value:C?C.value:null,onChange:e=>{const t=S.find((t=>t.value===e));E(t)}}))},br=(0,v.createElement)(y.Icon,{icon:Qn,className:"rotate-icon"}),yr=(0,v.createElement)(y.Icon,{icon:er,className:"rotate-icon"}),wr=(0,v.createElement)(y.Icon,{icon:tr,className:"rotate-icon"}),_r=(0,v.createElement)(y.Icon,{icon:nr,className:"rotate-icon"}),xr=(0,v.createElement)(y.Icon,{icon:rr,className:"rotate-icon"}),Cr=(0,v.createElement)(y.Icon,{icon:or,className:"rotate-icon"});function Er(t){const{attributes:n,clientId:r,blockRef:o,isMobile:a,isSubmenu:l,isParallax:s}=t,{positionType:c,isPosCenter:u,default_val:p,mobile_val:d}=n,f=a?d:p,m="vertical"===f.direction?yr:er,h="vertical"===f.direction?wr:tr,g="vertical"===f.direction?_r:nr,b="vertical"===f.direction?er:yr,w="vertical"===f.direction?tr:wr,_="vertical"===f.direction?nr:_r,x="vertical"===f.direction?xr:rr,C="vertical"===f.direction?Cr:or,E="vertical"===f.direction?(0,i.__)("upper alignment","block-collections"):(0,i.__)("left alignment","block-collections"),k="vertical"===f.direction?(0,i.__)("lower alignment","block-collections"):(0,i.__)("right alignment","block-collections"),S="vertical"===f.direction?(0,i.__)("left alignment","block-collections"):(0,i.__)("upper alignment","block-collections"),O="vertical"===f.direction?(0,i.__)("right alignment","block-collections"):(0,i.__)("lower alignment","block-collections"),[I,P]=(0,e.useState)(!1),[M,$]=(0,e.useState)("row");(0,e.useEffect)((()=>{if(o.current){const e=o.current.parentElement,t=e?.parentElement,n=getComputedStyle(t);"flex"!==n.display&&"inline-flex"!==n.display&&"grid"!==n.display&&"inline-grid"!==n.display||P(!0),"flex"!==n.display&&"inline-flex"!==n.display||("row"===n.flexDirection||"row-reverse"===n.flexDirection?$("row"):$("column"))}}),[]);const[R,A]=(0,e.useState)(!1);return(0,i.__)("Block Max Width(Mobile)","block-collections"),(0,i.__)("Block Width(Mobile)","block-collections"),(0,i.__)("Block Max Width(DeskTop)","block-collections"),(0,i.__)("Block Width(DeskTop)","block-collections"),(0,v.createElement)(v.Fragment,null,(0,v.createElement)(y.PanelBody,{title:(0,i.__)("Block placement","block-collections"),initialOpen:!1,className:"itmar_group_direction"},a?(0,v.createElement)("p",null,(0,i.__)("InnerBlock direction(Mobile)","block-collections")):(0,v.createElement)("p",null,(0,i.__)("InnerBlock direction(DeskTop)","block-collections")),(0,v.createElement)(y.ToolbarGroup,null,(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"block"===f.direction,onClick:()=>t.onDirectionChange("block"),icon:ar,label:(0,i.__)("block","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"vertical"===f.direction,onClick:()=>t.onDirectionChange("vertical"),icon:Qn,label:(0,i.__)("virtical","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"horizen"===f.direction,onClick:()=>t.onDirectionChange("horizen"),icon:br,label:(0,i.__)("horizen","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"grid"===f.direction,onClick:()=>t.onDirectionChange("grid"),icon:ir,label:(0,i.__)("grid","block-collections")}))),("horizen"===f.direction||"vertical"===f.direction)&&(0,v.createElement)(y.PanelRow,{className:"position_row"},(0,v.createElement)(y.ToggleControl,{label:(0,i.__)("reverse","block-collections"),checked:f.reverse,onChange:e=>t.onReverseChange(e)}),(0,v.createElement)(y.ToggleControl,{label:(0,i.__)("wrap","block-collections"),checked:f.wrap,onChange:e=>t.onWrapChange(e)}))),"block"!==f.direction&&"grid"!==f.direction&&(0,v.createElement)(v.Fragment,null,a?(0,v.createElement)("p",null,(0,i.__)("InnerBlock Main Axis(Mobile)","block-collections")):(0,v.createElement)("p",null,(0,i.__)("InnerBlock Main Axis(DeskTop)","block-collections")),(0,v.createElement)(y.ToolbarGroup,null,(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"flex-start"===f.inner_align,onClick:()=>t.onFlexChange("flex-start","inner_align"),icon:m,label:E}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"center"===f.inner_align,onClick:()=>t.onFlexChange("center","inner_align"),icon:h,label:(0,i.__)("center alignment","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"flex-end"===f.inner_align,onClick:()=>t.onFlexChange("flex-end","inner_align"),icon:g,label:k}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"space-between"===f.inner_align,onClick:()=>t.onFlexChange("space-between","inner_align"),icon:x,label:(0,i.__)("beteen stretch","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"space-around"===f.inner_align,onClick:()=>t.onFlexChange("space-around","inner_align"),icon:C,label:(0,i.__)("around stretch","block-collections")}))))),!l&&(a?(0,v.createElement)("p",null,(0,i.__)("InnerBlock Cross Axis(Mobile)","block-collections")):(0,v.createElement)("p",null,(0,i.__)("InnerBlock Cross Axis(DeskTop)","block-collections"))),!l&&(0,v.createElement)(y.ToolbarGroup,null,(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"flex-start"===f.inner_items,onClick:()=>t.onFlexChange("flex-start","inner_items"),icon:b,label:S}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"center"===f.inner_items,onClick:()=>t.onFlexChange("center","inner_items"),icon:w,label:(0,i.__)("center alignment","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"flex-end"===f.inner_items,onClick:()=>t.onFlexChange("flex-end","inner_items"),icon:_,label:O})))),I&&(0,v.createElement)(v.Fragment,null,a?(0,v.createElement)("p",null,(0,i.__)("Alignment in container(Mobile)","block-collections")):(0,v.createElement)("p",null,(0,i.__)("Alignment in container(DeskTop)","block-collections")),(0,v.createElement)(y.ToolbarGroup,null,(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"row"===M?"self-start"===f.outer_vertical:"left"===f.outer_align,onClick:"row"===M?()=>t.onVerticalChange("self-start"):()=>t.onAlignChange("left"),icon:"row"===M?yr:er,label:"row"===M?(0,i.__)("upper alignment","block-collections"):(0,i.__)("left alignment","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"row"===M?"center"===f.outer_vertical:"center"===f.outer_align,onClick:"row"===M?()=>t.onVerticalChange("center"):()=>t.onAlignChange("center"),icon:"row"===M?wr:tr,label:(0,i.__)("center alignment","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"row"===M?"self-end"===f.outer_vertical:"right"===f.outer_align,onClick:"row"===M?()=>t.onVerticalChange("self-end"):()=>t.onAlignChange("right"),icon:"row"===M?_r:nr,label:"row"===M?(0,i.__)("lower alignment","block-collections"):(0,i.__)("right alignment","block-collections")}))))),(0,v.createElement)(kr,{attributes:n,isMobile:a,isSubmenu:l,onWidthChange:(e,n)=>t.onWidthChange(e,n),onFreeWidthChange:(e,n)=>t.onFreeWidthChange(e,n)}),(0,v.createElement)(Sr,{attributes:n,isMobile:a,onHeightChange:e=>t.onHeightChange(e),onFreeHeightChange:e=>t.onFreeHeightChange(e)}),"grid"===f.direction&&(0,v.createElement)(v.Fragment,null,a?(0,v.createElement)("p",null,(0,i.__)("Grid Info settings(Mobile)","block-collections")):(0,v.createElement)("p",null,(0,i.__)("Grid Info settings(DeskTop)","block-collections")),(0,v.createElement)(y.Button,{variant:"primary",onClick:()=>A(!0)},(0,i.__)("Open Setting Modal","block-collections")),R&&(0,v.createElement)(y.Modal,{title:"Grid Info settings",onRequestClose:()=>A(!1)},(0,v.createElement)(vr,{attributes:f.grid_info,clientId:r,onChange:e=>{t.onGridChange(e)}}))),(0,v.createElement)("div",{className:"itmar_title_type"},(0,v.createElement)(y.RadioControl,{label:(0,i.__)("Position Type","block-collections"),selected:c,options:[{label:(0,i.__)("Static","block-collections"),value:"staic"},{label:(0,i.__)("Relative","block-collections"),value:"relative"},{label:(0,i.__)("Absolute","block-collections"),value:"absolute"},{label:(0,i.__)("Fix","block-collections"),value:"fixed"},{label:(0,i.__)("Sticky","block-collections"),value:"sticky"}],onChange:e=>{t.onPositionChange(e)}})),"absolute"===c&&!s&&(0,v.createElement)(y.ToggleControl,{label:(0,i.__)("Center Vertically and Horizontally","block-collections"),checked:u,onChange:e=>{t.onIsPosCenterChange(e)}}),("absolute"===c&&!u||"fixed"===c||"sticky"===c)&&(0,v.createElement)(v.Fragment,null,a?(0,v.createElement)("p",null,(0,i.__)("Block Position(Mobile)","block-collections")):(0,v.createElement)("p",null,(0,i.__)("Block Position(DeskTop)","block-collections")),(0,v.createElement)(y.PanelBody,{title:(0,i.__)("Vertical","block-collections"),initialOpen:!0},!f.posValue?.isVertCenter&&(0,v.createElement)(y.PanelRow,{className:"position_row"},(0,v.createElement)(y.ComboboxControl,{options:[{value:"top",label:"Top"},{value:"bottom",label:"Bottom"}],value:f.posValue?.vertBase||"top",onChange:e=>{const n={...f.posValue||{},vertBase:e};t.onPosValueChange(n)}}),(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:e=>{const n={...f.posValue||{},vertValue:e};t.onPosValueChange(n)},value:f.posValue?.vertValue||"3em"})),!s&&(0,v.createElement)(y.ToggleControl,{label:(0,i.__)("Is Center","block-collections"),checked:f.posValue?.isVertCenter,onChange:e=>{const n={...f.posValue||{},isVertCenter:e};t.onPosValueChange(n)}})),(0,v.createElement)(y.PanelBody,{title:(0,i.__)("Horizon","block-collections"),initialOpen:!0},!f.posValue?.isHorCenter&&(0,v.createElement)(y.PanelRow,{className:"position_row"},(0,v.createElement)(y.ComboboxControl,{options:[{value:"left",label:"Left"},{value:"right",label:"Right"}],value:f.posValue?.horBase||"left",onChange:e=>{const n={...f.posValue||{},horBase:e};t.onPosValueChange(n)}}),(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:e=>{const n={...f.posValue||{},horValue:e};t.onPosValueChange(n)},value:f.posValue?.horValue||"3em"})),!s&&(0,v.createElement)(y.ToggleControl,{label:(0,i.__)("Is Center","block-collections"),checked:f.posValue?.isHorCenter,onChange:e=>{const n={...f.posValue||{},isHorCenter:e};t.onPosValueChange(n)}})))))}function kr(e){const{attributes:t,isMobile:n,isSubmenu:r}=e,{default_val:o,mobile_val:a}=t,l=n?a:o,s=(0,i.__)("Block Max Width(Mobile)","block-collections"),c=(0,i.__)("Block Width(Mobile)","block-collections"),u=(0,i.__)("Block Max Width(DeskTop)","block-collections"),p=(0,i.__)("Block Width(DeskTop)","block-collections"),d=n?c:p,f=n?s:u;return(0,v.createElement)(v.Fragment,null,(0,v.createElement)("p",null,d),(0,v.createElement)(y.ToolbarGroup,null,(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"full"===l.width_val,onClick:()=>e.onWidthChange("width_val","full"),text:"full"}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"fit"===l.width_val,onClick:()=>e.onWidthChange("width_val","fit"),text:"fit"}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"wideSize"===l.width_val,onClick:()=>e.onWidthChange("width_val","wideSize"),icon:lr,label:(0,i.__)("Wide Size","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"contentSize"===l.width_val,onClick:()=>e.onWidthChange("width_val","contentSize"),icon:sr,label:(0,i.__)("Content Size","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"free"===l.width_val,onClick:()=>e.onWidthChange("width_val","free"),text:"free"})))),"free"===l.width_val&&(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:t=>e.onFreeWidthChange("free_width",t),value:l.free_width}),(0,v.createElement)("p",null,f),(0,v.createElement)(y.ToolbarGroup,null,(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"full"===l.max_width,onClick:()=>e.onWidthChange("max_width","full"),text:"full"}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"fit"===l.max_width,onClick:()=>e.onWidthChange("max_width","fit"),text:"fit"}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"wideSize"===l.max_width,onClick:()=>e.onWidthChange("max_width","wideSize"),icon:lr,label:(0,i.__)("Wide Size","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"contentSize"===l.max_width,onClick:()=>e.onWidthChange("max_width","contentSize"),icon:sr,label:(0,i.__)("Content Size","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"free"===l.max_width,onClick:()=>e.onWidthChange("max_width","free"),text:"free"})))),"free"===l.max_width&&(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:t=>e.onFreeWidthChange("max_free_width",t),value:l.max_free_width}))}function Sr(e){const{attributes:t,isMobile:n}=e,{default_val:r,mobile_val:o}=t,a=n?o:r;return(0,v.createElement)(v.Fragment,null,n?(0,v.createElement)("p",null,(0,i.__)("Block Height(Mobile)","block-collections")):(0,v.createElement)("p",null,(0,i.__)("Block Height(DeskTop)","block-collections")),(0,v.createElement)(y.ToolbarGroup,null,(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"full"===a.height_val,onClick:()=>e.onHeightChange("full"),text:"full"}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"fit"===a.height_val,onClick:()=>e.onHeightChange("fit"),text:"fit"}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"free"===a.height_val,onClick:()=>e.onHeightChange("free"),text:"free"})))),"free"===a.height_val&&(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:t=>e.onFreeHeightChange(t),value:a.free_height}))}function Or(e){return(0,v.createElement)("div",{className:`${e.className} ${e.openFlg?"open":""}`,style:e.style,onClick:()=>{e.onToggle&&e.onToggle(!e.openFlg)}},e.children)}function Ir(e){return Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ir(e)}function Pr(e){var t=function(e,t){if("object"!=Ir(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ir(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ir(t)?t:t+""}function Mr(e,t,n){return(t=Pr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$r(Object(n),!0).forEach((function(t){Mr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ar(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tr(e,t){if(e){if("string"==typeof e)return Ar(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ar(e,t):void 0}}function Dr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||Tr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Fr=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jr.apply(this,arguments)}function Nr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pr(r.key),r)}}function Lr(e,t){return Lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lr(e,t)}function Br(e){return Br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Br(e)}function zr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zr=function(){return!!e})()}function Hr(e){return function(e){if(Array.isArray(e))return Ar(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Tr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ur=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Wr=Math.abs,Gr=String.fromCharCode,Yr=Object.assign;function qr(e){return e.trim()}function Zr(e,t,n){return e.replace(t,n)}function Xr(e,t){return e.indexOf(t)}function Jr(e,t){return 0|e.charCodeAt(t)}function Kr(e,t,n){return e.slice(t,n)}function Qr(e){return e.length}function eo(e){return e.length}function to(e,t){return t.push(e),e}var no=1,ro=1,oo=0,ao=0,io=0,lo="";function so(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:no,column:ro,length:i,return:""}}function co(e,t){return Yr(so("",null,null,"",null,null,0),e,{length:-e.length},t)}function uo(){return io=ao<oo?Jr(lo,ao++):0,ro++,10===io&&(ro=1,no++),io}function po(){return Jr(lo,ao)}function fo(){return ao}function mo(e,t){return Kr(lo,e,t)}function ho(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function go(e){return no=ro=1,oo=Qr(lo=e),ao=0,[]}function vo(e){return lo="",e}function bo(e){return qr(mo(ao-1,_o(91===e?e+2:40===e?e+1:e)))}function yo(e){for(;(io=po())&&io<33;)uo();return ho(e)>2||ho(io)>3?"":" "}function wo(e,t){for(;--t&&uo()&&!(io<48||io>102||io>57&&io<65||io>70&&io<97););return mo(e,fo()+(t<6&&32==po()&&32==uo()))}function _o(e){for(;uo();)switch(io){case e:return ao;case 34:case 39:34!==e&&39!==e&&_o(io);break;case 40:41===e&&_o(e);break;case 92:uo()}return ao}function xo(e,t){for(;uo()&&e+io!==57&&(e+io!==84||47!==po()););return"/*"+mo(t,ao-1)+"*"+Gr(47===e?e:uo())}function Co(e){for(;!ho(po());)uo();return mo(e,ao)}var Eo="-ms-",ko="-moz-",So="-webkit-",Oo="comm",Io="rule",Po="decl",Mo="@keyframes";function $o(e,t){for(var n="",r=eo(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ro(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Po:return e.return=e.return||e.value;case Oo:return"";case Mo:return e.return=e.value+"{"+$o(e.children,r)+"}";case Io:e.value=e.props.join(",")}return Qr(n=$o(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ao(e){return vo(To("",null,null,null,[""],e=go(e),0,[0],e))}function To(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,p=i,d=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",w=o,_=a,x=r,C=y;g;)switch(m=b,b=uo()){case 40:if(108!=m&&58==Jr(C,p-1)){-1!=Xr(C+=Zr(bo(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=bo(b);break;case 9:case 10:case 13:case 32:C+=yo(m);break;case 92:C+=wo(fo()-1,7);continue;case 47:switch(po()){case 42:case 47:to(Vo(xo(uo(),fo()),t,n),s);break;default:C+="/"}break;case 123*h:l[c++]=Qr(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(C=Zr(C,/\f/g,"")),f>0&&Qr(C)-p&&to(f>32?Fo(C+";",r,n,p-1):Fo(Zr(C," ","")+";",r,n,p-2),s);break;case 59:C+=";";default:if(to(x=Do(C,t,n,c,u,o,l,y,w=[],_=[],p),a),123===b)if(0===u)To(C,t,x,x,w,a,p,l,_);else switch(99===d&&110===Jr(C,3)?100:d){case 100:case 108:case 109:case 115:To(e,x,x,r&&to(Do(e,x,x,0,0,o,l,y,o,w=[],p),_),o,_,p,l,r?w:_);break;default:To(C,x,x,x,[""],_,0,l,_)}}c=u=f=0,h=v=1,y=C="",p=i;break;case 58:p=1+Qr(C),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==(io=ao>0?Jr(lo,--ao):0,ro--,10===io&&(ro=1,no--),io))continue;switch(C+=Gr(b),b*h){case 38:v=u>0?1:(C+="\f",-1);break;case 44:l[c++]=(Qr(C)-1)*v,v=1;break;case 64:45===po()&&(C+=bo(uo())),d=po(),u=p=Qr(y=C+=Co(fo())),b++;break;case 45:45===m&&2==Qr(C)&&(h=0)}}return a}function Do(e,t,n,r,o,a,i,l,s,c,u){for(var p=o-1,d=0===o?a:[""],f=eo(d),m=0,h=0,g=0;m<r;++m)for(var v=0,b=Kr(e,p+1,p=Wr(h=i[m])),y=e;v<f;++v)(y=qr(h>0?d[v]+" "+b:Zr(b,/&\f/g,d[v])))&&(s[g++]=y);return so(e,t,n,0===o?Io:l,s,c,u)}function Vo(e,t,n){return so(e,t,n,Oo,Gr(io),Kr(e,2,-2),0)}function Fo(e,t,n,r){return so(e,t,n,Po,Kr(e,0,r),Kr(e,r+1,-1),r)}var jo=function(e,t,n){for(var r=0,o=0;r=o,o=po(),38===r&&12===o&&(t[n]=1),!ho(o);)uo();return mo(e,ao)},No=new WeakMap,Lo=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||No.get(n))&&!r){No.set(e,!0);for(var o=[],a=function(e,t){return vo(function(e,t){var n=-1,r=44;do{switch(ho(r)){case 0:38===r&&12===po()&&(t[n]=1),e[n]+=jo(ao-1,t,n);break;case 2:e[n]+=bo(r);break;case 4:if(44===r){e[++n]=58===po()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Gr(r)}}while(r=uo());return e}(go(e),t))}(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},Bo=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function zo(e,t){switch(function(e,t){return 45^Jr(e,0)?(((t<<2^Jr(e,0))<<2^Jr(e,1))<<2^Jr(e,2))<<2^Jr(e,3):0}(e,t)){case 5103:return So+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return So+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return So+e+ko+e+Eo+e+e;case 6828:case 4268:return So+e+Eo+e+e;case 6165:return So+e+Eo+"flex-"+e+e;case 5187:return So+e+Zr(e,/(\w+).+(:[^]+)/,So+"box-$1$2"+Eo+"flex-$1$2")+e;case 5443:return So+e+Eo+"flex-item-"+Zr(e,/flex-|-self/,"")+e;case 4675:return So+e+Eo+"flex-line-pack"+Zr(e,/align-content|flex-|-self/,"")+e;case 5548:return So+e+Eo+Zr(e,"shrink","negative")+e;case 5292:return So+e+Eo+Zr(e,"basis","preferred-size")+e;case 6060:return So+"box-"+Zr(e,"-grow","")+So+e+Eo+Zr(e,"grow","positive")+e;case 4554:return So+Zr(e,/([^-])(transform)/g,"$1"+So+"$2")+e;case 6187:return Zr(Zr(Zr(e,/(zoom-|grab)/,So+"$1"),/(image-set)/,So+"$1"),e,"")+e;case 5495:case 3959:return Zr(e,/(image-set\([^]*)/,So+"$1$`$1");case 4968:return Zr(Zr(e,/(.+:)(flex-)?(.*)/,So+"box-pack:$3"+Eo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+So+e+e;case 4095:case 3583:case 4068:case 2532:return Zr(e,/(.+)-inline(.+)/,So+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qr(e)-1-t>6)switch(Jr(e,t+1)){case 109:if(45!==Jr(e,t+4))break;case 102:return Zr(e,/(.+:)(.+)-([^]+)/,"$1"+So+"$2-$3$1"+ko+(108==Jr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Xr(e,"stretch")?zo(Zr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Jr(e,t+1))break;case 6444:switch(Jr(e,Qr(e)-3-(~Xr(e,"!important")&&10))){case 107:return Zr(e,":",":"+So)+e;case 101:return Zr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+So+(45===Jr(e,14)?"inline-":"")+"box$3$1"+So+"$2$3$1"+Eo+"$2box$3")+e}break;case 5936:switch(Jr(e,t+11)){case 114:return So+e+Eo+Zr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return So+e+Eo+Zr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return So+e+Eo+Zr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return So+e+Eo+e+e}return e}var Ho=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Po:e.return=zo(e.value,e.length);break;case Mo:return $o([co(e,{value:Zr(e.value,"@","@"+So)})],r);case Io:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return $o([co(e,{props:[Zr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return $o([co(e,{props:[Zr(t,/:(plac\w+)/,":"+So+"input-$1")]}),co(e,{props:[Zr(t,/:(plac\w+)/,":-moz-$1")]}),co(e,{props:[Zr(t,/:(plac\w+)/,Eo+"input-$1")]})],r)}return""}))}}],Uo=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||Ho,i={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)}));var s,c,u,p,d=[Ro,(p=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],f=(c=[Lo,Bo].concat(a,d),u=eo(c),function(e,t,n,r){for(var o="",a=0;a<u;a++)o+=c[a](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,$o(Ao(e?e+"{"+t.styles+"}":t.styles),f),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new Ur({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return m.sheet.hydrate(l),m},Wo=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Go={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Yo(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var qo=/[A-Z]|^ms/g,Zo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xo=function(e){return 45===e.charCodeAt(1)},Jo=function(e){return null!=e&&"boolean"!=typeof e},Ko=Yo((function(e){return Xo(e)?e:e.replace(qo,"-$&").toLowerCase()})),Qo=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Zo,(function(e,t,n){return ta={name:t,styles:n,next:ta},t}))}return 1===Go[e]||Xo(e)||"number"!=typeof t||0===t?t:t+"px"};function ea(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ta={name:n.name,styles:n.styles,next:ta},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ta={name:r.name,styles:r.styles,next:ta},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ea(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":Jo(i)&&(r+=Ko(a)+":"+Qo(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=ea(e,t,i);switch(a){case"animation":case"animationName":r+=Ko(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)Jo(i[s])&&(r+=Ko(a)+":"+Qo(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=ta,a=n(e);return ta=o,ea(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var ta,na=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ra=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ta=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=ea(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=ea(n,t,e[i]),r&&(o+=a[i]);na.lastIndex=0;for(var l,s="";null!==(l=na.exec(o));)s+="-"+l[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:c,styles:o,next:ta}},oa=!!v.useInsertionEffect&&v.useInsertionEffect,aa=oa||function(e){return e()},ia=(oa||v.useLayoutEffect,{}.hasOwnProperty),la=v.createContext("undefined"!=typeof HTMLElement?Uo({key:"css"}):null);la.Provider;var sa=function(e){return(0,v.forwardRef)((function(t,n){var r=(0,v.useContext)(la);return e(t,r,n)}))},ca=v.createContext({}),ua="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pa=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Wo(t,n,r),aa((function(){return function(e,t,n){Wo(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},da=sa((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[ua],a=[r],i="";"string"==typeof e.className?i=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var l=ra(a,void 0,v.useContext(ca));i+=t.key+"-"+l.name;var s={};for(var c in e)ia.call(e,c)&&"css"!==c&&c!==ua&&(s[c]=e[c]);return s.ref=n,s.className=i,v.createElement(v.Fragment,null,v.createElement(pa,{cache:t,serialized:l,isStringTag:"string"==typeof o}),v.createElement(o,s))})),fa=da,ma=(n(4146),function(e,t){var n=arguments;if(null==t||!ia.call(t,"css"))return v.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=fa,o[1]=function(e,t){var n={};for(var r in t)ia.call(t,r)&&(n[r]=t[r]);return n[ua]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return v.createElement.apply(null,o)});function ha(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ra(t)}const ga=window.ReactDOM,va=Math.min,ba=Math.max,ya=Math.round,wa=Math.floor,_a=e=>({x:e,y:e});function xa(e){return ka(e)?(e.nodeName||"").toLowerCase():"#document"}function Ca(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ea(e){var t;return null==(t=(ka(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ka(e){return e instanceof Node||e instanceof Ca(e).Node}function Sa(e){return e instanceof Element||e instanceof Ca(e).Element}function Oa(e){return e instanceof HTMLElement||e instanceof Ca(e).HTMLElement}function Ia(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Ca(e).ShadowRoot)}function Pa(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ma(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ma(e){return Ca(e).getComputedStyle(e)}function $a(e){const t=function(e){if("html"===xa(e))return e;const t=e.assignedSlot||e.parentNode||Ia(e)&&e.host||Ea(e);return Ia(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(xa(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Oa(t)&&Pa(t)?t:$a(t)}function Ra(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=$a(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Ca(o);return a?t.concat(i,i.visualViewport||[],Pa(o)?o:[],i.frameElement&&n?Ra(i.frameElement):[]):t.concat(o,Ra(o,[],n))}function Aa(e){return Sa(e)?e:e.contextElement}function Ta(e){const t=Aa(e);if(!Oa(t))return _a(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=function(e){const t=Ma(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Oa(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=ya(n)!==a||ya(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}(t);let i=(a?ya(n.width):n.width)/r,l=(a?ya(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const Da=_a(0);function Va(e){const t=Ca(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Da}function Fa(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Aa(e);let i=_a(1);t&&(r?Sa(r)&&(i=Ta(r)):i=Ta(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ca(e))&&t}(a,n,r)?Va(a):_a(0);let s=(o.left+l.x)/i.x,c=(o.top+l.y)/i.y,u=o.width/i.x,p=o.height/i.y;if(a){const e=Ca(a),t=r&&Sa(r)?Ca(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Ta(o),t=o.getBoundingClientRect(),r=Ma(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,p*=e.y,s+=a,c+=i,n=Ca(o),o=n.frameElement}}return d={width:u,height:p,x:s,y:c},{...d,top:d.y,left:d.x,right:d.x+d.width,bottom:d.y+d.height};var d}const ja=v.useLayoutEffect;var Na=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],La=function(){};function Ba(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function za(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(Ba(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Ha=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Ir(e)&&null!==e?[e]:[];var t},Ua=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Rr({},Vr(e,Na))},Wa=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),i)}};function Ga(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ya(e){return Ga(e)?window.pageYOffset:e.scrollTop}function qa(e,t){Ga(e)?window.scrollTo(0,t):e.scrollTop=t}function Za(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:La,o=Ya(e),a=t-o,i=0;!function t(){var l,s=(l=i+=10,a*((l=l/n-1)*l*l+1)+o);qa(e,s),i<n?window.requestAnimationFrame(t):r(e)}()}function Xa(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?qa(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&qa(e,Math.max(t.offsetTop-o,0))}function Ja(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Ka=!1,Qa={get passive(){return Ka=!0}},ei="undefined"!=typeof window?window:{};ei.addEventListener&&ei.removeEventListener&&(ei.addEventListener("p",La,Qa),ei.removeEventListener("p",La,!1));var ti=Ka;function ni(e){return null!=e}function ri(e,t,n){return e?t:n}var oi=["children","innerProps"],ai=["children","innerProps"];var ii,li,si,ci=function(e){return"auto"===e?"bottom":e},ui=(0,v.createContext)(null),pi=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,i=e.menuShouldScrollIntoView,l=e.theme,s=((0,v.useContext)(ui)||{}).setPortalPlacement,c=(0,v.useRef)(null),u=Dr((0,v.useState)(r),2),p=u[0],d=u[1],f=Dr((0,v.useState)(null),2),m=f[0],h=f[1],g=l.spacing.controlHeight;return ja((function(){var e=c.current;if(e){var t="fixed"===a,l=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,l=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,p=s.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,m=d.height,h=d.top,g=n.offsetParent.getBoundingClientRect().top,v=i||Ga(u=s)?window.innerHeight:u.clientHeight,b=Ya(s),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),_=g-w,x=v-h,C=_+b,E=p-b-h,k=f-v+b+y,S=b+h-w,O=160;switch(o){case"auto":case"bottom":if(x>=m)return{placement:"bottom",maxHeight:t};if(E>=m&&!i)return a&&Za(s,k,O),{placement:"bottom",maxHeight:t};if(!i&&E>=r||i&&x>=r)return a&&Za(s,k,O),{placement:"bottom",maxHeight:i?x-y:E-y};if("auto"===o||i){var I=t,P=i?_:C;return P>=r&&(I=Math.min(P-y-l,t)),{placement:"top",maxHeight:I}}if("bottom"===o)return a&&qa(s,k),{placement:"bottom",maxHeight:t};break;case"top":if(_>=m)return{placement:"top",maxHeight:t};if(C>=m&&!i)return a&&Za(s,S,O),{placement:"top",maxHeight:t};if(!i&&C>=r||i&&_>=r){var M=t;return(!i&&C>=r||i&&_>=r)&&(M=i?_-w:C-w),a&&Za(s,S,O),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:i&&!t,isFixedPosition:t,controlHeight:g});d(l.maxHeight),h(l.placement),null==s||s(l.placement)}}),[r,o,a,i,n,s,g]),t({ref:c,placerProps:Rr(Rr({},e),{},{placement:m||ci(o),maxHeight:p})})},di=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Rr({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},fi=di,mi=di,hi=["size"],gi=["innerProps","isRtl","size"],vi={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},bi=function(e){var t=e.size,n=Vr(e,hi);return ma("svg",jr({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:vi},n))},yi=function(e){return ma(bi,jr({size:20},e),ma("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},wi=function(e){return ma(bi,jr({size:20},e),ma("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},_i=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Rr({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},xi=_i,Ci=_i,Ei=function(){var e=ha.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(ii||(li=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],si||(si=li.slice(0)),ii=Object.freeze(Object.defineProperties(li,{raw:{value:Object.freeze(si)}})))),ki=function(e){var t=e.delay,n=e.offset;return ma("span",{css:ha({animation:"".concat(Ei," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Si=["data"],Oi=["innerRef","isDisabled","isHidden","inputClassName"],Ii={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Pi={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Rr({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ii)},Mi=function(e){return Rr({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ii)},$i=function(e){var t=e.children,n=e.innerProps;return ma("div",n,t)},Ri={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return ma("div",jr({},Wa(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||ma(yi,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return ma("div",jr({ref:o},Wa(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return ma("div",jr({},Wa(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||ma(wi,null))},DownChevron:wi,CrossIcon:yi,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,l=e.innerProps,s=e.label,c=e.theme,u=e.selectProps;return ma("div",jr({},Wa(e,"group",{group:!0}),l),ma(a,jr({},i,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),s),ma("div",null,t))},GroupHeading:function(e){var t=Ua(e);t.data;var n=Vr(t,Si);return ma("div",jr({},Wa(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return ma("div",jr({},Wa(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ma("span",jr({},t,Wa(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Ua(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,l=r.inputClassName,s=Vr(r,Oi);return ma("div",jr({},Wa(e,"input",{"input-container":!0}),{"data-value":n||""}),ma("input",jr({className:t({input:!0},l),ref:o,style:Mi(i),disabled:a},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=Vr(e,gi);return ma("div",jr({},Wa(Rr(Rr({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ma(ki,{delay:0,offset:n}),ma(ki,{delay:160,offset:!0}),ma(ki,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return ma("div",jr({},Wa(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return ma("div",jr({},Wa(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,a=e.menuPlacement,i=e.menuPosition,l=(0,v.useRef)(null),s=(0,v.useRef)(null),c=Dr((0,v.useState)(ci(a)),2),u=c[0],p=c[1],d=(0,v.useMemo)((function(){return{setPortalPlacement:p}}),[]),f=Dr((0,v.useState)(null),2),m=f[0],h=f[1],g=(0,v.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===i?0:window.pageYOffset,n=e[u]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||h({offset:n,rect:e})}}),[r,i,u,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);ja((function(){g()}),[g]);var b=(0,v.useCallback)((function(){"function"==typeof s.current&&(s.current(),s.current=null),r&&l.current&&(s.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Aa(e),u=o||a?[...c?Ra(c):[],...Ra(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const p=c&&l?function(e,t){let n,r=null;const o=Ea(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();const{left:c,top:u,width:p,height:d}=e.getBoundingClientRect();if(l||t(),!p||!d)return;const f={rootMargin:-wa(u)+"px "+-wa(o.clientWidth-(c+p))+"px "+-wa(o.clientHeight-(u+d))+"px "+-wa(c)+"px",threshold:ba(0,va(1,s))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(h,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,f)}r.observe(e)}(!0),a}(c,n):null;let d,f=-1,m=null;i&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!s&&m.observe(c),m.observe(t));let h=s?Fa(e):null;return s&&function t(){const r=Fa(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==p||p(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(d)}}(r,l.current,g,{elementResize:"ResizeObserver"in window}))}),[r,g]);ja((function(){b()}),[b]);var y=(0,v.useCallback)((function(e){l.current=e,b()}),[b]);if(!t&&"fixed"!==i||!m)return null;var w=ma("div",jr({ref:y},Wa(Rr(Rr({},e),{},{offset:m.offset,position:i,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),n);return ma(ui.Provider,{value:d},t?(0,ga.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Vr(e,ai);return ma("div",jr({},Wa(Rr(Rr({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=Vr(e,oi);return ma("div",jr({},Wa(Rr(Rr({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,l=e.selectProps,s=n.Container,c=n.Label,u=n.Remove;return ma(s,{data:r,innerProps:Rr(Rr({},Wa(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},ma(c,{data:r,innerProps:Rr({},Wa(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),ma(u,{data:r,innerProps:Rr(Rr({},Wa(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:l}))},MultiValueContainer:$i,MultiValueLabel:$i,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ma("div",jr({role:"button"},n),t||ma(yi,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,i=e.innerProps;return ma("div",jr({},Wa(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},i),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return ma("div",jr({},Wa(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return ma("div",jr({},Wa(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return ma("div",jr({},Wa(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return ma("div",jr({},Wa(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Ai=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ti(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||Ai(r)&&Ai(o)))return!1;var r,o;return!0}for(var Di={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Vi=function(e){return ma("span",jr({css:Di},e))},Fi={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,l=e.isDisabled,s=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(u(i,n),".");if("menu"===t&&c){var p=l?" disabled":"",d="".concat(s?" selected":"").concat(p);return"".concat(a).concat(d,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},ji=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,l=e.selectProps,s=e.id,c=e.isAppleDevice,u=l.ariaLiveMessages,p=l.getOptionLabel,d=l.inputValue,f=l.isMulti,m=l.isOptionDisabled,h=l.isSearchable,g=l.menuIsOpen,b=l.options,y=l.screenReaderStatus,w=l.tabSelectsValue,_=l.isLoading,x=l["aria-label"],C=l["aria-live"],E=(0,v.useMemo)((function(){return Rr(Rr({},Fi),u||{})}),[u]),k=(0,v.useMemo)((function(){var e,n="";if(t&&E.onChange){var r=t.option,o=t.options,a=t.removedValue,l=t.removedValues,s=t.value,c=a||r||(e=s,Array.isArray(e)?null:e),u=c?p(c):"",d=o||l||void 0,f=d?d.map(p):[],h=Rr({isDisabled:c&&m(c,i),label:u,labels:f},t);n=E.onChange(h)}return n}),[t,E,m,i,p]),S=(0,v.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&E.onFocus){var l={focused:t,label:p(t),isDisabled:m(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i,isAppleDevice:c};e=E.onFocus(l)}return e}),[n,r,p,m,E,o,i,c]),O=(0,v.useMemo)((function(){var e="";if(g&&b.length&&!_&&E.onFilter){var t=y({count:o.length});e=E.onFilter({inputValue:d,resultsMessage:t})}return e}),[o,d,g,E,b,y,_]),I="initial-input-focus"===(null==t?void 0:t.action),P=(0,v.useMemo)((function(){var e="";if(E.guidance){var t=r?"value":g?"menu":"input";e=E.guidance({"aria-label":x,context:t,isDisabled:n&&m(n,i),isMulti:f,isSearchable:h,tabSelectsValue:w,isInitialFocus:I})}return e}),[x,n,r,f,m,h,g,E,i,w,I]),M=ma(v.Fragment,null,ma("span",{id:"aria-selection"},k),ma("span",{id:"aria-focused"},S),ma("span",{id:"aria-results"},O),ma("span",{id:"aria-guidance"},P));return ma(v.Fragment,null,ma(Vi,{id:s},I&&M),ma(Vi,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!I&&M))},Ni=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Li=new RegExp("["+Ni.map((function(e){return e.letters})).join("")+"]","g"),Bi={},zi=0;zi<Ni.length;zi++)for(var Hi=Ni[zi],Ui=0;Ui<Hi.letters.length;Ui++)Bi[Hi.letters[Ui]]=Hi.base;var Wi=function(e){return e.replace(Li,(function(e){return Bi[e]}))},Gi=function(e,t){void 0===t&&(t=Ti);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(Wi),Yi=function(e){return e.replace(/^\s+|\s+$/g,"")},qi=function(e){return"".concat(e.label," ").concat(e.value)},Zi=["innerRef"];function Xi(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=Dr(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Dr(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Vr(e,Zi),"onExited","in","enter","exit","appear");return ma("input",jr({ref:t},n,{css:ha({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Ji=["boxSizing","height","overflow","paddingRight","position"],Ki={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Qi(e){e.preventDefault()}function el(e){e.stopPropagation()}function tl(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function nl(){return"ontouchstart"in window||navigator.maxTouchPoints}var rl=!("undefined"==typeof window||!window.document||!window.document.createElement),ol=0,al={capture:!1,passive:!1},il=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},ll={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function sl(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,v.useRef)(!1),l=(0,v.useRef)(!1),s=(0,v.useRef)(0),c=(0,v.useRef)(null),u=(0,v.useCallback)((function(e,t){if(null!==c.current){var s=c.current,u=s.scrollTop,p=s.scrollHeight,d=s.clientHeight,f=c.current,m=t>0,h=p-d-u,g=!1;h>t&&i.current&&(r&&r(e),i.current=!1),m&&l.current&&(a&&a(e),l.current=!1),m&&t>h?(n&&!i.current&&n(e),f.scrollTop=p,g=!0,i.current=!0):!m&&-t>u&&(o&&!l.current&&o(e),f.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),p=(0,v.useCallback)((function(e){u(e,e.deltaY)}),[u]),d=(0,v.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),f=(0,v.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;u(e,t)}),[u]),m=(0,v.useCallback)((function(e){if(e){var t=!!ti&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",f,t)}}),[f,d,p]),h=(0,v.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",f,!1))}),[f,d,p]);return(0,v.useEffect)((function(){if(t){var e=c.current;return m(e),function(){h(e)}}}),[t,m,h]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,v.useRef)({}),a=(0,v.useRef)(null),i=(0,v.useCallback)((function(e){if(rl){var t=document.body,n=t&&t.style;if(r&&Ji.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&ol<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,l=window.innerWidth-i+a||0;Object.keys(Ki).forEach((function(e){var t=Ki[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&nl()&&(t.addEventListener("touchmove",Qi,al),e&&(e.addEventListener("touchstart",tl,al),e.addEventListener("touchmove",el,al))),ol+=1}}),[r]),l=(0,v.useCallback)((function(e){if(rl){var t=document.body,n=t&&t.style;ol=Math.max(ol-1,0),r&&ol<1&&Ji.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&nl()&&(t.removeEventListener("touchmove",Qi,al),e&&(e.removeEventListener("touchstart",tl,al),e.removeEventListener("touchmove",el,al)))}}),[r]);return(0,v.useEffect)((function(){if(t){var e=a.current;return i(e),function(){l(e)}}}),[t,i,l]),function(e){a.current=e}}({isEnabled:n});return ma(v.Fragment,null,n&&ma("div",{onClick:il,css:ll}),t((function(e){o(e),a(e)})))}var cl={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ul=function(e){var t=e.name,n=e.onFocus;return ma("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:cl,value:"",onChange:function(){}})};function pl(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function dl(){return pl(/^Mac/i)}var fl={clearIndicator:Ci,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius;return Rr({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:xi,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Rr({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Rr({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return Rr(Rr({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Pi),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return Rr({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:mi,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,l=o.colors;return Rr((Mr(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Mr(n,"position","absolute"),Mr(n,"width","100%"),Mr(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Rr({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return Rr({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return Rr({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return Rr({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:fi,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,l=a.colors;return Rr({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Rr({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return Rr({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return Rr({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},ml={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},hl={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ja(),captureMenuScroll:!Ja(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Rr({ignoreCase:!0,ignoreAccents:!0,stringify:qi,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,l=n.matchFrom,s=i?Yi(t):t,c=i?Yi(a(e)):a(e);return r&&(s=s.toLowerCase(),c=c.toLowerCase()),o&&(s=Gi(s),c=Wi(c)),"start"===l?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function gl(e,t,n,r){return{type:"option",data:t,isDisabled:El(e,t,n),isSelected:kl(e,t,n),label:xl(e,t),value:Cl(e,t),index:r}}function vl(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return gl(e,n,t,r)})).filter((function(t){return wl(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=gl(e,n,t,r);return wl(e,a)?a:void 0})).filter(ni)}function bl(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Hr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function yl(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Hr(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function wl(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,l=t.value;return(!Ol(e)||!a)&&Sl(e,{label:i,value:l,data:o},r)}var _l=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},xl=function(e,t){return e.getOptionLabel(t)},Cl=function(e,t){return e.getOptionValue(t)};function El(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function kl(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Cl(e,t);return n.some((function(t){return Cl(e,t)===r}))}function Sl(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Ol=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Il=1,Pl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lr(e,t)}(l,e);var t,n,r,o,a,i=(t=l,n=zr(),function(){var e,r=Br(t);if(n){var o=Br(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ir(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=dl()||pl(/^iPhone/i)||pl(/^iPad/i)||dl()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,l=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:l}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,l=o&&t.isOptionSelected(e,i),s=t.isOptionDisabled(e,i);if(l){var c=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:a});o?t.setValue([].concat(Hr(i),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=ri(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(ri(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=ri(e,o,o[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return _l(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return yl(vl(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return za.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return xl(t.props,e)},t.getOptionValue=function(e){return Cl(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=fl[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Rr(Rr({},Ri),e.components);var e},t.buildCategorizedOptions=function(){return vl(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return bl(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Rr({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Ga(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Ol(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,l=n.isClearable,s=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,p=n.tabSelectsValue,d=n.openMenuOnFocus,f=t.state,m=f.focusedOption,h=f.focusedValue,g=f.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)t.removeValue(h);else{if(!o)return;r?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!p||!m||d&&t.isOptionSelected(m,g))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):l&&a&&t.clearValue();break;case" ":if(i)return;if(!c){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Il),t.state.selectValue=Ha(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),o=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[o],t.state.focusedOptionId=_l(n,r[o])}return t}return r=l,o=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Xa(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Xa(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var l=a.indexOf(r[0]);l>-1&&(i=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(a[i])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ml):Rr(Rr({},ml),this.props.theme):ml}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,l=this.props,s=l.isMulti,c=l.isRtl,u=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:u,selectOption:a,selectProps:l,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return El(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return kl(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Sl(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,l=e.menuIsOpen,s=e.required,c=this.getComponents().Input,u=this.state,p=u.inputIsHidden,d=u.ariaSelection,f=this.commonProps,m=r||this.getElementId("input"),h=Rr(Rr(Rr({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==d?void 0:d.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?v.createElement(c,jr({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},h)):v.createElement(Xi,jr({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:La,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,l=t.Placeholder,s=this.commonProps,c=this.props,u=c.controlShouldRenderValue,p=c.isDisabled,d=c.isMulti,f=c.inputValue,m=c.placeholder,h=this.state,g=h.selectValue,b=h.focusedValue,y=h.isFocused;if(!this.hasValue()||!u)return f?null:v.createElement(l,jr({},s,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(d)return g.map((function(t,i){var l=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return v.createElement(n,jr({},s,{components:{Container:r,Label:o,Remove:a},isFocused:l,isDisabled:p,key:c,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(f)return null;var w=g[0];return v.createElement(i,jr({},s,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(e,jr({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?v.createElement(e,jr({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return v.createElement(n,jr({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(e,jr({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,l=t.LoadingMessage,s=t.NoOptionsMessage,c=t.Option,u=this.commonProps,p=this.state.focusedOption,d=this.props,f=d.captureMenuScroll,m=d.inputValue,h=d.isLoading,g=d.loadingMessage,b=d.minMenuHeight,y=d.maxMenuHeight,w=d.menuIsOpen,_=d.menuPlacement,x=d.menuPosition,C=d.menuPortalTarget,E=d.menuShouldBlockScroll,k=d.menuShouldScrollIntoView,S=d.noOptionsMessage,O=d.onMenuScrollToTop,I=d.onMenuScrollToBottom;if(!w)return null;var P,M=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,l=t.label,s=t.value,d=p===o,f=a?void 0:function(){return e.onOptionHover(o)},m=a?void 0:function(){return e.selectOption(o)},h="".concat(e.getElementId("option"),"-").concat(n),g={id:h,onClick:m,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:i};return v.createElement(c,jr({},u,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:h,label:l,type:r,value:s,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,l="".concat(e.getElementId("group"),"-").concat(i),s="".concat(l,"-heading");return v.createElement(n,jr({},u,{key:l,data:o,options:a,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return M(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return M(t,"".concat(t.index))}));else if(h){var $=g({inputValue:m});if(null===$)return null;P=v.createElement(l,u,$)}else{var R=S({inputValue:m});if(null===R)return null;P=v.createElement(s,u,R)}var A={minMenuHeight:b,maxMenuHeight:y,menuPlacement:_,menuPosition:x,menuShouldScrollIntoView:k},T=v.createElement(pi,jr({},u,A),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,l=r.maxHeight;return v.createElement(o,jr({},u,A,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:h,placement:i}),v.createElement(sl,{captureEnabled:f,onTopArrive:O,onBottomArrive:I,lockEnabled:E},(function(t){return v.createElement(a,jr({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:h,maxHeight:l,focusedOption:p}),P)})))}));return C||"fixed"===x?v.createElement(i,jr({},u,{appendTo:C,controlElement:this.controlRef,menuPlacement:_,menuPosition:x}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,l=this.state.selectValue;if(i&&!this.hasValue()&&!r)return v.createElement(ul,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var s=l.map((function(t){return e.getOptionValue(t)})).join(n);return v.createElement("input",{name:a,type:"hidden",value:s})}var c=l.length>0?l.map((function(t,n){return v.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):v.createElement("input",{name:a,type:"hidden",value:""});return v.createElement("div",null,c)}var u=l[0]?this.getOptionValue(l[0]):"";return v.createElement("input",{name:a,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,l=this.getFocusableOptions();return v.createElement(ji,jr({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,l=a.id,s=a.isDisabled,c=a.menuIsOpen,u=this.state.isFocused,p=this.commonProps=this.getCommonProps();return v.createElement(r,jr({},p,{className:i,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:u}),this.renderLiveRegion(),v.createElement(t,jr({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:u,menuIsOpen:c}),v.createElement(o,jr({},p,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),v.createElement(n,jr({},p,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],a=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,l=t.prevWasFocused,s=t.instancePrefix,c=e.options,u=e.value,p=e.menuIsOpen,d=e.inputValue,f=e.isMulti,m=Ha(u),h={};if(n&&(u!==n.value||c!==n.options||p!==n.menuIsOpen||d!==n.inputValue)){var g=p?function(e,t){return bl(vl(e,t))}(e,m):[],v=p?yl(vl(e,m),"".concat(s,"-option")):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,m):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);h={selectValue:m,focusedOption:y,focusedOptionId:_l(v,y),focusableOptionsWithIds:v,focusedValue:b,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},_=a,x=i&&l;return i&&!x&&(_={value:ri(f,m,m[0]||null),options:m,action:"initial-input-focus"},x=!l),"initial-input-focus"===(null==a?void 0:a.action)&&(_=null),Rr(Rr(Rr({},h),w),{},{prevProps:e,ariaSelection:_,prevWasFocused:x})}}],o&&Nr(r.prototype,o),a&&Nr(r,a),Object.defineProperty(r,"prototype",{writable:!1}),l}(v.Component);Pl.defaultProps=hl;var Ml=(0,v.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,l=e.inputValue,s=e.menuIsOpen,c=e.onChange,u=e.onInputChange,p=e.onMenuClose,d=e.onMenuOpen,f=e.value,m=Vr(e,Fr),h=Dr((0,v.useState)(void 0!==l?l:n),2),g=h[0],b=h[1],y=Dr((0,v.useState)(void 0!==s?s:o),2),w=y[0],_=y[1],x=Dr((0,v.useState)(void 0!==f?f:i),2),C=x[0],E=x[1],k=(0,v.useCallback)((function(e,t){"function"==typeof c&&c(e,t),E(e)}),[c]),S=(0,v.useCallback)((function(e,t){var n;"function"==typeof u&&(n=u(e,t)),b(void 0!==n?n:e)}),[u]),O=(0,v.useCallback)((function(){"function"==typeof d&&d(),_(!0)}),[d]),I=(0,v.useCallback)((function(){"function"==typeof p&&p(),_(!1)}),[p]),P=void 0!==l?l:g,M=void 0!==s?s:w,$=void 0!==f?f:C;return Rr(Rr({},m),{},{inputValue:P,menuIsOpen:M,onChange:k,onInputChange:S,onMenuClose:I,onMenuOpen:O,value:$})}(e);return v.createElement(Pl,jr({ref:t},n))})),$l=Ml;const Rl=({title:e,fontStyle:t,initialOpen:n,isMobile:r,onChange:o})=>{const{default_fontSize:a,mobile_fontSize:l,fontSize:s,fontFamily:c,fontWeight:u,isItalic:p}=t,d=[{value:"Arial, sans-serif",label:"Arial",fontFamily:"Arial, sans-serif"},{value:"Courier New, monospace",label:"Courier New",fontFamily:"Courier New, monospace"},{value:"Georgia, serif",label:"Georgia",fontFamily:"Georgia, serif"},{label:"Noto Sans JP",value:"Noto Sans JP, sans-serif",fontFamily:"Noto Sans JP, sans-serif"},{label:"Texturina",value:"Texturina, serif",fontFamily:"Texturina, serif"}],f={option:(e,t)=>({...e,fontFamily:t.data.fontFamily})};return(0,v.createElement)(y.PanelBody,{title:e,initialOpen:n},(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:e=>{e=""!=e?e:"0px";const n=r?{mobile_fontSize:e}:{default_fontSize:e},a={...t,...n};o(a)},label:r?(0,i.__)("Size(mobile)","block-collections"):(0,i.__)("Size(desk top)","block-collections"),value:r?l:a,units:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}]}),(0,v.createElement)((({label:e,value:t,onChange:n})=>(0,v.createElement)(v.Fragment,null,e&&(0,v.createElement)("label",{className:"components-base-control__label"},e),(0,v.createElement)($l,{options:d,value:d.find((e=>e.value===t)),onChange:e=>{n(e.value)},styles:f}))),{label:(0,i.__)("font family","block-collections"),value:c,onChange:e=>{const n={...t,fontFamily:e};o(n)}}),(0,v.createElement)("label",{className:"components-base-control__label"},(0,i.__)("font weight","block-collections")),(0,v.createElement)(y.PanelRow,{className:"itmar_weight_row"},(0,v.createElement)(y.RadioControl,{selected:u,options:[{label:"LIGHT",value:"300"},{label:"REGULAR",value:"400"},{label:"MEDIUM",value:"500"},{label:"S-BOLD",value:"600"},{label:"BOLD",value:"700"},{label:"BLACK",value:"900"}],onChange:e=>{const n={...t,fontWeight:e};o(n)}})),(0,v.createElement)("label",{className:"components-base-control__label"},(0,i.__)("Italic display","block-collections")),(0,v.createElement)(y.ToggleControl,{checked:p,onChange:e=>{const n={...t,isItalic:e};o(n)}}))},Al=(0,v.createElement)("a",{href:"https://fontawesome.com/search",target:"_blank"},"FontAwesome"),Tl=(0,v.createElement)("span",{},Al,(0,i.__)("Select the icon from and enter Unicode (the upper right four digits of the selection dialog). ","block-collections")),Dl=(0,v.createElement)("span",{},Al,(0,i.__)("Please select the first class name shown in the HTML code field of the selection dialog. ","block-collections")),Vl=[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],Fl=[{value:"Font Awesome 6 Free",label:"SOLID"},{value:"Font Awesome 6 Brands",label:"BRANDS"}],jl=({iconStyle:e,setPosition:t,onChange:n})=>{const{icon_name:r,icon_pos:o,icon_size:a,icon_color:l,icon_space:s,icon_family:c}=e;return(0,v.createElement)(v.Fragment,null,(0,v.createElement)(y.TextControl,{label:(0,i.__)("icon name","block-collections"),help:Tl,labelPosition:"top",value:r,isPressEnterToChange:!0,onChange:t=>{const r={...e,icon_name:t};n(r)}}),(0,v.createElement)(y.ComboboxControl,{label:(0,i.__)("Icon Family","block-collections"),help:Dl,options:Fl,value:c||"Font Awesome 6 Free",onChange:t=>{const r={...e,icon_family:t};n(r)}}),(0,v.createElement)(y.PanelRow,{className:"sizing_row"},(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:t=>{const r={...e,icon_size:t};n(r)},label:(0,i.__)("Size","block-collections"),value:a,units:Vl}),t&&(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:t=>{const r={...e,icon_space:t};n(r)},label:(0,i.__)("spacing to end","block-collections"),value:s,units:Vl})),(0,v.createElement)(Y.PanelColorSettings,{title:(0,i.__)("Color settings","itmar_location"),initialOpen:!1,colorSettings:[{value:l,onChange:t=>{const r={...e,icon_color:t};n(r)},label:(0,i.__)("Icon color","itmar_location")}]}),t&&(0,v.createElement)(v.Fragment,null,(0,v.createElement)("label",{className:"components-base-control__label"},(0,i.__)("Arrangement","block-collections")),(0,v.createElement)(y.PanelRow,{className:"itmar_position_row"},(0,v.createElement)(y.RadioControl,{selected:o,options:[{label:(0,i.__)("left","block-collections"),value:"left"},{label:(0,i.__)("right","block-collections"),value:"right"}],onChange:t=>{const r={...e,icon_pos:t};n(r)}}))))},Nl=function({lazyComponent:t,...n}){return(0,v.createElement)(e.Suspense,{fallback:(0,v.createElement)("div",null,"Loading...")},(0,v.createElement)(t,{...n}))};let Ll=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");const Bl=(e,t)=>{const{startYear:n,startMonth:r,endYear:o,endMonth:a}=e,i=[];for(let e=n;e<=o;e++)if(t){const t=e===o?a:12;for(let o=e===n?r:1;o<=t;o++){const t={id:Ll(5),value:`${e}/${o.toString().padStart(2,"0")}`,label:`${e}/${o.toString().padStart(2,"0")}`,classname:"filter_date"};i.push(t)}}else{const t={id:Ll(5),value:`${e}`,label:`${e}`,classname:"filter_date"};i.push(t)}return i},zl=(e,t=null)=>{const[n,r]=e.split("/").map(Number),o=new Date(n,r-1,1),a=new Date(n,r,0).getDate(),i=[];for(let e=1;e<=a;e++){o.setDate(e);const n=t?.find((t=>parseInt(t.date.slice(-2),10)===e)),r=n?{date:e,weekday:o.getDay(),holiday:n.name}:{date:e,weekday:o.getDay()};i.push(r)}return i},Hl=({startYear:e,endYear:t,dateSpan:n,isMonth:r,onChange:o})=>(0,v.createElement)(y.PanelBody,{title:(0,i.__)("Period Setting","block-collections"),initialOpen:!0,className:"form_setteing_ctrl"},(0,v.createElement)("label",null,(0,i.__)("Start of period","block-collections")),(0,v.createElement)(y.PanelRow,{className:"itmar_date_span"},(0,v.createElement)(y.__experimentalNumberControl,{label:(0,i.__)("Year","block-collections"),labelPosition:"side",max:t,min:e,onChange:e=>{const t={dateSpan:{...n,startYear:Number(e)}};o(t)},value:n.startYear}),r&&(0,v.createElement)(y.__experimentalNumberControl,{label:(0,i.__)("Month","block-collections"),labelPosition:"side",max:12,min:1,onChange:e=>{const t={dateSpan:{...n,startMonth:Number(e)}};o(t)},value:n.startMonth})),(0,v.createElement)("label",null,(0,i.__)("End of period","block-collections")),(0,v.createElement)(y.PanelRow,{className:"itmar_date_span"},(0,v.createElement)(y.__experimentalNumberControl,{label:(0,i.__)("Year","block-collections"),labelPosition:"side",max:t,min:e,onChange:e=>{const t={dateSpan:{...n,endYear:Number(e)}};o(t)},value:n.endYear}),(0,v.createElement)(y.__experimentalNumberControl,{label:(0,i.__)("Month","block-collections"),labelPosition:"side",max:12,min:1,onChange:e=>{const t={dateSpan:{...n,endMonth:Number(e)}};o(t)},value:n.endMonth}))),Ul=e=>{if(!e)return null;const t=e.split("/"),n=parseInt(t[0],10),r=t.length>1?parseInt(t[1],10):null,o=t.length>2?parseInt(t[2],10):null;let a,i;return o?(a=new Date(n,r-1,o,0,0,0,-1),i=new Date(n,r-1,o,23,59,59,1e3)):r?(a=new Date(n,r-1,1,0,0,0,-1),i=new Date(n,r,1,0,0,0,0)):(a=new Date(n,0,1,0,0,0,-1),i=new Date(n+1,0,1,0,0,0,0)),{after:a.toISOString(),before:i.toISOString()}},Wl=()=>{const e=new Date;return`${e.getFullYear()}/${String(e.getMonth()+1).padStart(2,"0")}`},Gl=()=>(new Date).getFullYear(),Yl=()=>(new Date).getMonth()+1,ql=["sun","mon","tue","wed","thu","fri","sat"],Zl=(e,t,n)=>{let r=[],o=1;const a=n?e-1<0?6:e-1:e;let i,l=[];for(let e=0;e<7;e++)i=n?e+1:e,i>6&&(i=0),l.push(ql[i]);r.push(l.join(" "));for(let e=0;e<6;e++){let n=[];for(let r=0;r<7;r++)0===e&&r<a||o>t?n.push(`empty${e}`):(n.push(`day${o}`),o++);5==e&&(n[5]="day_clear",n[6]="day_clear"),r.push(n.join(" "))}return r.map((e=>`"${e}"`)).join("\n")},Xl=async(e,t)=>{try{return await new Promise(((e,t)=>{if(window.gapi)return void e();const n=document.createElement("script");n.src="https://apis.google.com/js/api.js",n.async=!0,n.defer=!0,n.onload=()=>{const t=()=>{window.gapi?e():setTimeout(t,20)};t()},n.onerror=()=>t(new Error("Failed to load Google API script")),document.querySelector('script[src="https://apis.google.com/js/api.js"]')||document.body.appendChild(n)})),await(async()=>{if(!window.gapi)throw new Error("Google API not loaded");window.gapi.client||await new Promise((e=>window.gapi.load("client",e))),window.gapi.client.calendar||await window.gapi.client.init({apiKey:e,discoveryDocs:["https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest"]})})(),await(async()=>{const e=Ul(t);return(await window.gapi.client.calendar.events.list({calendarId:"japanese__ja@holiday.calendar.google.com",timeMin:e.after,timeMax:e.before,singleEvents:!0,orderBy:"startTime"})).result.items.map((e=>({date:e.start.date,name:e.summary})))})()}catch(e){throw console.error("エラーが発生しました:",e),e}},Jl=e=>e.reduce(((e,t)=>(e.push(t),t.innerBlocks&&t.innerBlocks.length>0&&e.push(...Jl(t.innerBlocks)),e)),[]),Kl=UpdateAllPostsBlockAttributes=({postType:t,blockName:n,newAttributes:r,onProcessEnd:o,onProcessCancel:a})=>{const[l,s]=(0,e.useState)(0),c=(0,e.useRef)(!1);return(0,v.createElement)(v.Fragment,null,(0,v.createElement)(y.ProgressBar,{value:l,className:"markdown_copy_progress"}),(0,v.createElement)("p",null,l,"%"),(0,v.createElement)("div",{style:{width:"fit-content",margin:"20px auto 0"}},(0,v.createElement)(y.Button,{variant:"primary",onClick:async()=>{try{const e=`/wp/v2/${t}?per_page=100&context=edit`,a=await x()({path:e});let i=a.length,l=0;c.current=!1;for(const e of a){if(!e.content||!e.content.raw){console.warn(`Post ID ${e.id} does not contain raw content.`);continue}if(c.current)return void console.log("処理がキャンセルされました。");const o=e.content.raw,a=parse(o).map((e=>(e.name===n&&(e.attributes={...e.attributes,...r}),e))),u=serialize(a),p=await fetch(`/wp-json/wp/v2/${t}/${e.id}`,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify({content:u})});p.ok||console.error(`Failed to update post ID ${e.id}: ${p.statusText}`),l++,s(Math.round(l/i*100))}o()}catch(e){console.error("Error updating block attributes:",e)}},disabled:l>0&&l<100},(0,i.__)("Start Process","markdown-block")),(0,v.createElement)(y.Button,{variant:"secondary",onClick:()=>{0===l||c.current?o():(c.current=!0,a())},style:{marginLeft:"10px"}},(0,i.__)("Cancel","markdown-block"))))}})(),module.exports=r})();
25
+ `;function Jn(e){const{is_anime:t,anime_prm:n}=e.attributes;return(0,v.createElement)(v.Fragment,null,(0,v.createElement)(y.PanelBody,{title:(0,i.__)("Animation Setting","block-collections"),initialOpen:!0},(0,v.createElement)(y.ToggleControl,{label:(0,i.__)("Is Animation","block-collections"),checked:t,onChange:t=>{e.onChange({is_anime:t})}}),t&&(0,v.createElement)(v.Fragment,null,(0,v.createElement)("div",{className:"itmar_link_type"},(0,v.createElement)(y.RadioControl,{label:(0,i.__)("Animation Pattern","block-collections"),selected:n.pattern,options:[{label:"flipDown",value:"flipDown"},{label:"fadeUp",value:"fadeUp"},{label:"fadeLeft",value:"fadeLeft"},{label:"fadeRight",value:"fadeRight"}],onChange:t=>{e.onChange({anime_prm:{...n,pattern:t}})}})),(0,v.createElement)(y.RangeControl,{value:n.duration,label:(0,i.__)("Animation duration time","block-collections"),max:5,min:0,onChange:t=>{e.onChange({anime_prm:{...n,duration:t}})},step:.1,withInputField:!0}),(0,v.createElement)(y.RangeControl,{value:n.delay,label:(0,i.__)("Animation delay time","block-collections"),max:3,min:0,onChange:t=>{e.onChange({anime_prm:{...n,delay:t}})},step:.1,withInputField:!0}),(0,v.createElement)("div",{className:"itmar_link_type"},(0,v.createElement)(y.RadioControl,{label:(0,i.__)("Animation Trigger","block-collections"),selected:n.trigger,options:[{label:(0,i.__)("Page Opend","block-collections"),value:"opend"},{label:(0,i.__)("Enter Visible","block-collections"),value:"visible"}],onChange:t=>{e.onChange({anime_prm:{...n,trigger:t}})}})))))}const Kn=window.wp.primitives,Qn=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})),er=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),tr=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})),nr=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),rr=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})),or=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),ar=(0,v.createElement)(Kn.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,v.createElement)(Kn.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})),ir=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),lr=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})),sr=(0,v.createElement)(Kn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(Kn.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})),cr=(0,v.createElement)(y.Icon,{icon:er,className:"rotate-icon"}),ur=(0,v.createElement)(y.Icon,{icon:tr,className:"rotate-icon"}),pr=(0,v.createElement)(y.Icon,{icon:nr,className:"rotate-icon"}),dr={left:er,center:tr,right:nr,upper:cr,middle:ur,lower:pr},fr=[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],mr=(e,t)=>Array.isArray(e)?Array.from({length:t},((t,n)=>e[n]||"1fr")):Array(t).fill("1fr"),hr=(e,t,n)=>{for(let r=0;r<e.length;r++){const{startCell:o,endCell:a}=e[r],i=Math.min(o?.rowInx,a?.rowInx),l=Math.max(o?.rowInx,a?.rowInx),s=Math.min(o?.colInx,a?.colInx),c=Math.max(o?.colInx,a?.colInx);if(t>=i&&t<=l&&n>=s&&n<=c)return{index:r,elm:e[r]}}return null},gr=({children:e})=>(0,v.createElement)("div",{className:"itmar_event_stopper",onClick:e=>{e.stopPropagation()}},e),vr=({attributes:n,clientId:r,onChange:o})=>{const{gridElms:a,rowNum:l,colNum:s,rowGap:c,colGap:u,rowUnit:p,colUnit:d}=n,[f,m]=(0,e.useState)(l),[h,g]=(0,e.useState)(s),b=(0,e.useRef)(!0),w=(e,n)=>{if(!C)return void(0,t.dispatch)("core/notices").createNotice("error",(0,i.__)("No blocks selected.","itmar_guest_contact_block"),{type:"snackbar",isDismissible:!0});if(hr(a,e,n))return void(0,t.dispatch)("core/notices").createNotice("error",(0,i.__)("That cell is already selected by another block.","itmar_guest_contact_block"),{type:"snackbar",isDismissible:!0});const r=C.startCell?{...C,endCell:{rowInx:e,colInx:n}}:{...C,startCell:{rowInx:e,colInx:n},endCell:{rowInx:e,colInx:n}};E(r);const o=a?.findIndex((e=>e.value===C.value)),l=[...S.slice(0,o),r,...S.slice(o+1)];O(l)},_=(e,t)=>{if(C){const n=Math.min(C.startCell?.rowInx,C.endCell?.rowInx),r=Math.max(C.startCell?.rowInx,C.endCell?.rowInx),o=Math.min(C.startCell?.colInx,C.endCell?.colInx),a=Math.max(C.startCell?.colInx,C.endCell?.colInx);return e>=n&&e<=r&&t>=o&&t<=a}return!1},x=(e,t,n)=>{const r={...S[e],[n]:t},o=[...S.slice(0,e),r,...S.slice(e+1)];O(o)},[C,E]=(0,e.useState)(null),k=(0,t.useSelect)((e=>e("core/block-editor").getBlocks(r).map(((e,t)=>a.length>t?{value:e.clientId,label:e.name,startCell:a[t].startCell,endCell:a[t].endCell,latAlign:a[t].latAlign,vertAlign:a[t].vertAlign}:{value:e.clientId,label:e.name}))),[r]),[S,O]=(0,e.useState)(k),I=()=>{const e=S.map((e=>({value:e.value,label:e.label})));O(e)},P=mr(p,f),[M,$]=(0,e.useState)(P),R=mr(d,h),[A,T]=(0,e.useState)(R);return(0,e.useEffect)((()=>{const e={...n,gridElms:S,rowNum:f,colNum:h,rowUnit:M,colUnit:A};o(e)}),[S,M,A]),(0,e.useEffect)((()=>{if(b.current)b.current=!1;else{I();const e=mr(p,f);$(e);const t=mr(d,h);T(t)}}),[f,h]),(0,v.createElement)(v.Fragment,null,(0,v.createElement)(y.PanelRow,{className:"distance_row"},(0,v.createElement)(y.__experimentalNumberControl,{onChange:e=>{const t="number"==typeof e?e:Number(e);m(t)},label:(0,i.__)("Number of Row ","block-collections"),value:f,min:2}),(0,v.createElement)(y.__experimentalNumberControl,{onChange:e=>{const t="number"==typeof e?e:Number(e);g(t)},label:(0,i.__)("Number of Colum","block-collections"),value:h})),(0,v.createElement)(y.PanelRow,{className:"distance_row"},(0,v.createElement)(y.__experimentalUnitControl,{onChange:e=>{e=""!=e?e:"0px";const t={...n,rowGap:e};o(t)},label:(0,i.__)("Row Gap","block-collections"),value:c,units:fr}),(0,v.createElement)(y.__experimentalUnitControl,{onChange:e=>{e=""!=e?e:"0px";const t={...n,colGap:e};o(t)},label:(0,i.__)("Colum Gap","block-collections"),value:u,units:fr})),(0,v.createElement)(y.PanelRow,{className:"distance_row"},(0,v.createElement)("p",null,(0,i.__)("Element placement","block-collections")),(0,v.createElement)(y.Button,{variant:"secondary",onClick:I},(0,i.__)("Clear","block-collections"))),(0,v.createElement)(y.PanelRow,{className:"grid_table"},(0,v.createElement)("table",null,(()=>{const e=new Array(f).fill(0).map((()=>new Array(h).fill(!1)));let t=[],n=[(0,v.createElement)("th",{key:"header-corner"})];for(let e=0;e<h;e++)n.push((0,v.createElement)("th",{key:`header-${e}`},(0,v.createElement)(y.__experimentalInputControl,{value:d?d[e]:"",type:"text",isPressEnterToChange:!0,onChange:t=>{const n=[...d.slice(0,e),t,...d.slice(e+1)];T(n)}})));t.push((0,v.createElement)("tr",{key:"header-row"},n));for(let n=0;n<f;n++){let r=[];r.push((0,v.createElement)("th",{key:`row-header-${n}`},(0,v.createElement)(y.__experimentalInputControl,{value:p?p[n]:"",type:"text",isPressEnterToChange:!0,onChange:e=>{const t=[...p.slice(0,n),e,...p.slice(n+1)];$(t)}})));for(let t=0;t<h;t++){if(e[n][t])continue;const o=hr(a,n,t),l=o?Math.abs(o.elm.startCell.rowInx-o.elm.endCell.rowInx):0,s=o?Math.abs(o.elm.startCell.colInx-o.elm.endCell.colInx):0,c={...0!==l&&{rowspan:l+1},...0!==s&&{colspan:s+1}};for(let r=0;r<=l;r++)for(let o=0;o<=s;o++)n+r<f&&t+o<h&&(e[n+r][t+o]=!0);r.push((0,v.createElement)("td",{key:`cell-${n}-${t}`,...c,className:_(n,t)?"selected":"",style:o?{backgroundColor:`var(--wp--custom--color--area-${o.index})`}:void 0,onClick:()=>w(n,t)},o&&(0,v.createElement)(gr,null,(0,v.createElement)(y.ToolbarDropdownMenu,{label:(0,i.__)("Lateral Alignment","block-collections"),icon:o.elm.latAlign?dr[o.elm.latAlign]:dr.left,controls:["left","center","right"].map((e=>({icon:dr[e],isActive:o.elm.latAlign===e,onClick:()=>x(o.index,e,"latAlign")})))}),(0,v.createElement)(y.ToolbarDropdownMenu,{label:(0,i.__)("Vertical Alignment","block-collections"),icon:o.elm.vertAlign?dr[o.elm.vertAlign]:dr.upper,controls:["upper","middle","lower"].map((e=>({icon:dr[e],isActive:o.elm.vertAlign===e,onClick:()=>x(o.index,e,"vertAlign")})))}))))}t.push((0,v.createElement)("tr",{key:`row-${n}`},r))}return t})())),(0,v.createElement)(y.ComboboxControl,{label:(0,i.__)("InnerBlock Name","block-collections"),options:S,value:C?C.value:null,onChange:e=>{const t=S.find((t=>t.value===e));E(t)}}))},br=(0,v.createElement)(y.Icon,{icon:Qn,className:"rotate-icon"}),yr=(0,v.createElement)(y.Icon,{icon:er,className:"rotate-icon"}),wr=(0,v.createElement)(y.Icon,{icon:tr,className:"rotate-icon"}),_r=(0,v.createElement)(y.Icon,{icon:nr,className:"rotate-icon"}),xr=(0,v.createElement)(y.Icon,{icon:rr,className:"rotate-icon"}),Cr=(0,v.createElement)(y.Icon,{icon:or,className:"rotate-icon"});function Er(t){const{attributes:n,clientId:r,blockRef:o,isMobile:a,isSubmenu:l,isParallax:s}=t,{positionType:c,isPosCenter:u,default_val:p,mobile_val:d}=n,f=a?d:p,m="vertical"===f.direction?yr:er,h="vertical"===f.direction?wr:tr,g="vertical"===f.direction?_r:nr,b="vertical"===f.direction?er:yr,w="vertical"===f.direction?tr:wr,_="vertical"===f.direction?nr:_r,x="vertical"===f.direction?xr:rr,C="vertical"===f.direction?Cr:or,E="vertical"===f.direction?(0,i.__)("upper alignment","block-collections"):(0,i.__)("left alignment","block-collections"),k="vertical"===f.direction?(0,i.__)("lower alignment","block-collections"):(0,i.__)("right alignment","block-collections"),S="vertical"===f.direction?(0,i.__)("left alignment","block-collections"):(0,i.__)("upper alignment","block-collections"),O="vertical"===f.direction?(0,i.__)("right alignment","block-collections"):(0,i.__)("lower alignment","block-collections"),[I,P]=(0,e.useState)(!1),[M,$]=(0,e.useState)("row");(0,e.useEffect)((()=>{if(o.current){const e=o.current.parentElement,t=e?.parentElement,n=getComputedStyle(t);"flex"!==n.display&&"inline-flex"!==n.display&&"grid"!==n.display&&"inline-grid"!==n.display||P(!0),"flex"!==n.display&&"inline-flex"!==n.display||("row"===n.flexDirection||"row-reverse"===n.flexDirection?$("row"):$("column"))}}),[]);const[R,A]=(0,e.useState)(!1);return(0,i.__)("Block Max Width(Mobile)","block-collections"),(0,i.__)("Block Width(Mobile)","block-collections"),(0,i.__)("Block Max Width(DeskTop)","block-collections"),(0,i.__)("Block Width(DeskTop)","block-collections"),(0,v.createElement)(v.Fragment,null,(0,v.createElement)(y.PanelBody,{title:(0,i.__)("Block placement","block-collections"),initialOpen:!1,className:"itmar_group_direction"},a?(0,v.createElement)("p",null,(0,i.__)("InnerBlock direction(Mobile)","block-collections")):(0,v.createElement)("p",null,(0,i.__)("InnerBlock direction(DeskTop)","block-collections")),(0,v.createElement)(y.ToolbarGroup,null,(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"block"===f.direction,onClick:()=>t.onDirectionChange("block"),icon:ar,label:(0,i.__)("block","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"vertical"===f.direction,onClick:()=>t.onDirectionChange("vertical"),icon:Qn,label:(0,i.__)("virtical","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"horizen"===f.direction,onClick:()=>t.onDirectionChange("horizen"),icon:br,label:(0,i.__)("horizen","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"grid"===f.direction,onClick:()=>t.onDirectionChange("grid"),icon:ir,label:(0,i.__)("grid","block-collections")}))),("horizen"===f.direction||"vertical"===f.direction)&&(0,v.createElement)(y.PanelRow,{className:"position_row"},(0,v.createElement)(y.ToggleControl,{label:(0,i.__)("reverse","block-collections"),checked:f.reverse,onChange:e=>t.onReverseChange(e)}),(0,v.createElement)(y.ToggleControl,{label:(0,i.__)("wrap","block-collections"),checked:f.wrap,onChange:e=>t.onWrapChange(e)}))),"block"!==f.direction&&"grid"!==f.direction&&(0,v.createElement)(v.Fragment,null,a?(0,v.createElement)("p",null,(0,i.__)("InnerBlock Main Axis(Mobile)","block-collections")):(0,v.createElement)("p",null,(0,i.__)("InnerBlock Main Axis(DeskTop)","block-collections")),(0,v.createElement)(y.ToolbarGroup,null,(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"flex-start"===f.inner_align,onClick:()=>t.onFlexChange("flex-start","inner_align"),icon:m,label:E}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"center"===f.inner_align,onClick:()=>t.onFlexChange("center","inner_align"),icon:h,label:(0,i.__)("center alignment","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"flex-end"===f.inner_align,onClick:()=>t.onFlexChange("flex-end","inner_align"),icon:g,label:k}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"space-between"===f.inner_align,onClick:()=>t.onFlexChange("space-between","inner_align"),icon:x,label:(0,i.__)("beteen stretch","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"space-around"===f.inner_align,onClick:()=>t.onFlexChange("space-around","inner_align"),icon:C,label:(0,i.__)("around stretch","block-collections")}))))),!l&&(a?(0,v.createElement)("p",null,(0,i.__)("InnerBlock Cross Axis(Mobile)","block-collections")):(0,v.createElement)("p",null,(0,i.__)("InnerBlock Cross Axis(DeskTop)","block-collections"))),!l&&(0,v.createElement)(y.ToolbarGroup,null,(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"flex-start"===f.inner_items,onClick:()=>t.onFlexChange("flex-start","inner_items"),icon:b,label:S}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"center"===f.inner_items,onClick:()=>t.onFlexChange("center","inner_items"),icon:w,label:(0,i.__)("center alignment","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"flex-end"===f.inner_items,onClick:()=>t.onFlexChange("flex-end","inner_items"),icon:_,label:O})))),I&&(0,v.createElement)(v.Fragment,null,a?(0,v.createElement)("p",null,(0,i.__)("Alignment in container(Mobile)","block-collections")):(0,v.createElement)("p",null,(0,i.__)("Alignment in container(DeskTop)","block-collections")),(0,v.createElement)(y.ToolbarGroup,null,(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"row"===M?"self-start"===f.outer_vertical:"left"===f.outer_align,onClick:"row"===M?()=>t.onVerticalChange("self-start"):()=>t.onAlignChange("left"),icon:"row"===M?yr:er,label:"row"===M?(0,i.__)("upper alignment","block-collections"):(0,i.__)("left alignment","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"row"===M?"center"===f.outer_vertical:"center"===f.outer_align,onClick:"row"===M?()=>t.onVerticalChange("center"):()=>t.onAlignChange("center"),icon:"row"===M?wr:tr,label:(0,i.__)("center alignment","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(e=>(0,v.createElement)(y.Button,{...e,isPressed:"row"===M?"self-end"===f.outer_vertical:"right"===f.outer_align,onClick:"row"===M?()=>t.onVerticalChange("self-end"):()=>t.onAlignChange("right"),icon:"row"===M?_r:nr,label:"row"===M?(0,i.__)("lower alignment","block-collections"):(0,i.__)("right alignment","block-collections")}))))),(0,v.createElement)(kr,{attributes:n,isMobile:a,isSubmenu:l,onWidthChange:(e,n)=>t.onWidthChange(e,n),onFreeWidthChange:(e,n)=>t.onFreeWidthChange(e,n)}),(0,v.createElement)(Sr,{attributes:n,isMobile:a,onHeightChange:e=>t.onHeightChange(e),onFreeHeightChange:e=>t.onFreeHeightChange(e)}),"grid"===f.direction&&(0,v.createElement)(v.Fragment,null,a?(0,v.createElement)("p",null,(0,i.__)("Grid Info settings(Mobile)","block-collections")):(0,v.createElement)("p",null,(0,i.__)("Grid Info settings(DeskTop)","block-collections")),(0,v.createElement)(y.Button,{variant:"primary",onClick:()=>A(!0)},(0,i.__)("Open Setting Modal","block-collections")),R&&(0,v.createElement)(y.Modal,{title:"Grid Info settings",onRequestClose:()=>A(!1)},(0,v.createElement)(vr,{attributes:f.grid_info,clientId:r,onChange:e=>{t.onGridChange(e)}}))),(0,v.createElement)("div",{className:"itmar_title_type"},(0,v.createElement)(y.RadioControl,{label:(0,i.__)("Position Type","block-collections"),selected:c,options:[{label:(0,i.__)("Static","block-collections"),value:"staic"},{label:(0,i.__)("Relative","block-collections"),value:"relative"},{label:(0,i.__)("Absolute","block-collections"),value:"absolute"},{label:(0,i.__)("Fix","block-collections"),value:"fixed"},{label:(0,i.__)("Sticky","block-collections"),value:"sticky"}],onChange:e=>{t.onPositionChange(e)}})),"absolute"===c&&!s&&(0,v.createElement)(y.ToggleControl,{label:(0,i.__)("Center Vertically and Horizontally","block-collections"),checked:u,onChange:e=>{t.onIsPosCenterChange(e)}}),("absolute"===c&&!u||"fixed"===c||"sticky"===c)&&(0,v.createElement)(v.Fragment,null,a?(0,v.createElement)("p",null,(0,i.__)("Block Position(Mobile)","block-collections")):(0,v.createElement)("p",null,(0,i.__)("Block Position(DeskTop)","block-collections")),(0,v.createElement)(y.PanelBody,{title:(0,i.__)("Vertical","block-collections"),initialOpen:!0},!f.posValue?.isVertCenter&&(0,v.createElement)(y.PanelRow,{className:"position_row"},(0,v.createElement)(y.ComboboxControl,{options:[{value:"top",label:"Top"},{value:"bottom",label:"Bottom"}],value:f.posValue?.vertBase||"top",onChange:e=>{const n={...f.posValue||{},vertBase:e};t.onPosValueChange(n)}}),(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:e=>{const n={...f.posValue||{},vertValue:e};t.onPosValueChange(n)},value:f.posValue?.vertValue||"3em"})),!s&&(0,v.createElement)(y.ToggleControl,{label:(0,i.__)("Is Center","block-collections"),checked:f.posValue?.isVertCenter,onChange:e=>{const n={...f.posValue||{},isVertCenter:e};t.onPosValueChange(n)}})),(0,v.createElement)(y.PanelBody,{title:(0,i.__)("Horizon","block-collections"),initialOpen:!0},!f.posValue?.isHorCenter&&(0,v.createElement)(y.PanelRow,{className:"position_row"},(0,v.createElement)(y.ComboboxControl,{options:[{value:"left",label:"Left"},{value:"right",label:"Right"}],value:f.posValue?.horBase||"left",onChange:e=>{const n={...f.posValue||{},horBase:e};t.onPosValueChange(n)}}),(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:e=>{const n={...f.posValue||{},horValue:e};t.onPosValueChange(n)},value:f.posValue?.horValue||"3em"})),!s&&(0,v.createElement)(y.ToggleControl,{label:(0,i.__)("Is Center","block-collections"),checked:f.posValue?.isHorCenter,onChange:e=>{const n={...f.posValue||{},isHorCenter:e};t.onPosValueChange(n)}})))))}function kr(e){const{attributes:t,isMobile:n,isSubmenu:r}=e,{default_val:o,mobile_val:a}=t,l=n?a:o,s=(0,i.__)("Block Max Width(Mobile)","block-collections"),c=(0,i.__)("Block Width(Mobile)","block-collections"),u=(0,i.__)("Block Max Width(DeskTop)","block-collections"),p=(0,i.__)("Block Width(DeskTop)","block-collections"),d=n?c:p,f=n?s:u;return(0,v.createElement)(v.Fragment,null,(0,v.createElement)("p",null,d),(0,v.createElement)(y.ToolbarGroup,null,(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"full"===l.width_val,onClick:()=>e.onWidthChange("width_val","full"),text:"full"}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"fit"===l.width_val,onClick:()=>e.onWidthChange("width_val","fit"),text:"fit"}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"wideSize"===l.width_val,onClick:()=>e.onWidthChange("width_val","wideSize"),icon:lr,label:(0,i.__)("Wide Size","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"contentSize"===l.width_val,onClick:()=>e.onWidthChange("width_val","contentSize"),icon:sr,label:(0,i.__)("Content Size","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"free"===l.width_val,onClick:()=>e.onWidthChange("width_val","free"),text:"free"})))),"free"===l.width_val&&(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:t=>e.onFreeWidthChange("free_width",t),value:l.free_width}),(0,v.createElement)("p",null,f),(0,v.createElement)(y.ToolbarGroup,null,(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"full"===l.max_width,onClick:()=>e.onWidthChange("max_width","full"),text:"full"}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"fit"===l.max_width,onClick:()=>e.onWidthChange("max_width","fit"),text:"fit"}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"wideSize"===l.max_width,onClick:()=>e.onWidthChange("max_width","wideSize"),icon:lr,label:(0,i.__)("Wide Size","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"contentSize"===l.max_width,onClick:()=>e.onWidthChange("max_width","contentSize"),icon:sr,label:(0,i.__)("Content Size","block-collections")}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"free"===l.max_width,onClick:()=>e.onWidthChange("max_width","free"),text:"free"})))),"free"===l.max_width&&(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:t=>e.onFreeWidthChange("max_free_width",t),value:l.max_free_width}))}function Sr(e){const{attributes:t,isMobile:n}=e,{default_val:r,mobile_val:o}=t,a=n?o:r;return(0,v.createElement)(v.Fragment,null,n?(0,v.createElement)("p",null,(0,i.__)("Block Height(Mobile)","block-collections")):(0,v.createElement)("p",null,(0,i.__)("Block Height(DeskTop)","block-collections")),(0,v.createElement)(y.ToolbarGroup,null,(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"full"===a.height_val,onClick:()=>e.onHeightChange("full"),text:"full"}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"fit"===a.height_val,onClick:()=>e.onHeightChange("fit"),text:"fit"}))),(0,v.createElement)(y.ToolbarItem,null,(t=>(0,v.createElement)(y.Button,{...t,isPressed:"free"===a.height_val,onClick:()=>e.onHeightChange("free"),text:"free"})))),"free"===a.height_val&&(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:t=>e.onFreeHeightChange(t),value:a.free_height}))}function Or(e){return(0,v.createElement)("div",{className:`${e.className} ${e.openFlg?"open":""}`,style:e.style,onClick:()=>{e.onToggle&&e.onToggle(!e.openFlg)}},e.children)}function Ir(e){return Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ir(e)}function Pr(e){var t=function(e,t){if("object"!=Ir(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ir(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ir(t)?t:t+""}function Mr(e,t,n){return(t=Pr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$r(Object(n),!0).forEach((function(t){Mr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ar(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tr(e,t){if(e){if("string"==typeof e)return Ar(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ar(e,t):void 0}}function Dr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||Tr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Fr=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jr.apply(this,arguments)}function Nr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pr(r.key),r)}}function Lr(e,t){return Lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lr(e,t)}function Br(e){return Br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Br(e)}function zr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zr=function(){return!!e})()}function Hr(e){return function(e){if(Array.isArray(e))return Ar(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Tr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ur=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Wr=Math.abs,Gr=String.fromCharCode,Yr=Object.assign;function qr(e){return e.trim()}function Zr(e,t,n){return e.replace(t,n)}function Xr(e,t){return e.indexOf(t)}function Jr(e,t){return 0|e.charCodeAt(t)}function Kr(e,t,n){return e.slice(t,n)}function Qr(e){return e.length}function eo(e){return e.length}function to(e,t){return t.push(e),e}var no=1,ro=1,oo=0,ao=0,io=0,lo="";function so(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:no,column:ro,length:i,return:""}}function co(e,t){return Yr(so("",null,null,"",null,null,0),e,{length:-e.length},t)}function uo(){return io=ao<oo?Jr(lo,ao++):0,ro++,10===io&&(ro=1,no++),io}function po(){return Jr(lo,ao)}function fo(){return ao}function mo(e,t){return Kr(lo,e,t)}function ho(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function go(e){return no=ro=1,oo=Qr(lo=e),ao=0,[]}function vo(e){return lo="",e}function bo(e){return qr(mo(ao-1,_o(91===e?e+2:40===e?e+1:e)))}function yo(e){for(;(io=po())&&io<33;)uo();return ho(e)>2||ho(io)>3?"":" "}function wo(e,t){for(;--t&&uo()&&!(io<48||io>102||io>57&&io<65||io>70&&io<97););return mo(e,fo()+(t<6&&32==po()&&32==uo()))}function _o(e){for(;uo();)switch(io){case e:return ao;case 34:case 39:34!==e&&39!==e&&_o(io);break;case 40:41===e&&_o(e);break;case 92:uo()}return ao}function xo(e,t){for(;uo()&&e+io!==57&&(e+io!==84||47!==po()););return"/*"+mo(t,ao-1)+"*"+Gr(47===e?e:uo())}function Co(e){for(;!ho(po());)uo();return mo(e,ao)}var Eo="-ms-",ko="-moz-",So="-webkit-",Oo="comm",Io="rule",Po="decl",Mo="@keyframes";function $o(e,t){for(var n="",r=eo(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ro(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Po:return e.return=e.return||e.value;case Oo:return"";case Mo:return e.return=e.value+"{"+$o(e.children,r)+"}";case Io:e.value=e.props.join(",")}return Qr(n=$o(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ao(e){return vo(To("",null,null,null,[""],e=go(e),0,[0],e))}function To(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,p=i,d=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",w=o,_=a,x=r,C=y;g;)switch(m=b,b=uo()){case 40:if(108!=m&&58==Jr(C,p-1)){-1!=Xr(C+=Zr(bo(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=bo(b);break;case 9:case 10:case 13:case 32:C+=yo(m);break;case 92:C+=wo(fo()-1,7);continue;case 47:switch(po()){case 42:case 47:to(Vo(xo(uo(),fo()),t,n),s);break;default:C+="/"}break;case 123*h:l[c++]=Qr(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(C=Zr(C,/\f/g,"")),f>0&&Qr(C)-p&&to(f>32?Fo(C+";",r,n,p-1):Fo(Zr(C," ","")+";",r,n,p-2),s);break;case 59:C+=";";default:if(to(x=Do(C,t,n,c,u,o,l,y,w=[],_=[],p),a),123===b)if(0===u)To(C,t,x,x,w,a,p,l,_);else switch(99===d&&110===Jr(C,3)?100:d){case 100:case 108:case 109:case 115:To(e,x,x,r&&to(Do(e,x,x,0,0,o,l,y,o,w=[],p),_),o,_,p,l,r?w:_);break;default:To(C,x,x,x,[""],_,0,l,_)}}c=u=f=0,h=v=1,y=C="",p=i;break;case 58:p=1+Qr(C),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==(io=ao>0?Jr(lo,--ao):0,ro--,10===io&&(ro=1,no--),io))continue;switch(C+=Gr(b),b*h){case 38:v=u>0?1:(C+="\f",-1);break;case 44:l[c++]=(Qr(C)-1)*v,v=1;break;case 64:45===po()&&(C+=bo(uo())),d=po(),u=p=Qr(y=C+=Co(fo())),b++;break;case 45:45===m&&2==Qr(C)&&(h=0)}}return a}function Do(e,t,n,r,o,a,i,l,s,c,u){for(var p=o-1,d=0===o?a:[""],f=eo(d),m=0,h=0,g=0;m<r;++m)for(var v=0,b=Kr(e,p+1,p=Wr(h=i[m])),y=e;v<f;++v)(y=qr(h>0?d[v]+" "+b:Zr(b,/&\f/g,d[v])))&&(s[g++]=y);return so(e,t,n,0===o?Io:l,s,c,u)}function Vo(e,t,n){return so(e,t,n,Oo,Gr(io),Kr(e,2,-2),0)}function Fo(e,t,n,r){return so(e,t,n,Po,Kr(e,0,r),Kr(e,r+1,-1),r)}var jo=function(e,t,n){for(var r=0,o=0;r=o,o=po(),38===r&&12===o&&(t[n]=1),!ho(o);)uo();return mo(e,ao)},No=new WeakMap,Lo=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||No.get(n))&&!r){No.set(e,!0);for(var o=[],a=function(e,t){return vo(function(e,t){var n=-1,r=44;do{switch(ho(r)){case 0:38===r&&12===po()&&(t[n]=1),e[n]+=jo(ao-1,t,n);break;case 2:e[n]+=bo(r);break;case 4:if(44===r){e[++n]=58===po()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Gr(r)}}while(r=uo());return e}(go(e),t))}(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},Bo=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function zo(e,t){switch(function(e,t){return 45^Jr(e,0)?(((t<<2^Jr(e,0))<<2^Jr(e,1))<<2^Jr(e,2))<<2^Jr(e,3):0}(e,t)){case 5103:return So+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return So+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return So+e+ko+e+Eo+e+e;case 6828:case 4268:return So+e+Eo+e+e;case 6165:return So+e+Eo+"flex-"+e+e;case 5187:return So+e+Zr(e,/(\w+).+(:[^]+)/,So+"box-$1$2"+Eo+"flex-$1$2")+e;case 5443:return So+e+Eo+"flex-item-"+Zr(e,/flex-|-self/,"")+e;case 4675:return So+e+Eo+"flex-line-pack"+Zr(e,/align-content|flex-|-self/,"")+e;case 5548:return So+e+Eo+Zr(e,"shrink","negative")+e;case 5292:return So+e+Eo+Zr(e,"basis","preferred-size")+e;case 6060:return So+"box-"+Zr(e,"-grow","")+So+e+Eo+Zr(e,"grow","positive")+e;case 4554:return So+Zr(e,/([^-])(transform)/g,"$1"+So+"$2")+e;case 6187:return Zr(Zr(Zr(e,/(zoom-|grab)/,So+"$1"),/(image-set)/,So+"$1"),e,"")+e;case 5495:case 3959:return Zr(e,/(image-set\([^]*)/,So+"$1$`$1");case 4968:return Zr(Zr(e,/(.+:)(flex-)?(.*)/,So+"box-pack:$3"+Eo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+So+e+e;case 4095:case 3583:case 4068:case 2532:return Zr(e,/(.+)-inline(.+)/,So+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qr(e)-1-t>6)switch(Jr(e,t+1)){case 109:if(45!==Jr(e,t+4))break;case 102:return Zr(e,/(.+:)(.+)-([^]+)/,"$1"+So+"$2-$3$1"+ko+(108==Jr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Xr(e,"stretch")?zo(Zr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Jr(e,t+1))break;case 6444:switch(Jr(e,Qr(e)-3-(~Xr(e,"!important")&&10))){case 107:return Zr(e,":",":"+So)+e;case 101:return Zr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+So+(45===Jr(e,14)?"inline-":"")+"box$3$1"+So+"$2$3$1"+Eo+"$2box$3")+e}break;case 5936:switch(Jr(e,t+11)){case 114:return So+e+Eo+Zr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return So+e+Eo+Zr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return So+e+Eo+Zr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return So+e+Eo+e+e}return e}var Ho=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Po:e.return=zo(e.value,e.length);break;case Mo:return $o([co(e,{value:Zr(e.value,"@","@"+So)})],r);case Io:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return $o([co(e,{props:[Zr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return $o([co(e,{props:[Zr(t,/:(plac\w+)/,":"+So+"input-$1")]}),co(e,{props:[Zr(t,/:(plac\w+)/,":-moz-$1")]}),co(e,{props:[Zr(t,/:(plac\w+)/,Eo+"input-$1")]})],r)}return""}))}}],Uo=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||Ho,i={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)}));var s,c,u,p,d=[Ro,(p=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],f=(c=[Lo,Bo].concat(a,d),u=eo(c),function(e,t,n,r){for(var o="",a=0;a<u;a++)o+=c[a](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,$o(Ao(e?e+"{"+t.styles+"}":t.styles),f),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new Ur({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return m.sheet.hydrate(l),m},Wo=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Go={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Yo(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var qo=/[A-Z]|^ms/g,Zo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xo=function(e){return 45===e.charCodeAt(1)},Jo=function(e){return null!=e&&"boolean"!=typeof e},Ko=Yo((function(e){return Xo(e)?e:e.replace(qo,"-$&").toLowerCase()})),Qo=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Zo,(function(e,t,n){return ta={name:t,styles:n,next:ta},t}))}return 1===Go[e]||Xo(e)||"number"!=typeof t||0===t?t:t+"px"};function ea(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ta={name:n.name,styles:n.styles,next:ta},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ta={name:r.name,styles:r.styles,next:ta},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ea(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":Jo(i)&&(r+=Ko(a)+":"+Qo(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=ea(e,t,i);switch(a){case"animation":case"animationName":r+=Ko(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)Jo(i[s])&&(r+=Ko(a)+":"+Qo(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=ta,a=n(e);return ta=o,ea(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var ta,na=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ra=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ta=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=ea(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=ea(n,t,e[i]),r&&(o+=a[i]);na.lastIndex=0;for(var l,s="";null!==(l=na.exec(o));)s+="-"+l[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:c,styles:o,next:ta}},oa=!!v.useInsertionEffect&&v.useInsertionEffect,aa=oa||function(e){return e()},ia=(oa||v.useLayoutEffect,{}.hasOwnProperty),la=v.createContext("undefined"!=typeof HTMLElement?Uo({key:"css"}):null);la.Provider;var sa=function(e){return(0,v.forwardRef)((function(t,n){var r=(0,v.useContext)(la);return e(t,r,n)}))},ca=v.createContext({}),ua="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pa=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Wo(t,n,r),aa((function(){return function(e,t,n){Wo(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},da=sa((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[ua],a=[r],i="";"string"==typeof e.className?i=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var l=ra(a,void 0,v.useContext(ca));i+=t.key+"-"+l.name;var s={};for(var c in e)ia.call(e,c)&&"css"!==c&&c!==ua&&(s[c]=e[c]);return s.ref=n,s.className=i,v.createElement(v.Fragment,null,v.createElement(pa,{cache:t,serialized:l,isStringTag:"string"==typeof o}),v.createElement(o,s))})),fa=da,ma=(n(4146),function(e,t){var n=arguments;if(null==t||!ia.call(t,"css"))return v.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=fa,o[1]=function(e,t){var n={};for(var r in t)ia.call(t,r)&&(n[r]=t[r]);return n[ua]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return v.createElement.apply(null,o)});function ha(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ra(t)}const ga=window.ReactDOM,va=Math.min,ba=Math.max,ya=Math.round,wa=Math.floor,_a=e=>({x:e,y:e});function xa(e){return ka(e)?(e.nodeName||"").toLowerCase():"#document"}function Ca(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ea(e){var t;return null==(t=(ka(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ka(e){return e instanceof Node||e instanceof Ca(e).Node}function Sa(e){return e instanceof Element||e instanceof Ca(e).Element}function Oa(e){return e instanceof HTMLElement||e instanceof Ca(e).HTMLElement}function Ia(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Ca(e).ShadowRoot)}function Pa(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ma(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ma(e){return Ca(e).getComputedStyle(e)}function $a(e){const t=function(e){if("html"===xa(e))return e;const t=e.assignedSlot||e.parentNode||Ia(e)&&e.host||Ea(e);return Ia(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(xa(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Oa(t)&&Pa(t)?t:$a(t)}function Ra(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=$a(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Ca(o);return a?t.concat(i,i.visualViewport||[],Pa(o)?o:[],i.frameElement&&n?Ra(i.frameElement):[]):t.concat(o,Ra(o,[],n))}function Aa(e){return Sa(e)?e:e.contextElement}function Ta(e){const t=Aa(e);if(!Oa(t))return _a(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=function(e){const t=Ma(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Oa(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=ya(n)!==a||ya(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}(t);let i=(a?ya(n.width):n.width)/r,l=(a?ya(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const Da=_a(0);function Va(e){const t=Ca(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Da}function Fa(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Aa(e);let i=_a(1);t&&(r?Sa(r)&&(i=Ta(r)):i=Ta(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ca(e))&&t}(a,n,r)?Va(a):_a(0);let s=(o.left+l.x)/i.x,c=(o.top+l.y)/i.y,u=o.width/i.x,p=o.height/i.y;if(a){const e=Ca(a),t=r&&Sa(r)?Ca(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Ta(o),t=o.getBoundingClientRect(),r=Ma(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,p*=e.y,s+=a,c+=i,n=Ca(o),o=n.frameElement}}return d={width:u,height:p,x:s,y:c},{...d,top:d.y,left:d.x,right:d.x+d.width,bottom:d.y+d.height};var d}const ja=v.useLayoutEffect;var Na=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],La=function(){};function Ba(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function za(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(Ba(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Ha=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Ir(e)&&null!==e?[e]:[];var t},Ua=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Rr({},Vr(e,Na))},Wa=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),i)}};function Ga(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ya(e){return Ga(e)?window.pageYOffset:e.scrollTop}function qa(e,t){Ga(e)?window.scrollTo(0,t):e.scrollTop=t}function Za(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:La,o=Ya(e),a=t-o,i=0;!function t(){var l,s=(l=i+=10,a*((l=l/n-1)*l*l+1)+o);qa(e,s),i<n?window.requestAnimationFrame(t):r(e)}()}function Xa(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?qa(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&qa(e,Math.max(t.offsetTop-o,0))}function Ja(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Ka=!1,Qa={get passive(){return Ka=!0}},ei="undefined"!=typeof window?window:{};ei.addEventListener&&ei.removeEventListener&&(ei.addEventListener("p",La,Qa),ei.removeEventListener("p",La,!1));var ti=Ka;function ni(e){return null!=e}function ri(e,t,n){return e?t:n}var oi=["children","innerProps"],ai=["children","innerProps"];var ii,li,si,ci=function(e){return"auto"===e?"bottom":e},ui=(0,v.createContext)(null),pi=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,i=e.menuShouldScrollIntoView,l=e.theme,s=((0,v.useContext)(ui)||{}).setPortalPlacement,c=(0,v.useRef)(null),u=Dr((0,v.useState)(r),2),p=u[0],d=u[1],f=Dr((0,v.useState)(null),2),m=f[0],h=f[1],g=l.spacing.controlHeight;return ja((function(){var e=c.current;if(e){var t="fixed"===a,l=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,l=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,p=s.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,m=d.height,h=d.top,g=n.offsetParent.getBoundingClientRect().top,v=i||Ga(u=s)?window.innerHeight:u.clientHeight,b=Ya(s),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),_=g-w,x=v-h,C=_+b,E=p-b-h,k=f-v+b+y,S=b+h-w,O=160;switch(o){case"auto":case"bottom":if(x>=m)return{placement:"bottom",maxHeight:t};if(E>=m&&!i)return a&&Za(s,k,O),{placement:"bottom",maxHeight:t};if(!i&&E>=r||i&&x>=r)return a&&Za(s,k,O),{placement:"bottom",maxHeight:i?x-y:E-y};if("auto"===o||i){var I=t,P=i?_:C;return P>=r&&(I=Math.min(P-y-l,t)),{placement:"top",maxHeight:I}}if("bottom"===o)return a&&qa(s,k),{placement:"bottom",maxHeight:t};break;case"top":if(_>=m)return{placement:"top",maxHeight:t};if(C>=m&&!i)return a&&Za(s,S,O),{placement:"top",maxHeight:t};if(!i&&C>=r||i&&_>=r){var M=t;return(!i&&C>=r||i&&_>=r)&&(M=i?_-w:C-w),a&&Za(s,S,O),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:i&&!t,isFixedPosition:t,controlHeight:g});d(l.maxHeight),h(l.placement),null==s||s(l.placement)}}),[r,o,a,i,n,s,g]),t({ref:c,placerProps:Rr(Rr({},e),{},{placement:m||ci(o),maxHeight:p})})},di=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Rr({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},fi=di,mi=di,hi=["size"],gi=["innerProps","isRtl","size"],vi={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},bi=function(e){var t=e.size,n=Vr(e,hi);return ma("svg",jr({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:vi},n))},yi=function(e){return ma(bi,jr({size:20},e),ma("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},wi=function(e){return ma(bi,jr({size:20},e),ma("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},_i=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Rr({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},xi=_i,Ci=_i,Ei=function(){var e=ha.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(ii||(li=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],si||(si=li.slice(0)),ii=Object.freeze(Object.defineProperties(li,{raw:{value:Object.freeze(si)}})))),ki=function(e){var t=e.delay,n=e.offset;return ma("span",{css:ha({animation:"".concat(Ei," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Si=["data"],Oi=["innerRef","isDisabled","isHidden","inputClassName"],Ii={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Pi={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Rr({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ii)},Mi=function(e){return Rr({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ii)},$i=function(e){var t=e.children,n=e.innerProps;return ma("div",n,t)},Ri={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return ma("div",jr({},Wa(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||ma(yi,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return ma("div",jr({ref:o},Wa(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return ma("div",jr({},Wa(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||ma(wi,null))},DownChevron:wi,CrossIcon:yi,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,l=e.innerProps,s=e.label,c=e.theme,u=e.selectProps;return ma("div",jr({},Wa(e,"group",{group:!0}),l),ma(a,jr({},i,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),s),ma("div",null,t))},GroupHeading:function(e){var t=Ua(e);t.data;var n=Vr(t,Si);return ma("div",jr({},Wa(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return ma("div",jr({},Wa(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ma("span",jr({},t,Wa(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Ua(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,l=r.inputClassName,s=Vr(r,Oi);return ma("div",jr({},Wa(e,"input",{"input-container":!0}),{"data-value":n||""}),ma("input",jr({className:t({input:!0},l),ref:o,style:Mi(i),disabled:a},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=Vr(e,gi);return ma("div",jr({},Wa(Rr(Rr({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ma(ki,{delay:0,offset:n}),ma(ki,{delay:160,offset:!0}),ma(ki,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return ma("div",jr({},Wa(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return ma("div",jr({},Wa(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,a=e.menuPlacement,i=e.menuPosition,l=(0,v.useRef)(null),s=(0,v.useRef)(null),c=Dr((0,v.useState)(ci(a)),2),u=c[0],p=c[1],d=(0,v.useMemo)((function(){return{setPortalPlacement:p}}),[]),f=Dr((0,v.useState)(null),2),m=f[0],h=f[1],g=(0,v.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===i?0:window.pageYOffset,n=e[u]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||h({offset:n,rect:e})}}),[r,i,u,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);ja((function(){g()}),[g]);var b=(0,v.useCallback)((function(){"function"==typeof s.current&&(s.current(),s.current=null),r&&l.current&&(s.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Aa(e),u=o||a?[...c?Ra(c):[],...Ra(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const p=c&&l?function(e,t){let n,r=null;const o=Ea(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();const{left:c,top:u,width:p,height:d}=e.getBoundingClientRect();if(l||t(),!p||!d)return;const f={rootMargin:-wa(u)+"px "+-wa(o.clientWidth-(c+p))+"px "+-wa(o.clientHeight-(u+d))+"px "+-wa(c)+"px",threshold:ba(0,va(1,s))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(h,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,f)}r.observe(e)}(!0),a}(c,n):null;let d,f=-1,m=null;i&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!s&&m.observe(c),m.observe(t));let h=s?Fa(e):null;return s&&function t(){const r=Fa(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==p||p(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(d)}}(r,l.current,g,{elementResize:"ResizeObserver"in window}))}),[r,g]);ja((function(){b()}),[b]);var y=(0,v.useCallback)((function(e){l.current=e,b()}),[b]);if(!t&&"fixed"!==i||!m)return null;var w=ma("div",jr({ref:y},Wa(Rr(Rr({},e),{},{offset:m.offset,position:i,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),n);return ma(ui.Provider,{value:d},t?(0,ga.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Vr(e,ai);return ma("div",jr({},Wa(Rr(Rr({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=Vr(e,oi);return ma("div",jr({},Wa(Rr(Rr({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,l=e.selectProps,s=n.Container,c=n.Label,u=n.Remove;return ma(s,{data:r,innerProps:Rr(Rr({},Wa(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},ma(c,{data:r,innerProps:Rr({},Wa(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),ma(u,{data:r,innerProps:Rr(Rr({},Wa(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:l}))},MultiValueContainer:$i,MultiValueLabel:$i,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ma("div",jr({role:"button"},n),t||ma(yi,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,i=e.innerProps;return ma("div",jr({},Wa(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},i),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return ma("div",jr({},Wa(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return ma("div",jr({},Wa(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return ma("div",jr({},Wa(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return ma("div",jr({},Wa(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Ai=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ti(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||Ai(r)&&Ai(o)))return!1;var r,o;return!0}for(var Di={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Vi=function(e){return ma("span",jr({css:Di},e))},Fi={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,l=e.isDisabled,s=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(u(i,n),".");if("menu"===t&&c){var p=l?" disabled":"",d="".concat(s?" selected":"").concat(p);return"".concat(a).concat(d,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},ji=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,l=e.selectProps,s=e.id,c=e.isAppleDevice,u=l.ariaLiveMessages,p=l.getOptionLabel,d=l.inputValue,f=l.isMulti,m=l.isOptionDisabled,h=l.isSearchable,g=l.menuIsOpen,b=l.options,y=l.screenReaderStatus,w=l.tabSelectsValue,_=l.isLoading,x=l["aria-label"],C=l["aria-live"],E=(0,v.useMemo)((function(){return Rr(Rr({},Fi),u||{})}),[u]),k=(0,v.useMemo)((function(){var e,n="";if(t&&E.onChange){var r=t.option,o=t.options,a=t.removedValue,l=t.removedValues,s=t.value,c=a||r||(e=s,Array.isArray(e)?null:e),u=c?p(c):"",d=o||l||void 0,f=d?d.map(p):[],h=Rr({isDisabled:c&&m(c,i),label:u,labels:f},t);n=E.onChange(h)}return n}),[t,E,m,i,p]),S=(0,v.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&E.onFocus){var l={focused:t,label:p(t),isDisabled:m(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i,isAppleDevice:c};e=E.onFocus(l)}return e}),[n,r,p,m,E,o,i,c]),O=(0,v.useMemo)((function(){var e="";if(g&&b.length&&!_&&E.onFilter){var t=y({count:o.length});e=E.onFilter({inputValue:d,resultsMessage:t})}return e}),[o,d,g,E,b,y,_]),I="initial-input-focus"===(null==t?void 0:t.action),P=(0,v.useMemo)((function(){var e="";if(E.guidance){var t=r?"value":g?"menu":"input";e=E.guidance({"aria-label":x,context:t,isDisabled:n&&m(n,i),isMulti:f,isSearchable:h,tabSelectsValue:w,isInitialFocus:I})}return e}),[x,n,r,f,m,h,g,E,i,w,I]),M=ma(v.Fragment,null,ma("span",{id:"aria-selection"},k),ma("span",{id:"aria-focused"},S),ma("span",{id:"aria-results"},O),ma("span",{id:"aria-guidance"},P));return ma(v.Fragment,null,ma(Vi,{id:s},I&&M),ma(Vi,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!I&&M))},Ni=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Li=new RegExp("["+Ni.map((function(e){return e.letters})).join("")+"]","g"),Bi={},zi=0;zi<Ni.length;zi++)for(var Hi=Ni[zi],Ui=0;Ui<Hi.letters.length;Ui++)Bi[Hi.letters[Ui]]=Hi.base;var Wi=function(e){return e.replace(Li,(function(e){return Bi[e]}))},Gi=function(e,t){void 0===t&&(t=Ti);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(Wi),Yi=function(e){return e.replace(/^\s+|\s+$/g,"")},qi=function(e){return"".concat(e.label," ").concat(e.value)},Zi=["innerRef"];function Xi(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=Dr(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Dr(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Vr(e,Zi),"onExited","in","enter","exit","appear");return ma("input",jr({ref:t},n,{css:ha({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Ji=["boxSizing","height","overflow","paddingRight","position"],Ki={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Qi(e){e.preventDefault()}function el(e){e.stopPropagation()}function tl(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function nl(){return"ontouchstart"in window||navigator.maxTouchPoints}var rl=!("undefined"==typeof window||!window.document||!window.document.createElement),ol=0,al={capture:!1,passive:!1},il=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},ll={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function sl(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,v.useRef)(!1),l=(0,v.useRef)(!1),s=(0,v.useRef)(0),c=(0,v.useRef)(null),u=(0,v.useCallback)((function(e,t){if(null!==c.current){var s=c.current,u=s.scrollTop,p=s.scrollHeight,d=s.clientHeight,f=c.current,m=t>0,h=p-d-u,g=!1;h>t&&i.current&&(r&&r(e),i.current=!1),m&&l.current&&(a&&a(e),l.current=!1),m&&t>h?(n&&!i.current&&n(e),f.scrollTop=p,g=!0,i.current=!0):!m&&-t>u&&(o&&!l.current&&o(e),f.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),p=(0,v.useCallback)((function(e){u(e,e.deltaY)}),[u]),d=(0,v.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),f=(0,v.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;u(e,t)}),[u]),m=(0,v.useCallback)((function(e){if(e){var t=!!ti&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",f,t)}}),[f,d,p]),h=(0,v.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",f,!1))}),[f,d,p]);return(0,v.useEffect)((function(){if(t){var e=c.current;return m(e),function(){h(e)}}}),[t,m,h]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,v.useRef)({}),a=(0,v.useRef)(null),i=(0,v.useCallback)((function(e){if(rl){var t=document.body,n=t&&t.style;if(r&&Ji.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&ol<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,l=window.innerWidth-i+a||0;Object.keys(Ki).forEach((function(e){var t=Ki[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&nl()&&(t.addEventListener("touchmove",Qi,al),e&&(e.addEventListener("touchstart",tl,al),e.addEventListener("touchmove",el,al))),ol+=1}}),[r]),l=(0,v.useCallback)((function(e){if(rl){var t=document.body,n=t&&t.style;ol=Math.max(ol-1,0),r&&ol<1&&Ji.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&nl()&&(t.removeEventListener("touchmove",Qi,al),e&&(e.removeEventListener("touchstart",tl,al),e.removeEventListener("touchmove",el,al)))}}),[r]);return(0,v.useEffect)((function(){if(t){var e=a.current;return i(e),function(){l(e)}}}),[t,i,l]),function(e){a.current=e}}({isEnabled:n});return ma(v.Fragment,null,n&&ma("div",{onClick:il,css:ll}),t((function(e){o(e),a(e)})))}var cl={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ul=function(e){var t=e.name,n=e.onFocus;return ma("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:cl,value:"",onChange:function(){}})};function pl(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function dl(){return pl(/^Mac/i)}var fl={clearIndicator:Ci,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius;return Rr({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:xi,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Rr({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return Rr({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return Rr(Rr({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Pi),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return Rr({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:mi,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,l=o.colors;return Rr((Mr(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Mr(n,"position","absolute"),Mr(n,"width","100%"),Mr(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Rr({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return Rr({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return Rr({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return Rr({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:fi,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,l=a.colors;return Rr({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Rr({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return Rr({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return Rr({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},ml={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},hl={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ja(),captureMenuScroll:!Ja(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Rr({ignoreCase:!0,ignoreAccents:!0,stringify:qi,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,l=n.matchFrom,s=i?Yi(t):t,c=i?Yi(a(e)):a(e);return r&&(s=s.toLowerCase(),c=c.toLowerCase()),o&&(s=Gi(s),c=Wi(c)),"start"===l?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function gl(e,t,n,r){return{type:"option",data:t,isDisabled:El(e,t,n),isSelected:kl(e,t,n),label:xl(e,t),value:Cl(e,t),index:r}}function vl(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return gl(e,n,t,r)})).filter((function(t){return wl(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=gl(e,n,t,r);return wl(e,a)?a:void 0})).filter(ni)}function bl(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Hr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function yl(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Hr(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function wl(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,l=t.value;return(!Ol(e)||!a)&&Sl(e,{label:i,value:l,data:o},r)}var _l=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},xl=function(e,t){return e.getOptionLabel(t)},Cl=function(e,t){return e.getOptionValue(t)};function El(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function kl(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Cl(e,t);return n.some((function(t){return Cl(e,t)===r}))}function Sl(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Ol=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Il=1,Pl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lr(e,t)}(l,e);var t,n,r,o,a,i=(t=l,n=zr(),function(){var e,r=Br(t);if(n){var o=Br(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ir(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=dl()||pl(/^iPhone/i)||pl(/^iPad/i)||dl()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,l=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:l}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,l=o&&t.isOptionSelected(e,i),s=t.isOptionDisabled(e,i);if(l){var c=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:a});o?t.setValue([].concat(Hr(i),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=ri(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(ri(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=ri(e,o,o[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return _l(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return yl(vl(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return za.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return xl(t.props,e)},t.getOptionValue=function(e){return Cl(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=fl[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Rr(Rr({},Ri),e.components);var e},t.buildCategorizedOptions=function(){return vl(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return bl(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Rr({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Ga(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Ol(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,l=n.isClearable,s=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,p=n.tabSelectsValue,d=n.openMenuOnFocus,f=t.state,m=f.focusedOption,h=f.focusedValue,g=f.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)t.removeValue(h);else{if(!o)return;r?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!p||!m||d&&t.isOptionSelected(m,g))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):l&&a&&t.clearValue();break;case" ":if(i)return;if(!c){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Il),t.state.selectValue=Ha(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),o=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[o],t.state.focusedOptionId=_l(n,r[o])}return t}return r=l,o=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Xa(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Xa(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var l=a.indexOf(r[0]);l>-1&&(i=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(a[i])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ml):Rr(Rr({},ml),this.props.theme):ml}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,l=this.props,s=l.isMulti,c=l.isRtl,u=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:u,selectOption:a,selectProps:l,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return El(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return kl(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Sl(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,l=e.menuIsOpen,s=e.required,c=this.getComponents().Input,u=this.state,p=u.inputIsHidden,d=u.ariaSelection,f=this.commonProps,m=r||this.getElementId("input"),h=Rr(Rr(Rr({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==d?void 0:d.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?v.createElement(c,jr({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},h)):v.createElement(Xi,jr({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:La,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,l=t.Placeholder,s=this.commonProps,c=this.props,u=c.controlShouldRenderValue,p=c.isDisabled,d=c.isMulti,f=c.inputValue,m=c.placeholder,h=this.state,g=h.selectValue,b=h.focusedValue,y=h.isFocused;if(!this.hasValue()||!u)return f?null:v.createElement(l,jr({},s,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(d)return g.map((function(t,i){var l=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return v.createElement(n,jr({},s,{components:{Container:r,Label:o,Remove:a},isFocused:l,isDisabled:p,key:c,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(f)return null;var w=g[0];return v.createElement(i,jr({},s,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(e,jr({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?v.createElement(e,jr({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return v.createElement(n,jr({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(e,jr({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,l=t.LoadingMessage,s=t.NoOptionsMessage,c=t.Option,u=this.commonProps,p=this.state.focusedOption,d=this.props,f=d.captureMenuScroll,m=d.inputValue,h=d.isLoading,g=d.loadingMessage,b=d.minMenuHeight,y=d.maxMenuHeight,w=d.menuIsOpen,_=d.menuPlacement,x=d.menuPosition,C=d.menuPortalTarget,E=d.menuShouldBlockScroll,k=d.menuShouldScrollIntoView,S=d.noOptionsMessage,O=d.onMenuScrollToTop,I=d.onMenuScrollToBottom;if(!w)return null;var P,M=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,l=t.label,s=t.value,d=p===o,f=a?void 0:function(){return e.onOptionHover(o)},m=a?void 0:function(){return e.selectOption(o)},h="".concat(e.getElementId("option"),"-").concat(n),g={id:h,onClick:m,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:i};return v.createElement(c,jr({},u,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:h,label:l,type:r,value:s,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,l="".concat(e.getElementId("group"),"-").concat(i),s="".concat(l,"-heading");return v.createElement(n,jr({},u,{key:l,data:o,options:a,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return M(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return M(t,"".concat(t.index))}));else if(h){var $=g({inputValue:m});if(null===$)return null;P=v.createElement(l,u,$)}else{var R=S({inputValue:m});if(null===R)return null;P=v.createElement(s,u,R)}var A={minMenuHeight:b,maxMenuHeight:y,menuPlacement:_,menuPosition:x,menuShouldScrollIntoView:k},T=v.createElement(pi,jr({},u,A),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,l=r.maxHeight;return v.createElement(o,jr({},u,A,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:h,placement:i}),v.createElement(sl,{captureEnabled:f,onTopArrive:O,onBottomArrive:I,lockEnabled:E},(function(t){return v.createElement(a,jr({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:h,maxHeight:l,focusedOption:p}),P)})))}));return C||"fixed"===x?v.createElement(i,jr({},u,{appendTo:C,controlElement:this.controlRef,menuPlacement:_,menuPosition:x}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,l=this.state.selectValue;if(i&&!this.hasValue()&&!r)return v.createElement(ul,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var s=l.map((function(t){return e.getOptionValue(t)})).join(n);return v.createElement("input",{name:a,type:"hidden",value:s})}var c=l.length>0?l.map((function(t,n){return v.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):v.createElement("input",{name:a,type:"hidden",value:""});return v.createElement("div",null,c)}var u=l[0]?this.getOptionValue(l[0]):"";return v.createElement("input",{name:a,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,l=this.getFocusableOptions();return v.createElement(ji,jr({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,l=a.id,s=a.isDisabled,c=a.menuIsOpen,u=this.state.isFocused,p=this.commonProps=this.getCommonProps();return v.createElement(r,jr({},p,{className:i,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:u}),this.renderLiveRegion(),v.createElement(t,jr({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:u,menuIsOpen:c}),v.createElement(o,jr({},p,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),v.createElement(n,jr({},p,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],a=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,l=t.prevWasFocused,s=t.instancePrefix,c=e.options,u=e.value,p=e.menuIsOpen,d=e.inputValue,f=e.isMulti,m=Ha(u),h={};if(n&&(u!==n.value||c!==n.options||p!==n.menuIsOpen||d!==n.inputValue)){var g=p?function(e,t){return bl(vl(e,t))}(e,m):[],v=p?yl(vl(e,m),"".concat(s,"-option")):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,m):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);h={selectValue:m,focusedOption:y,focusedOptionId:_l(v,y),focusableOptionsWithIds:v,focusedValue:b,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},_=a,x=i&&l;return i&&!x&&(_={value:ri(f,m,m[0]||null),options:m,action:"initial-input-focus"},x=!l),"initial-input-focus"===(null==a?void 0:a.action)&&(_=null),Rr(Rr(Rr({},h),w),{},{prevProps:e,ariaSelection:_,prevWasFocused:x})}}],o&&Nr(r.prototype,o),a&&Nr(r,a),Object.defineProperty(r,"prototype",{writable:!1}),l}(v.Component);Pl.defaultProps=hl;var Ml=(0,v.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,l=e.inputValue,s=e.menuIsOpen,c=e.onChange,u=e.onInputChange,p=e.onMenuClose,d=e.onMenuOpen,f=e.value,m=Vr(e,Fr),h=Dr((0,v.useState)(void 0!==l?l:n),2),g=h[0],b=h[1],y=Dr((0,v.useState)(void 0!==s?s:o),2),w=y[0],_=y[1],x=Dr((0,v.useState)(void 0!==f?f:i),2),C=x[0],E=x[1],k=(0,v.useCallback)((function(e,t){"function"==typeof c&&c(e,t),E(e)}),[c]),S=(0,v.useCallback)((function(e,t){var n;"function"==typeof u&&(n=u(e,t)),b(void 0!==n?n:e)}),[u]),O=(0,v.useCallback)((function(){"function"==typeof d&&d(),_(!0)}),[d]),I=(0,v.useCallback)((function(){"function"==typeof p&&p(),_(!1)}),[p]),P=void 0!==l?l:g,M=void 0!==s?s:w,$=void 0!==f?f:C;return Rr(Rr({},m),{},{inputValue:P,menuIsOpen:M,onChange:k,onInputChange:S,onMenuClose:I,onMenuOpen:O,value:$})}(e);return v.createElement(Pl,jr({ref:t},n))})),$l=Ml;const Rl=({title:e,fontStyle:t,initialOpen:n,isMobile:r,onChange:o})=>{const{default_fontSize:a,mobile_fontSize:l,fontSize:s,fontFamily:c,fontWeight:u,isItalic:p}=t,d=[{value:"Arial, sans-serif",label:"Arial",fontFamily:"Arial, sans-serif"},{value:"Courier New, monospace",label:"Courier New",fontFamily:"Courier New, monospace"},{value:"Georgia, serif",label:"Georgia",fontFamily:"Georgia, serif"},{label:"Noto Sans JP",value:"Noto Sans JP, sans-serif",fontFamily:"Noto Sans JP, sans-serif"},{label:"Texturina",value:"Texturina, serif",fontFamily:"Texturina, serif"}],f={option:(e,t)=>({...e,fontFamily:t.data.fontFamily})};return(0,v.createElement)(y.PanelBody,{title:e,initialOpen:n},(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:e=>{e=""!=e?e:"0px";const n=r?{mobile_fontSize:e}:{default_fontSize:e},a={...t,...n};o(a)},label:r?(0,i.__)("Size(mobile)","block-collections"):(0,i.__)("Size(desk top)","block-collections"),value:r?l:a,units:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}]}),(0,v.createElement)((({label:e,value:t,onChange:n})=>(0,v.createElement)(v.Fragment,null,e&&(0,v.createElement)("label",{className:"components-base-control__label"},e),(0,v.createElement)($l,{options:d,value:d.find((e=>e.value===t)),onChange:e=>{n(e.value)},styles:f}))),{label:(0,i.__)("font family","block-collections"),value:c,onChange:e=>{const n={...t,fontFamily:e};o(n)}}),(0,v.createElement)("label",{className:"components-base-control__label"},(0,i.__)("font weight","block-collections")),(0,v.createElement)(y.PanelRow,{className:"itmar_weight_row"},(0,v.createElement)(y.RadioControl,{selected:u,options:[{label:"LIGHT",value:"300"},{label:"REGULAR",value:"400"},{label:"MEDIUM",value:"500"},{label:"S-BOLD",value:"600"},{label:"BOLD",value:"700"},{label:"BLACK",value:"900"}],onChange:e=>{const n={...t,fontWeight:e};o(n)}})),(0,v.createElement)("label",{className:"components-base-control__label"},(0,i.__)("Italic display","block-collections")),(0,v.createElement)(y.ToggleControl,{checked:p,onChange:e=>{const n={...t,isItalic:e};o(n)}}))},Al=(0,v.createElement)("a",{href:"https://fontawesome.com/search",target:"_blank"},"FontAwesome"),Tl=(0,v.createElement)("span",{},Al,(0,i.__)("Select the icon from and enter Unicode (the upper right four digits of the selection dialog). ","block-collections")),Dl=(0,v.createElement)("span",{},Al,(0,i.__)("Please select the first class name shown in the HTML code field of the selection dialog. ","block-collections")),Vl=[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],Fl=[{value:"Font Awesome 6 Free",label:"SOLID"},{value:"Font Awesome 6 Brands",label:"BRANDS"}],jl=({iconStyle:e,setPosition:t,onChange:n})=>{const{icon_name:r,icon_pos:o,icon_size:a,icon_color:l,icon_space:s,icon_family:c}=e;return(0,v.createElement)(v.Fragment,null,(0,v.createElement)(y.TextControl,{label:(0,i.__)("icon name","block-collections"),help:Tl,labelPosition:"top",value:r,isPressEnterToChange:!0,onChange:t=>{const r={...e,icon_name:t};n(r)}}),(0,v.createElement)(y.ComboboxControl,{label:(0,i.__)("Icon Family","block-collections"),help:Dl,options:Fl,value:c||"Font Awesome 6 Free",onChange:t=>{const r={...e,icon_family:t};n(r)}}),(0,v.createElement)(y.PanelRow,{className:"sizing_row"},(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:t=>{const r={...e,icon_size:t};n(r)},label:(0,i.__)("Size","block-collections"),value:a,units:Vl}),t&&(0,v.createElement)(y.__experimentalUnitControl,{dragDirection:"e",onChange:t=>{const r={...e,icon_space:t};n(r)},label:(0,i.__)("spacing to end","block-collections"),value:s,units:Vl})),(0,v.createElement)(Y.PanelColorSettings,{title:(0,i.__)("Color settings","itmar_location"),initialOpen:!1,colorSettings:[{value:l,onChange:t=>{const r={...e,icon_color:t};n(r)},label:(0,i.__)("Icon color","itmar_location")}]}),t&&(0,v.createElement)(v.Fragment,null,(0,v.createElement)("label",{className:"components-base-control__label"},(0,i.__)("Arrangement","block-collections")),(0,v.createElement)(y.PanelRow,{className:"itmar_position_row"},(0,v.createElement)(y.RadioControl,{selected:o,options:[{label:(0,i.__)("left","block-collections"),value:"left"},{label:(0,i.__)("right","block-collections"),value:"right"}],onChange:t=>{const r={...e,icon_pos:t};n(r)}}))))},Nl=function({lazyComponent:t,...n}){return(0,v.createElement)(e.Suspense,{fallback:(0,v.createElement)("div",null,"Loading...")},(0,v.createElement)(t,{...n}))};let Ll=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");const Bl=(e,t)=>{const{startYear:n,startMonth:r,endYear:o,endMonth:a}=e,i=[];for(let e=n;e<=o;e++)if(t){const t=e===o?a:12;for(let o=e===n?r:1;o<=t;o++){const t={id:Ll(5),value:`${e}/${o.toString().padStart(2,"0")}`,label:`${e}/${o.toString().padStart(2,"0")}`,classname:"filter_date"};i.push(t)}}else{const t={id:Ll(5),value:`${e}`,label:`${e}`,classname:"filter_date"};i.push(t)}return i},zl=(e,t=null)=>{const[n,r]=e.split("/").map(Number),o=new Date(n,r-1,1),a=new Date(n,r,0).getDate(),i=[];for(let e=1;e<=a;e++){o.setDate(e);const n=t?.find((t=>parseInt(t.date.slice(-2),10)===e)),r=n?{date:e,weekday:o.getDay(),holiday:n.name}:{date:e,weekday:o.getDay()};i.push(r)}return i},Hl=({startYear:e,endYear:t,dateSpan:n,isMonth:r,onChange:o})=>(0,v.createElement)(y.PanelBody,{title:(0,i.__)("Period Setting","block-collections"),initialOpen:!0,className:"form_setteing_ctrl"},(0,v.createElement)("label",null,(0,i.__)("Start of period","block-collections")),(0,v.createElement)(y.PanelRow,{className:"itmar_date_span"},(0,v.createElement)(y.__experimentalNumberControl,{label:(0,i.__)("Year","block-collections"),labelPosition:"side",max:t,min:e,onChange:e=>{const t={dateSpan:{...n,startYear:Number(e)}};o(t)},value:n.startYear}),r&&(0,v.createElement)(y.__experimentalNumberControl,{label:(0,i.__)("Month","block-collections"),labelPosition:"side",max:12,min:1,onChange:e=>{const t={dateSpan:{...n,startMonth:Number(e)}};o(t)},value:n.startMonth})),(0,v.createElement)("label",null,(0,i.__)("End of period","block-collections")),(0,v.createElement)(y.PanelRow,{className:"itmar_date_span"},(0,v.createElement)(y.__experimentalNumberControl,{label:(0,i.__)("Year","block-collections"),labelPosition:"side",max:t,min:e,onChange:e=>{const t={dateSpan:{...n,endYear:Number(e)}};o(t)},value:n.endYear}),(0,v.createElement)(y.__experimentalNumberControl,{label:(0,i.__)("Month","block-collections"),labelPosition:"side",max:12,min:1,onChange:e=>{const t={dateSpan:{...n,endMonth:Number(e)}};o(t)},value:n.endMonth}))),Ul=e=>{if(!e)return null;const t=e.split("/"),n=parseInt(t[0],10),r=t.length>1?parseInt(t[1],10):null,o=t.length>2?parseInt(t[2],10):null;let a,i;return o?(a=new Date(n,r-1,o,0,0,0,-1),i=new Date(n,r-1,o,23,59,59,1e3)):r?(a=new Date(n,r-1,1,0,0,0,-1),i=new Date(n,r,1,0,0,0,0)):(a=new Date(n,0,1,0,0,0,-1),i=new Date(n+1,0,1,0,0,0,0)),{after:a.toISOString(),before:i.toISOString()}},Wl=()=>{const e=new Date;return`${e.getFullYear()}/${String(e.getMonth()+1).padStart(2,"0")}`},Gl=()=>(new Date).getFullYear(),Yl=()=>(new Date).getMonth()+1,ql=["sun","mon","tue","wed","thu","fri","sat"],Zl=(e,t,n)=>{let r=[],o=1;const a=n?e-1<0?6:e-1:e;let i,l=[];for(let e=0;e<7;e++)i=n?e+1:e,i>6&&(i=0),l.push(ql[i]);r.push(l.join(" "));for(let e=0;e<6;e++){let n=[];for(let r=0;r<7;r++)0===e&&r<a||o>t?n.push(`empty${e}`):(n.push(`day${o}`),o++);5==e&&(n[5]="day_clear",n[6]="day_clear"),r.push(n.join(" "))}return r.map((e=>`"${e}"`)).join("\n")},Xl=async(e,t)=>{try{return await new Promise(((e,t)=>{if(window.gapi)return void e();const n=document.createElement("script");n.src="https://apis.google.com/js/api.js",n.async=!0,n.defer=!0,n.onload=()=>{const t=()=>{window.gapi?e():setTimeout(t,20)};t()},n.onerror=()=>t(new Error("Failed to load Google API script")),document.querySelector('script[src="https://apis.google.com/js/api.js"]')||document.body.appendChild(n)})),await(async()=>{if(!window.gapi)throw new Error("Google API not loaded");window.gapi.client||await new Promise((e=>window.gapi.load("client",e))),window.gapi.client.calendar||await window.gapi.client.init({apiKey:e,discoveryDocs:["https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest"]})})(),await(async()=>{const e=Ul(t);return(await window.gapi.client.calendar.events.list({calendarId:"japanese__ja@holiday.calendar.google.com",timeMin:e.after,timeMax:e.before,singleEvents:!0,orderBy:"startTime"})).result.items.map((e=>({date:e.start.date,name:e.summary})))})()}catch(e){throw console.error("エラーが発生しました:",e),e}},Jl=e=>e.reduce(((e,t)=>(e.push(t),t.innerBlocks&&t.innerBlocks.length>0&&e.push(...Jl(t.innerBlocks)),e)),[]);function Kl({postType:t,blockName:n,newAttributes:r,onProcessEnd:o,onProcessCancel:a}){const[l,s]=(0,e.useState)(0),c=(0,e.useRef)(!1);return(0,v.createElement)(v.Fragment,null,(0,v.createElement)(y.ProgressBar,{value:l,className:"markdown_copy_progress"}),(0,v.createElement)("p",null,l,"%"),(0,v.createElement)("div",{style:{width:"fit-content",margin:"20px auto 0"}},(0,v.createElement)(y.Button,{variant:"primary",onClick:async()=>{try{const e=`/wp/v2/${t}?per_page=100&context=edit`,a=await x()({path:e});let i=a.length,l=0;c.current=!1;for(const e of a){if(!e.content||!e.content.raw){console.warn(`Post ID ${e.id} does not contain raw content.`);continue}if(c.current)return void console.log("処理がキャンセルされました。");const o=e.content.raw,a=parse(o).map((e=>(e.name===n&&(e.attributes={...e.attributes,...r}),e))),u=serialize(a),p=await fetch(`/wp-json/wp/v2/${t}/${e.id}`,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify({content:u})});p.ok||console.error(`Failed to update post ID ${e.id}: ${p.statusText}`),l++,s(Math.round(l/i*100))}o()}catch(e){console.error("Error updating block attributes:",e)}},disabled:l>0&&l<100},(0,i.__)("Start Process","markdown-block")),(0,v.createElement)(y.Button,{variant:"secondary",onClick:()=>{0===l||c.current?o():(c.current=!0,a())},style:{marginLeft:"10px"}},(0,i.__)("Cancel","markdown-block"))))}})(),module.exports=r})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itmar-block-packages",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "We have put together a package of common React components used for WordPress custom blocks.",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -5,13 +5,13 @@ import apiFetch from "@wordpress/api-fetch";
5
5
 
6
6
  //特定の投稿タイプの投稿に含まれる本ブロックの属性を書き換える
7
7
 
8
- export default UpdateAllPostsBlockAttributes = ({
8
+ export default function UpdateAllPostsBlockAttributes({
9
9
  postType,
10
10
  blockName,
11
11
  newAttributes,
12
12
  onProcessEnd,
13
13
  onProcessCancel,
14
- }) => {
14
+ }) {
15
15
  const [progress, setProgress] = useState(0);
16
16
  // stateではなくrefを使用してキャンセル状態を管理する
17
17
  const cancelRef = useRef(false);
@@ -114,4 +114,4 @@ export default UpdateAllPostsBlockAttributes = ({
114
114
  </div>
115
115
  </>
116
116
  );
117
- };
117
+ }