1?t-1:0),r=1;r{0} Impersonate User",realmChoice:"Realm",unknownUser:"Unknown user",loginTotpTitle:"Mobile Authenticator Setup",loginProfileTitle:"Update Account Information",loginIdpReviewProfileTitle:"Update Account Information",loginTimeout:"Your login attempt timed out. Login will start from the beginning.",reauthenticate:"Please re-authenticate to continue",oauthGrantTitle:"Grant Access to {0}",oauthGrantTitleHtml:"{0}",oauthGrantInformation:"Make sure you trust {0} by learning how {0} will handle your data.",oauthGrantReview:"You could review the ",oauthGrantTos:"terms of service.",oauthGrantPolicy:"privacy policy.",errorTitle:"We are sorry...",errorTitleHtml:"We are sorry ...",emailVerifyTitle:"Email verification",emailForgotTitle:"Forgot Your Password?",updateEmailTitle:"Update email",emailUpdateConfirmationSentTitle:"Confirmation email sent",emailUpdateConfirmationSent:"A confirmation email has been sent to {0}. You must follow the instructions of the former to complete the email update.",emailUpdatedTitle:"Email updated",emailUpdated:"The account email has been successfully updated to {0}.",updatePasswordTitle:"Update password",codeSuccessTitle:"Success code",codeErrorTitle:"Error code: {0}",displayUnsupported:"Requested display type unsupported",browserRequired:"Browser required to login",browserContinue:"Browser required to complete login",browserContinuePrompt:"Open browser and continue login? [y/n]:",browserContinueAnswer:"y",usb:"USB",nfc:"NFC",bluetooth:"Bluetooth",internal:"Internal",unknown:"Unknown",termsTitle:"Terms and Conditions",termsText:"Terms and conditions to be defined
",termsPlainText:"Terms and conditions to be defined.",recaptchaFailed:"Invalid Recaptcha",recaptchaNotConfigured:"Recaptcha is required, but not configured",consentDenied:"Consent denied.",noAccount:"New user?",username:"Username",usernameOrEmail:"Username or email",firstName:"First name",givenName:"Given name",fullName:"Full name",lastName:"Last name",familyName:"Family name",email:"Email",password:"Password",passwordConfirm:"Confirm password",passwordNew:"New Password",passwordNewConfirm:"New Password confirmation",rememberMe:"Remember me",authenticatorCode:"One-time code",address:"Address",street:"Street",locality:"City or Locality",region:"State, Province, or Region",postal_code:"Zip or Postal code",country:"Country",emailVerified:"Email verified",website:"Web page",phoneNumber:"Phone number",phoneNumberVerified:"Phone number verified",gender:"Gender",birthday:"Birthdate",zoneinfo:"Time zone",gssDelegationCredential:"GSS Delegation Credential",logoutOtherSessions:"Sign out from other devices",profileScopeConsentText:"User profile",emailScopeConsentText:"Email address",addressScopeConsentText:"Address",phoneScopeConsentText:"Phone number",offlineAccessScopeConsentText:"Offline Access",samlRoleListScopeConsentText:"My Roles",rolesScopeConsentText:"User roles",restartLoginTooltip:"Restart login",loginTotpIntro:"You need to set up a One Time Password generator to access this account",loginTotpStep1:"Install one of the following applications on your mobile:",loginTotpStep2:"Open the application and scan the barcode:",loginTotpStep3:"Enter the one-time code provided by the application and click Submit to finish the setup.",loginTotpStep3DeviceName:"Provide a Device Name to help you manage your OTP devices.",loginTotpManualStep2:"Open the application and enter the key:",loginTotpManualStep3:"Use the following configuration values if the application allows setting them:",loginTotpUnableToScan:"Unable to scan?",loginTotpScanBarcode:"Scan barcode?",loginCredential:"Credential",loginOtpOneTime:"One-time code",loginTotpType:"Type",loginTotpAlgorithm:"Algorithm",loginTotpDigits:"Digits",loginTotpInterval:"Interval",loginTotpCounter:"Counter",loginTotpDeviceName:"Device Name","loginTotp.totp":"Time-based","loginTotp.hotp":"Counter-based",totpAppFreeOTPName:"FreeOTP",totpAppGoogleName:"Google Authenticator",totpAppMicrosoftAuthenticatorName:"Microsoft Authenticator",loginChooseAuthenticator:"Select login method",oauthGrantRequest:"Do you grant these access privileges?",inResource:"in",oauth2DeviceVerificationTitle:"Device Login",verifyOAuth2DeviceUserCode:"Enter the code provided by your device and click Submit",oauth2DeviceInvalidUserCodeMessage:"Invalid code, please try again.",oauth2DeviceExpiredUserCodeMessage:"The code has expired. Please go back to your device and try connecting again.",oauth2DeviceVerificationCompleteHeader:"Device Login Successful",oauth2DeviceVerificationCompleteMessage:"You may close this browser window and go back to your device.",oauth2DeviceVerificationFailedHeader:"Device Login Failed",oauth2DeviceVerificationFailedMessage:"You may close this browser window and go back to your device and try connecting again.",oauth2DeviceConsentDeniedMessage:"Consent denied for connecting the device.",oauth2DeviceAuthorizationGrantDisabledMessage:"Client is not allowed to initiate OAuth 2.0 Device Authorization Grant. The flow is disabled for the client.",emailVerifyInstruction1:"An email with instructions to verify your email address has been sent to your address {0}.",emailVerifyInstruction2:"Haven't received a verification code in your email?",emailVerifyInstruction3:"to re-send the email.",emailLinkIdpTitle:"Link {0}",emailLinkIdp1:"An email with instructions to link {0} account {1} with your {2} account has been sent to you.",emailLinkIdp2:"Haven't received a verification code in your email?",emailLinkIdp3:"to re-send the email.",emailLinkIdp4:"If you already verified the email in different browser",emailLinkIdp5:"to continue.",backToLogin:"« Back to Login",emailInstruction:"Enter your username or email address and we will send you instructions on how to create a new password.",emailInstructionUsername:"Enter your username and we will send you instructions on how to create a new password.",copyCodeInstruction:"Please copy this code and paste it into your application:",pageExpiredTitle:"Page has expired",pageExpiredMsg1:"To restart the login process",pageExpiredMsg2:"To continue the login process",personalInfo:"Personal Info:",role_admin:"Admin","role_realm-admin":"Realm Admin","role_create-realm":"Create realm","role_create-client":"Create client","role_view-realm":"View realm","role_view-users":"View users","role_view-applications":"View applications","role_view-clients":"View clients","role_view-events":"View events","role_view-identity-providers":"View identity providers","role_manage-realm":"Manage realm","role_manage-users":"Manage users","role_manage-applications":"Manage applications","role_manage-identity-providers":"Manage identity providers","role_manage-clients":"Manage clients","role_manage-events":"Manage events","role_view-profile":"View profile","role_manage-account":"Manage account","role_manage-account-links":"Manage account links","role_read-token":"Read token","role_offline-access":"Offline access",client_account:"Account","client_account-console":"Account Console","client_security-admin-console":"Security Admin Console","client_admin-cli":"Admin CLI","client_realm-management":"Realm Management",client_broker:"Broker",requiredFields:"Required fields",invalidUserMessage:"Invalid username or password.",invalidUsernameMessage:"Invalid username.",invalidUsernameOrEmailMessage:"Invalid username or email.",invalidPasswordMessage:"Invalid password.",invalidEmailMessage:"Invalid email address.",accountDisabledMessage:"Account is disabled, contact your administrator.",accountTemporarilyDisabledMessage:"Account is temporarily disabled; contact your administrator or retry later.",expiredCodeMessage:"Login timeout. Please sign in again.",expiredActionMessage:"Action expired. Please continue with login now.",expiredActionTokenNoSessionMessage:"Action expired.",expiredActionTokenSessionExistsMessage:"Action expired. Please start again.",sessionLimitExceeded:"There are too many sessions",missingFirstNameMessage:"Please specify first name.",missingLastNameMessage:"Please specify last name.",missingEmailMessage:"Please specify email.",missingUsernameMessage:"Please specify username.",missingPasswordMessage:"Please specify password.",missingTotpMessage:"Please specify authenticator code.",missingTotpDeviceNameMessage:"Please specify device name.",notMatchPasswordMessage:"Passwords don't match.","error-invalid-value":"Invalid value.","error-invalid-blank":"Please specify value.","error-empty":"Please specify value.","error-invalid-length":"Length must be between {1} and {2}.","error-invalid-length-too-short":"Minimal length is {1}.","error-invalid-length-too-long":"Maximal length is {2}.","error-invalid-email":"Invalid email address.","error-invalid-number":"Invalid number.","error-number-out-of-range":"Number must be between {1} and {2}.","error-number-out-of-range-too-small":"Number must have minimal value of {1}.","error-number-out-of-range-too-big":"Number must have maximal value of {2}.","error-pattern-no-match":"Invalid value.","error-invalid-uri":"Invalid URL.","error-invalid-uri-scheme":"Invalid URL scheme.","error-invalid-uri-fragment":"Invalid URL fragment.","error-user-attribute-required":"Please specify this field.","error-invalid-date":"Invalid date.","error-user-attribute-read-only":"This field is read only.","error-username-invalid-character":"Value contains invalid character.","error-person-name-invalid-character":"Value contains invalid character.",invalidPasswordExistingMessage:"Invalid existing password.",invalidPasswordBlacklistedMessage:"Invalid password: password is blacklisted.",invalidPasswordConfirmMessage:"Password confirmation doesn't match.",invalidTotpMessage:"Invalid authenticator code.",usernameExistsMessage:"Username already exists.",emailExistsMessage:"Email already exists.",federatedIdentityExistsMessage:"User with {0} {1} already exists. Please login to account management to link the account.",federatedIdentityUnavailableMessage:"User {0} authenticated with identity provider {1} does not exist. Please contact your administrator.",confirmLinkIdpTitle:"Account already exists",federatedIdentityConfirmLinkMessage:"User with {0} {1} already exists. How do you want to continue?",federatedIdentityConfirmReauthenticateMessage:"Authenticate to link your account with {0}",nestedFirstBrokerFlowMessage:"The {0} user {1} is not linked to any known user.",confirmLinkIdpReviewProfile:"Review profile",confirmLinkIdpContinue:"Add to existing account",configureTotpMessage:"You need to set up Mobile Authenticator to activate your account.",configureBackupCodesMessage:"You need to set up Backup Codes to activate your account.",updateProfileMessage:"You need to update your user profile to activate your account.",updatePasswordMessage:"You need to change your password to activate your account.",updateEmailMessage:"You need to update your email address to activate your account.",resetPasswordMessage:"You need to change your password.",verifyEmailMessage:"You need to verify your email address to activate your account.",linkIdpMessage:"You need to verify your email address to link your account with {0}.",emailSentMessage:"You should receive an email shortly with further instructions.",emailSendErrorMessage:"Failed to send email, please try again later.",accountUpdatedMessage:"Your account has been updated.",accountPasswordUpdatedMessage:"Your password has been updated.",delegationCompleteHeader:"Login Successful",delegationCompleteMessage:"You may close this browser window and go back to your console application.",delegationFailedHeader:"Login Failed",delegationFailedMessage:"You may close this browser window and go back to your console application and try logging in again.",noAccessMessage:"No access",invalidPasswordMinLengthMessage:"Invalid password: minimum length {0}.",invalidPasswordMaxLengthMessage:"Invalid password: maximum length {0}.",invalidPasswordMinDigitsMessage:"Invalid password: must contain at least {0} numerical digits.",invalidPasswordMinLowerCaseCharsMessage:"Invalid password: must contain at least {0} lower case characters.",invalidPasswordMinUpperCaseCharsMessage:"Invalid password: must contain at least {0} upper case characters.",invalidPasswordMinSpecialCharsMessage:"Invalid password: must contain at least {0} special characters.",invalidPasswordNotUsernameMessage:"Invalid password: must not be equal to the username.",invalidPasswordNotEmailMessage:"Invalid password: must not be equal to the email.",invalidPasswordRegexPatternMessage:"Invalid password: fails to match regex pattern(s).",invalidPasswordHistoryMessage:"Invalid password: must not be equal to any of last {0} passwords.",invalidPasswordGenericMessage:"Invalid password: new password doesn't match password policies.",failedToProcessResponseMessage:"Failed to process response",httpsRequiredMessage:"HTTPS required",realmNotEnabledMessage:"Realm not enabled",invalidRequestMessage:"Invalid Request",successLogout:"You are logged out",failedLogout:"Logout failed",unknownLoginRequesterMessage:"Unknown login requester",loginRequesterNotEnabledMessage:"Login requester not enabled",bearerOnlyMessage:"Bearer-only applications are not allowed to initiate browser login",standardFlowDisabledMessage:"Client is not allowed to initiate browser login with given response_type. Standard flow is disabled for the client.",implicitFlowDisabledMessage:"Client is not allowed to initiate browser login with given response_type. Implicit flow is disabled for the client.",invalidRedirectUriMessage:"Invalid redirect uri",unsupportedNameIdFormatMessage:"Unsupported NameIDFormat",invalidRequesterMessage:"Invalid requester",registrationNotAllowedMessage:"Registration not allowed",resetCredentialNotAllowedMessage:"Reset Credential not allowed",permissionNotApprovedMessage:"Permission not approved.",noRelayStateInResponseMessage:"No relay state in response from identity provider.",insufficientPermissionMessage:"Insufficient permissions to link identities.",couldNotProceedWithAuthenticationRequestMessage:"Could not proceed with authentication request to identity provider.",couldNotObtainTokenMessage:"Could not obtain token from identity provider.",unexpectedErrorRetrievingTokenMessage:"Unexpected error when retrieving token from identity provider.",unexpectedErrorHandlingResponseMessage:"Unexpected error when handling response from identity provider.",identityProviderAuthenticationFailedMessage:"Authentication failed. Could not authenticate with identity provider.",couldNotSendAuthenticationRequestMessage:"Could not send authentication request to identity provider.",unexpectedErrorHandlingRequestMessage:"Unexpected error when handling authentication request to identity provider.",invalidAccessCodeMessage:"Invalid access code.",sessionNotActiveMessage:"Session not active.",invalidCodeMessage:"An error occurred, please login again through your application.",cookieNotFoundMessage:"Cookie not found. Please make sure cookies are enabled in your browser.",insufficientLevelOfAuthentication:"The requested level of authentication has not been satisfied.",identityProviderUnexpectedErrorMessage:"Unexpected error when authenticating with identity provider",identityProviderMissingStateMessage:"Missing state parameter in response from identity provider.",identityProviderInvalidResponseMessage:"Invalid response from identity provider.",identityProviderInvalidSignatureMessage:"Invalid signature in response from identity provider.",identityProviderNotFoundMessage:"Could not find an identity provider with the identifier.",identityProviderLinkSuccess:"You successfully verified your email. Please go back to your original browser and continue there with the login.",staleCodeMessage:"This page is no longer valid, please go back to your application and sign in again",realmSupportsNoCredentialsMessage:"Realm does not support any credential type.",credentialSetupRequired:"Cannot login, credential setup required.",identityProviderNotUniqueMessage:"Realm supports multiple identity providers. Could not determine which identity provider should be used to authenticate with.",emailVerifiedMessage:"Your email address has been verified.",staleEmailVerificationLink:"The link you clicked is an old stale link and is no longer valid. Maybe you have already verified your email.",identityProviderAlreadyLinkedMessage:"Federated identity returned by {0} is already linked to another user.",confirmAccountLinking:"Confirm linking the account {0} of identity provider {1} with your account.",confirmEmailAddressVerification:"Confirm validity of e-mail address {0}.",confirmExecutionOfActions:"Perform the following action(s)",locale_ar:"\u0639\u0631\u0628\u064a",locale_ca:"Catal\xe0",locale_cs:"\u010ce\u0161tina",locale_da:"Dansk",locale_de:"Deutsch",locale_en:"English",locale_es:"Espa\xf1ol",locale_fr:"Fran\xe7ais",locale_hu:"Magyar",locale_it:"Italiano",locale_ja:"\u65e5\u672c\u8a9e",locale_lt:"Lietuvi\u0173",locale_nl:"Nederlands",locale_no:"Norsk",locale_pl:"Polski",locale_pt_BR:"Portugu\xeas (Brasil)","locale_pt-BR":"Portugu\xeas (Brasil)",locale_ru:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",locale_sk:"Sloven\u010dina",locale_sv:"Svenska",locale_tr:"T\xfcrk\xe7e","locale_zh-CN":"\u4e2d\u6587\u7b80\u4f53",locale_fi:"Suomi",backToApplication:"« Back to Application",missingParameterMessage:"Missing parameters: {0}",clientNotFoundMessage:"Client not found.",clientDisabledMessage:"Client disabled.",invalidParameterMessage:"Invalid parameter: {0}",alreadyLoggedIn:"You are already logged in.",differentUserAuthenticated:"You are already authenticated as different user '{0}' in this session. Please sign out first.",brokerLinkingSessionExpired:"Requested broker account linking, but current session is no longer valid.",proceedWithAction:"» Click here to proceed",acrNotFulfilled:"Authentication requirements not fulfilled","requiredAction.CONFIGURE_TOTP":"Configure OTP","requiredAction.terms_and_conditions":"Terms and Conditions","requiredAction.UPDATE_PASSWORD":"Update Password","requiredAction.UPDATE_PROFILE":"Update Profile","requiredAction.VERIFY_EMAIL":"Verify Email","requiredAction.CONFIGURE_RECOVERY_AUTHN_CODES":"Generate Recovery Codes","requiredAction.webauthn-register-passwordless":"Webauthn Register Passwordless",invalidTokenRequiredActions:"Required actions included in the link are not valid",doX509Login:"You will be logged in as:",clientCertificate:"X509 client certificate:",noCertificate:"[No Certificate]",pageNotFound:"Page not found",internalServerError:"An internal server error has occurred","console-username":"Username:","console-password":"Password:","console-otp":"One Time Password:","console-new-password":"New Password:","console-confirm-password":"Confirm Password:","console-update-password":"Update of your password is required.","console-verify-email":"You need to verify your email address. We sent an email to {0} that contains a verification code. Please enter this code into the input below.","console-email-code":"Email Code:","console-accept-terms":"Accept Terms? [y/n]:","console-accept":"y","openshift.scope.user_info":"User information","openshift.scope.user_check-access":"User access information","openshift.scope.user_full":"Full Access","openshift.scope.list-projects":"List projects","saml.post-form.title":"Authentication Redirect","saml.post-form.message":"Redirecting, please wait.","saml.post-form.js-disabled":"JavaScript is disabled. We strongly recommend to enable it. Click the button below to continue. ","saml.artifactResolutionServiceInvalidResponse":"Unable to resolve artifact.","otp-display-name":"Authenticator Application","otp-help-text":"Enter a verification code from authenticator application.","password-display-name":"Password","password-help-text":"Sign in by entering your password.","auth-username-form-display-name":"Username","auth-username-form-help-text":"Start sign in by entering your username","auth-username-password-form-display-name":"Username and password","auth-username-password-form-help-text":"Sign in by entering your username and password.","auth-recovery-authn-code-form-display-name":"Recovery Authentication Code","auth-recovery-authn-code-form-help-text":"Enter a recovery authentication code from a previously generated list.","auth-recovery-code-info-message":"Enter the specified recovery code.","auth-recovery-code-prompt":"Recovery code #{0}","auth-recovery-code-header":"Login with a recovery authentication code","recovery-codes-error-invalid":"Invalid recovery authentication code","recovery-code-config-header":"Recovery Authentication Codes","recovery-code-config-warning-title":"These recovery codes won't appear again after leaving this page","recovery-code-config-warning-message":"Make sure to print, download, or copy them to a password manager and keep them save. Canceling this setup will remove these recovery codes from your account.","recovery-codes-print":"Print","recovery-codes-download":"Download","recovery-codes-copy":"Copy","recovery-codes-copied":"Copied","recovery-codes-confirmation-message":"I have saved these codes somewhere safe","recovery-codes-action-complete":"Complete setup","recovery-codes-action-cancel":"Cancel setup","recovery-codes-download-file-header":"Keep these recovery codes somewhere safe.","recovery-codes-download-file-description":"Recovery codes are single-use passcodes that allow you to sign in to your account if you do not have access to your authenticator.","recovery-codes-download-file-date":"These codes were generated on","recovery-codes-label-default":"Recovery codes","webauthn-display-name":"Security Key","webauthn-help-text":"Use your security key to sign in.","webauthn-passwordless-display-name":"Security Key","webauthn-passwordless-help-text":"Use your security key for passwordless sign in.","webauthn-login-title":"Security Key login","webauthn-registration-title":"Security Key Registration","webauthn-available-authenticators":"Available Security Keys","webauthn-unsupported-browser-text":"WebAuthn is not supported by this browser. Try another one or contact your administrator.","webauthn-doAuthenticate":"Sign in with Security Key","webauthn-createdAt-label":"Created","webauthn-error-title":"Security Key Error","webauthn-error-registration":"Failed to register your Security key.
{0}","webauthn-error-api-get":"Failed to authenticate by the Security key.
{0}","webauthn-error-different-user":"First authenticated user is not the one authenticated by the Security key.","webauthn-error-auth-verification":"Security key authentication result is invalid.
{0}","webauthn-error-register-verification":"Security key registration result is invalid.
{0}","webauthn-error-user-not-found":"Unknown user authenticated by the Security key.","identity-provider-redirector":"Connect with another Identity Provider","identity-provider-login-label":"Or sign in with","idp-email-verification-display-name":"Email Verification","idp-email-verification-help-text":"Link your account by validating your email.","idp-username-password-form-display-name":"Username and password","idp-username-password-form-help-text":"Link your account by logging in.",finalDeletionConfirmation:"If you delete your account, it cannot be restored. To keep your account, click Cancel.",irreversibleAction:"This action is irreversible",deleteAccountConfirm:"Delete account confirmation",deletingImplies:"Deleting your account implies:",errasingData:"Erasing all your data",loggingOutImmediately:"Logging you out immediately",accountUnusable:"Any subsequent use of the application will not be possible with this account",userDeletedSuccessfully:"User deleted successfully","access-denied":"Access denied","frontchannel-logout.title":"Logging out","frontchannel-logout.message":"You are logging out from following apps",logoutConfirmTitle:"Logging out",logoutConfirmHeader:"Do you want to logout?",doLogout:"Logout",readOnlyUsernameMessage:"You can't update your username as it is read-only."}},4978:function(e,t,n){"use strict";n.d(t,{L:function(){return h},s:function(){return p}});var r=n(4165),o=n(5861),a=n(885),i=n(184),l=(n(6660),n(2791)),u=n(958);function s(e){return c.apply(this,arguments)}function c(){return(c=(0,o.Z)((0,r.Z)().mark((function e(t){var o,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,function(){switch(t){case"ar":return n.e(6195).then(n.bind(n,6195));case"ca":return n.e(6165).then(n.bind(n,6165));case"cs":return n.e(4568).then(n.bind(n,4568));case"da":return n.e(4459).then(n.bind(n,4459));case"de":return n.e(5541).then(n.bind(n,5541));case"en":return Promise.resolve().then(n.bind(n,958));case"es":return n.e(8804).then(n.bind(n,8804));case"fi":return n.e(2693).then(n.bind(n,2693));case"fr":return n.e(3967).then(n.bind(n,3967));case"hu":return n.e(5338).then(n.bind(n,1317));case"it":return n.e(5838).then(n.bind(n,5838));case"ja":return n.e(8429).then(n.bind(n,8429));case"lt":return n.e(7383).then(n.bind(n,7383));case"lv":return n.e(7424).then(n.bind(n,7424));case"nl":return n.e(5064).then(n.bind(n,5064));case"no":return n.e(2830).then(n.bind(n,2830));case"pl":return n.e(3250).then(n.bind(n,3250));case"pt-BR":return n.e(7265).then(n.bind(n,7265));case"ru":return n.e(8817).then(n.bind(n,8817));case"sk":return n.e(5445).then(n.bind(n,5445));case"sv":return n.e(7354).then(n.bind(n,7354));case"tr":return n.e(6672).then(n.bind(n,6672));case"zh-CN":return n.e(2958).then(n.bind(n,2958));default:return{default:{}}}}();case 2:return o=e.sent,a=o.default,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var f=n(9883),d=n(1644),p="en";function h(e){return{useI18n:function(t){var n=t.kcContext,i=(0,l.useState)(void 0),c=(0,a.Z)(i,2),d=c[0],h=c[1],v=(0,l.useRef)(!1);return(0,l.useEffect)((function(){v.current||(v.current=!0,(0,o.Z)((0,r.Z)().mark((function t(){var o,a,i,l,c,d,v,y,b,w;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return y=null!==(o=n.locale)&&void 0!==o?o:{},b=y.currentLanguageTag,w=void 0===b?p:b,t.t0=h,t.t1=Object,t.t2=Object,t.t3={},t.t4=m,t.t5=Object.assign(Object.assign(Object.assign({},u.default),null!==(a=g[p])&&void 0!==a?a:{}),null!==(i=e[p])&&void 0!==i?i:{}),t.t6=Object,t.t7=Object,t.t8=Object,t.t9={},t.next=13,s(w);case 13:t.t10=t.sent,t.t11=t.t8.assign.call(t.t8,t.t9,t.t10),t.t12=null!==(l=g[w])&&void 0!==l?l:{},t.t13=t.t7.assign.call(t.t7,t.t11,t.t12),t.t14=null!==(c=e[w])&&void 0!==c?c:{},t.t15=t.t6.assign.call(t.t6,t.t13,t.t14),t.t16={fallbackMessages:t.t5,messages:t.t15},t.t17=(0,t.t4)(t.t16),t.t18=t.t2.assign.call(t.t2,t.t3,t.t17),t.t19={currentLanguageTag:w,changeLocale:function(e){var t=n.locale;(0,f.h)(void 0!==t,"Internationalization not enabled");var r=t.supported.find((function(t){return t.languageTag===e}));(0,f.h)(void 0!==r,"".concat(e," need to be enabled in Keycloak admin")),window.location.href=r.url,(0,f.h)(!1,"never")},labelBySupportedLanguageTag:Object.fromEntries((null!==(v=null===(d=n.locale)||void 0===d?void 0:d.supported)&&void 0!==v?v:[]).map((function(e){return[e.languageTag,e.label]})))},t.t20=t.t1.assign.call(t.t1,t.t18,t.t19),(0,t.t0)(t.t20);case 25:case"end":return t.stop()}}),t)})))())}),[]),null!==d&&void 0!==d?d:null}}}function m(e){var t=e.fallbackMessages,n=e.messages;function r(e){var r,o=e.key,a=e.args,l=e.doRenderMarkdown,u=null!==(r=n[o])&&void 0!==r?r:t[o];if(void 0!==u){var s=u,c=function(){var e,t=null===(e=s.match(/{[0-9]+}/g))||void 0===e?void 0:e.map((function(e){return e.match(/{([0-9]+)}/)[1]})).map((function(e){return parseInt(e)})).sort((function(e,t){return e-t}))[0];if(void 0===t)return s;var n=s;return a.forEach((function(e,r){void 0!==e&&(n=n.replace(new RegExp("\\{".concat(r+t,"\\}"),"g"),e))})),n}();return l?(0,i.jsx)(d.U,Object.assign({allowDangerousHtml:!0,renderers:{paragraph:"span"}},{children:c})):c}}function o(e){var t=e.key,n=e.args,o=e.doRenderMarkdown,a=t.match(/^\$\{([^{]+)\}$/),l=null===a?t:a[1],u=r({key:l,args:n,doRenderMarkdown:o});return void 0!==u?u:o?(0,i.jsx)("span",{children:l}):l}return{msgStr:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o1?t-1:0),r=1;r1?t-1:0),r=1;r",requiredActions:void 0,skipLink:!1,actionUri:"#",client:{clientId:"myApp",baseUrl:"#"}})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"error.ftl",client:{clientId:"myApp",baseUrl:"#"},message:{type:"error",summary:"This is the error message"}})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"login-reset-password.ftl",realm:Object.assign(Object.assign({},D.realm),{loginWithEmailAllowed:!1}),url:H})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"login-verify-email.ftl",user:{email:"john.doe@gmail.com"}})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"terms.ftl"})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"login-otp.ftl",otpLogin:{userOtpCredentials:[{id:"id1",userLabel:"label1"},{id:"id2",userLabel:"label2"}]}})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"login-username.ftl",url:H,realm:Object.assign(Object.assign({},D.realm),{loginWithEmailAllowed:!0,rememberMe:!0,password:!0,resetPasswordAllowed:!0,registrationAllowed:!0}),social:{displayInfo:!0},usernameHidden:!1,login:{},registrationDisabled:!1})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"login-password.ftl",url:H,realm:Object.assign(Object.assign({},D.realm),{resetPasswordAllowed:!0}),social:{displayInfo:!1},login:{}})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"webauthn-authenticate.ftl",url:H,authenticators:{authenticators:[]},realm:Object.assign({},D.realm),challenge:"",userVerification:"not specified",rpId:"",createTimeout:"0",isUserIdentified:"false",shouldDisplayAuthenticators:!1,social:{displayInfo:!1},login:{}})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"login-update-password.ftl",username:"anUsername"})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"login-update-profile.ftl",user:{editUsernameAllowed:!0,username:"anUsername",email:"foo@example.com",firstName:"aFirstName",lastName:"aLastName"}})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"login-idp-link-confirm.ftl",idpAlias:"FranceConnect"})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"login-idp-link-email.ftl",idpAlias:"FranceConnect",brokerContext:{username:"anUsername"}})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"login-config-totp.ftl",totp:{totpSecretEncoded:"KVVF G2BY N4YX S6LB IUYT K2LH IFYE 4SBV",qrUrl:"#",totpSecretQrCode:"iVBORw0KGgoAAAANSUhEUgAAAPYAAAD2AQAAAADNaUdlAAACM0lEQVR4Xu3OIZJgOQwDUDFd2UxiurLAVnnbHw4YGDKtSiWOn4Gxf81//7r/+q8b4HfLGBZDK9d85NmNR+sB42sXvOYrN5P1DcgYYFTGfOlbzE8gzwy3euweGizw7cfdl34/GRhlkxjKNV+5AebPXPORX1JuB9x8ZfbyyD2y1krWAKsbMq1HnqQDaLfa77p4+MqvzEGSqvSAD/2IHW2yHaigR9tX3m8dDIYGcNf3f+gDpVBZbZU77zyJ6Rlcy+qoTMG887KAPD9hsh6a1Sv3gJUHGHUAxSMzj7zqDDe7Phmt2eG+8UsMxjRGm816MAO+8VMl1R1jGHOrZB/5Zo/WXAPgxixm9Mo96vDGrM1eOto8c4Ax4wF437mifOXlpiPzCnN7Y9l95NnEMxgMY9AAGA8fucH14Y1aVb6N/cqrmyh0BVht7k1e+bU8LK0Cg5vmVq9c5vHIjOfqxDIfeTraNVTwewa4wVe+SW5N+uP1qACeudUZbqGOfA6VZV750Noq2Xx3kpveV44ZelSV1V7KFHzkWyVrrlUwG0Pl9pWnoy3vsQoME6vKI69i5osVgwWzHT7zjmJtMcNUSVn1oYMd7ZodbgowZl45VG0uVuLPUr1yc79uaQBag/mqR34xhlWyHm1prplHboCWdZ4TeZjsK8+dI+jbz1C5hl65mcpgB5dhcj8+dGO+0Ko68+lD37JDD83dpDLzzK+TrQyaVwGj6pUboGV+7+AyN8An/pf84/7rv/4/1l4OCc/1BYMAAAAASUVORK5CYII=",manualUrl:"#",totpSecret:"G4nsI8lQagRMUchH8jEG",otpCredentials:[],supportedApplications:["FreeOTP","Google Authenticator"],policy:{algorithm:"HmacSHA1",digits:6,lookAheadWindow:1,type:"totp",period:30}}})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"logout-confirm.ftl",url:Object.assign(Object.assign({},D.url),{logoutConfirmAction:"Continuer?"}),client:{clientId:"myApp",baseUrl:"#"},logoutConfirm:{code:"123",skipLink:!1}})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"update-user-profile.ftl",profile:{attributes:z,attributesByName:R}})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"idp-review-user-profile.ftl",profile:{context:"IDP_REVIEW",attributes:z,attributesByName:R}})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"update-email.ftl",email:{value:"email@example.com"}})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"select-authenticator.ftl",auth:{authenticationSelections:[{authExecId:"f607f83c-537e-42b7-99d7-c52d459afe84",displayName:"otp-display-name",helpText:"otp-help-text",iconCssClass:"kcAuthenticatorOTPClass"},{authExecId:"5ed881b1-84cd-4e9b-b4d9-f329ea61a58c",displayName:"webauthn-display-name",helpText:"webauthn-help-text",iconCssClass:"kcAuthenticatorWebAuthnClass"}]}})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"saml-post-form.ftl",samlPost:{url:""}})),(0,N.id)(Object.assign(Object.assign({},D),{pageId:"login-page-expired.ftl"}))]);(0,a.h)(),(0,a.h)();var B=n(3991);var V=n(4156);var q=n(7816),W=n(48);function $(e){var t=(null!==e&&void 0!==e?e:{}).mockData;return{getKcContext:function(e){var n,r,o=null!==e&&void 0!==e?e:{},i=o.mockPageId,l=o.storyPartialKcContext,u="undefined"===typeof window?void 0:window[V.i];if(void 0!==i&&void 0===u){console.log("%cKeycloakify: ".concat((0,W.r)({mockPageId:i})," set to ").concat(i,"."),"background: red; color: yellow; font-size: medium");var s=U.find((function(e){return e.pageId===i})),c=function(){var e={},n=null===t||void 0===t?void 0:t.find((function(e){return e.pageId===i}));return void 0!==n&&(0,B.n)({target:e,source:n}),void 0!==l&&(0,B.n)({target:e,source:l}),0===Object.keys(e).length?void 0:e}();void 0===s&&void 0===c&&console.warn(["WARNING: You declared the non build in page ".concat(i," but you didn't "),"provide mock data needed to debug the page outside of Keycloak as you are trying to do now.","Please check the documentation of the getKcContext function"].join("\n"));var f={};if((0,B.n)({target:f,source:void 0!==s?s:Object.assign({pageId:i},D)}),void 0!==c&&((0,B.n)({target:f,source:c}),"register-user-profile.ftl"===c.pageId||"update-user-profile.ftl"===c.pageId||"idp-review-user-profile.ftl"===c.pageId)){(0,a.h)("register-user-profile.ftl"===(null===s||void 0===s?void 0:s.pageId)||"update-user-profile.ftl"===(null===s||void 0===s?void 0:s.pageId)||"idp-review-user-profile.ftl"===(null===s||void 0===s?void 0:s.pageId));var d=s.profile.attributes;(0,N.id)(f).profile.attributes=[],(0,N.id)(f).profile.attributesByName={};var p=(0,j.Z)(null!==(r=null===(n=c.profile)||void 0===n?void 0:n.attributes)&&void 0!==r?r:[]).filter(function(e){var t=e instanceof Object?function(t){return e.indexOf(t)<0}:function(t){return t!==e};return function(e){return t(e)}}(void 0));d.forEach((function(e){var t=p.find((function(t){return t.name===e.name})),n={};(0,B.n)({target:n,source:e}),void 0!==t&&(p.splice(p.indexOf(t),1),(0,B.n)({target:n,source:t})),(0,N.id)(f).profile.attributes.push(n),(0,N.id)(f).profile.attributesByName[n.name]=n})),p.map((function(e){return Object.assign({validators:{}},e)})).forEach((function(e){var t=e.name;(0,a.h)(void 0!==t,"If you define a mock attribute it must have at least a name"),(0,N.id)(f).profile.attributes.push(e),(0,N.id)(f).profile.attributesByName[t]=e}))}return{kcContext:f}}if(void 0===u)return{kcContext:void 0};if("login"!==u.themeType)return{kcContext:void 0};var h=u.url;return h.resourcesCommonPath=(0,F.pathJoin)(h.resourcesPath,(0,q.e)(I.Jv)),{kcContext:u}}}}var G=n(4978),Y=function(e){var t=e.kcContext,n=i(e,["kcContext"]);return(0,r.jsx)(o.Suspense,{children:function(){switch(t.pageId){case"login.ftl":return(0,r.jsx)(l,Object.assign({kcContext:t},n));case"register.ftl":return(0,r.jsx)(u,Object.assign({kcContext:t},n));case"register-user-profile.ftl":return(0,r.jsx)(s,Object.assign({kcContext:t},n));case"info.ftl":return(0,r.jsx)(c,Object.assign({kcContext:t},n));case"error.ftl":return(0,r.jsx)(f,Object.assign({kcContext:t},n));case"login-reset-password.ftl":return(0,r.jsx)(d,Object.assign({kcContext:t},n));case"login-verify-email.ftl":return(0,r.jsx)(p,Object.assign({kcContext:t},n));case"terms.ftl":return(0,r.jsx)(h,Object.assign({kcContext:t},n));case"login-otp.ftl":return(0,r.jsx)(m,Object.assign({kcContext:t},n));case"login-username.ftl":return(0,r.jsx)(v,Object.assign({kcContext:t},n));case"login-password.ftl":return(0,r.jsx)(g,Object.assign({kcContext:t},n));case"webauthn-authenticate.ftl":return(0,r.jsx)(y,Object.assign({kcContext:t},n));case"login-update-password.ftl":return(0,r.jsx)(b,Object.assign({kcContext:t},n));case"login-update-profile.ftl":return(0,r.jsx)(w,Object.assign({kcContext:t},n));case"login-idp-link-confirm.ftl":return(0,r.jsx)(k,Object.assign({kcContext:t},n));case"login-idp-link-email.ftl":return(0,r.jsx)(S,Object.assign({kcContext:t},n));case"login-page-expired.ftl":return(0,r.jsx)(x,Object.assign({kcContext:t},n));case"login-config-totp.ftl":return(0,r.jsx)(_,Object.assign({kcContext:t},n));case"logout-confirm.ftl":return(0,r.jsx)(E,Object.assign({kcContext:t},n));case"update-user-profile.ftl":return(0,r.jsx)(P,Object.assign({kcContext:t},n));case"idp-review-user-profile.ftl":return(0,r.jsx)(C,Object.assign({kcContext:t},n));case"update-email.ftl":return(0,r.jsx)(O,Object.assign({kcContext:t},n));case"select-authenticator.ftl":return(0,r.jsx)(T,Object.assign({kcContext:t},n));case"saml-post-form.ftl":return(0,r.jsx)(A,Object.assign({kcContext:t},n))}(0,a.h)(!1)}()})}},6404:function(e,t,n){"use strict";n.d(t,{R:function(){return c},m:function(){return f}});var r=n(2791),o=n(181);function a(e,t){var n=new Map,r=null!==t&&void 0!==t?t:{},a=r.argsLength,i=void 0===a?e.length:a,l=r.max,u=void 0===l?1/0:l;return function(){for(var t=arguments.length,r=new Array(t),a=0;a=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){u=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(u)throw i}}}}(n.keys());try{for(c.s();!(s=c.n()).done;){var f=s.value;n.delete(f);break}}catch(p){c.e(p)}finally{c.f()}}var d=e.apply(void 0,r);return n.set(l,d),d}}var i=n(4978),l=n(885);var u=n(969),s=n(9883),c=n(8252).Evt.create(void 0);function f(e){var t=e.kcContext,n=function(){var t=e.downloadTermMarkdown,n=(0,u.O)(t);return{downloadTermMarkdownMemoized:function(e){var t=(0,r.useState)(e);return(0,l.Z)(t,1)[0]}((function(){return a((function(e){return n({currentLanguageTag:e})}))}))}}().downloadTermMarkdownMemoized;(0,r.useEffect)((function(){var e,r;"terms.ftl"===t.pageId&&n(null!==(r=null===(e=t.locale)||void 0===e?void 0:e.currentLanguageTag)&&void 0!==r?r:i.s).then((function(e){return c.state=e}))}),[])}(0,s.h)()},1644:function(e,t,n){"use strict";n.d(t,{U:function(){return o.a}});var r=n(2068),o=n.n(r)},3991:function(e,t,n){"use strict";n.d(t,{n:function(){return l}});var r=n(9883),o=n(1742),a=n(885);n(6660);function i(e){return e instanceof Object?"function"===typeof e?e:e instanceof Array?e.map(i):Object.fromEntries(Object.entries(e).map((function(e){var t=(0,a.Z)(e,2);return[t[0],i(t[1])]}))):e}function l(e){var t=e.target,n=i(e.source);Object.keys(n).forEach((function(e){var a=n[e];if(!(void 0===t[e]||a instanceof Function)&&a instanceof Object){var i=t[e];if(a instanceof Array)return(0,r.h)((0,o.is)(i)),(0,r.h)((0,o.is)(a)),void a.forEach((function(e){return i.push(e)}));(0,r.h)((0,o.is)(i)),(0,r.h)((0,o.is)(a)),l({target:i,source:a})}else Object.defineProperty(t,e,{enumerable:!0,writable:!0,configurable:!0,value:a})}))}},7816:function(e,t,n){"use strict";function r(e){return e.split("/").reverse()[0]}n.d(t,{e:function(){return r}})},969:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(2791);function o(e){var t=(0,r.useRef)(null);return t.current=e,(0,r.useState)((function(){return function(){return t.current.apply(t,arguments)}}))[0]}},5875:function(e,t,n){var r=n(6422);e.exports=function(){return function(e){return r(e,"list",(function(e,t){var n,r,o=0;for(n=0,r=t.length;n-1&&(z.call(this,e),R.call(this,e))}function H(){h("atHardBreak",!0)}function U(){var e=this.resume();this.stack[this.stack.length-1].value=e}function B(){var e=this.resume();this.stack[this.stack.length-1].value=e}function V(){var e=this.resume();this.stack[this.stack.length-1].value=e}function q(){var e=this.stack[this.stack.length-1];m("inReference")?(e.type+="Reference",e.referenceType=m("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),h("referenceType")}function W(){var e=this.stack[this.stack.length-1];m("inReference")?(e.type+="Reference",e.referenceType=m("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),h("referenceType")}function $(e){this.stack[this.stack.length-2].identifier=i(this.sliceSerialize(e)).toLowerCase()}function G(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,h("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t}function Y(){var e=this.resume();this.stack[this.stack.length-1].url=e}function Q(){var e=this.resume();this.stack[this.stack.length-1].title=e}function K(){h("inReference")}function Z(){h("referenceType","collapsed")}function X(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=i(this.sliceSerialize(e)).toLowerCase(),h("referenceType","full")}function J(e){h("characterReferenceType",e.type)}function ee(e){var t,n,r=this.sliceSerialize(e),o=m("characterReferenceType");o?(t=l(r,"characterReferenceMarkerNumeric"===o?10:16),h("characterReferenceType")):t=f(r),(n=this.stack.pop()).value+=t,n.position.end=g(e.end)}function te(e){R.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function ne(e){R.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function re(){return{type:"blockquote",children:[]}}function oe(){return{type:"code",lang:null,meta:null,value:""}}function ae(){return{type:"inlineCode",value:""}}function ie(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function le(){return{type:"emphasis",children:[]}}function ue(){return{type:"heading",depth:void 0,children:[]}}function se(){return{type:"break"}}function ce(){return{type:"html",value:""}}function fe(){return{type:"image",title:null,url:"",alt:null}}function de(){return{type:"link",title:null,url:"",children:[]}}function pe(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function he(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function me(){return{type:"paragraph",children:[]}}function ge(){return{type:"strong",children:[]}}function ve(){return{type:"text",value:""}}function ye(){return{type:"thematicBreak"}}}(n)(c(u(n).document().write(s()(e,t,!0))))};var r=n(8054),o=n(2758),a=n(4440),i=n(5067),l=n(3593),u=n(9605),s=n(1825),c=n(3955),f=n(6891),d=n(6915);function p(e,t){var n,r;for(n in t)r=a.call(e,n)?e[n]:e[n]={},"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,t[n]):Object.assign(r,t[n])}},2625:function(e,t,n){"use strict";e.exports=n(3016)},8054:function(e){"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&n(e.children)||"length"in e&&n(e))||""}function n(e){for(var n=[],r=-1;++rt;)i.containerState=s[a][1],s[a][0].exit.call(i,e);s.length=t}},l={tokenize:function(e,t,n){return o(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},u={tokenize:function(e,t,n){return o(e,e.lazy(this.parser.constructs.flow,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}};t.tokenize=i},1886:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2744),o=n(6548),a=n(6168),i=function(e){var t=this,n=e.attempt(a,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,i,o(e,e.attempt(this.parser.constructs.flow,i,e.attempt(r,i)),"linePrefix")));return n;function i(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}};t.tokenize=i},2205:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2758),o=n(1388),a=u("text"),i=u("string"),l={resolveAll:s()};function u(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],o=t.attempt(r,a,i);return a;function a(e){return u(e)?o(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return u(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function u(e){var t=r[e],o=-1;if(null===e)return!0;if(t)for(;++o1&&e[m][1].end.offset-e[m][1].start.offset>1?2:1)>1?"strongSequence":"emphasisSequence",start:i(u(e[n][1].end),-d),end:u(e[n][1].end)},f={type:d>1?"strongSequence":"emphasisSequence",start:u(e[m][1].start),end:i(u(e[m][1].start),d)},s={type:d>1?"strongText":"emphasisText",start:u(e[n][1].end),end:u(e[m][1].start)},a={type:d>1?"strong":"emphasis",start:u(c.start),end:u(f.end)},e[n][1].end=u(c.start),e[m][1].start=u(f.end),p=[],e[n][1].end.offset-e[n][1].start.offset&&(p=r(p,[["enter",e[n][1],t],["exit",e[n][1],t]])),p=r(p,[["enter",a,t],["enter",c,t],["exit",c,t],["enter",s,t]]),p=r(p,l(t.parser.constructs.insideSpan.null,e.slice(n+1,m),t)),p=r(p,[["exit",s,t],["enter",f,t],["exit",f,t],["exit",a,t]]),e[m][1].end.offset-e[m][1].start.offset?(h=2,p=r(p,[["enter",e[m][1],t],["exit",e[m][1],t]])):h=0,o(e,n-1,m-n+3,p),m=n+p.length-h-2;break}m=-1;for(;++m-1?void 0:4)}},exit:function(e){e.exit("blockQuote")}};e.exports=a},9960:function(e,t,n){"use strict";var r=n(972),o={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),o};function o(o){return r(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}};e.exports=o},7251:function(e,t,n){"use strict";var r=n(6891),o=n(1298),a=n(5745),i=n(278);function l(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var u=l(r),s={name:"characterReference",tokenize:function(e,t,n){var r,l,s=this,c=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),f};function f(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),r=31,l=o,p(t))}function d(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,l=i,p):(e.enter("characterReferenceValue"),r=7,l=a,p(t))}function p(a){var i;return 59===a&&c?(i=e.exit("characterReferenceValue"),l!==o||u.default(s.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)):l(a)&&c++-1?void 0:4);function a(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(t)}function u(t){return t===l?(e.consume(t),o++,u):o-1||o(a.events,"linePrefix")<4?e.interrupt(a.parser.constructs.flow,n,t)(i):t(i)}},partial:!0};e.exports=l},9409:function(e,t,n){"use strict";var r=n(7981),o=n(5962),a=n(5067),i=n(5424),l=n(7227),u=n(6548),s=n(7697),c=n(7491),f={name:"definition",tokenize:function(e,t,n){var o,c=this;return function(t){return e.enter("definition"),l.call(c,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function f(t){return o=a(c.sliceSerialize(c.events[c.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s(e,i(e,e.attempt(d,u(e,p,"whitespace"),u(e,p,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function p(a){return null===a||r(a)?(e.exit("definition"),c.parser.defined.indexOf(o)<0&&c.parser.defined.push(o),t(a)):n(a)}}},d={tokenize:function(e,t,n){return function(t){return o(t)?s(e,a)(t):n(t)};function a(t){return 34===t||39===t||40===t?c(e,u(e,i,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function i(e){return null===e||r(e)?t(e):n(e)}},partial:!0};e.exports=f},5424:function(e,t,n){"use strict";var r=n(9079),o=n(5962),a=n(7981);e.exports=function(e,t,n,i,l,u,s,c,f){var d=f||1/0,p=0;return function(t){if(60===t)return e.enter(i),e.enter(l),e.enter(u),e.consume(t),e.exit(u),h;if(r(t)||41===t)return n(t);return e.enter(i),e.enter(s),e.enter(c),e.enter("chunkString",{contentType:"string"}),v(t)};function h(n){return 62===n?(e.enter(u),e.consume(n),e.exit(u),e.exit(l),e.exit(i),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),m(n))}function m(t){return 62===t?(e.exit("chunkString"),e.exit(c),h(t)):null===t||60===t||a(t)?n(t):(e.consume(t),92===t?g:m)}function g(t){return 60===t||62===t||92===t?(e.consume(t),m):m(t)}function v(a){return 40===a?++p>d?n(a):(e.consume(a),v):41===a?p--?(e.consume(a),v):(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(i),t(a)):null===a||o(a)?p?n(a):(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(i),t(a)):r(a)?n(a):(e.consume(a),92===a?y:v)}function y(t){return 40===t||41===t||92===t?(e.consume(t),v):v(t)}}},7227:function(e,t,n){"use strict";var r=n(7981),o=n(6393);e.exports=function(e,t,n,a,i,l){var u,s=this,c=0;return function(t){return e.enter(a),e.enter(i),e.consume(t),e.exit(i),e.enter(l),f};function f(o){return null===o||91===o||93===o&&!u||94===o&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs||c>999?n(o):93===o?(e.exit(l),e.enter(i),e.consume(o),e.exit(i),e.exit(a),t):r(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(o))}function d(t){return null===t||91===t||93===t||r(t)||c++>999?(e.exit("chunkString"),f(t)):(e.consume(t),u=u||!o(t),92===t?p:d)}function p(t){return 91===t||92===t||93===t?(e.consume(t),c++,d):d(t)}}},6548:function(e,t,n){"use strict";var r=n(6393);e.exports=function(e,t,n,o){var a=o?o-1:1/0,i=0;return function(o){if(r(o))return e.enter(n),l(o);return t(o)};function l(o){return r(o)&&i++a&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4);o>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},r={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},i(e,a,o-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};e.exports=u},4873:function(e,t,n){"use strict";var r=n(6357),o=n(1298),a=n(7981),i=n(5962),l=n(6393),u=n(9608),s=n(9751),c=n(619),f=n(6168),d={name:"htmlFlow",tokenize:function(e,t,n){var f,d,h,m,g,v=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),y};function y(o){return 33===o?(e.consume(o),b):47===o?(e.consume(o),x):63===o?(e.consume(o),f=3,v.interrupt?t:B):r(o)?(e.consume(o),h=u(o),d=!0,S):n(o)}function b(o){return 45===o?(e.consume(o),f=2,w):91===o?(e.consume(o),f=5,h="CDATA[",m=0,k):r(o)?(e.consume(o),f=4,v.interrupt?t:B):n(o)}function w(r){return 45===r?(e.consume(r),v.interrupt?t:B):n(r)}function k(r){return r===h.charCodeAt(m++)?(e.consume(r),m===h.length?v.interrupt?t:N:k):n(r)}function x(t){return r(t)?(e.consume(t),h=u(t),S):n(t)}function S(r){return null===r||47===r||62===r||i(r)?47!==r&&d&&c.indexOf(h.toLowerCase())>-1?(f=1,v.interrupt?t(r):N(r)):s.indexOf(h.toLowerCase())>-1?(f=6,47===r?(e.consume(r),_):v.interrupt?t(r):N(r)):(f=7,v.interrupt?n(r):d?P(r):E(r)):45===r||o(r)?(e.consume(r),h+=u(r),S):n(r)}function _(r){return 62===r?(e.consume(r),v.interrupt?t:N):n(r)}function E(t){return l(t)?(e.consume(t),E):I(t)}function P(t){return 47===t?(e.consume(t),I):58===t||95===t||r(t)?(e.consume(t),C):l(t)?(e.consume(t),P):I(t)}function C(t){return 45===t||46===t||58===t||95===t||o(t)?(e.consume(t),C):O(t)}function O(t){return 61===t?(e.consume(t),T):l(t)?(e.consume(t),O):P(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),g=t,A):l(t)?(e.consume(t),T):(g=void 0,M(t))}function A(t){return t===g?(e.consume(t),j):null===t||a(t)?n(t):(e.consume(t),A)}function M(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||i(t)?O(t):(e.consume(t),M)}function j(e){return 47===e||62===e||l(e)?P(e):n(e)}function I(t){return 62===t?(e.consume(t),F):n(t)}function F(t){return l(t)?(e.consume(t),F):null===t||a(t)?N(t):n(t)}function N(t){return 45===t&&2===f?(e.consume(t),R):60===t&&1===f?(e.consume(t),D):62===t&&4===f?(e.consume(t),V):63===t&&3===f?(e.consume(t),B):93===t&&5===f?(e.consume(t),U):!a(t)||6!==f&&7!==f?null===t||a(t)?L(t):(e.consume(t),N):e.check(p,V,L)(t)}function L(t){return e.exit("htmlFlowData"),z(t)}function z(t){return null===t?q(t):a(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),z):(e.enter("htmlFlowData"),N(t))}function R(t){return 45===t?(e.consume(t),B):N(t)}function D(t){return 47===t?(e.consume(t),h="",H):N(t)}function H(t){return 62===t&&c.indexOf(h.toLowerCase())>-1?(e.consume(t),V):r(t)&&h.length<8?(e.consume(t),h+=u(t),H):N(t)}function U(t){return 93===t?(e.consume(t),B):N(t)}function B(t){return 62===t?(e.consume(t),V):N(t)}function V(t){return null===t||a(t)?(e.exit("htmlFlowData"),q(t)):(e.consume(t),V)}function q(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},p={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(f,t,n)}},partial:!0};e.exports=d},9755:function(e,t,n){"use strict";var r=n(6357),o=n(1298),a=n(7981),i=n(5962),l=n(6393),u=n(6548),s={name:"htmlText",tokenize:function(e,t,n){var s,c,f,d,p=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),h};function h(t){return 33===t?(e.consume(t),m):47===t?(e.consume(t),O):63===t?(e.consume(t),P):r(t)?(e.consume(t),M):n(t)}function m(t){return 45===t?(e.consume(t),g):91===t?(e.consume(t),c="CDATA[",f=0,k):r(t)?(e.consume(t),E):n(t)}function g(t){return 45===t?(e.consume(t),v):n(t)}function v(t){return null===t||62===t?n(t):45===t?(e.consume(t),y):b(t)}function y(e){return null===e||62===e?n(e):b(e)}function b(t){return null===t?n(t):45===t?(e.consume(t),w):a(t)?(d=b,D(t)):(e.consume(t),b)}function w(t){return 45===t?(e.consume(t),U):b(t)}function k(t){return t===c.charCodeAt(f++)?(e.consume(t),f===c.length?x:k):n(t)}function x(t){return null===t?n(t):93===t?(e.consume(t),S):a(t)?(d=x,D(t)):(e.consume(t),x)}function S(t){return 93===t?(e.consume(t),_):x(t)}function _(t){return 62===t?U(t):93===t?(e.consume(t),_):x(t)}function E(t){return null===t||62===t?U(t):a(t)?(d=E,D(t)):(e.consume(t),E)}function P(t){return null===t?n(t):63===t?(e.consume(t),C):a(t)?(d=P,D(t)):(e.consume(t),P)}function C(e){return 62===e?U(e):P(e)}function O(t){return r(t)?(e.consume(t),T):n(t)}function T(t){return 45===t||o(t)?(e.consume(t),T):A(t)}function A(t){return a(t)?(d=A,D(t)):l(t)?(e.consume(t),A):U(t)}function M(t){return 45===t||o(t)?(e.consume(t),M):47===t||62===t||i(t)?j(t):n(t)}function j(t){return 47===t?(e.consume(t),U):58===t||95===t||r(t)?(e.consume(t),I):a(t)?(d=j,D(t)):l(t)?(e.consume(t),j):U(t)}function I(t){return 45===t||46===t||58===t||95===t||o(t)?(e.consume(t),I):F(t)}function F(t){return 61===t?(e.consume(t),N):a(t)?(d=F,D(t)):l(t)?(e.consume(t),F):j(t)}function N(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,L):a(t)?(d=N,D(t)):l(t)?(e.consume(t),N):(e.consume(t),s=void 0,R)}function L(t){return t===s?(e.consume(t),z):null===t?n(t):a(t)?(d=L,D(t)):(e.consume(t),L)}function z(e){return 62===e||47===e||i(e)?j(e):n(e)}function R(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||i(t)?j(t):(e.consume(t),R)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u(e,H,"linePrefix",p.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function H(t){return e.enter("htmlTextData"),d(t)}function U(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}}};e.exports=s},8986:function(e,t,n){"use strict";var r=n(5962),o=n(4645),a=n(1975),i=n(5067),l=n(6796),u=n(1388),s=n(5424),c=n(7227),f=n(7491),d=n(7697),p={name:"labelEnd",tokenize:function(e,t,n){var r,o,a=this,l=a.events.length;for(;l--;)if(("labelImage"===a.events[l][1].type||"labelLink"===a.events[l][1].type)&&!a.events[l][1]._balanced){r=a.events[l][1];break}return function(t){if(!r)return n(t);return r._inactive?s(t):(o=a.parser.defined.indexOf(i(a.sliceSerialize({start:r.end,end:a.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),u)};function u(n){return 40===n?e.attempt(h,t,o?t:s)(n):91===n?e.attempt(m,t,o?e.attempt(g,t,s):s)(n):o?t(n):s(n)}function s(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){var n,r,i,s,c,f,d,p=e.length,h=0;for(;p--;)if(s=e[p][1],c){if("link"===s.type||"labelLink"===s.type&&s._inactive)break;"enter"===e[p][0]&&"labelLink"===s.type&&(s._inactive=!0)}else if(f){if("enter"===e[p][0]&&("labelImage"===s.type||"labelLink"===s.type)&&!s._balanced&&(c=p,"labelLink"!==s.type)){h=2;break}}else"labelEnd"===s.type&&(f=p);return n={type:"labelLink"===e[c][1].type?"link":"image",start:u(e[c][1].start),end:u(e[e.length-1][1].end)},r={type:"label",start:u(e[c][1].start),end:u(e[f][1].end)},i={type:"labelText",start:u(e[c+h+2][1].end),end:u(e[f-2][1].start)},d=o(d=[["enter",n,t],["enter",r,t]],e.slice(c+1,c+h+3)),d=o(d,[["enter",i,t]]),d=o(d,l(t.parser.constructs.insideSpan.null,e.slice(c+h+4,f-3),t)),d=o(d,[["exit",i,t],e[f-2],e[f-1],["exit",r,t]]),d=o(d,e.slice(f+1)),d=o(d,[["exit",n,t]]),a(e,c,e.length,d),e},resolveAll:function(e){var t,n=-1;for(;++n-1?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},f={tokenize:function(e,t,n){var r=this;return l(e,(function(e){return o(e)||!a(r.events,"listItemPrefixWhitespace")?n(e):t(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5)},partial:!0},d={tokenize:function(e,t,n){var r=this;return l(e,(function(e){return a(r.events,"listItemIndent")===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};e.exports=c},6168:function(e,t,n){"use strict";var r=n(7981),o=n(6548),a={tokenize:function(e,t,n){return o(e,(function(e){return null===e||r(e)?t(e):n(e)}),"linePrefix")},partial:!0};e.exports=a},7244:function(e,t,n){"use strict";var r=n(7981),o=n(1388),a=n(6548),i={name:"setextUnderline",tokenize:function(e,t,n){var o,i,l=this,u=l.events.length;for(;u--;)if("lineEnding"!==l.events[u][1].type&&"linePrefix"!==l.events[u][1].type&&"content"!==l.events[u][1].type){i="paragraph"===l.events[u][1].type;break}return function(t){if(!l.lazy&&(l.interrupt||i))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=t,s(t);return n(t)};function s(t){return t===o?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),a(e,c,"lineSuffix")(t))}function c(o){return null===o||r(o)?(e.exit("setextHeadingLine"),t(o)):n(o)}},resolveTo:function(e,t){var n,r,a,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),a||"definition"!==e[l][1].type||(a=l);i={type:"setextHeading",start:o(e[r][1].start),end:o(e[e.length-1][1].end)},e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",i,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=o(e[a][1].end)):e[n][1]=i;return e.push(["exit",i,t]),e}};e.exports=i},627:function(e,t,n){"use strict";var r=n(7981),o=n(6393),a=n(6548),i={name:"thematicBreak",tokenize:function(e,t,n){var i,l=0;return function(t){return e.enter("thematicBreak"),i=t,u(t)};function u(c){return c===i?(e.enter("thematicBreakSequence"),s(c)):o(c)?a(e,u,"whitespace")(c):l<3||null!==c&&!r(c)?n(c):(e.exit("thematicBreak"),t(c))}function s(t){return t===i?(e.consume(t),l++,s):(e.exit("thematicBreakSequence"),u(t))}}};e.exports=i},4645:function(e,t,n){"use strict";var r=n(1975);e.exports=function(e,t){return e.length?(r(e,e.length,0,t),e):t}},1975:function(e,t,n){"use strict";var r=n(6063);e.exports=function(e,t,n,o){var a,i=e.length,l=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,o.length<1e4)(a=Array.from(o)).unshift(t,n),r.apply(e,a);else for(n&&r.apply(e,[t,n]);l-1)return m();return e.tokenize.call(t?r({},y,t):y,v,h,m)(n)}}function h(t){return e(s,c),o}function m(e){return c.restore(),++u13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":r(n)}},1951:function(e,t,n){"use strict";var r=n(9608);e.exports=function(e){for(var t,n,o,a=-1,i=[];++a-1&&(n[0]=n[0].slice(o)),i>0&&n.push(e[a].slice(0,i))),n}},629:function(e,t,n){"use strict";var r=n(2758),o=n(1975),a=n(1388);function i(e,t){for(var n,r,a,i,l,u,s=e[t][1],c=e[t][2],f=t-1,d=[],p=s._tokenizer||c.parser[s.contentType](s.start),h=p.events,m=[],g={};s;){for(;e[++f][1]!==s;);d.push(f),s._tokenizer||(n=c.sliceStream(s),s.next||n.push(null),r&&p.defineSkip(s.start),s.isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=!0),p.write(n),s.isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=void 0)),r=s,s=s.next}for(s=r,a=h.length;a--;)"enter"===h[a][0]?i=!0:i&&h[a][1].type===h[a-1][1].type&&h[a][1].start.line!==h[a][1].end.line&&(v(h.slice(a+1,l)),s._tokenizer=s.next=void 0,s=s.previous,l=a+1);for(p.events=s._tokenizer=s.next=void 0,v(h.slice(0,l)),a=-1,u=0;++a>>0;if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o=0},e.prototype.get=function(e){var t=this.record.filter((function(t){return t[0]===e}))[0];if(void 0!==t)return t[1]},e.prototype.set=function(e,t){var n=this.record.filter((function(t){return t[0]===e}))[0];return void 0===n?this.record.push([e,t]):n[1]=t,this},e.prototype.delete=function(e){var t=this.record.map((function(e){return e[0]})).indexOf(e);return!(t<0)&&(this.record.splice(t,1),!0)},e.prototype.keys=function(){return this.record.map((function(e){return e[0]}))},e}();t.LightMapImpl=n,t.Polyfill="undefined"!==typeof Map?Map:n},6660:function(e,t){"use strict";Object.fromEntries||Object.defineProperty(Object,"fromEntries",{value:function(e){if(!e||!e[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");var t={};return Object.keys(e).forEach((function(n){var r=e[n],o=r[0],a=r[1];t[o]=a})),t}})},3918:function(e,t){"use strict";t.__esModule=!0,Object.is||(Object.is=function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t})},7781:function(e,t,n){"use strict";t.__esModule=!0,t.Polyfill=t.LightSetImpl=void 0;var r=n(6163),o=function(){function e(e){if(this.map=new r.Polyfill,void 0!==e)for(var t=0,n=e;tt}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),C=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),j=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var F=Symbol.iterator;function N(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=F&&e[F]||e["@@iterator"])?e:null}var L,z=Object.assign;function R(e){if(void 0===L)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var D=!1;function H(e,t){if(!e||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"===typeof s.stack){for(var o=s.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var u="\n"+o[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}}while(1<=i&&0<=l);break}}}finally{D=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?R(e):""}function U(e){switch(e.tag){case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 1:return e=H(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case E:return"Profiler";case _:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case M:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return B(e(t))}catch(n){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Z(e,t);var n=q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Se=null,_e=null;function Ee(e){if(e=wo(e)){if("function"!==typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Pe(e){Se?_e?_e.push(e):_e=[e]:Se=e}function Ce(){if(Se){var e=Se,t=_e;if(_e=Se=null,Ee(e),t)for(e=0;e>>=0,0===e?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2;var st=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=ft(l):0!==(a&=i)&&(r=ft(a))}else 0!==(i=n&~o)?r=ft(i):0!==a&&(r=ft(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<=Nn),Rn=String.fromCharCode(32),Dn=!1;function Hn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Wn(e,t,n,r){Pe(r),0<(t=$r(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Gn=null;function Yn(e){Rr(e,0)}function Qn(e){if(G(ko(e)))return e}function Kn(e,t){if("change"===e)return t}var Zn=!1;if(c){var Xn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Xn=Jn}else Xn=!1;Zn=Xn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=cr(n,a);var i=cr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n=document.documentMode,gr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==Y(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&ur(yr,r)||(yr=r,0<(r=$r(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},Sr={},_r={};function Er(e){if(Sr[e])return Sr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return Sr[e]=n[t];return e}c&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Pr=Er("animationend"),Cr=Er("animationiteration"),Or=Er("animationstart"),Tr=Er("transitionend"),Ar=new Map,Mr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function jr(e,t){Ar.set(e,t),u(t,[e])}for(var Ir=0;Ir_o||(e.current=So[_o],So[_o]=null,_o--)}function Co(e,t){_o++,So[_o]=e.current,e.current=t}var Oo={},To=Eo(Oo),Ao=Eo(!1),Mo=Oo;function jo(e,t){var n=e.type.contextTypes;if(!n)return Oo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Io(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Fo(){Po(Ao),Po(To)}function No(e,t,n){if(To.current!==Oo)throw Error(a(168));Co(To,t),Co(Ao,n)}function Lo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,V(e)||"Unknown",o));return z({},n,r)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,Mo=To.current,Co(To,e),Co(Ao,Ao.current),!0}function Ro(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Lo(e,t,Mo),r.__reactInternalMemoizedMergedChildContext=e,Po(Ao),Po(To),Co(To,e)):Po(Ao),Co(Ao,n)}var Do=null,Ho=!1,Uo=!1;function Bo(e){null===Do?Do=[e]:Do.push(e)}function Vo(){if(!Uo&&null!==Do){Uo=!0;var e=0,t=bt;try{var n=Do;for(bt=1;e>=i,o-=i,Ea=1<<32-it(t)+o|n<m?(g=f,f=null):g=f.sibling;var v=p(o,f,l[m],u);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(o,f),a=i(v,a,m),null===c?s=v:c.sibling=v,c=v,f=g}if(m===l.length)return n(o,f),Ia&&Ca(o,m),s;if(null===f){for(;mg?(v=m,m=null):v=m.sibling;var b=p(o,m,y.value,s);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),l=i(b,l,g),null===f?c=b:f.sibling=b,f=b,m=v}if(y.done)return n(o,m),Ia&&Ca(o,g),c;if(null===m){for(;!y.done;g++,y=u.next())null!==(y=d(o,y.value,s))&&(l=i(y,l,g),null===f?c=y:f.sibling=y,f=y);return Ia&&Ca(o,g),c}for(m=r(o,m);!y.done;g++,y=u.next())null!==(y=h(m,o,g,y.value,s))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),l=i(y,l,g),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(o,e)})),Ia&&Ca(o,g),c}return function e(r,a,i,u){if("object"===typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"===typeof i&&null!==i){switch(i.$$typeof){case k:e:{for(var s=i.key,c=a;null!==c;){if(c.key===s){if((s=i.type)===S){if(7===c.tag){n(r,c.sibling),(a=o(c,i.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"===typeof s&&null!==s&&s.$$typeof===j&&Wa(s)===c.type){n(r,c.sibling),(a=o(c,i.props)).ref=Va(r,c,i),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}i.type===S?((a=Ns(i.props.children,r.mode,u,i.key)).return=r,r=a):((u=Fs(i.type,i.key,i.props,null,r.mode,u)).ref=Va(r,a,i),u.return=r,r=u)}return l(r);case x:e:{for(c=i.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Rs(i,r.mode,u)).return=r,r=a}return l(r);case j:return e(r,a,(c=i._init)(i._payload),u)}if(te(i))return m(r,a,i,u);if(N(i))return g(r,a,i,u);qa(r,i)}return"string"===typeof i&&""!==i||"number"===typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=zs(i,r.mode,u)).return=r,r=a),l(r)):n(r,a)}}var Ga=$a(!0),Ya=$a(!1),Qa={},Ka=Eo(Qa),Za=Eo(Qa),Xa=Eo(Qa);function Ja(e){if(e===Qa)throw Error(a(174));return e}function ei(e,t){switch(Co(Xa,t),Co(Za,e),Co(Ka,Qa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Po(Ka),Co(Ka,t)}function ti(){Po(Ka),Po(Za),Po(Xa)}function ni(e){Ja(Xa.current);var t=Ja(Ka.current),n=ue(t,e.type);t!==n&&(Co(Za,e),Co(Ka,n))}function ri(e){Za.current===e&&(Po(Ka),Po(Za))}var oi=Eo(0);function ai(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ii=[];function li(){for(var e=0;en?n:4,e(!0);var r=si.transition;si.transition={};try{e(!1),t()}finally{bt=n,si.transition=r}}function Qi(){return Si().memoizedState}function Ki(e,t,n){var r=Ju(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xi(e)?Ji(t,n):(el(e,t,n),null!==(e=es(e,r,n=Xu()))&&tl(e,t,r))}function Zi(e,t,n){var r=Ju(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xi(e))Ji(t,o);else{el(e,t,o);var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,i))return}catch(u){}null!==(e=es(e,r,n=Xu()))&&tl(e,t,r)}}function Xi(e){var t=e.alternate;return e===fi||null!==t&&t===fi}function Ji(e,t){mi=hi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function el(e,t,n){ns(e)?(null===(e=t.interleaved)?(n.next=n,null===ta?ta=[t]:ta.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(null===(e=t.pending)?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function tl(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var nl={readContext:ea,useCallback:yi,useContext:yi,useEffect:yi,useImperativeHandle:yi,useInsertionEffect:yi,useLayoutEffect:yi,useMemo:yi,useReducer:yi,useRef:yi,useState:yi,useDebugValue:yi,useDeferredValue:yi,useTransition:yi,useMutableSource:yi,useSyncExternalStore:yi,useId:yi,unstable_isNewReconciler:!1},rl={readContext:ea,useCallback:function(e,t){return xi().memoizedState=[e,void 0===t?null:t],e},useContext:ea,useEffect:Ri,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Li(4194308,4,Bi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Li(4194308,4,e,t)},useInsertionEffect:function(e,t){return Li(4,2,e,t)},useMemo:function(e,t){var n=xi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ki.bind(null,fi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},xi().memoizedState=e},useState:Ii,useDebugValue:qi,useDeferredValue:function(e){return xi().memoizedState=e},useTransition:function(){var e=Ii(!1),t=e[0];return e=Yi.bind(null,e[1]),xi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fi,o=xi();if(Ia){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Cu)throw Error(a(349));0!==(30&ci)||Ti(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ri(Mi.bind(null,r,i,e),[e]),r.flags|=2048,Fi(9,Ai.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=xi(),t=Cu.identifierPrefix;if(Ia){var n=Pa;t=":"+t+"R"+(n=(Ea&~(1<<32-it(Ea)-1)).toString(32)+n),0<(n=gi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=vi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ol={readContext:ea,useCallback:Wi,useContext:ea,useEffect:Di,useImperativeHandle:Vi,useInsertionEffect:Hi,useLayoutEffect:Ui,useMemo:$i,useReducer:Ei,useRef:Ni,useState:function(){return Ei(_i)},useDebugValue:qi,useDeferredValue:function(e){return Gi(Si(),di.memoizedState,e)},useTransition:function(){return[Ei(_i)[0],Si().memoizedState]},useMutableSource:Ci,useSyncExternalStore:Oi,useId:Qi,unstable_isNewReconciler:!1},al={readContext:ea,useCallback:Wi,useContext:ea,useEffect:Di,useImperativeHandle:Vi,useInsertionEffect:Hi,useLayoutEffect:Ui,useMemo:$i,useReducer:Pi,useRef:Ni,useState:function(){return Pi(_i)},useDebugValue:qi,useDeferredValue:function(e){var t=Si();return null===di?t.memoizedState=e:Gi(t,di.memoizedState,e)},useTransition:function(){return[Pi(_i)[0],Si().memoizedState]},useMutableSource:Ci,useSyncExternalStore:Oi,useId:Qi,unstable_isNewReconciler:!1};function il(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o}}function ll(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ul,sl,cl,fl,dl="function"===typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=aa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bu||(Bu=!0,Vu=r),ll(0,t)},n}function hl(e,t,n){(n=aa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ll(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){ll(0,t),"function"!==typeof r&&(null===qu?qu=new Set([this]):qu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new dl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Es.bind(null,e,t,n),t.then(e,e))}function gl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vl(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=aa(-1,1)).tag=2,ia(n,t))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}function yl(e,t){if(!Ia)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function bl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function wl(e,t,n){var r=t.pendingProps;switch(Aa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bl(t),null;case 1:case 17:return Io(t.type)&&Fo(),bl(t),null;case 3:return r=t.stateNode,ti(),Po(Ao),Po(To),li(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ha(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==Fa&&(is(Fa),Fa=null))),sl(e,t),bl(t),null;case 5:ri(t);var o=Ja(Xa.current);if(n=t.type,null!==e&&null!=t.stateNode)cl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return bl(t),null}if(e=Ja(Ka.current),Ha(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[po]=t,r[ho]=i,e=0!==(1&t.mode),n){case"dialog":Dr("cancel",r),Dr("close",r);break;case"iframe":case"object":case"embed":Dr("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[po]=t,e[ho]=r,ul(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":Dr("cancel",e),Dr("close",e),o=r;break;case"iframe":case"object":case"embed":Dr("load",e),o=r;break;case"video":case"audio":for(o=0;oHu&&(t.flags|=128,r=!0,yl(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ai(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),yl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!u.alternate&&!Ia)return bl(t),null}else 2*Ze()-i.renderingStartTime>Hu&&1073741824!==n&&(t.flags|=128,r=!0,yl(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=i.last)?n.sibling=u:t.child=u,i.last=u)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ze(),t.sibling=null,n=oi.current,Co(oi,r?1&n|2:1&n),t):(bl(t),null);case 22:case 23:return fs(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Au)&&(bl(t),6&t.subtreeFlags&&(t.flags|=8192)):bl(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}ul=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},sl=function(){},cl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ja(Ka.current);var a,i=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),i=[];break;case"select":o=z({},o,{value:void 0}),r=z({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(c in ye(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var u=o[c];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(a in u)!u.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&u[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!==typeof s&&"number"!==typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Dr("scroll",e),i||u===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},fl=function(e,t,n,r){n!==r&&(t.flags|=4)};var kl=w.ReactCurrentOwner,xl=!1;function Sl(e,t,n,r){t.child=null===e?Ya(t,null,n,r):Ga(t,e.child,n,r)}function _l(e,t,n,r,o){n=n.render;var a=t.ref;return Jo(t,o),r=wi(e,t,n,r,a,o),n=ki(),null===e||xl?(Ia&&n&&Ta(t),t.flags|=1,Sl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function El(e,t,n,r,o){if(null===e){var a=n.type;return"function"!==typeof a||js(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Fs(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Pl(e,t,a,r,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(i,r)&&e.ref===t.ref)return Wl(e,t,o)}return t.flags|=1,(e=Is(a,r)).ref=t.ref,e.return=t,t.child=e}function Pl(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(ur(a,r)&&e.ref===t.ref){if(xl=!1,t.pendingProps=r=a,0===(e.lanes&o))return t.lanes=e.lanes,Wl(e,t,o);0!==(131072&e.flags)&&(xl=!0)}}return Tl(e,t,n,r,o)}function Cl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Co(Mu,Au),Au|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Co(Mu,Au),Au|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Co(Mu,Au),Au|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Co(Mu,Au),Au|=r;return Sl(e,t,o,n),t.child}function Ol(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Tl(e,t,n,r,o){var a=Io(n)?Mo:To.current;return a=jo(t,a),Jo(t,o),n=wi(e,t,n,r,a,o),r=ki(),null===e||xl?(Ia&&r&&Ta(t),t.flags|=1,Sl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function Al(e,t,n,r,o){if(Io(n)){var a=!0;zo(t)}else a=!1;if(Jo(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ma(t,n,r),va(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var u=i.context,s=n.contextType;"object"===typeof s&&null!==s?s=ea(s):s=jo(t,s=Io(n)?Mo:To.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof i.getSnapshotBeforeUpdate;f||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(l!==r||u!==s)&&ga(t,i,r,s),na=!1;var d=t.memoizedState;i.state=d,sa(t,r,i,o),u=t.memoizedState,l!==r||d!==u||Ao.current||na?("function"===typeof c&&(da(t,n,c,r),u=t.memoizedState),(l=na||ha(t,n,l,r,d,u,s))?(f||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=l):("function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,oa(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:Wo(t.type,l),i.props=s,f=t.pendingProps,d=i.context,"object"===typeof(u=n.contextType)&&null!==u?u=ea(u):u=jo(t,u=Io(n)?Mo:To.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(l!==f||d!==u)&&ga(t,i,r,u),na=!1,d=t.memoizedState,i.state=d,sa(t,r,i,o);var h=t.memoizedState;l!==f||d!==h||Ao.current||na?("function"===typeof p&&(da(t,n,p,r),h=t.memoizedState),(s=na||ha(t,n,s,r,d,h,u)||!1)?(c||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,u),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,u)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=u,r=s):("function"!==typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ml(e,t,n,r,a,o)}function Ml(e,t,n,r,o,a){Ol(e,t);var i=0!==(128&t.flags);if(!r&&!i)return o&&Ro(t,n,!1),Wl(e,t,a);r=t.stateNode,kl.current=t;var l=i&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ga(t,e.child,null,a),t.child=Ga(t,null,l,a)):Sl(e,t,l,a),t.memoizedState=r.state,o&&Ro(t,n,!0),t.child}function jl(e){var t=e.stateNode;t.pendingContext?No(0,t.pendingContext,t.pendingContext!==t.context):t.context&&No(0,t.context,!1),ei(e,t.containerInfo)}function Il(e,t,n,r,o){return Ua(),Ba(o),t.flags|=256,Sl(e,t,n,r),t.child}var Fl={dehydrated:null,treeContext:null,retryLane:0};function Nl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ll(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function zl(e,t,n){var r,o=t.pendingProps,i=oi.current,l=!1,u=0!==(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Co(oi,1&i),null===e)return Ra(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(i=o.children,e=o.fallback,l?(o=t.mode,l=t.child,i={mode:"hidden",children:i},0===(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=i):l=Ls(i,o,0,null),e=Ns(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Nl(n),t.memoizedState=Fl,e):Rl(t,i));if(null!==(i=e.memoizedState)){if(null!==(r=i.dehydrated)){if(u)return 256&t.flags?(t.flags&=-257,Ul(e,t,n,Error(a(422)))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(l=o.fallback,i=t.mode,o=Ls({mode:"visible",children:o.children},i,0,null),(l=Ns(l,i,n,null)).flags|=2,o.return=t,l.return=t,o.sibling=l,t.child=o,0!==(1&t.mode)&&Ga(t,e.child,null,n),t.child.memoizedState=Nl(n),t.memoizedState=Fl,l);if(0===(1&t.mode))t=Ul(e,t,n,null);else if("$!"===r.data)t=Ul(e,t,n,Error(a(419)));else if(o=0!==(n&e.childLanes),xl||o){if(null!==(o=Cu)){switch(n&-n){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}0!==(o=0!==(l&(o.suspendedLanes|n))?0:l)&&o!==i.retryLane&&(i.retryLane=o,es(e,o,-1))}ms(),t=Ul(e,t,n,Error(a(421)))}else"$?"===r.data?(t.flags|=128,t.child=e.child,t=Cs.bind(null,e),r._reactRetry=t,t=null):(n=i.treeContext,ja=so(r.nextSibling),Ma=t,Ia=!0,Fa=null,null!==n&&(xa[Sa++]=Ea,xa[Sa++]=Pa,xa[Sa++]=_a,Ea=n.id,Pa=n.overflow,_a=t),(t=Rl(t,t.pendingProps.children)).flags|=4096);return t}return l?(o=Hl(e,t,o.children,o.fallback,n),l=t.child,i=e.child.memoizedState,l.memoizedState=null===i?Nl(n):Ll(i,n),l.childLanes=e.childLanes&~n,t.memoizedState=Fl,o):(n=Dl(e,t,o.children,n),t.memoizedState=null,n)}return l?(o=Hl(e,t,o.children,o.fallback,n),l=t.child,i=e.child.memoizedState,l.memoizedState=null===i?Nl(n):Ll(i,n),l.childLanes=e.childLanes&~n,t.memoizedState=Fl,o):(n=Dl(e,t,o.children,n),t.memoizedState=null,n)}function Rl(e,t){return(t=Ls({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Dl(e,t,n,r){var o=e.child;return e=o.sibling,n=Is(o,{mode:"visible",children:n}),0===(1&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function Hl(e,t,n,r,o){var a=t.mode,i=(e=e.child).sibling,l={mode:"hidden",children:n};return 0===(1&a)&&t.child!==e?((n=t.child).childLanes=0,n.pendingProps=l,t.deletions=null):(n=Is(e,l)).subtreeFlags=14680064&e.subtreeFlags,null!==i?r=Is(i,r):(r=Ns(r,a,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Ul(e,t,n,r){return null!==r&&Ba(r),Ga(t,e.child,null,n),(e=Rl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Xo(e.return,t,n)}function Vl(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function ql(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Sl(e,t,r.children,n),0!==(2&(r=oi.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bl(e,n,t);else if(19===e.tag)Bl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Co(oi,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ai(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vl(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ai(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vl(t,!0,n,null,a);break;case"together":Vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fu|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Is(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Is(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $l(e,t){switch(Aa(t),t.tag){case 1:return Io(t.type)&&Fo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ti(),Po(Ao),Po(To),li(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ri(t),null;case 13:if(Po(oi),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));Ua()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Po(oi),null;case 4:return ti(),null;case 10:return Zo(t.type._context),null;case 22:case 23:return fs(),null;default:return null}}var Gl=!1,Yl=!1,Ql="function"===typeof WeakSet?WeakSet:Set,Kl=null;function Zl(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){_s(e,t,r)}else n.current=null}function Xl(e,t,n){try{n()}catch(r){_s(e,t,r)}}var Jl=!1;function eu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&Xl(t,n,a)}o=o.next}while(o!==r)}}function tu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ru(e){var t=e.alternate;null!==t&&(e.alternate=null,ru(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ou(e){return 5===e.tag||3===e.tag||4===e.tag}function au(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ou(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function iu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(iu(e,t,n),e=e.sibling;null!==e;)iu(e,t,n),e=e.sibling}function lu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(lu(e,t,n),e=e.sibling;null!==e;)lu(e,t,n),e=e.sibling}var uu=null,su=!1;function cu(e,t,n){for(n=n.child;null!==n;)fu(e,t,n),n=n.sibling}function fu(e,t,n){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(l){}switch(n.tag){case 5:Yl||Zl(n,t);case 6:var r=uu,o=su;uu=null,cu(e,t,n),su=o,null!==(uu=r)&&(su?(e=uu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):uu.removeChild(n.stateNode));break;case 18:null!==uu&&(su?(e=uu,n=n.stateNode,8===e.nodeType?uo(e.parentNode,n):1===e.nodeType&&uo(e,n),Bt(e)):uo(uu,n.stateNode));break;case 4:r=uu,o=su,uu=n.stateNode.containerInfo,su=!0,cu(e,t,n),uu=r,su=o;break;case 0:case 11:case 14:case 15:if(!Yl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!==(2&a)||0!==(4&a))&&Xl(n,t,i),o=o.next}while(o!==r)}cu(e,t,n);break;case 1:if(!Yl&&(Zl(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){_s(n,t,l)}cu(e,t,n);break;case 21:cu(e,t,n);break;case 22:1&n.mode?(Yl=(r=Yl)||null!==n.memoizedState,cu(e,t,n),Yl=r):cu(e,t,n);break;default:cu(e,t,n)}}function du(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ql),t.forEach((function(t){var r=Os.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function pu(e,t){var n=t.deletions;if(null!==n)for(var r=0;ro&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xu(r/1960))-r)){e.timeoutHandle=ro(ks.bind(null,e,Ru,Uu),r);break}ks(e,Ru,Uu);break;default:throw Error(a(329))}}}return rs(e,Ze()),e.callbackNode===n?os.bind(null,e):null}function as(e,t){var n=zu;return e.current.memoizedState.isDehydrated&&(ds(e,t).flags|=256),2!==(e=gs(e,t))&&(t=Ru,Ru=n,null!==t&&is(t)),e}function is(e){null===Ru?Ru=e:Ru.push.apply(Ru,e)}function ls(e,t){for(t&=~Lu,t&=~Nu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===$u)var r=!1;else{if(e=$u,$u=null,Gu=0,0!==(6&Pu))throw Error(a(331));var o=Pu;for(Pu|=4,Kl=e.current;null!==Kl;){var i=Kl,l=i.child;if(0!==(16&Kl.flags)){var u=i.deletions;if(null!==u){for(var s=0;sZe()-Du?ds(e,0):Lu|=n),rs(e,t)}function Ps(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=Xu();null!==(e=ts(e,t))&&(vt(e,t,n),rs(e,n))}function Cs(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ps(e,n)}function Os(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Ps(e,n)}function Ts(e,t){return Ge(e,t)}function As(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ms(e,t,n,r){return new As(e,t,n,r)}function js(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Is(e,t){var n=e.alternate;return null===n?((n=Ms(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fs(e,t,n,r,o,i){var l=2;if(r=e,"function"===typeof e)js(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case S:return Ns(n.children,o,i,t);case _:l=8,o|=8;break;case E:return(e=Ms(12,n,t,2|o)).elementType=E,e.lanes=i,e;case T:return(e=Ms(13,n,t,o)).elementType=T,e.lanes=i,e;case A:return(e=Ms(19,n,t,o)).elementType=A,e.lanes=i,e;case I:return Ls(n,o,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case P:l=10;break e;case C:l=9;break e;case O:l=11;break e;case M:l=14;break e;case j:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ms(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Ns(e,t,n,r){return(e=Ms(7,e,r,t)).lanes=n,e}function Ls(e,t,n,r){return(e=Ms(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={},e}function zs(e,t,n){return(e=Ms(6,e,null,t)).lanes=n,e}function Rs(e,t,n){return(t=Ms(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ds(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hs(e,t,n,r,o,a,i,l,u){return e=new Ds(e,t,n,l,u),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ms(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ra(a),e}function Us(e){if(!e)return Oo;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Io(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Io(n))return Lo(e,n,t)}return t}function Bs(e,t,n,r,o,a,i,l,u){return(e=Hs(n,r,!0,e,0,a,0,l,u)).context=Us(null),n=e.current,(a=aa(r=Xu(),o=Ju(n))).callback=void 0!==t&&null!==t?t:null,ia(n,a),e.current.lanes=o,vt(e,o,r),rs(e,r),e}function Vs(e,t,n,r){var o=t.current,a=Xu(),i=Ju(o);return n=Us(n),null===t.context?t.context=n:t.pendingContext=n,(t=aa(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ia(o,t),null!==(e=es(o,i,a))&&la(e,o,i),i}function qs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ws(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,c=t.renderers[e.type];e.position||(e.position={start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}});var f=e.position.start,d=[e.type,f.line,f.column,s].join("-");if(!a.isValidElementType(c))throw new Error("Renderer for type `".concat(e.type,"` not defined or is not renderable"));var p=function(e,t,n,a,s,c){var f={key:t},d="string"===typeof a||a===r.Fragment;n.sourcePos&&e.position&&(f["data-sourcepos"]=function(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}(e.position));n.rawSourcePos&&!d&&(f.sourcePosition=e.position);n.includeNodeIndex&&s.node&&s.node.children&&!d&&(f.index=s.node.children.indexOf(e),f.parentChildCount=s.node.children.length);var p=null!==e.identifier&&void 0!==e.identifier?n.definitions[e.identifier.toUpperCase()]||{}:null;switch(e.type){case"root":l(f,{className:n.className});break;case"text":f.nodeKey=t,f.children=e.value;break;case"heading":f.level=e.depth;break;case"list":f.start=e.start,f.ordered=e.ordered,f.spread=e.spread,f.depth=e.depth;break;case"listItem":f.checked=e.checked,f.spread=e.spread,f.ordered=e.ordered,f.index=e.index,f.children=function(e,t){var n=t&&t.node?function(e){var t=e.children,n=e.spread,r=-1;for(;!n&&++r1:t}e.exports=i},5338:function(e,t,n){"use strict";var r=n(3367);e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(e,"definition",(function(e){var n=e.identifier.toUpperCase();n in t||(t[n]={href:e.url,title:e.title})})),t}},7334:function(e,t,n){"use strict";var r=n(3367),o=[].splice;function a(e,t){return function(e){return r(e,n),e};function n(n,r,a){if(a&&!e(n,r,a)){var i=[r,1];return"unwrap"===t&&n.children&&(i=i.concat(n.children)),o.apply(a.children,i),r}}}t.ofType=function(e,t){return a((function(t,n,r){return!e.includes(t.type)}),t)},t.ifNotMatch=a},3026:function(e,t,n){"use strict";var r=n(3367),o="virtualHtml",a=/^<(area|base|br|col|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\s*\/?>$/i,i=/^<(\/?)([a-z]+)\s*>$/;e.exports=function(e){var t,n;return r(e,"html",(function(e,r,l){n!==l&&(t=[],n=l);var u=function(e){var t=e.value.match(a);return!!t&&t[1]}(e);if(u)return l.children.splice(r,1,{type:o,tag:u,position:e.position}),!0;var s=function(e,t){var n=e.value.match(i);return!!n&&{tag:n[2],opening:!n[1],node:e}}(e);if(!s)return!0;var c=function(e,t){var n=e.length;for(;n--;)if(e[n].tag===t)return e.splice(n,1)[0];return!1}(t,s.tag);return c?l.children.splice(r,0,function(e,t,n){var r=n.children.indexOf(e.node),a=n.children.indexOf(t.node),i=n.children.splice(r,a-r+1),l=i.slice(1,-1);return{type:o,children:l,tag:e.tag,position:{start:e.node.position.start,end:t.node.position.end,indent:[]}}}(s,c,l)):s.opening||t.push(s),!0}),!0),e}},2068:function(e,t,n){"use strict";var r=n(5887),o=n(3584),a=n(5255),i=n(2007),l=n(5875),u=n(3026),s=n(7334),c=n(696),f=n(2895),d=n(5338),p=n(6764),h=n(9109),m=n(1230),g=Object.keys(h),v=function(e){var t=e.source||e.children||"";if(e.allowedTypes&&e.disallowedTypes)throw new Error("Only one of `allowedTypes` and `disallowedTypes` should be defined");var n=r(h,e.renderers),i=o().use(a).use(e.plugins||[]),p=i.runSync(i.parse(t)),v=r(e,{renderers:n,definitions:d(p)});return function(e){var t=[f,l()],n=e.disallowedTypes;e.allowedTypes&&(n=g.filter((function(t){return"root"!==t&&-1===e.allowedTypes.indexOf(t)})));var r=e.unwrapDisallowed?"unwrap":"remove";n&&n.length>0&&t.push(s.ofType(n,r));e.allowNode&&t.push(s.ifNotMatch(e.allowNode,r));var o=(e.allowDangerousHtml||!1===e.escapeHtml)&&!e.skipHtml,a=(e.astPlugins||[]).some((function(e){return e.identity===m.HtmlParser}));o&&!a&&t.push(u);e.astPlugins&&(t=t.concat(e.astPlugins));return t.push(c),t}(e).forEach((function(e){p=e(p,v)})),p};v.defaultProps={transformLinkUri:p},v.propTypes={className:i.string,source:i.string,children:i.string,sourcePos:i.bool,rawSourcePos:i.bool,escapeHtml:i.bool,allowDangerousHtml:i.bool,skipHtml:i.bool,allowNode:i.func,allowedTypes:i.arrayOf(i.oneOf(g)),disallowedTypes:i.arrayOf(i.oneOf(g)),transformLinkUri:i.oneOfType([i.func,i.bool]),linkTarget:i.oneOfType([i.func,i.string]),transformImageUri:i.func,astPlugins:i.arrayOf(i.func),unwrapDisallowed:i.bool,renderers:i.object,plugins:i.array},v.types=g,v.renderers=h,v.uriTransformer=p,e.exports=v},9109:function(e,t,n){"use strict";var r=n(5887),o=n(2791),a=parseInt((o.version||"16").slice(0,2),10)>=16,i=o.createElement;function l(e,t){return i(e,u(t),t.children)}function u(e){var t=e["data-sourcepos"];return t?{"data-sourcepos":t}:{}}e.exports={break:"br",paragraph:"p",emphasis:"em",strong:"strong",thematicBreak:"hr",blockquote:"blockquote",delete:"del",link:"a",image:"img",linkReference:"a",imageReference:"img",table:l.bind(null,"table"),tableHead:l.bind(null,"thead"),tableBody:l.bind(null,"tbody"),tableRow:l.bind(null,"tr"),tableCell:function(e){var t=e.align?{textAlign:e.align}:void 0,n=u(e);return i(e.isHeader?"th":"td",t?r({style:t},n):n,e.children)},root:function(e){var t=e.className,n=!t&&o.Fragment||"div";return i(n,t?{className:t}:null,e.children)},text:function(e){var t=e.children||"";return a?t:i("span",null,t)},list:function(e){var t=u(e);null!==e.start&&1!==e.start&&void 0!==e.start&&(t.start=e.start.toString());return i(e.ordered?"ol":"ul",t,e.children)},listItem:function(e){var t=null;if(null!==e.checked&&void 0!==e.checked){var n=e.checked;t=i("input",{type:"checkbox",checked:n,readOnly:!0})}return i("li",u(e),t,e.children)},definition:function(){return null},heading:function(e){return i("h".concat(e.level),u(e),e.children)},inlineCode:function(e){return i("code",u(e),e.children)},code:function(e){var t=e.language&&"language-".concat(e.language),n=i("code",t?{className:t}:null,e.value);return i("pre",u(e),n)},html:function(e){if(e.skipHtml)return null;var t=e.allowDangerousHtml||!1===e.escapeHtml,n=e.isBlock?"div":"span";if(!t)return i(o.Fragment||n,null,e.value);var r={dangerouslySetInnerHTML:{__html:e.value}};return i(n,r)},virtualHtml:function(e){return i(e.tag,u(e),e.children)},parsedHtml:function(e){return e["data-sourcepos"]?o.cloneElement(e.element,{"data-sourcepos":e["data-sourcepos"]}):e.element}}},1230:function(e,t){"use strict";var n="__RMD_HTML_PARSER__";t.HtmlParser="undefined"===typeof Symbol?n:Symbol(n)},6764:function(e){"use strict";var t=["http","https","mailto","tel"];e.exports=function(e){var n=(e||"").trim(),r=n.charAt(0);if("#"===r||"/"===r)return n;var o=n.indexOf(":");if(-1===o)return n;for(var a=t.length,i=-1;++ii||-1!==(i=n.indexOf("#"))&&o>i?n:"javascript:void(0)"}},2895:function(e,t,n){"use strict";var r=n(3367);function o(e){var t=e.children;e.children=[{type:"tableHead",align:e.align,children:[t[0]],position:t[0].position}],t.length>1&&e.children.push({type:"tableBody",align:e.align,children:t.slice(1),position:{start:t[1].position.start,end:t[t.length-1].position.end}})}e.exports=function(e){return r(e,"table",o),e}},5255:function(e,t,n){"use strict";e.exports=function(e){var t=this;this.Parser=function(n){return r(n,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var r=n(2625)},3584:function(e,t,n){"use strict";var r=n(5402),o=n(5586),a=n(1132),i=n(887),l=n(6409),u=n(419);e.exports=function e(){var t,n=[],o=l(),y={},b=-1;return w.data=function(e,n){if("string"===typeof e)return 2===arguments.length?(m("data",t),y[e]=n,w):c.call(y,e)&&y[e]||null;if(e)return m("data",t),y=e,w;return y},w.freeze=k,w.attachers=n,w.use=function(e){var r;if(m("use",t),null===e||void 0===e);else if("function"===typeof e)c.apply(null,arguments);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?u(e):o(e)}r&&(y.settings=a(y.settings||{},r));return w;function o(e){u(e.plugins),e.settings&&(r=a(r||{},e.settings))}function l(e){if("function"===typeof e)c(e);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?c.apply(null,e):o(e)}}function u(e){var t=-1;if(null===e||void 0===e);else{if("object"!==typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t should be an object");r=u(this,t)}return new Promise((function(e,t){var i;r.prComplete=new Promise((function(e){return i=function(){return e()}}));var l=function(n){i(),r.isRunning=!1,r.queuedCalls.length&&r.queuedCalls.shift()(),"data"in n?e(n.data):t(n.reason)};(function e(){for(var t=this,o=[],a=0;a should be an object");o=u(this,t)}var s,c=void 0;i.length&&"function"===typeof i[i.length-1]&&(c=i.pop()),o.prComplete=new Promise((function(e){return s=function(){return e()}}));var f=function(){for(var e=[],t=0;t>>1,o=e[r];if(!(0>>1;ra(u,n))sa(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[l]=n,r=l);else{if(!(sa(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var s=[],c=[],f=1,d=null,p=3,h=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function k(e){if(g=!1,w(e),!m)if(null!==r(s))m=!0,I(x);else{var t=r(c);null!==t&&F(k,t.startTime-e)}}function x(e,n){m=!1,g&&(g=!1,y(P),P=-1),h=!0;var a=p;try{for(w(n),d=r(s);null!==d&&(!(d.expirationTime>n)||e&&!T());){var i=d.callback;if("function"===typeof i){d.callback=null,p=d.priorityLevel;var l=i(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?d.callback=l:d===r(s)&&o(s),w(n)}else o(s);d=r(s)}if(null!==d)var u=!0;else{var f=r(c);null!==f&&F(k,f.startTime-n),u=!1}return u}finally{d=null,p=a,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,_=!1,E=null,P=-1,C=5,O=-1;function T(){return!(t.unstable_now()-Oe||125i?(e.sortIndex=a,n(c,e),null===r(s)&&e===r(c)&&(g?(y(P),P=-1):g=!0,F(k,a-i))):(e.sortIndex=l,n(s,e),m||h||(m=!0,I(x))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},6409:function(e,t,n){"use strict";var r=n(9729);e.exports=a,a.wrap=r;var o=[].slice;function a(){var e=[],t={run:function(){var t=-1,n=o.call(arguments,0,-1),a=arguments[arguments.length-1];if("function"!==typeof a)throw new Error("Expected function as last argument, not "+a);(function i(l){var u=e[++t],s=o.call(arguments,0).slice(1),c=n.length,f=-1;if(l)a(l);else{for(;++fi.length;l&&i.push(o);try{n=e.apply(null,i)}catch(u){if(l&&r)throw u;return o(u)}l||(n&&"function"===typeof n.then?n.then(a,o):n instanceof Error?o(n):a(n))};function o(){r||(r=!0,n.apply(null,arguments))}function a(e){o(null,e)}}},5935:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.assert=t.AssertionError=void 0;var a=n(1838),i=n(9059),l=function(e){function t(t){var n=this.constructor,r=e.call(this,"Wrong assertion encountered"+(t?': "'.concat(t,'"'):""))||this;if(Object.setPrototypeOf(r,n.prototype),!r.stack)return r;try{(0,a.overwriteReadonlyProp)(r,"stack",r.stack.split("\n").filter((function(){for(var e=[],t=0;t":""))+")");return m;function m(){var o,p,h=d.concat(r),m=[];if((!t||c(r,f,d[d.length-1]||null))&&(m=function(e){if(null!==e&&"object"===typeof e&&"length"in e)return e;if("number"===typeof e)return[a,e];return[e]}(n(r,d)),m[0]===l))return m;if(r.children&&m[0]!==i)for(p=(u?r.children.length:-1)+s;p>-1&&p-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function c(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function f(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}u.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(u.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){c(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(u.prototype,"dirname",{get:function(){return"string"===typeof this.path?r.dirname(this.path):void 0},set:function(e){f(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(u.prototype,"basename",{get:function(){return"string"===typeof this.path?r.basename(this.path):void 0},set:function(e){c(e,"basename"),s(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(u.prototype,"extname",{get:function(){return"string"===typeof this.path?r.extname(this.path):void 0},set:function(e){if(s(e,"extname"),f(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(u.prototype,"stem",{get:function(){return"string"===typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){c(e,"stem"),s(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})},2872:function(e,t,n){"use strict";var r=n(2164),o=n(1860);e.exports=o,o.prototype.message=function(e,t,n){var o=new r(e,t,n);this.path&&(o.name=this.path+":"+o.name,o.file=this.path);return o.fatal=!1,this.messages.push(o),o},o.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},o.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},7886:function(e,t){"use strict";function n(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var r,o,a,i,l=0,u=-1;if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');if(n(e),r=e.length,void 0===t||!t.length||t.length>e.length){for(;r--;)if(47===e.charCodeAt(r)){if(a){l=r+1;break}}else u<0&&(a=!0,u=r+1);return u<0?"":e.slice(l,u)}if(t===e)return"";o=-1,i=t.length-1;for(;r--;)if(47===e.charCodeAt(r)){if(a){l=r+1;break}}else o<0&&(a=!0,o=r+1),i>-1&&(e.charCodeAt(r)===t.charCodeAt(i--)?i<0&&(u=r):(i=-1,u=o));l===u?u=o:u<0&&(u=e.length);return e.slice(l,u)},t.dirname=function(e){var t,r,o;if(n(e),!e.length)return".";t=-1,o=e.length;for(;--o;)if(47===e.charCodeAt(o)){if(r){t=o;break}}else r||(r=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,r,o,a=-1,i=0,l=-1,u=0;n(e),o=e.length;for(;o--;)if(47!==(r=e.charCodeAt(o)))l<0&&(t=!0,l=o+1),46===r?a<0?a=o:1!==u&&(u=1):a>-1&&(u=-1);else if(t){i=o+1;break}if(a<0||l<0||0===u||1===u&&a===l-1&&a===i+1)return"";return e.slice(a,l)},t.join=function(){var e,t=-1;for(;++t2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",a=0):a=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),i=u,l=0;continue}}else if(o.length){o="",a=0,i=u,l=0;continue}t&&(o=o.length?o+"/..":"..",a=2)}else o.length?o+="/"+e.slice(i+1,u):o=e.slice(i+1,u),a=u-i-1;i=u,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t),r.length||t||(r=".");r.length&&47===e.charCodeAt(e.length-1)&&(r+="/");return t?"/"+r:r}(e)},t.sep="/"},6685:function(e,t){"use strict";t.cwd=function(){return"/"}},5887:function(e){e.exports=function(){for(var e={},n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}},885:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(181);function o(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=[],u=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(c){s=!0,o=c}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||(0,r.Z)(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.")}()}},2982:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(907);var o=n(181);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(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.")}()}},1002:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:function(){return r}})},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(907);function o(e,t){if(e){if("string"===typeof e)return(0,r.Z)(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)?(0,r.Z)(e,t):void 0}}},9883:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(1742),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=a.next()).done;)i.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},u=function(e){function t(t){var n=this.constructor,a=e.call(this,"Wrong assertion encountered"+(t?': "'.concat(t,'"'):""))||this;if(Object.setPrototypeOf(a,n.prototype),!a.stack)return a;try{!function(e,t,n){try{e[t]=n}catch(l){}if(e[t]===n)return n;var a=void 0,i=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,configurable:!0};if(i.get)throw new Error("Probably a wrong ides to overwrite ".concat(String(t)," getter"));try{Object.defineProperty(e,t,o(o({},i),{value:n}))}catch(u){s((0,r.is)(u)),a=u}if(e[t]!==n)throw a||new Error("Can't assign")}(a,"stack",a.stack.split("\n").filter((function(){for(var e=[],t=0;t({\n\tmockData: [\n\t\t{\n\t\t\tpageId: \"login.ftl\",\n\t\t\tlocale: {\n\t\t\t\t//When we test the login page we do it in french\n\t\t\t\tcurrentLanguageTag: \"fr\",\n\t\t\t},\n\t\t\t//Uncomment the following line for hiding the Alert message\n\t\t\t//\"message\": undefined\n\t\t\t//Uncomment the following line for showing an Error message\n\t\t\t//message: { type: \"error\", summary: \"This is an error\" }\n\t\t},\n\t\t{\n\t\t\tpageId: \"my-extra-page-2.ftl\",\n\t\t\tsomeCustomValue: \"foo bar baz\"\n\t\t},\n\t\t{\n\t\t\t//NOTE: You will either use register.ftl (legacy) or register-user-profile.ftl, not both\n\t\t\tpageId: \"register-user-profile.ftl\",\n\t\t\tlocale: {\n\t\t\t\tcurrentLanguageTag: \"fr\"\n\t\t\t},\n\t\t\tprofile: {\n\t\t\t\tattributes: [\n\t\t\t\t\t{\n\t\t\t\t\t\tvalidators: {\n\t\t\t\t\t\t\tpattern: {\n\t\t\t\t\t\t\t\tpattern: \"^[a-zA-Z0-9]+$\",\n\t\t\t\t\t\t\t\t\"ignore.empty.value\": true,\n\t\t\t\t\t\t\t\t// eslint-disable-next-line no-template-curly-in-string\n\t\t\t\t\t\t\t\t\"error-message\": \"${alphanumericalCharsOnly}\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\t//NOTE: To override the default mock value\n\t\t\t\t\t\tvalue: undefined,\n\t\t\t\t\t\tname: \"username\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tvalidators: {\n\t\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\t\toptions: [\"male\", \"female\", \"non-binary\", \"transgender\", \"intersex\", \"non_communicated\"]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t// eslint-disable-next-line no-template-curly-in-string\n\t\t\t\t\t\tdisplayName: \"${gender}\",\n\t\t\t\t\t\tannotations: {},\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tgroupAnnotations: {},\n\t\t\t\t\t\treadOnly: false,\n\t\t\t\t\t\tname: \"gender\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tpageId: \"register.ftl\",\n\t\t\tauthorizedMailDomains: [\n\t\t\t\t\"example.com\",\n\t\t\t\t\"another-example.com\",\n\t\t\t\t\"*.yet-another-example.com\",\n\t\t\t\t\"*.example.com\",\n\t\t\t\t\"hello-world.com\"\n\t\t\t],\n\t\t\t// Simulate we got an error with the email field\n\t\t\tmessagesPerField: {\n\t\t\t\tprintIfExists: (fieldName: string, className: T) => { console.log({ fieldName }); return fieldName === \"email\" ? className : undefined; },\n\t\t\t\texistsError: (fieldName: string) => fieldName === \"email\",\n\t\t\t\tget: (fieldName: string) => `Fake error for ${fieldName}`,\n\t\t\t\texists: (fieldName: string) => fieldName === \"email\"\n\t\t\t},\n\n\t\t}\n\t]\n});\n\nexport const { kcContext } = getKcContext({\n\t// Uncomment to test the login page for development.\n\t//mockPageId: \"login.ftl\",\n});\n\n\nexport type KcContext = NonNullable[\"kcContext\"]>;","'use strict'\n\nmodule.exports = bail\n\nfunction bail(err) {\n if (err) {\n throw err\n }\n}\n","// @denoify-line-ignore\nimport { Polyfill as Set } from \"minimal-polyfills/Set\";\n// @denoify-line-ignore\nimport { Polyfill as WeakMap } from \"minimal-polyfills/WeakMap\";\nimport { assert } from \"tsafe/assert\";;\nimport { is } from \"tsafe/is\";\nimport { LazyEvt } from \"./LazyEvt\";\nimport { importProxy } from \"./importProxy\";\nimport { overwriteReadonlyProp } from \"tsafe/lab/overwriteReadonlyProp\";\n\nimport type { \n Handler, \n NonPostableEvtLike,\n Evt,\n CtxLike,\n DoneOrAborted\n} from \"./types\";\n\nexport type Ctx = import(\"./types/interfaces\").Ctx;\n\nclass CtxImpl implements Ctx{\n\n\n get evtDoneOrAborted(): Evt> {\n return this.lazyEvtDoneOrAborted.evt;\n }\n\n get evtAttach(): Evt> {\n return this.lazyEvtAttach.evt;\n }\n\n get evtDetach(): Evt> {\n return this.lazyEvtDetach.evt;\n }\n\n private __completionStatus: DoneOrAborted | undefined;\n\n get completionStatus(): DoneOrAborted | undefined {\n return this.__completionStatus;\n }\n\n\n private lazyEvtAttach = new LazyEvt>();\n private lazyEvtDetach = new LazyEvt>();\n private lazyEvtDoneOrAborted = new LazyEvt>();\n\n private onDoneOrAborted(doneOrAborted: DoneOrAborted): void {\n\n this.__completionStatus = doneOrAborted;\n\n this.lazyEvtDoneOrAborted.post(doneOrAborted);\n }\n\n waitFor(timeout?: number): Promise {\n return this.evtDoneOrAborted\n .waitFor(timeout)\n .then(\n data => {\n if (data.type === \"ABORTED\") {\n throw data.error;\n }\n return data.result;\n },\n timeoutError => {\n this.abort(timeoutError);\n throw timeoutError;\n }\n )\n ;\n }\n\n\n abort(error: Error) {\n return this.__done(error);\n }\n\n done(result: Result) {\n return this.__done(undefined, result);\n }\n\n /** Detach all handler bound to this context from theirs respective Evt and post getEvtDone() */\n private __done(error: Error | undefined, result?: Result): Handler.WithEvt[] {\n\n const handlers: Handler.WithEvt[] = [];\n\n for (const handler of this.handlers.values()) {\n\n const evt = this.evtByHandler.get(handler)!;\n\n const wasStillAttached = handler.detach();\n\n //NOTE: It should not be possible\n if (!wasStillAttached) {\n continue;\n }\n\n handlers.push({ handler, evt });\n }\n\n this.onDoneOrAborted({\n ...(!!error ?\n { type: \"ABORTED\", error } :\n { type: \"DONE\", \"result\": result as NonNullable }\n ),\n handlers\n });\n\n\n return handlers;\n\n }\n\n private handlers = new Set<\n Handler>\n >();\n private evtByHandler = new WeakMap<\n Handler>,\n NonPostableEvtLike\n >();\n\n getHandlers(): Handler.WithEvt[] {\n return Array.from(this.handlers.values())\n .map(handler => ({ handler, \"evt\": this.evtByHandler.get(handler)! }))\n ;\n }\n\n\n zz__addHandler(\n handler: Handler>,\n evt: NonPostableEvtLike\n ) {\n assert(handler.ctx === this);\n assert(is>>(handler));\n\n if( this.completionStatus !== undefined ){\n handler.detach();\n return;\n }\n\n this.handlers.add(handler);\n this.evtByHandler.set(handler, evt);\n this.lazyEvtAttach.post({ handler, evt });\n }\n\n zz__removeHandler(\n handler: Handler>,\n ) {\n assert(handler.ctx === this);\n assert(is>>(handler));\n\n this.lazyEvtDetach.post({\n handler,\n \"evt\": this.evtByHandler.get(handler)!\n });\n\n this.handlers.delete(handler);\n }\n\n}\n\nexport const Ctx: {\n new (): Ctx;\n readonly prototype: Ctx;\n} = CtxImpl;\n\ntry{ overwriteReadonlyProp(Ctx as any, \"name\", \"Ctx\"); }catch{}\n\nimportProxy.Ctx = Ctx;\n\n\n","\nimport type { ToNonPostableEvt, NonPostableEvtLike } from \"./types\";\n\n/** https://docs.evt.land/api/evt/asnonpostable */\nexport function asNonPostable>(evt: E): ToNonPostableEvt{\n return evt as any;\n}","import type { NonPostableEvtLike, ToPostableEvt } from \"./types\";\n\n/** \n * @deprecated: ⚠ UNSAFE ⚠ - Please don't use it, it will be removed in the next \n * major release.\n * https://docs.evt.land/api/evt/aspostable \n * */\nexport function asPostable>(evt: E): ToPostableEvt{\n return evt as any;\n}\n\n","\nimport type { Evt } from \"./Evt\";\nimport type { StatefulEvt, UnpackEvt, NonPostableEvtLike, StatefulReadonlyEvtLike } from \"./types\";\nimport type { PromiseOrNot } from \"tsafe/lab/PromiseOrNot\";\nimport { importProxy } from \"./importProxy\";\n\n\n\n/** \n * NOTE: Workaround until v2.0 where .pipe() will support async operators \n * Usage example: https://stackblitz.com/edit/evt-async-op?file=index.ts \n * \n * When the argument is a StatefulEvt:\n * If, wile asyncOp was running, the state of the source evt\n * have changed then the result will be discarded.\n * \n * If the asyncOp complete synchronously (meaning it does not return\n * a promise) then the result is synchronously transformed. (As with .pipe() )\n * \n * More usage example in src/test/test95.ts\n */\nexport function asyncPipe, U>(\n evt: E,\n asyncOp: (data: UnpackEvt) => PromiseOrNot<[U] | null>\n): \n E extends StatefulReadonlyEvtLike ? StatefulEvt : Evt \n{\n\n const out = \"state\" in evt ?\n importProxy.Evt.create | undefined>(undefined) :\n importProxy.Evt.create>();\n\n let currentCallCount = 0;\n\n evt.attach(async (data: UnpackEvt) => {\n\n currentCallCount++;\n\n const thisCallCount = currentCallCount;\n\n const prOpResult = asyncOp(data);\n\n let opResult: [U] | null;\n\n if (\n prOpResult !== null &&\n \"then\" in prOpResult\n ) {\n\n opResult = await prOpResult;\n\n if (\n \"state\" in evt &&\n thisCallCount !== currentCallCount\n ) {\n return;\n }\n\n } else {\n\n opResult = prOpResult;\n\n }\n\n if (!opResult) {\n\n return;\n }\n\n out.post(opResult[0] as any);\n\n });\n\n return out as any;\n\n}\n\n","\nimport { importProxy } from \"./importProxy\";\nimport type { Evt, StatefulEvt, NonPostableEvtLike, UnpackEvt } from \"./types\";\n\nexport function create | undefined = NonPostableEvtLike>(): Evt>;\n/** \n * https://docs.evt.land/api/evt/create\n * Return a new Evt instance.\n */\nexport function create(): Evt;\n/** \n * https://docs.evt.land/api/evt/create\n * Return a new StatefulEvt instance.\n */\nexport function create(initialState: T ): StatefulEvt;\nexport function create | undefined>(initialState: UnpackEvt ): StatefulEvt>;\nexport function create(...args: [] | [any] ): Evt | StatefulEvt {\n return args.length === 0 ? \n new importProxy.Evt() : \n new importProxy.StatefulEvt(args[0])\n ;\n}","import type { FactorizeEvt, NonPostableEvtLike } from \"./types\";\n\n/** https://docs.evt.land/api/evt/factorize */\nexport function factorize>(\n evt: E\n): FactorizeEvt {\n return evt as any;\n}\n\n/*\nimport { Evt } from \"./Evt\";\nconst x: Evt = loosenType(new Evt()); x;\nconst y: Evt = loosenType(new Evt()); y;\n*/","import { id } from \"tsafe/id\";\nimport { assert } from \"tsafe/assert\";;\nimport { typeGuard } from \"tsafe/typeGuard\";\nimport { mergeImpl } from \"./Evt.merge\";\nimport { importProxy } from \"./importProxy\";\nimport type { dom, Evt, NonPostableEvtLike } from \"./types\";\nimport type { EventTargetLike } from \"./types\";\nimport * as nsEventTargetLike from \"./types/EventTargetLike\";\nconst { EventTargetLike: EventTargetLikeAsValue } = nsEventTargetLike;\nimport type { ObserverConstructor } from \"./types/Observer\";\n\ntype OneOrMany = T | ArrayLike;\ntype CtxLike = import(\"./types\").CtxLike & {\n evtDoneOrAborted: NonPostableEvtLike & { postCount: number; attachOnce(callback: () => void): void; };\n};\n\nfunction fromImplForTargetEventLike(\n ctx: CtxLike | undefined,\n target: OneOrMany> | PromiseLike,\n eventName?: string,\n options?: EventTargetLike.HasEventTargetAddRemove.Options\n): Evt {\n\n const matchEventTargetLike =\n (target_: typeof target): target_ is EventTargetLike =>\n EventTargetLikeAsValue.canBe(target_);\n\n if (!matchEventTargetLike(target)) {\n\n if (\"then\" in target) {\n\n const evt = new importProxy.Evt();\n\n const isCtxDone = (() => {\n\n const getEvtDonePostCount = () => ctx?.evtDoneOrAborted.postCount;\n\n const n = getEvtDonePostCount();\n\n return () => n !== getEvtDonePostCount();\n\n })();\n\n target.then(data => {\n\n if (isCtxDone()) {\n return;\n }\n\n evt.post(data);\n\n });\n\n return evt;\n\n }\n\n return mergeImpl>(\n ctx,\n Array.from(target).map(\n target => fromImplForTargetEventLike(ctx, target, eventName, options)\n )\n );\n\n }\n\n type ProxyMethod = (\n listener: (data: T) => void,\n eventName: string,\n options?: EventTargetLike.HasEventTargetAddRemove.Options\n ) => void;\n\n let proxy: {\n on: ProxyMethod;\n off: ProxyMethod;\n };\n\n if (EventTargetLikeAsValue.HasEventTargetAddRemove.match(target)) {\n proxy = {\n \"on\": (listener, eventName, options) => target.addEventListener(eventName, listener, options),\n \"off\": (listener, eventName, options) => target.removeEventListener(eventName, listener, options)\n };\n } else if (EventTargetLikeAsValue.NodeStyleEventEmitter.match(target)) {\n proxy = {\n \"on\": (listener, eventName) => target.addListener(eventName, listener),\n \"off\": (listener, eventName) => target.removeListener(eventName, listener)\n };\n } else if (EventTargetLikeAsValue.JQueryStyleEventEmitter.match(target)) {\n proxy = {\n \"on\": (listener, eventName) => target.on(eventName, listener),\n \"off\": (listener, eventName) => target.off(eventName, listener)\n };\n } else if (EventTargetLikeAsValue.RxJSSubject.match(target)) {\n\n let subscription: EventTargetLike.RxJSSubject.Subscription;\n\n proxy = {\n \"on\": listener => subscription = target.subscribe(data => listener(data)),\n \"off\": () => subscription.unsubscribe()\n };\n\n } else {\n\n id(target);\n assert(false);\n\n }\n\n const evt = new importProxy.Evt();\n\n const listener = (data: T) => evt.post(data);\n\n ctx?.evtDoneOrAborted.attachOnce(\n () => proxy.off(\n listener,\n eventName!,\n options\n )\n );\n\n proxy.on(listener, eventName!, options);\n\n return evt;\n\n}\n\nfunction fromImplForObserver(\n ctx: CtxLike | undefined,\n ObserverConstructor: ObserverConstructor,\n target: Target\n): Evt {\n\n const evt = importProxy.Evt.create();\n\n const listener = ([entry]: Entry[]) => evt.post(entry);\n\n const observer = new ObserverConstructor(listener);\n\n observer.observe(target);\n\n ctx?.evtDoneOrAborted.attachOnce(\n () => observer.disconnect()\n );\n\n return evt;\n\n}\n\n/** https://docs.evt.land/api/evt/from */\nexport function from(\n ctx: CtxLike,\n target: EventTargetLike.HTMLElement,\n eventName: K,\n options?: EventTargetLike.HasEventTargetAddRemove.Options\n): Evt;\n\nexport function from(\n ctx: CtxLike,\n target: EventTargetLike.Window,\n eventName: K,\n options?: EventTargetLike.HasEventTargetAddRemove.Options\n): Evt;\n\nexport function from(\n ctx: CtxLike,\n target: EventTargetLike.Document,\n eventName: K,\n options?: EventTargetLike.HasEventTargetAddRemove.Options\n): Evt;\n\nexport function from(\n ctx: CtxLike,\n target: OneOrMany<\n EventTargetLike.NodeStyleEventEmitter |\n EventTargetLike.JQueryStyleEventEmitter\n >,\n eventName: string\n): Evt;\nexport function from(\n ctx: CtxLike,\n target: OneOrMany<\n EventTargetLike.HasEventTargetAddRemove\n >,\n eventName: string,\n options?: EventTargetLike.HasEventTargetAddRemove.Options\n): Evt;\nexport function from(\n ctx: CtxLike,\n target: OneOrMany>\n): Evt;\n\nexport function from(\n ctx: CtxLike,\n target: PromiseLike\n): Evt;\n\nexport function from(\n ctx: CtxLike,\n ObserverConstructor: ObserverConstructor,\n target: Target\n): Evt;\n\n\nexport function from(\n target: EventTargetLike.HTMLElement,\n eventName: K,\n options?: EventTargetLike.HasEventTargetAddRemove.Options\n): Evt;\nexport function from(\n target: EventTargetLike.Window,\n eventName: K,\n options?: EventTargetLike.HasEventTargetAddRemove.Options\n): Evt;\nexport function from(\n target: EventTargetLike.Document,\n eventName: K,\n options?: EventTargetLike.HasEventTargetAddRemove.Options\n): Evt;\nexport function from(\n target: OneOrMany<\n EventTargetLike.NodeStyleEventEmitter |\n EventTargetLike.JQueryStyleEventEmitter\n >,\n eventName: string\n): Evt;\nexport function from(\n target: OneOrMany<\n EventTargetLike.HasEventTargetAddRemove\n >,\n eventName: string,\n options?: EventTargetLike.HasEventTargetAddRemove.Options\n): Evt;\nexport function from(\n target: OneOrMany>\n): Evt;\nexport function from(\n target: PromiseLike\n): Evt;\n\nexport function from(\n ObserverConstructor: ObserverConstructor,\n target: Target\n): Evt;\n/*\n/^[A-Z]/.test(targetOrEventNameOrObserverConstructorOrObserverTarget.name\n */\n\nexport function from(\n ctxOrTargetOrObserverConstructor: CtxLike | OneOrMany> | PromiseLike | ObserverConstructor,\n targetOrEventNameOrObserverConstructorOrObserverTarget?: OneOrMany> | string | PromiseLike | ObserverConstructor | ObserverTarget,\n eventNameOrOptionsOrObserverTarget?: string | EventTargetLike.HasEventTargetAddRemove.Options | ObserverTarget,\n options?: EventTargetLike.HasEventTargetAddRemove.Options\n): Evt {\n\n if (\"evtDoneOrAborted\" in ctxOrTargetOrObserverConstructor) {\n\n assert(\n typeGuard> | PromiseLike | ObserverConstructor>(targetOrEventNameOrObserverConstructorOrObserverTarget, true) &&\n typeGuard(eventNameOrOptionsOrObserverTarget, true) &&\n typeGuard(options, true)\n );\n\n if (typeof targetOrEventNameOrObserverConstructorOrObserverTarget === \"function\") {\n\n assert(\n typeGuard(eventNameOrOptionsOrObserverTarget, true) &&\n typeGuard(options, true)\n );\n\n return fromImplForObserver(\n ctxOrTargetOrObserverConstructor,\n targetOrEventNameOrObserverConstructorOrObserverTarget,\n eventNameOrOptionsOrObserverTarget\n );\n\n } else {\n\n assert(\n typeGuard>(eventNameOrOptionsOrObserverTarget, true)\n );\n\n return fromImplForTargetEventLike(\n ctxOrTargetOrObserverConstructor,\n targetOrEventNameOrObserverConstructorOrObserverTarget,\n eventNameOrOptionsOrObserverTarget,\n options\n );\n\n }\n\n\n } else {\n\n assert(\n typeGuard>>(ctxOrTargetOrObserverConstructor, true) &&\n typeGuard(targetOrEventNameOrObserverConstructorOrObserverTarget, true) &&\n typeGuard(eventNameOrOptionsOrObserverTarget, true)\n );\n\n if (typeof ctxOrTargetOrObserverConstructor === \"function\") {\n\n assert(\n typeGuard(targetOrEventNameOrObserverConstructorOrObserverTarget, true) &&\n typeGuard(eventNameOrOptionsOrObserverTarget, true)\n );\n\n return fromImplForObserver(\n undefined,\n ctxOrTargetOrObserverConstructor,\n targetOrEventNameOrObserverConstructorOrObserverTarget\n );\n\n\n } else {\n\n assert(\n typeGuard>(\n targetOrEventNameOrObserverConstructorOrObserverTarget, true\n )\n );\n\n return fromImplForTargetEventLike(\n undefined,\n ctxOrTargetOrObserverConstructor,\n targetOrEventNameOrObserverConstructorOrObserverTarget,\n eventNameOrOptionsOrObserverTarget\n );\n\n }\n\n\n\n }\n\n}\n","// @denoify-line-ignore\nimport { Polyfill as WeakMap } from \"minimal-polyfills/WeakMap\";\nimport { importProxy } from \"./importProxy\";\nimport type { Ctx } from \"./types\";\n\n/** \n * https://docs.evt.land/api/evt/getctx\n * \n * Evt.getCtx(obj) an instance of Ctx, always the same for a given object.\n * No strong reference to the object is created\n * when the object is no longer referenced it's associated Ctx will be freed from memory.\n */\nexport function getCtxFactory() {\n\n const ctxByObj = new WeakMap