1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="003744a7-cf42-f5c5-e5dc-4d1062cf35c9")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,44086,e=>{"use strict";var t=e.i(958565);e.s(["InputError",()=>t.a])},187861,e=>{"use strict";var t,n=e.i(687652);function r(){return!!("u">typeof window&&window.document&&window.document.createElement)}function o(e,t){return n=>{if(e&&e(n),!n.defaultPrevented)return t(n)}}function a(e){return"boolean"==typeof e}function i(e){return!!(e&&"[object Function]"==({}).toString.call(e))}function l(...e){return(0,n.useCallback)(t=>{for(let n of e)if(null!=n)if(i(n))n(t);else try{n.current=t}catch(e){throw Error(`Cannot assign value "${t}" to ref "${n}"`)}},e)}function u(e,t){let r=n.createContext(t);return r.displayName=e,r}function s(){}function c(){let[,e]=(0,n.useState)(Object.create(null));return(0,n.useCallback)(()=>{e(Object.create(null))},[])}var d=r()?n.useLayoutEffect:n.useEffect;function f({context:e,children:t,items:r,set:o}){let a=n.useCallback(({element:e,index:t,...n})=>e?(o(r=>{if(null!=t&&-1!==t)return h(r,{element:e,index:t,...n},t);if(0===r.length)return[{...n,element:e,index:0}];if(r.find(t=>t.element===e))return console.warn("[reach-ui]: `useDescendant` was called with an element that was already registered.\n\n
2If you are using the `@reach/descendants` package directly, make sure to only register descendants once. Registering a descendant more than once will lead to bugs in your app.\n\nIf you are using another `reach-ui` package, this is probably our bug!\n\nTo report a bug, open a new issue:\n\n https://github.com/reach/reach-ui/issues/new?assignees=&labels=&template=Bug_report.md\n\nIMPORTANT: this check will only run in the development build, so if you see this warning please be aware that your app may crash when deployed."),r.sort((e,t)=>e.element&&t.element?p(e.element,t.element)?-1:1:0).map((e,t)=>({...e,index:t}));let o=function(e,t){if(!t||!e.length)return -1;let n=e.length;for(;n--;){let r=e[n].element;if(r&&p(r,t))return n+1}return -1}(r,e);return -1===o?[...r,{...n,element:e,index:r.length}]:h(r,{...n,element:e,index:o},o)}),()=>{e&&o(t=>t.filter(t=>e!==t.element))}):s,[]);return n.createElement(e.Provider,{value:n.useMemo(()=>({descendants:r,registerDescendant:a}),[r,a])},t)}function p(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function h(e,t,n){return null!=n&&n in e?[...e.slice(0,n),t,...e.slice(n)]:[...e,t]}var m=!1,g=0,b=n["useId".toString()],v=e.i(615882),y=({children:e,type:t="reach-portal",containerRef:r})=>{let o=n.useRef(null),a=n.useRef(null),i=c();return n.useEffect(()=>{null!=r&&("object"==typeof r&&"current"in r?null==r.current&&console.warn("@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html."):console.warn("@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`."))},[r]),d(()=>{if(!o.current)return;let e=o.current.ownerDocument,n=r?.current||e.body;return a.current=e?.createElement(t),n.appendChild(a.current),i(),()=>{a.current&&n&&n.removeChild(a.current)}},[t,i,r]),a.current?(0,v.createPortal)(e,a.current):n.createElement("span",{ref:o})},w=({unstable_skipInitialRender:e,...t})=>{let[r,o]=n.useState(!1);return(n.useEffect(()=>{e&&o(!0)},[e]),e&&!r)?null:n.createElement(y,{...t})};w.displayName="Portal";var x=["bottom","height","left","right","top","width"],C=new Map,E=function e(){var n=[];C.forEach(function(e,t){var r,o,a=t.getBoundingClientRect();r=a,o=e.rect,void 0===r&&(r={}),void 0===o&&(o={}),x.some(function(e){return r[e]!==o[e]})&&(e.rect=a,n.push(e))}),n.forEach(function(e){e.callbacks.forEach(function(t){return t(e.rect)})}),t=window.requestAnimationFrame(e)};function I(e,r,o){let l,u;a(r)?l=r:(l=r?.observe??!0,u=r?.onChange),i(o)&&(u=o),n.useEffect(()=>{a(r)&&console.warn("Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")},[r]),n.useEffect(()=>{i(o)&&console.warn("Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange")},[o]);let[s,c]=n.useState(e.current),f=n.useRef(!1),p=n.useRef(!1),[h,m]=n.useState(null),g=n.useRef(u);return d(()=>{g.current=u,e.current!==s&&c(e.current)}),d(()=>{s&&!f.current&&(f.current=!0,m(s.getBoundingClientRect()))},[s]),d(()=>{var n,r;if(!l)return;let o=s;if(p.current||(p.current=!0,o=e.current),!o)return void console.warn("You need to place the ref");let a=(n=o,r=e=>{g.current?.(e),m(e)},{observe:function(){var e=0===C.size;C.has(n)?C.get(n).callbacks.push(r):C.set(n,{rect:void 0,hasRectChanged:!1,callbacks:[r]}),e&&E()},unobserve:function(){var e=C.get(n);if(e){var o=e.callbacks.indexOf(r);o>=0&&e.callbacks.splice(o,1),e.callbacks.length||C.delete(n),C.size||cancelAnimationFrame(t)}}});return a.observe(),()=>{a.unobserve()}},[l,s,e]),h}
2var S='input,select,textarea,a[href],button,[tabindex]:not(slot),audio[controls],video[controls],[contenteditable]:not([contenteditable="false"]),details>summary:first-of-type,details',R="u"<typeof Element,N=R?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,T=!R&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},A=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(S));return t&&N.call(e,S)&&r.unshift(e),r=r.filter(n)},_=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if("SLOT"===i.tagName){var l=i.assignedElements(),u=e(l.length?l:i.children,!0,r);r.flatten?o.push.apply(o,u):o.push({scope:i,candidates:u})}else{N.call(i,S)&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var s=i.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(i),c=!r.shadowRootFilter||r.shadowRootFilter(i);if(s&&c){var d=e(!0===s?i.children:s.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scope:i,candidates:d})}else a.unshift.apply(a,i.children)}}return o},k=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},O=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},D=function(e){return"INPUT"===e.tagName},L=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},P=function(e){if(!e.name)return!0;var t,n=e.form||T(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("u">typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=L(t,e.form);return!o||o===e},$=function(e){return D(e)&&"radio"===e.type&&!P(e)},j=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},U=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=N.call(e,"details>summary:first-of-type")?e.parentElement:e;if(N.call(o,"details:not([open]) *"))return!0;var a=T(e).host,i=(null==a?void 0:a.ownerDocument.contains(a))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return j(e)}else{if("function"==typeof r){for(var l=e;e;){var u=e.parentElement,s=T(e);if(u&&!u.shadowRoot&&!0===r(u))return j(e);e=e.assignedSlot?e.assignedSlot:u||s===e.ownerDocument?u:s.host}e=l}if(i)return!e.getClientRects().length}return!1},M=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!N.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},B=function(e,t){return!(t.disabled||D(t)&&"hidden"===t.type||U(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||M(t))},V=function(e,t){return!($(t)||0>k(t))&&!!B(e,t)},G=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},W=function e(t){var n=[],r=[];return t.forEach(function(t,o){var a=!!t.scope,i=a?t.scope:t,l=k(i,a),u=a?e(t.candidates):i;0===l?a?n.push.apply(n,u):n.push(i):r.push({documentOrder:o,tabIndex:l,item:t,isScope:a,content:u})}),r.sort(O).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},F=function(e,t){return W((t=t||{}).getShadowRoot?_([e],t.includeContainer,{filter:V.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:G}):A(e,t.includeContainer,V.bind(null,t)))},H=n.forwardRef(function({unstable_skipInitialPortalRender:e,...t},r){return n.createElement(w,{unstable_skipInitialRender:e},n.createElement(K,{ref:r,...t}))});H.displayName="Popover";
2var K=n.forwardRef(function({as:e="div",targetRef:t,position:o=Y,unstable_observableRefs:a=[],...i},u){let s=n.useRef(null),c=I(s,{observe:!i.hidden}),d=I(t,{observe:!0}),f=l(s,u);return function(e,t){var o;let a=(o=e.current,r()?o?o.ownerDocument:document:null);function i(n){var r,o,i,u,c;let d,f,p,h,m,g;("Tab"!==n.key||!t.current||0!==F(t.current).length)&&("Tab"===n.key&&n.shiftKey?function(e){if(!e.shiftKey)return;let t=l();return e.target===t}(n)?(r=n,(f=(d=t.current&&F(t.current))&&d[d.length-1])&&(r.preventDefault(),f.focus())):(o=n,(p=t.current&&F(t.current))&&0!==p.length&&o.target===p[0])?(n.preventDefault(),e.current?.focus()):n.target===F(a)[0]&&s():"Tab"===n.key&&(e.current&&e.current===a.activeElement?(i=n,(h=t.current&&F(t.current))&&h[0]&&(i.preventDefault(),h[0].focus())):function(){if(t.current&&t.current.contains(a.activeElement||null)){let e=t.current&&F(t.current);return!!(e&&e[e.length-1]===a.activeElement)}return!1}()?(u=n,(m=l())&&(u.preventDefault(),m.focus())):(c=n,(g=t.current?F(a).filter(e=>!t.current.contains(e)):null)&&c.target===g[g.length-1]&&s())))}function l(){let n=F(a),r=n&&e.current?n.indexOf(e.current):-1,o=n&&n[r+1];return!(t.current&&t.current.contains(o||null))&&o}n.useEffect(()=>(a.addEventListener("keydown",i),()=>{a.removeEventListener("keydown",i)}),[]);let u=[];function s(){let e=t.current&&F(t.current);e&&(e.forEach(e=>{u.push([e,e.tabIndex]),e.tabIndex=-1}),a.addEventListener("focusin",c))}function c(){a.removeEventListener("focusin",c),u.forEach(([e,t])=>{e.tabIndex=t})}}(t,s),n.createElement(e,{"data-reach-popover":"",ref:f,...i,style:{position:"absolute",...function(e,t,n,...r){return n?e(t,n,...r.map(e=>e.current)):{visibility:"hidden"}}(o,d,c,...a),...i.style}})});function z(e,t,n){return{top:n?`${e.top-t.height+window.pageYOffset}px`:`${e.top+e.height+window.pageYOffset}px`}}K.displayName="PopoverImpl";var Y=(e,t)=>{if(!e||!t)return{};let{directionRight:n,directionUp:r}=q(e,t);return{left:n?`${e.right-t.width+window.pageXOffset}px`:`${e.left+window.pageXOffset}px`,...z(e,t,r)}},X=(e,t)=>{if(!e||!t)return{};let{directionUp:n}=q(e,t);return{width:e.width,left:e.left,...z(e,t,n)}};function q(e,t,n=0,r=0){let o={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0},a=o.right&&!o.left,i=o.left&&!o.right;return{directionRight:a,directionLeft:i,directionUp:o.bottom&&!o.top,directionDown:o.top&&!o.bottom}}function J({autoEscape:e,caseSensitive:t,sanitize:n=Z,searchWords:r,textToHighlight:o}){return o=n(o||""),r.filter(e=>e).reduce((r,a)=>{let i;a=n(a),e&&(a=a.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&"));let l=new RegExp(a,t?"g":"gi");for(;i=l.exec(o||"");){let e=i.index,t=l.lastIndex;t>e&&r.push({highlight:!1,start:e,end:t}),i.index===l.lastIndex&&l.lastIndex++}return r},[])}function Z(e){return e}var Q="IDLE",ee="SUGGESTING",et="NAVIGATING",en="INTERACTING",er="CLEAR",eo="CHANGE",ea="INITIAL_CHANGE",ei="NAVIGATE",el="SELECT_WITH_KEYBOARD",eu="SELECT_WITH_CLICK",es="ESCAPE",ec="BLUR",ed="INTERACT",ef="FOCUS",ep="OPEN_WITH_BUTTON",eh="OPEN_WITH_INPUT_CLICK",em="CLOSE_WITH_BUTTON",eg={initial:Q,states:{[Q]:{on:{[ec]:Q,[er]:Q,[eo]:ee,[ea]:Q,[ef]:ee,[ei]:et,[ep]:ee,[eh]:ee}},[ee]:{on:{[eo]:ee,[ef]:ee,[ei]:et,[er]:Q,[es]:Q,[ec]:Q,[eu]:Q,[ed]:en,[em]:Q}},[et]:{on:{[eo]:ee,[ef]:ee,[er]:Q,[ec]:Q,[es]:Q,[ei]:et,[eu]:Q,[el]:Q,[em]:Q,[ed]:en}},[en]:{on:{[er]:Q,[eo]:ee,[ef]:ee,[ec]:Q,[es]:Q,[ei]:et,[em]:Q,[eu]:Q}}}},eb=(e,t)=>{let n={...e,lastEventType:t.type};switch(t.type){case eo:case ea:return{...n,navigationValue:null,value:t.value};case ei:case ep:case eh:return{...n,navigationValue:ev(n,t)};case er:return{...n,value:"",navigationValue:null};case ec:case es:return{...n,navigationValue:null};case eu:return{...n,value:t.isControlled?e.value:t.value,navigationValue:null};case el:return{...n,value:t.isControlled?e.value:e.navigationValue,navigationValue:null};case em:return{...n,navigationValue:null};case ed:return n;case ef:return{...n,navigationValue:ev(n,t)};default:return n}};function ev(e,t){return t.value?t.value:t.persistSelection?e.value:null}var ey=function(e,t={}
2){let r=n.createContext({descendants:[],registerDescendant:()=>s,...t});return r.displayName=e,r}("ComboboxDescendantContext"),ew=u("ComboboxContext",{}),ex=u("OptionContext",{}),eC=n.forwardRef(({onSelect:e,openOnFocus:t=!1,children:r,as:o="div","aria-label":a,"aria-labelledby":l,...u},c)=>{var p,h;let[v,y]=n.useState([]),w=n.useRef(),x=n.useRef(),C=n.useRef(),E=n.useRef(!1),I=n.useRef(!1),[S,R,N]=function(e,t,r){let[o,a]=n.useState(e.initial),[i,l]=n.useReducer(t,r);return[o,i,(t,n={})=>{let r=e.states[o],i=r&&r.on[t];if(i){l({type:t,state:o,nextState:o,...n}),a(i);return}}]}(eg,eb,{value:"",navigationValue:null});p=R.lastEventType,d(()=>{(p===ei||p===es||p===eu||p===ep)&&h.current?.focus()},[h=w,p]);let T=function(e){if(void 0!==b){let t=b();return e??t}let t=e??(m?++g:null),[r,o]=n.useState(t);return d(()=>{null===r&&o(++g)},[]),n.useEffect(()=>{!1===m&&(m=!0)},[]),e??r??void 0}(u.id),A=T?function(...e){return e.filter(e=>null!=e).join("--")}("listbox",T):"listbox",_=n.useRef(!1),k=[ee,et,en].includes(S);return n.createElement(f,{context:e
2y,items:v,set:y},n.createElement(ew.Provider,{value:{ariaLabel:a,ariaLabelledby:l,autocompletePropRef:E,buttonRef:C,comboboxId:T,data:R,inputRef:w,isExpanded:k,listboxId:A,onSelect:e||s,openOnFocus:t,persistSelectionRef:I,popoverRef:x,state:S,transition:N,isControlledRef:_}},n.createElement(o,{...u,"data-reach-combobox":"","data-state":ek(S),"data-expanded":k||void 0,ref:c},i(r)?r({id:T,isExpanded:k,navigationValue:R.navigationValue??null,state:S}):r)))});eC.displayName="Combobox";var eE=n.forwardRef(({as:e="input",selectOnClick:t=!1,autocomplete:r=!0,onClick:a,onChange:i,onKeyDown:u,onBlur:s,onFocus:c,value:f,...p},h)=>{var m;let g,{current:b}=n.useRef(f),v=n.useRef(!1);m=[f],g=(0,n.useRef)(!1),(0,n.useEffect)(()=>{g.current?(()=>{v.current=!0})():g.current=!0},m);let{data:{navigationValue:y,value:w,lastEventType:x},inputRef:C,state:E,transition:I,listboxId:S,autocompletePropRef:R,openOnFocus:N,isExpanded:T,ariaLabel:A,ariaLabelledby:_,persistSelectionRef:k,isControlledRef:O}=n.useContext(ew),D=l(C,h),L=n.useRef(!1),P=eT(),$=eA(),j=void 0!==f,U=void 0!==b;!j&&U&&console.warn("ComboboxInput is changing from controlled to uncontrolled. ComboboxInput should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled ComboboxInput for the lifetime of the component. Check the `value` prop being passed in."),j&&!U&&console.warn("ComboboxInput is changing from uncontrolled to controlled. ComboboxInput should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled ComboboxInput for the lifetime of the component. Check the `value` prop being passed in."),n.useEffect(()=>{O.current=j},[j]),d(()=>{R.current=r},[r,R]);let M=n.useCallback(e=>{""===e.trim()?I(er,{isControlled:j}):e!==b||v.current?I(eo,{value:e}):I(ea,{value:e})},[b,I,j]);n.useEffect(()=>{j&&f!==w&&(""!==f.trim()||""!==(w||"").trim())&&M(f)},[f,M,j,w]),n.useEffect(()=>{let e=C.current?.form;if(e)return e.addEventListener("reset",t),()=>{e?.removeEventListener("reset",t)};function t(e){I(er,{isControlled:j})}},[C,j,I]);let B=r&&(E===et||E===en)?y||f||w:f||w;return n.createElement(e,{"aria-activedescendant":y?String(e_(y)):void 0,"aria-autocomplete":"both","aria-controls":S,"aria-expanded":T,"aria-haspopup":"listbox","aria-label":A,"aria-labelledby":A?void 0:_,role:"combobox",...p,"data-reach-combobox-input":"","data-state":ek(E),ref:D,onBlur:o(s,$),onChange:o(i,function(e){let{value:t}=e.target;j||M(t)}),onClick:o(a,function(){L.current&&(L.current=!1,C.current?.select()),N&&E===Q&&I(eh)}),onFocus:o(c,function(){t&&(L.current=!0),N&&x!==eu&&I(ef,{persistSelection:k.current})}),onKeyDown:o(u,P),value:B||""})});eE.displayName="ComboboxInput";var eI=n.forwardRef(({as:e="div",children:t,portal:r=!0,onKeyDown:a,onBlur:i,position:u=X,...s},c)=>{let{popoverRef:d,inputRef:f,isExpanded:p,state:h}=n.useContext(ew),m=l(d,c),g=eT(),b=eA(),v={"data-reach-combobox-popover":"","data-state":ek(h),onKeyDown:o(a,g),onBlur:o(i,b),hidden:!p,tabIndex:-1,children:t};return r?n.createElement(H,{as:e,...s,ref:m,"data-expanded":p||void 0,position:u,targetRef:f,unstable_skipInitialPortalRender:!0,...v}):n.createElement(e,{ref:m,...s,...v})});eI.displayName="ComboboxPopover";var eS=n.forwardRef(({persistSelection:e=!1,as:t="ul",...r},o)=>{let{persistSelectionRef:a,listboxId:i}=n.useContext(ew);return e&&(a.current=!0),n.createElement(t,{role:"listbox",...r,ref:o,"data-reach-combobox-list":"",id:i})});eS.displayName="ComboboxList";var eR=n.forwardRef(({as:e="li",children:t,index:r,value:a,onClick:u,...s},f)=>{let{onSelect:p,data:{navigationValue:h},transition:m,isControlledRef:g}=n.useContext(ew),[b,v]=function(e){let[t,r]=(0,n.useState)(null);return[t,(0,n.useCallback)(t=>{e.current=t,r(t)},[])]}(n.useRef(null)),y=function(e,t,r){let o=c(),{registerDescendant:a,descendants:i}=n.useContext(t),l=r??i.findIndex(t=>t.element===e.element);return d(()=>(e.element||o(),a({...e,index:l})),[e,o,l,a,...Object.values(e)]),l}(n.useMemo(()=>({element:b,value:a}),[a,b]),ey,r),w=l(f,v),x=h===a;return n.createElement(ex.Provider,{value:{value:a,index:y}},n.createElement(e,{"aria-selected":x,role:"option",...s,"data-reach-combobox-option":"",ref:w,id:String(e_(a)),"data-highlighted":x?"":void 0,tabIndex:-1,onClick:o(u,()=>{p&&p(a),m(eu,{value:a,isControlled:g.current})})},t?i(t)?t({value:a,index:y}):t:n.createElement(eN,null)))});function eN(){let{value:e}=n.useContext(ex),{data:{value:t}}=n.useContext(ew),r=n.useMemo(()=>(function({autoEscape:e,caseSensitive:t=!1,findChunks:n=J,sanitize:r,searchWords:o,textToHighlight:a}){return function({chunksToHighlight:e,totalLength:t}){let n=[];if(0===e.length)r(0,t,!1);else{let n=0;
2e.forEach(e=>{r(n,e.start,!1),r(e.start,e.end,!0),n=e.end}),r(n,t,!1)}return n;function r(e,t,r){t-e>0&&n.push({start:e,end:t,highlight:r})}}({chunksToHighlight:function({chunks:e}){return e.sort((e,t)=>e.start-t.start).reduce((e,t)=>{if(0===e.length)return[t];{let n=e.pop();if(t.start<=n.end){let r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}},[])}({chunks:n({autoEscape:e,caseSensitive:t,sanitize:r,searchWords:o,textToHighlight:a})}),totalLength:a?a.length:0})})({searchWords:String(t||"").replace(/([.*+?=^!:${}()|[\]/\\])/g,"\\$1").split(/\s+/),textToHighlight:e}),[t,e]);return n.createElement(n.Fragment,null,r.length?r.map((t,r)=>{let o=e.slice(t.start,t.end);return n.createElement("span",{key:r,"data-reach-combobox-option-text":"","data-user-value":!!t.highlight||void 0,"data-suggested-value":!t.highlight||void 0},o)}):e)}function eT(){let{data:{navigationValue:e},onSelect:t,state:r,transition:o,autocompletePropRef:a,persistSelectionRef:i,inputRef:l,isControlledRef:u}=n.useContext(ew),s=n.useContext(ey).descendants;return function(n){let c=s.findIndex(({value:t})=>t===e);function d(){return s[s.length-1]}let f=l.current?.tagName.toUpperCase()==="TEXTAREA"&&l.current.value.includes(` 3`);switch(n.key){case"ArrowDown":if(!s||!s.length)return;if(r===Q){if(f)return;n.preventDefault(),o(ei,{persistSelection:i.current})}else{n.preventDefault();let e=c!==s.length-1?s[(c+1)%s.length]:a.current?null:s[0];o(ei,{value:e?e.value:null})}break;case"ArrowUp":if(!s||!s.length)return;if(r===Q){if(f)return;n.preventDefault(),o(ei,{persistSelection:i.current})}else{n.preventDefault();let e=function(){if(0===c)if(a.current)return null;else return d();return -1===c?d():s[(c-1+s.length)%s.length]}();o(ei,{value:e?e.value:null})}break;case"Home":case"PageUp":if(n.preventDefault(),!s||0===s.length)return;r===Q?o(ei):o(ei,{value:s[0].value});break;case"End":case"PageDown":if(n.preventDefault(),!s||0===s.length)return;r===Q?o(ei):o(ei,{value:d().value});break;case"Escape":r!==Q&&o(es);break;case"Enter":r===et&&null!==e&&(n.preventDefault(),t&&t(e),o(el,{isControlled:u.current}))}}}function eA(){let{state:e,transition:t,popoverRef:r,inputRef:o,buttonRef:a}=n.useContext(ew);return function(n){let i=r.current,l=o.current,u=a.current,s=n.relatedTarget;s!==l&&s!==u&&i&&(i.contains(s)?e!==en&&t(ed):t(ec))}}function e_(e){let t=0;if(0===e.length)return t;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}function ek(e){return e.toLowerCase()}eR.displayName="ComboboxOption",eN.displayName="ComboboxOptionText",n.forwardRef(({as:e="button",onClick:t,onKeyDown:r,...a},i)=>{let{transition:u,state:s,buttonRef:c,listboxId:d,isExpanded:f}=n.useContext(ew),p=l(c,i),h=eT();return n.createElement(e,{"aria-controls":d,"aria-haspopup":"listbox","aria-expanded":f,...a,"data-reach-combobox-button":"",ref:p,onClick:o(t,()=>{s===Q?u(ep):u(em)}),onKeyDown:o(r,h)})}).displayName="ComboboxButton",e.s(["Combobox",0,eC,"ComboboxInput",0,eE,"ComboboxList",0,eS,"ComboboxOption",0,eR,"ComboboxPopover",0,eI],187861)},180697,e=>{"use strict";var t=e.i(187861),n=e.i(775904);let r=(0,n.default)(t.Combobox).withConfig({displayName:"AddressAutocompleteInput.styles__StyledCombobox",componentId:"sc-5ff00ea4-0"})` 4 display: flex; 5 align-items: stretch; 6 width: 100%; 7 background-color: inherit; 8`,o=n.default.div.withConfig({displayName:"AddressAutocompleteInput.styles__InputWrapper",componentId:"sc-5ff00ea4-1"})` 9 display: grid; 10 gap: 0.5rem; 11 width: 100%; 12`,a=n.default.div.withConfig({displayName:"AddressAutocompleteInput.styles__InputIconContainer",componentId:"sc-5ff00ea4-2"})` 13 position: relative; 14`,i=n.default.div.withConfig({displayName:"AddressAutocompleteInput.styles__IconWrapper",componentId:"sc-5ff00ea4-3"})` 15 display: flex; 16 align-items: center; 17 justify-content: center; 18 position: absolute; 19 height: 100%; 20 background-color: #fff; 21 scale: 0.9; 22 top: 0; 23 right: 0; 24 padding: 1rem; 25 pointer-events: none; 26 color: #000; 27`,l=(0,n.default)(t.ComboboxInput).withConfig({displayName:"AddressAutocompleteInput.styles__StyledComboboxInput",componentId:"sc-5ff00ea4-4"})` 28 outline: none; 29 padding: 1rem 1.125rem; 30 transition: all 200ms ease; 31 32 font-size: 16px; 33 line-height: 1; 34 35 background: #fff; 36 border: 1px solid; 37 border-color: #d0d0d0; 38 border-radius: 8px; 39 width: ${e=>e.fullWidth?"100%":"auto"}; 40 &:focus { 41 border-color: #000; 42 } 43 44 &:disabled {
45 cursor: not-allowed; 46 background: #f4f4f5; 47 border-color: #ffffff; 48 49 & + ${i} { 50 background: none; 51 } 52 } 53`,u=(0,n.default)(t.ComboboxList).withConfig({displayName:"AddressAutocompleteInput.styles__StyledComboboxList",componentId:"sc-5ff00ea4-5"})` 54 position: relative; 55 z-index: 99; 56 padding: 0; 57 background: #fff; 58 min-height: 51px; 59 list-style: none; 60 box-sizing: border-box; 61 border-radius: 8px; 62 margin-top: 0.75rem; 63 margin-bottom: 1rem; 64 box-shadow: 0 6px 10px rgba(0, 0, 0, 0.16); 65 66 > [data-reach-combobox-option] { 67 cursor: pointer; 68 font-size: 1rem; 69 padding: 1rem; 70 border-radius: 6px; 71 72 &:last-child { 73 margin-bottom: 0; 74 } 75 76 strong { 77 margin-right: 2; 78 } 79 80 &:hover { 81 background: #f5f5f5; 82 } 83 } 84 85 > [data-reach-combobox-option][data-highlighted] { 86 background: #f5f5f5; 87 } 88`,s=n.default.div.withConfig({displayName:"AddressAutocompleteInput.styles__NoAddressSuggestion",componentId:"sc-5ff00ea4-6"})` 89 cursor: pointer; 90 font-size: 1rem; 91 padding: 1rem; 92 border-radius: 6px; 93`,c=n.default.div.withConfig({displayName:"AddressAutocompleteInput.styles__FadedOverlay",componentId:"sc-5ff00ea4-7"})` 94 position: absolute; 95 z-index: 100; 96 inset: 0; 97 display: flex; 98 justify-content: center; 99 align-items: center; 100 background: rgba(255, 255, 255, 0.5); 101 height: 100%; 102 width: 100%; 103`;e.s(["FadedOverlay",0,c,"IconWrapper",0,i,"InputIconContainer",0,a,"InputWrapper",0,o,"NoAddressSuggestion",0,s,"StyledCombobox",0,r,"StyledComboboxInput",0,l,"StyledComboboxList",0,u])},223808,(e,t,n)=>{var r=0/0,o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,s=e.g&&e.g.Object===Object&&e.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=s||c||Function("return this")(),f=Object.prototype.toString,p=Math.max,h=Math.min,m=function(){return d.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==f.call(t))return r;if(g(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=g(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var s=i.test(e);return s||l.test(e)?u(e.slice(2),s?2:8):a.test(e)?r:+e}t.exports=function(e,t,n){var r,o,a,i,l,u,s=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=r,a=o;return r=o=void 0,s=t,i=e.apply(a,n)}function y(e){var n=e-u,r=e-s;return void 0===u||n>=t||n<0||d&&r>=a}function w(){var e,n,r,o=m();if(y(o))return x(o);l=setTimeout(w,(e=o-u,n=o-s,r=t-e,d?h(r,a-n):r))}function x(e){return(l=void 0,f&&r)?v(e):(r=o=void 0,i)}function C(){var e,n=m(),a=y(n);if(r=arguments,o=this,u=n,a){if(void 0===l)return s=e=u,l=setTimeout(w,t),c?v(e):i;if(d)return l=setTimeout(w,t),v(u)}return void 0===l&&(l=setTimeout(w,t)),i}return t=b(t)||0,g(n)&&(c=!!n.leading,a=(d="maxWait"in n)?p(b(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),C.cancel=function(){void 0!==l&&clearTimeout(l),s=0,r=u=o=l=void 0},C.flush=function(){return void 0===l?i:x(m())},C}},1467,374835,426495,e=>{"use strict";var t=e.i(687652),n=e.i(223808);let r={};async function o(e,t){let n=await fetch("/api/location/suggestions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e,locale:t})});return n.ok?await n.json():{options:[],addressObjects:[]}}e.s(["useAddressSuggestions",0,(e,a,i)=>{let[l,u]=(0,t.useState)(!1),[s,c]=(0,t.useState)(!1),[d,f]=(0,t.useState)({options:[],addressObjects:[]}),p=(0,t.useMemo)(()=>(0,n.default)(async(e,t,n)=>{try{let r=await o(e,t);n(r)}catch{n({options:[],addressObjects:[]})}},a.delay||500),[a.delay]);return(0,t.useEffect)(()=>{if(!i||""===i||d.options.includes(i))return;u(!0),c(!1);let t=`${e}_${a.locale}_${i.trim()}`,n=r[t];if(n){f(n),c(!0),u(!1);return}p(i,a.locale,e=>{r[t]=e,f(e),c(!0),u(!1)})},[i,d.options,e,a,p]),{suggestions:d,isLoading:l,isSuggestionsLoaded:s}}],1467);let a=null,i=async({addressObject:e})=>{let t=e.postcode||e.postalcode||"",n=`${e.street} ${e?.street_number?` ${e.street_number}`:""}${e?.extra_number?`-${e?.extra_number}`:""}${e?.letter?` ${e.letter}`:""}`,r=e.locality||"",o=e.latitude;return{city:r,postcode:t,street:n,coordinates:{lat:o,lng:e.longitude}}};e.s(["geoCodeMethods",0,{google:({addressObject:e})=>{let{description:t,place_id:n}=e,r=n?{placeId:n}:{address:t},o={locality:"short_name",postal_town:"short_name",administrative_area_level_1:"long_name",postal_code:"short_name",route:"short_name",street_number:"short_name"},i=Object.keys(o);return a=a||new google.maps.places.PlacesService(document.createElement("div")),new Promise((e,t)=>
103{a.getDetails(r,(n,r)=>{if("OK"==r){let t={};n.address_components.forEach(e=>{i.forEach(n=>{if(e.types.includes(n)){let r=o[n];t[n]=e[r]}})}),e({city:t.locality||t.postal_town||t.administrative_area_level_1||"",postcode:t.postal_code||"",street:`${t.route||""} ${t.street_number||""}`.trim(),coordinates:{lat:n.geometry.location.lat(),lng:n.geometry.location.lng()}})}else console.error("Google Maps Geocode API was not successful for the following reason: "+r),t(r)})})},geposit:i}],374835);var l=e.i(642453),u=e.i(173283);e.s(["default",0,function(){let[e,n]=(0,t.useState)(!1),r=(0,u.default)();return(0,t.useEffect)(()=>{r&&(async()=>{try{if(r.status===l.LoaderStatus.SUCCESS&&(await google.maps.importLibrary?.("places"),n(!0)),r.status===l.LoaderStatus.INITIALIZED&&(await r.importLibrary("places"),n(!0)),!e)return;let t=document.getElementById("address-input");if(!t)return;let{Autocomplete:o}=google.maps.places;new o(t,{types:["geocode"]})}catch(e){console.error("Error initializing Google Places Autocomplete:",e)}})()},[r]),{isPlacesReady:e}}],426495)}]); 104 105//# debugId=003744a7-cf42-f5c5-e5dc-4d1062cf35c9
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.