1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[349],{6385:function(e,t,r){"use strict";var n=r(9936),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return n.isMemo(e)?s:o[e.$$typeof]||i}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=p(r);i&&i!==h&&e(t,i,n)}var s=c(r);d&&(s=s.concat(d(r)));for(var o=l(t),y=l(r),m=0;m<s.length;++m){var v=s[m];if(!a[v]&&!(n&&n[v])&&!(y&&y[v])&&!(o&&o[v])){var g=f(r,v);try{u(t,v,g)}catch(e){}}}}return t}},9764:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(132),i=/<(\w+) *>(.*?)<\/\1 *>|<(\w+) *\/>/,a=/(?:\r\n|\r|\n)/g;function s(e){var t=e.text,r=e.components;return(0,n.useMemo)(function(){return r&&0!==r.length?function e(t,r){void 0===r&&(r=[]);var s=t.replace(a,"").split(i);if(1===s.length)return t;var o=[],l=s.shift();return l&&o.push(l),(function e(t){if(!t.length)return[];var r=t.slice(0,4),n=r[0],i=r[1],a=r[2];return[[n||a,i||"",r[3]]].concat(e(t.slice(4,t.length)))})(s).forEach(function(t,i){var a=t[0],s=t[1],l=t[2],u=r[a]||n.createElement(n.Fragment,null);o.push((0,n.cloneElement)(u,{key:i},s?e(s,r):u.props.children)),l&&o.push(l)}),o}(t,r):t},[t,r])}},5357:function(e,t,r){"use strict";var n=r(464);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,a,s){if(s!==n){var o=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i}
1;return r.PropTypes=r,r}},377:function(e,t,r){e.exports=r(5357)()},464:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2435:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n,i,a=r(132),s=r(377),o=r.n(s),l=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(c(t)),t.handleErrored=t.handleErrored.bind(c(t)),t.handleChange=t.handleChange.bind(c(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(c(t)),t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,d(t,e);var r=t.prototype;return r.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},r.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},r.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},r.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},r.executeAsync=function(){var e=this;return new Promise(function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()})},r.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},r.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},r.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},r.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},r.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},r.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},r.componentDidMount=function(){this.explicitRender()},r.componentDidUpdate=function(){this.explicitRender()},r.handleRecaptchaRef=function(e){this.captcha=e},r.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,l));return a.createElement("div",u({},t,{ref:this.handleRecaptchaRef}))},t}(a.Component);f.displayName="ReCAPTCHA",f.propTypes={sitekey:o().string.isRequired,onChange:o().func,grecaptcha:o().object,theme:o().oneOf(["dark","light"]),type:o().oneOf(["image","audio"]),tabindex:o().number,onExpired:o().func,onErrored:o().func,size:o().oneOf(["compact","normal","invisible"]),stoken:o().string,hl:o().string,badge:o().oneOf(["bottomright","bottomleft","inline"]),isolated:o().bool},f.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var p=r(6385),h=r.n(p);function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var m={},v=0,g="onloadcallback";function b(){return"undefined"!=typeof window&&window.recaptchaOptions||{}}var _=(n=function(){var e=b(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+g+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+g+"&render=explicit"},i=(i={callbackName:g,globalName:"grecaptcha",attributes:b().nonce?{nonce:b().nonce}:{}})||{},function(e){var t=e.displayName||e.name||"Component",r=function(t){function r(e,r){var n;return(n=t.call(this,e,r)||this).state={},n.__scriptURL="",n}r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t;var s=r.prototype;return s.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+v++),this.__scriptLoaderID},s.setupScriptURL=function(){return this.__scriptURL="function"==typeof n?n():n,this.__scriptURL},s.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},s.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=m[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[i.callbackName]},s.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=i,a=n.globalName,s=n.callbackName,o=n.scriptId;if(a&&void 0!==window[a]&&(m[t]={loaded:!0,observers:{}}),m[t]){var l=m[t];if(l&&(l.loaded||l.errored)){this.asyncScriptLoaderHandleLoad(l);return}l.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)};return}var u={};u[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},m[t]={loaded:!1,observers:u};var c=document.createElement("script");for(var d in c.src=t,c.async=!0,i.attributes)c.setAttribute(d,i.attributes[d]);o&&(c.id=o);var f=function(e){if(m[t]){var r=m[t].observers;for(var n in r)e(r[n])&&delete r[n]}};s&&"undefined"!=typeof window&&(window[s]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),c.onload=function(){var e=m[t];e&&(e.loaded=!0,f(function(t){return!s&&(t(e),!0)}))},c.onerror=function(){var e=m[t];e&&(e.errored=!0,f(function(t){return t(e),!0}))},document.body.appendChild(c)},s.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===i.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=m[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===i.removeOnUnmount&&delete m[e])},s.render=function(){var t=i.globalName,r=this.props,n=(r.asyncScriptOnLoad,r.forwardedRef),s=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(i[r]=e[r]);return i}(r,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(s[t]=void 0!==window[t]?window[t]:void 0),s.ref=n,(0,a.createElement)(e,s)},r}(a.Component),s=(0,a.forwardRef)(function(e,t){return(0,a.createElement)(r,y({},e,{forwardedRef:t}))});return s.displayName="AsyncScriptLoader("+t+")",s.propTypes={asyncScriptOnLoad:o().func},h()(s,e)})(f)},8564:function(e,t){"use strict";/** @license React v16.13.1 2 * react-is.production.min.js 3 * 4 * Copyright (c) Facebook, Inc. and its affiliates. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE file in the root directory of this source tree. 8 */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case a:case o:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case y:case l:return e;default:return t}}case i:return t}}}function S(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=a,t.Lazy=m,t.Memo=y,t.Portal=i,t.Profiler=o,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===y},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===o||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===g||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=w},9936:function(e,t,r){"use strict";e.exports=r(8564)},8110:function(e,t,r){"use strict";r.d(t,{Qr:function(){return T},cI:function(){return e_}});var n=r(132),i=e=>"checkbox"===e.type,a=e=>e instanceof Date,s=e=>null==e;let o=e=>"object"==typeof e;var l=e=>!s(e)&&!Array.isArray(e)&&o(e)&&!a(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},p="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(e){let t;let r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(p&&(e instanceof Blob||e instanceof FileList))&&(r||l(e))))return e;else if(t=r?[]:{},r||f(e))for(let r in e)e.hasOwnProperty(r)&&(t[r]=h(e[r]));else t=e;return t}var y=e=>Array.isArray(e)?e.filter(Boolean):[],m=e=>void 0===e,v=(e,t,r)=>{if(!t||!l(e))return r;let n=y(t.split(/[,[\].]+?/)).reduce((e,t)=>
8s(e)?e:e[t],e);return m(n)||n===e?m(e[t])?r:e[t]:n};let g={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},b={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},_={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},w=n.createContext(null),S=()=>n.useContext(w);var x=(e,t,r,n=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>(t._proxyFormState[a]!==b.all&&(t._proxyFormState[a]=!n||b.all),r&&(r[a]=!0),e[a])});return i},k=e=>l(e)&&!Object.keys(e).length,V=(e,t,r,n)=>{r(e);let{name:i,...a}=e;return k(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!n||b.all))},O=e=>Array.isArray(e)?e:[e],A=(e,t,r)=>r&&t?e===t:!e||!t||e===t||O(e).some(e=>e&&(e.startsWith(t)||t.startsWith(e)));function C(e){let t=n.useRef(e);t.current=e,n.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}var F=e=>"string"==typeof e,E=(e,t,r,n,i)=>F(e)?(n&&t.watch.add(e),v(r,e,i)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),v(r,e))):(n&&(t.watchAll=!0),r),D=e=>/^\w*$/.test(e),L=e=>y(e.replace(/["|']|\]/g,"").split(/\.|\[/));function R(e,t,r){let n=-1,i=D(t)?[t]:L(t),a=i.length,s=a-1;for(;++n<a;){let t=i[n],a=r;if(n!==s){let r=e[t];
8a=l(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}e[t]=a,e=e[t]}return e}let T=e=>e.render(function(e){let t=S(),{name:r,control:i=t.control,shouldUnregister:a}=e,s=d(i._names.array,r),o=function(e){let t=S(),{control:r=t.control,name:i,defaultValue:a,disabled:s,exact:o}=e||{},l=n.useRef(i);l.current=i,C({disabled:s,subject:r._subjects.values,next:e=>{A(l.current,e.name,o)&&c(h(E(l.current,r._names,e.values||r._formValues,!1,a)))}});let[u,c]=n.useState(r._getWatch(i,a));return n.useEffect(()=>r._removeUnmounted()),u}({control:i,name:r,defaultValue:v(i._formValues,r,v(i._defaultValues,r,e.defaultValue)),exact:!0}),l=function(e){let t=S(),{control:r=t.control,disabled:i,name:a,exact:s}=e||{},[o,l]=n.useState(r._formState),u=n.useRef(!0),c=n.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=n.useRef(a);return d.current=a,C({disabled:i,next:e=>u.current&&A(d.current,e.name,s)&&V(e,c.current,r._updateFormState)&&l({...r._formState,...e}),subject:r._subjects.state}),n.useEffect(()=>(u.current=!0,c.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),x(o,r,c.current,!1)}({control:i,name:r}),c=n.useRef(i.register(r,{...e.rules,value:o}));return c.current=i.register(r,e.rules),n.useEffect(()=>{let e=i._options.shouldUnregister||a,t=(e,t)=>{let r=v(i._fields,e);r&&(r._f.mount=t)};if(t(r,!0),e){let e=h(v(i._options.defaultValues,r));R(i._defaultValues,r,e),m(v(i._formValues,r))&&R(i._formValues,r,e)}return()=>{(s?e&&!i._state.action:e)?i.unregister(r):t(r,!1)}},[r,i,s,a]),{field:{name:r,value:o,onChange:n.useCallback(e=>c.current.onChange({target:{value:u(e),name:r},type:g.CHANGE}),[r]),onBlur:n.useCallback(()=>c.current.onBlur({target:{value:v(i._formValues,r),name:r},type:g.BLUR}),[r,i]),ref:e=>{let t=v(i._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!v(l.errors,r)},isDirty:{enumerable:!0,get:()=>!!v(l.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!v(l.touchedFields,r)},error:{enumerable:!0,get:()=>v(l.errors,r)}})}}(e));var j=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{};let P=(e,t,r)=>{for(let n of r||Object.keys(e)){let r=v(e,n);if(r){let{_f:e,...n}=r;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(n)&&P(n,t)}}};var N=e=>({isOnSubmit:!e||e===b.onSubmit,isOnBlur:e===b.onBlur,isOnChange:e===b.onChange,isOnAll:e===b.all,isOnTouch:e===b.onTouched}),U=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),$=(e,t,r)=>{let n=y(v(e,r));return R(n,"root",t[r]),R(e,r,n),e},M=e=>"boolean"==typeof e,I=e=>"file"===e.type,B=e=>"function"==typeof e,q=e=>{if(!p)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},z=e=>F(e),H=e=>"radio"===e.type,G=e=>e instanceof RegExp;let W={value:!1,isValid:!1},Y={value:!0,isValid:!0};var K=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!m(e[0].attributes.value)?m(e[0].value)||""===e[0].value?Y:{value:e[0].value,isValid:!0}:Y:W}return W};let Z={isValid:!1,value:null};var Q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Z):Z;function J(e,t,r="validate"){if(z(e)||Array.isArray(e)&&e.every(z)||M(e)&&!e)return{type:r,message:z(e)?e:"",ref:t}}var X=e=>l(e)&&!G(e)?e:{value:e,message:""},ee=async(e,t,r,n,a)=>{let{ref:o,refs:u,required:c,maxLength:d,minLength:f,min:p,max:h,pattern:y,validate:g,name:b,valueAsNumber:w,mount:S,disabled:x}=e._f,V=v(t,b);if(!S||x)return{};let O=u?u[0]:o,A=e=>{n&&O.reportValidity&&(O.setCustomValidity(M(e)?"":e||""),O.reportValidity())},C={},E=H(o),D=i(o),L=(w||I(o))&&m(o.value)&&m(V)||q(o)&&""===o.value||""===V||Array.isArray(V)&&!V.length,R=j.bind(null,b,r,C),T=(e,t,r,n=_.maxLength,i=_.minLength)=>{let a=e?t:r;C[b]={type:e?n:i,message:a,ref:o,...R(e?n:i,a)}};if(a?!Array.isArray(V)||!V.length:c&&(!(E||D)&&(L||s(V))||M(V)&&
8!V||D&&!K(u).isValid||E&&!Q(u).isValid)){let{value:e,message:t}=z(c)?{value:!!c,message:c}:X(c);if(e&&(C[b]={type:_.required,message:t,ref:O,...R(_.required,t)},!r))return A(t),C}if(!L&&(!s(p)||!s(h))){let e,t;let n=X(h),i=X(p);if(s(V)||isNaN(V)){let r=o.valueAsDate||new Date(V),a=e=>new Date(new Date().toDateString()+" "+e),s="time"==o.type,l="week"==o.type;F(n.value)&&V&&(e=s?a(V)>a(n.value):l?V>n.value:r>new Date(n.value)),F(i.value)&&V&&(t=s?a(V)<a(i.value):l?V<i.value:r<new Date(i.value))}else{let r=o.valueAsNumber||(V?+V:V);s(n.value)||(e=r>n.value),s(i.value)||(t=r<i.value)}if((e||t)&&(T(!!e,n.message,i.message,_.max,_.min),!r))return A(C[b].message),C}if((d||f)&&!L&&(F(V)||a&&Array.isArray(V))){let e=X(d),t=X(f),n=!s(e.value)&&V.length>+e.value,i=!s(t.value)&&V.length<+t.value;if((n||i)&&(T(n,e.message,t.message),!r))return A(C[b].message),C}if(y&&!L&&F(V)){let{value:e,message:t}=X(y);if(G(e)&&!V.match(e)&&(C[b]={type:_.pattern,message:t,ref:o,...R(_.pattern,t)},!r))return A(t),C}if(g){if(B(g)){let e=J(await g(V,t),O);if(e&&(C[b]={...e,...R(_.validate,e.message)},!r))return A(e.message),C}else if(l(g)){let e={};for(let n in g){if(!k(e)&&!r)break;let i=J(await g[n](V,t),O,n);i&&(e={...i,...R(n,i.message)},A(i.message),r&&(C[b]=e))}if(!k(e)&&(C[b]={ref:O,...e},!r))return C}}return A(!0),C};function et(e,t){let r=Array.isArray(t)?t:D(t)?[t]:L(t),n=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,n=0;for(;n<r;)e=m(e)?n++:e[t[n++]];return e}(e,r),i=r.length-1,a=r[i];return n&&delete n[a],0!==i&&(l(n)&&k(n)||Array.isArray(n)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!m(e[t]))return!1;return!0}(n))&&et(e,r.slice(0,-1)),e}function er(){let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var en=e=>s(e)||!o(e);function ei(e,t){if(en(e)||en(t))return e===t;if(a(e)&&a(t))return e.getTime()===t.getTime();let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i of r){let r=e[i];if(!n.includes(i))return!1;if("ref"!==i){let e=t[i];if(a(r)&&a(e)||l(r)&&l(e)||Array.isArray(r)&&Array.isArray(e)?!ei(r,e):r!==e)return!1}}return!0}var ea=e=>"select-multiple"===e.type,es=e=>H(e)||i(e),eo=e=>q(e)&&e.isConnected,el=e=>{for(let t in e)if(B(e[t]))return!0;return!1};function eu(e,t={}){let r=Array.isArray(e);if(l(e)||r)for(let r in e)Array.isArray(e[r])||l(e[r])&&!el(e[r])?(t[r]=Array.isArray(e[r])?[]:{},eu(e[r],t[r])):s(e[r])||(t[r]=!0);return t}var ec=(e,t)=>(function e(t,r,n){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!el(t[i])?m(r)||en(n[i])?n[i]=Array.isArray(t[i])?eu(t[i],[]):{...eu(t[i])}:e(t[i],s(r)?{}:r[i],n[i]):n[i]=!ei(t[i],r[i]);return n})(e,t,eu(t)),ed=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>m(e)?e:t?""===e?NaN:e?+e:e:r&&F(e)?new Date(e):n?n(e):e;function ef(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:I(t)?t.files:H(t)?Q(e.refs).value:ea(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?K(e.refs).value:ed(m(t.value)?e.ref.value:t.value,e)}var ep=(e,t,r,n)=>{let i={};for(let r of e){let e=v(t,r);e&&R(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},eh=e=>m(e)?e:G(e)?e.source:l(e)?G(e.value)?e.value.source:e.value:e,ey=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function em(e,t,r){let n=v(e,r);if(n||D(r))return{error:n,name:r};let i=r.split(".");for(;i.length;){let n=i.join("."),a=v(t,n),s=v(e,n);if(a&&!Array.isArray(a)&&r!==n)break;if(s&&s.type)return{name:n,error:s};i.pop()}return{name:r}}var ev=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?!n.isOnChange:!i.isOnChange)||e),eg=(e,t)=>!y(v(e,t)).length&&et(e,t);let eb={mode:b.onSubmit,reValidateMode:b.onChange,shouldFocusError:!0};function e_(e={}){let t=n.useRef(),r=n.useRef(),[o,c]=n.useState({isDirty:!1,isValidating:!1,isLoading:B(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:B(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let r,n={...eb,...e},o={submitCount:0,isDirty:!1,isLoading:B(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},c={},f=(l(n.defaultValues)||l(n.values))&&h(n.defaultValues||n.values)||{},_=n.shouldUnregister?{}:h(f),w={action:!1,mount:!1,watch:!1},S={mount:new Set,unMount:new Set,array:new Set,watch:new Set},x=0,V={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},A={values:er(),array:er(),state:er()},C=e.resetOptions&&e.resetOptions.keepDirtyValues,D=N(n.mode),L=N(n.reValidateMode),T=n.criteriaMode===b.all,j=e=>t=>{clearTimeout(x),x=setTimeout(e,t)},z=async e=>{if(V.isValid||e){let e=n.resolver?k((await Z()).errors):await J(c,!0);e!==o.isValid&&A.state.next({isValid:e})}},H=e=>V.isValidating&&A.state.next({isValidating:e}),G=(e,t)=>{R(o.errors,e,t),A.state.next({errors:o.errors})},W=(e,t,r,n)=>{let i=v(c,e);if(i){let a=v(_,e,m(r)?v(f,e):r);m(a)||n&&n.defaultChecked||t?R(_,e,t?a:ef(i._f)):eu(e,a),w.mount&&z()}},Y=(e,t,r,n,i)=>{let a=!1,s=!1,l={name:e};if(!r||n){V.isDirty&&(s=o.isDirty,o.isDirty=l.isDirty=X(),a=s!==l.isDirty);let r=ei(v(f,e),t);s=v(o.dirtyFields,e),r?et(o.dirtyFields,e):R(o.dirtyFields,e,!0),l.dirtyFields=o.dirtyFields,a=a||V.dirtyFields&&!r!==s}if(r){let t=v(o.touchedFields,e);t||(R(o.touchedFields,e,r),l.touchedFields=o.touchedFields,a=a||V.touchedFields&&t!==r)}return a&&i&&A.state.next(l),a?l:{}},K=(t,n,i,a)=>{let s=v(o.errors,t),l=V.isValid&&M(n)&&o.isValid!==n;if(e.delayError&&i?(r=j(()=>G(t,i)))(e.delayError):(clearTimeout(x),r=null,i?R(o.errors,t,i):et(o.errors,t)),(i?!ei(s,i):s)||!k(a)||l){let e={...a,...l&&M(n)?{isValid:n}:{},errors:o.errors,name:t};o={...o,...e},A.state.next(e)}H(!1)},Z=async e=>
8n.resolver(_,n.context,ep(e||S.mount,c,n.criteriaMode,n.shouldUseNativeValidation)),Q=async e=>{let{errors:t}=await Z();if(e)for(let r of e){let e=v(t,r);e?R(o.errors,r,e):et(o.errors,r)}else o.errors=t;return t},J=async(e,t,r={valid:!0})=>{for(let i in e){let a=e[i];if(a){let{_f:e,...i}=a;if(e){let i=S.array.has(e.name),s=await ee(a,_,T,n.shouldUseNativeValidation&&!t,i);if(s[e.name]&&(r.valid=!1,t))break;t||(v(s,e.name)?i?$(o.errors,s,e.name):R(o.errors,e.name,s[e.name]):et(o.errors,e.name))}i&&await J(i,t,r)}}return r.valid},X=(e,t)=>(e&&t&&R(_,e,t),!ei(ek(),f)),el=(e,t,r)=>E(e,S,{...w.mount?_:m(t)?f:F(e)?{[e]:t}:t},r,t),eu=(e,t,r={})=>{let n=v(c,e),a=t;if(n){let r=n._f;r&&(r.disabled||R(_,e,ed(t,r)),a=q(r.ref)&&s(t)?"":t,ea(r.ref)?[...r.ref.options].forEach(e=>e.selected=a.includes(e.value)):r.refs?i(r.ref)?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(a)?!!a.find(t=>t===e.value):a===e.value)):r.refs[0]&&(r.refs[0].checked=!!a):r.refs.forEach(e=>e.checked=e.value===a):I(r.ref)?r.ref.value="":(r.ref.value=a,r.ref.type||A.values.next({name:e,values:{..._}})))}(r.shouldDirty||r.shouldTouch)&&Y(e,a,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&ex(e)},e_=(e,t,r)=>{for(let n in t){let i=t[n],s=`${e}.${n}`,o=v(c,s);!S.array.has(e)&&en(i)&&(!o||o._f)||a(i)?eu(s,i,r):e_(s,i,r)}},ew=(e,r,n={})=>{let i=v(c,e),a=S.array.has(e),l=h(r);R(_,e,l),a?(A.array.next({name:e,values:{..._}}),(V.isDirty||V.dirtyFields)&&n.shouldDirty&&A.state.next({name:e,dirtyFields:ec(f,_),isDirty:X(e,l)})):!i||i._f||s(l)?eu(e,l,n):e_(e,l,n),U(e,S)&&A.state.next({...o}),A.values.next({name:e,values:{..._}}),w.mount||t()},eS=async e=>{let t=e.target,i=t.name,a=!0,s=v(c,i);if(s){let l,d;let f=t.type?ef(s._f):u(e),p=e.type===g.BLUR||e.type===g.FOCUS_OUT,h=!ey(s._f)&&!n.resolver&&!v(o.errors,i)&&!s._f.deps||ev(p,v(o.touchedFields,i),o.isSubmitted,L,D),y=U(i,S,p);R(_,i,f),p?(s._f.onBlur&&s._f.onBlur(e),r&&r(0)):s._f.onChange&&s._f.onChange(e);let m=Y(i,f,p,!1),b=!k(m)||y;if(p||A.values.next({name:i,type:e.type,values:{..._}}),h)return V.isValid&&z(),b&&A.state.next({name:i,...y?{}:m});if(!p&&y&&A.state.next({...o}),H(!0),n.resolver){let{errors:e}=await Z([i]),t=em(o.errors,c,i),r=em(e,c,t.name||i);l=r.error,i=r.name,d=k(e)}else l=(await ee(s,_,T,n.shouldUseNativeValidation))[i],(a=isNaN(f)||f===v(_,i,f))&&(l?d=!1:V.isValid&&(d=await J(c,!0)));a&&(s._f.deps&&ex(s._f.deps),K(i,d,l,m))}},ex=async(e,t={})=>{let r,i;let a=O(e);
8if(H(!0),n.resolver){let t=await Q(m(e)?e:a);r=k(t),i=e?!a.some(e=>v(t,e)):r}else e?((i=(await Promise.all(a.map(async e=>{let t=v(c,e);return await J(t&&t._f?{[e]:t}:t)}))).every(Boolean))||o.isValid)&&z():i=r=await J(c);return A.state.next({...!F(e)||V.isValid&&r!==o.isValid?{}:{name:e},...n.resolver||!e?{isValid:r}:{},errors:o.errors,isValidating:!1}),t.shouldFocus&&!i&&P(c,e=>e&&v(o.errors,e),e?a:S.mount),i},ek=e=>{let t={...f,...w.mount?_:{}};return m(e)?t:F(e)?v(t,e):e.map(e=>v(t,e))},eV=(e,t)=>({invalid:!!v((t||o).errors,e),isDirty:!!v((t||o).dirtyFields,e),isTouched:!!v((t||o).touchedFields,e),error:v((t||o).errors,e)}),eO=(e,t,r)=>{let n=(v(c,e,{_f:{}})._f||{}).ref;R(o.errors,e,{...t,ref:n}),A.state.next({name:e,errors:o.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},eA=(e,t={})=>{for(let r of e?O(e):S.mount)S.mount.delete(r),S.array.delete(r),t.keepValue||(et(c,r),et(_,r)),t.keepError||et(o.errors,r),t.keepDirty||et(o.dirtyFields,r),t.keepTouched||et(o.touchedFields,r),n.shouldUnregister||t.keepDefaultValue||et(f,r);A.values.next({values:{..._}}),A.state.next({...o,...t.keepDirty?{isDirty:X()}:{}}),t.keepIsValid||z()},eC=(e,t={})=>{let r=v(c,e),i=M(t.disabled);return R(c,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),S.mount.add(e),r?i&&R(_,e,t.disabled?void 0:v(_,e,ef(r._f))):W(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.progressive?{required:!!t.required,min:eh(t.min),max:eh(t.max),minLength:eh(t.minLength),maxLength:eh(t.maxLength),pattern:eh(t.pattern)}:{},name:e,onChange:eS,onBlur:eS,ref:i=>{if(i){eC(e,t),r=v(c,e);let n=m(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,a=es(n),s=r._f.refs||[];(a?s.find(e=>e===n):n===r._f.ref)||(R(c,e,{_f:{...r._f,...a?{refs:[...s.filter(eo),n,...Array.isArray(v(f,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),W(e,!1,void 0,n))}else(r=v(c,e,{}))._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&!(d(S.array,e)&&w.action)&&S.unMount.add(e)}}},eF=()=>n.shouldFocusError&&P(c,e=>e&&v(o.errors,e),S.mount),eE=(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let i=h(_);if(A.state.next({isSubmitting:!0}),n.resolver){let{errors:e,values:t}=await Z();o.errors=e,i=t}else await J(c);et(o.errors,"root"),k(o.errors)?(A.state.next({errors:{}}),await e(i,r)):(t&&await t({...o.errors},r),eF(),setTimeout(eF)),A.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:k(o.errors),submitCount:o.submitCount+1,errors:o.errors})},eD=(r,n={})=>{let i=r||f,a=h(i),s=r&&!k(r)?a:f;if(n.keepDefaultValues||(f=i),!n.keepValues){if(n.keepDirtyValues||C)for(let e of S.mount)v(o.dirtyFields,e)?R(s,e,v(_,e)):ew(e,v(s,e));else{if(p&&m(r))for(let e of S.mount){let t=v(c,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(q(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}_=e.shouldUnregister?n.keepDefaultValues?h(f):{}:h(s),A.array.next({values:{...s}}),A.values.next({values:{...s}})}S={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!V.isValid||!!n.keepIsValid,w.watch=!!e.shouldUnregister,A.state.next({submitCount:n.keepSubmitCount?o.submitCount:0,isDirty:n.keepDirty?o.isDirty:!!(n.keepDefaultValues&&!ei(r,f)),isSubmitted:!!n.keepIsSubmitted&&o.isSubmitted,dirtyFields:n.keepDirtyValues?o.dirtyFields:n.keepDefaultValues&&r?ec(f,r):{},touchedFields:n.keepTouched?o.touchedFields:{},errors:n.keepErrors?o.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eL=(e,t)=>eD(B(e)?e(_):e,t);return{control:{register:eC,unregister:eA,getFieldState:eV,handleSubmit:eE,setError:eO,_executeSchema:Z,_getWatch:el,_getDirty:X,_updateValid:z,_removeUnmounted:()=>{for(let e of S.unMount){let t=v(c,e);t&&(t._f.refs?t._f.refs.every(e=>!eo(e)):!eo(t._f.ref))&&eA(e)}S.unMount=new Set},_updateFieldArray:(e,t=[],r,n,i=!0,a=!0)=>{if(n&&r){if(w.action=!0,a&&Array.isArray(v(c,e))){let t=r(v(c,e),n.argA,n.argB);i&&R(c,e,t)}if(a&&Array.isArray(v(o.errors,e))){let t=r(v(o.errors,e),n.argA,n.argB);i&&R(o.errors,e,t),eg(o.errors,e)}if(V.touchedFields&&a&&Array.isArray(v(o.touchedFields,e))){let t=r(v(o.touchedFields,e),n.argA,n.argB);i&&R(o.touchedFields,e,t)}V.dirtyFields&&(o.dirtyFields=ec(f,_)),A.state.next({name:e,isDirty:X(e,t),dirtyFields:o.dirtyFields,errors:o.errors,isValid:o.isValid})}else R(_,e,t)},_getFieldArray:t=>y(v(w.mount?_:f,t,e.shouldUnregister?v(f,t,[]):[])),_reset:eD,_resetDefaultValues:()=>B(n.defaultValues)&&n.defaultValues().then(e=>{eL(e,n.resetOptions),A.state.next({isLoading:!1})}),_updateFormState:e=>{o={...o,...e}},_subjects:A,_proxyFormState:V,get _fields(){return c},get _formValues(){return _},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return S},set _names(value){S=value},get _formState(){return o},set _formState(value){o=value},get _options(){return n},set _options(value){n={...n,...value}}},trigger:ex,register:eC,handleSubmit:eE,watch:(e,t)=>B(e)?A.values.subscribe({next:r=>e(el(void 0,t),r)}):el(e,t,!0),setValue:ew,getValues:ek,reset:eL,resetField:(e,t={})=>{v(c,e)&&(m(t.defaultValue)?ew(e,v(f,e)):(ew(e,t.defaultValue),R(f,e,t.defaultValue)),t.keepTouched||et(o.touchedFields,e),t.keepDirty||(et(o.dirtyFields,e),o.isDirty=t.defaultValue?X(e,v(f,e)):X()),!t.keepError&&(et(o.errors,e),V.isValid&&z()),A.state.next({...o}))},clearErrors:e=>
8{e&&O(e).forEach(e=>et(o.errors,e)),A.state.next({errors:e?o.errors:{}})},unregister:eA,setError:eO,setFocus:(e,t={})=>{let r=v(c,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eV}}(e,()=>c(e=>({...e}))),formState:o});let f=t.current.control;return f._options=e,C({subject:f._subjects.state,next:e=>{V(e,f._proxyFormState,f._updateFormState,!0)&&c({...f._formState})}}),n.useEffect(()=>{e.values&&!ei(e.values,r.current)?(f._reset(e.values,f._options.resetOptions),r.current=e.values):f._resetDefaultValues()},[e.values,f]),n.useEffect(()=>{f._state.mount||(f._updateValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),t.current.formState=x(o,f),t.current}},3519:function(e,t,r){"use strict";r.d(t,{r:function(){return b}});var n=r(132),i=r(2305),a=r(2596),s=r(8453),o=r(4329),l=r(4839),u=r(2513),c=r(8240);let d=(0,n.createContext)(null),f=Object.assign((0,i.yV)(function(e,t){let r=(0,a.M)(),{id:s="headlessui-label-".concat(r),passive:o=!1,...c}=e,f=function e(){let t=(0,n.useContext)(d);if(null===t){let t=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),p=(0,u.T)(t);(0,l.e)(()=>f.register(s),[s,f.register]);let h={ref:p,...f.props,id:s};return o&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in c&&delete c.onClick),(0,i.sY)({ourProps:h,theirProps:c,slot:f.slot||{},defaultTag:"label",name:f.name||"Label"})}),{});var p=r(4863),h=r(861),y=r(1222),m=r(5841);let v=(0,n.createContext)(null);v.displayName="GroupContext";let g=n.Fragment,b=Object.assign((0,i.yV)(function(e,t){let r=(0,a.M)(),{id:l="headlessui-switch-".concat(r),checked:d,defaultChecked:f=!1,onChange:p,name:g,value:b,form:_,...w}=e,S=(0,n.useContext)(v),x=(0,n.useRef)(null),k=(0,u.T)(x,t,null===S?null:S.setSwitch),[V,O]=function(e,t,r){let[i,a]=(0,n.useState)(r),s=void 0!==e,o=(0,n.useRef)(s),l=(0,n.useRef)(!1),u=(0,n.useRef)(!1);return!s||o.current||l.current?s||!o.current||u.current||(u.current=!0,o.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,o.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[s?e:i,(0,c.z)(e=>(s||a(e),null==t?void 0:t(e)))]}(d,p,f),A=(0,c.z)(()=>null==O?void 0:O(!V)),C=(0,c.z)(e=>{if((0,o.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),A()}),F=(0,c.z)(e=>{e.key===s.R.Space?(e.preventDefault(),A()):e.key===s.R.Enter&&function(e){var t;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let e of r.elements)if("INPUT"===e.tagName&&"submit"===e.type||"BUTTON"===e.tagName&&"submit"===e.type||"INPUT"===e.nodeName&&"image"===e.type){e.click();return}r.requestSubmit()}}(e.currentTarget)}),E=(0,c.z)(e=>e.preventDefault()),D=(0,n.useMemo)(()=>({checked:V}),[V]),L={id:l,ref:k,role:"switch",type:(0,h.f)(e,x),tabIndex:0,"aria-checked":V,"aria-labelledby":null==S?void 0:S.labelledby,"aria-describedby":null==S?void 0:S.describedby,onClick:C,onKeyUp:F,onKeyPress:E},R=(0,m.G)();return(0,n.useEffect)(()=>{var e;let t=null==(e=x.current)?void 0:e.closest("form");t&&void 0!==f&&R.addEventListener(t,"reset",()=>{O(f)})},[x,O]),n.createElement(n.Fragment,null,null!=g&&V&&n.createElement(y._,{features:y.A.Hidden,...(0,i.oA)({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:_,checked:V,name:g,value:b})}),(0,i.sY)({ourProps:L,theirProps:w,slot:D,defaultTag:"button",name:"Switch"}))}),{Group:function(e){var t;let[r,a]=(0,n.useState)(null),[s,o]=function(){let[e,t]=(0,n.useState)([]);return[e.length>0?e.join(" "):void 0,(0,n.useMemo)(()=>function(e){let r=(0,c.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),i=(0,n.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return n.createElement(d.Provider,{value:i},e.children)},[t])]}(),[l,u]=(0,p.f)(),f=(0,n.useMemo)(()=>({switch:r,setSwitch:a,labelledby:s,describedby:l}),[r,a,s,l]);return n.createElement(u,{name:"Switch.Description"},n.createElement(o,{name:"Switch.Label",props:{htmlFor:null==(t=f.switch)?void 0:t.id,onClick(e){r&&("LABEL"===e.currentTarget.tagName&&e.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},n.createElement(v.Provider,{value:f},(0,i.sY)({ourProps:{},theirProps:e,defaultTag:g,name:"Switch.Group"}))))},Label:f,Description:p.d})}}]);
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.