@feathery/react 2.12.2 → 2.12.3-pr-1522.4bcc507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Form/index.d.ts.map +1 -1
- package/dist/Form/tests/testMocks.d.ts.map +1 -1
- package/dist/cjs/Form/index.d.ts.map +1 -1
- package/dist/cjs/Form/tests/testMocks.d.ts.map +1 -1
- package/dist/cjs/elements/fields/AddressLine1Field/tests/test-utils.d.ts +1 -0
- package/dist/cjs/elements/fields/AddressLine1Field/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/ButtonGroupField/tests/test-utils.d.ts +1 -0
- package/dist/cjs/elements/fields/ButtonGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/CheckboxField/tests/test-utils.d.ts +1 -0
- package/dist/cjs/elements/fields/CheckboxField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/CheckboxGroupField/tests/test-utils.d.ts +1 -0
- package/dist/cjs/elements/fields/CheckboxGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/ColorPickerField/tests/test-utils.d.ts +1 -0
- package/dist/cjs/elements/fields/ColorPickerField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/DateSelectorField/tests/test-utils.d.ts +1 -0
- package/dist/cjs/elements/fields/DateSelectorField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/DropdownField/tests/test-utils.d.ts +2 -0
- package/dist/cjs/elements/fields/DropdownField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/DropdownMultiField/tests/test-utils.d.ts +1 -0
- package/dist/cjs/elements/fields/DropdownMultiField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/MatrixField/tests/test-utils.d.ts +1 -0
- package/dist/cjs/elements/fields/MatrixField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/PasswordField/tests/test-utils.d.ts +1 -0
- package/dist/cjs/elements/fields/PasswordField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/PhoneField/tests/test-utils.d.ts +1 -0
- package/dist/cjs/elements/fields/PhoneField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/PinInputField/tests/test-utils.d.ts +1 -0
- package/dist/cjs/elements/fields/PinInputField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/RadioButtonGroupField/tests/test-utils.d.ts +1 -0
- package/dist/cjs/elements/fields/RadioButtonGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/RatingField/tests/test-utils.d.ts +1 -0
- package/dist/cjs/elements/fields/RatingField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/SliderField/tests/test-utils.d.ts +1 -0
- package/dist/cjs/elements/fields/SliderField/tests/test-utils.d.ts.map +1 -1
- package/dist/cjs/elements/fields/shared/tests/field-test-utils.d.ts +1 -0
- package/dist/cjs/elements/fields/shared/tests/field-test-utils.d.ts.map +1 -1
- package/dist/cjs/{fthry_FormControl.C6Rjgaho.js → fthry_FormControl.BkRkEOPV.js} +1 -1
- package/dist/cjs/{fthry_InlineTooltip.7d1XAj6X.js → fthry_InlineTooltip.CbVeAbj-.js} +2 -2
- package/dist/cjs/{fthry_Overlay.Bw-JWkvN.js → fthry_Overlay.zp3MDZez.js} +1 -1
- package/dist/cjs/{fthry_PaymentMethodField.DFPieFTd.js → fthry_PaymentMethodField.CJ8dq0fW.js} +4 -4
- package/dist/cjs/{fthry_Placeholder.DExePn4A.js → fthry_Placeholder.BmZn9eqe.js} +1 -1
- package/dist/cjs/{fthry_ShowEyeIcon.UMZgA8E5.js → fthry_ShowEyeIcon.Bm2XEOxd.js} +1 -1
- package/dist/cjs/{fthry_index.wQoLwNSA.js → fthry_index.B4YjC-C6.js} +3 -3
- package/dist/cjs/{fthry_index.C1oeAVTE.js → fthry_index.B9-9P9JF.js} +5 -5
- package/dist/cjs/{fthry_index.S5WoB9-i.js → fthry_index.BGZ09_Df.js} +4 -4
- package/dist/cjs/{fthry_index.DMvOdp_W.js → fthry_index.BHZiDOJy.js} +4 -4
- package/dist/cjs/{fthry_index.B6Z5Lnk8.js → fthry_index.BMG2-fL2.js} +1 -1
- package/dist/cjs/{fthry_index.BsqXL16P.js → fthry_index.BRcdDEP7.js} +5 -5
- package/dist/cjs/{fthry_index.CioaVxCu.js → fthry_index.BYMaOURT.js} +1 -1
- package/dist/cjs/{fthry_index.Bz0SR10h.js → fthry_index.Bc1WOCpN.js} +2 -2
- package/dist/cjs/{fthry_index.RgU7Oxrf.js → fthry_index.Bwkf_lk3.js} +953 -266
- package/dist/cjs/{fthry_index.KdnS_mBc.js → fthry_index.CAuvgDuG.js} +2 -2
- package/dist/cjs/{fthry_index.DZF8XXGF.js → fthry_index.CohzVLkQ.js} +4 -4
- package/dist/cjs/{fthry_index.Di_2sd1H.js → fthry_index.CtdngFQd.js} +81 -55
- package/dist/cjs/{fthry_index.YNi32Ez7.js → fthry_index.CzI9aLcM.js} +6 -6
- package/dist/cjs/{fthry_index.Cd5vLcwa.js → fthry_index.D6MKhV5W.js} +1 -1
- package/dist/cjs/{fthry_index.BnwtRb9Y.js → fthry_index.DHlxQYOY.js} +90 -63
- package/dist/cjs/{fthry_index.xtJFp2c_.js → fthry_index.DI7QOcRZ.js} +3 -3
- package/dist/cjs/{fthry_index.D1qaLv6Z.js → fthry_index.DNAP_k72.js} +8 -8
- package/dist/cjs/{fthry_index.DE7MeZLB.js → fthry_index.DRGdkWyD.js} +5 -5
- package/dist/cjs/{fthry_index.vmA_xfxy.js → fthry_index.DvJ038DD.js} +205 -71
- package/dist/cjs/{fthry_index.C_3RykNd.js → fthry_index.E_PMR0Yl.js} +1 -1
- package/dist/cjs/{fthry_index.CJZrrJii.js → fthry_index.fleNYFAW.js} +1 -1
- package/dist/cjs/{fthry_index.DX-1RJ2S.js → fthry_index.hn3nWnc7.js} +6 -6
- package/dist/cjs/{fthry_index.NNL4lQSw.js → fthry_index.sQV37Gt2.js} +1 -1
- package/dist/cjs/{fthry_input.DWFkBuAl.js → fthry_input.BhfAe7t1.js} +1 -1
- package/dist/cjs/{fthry_script.BVLKs7Gs.js → fthry_script.iSzGaCwW.js} +1 -1
- package/dist/cjs/{fthry_styles.B-tC_Abq.js → fthry_styles.CKZy9WDb.js} +1 -1
- package/dist/cjs/{fthry_useElementSize.BepGSP1Z.js → fthry_useElementSize.CUMmUgEh.js} +1 -1
- package/dist/cjs/{fthry_useSalesforceSync.DuaHbK7s.js → fthry_useSalesforceSync.DURMJ7-O.js} +1 -1
- package/dist/cjs/{fthry_webfontloader.D1tv1rM2.js → fthry_webfontloader.C04VodQo.js} +1 -1
- package/dist/cjs/index.d.ts +7 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/utils/featheryClient/index.d.ts +6 -0
- package/dist/cjs/utils/featheryClient/index.d.ts.map +1 -1
- package/dist/cjs/utils/formContext.d.ts +7 -0
- package/dist/cjs/utils/formContext.d.ts.map +1 -1
- package/dist/cjs/utils/internalState.d.ts +7 -0
- package/dist/cjs/utils/internalState.d.ts.map +1 -1
- package/dist/esm/Form/index.d.ts.map +1 -1
- package/dist/esm/Form/tests/testMocks.d.ts.map +1 -1
- package/dist/esm/elements/fields/AddressLine1Field/tests/test-utils.d.ts +1 -0
- package/dist/esm/elements/fields/AddressLine1Field/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/ButtonGroupField/tests/test-utils.d.ts +1 -0
- package/dist/esm/elements/fields/ButtonGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/CheckboxField/tests/test-utils.d.ts +1 -0
- package/dist/esm/elements/fields/CheckboxField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/CheckboxGroupField/tests/test-utils.d.ts +1 -0
- package/dist/esm/elements/fields/CheckboxGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/ColorPickerField/tests/test-utils.d.ts +1 -0
- package/dist/esm/elements/fields/ColorPickerField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/DateSelectorField/tests/test-utils.d.ts +1 -0
- package/dist/esm/elements/fields/DateSelectorField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/DropdownField/tests/test-utils.d.ts +2 -0
- package/dist/esm/elements/fields/DropdownField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/DropdownMultiField/tests/test-utils.d.ts +1 -0
- package/dist/esm/elements/fields/DropdownMultiField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/MatrixField/tests/test-utils.d.ts +1 -0
- package/dist/esm/elements/fields/MatrixField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/PasswordField/tests/test-utils.d.ts +1 -0
- package/dist/esm/elements/fields/PasswordField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/PhoneField/tests/test-utils.d.ts +1 -0
- package/dist/esm/elements/fields/PhoneField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/PinInputField/tests/test-utils.d.ts +1 -0
- package/dist/esm/elements/fields/PinInputField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/RadioButtonGroupField/tests/test-utils.d.ts +1 -0
- package/dist/esm/elements/fields/RadioButtonGroupField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/RatingField/tests/test-utils.d.ts +1 -0
- package/dist/esm/elements/fields/RatingField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/SliderField/tests/test-utils.d.ts +1 -0
- package/dist/esm/elements/fields/SliderField/tests/test-utils.d.ts.map +1 -1
- package/dist/esm/elements/fields/shared/tests/field-test-utils.d.ts +1 -0
- package/dist/esm/elements/fields/shared/tests/field-test-utils.d.ts.map +1 -1
- package/dist/esm/{fthry_FormControl.D8Kuyg4Y.js → fthry_FormControl.DDAZFoSo.js} +1 -1
- package/dist/esm/{fthry_InlineTooltip.DLMOu2tO.js → fthry_InlineTooltip.DwsGjmPQ.js} +2 -2
- package/dist/esm/{fthry_Overlay.BaulbPVG.js → fthry_Overlay.DkCTSVzA.js} +1 -1
- package/dist/esm/{fthry_PaymentMethodField.E2VJPyju.js → fthry_PaymentMethodField.BgCHxykS.js} +4 -4
- package/dist/esm/{fthry_Placeholder.CY1XAzRf.js → fthry_Placeholder.BZZOH4gv.js} +1 -1
- package/dist/esm/{fthry_ShowEyeIcon.CCRFpPxr.js → fthry_ShowEyeIcon.FVKM_CUd.js} +1 -1
- package/dist/esm/{fthry_index.BeT6gsM_.js → fthry_index.3ZKChQii.js} +6 -6
- package/dist/esm/{fthry_index.DjW847uR.js → fthry_index.3bbiVByG.js} +1 -1
- package/dist/esm/{fthry_index.BgIsKSTD.js → fthry_index.BvXP5j-k.js} +3 -3
- package/dist/esm/{fthry_index.BU4BxoWO.js → fthry_index.Bzcb4acF.js} +2 -2
- package/dist/esm/{fthry_index.xfj1t0cY.js → fthry_index.C2vvoqul.js} +5 -5
- package/dist/esm/{fthry_index.B5ePXkSN.js → fthry_index.C5QJmvNS.js} +6 -6
- package/dist/esm/{fthry_index.Ds7JOYLz.js → fthry_index.C7bZ41Dr.js} +4 -4
- package/dist/esm/{fthry_index.Ca-06RMU.js → fthry_index.CLVY8zB_.js} +1 -1
- package/dist/esm/{fthry_index.DeT3UyJj.js → fthry_index.CRMp7Yug.js} +1 -1
- package/dist/esm/{fthry_index.7vZjIPEz.js → fthry_index.Cfs1JnS1.js} +4 -4
- package/dist/esm/{fthry_index.DsroTnQH.js → fthry_index.CgxfpBL9.js} +5 -5
- package/dist/esm/{fthry_index.2Gc_lB8n.js → fthry_index.ChZdNtIX.js} +81 -54
- package/dist/esm/{fthry_index.T_eziOjU.js → fthry_index.Cvc2tCaE.js} +1 -1
- package/dist/esm/{fthry_index.Dy33g5mc.js → fthry_index.DE7Dh4ea.js} +8 -8
- package/dist/esm/{fthry_index.wAyXRBo5.js → fthry_index.DbQ9ZgfN.js} +161 -27
- package/dist/esm/{fthry_index.6qFATni4.js → fthry_index.DnA1YwIh.js} +901 -214
- package/dist/esm/{fthry_index.nmBpjSD2.js → fthry_index.DtApOSy5.js} +1 -1
- package/dist/esm/{fthry_index.DIZWok9O.js → fthry_index.IEBDVXp5.js} +5 -5
- package/dist/esm/{fthry_index.Citw-wko.js → fthry_index.JlaR97bs.js} +1 -1
- package/dist/esm/{fthry_index.C90mmtNU.js → fthry_index.TccqLkT8.js} +4 -4
- package/dist/esm/{fthry_index.BBB2dAwJ.js → fthry_index.nBx09C9l.js} +3 -3
- package/dist/esm/{fthry_index.DbMs4N3L.js → fthry_index.pBPbV9ty.js} +2 -2
- package/dist/esm/{fthry_index.CugnxSkX.js → fthry_index.pN448hs2.js} +29 -2
- package/dist/esm/{fthry_input.Csm0akqb.js → fthry_input.DgpAkI4d.js} +1 -1
- package/dist/esm/{fthry_script.CTK4wksM.js → fthry_script.DNqAP9Nj.js} +1 -1
- package/dist/esm/{fthry_styles.BsiM2KXa.js → fthry_styles.BhmDd9Lo.js} +1 -1
- package/dist/esm/{fthry_useElementSize.BVooPdxW.js → fthry_useElementSize.CuzKKLqH.js} +1 -1
- package/dist/esm/{fthry_useSalesforceSync.DwvbAGUy.js → fthry_useSalesforceSync.D3lKBSsD.js} +1 -1
- package/dist/esm/{fthry_webfontloader.oZvuZxan.js → fthry_webfontloader.Bo43XEHO.js} +1 -1
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/utils/featheryClient/index.d.ts +6 -0
- package/dist/esm/utils/featheryClient/index.d.ts.map +1 -1
- package/dist/esm/utils/formContext.d.ts +7 -0
- package/dist/esm/utils/formContext.d.ts.map +1 -1
- package/dist/esm/utils/internalState.d.ts +7 -0
- package/dist/esm/utils/internalState.d.ts.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/utils/featheryClient/index.d.ts +6 -0
- package/dist/utils/featheryClient/index.d.ts.map +1 -1
- package/dist/utils/formContext.d.ts +7 -0
- package/dist/utils/formContext.d.ts.map +1 -1
- package/dist/utils/internalState.d.ts +7 -0
- package/dist/utils/internalState.d.ts.map +1 -1
- package/package.json +2 -2
- package/umd/{277.eceeb3ccb6328228b829.js → 277.94ae8bf6190836d1dceb.js} +1 -1
- package/umd/{466.2b6f52440bf8a6ee4f4d.js → 466.e3456c8b3407ad04ba56.js} +1 -1
- package/umd/509.4236d4d76d2fa2ccd971.js +2 -0
- package/umd/{509.f3c5235d7877c09fa946.js.LICENSE.txt → 509.4236d4d76d2fa2ccd971.js.LICENSE.txt} +5 -0
- package/umd/529.2bfdaee9e2bdc6d6c340.js +1 -0
- package/umd/{598.5c0785560cad57f12159.js → 598.ca92da6595afad37b511.js} +2 -2
- package/umd/{664.cce2aa2291d3323521b2.js → 664.42541009d1fcb121cc49.js} +1 -1
- package/umd/{94.3c0a220601820412e21e.js → 94.825cd88111c75098af1f.js} +1 -1
- package/umd/{AddressField.a7ec587f13a326e233de.js → AddressField.3523efd23175117d47a5.js} +1 -1
- package/umd/{ButtonGroupField.8a9cf493f8fb36ce3e85.js → ButtonGroupField.33cf9c939c8e82cc6c83.js} +1 -1
- package/umd/{CheckboxField.c4971d72024558868b02.js → CheckboxField.76c36941e86a62ec518d.js} +1 -1
- package/umd/{CheckboxGroupField.e5319cd7f814f9b626d7.js → CheckboxGroupField.b15705b46268e1142782.js} +1 -1
- package/umd/ColorPickerField.f6740bb7c4c20a520db5.js +1 -0
- package/umd/{CustomField.bf00bb9bdcd732c13171.js → CustomField.a5b2965922f2d170b9b5.js} +1 -1
- package/umd/{DateSelectorField.c193445e11fe4694b07a.js → DateSelectorField.00f321e0b1972feb9d69.js} +1 -1
- package/umd/{DropdownField.7081f67b0a39c49f1f3f.js → DropdownField.856b041871278f98e687.js} +1 -1
- package/umd/{DropdownMultiField.d2dc345e7bd0e32e76a7.js → DropdownMultiField.898572b300ad673a38c9.js} +1 -1
- package/umd/{FileUploadField.f51a675776b2947e79fa.js → FileUploadField.ea0067dd62b0454b7c2e.js} +1 -1
- package/umd/{MatrixField.007d30b45d438c773db7.js → MatrixField.f8624f3e59b21e04f368.js} +1 -1
- package/umd/{PasswordField.2147c784135a9369040c.js → PasswordField.1358356d6fbc6880f12a.js} +1 -1
- package/umd/{PaymentMethodField.a84c467c428712681821.js → PaymentMethodField.9a8e934f7450eb141217.js} +1 -1
- package/umd/{PhoneField.d43a22b1a4d92c618614.js → PhoneField.f52b5de44614b445feeb.js} +1 -1
- package/umd/{PinInputField.0f9ca456b79a9cdf2506.js → PinInputField.b1aee0ef9d3c9f9a1933.js} +1 -1
- package/umd/{QRScanner.5865f88b4a09f5e78c5b.js → QRScanner.3c22391de30dba001f13.js} +1 -1
- package/umd/{RadioButtonGroupField.7d81efb2ddc169916443.js → RadioButtonGroupField.38d62523106149c48f2e.js} +1 -1
- package/umd/{RatingField.104fa779291cd91ca8bc.js → RatingField.eeeb0ac499c308c120ba.js} +1 -1
- package/umd/{SignatureField.2cd57db4b52690a9650b.js → SignatureField.1b502b1edb19e4af3b64.js} +1 -1
- package/umd/{SliderField.b99f5928f7c1eaa08c3d.js → SliderField.a5ab58e4b89fa67d6ac6.js} +1 -1
- package/umd/{TextArea.0b440106b5f5a341ed74.js → TextArea.f566845d458d4c00e0e7.js} +1 -1
- package/umd/{TextField.9238b4371b974d4defd4.js → TextField.5a5296fe3ea60c4459f2.js} +1 -1
- package/umd/index.js +1 -1
- package/dist/cjs/fthry_floating-ui.utils.D2KLOgYj.js +0 -155
- package/dist/cjs/fthry_objectWithoutPropertiesLoose.BeCY0BVl.js +0 -32
- package/dist/esm/fthry_floating-ui.utils.tNaL8PGX.js +0 -136
- package/dist/esm/fthry_objectWithoutPropertiesLoose.BBpbdDOs.js +0 -29
- package/umd/509.f3c5235d7877c09fa946.js +0 -2
- package/umd/529.be48502b696e9179c151.js +0 -1
- package/umd/ColorPickerField.38edc699a89e4266e489.js +0 -1
- /package/umd/{598.5c0785560cad57f12159.js.LICENSE.txt → 598.ca92da6595afad37b511.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[529],{3394:(e,t,n)=>{n.d(t,{Z:()=>m});var o=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),r=n(6411),i=n(6686),a=n(7563),s=n(211),u=n(8160),l=n(2190),c=function(e,t,n){for(var o=0,i=0;o=i,i=(0,r.fj)(),38===o&&12===i&&(t[n]=1),!(0,r.r)(i);)(0,r.lp)();return(0,r.tP)(e,r.FK)},d=new WeakMap,p=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||d.get(n))&&!o){d.set(e,!0);for(var a=[],s=function(e,t){return(0,r.cE)(function(e,t){var n=-1,o=44;do{switch((0,r.r)(o)){case 0:38===o&&12===(0,r.fj)()&&(t[n]=1),e[n]+=c(r.FK-1,t,n);break;case 2:e[n]+=(0,r.iF)(o);break;case 4:if(44===o){e[++n]=58===(0,r.fj)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=(0,i.Dp)(o)}}while(o=(0,r.lp)());return e}((0,r.un)(e),t))}(t,a),u=n.props,l=0,p=0;l<s.length;l++)for(var f=0;f<u.length;f++,p++)e.props[p]=a[l]?s[l].replace(/&\f/g,u[f]):u[f]+" "+s[l]}}},f=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function h(e,t){switch((0,i.vp)(e,t)){case 5103:return a.G$+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a.G$+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return a.G$+e+a.uj+e+a.MS+e+e;case 6828:case 4268:return a.G$+e+a.MS+e+e;case 6165:return a.G$+e+a.MS+"flex-"+e+e;case 5187:return a.G$+e+(0,i.gx)(e,/(\w+).+(:[^]+)/,a.G$+"box-$1$2"+a.MS+"flex-$1$2")+e;case 5443:return a.G$+e+a.MS+"flex-item-"+(0,i.gx)(e,/flex-|-self/,"")+e;case 4675:return a.G$+e+a.MS+"flex-line-pack"+(0,i.gx)(e,/align-content|flex-|-self/,"")+e;case 5548:return a.G$+e+a.MS+(0,i.gx)(e,"shrink","negative")+e;case 5292:return a.G$+e+a.MS+(0,i.gx)(e,"basis","preferred-size")+e;case 6060:return a.G$+"box-"+(0,i.gx)(e,"-grow","")+a.G$+e+a.MS+(0,i.gx)(e,"grow","positive")+e;case 4554:return a.G$+(0,i.gx)(e,/([^-])(transform)/g,"$1"+a.G$+"$2")+e;case 6187:return(0,i.gx)((0,i.gx)((0,i.gx)(e,/(zoom-|grab)/,a.G$+"$1"),/(image-set)/,a.G$+"$1"),e,"")+e;case 5495:case 3959:return(0,i.gx)(e,/(image-set\([^]*)/,a.G$+"$1$`$1");case 4968:return(0,i.gx)((0,i.gx)(e,/(.+:)(flex-)?(.*)/,a.G$+"box-pack:$3"+a.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a.G$+e+e;case 4095:case 3583:case 4068:case 2532:return(0,i.gx)(e,/(.+)-inline(.+)/,a.G$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,i.to)(e)-1-t>6)switch((0,i.uO)(e,t+1)){case 109:if(45!==(0,i.uO)(e,t+4))break;case 102:return(0,i.gx)(e,/(.+:)(.+)-([^]+)/,"$1"+a.G$+"$2-$3$1"+a.uj+(108==(0,i.uO)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,i.Cw)(e,"stretch")?h((0,i.gx)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,i.uO)(e,t+1))break;case 6444:switch((0,i.uO)(e,(0,i.to)(e)-3-(~(0,i.Cw)(e,"!important")&&10))){case 107:return(0,i.gx)(e,":",":"+a.G$)+e;case 101:return(0,i.gx)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.G$+(45===(0,i.uO)(e,14)?"inline-":"")+"box$3$1"+a.G$+"$2$3$1"+a.MS+"$2box$3")+e}break;case 5936:switch((0,i.uO)(e,t+11)){case 114:return a.G$+e+a.MS+(0,i.gx)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a.G$+e+a.MS+(0,i.gx)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a.G$+e+a.MS+(0,i.gx)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a.G$+e+a.MS+e+e}return e}var v=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case a.h5:e.return=h(e.value,e.length);break;case a.lK:return(0,s.q)([(0,r.JG)(e,{value:(0,i.gx)(e.value,"@","@"+a.G$)})],o);case a.Fr:if(e.length)return(0,i.$e)(e.props,(function(t){switch((0,i.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,s.q)([(0,r.JG)(e,{props:[(0,i.gx)(t,/:(read-\w+)/,":"+a.uj+"$1")]})],o);case"::placeholder":return(0,s.q)([(0,r.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.G$+"input-$1")]}),(0,r.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.uj+"$1")]}),(0,r.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,a.MS+"input-$1")]})],o)}return""}))}}],m=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,a=e.stylisPlugins||v,c={},d=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)c[t[n]]=!0;d.push(e)}));var h,m=[p,f],g=[s.P,(0,u.cD)((function(e){h.insert(e)}))],b=(0,u.qR)(m.concat(a,g));i=function(e,t,n,o){var r;h=n,r=e?e+"{"+t.styles+"}":t.styles,(0,s.q)((0,l.MY)(r),b),o&&(y.inserted[t.name]=!0)};var y={key:t,sheet:new o({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:c,registered:{},insert:i};return y.sheet.hydrate(d),y}},696:(e,t,n)=>{n.d(t,{Z:()=>h});var o=n(2717),r=n(7294),i=n(1227),a=n(5342),s=n(3417),u=n(2195),l=n(2924),c=n(7600),d=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=String(e).toLowerCase(),r=String(n.getOptionValue(t)).toLowerCase(),i=String(n.getOptionLabel(t)).toLowerCase();return r===o||i===o},f={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,o){return!(!e||t.some((function(t){return p(e,t,o)}))||n.some((function(t){return p(e,t,o)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};n(3935),n(3469);var h=(0,r.forwardRef)((function(e,t){var n,p,h,v,m,g,b,y,O,w,C,x,S,Z,I,M,E,V,P,k,D,R,L,F,T,A,H,$,j=(p=(n=(0,a.u)(e)).allowCreateWhileLoading,h=void 0!==p&&p,v=n.createOptionPosition,m=void 0===v?"last":v,g=n.formatCreateLabel,b=void 0===g?f.formatCreateLabel:g,y=n.isValidNewOption,O=void 0===y?f.isValidNewOption:y,w=n.getNewOptionData,C=void 0===w?f.getNewOptionData:w,x=n.onCreateOption,S=n.options,Z=void 0===S?[]:S,I=n.onChange,E=(M=(0,l.Z)(n,d)).getOptionValue,V=void 0===E?i.g:E,P=M.getOptionLabel,k=void 0===P?i.b:P,D=M.inputValue,R=M.isLoading,L=M.isMulti,F=M.value,T=M.name,A=(0,r.useMemo)((function(){return O(D,(0,c.H)(F),Z,{getOptionValue:V,getOptionLabel:k})?C(D,b(D)):void 0}),[b,C,k,V,D,O,Z,F]),H=(0,r.useMemo)((function(){return!h&&R||!A?Z:"first"===m?[A].concat((0,u.Z)(Z)):[].concat((0,u.Z)(Z),[A])}),[h,m,R,A,Z]),$=(0,r.useCallback)((function(e,t){if("select-option"!==t.action)return I(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==A)I(e,t);else if(x)x(D);else{var o=C(D,D),r={action:"create-option",name:T,option:o};I((0,c.D)(L,[].concat((0,u.Z)((0,c.H)(F)),[o]),o),r)}}),[C,D,L,T,A,x,I,F]),(0,s.Z)((0,s.Z)({},M),{},{options:H,onChange:$}));return r.createElement(i.S,(0,o.Z)({ref:t},j))}))},1227:(e,t,n)=>{n.d(t,{S:()=>he,b:()=>K,g:()=>X});var o=n(2717),r=n(3417),i=n(5899);function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,i.Z)(o.key),o)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var l=n(2360);function c(e,t){if(t&&("object"===(0,l.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}var d=n(2195),p=n(7294),f=n(7600),h=n(3442),v=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function m(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||v(o)&&v(r)))return!1;var o,r;return!0}for(var g=n(2924),b={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},y=function(e){return(0,h.tZ)("span",(0,o.Z)({css:b},e))},O={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,r=e.context,i=e.isInitialFocus;switch(r){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&l){var d=s?" disabled":"",p="".concat(u?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(c(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},w=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,u=e.selectProps,l=e.id,c=e.isAppleDevice,d=u.ariaLiveMessages,f=u.getOptionLabel,v=u.inputValue,m=u.isMulti,g=u.isOptionDisabled,b=u.isSearchable,w=u.menuIsOpen,C=u.options,x=u.screenReaderStatus,S=u.tabSelectsValue,Z=u.isLoading,I=u["aria-label"],M=u["aria-live"],E=(0,p.useMemo)((function(){return(0,r.Z)((0,r.Z)({},O),d||{})}),[d]),V=(0,p.useMemo)((function(){var e,n="";if(t&&E.onChange){var o=t.option,i=t.options,a=t.removedValue,u=t.removedValues,l=t.value,c=a||o||(e=l,Array.isArray(e)?null:e),d=c?f(c):"",p=i||u||void 0,h=p?p.map(f):[],v=(0,r.Z)({isDisabled:c&&g(c,s),label:d,labels:h},t);n=E.onChange(v)}return n}),[t,E,g,s,f]),P=(0,p.useMemo)((function(){var e="",t=n||o,r=!!(n&&s&&s.includes(n));if(t&&E.onFocus){var a={focused:t,label:f(t),isDisabled:g(t,s),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:s,isAppleDevice:c};e=E.onFocus(a)}return e}),[n,o,f,g,E,i,s,c]),k=(0,p.useMemo)((function(){var e="";if(w&&C.length&&!Z&&E.onFilter){var t=x({count:i.length});e=E.onFilter({inputValue:v,resultsMessage:t})}return e}),[i,v,w,E,C,x,Z]),D="initial-input-focus"===(null==t?void 0:t.action),R=(0,p.useMemo)((function(){var e="";if(E.guidance){var t=o?"value":w?"menu":"input";e=E.guidance({"aria-label":I,context:t,isDisabled:n&&g(n,s),isMulti:m,isSearchable:b,tabSelectsValue:S,isInitialFocus:D})}return e}),[I,n,o,m,g,b,w,E,s,S,D]),L=(0,h.tZ)(p.Fragment,null,(0,h.tZ)("span",{id:"aria-selection"},V),(0,h.tZ)("span",{id:"aria-focused"},P),(0,h.tZ)("span",{id:"aria-results"},k),(0,h.tZ)("span",{id:"aria-guidance"},R));return(0,h.tZ)(p.Fragment,null,(0,h.tZ)(y,{id:l},D&&L),(0,h.tZ)(y,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!D&&L))},C=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],x=new RegExp("["+C.map((function(e){return e.letters})).join("")+"]","g"),S={},Z=0;Z<C.length;Z++)for(var I=C[Z],M=0;M<I.letters.length;M++)S[I.letters[M]]=I.base;var E=function(e){return e.replace(x,(function(e){return S[e]}))},V=function(e,t){void 0===t&&(t=m);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}(E),P=function(e){return e.replace(/^\s+|\s+$/g,"")},k=function(e){return"".concat(e.label," ").concat(e.value)},D=["innerRef"];function R(e){var t=e.innerRef,n=(0,g.Z)(e,D),r=(0,f.r)(n,"onExited","in","enter","exit","appear");return(0,h.tZ)("input",(0,o.Z)({ref:t},r,{css:(0,h.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var L=["boxSizing","height","overflow","paddingRight","position"],F={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function T(e){e.cancelable&&e.preventDefault()}function A(e){e.stopPropagation()}function H(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function $(){return"ontouchstart"in window||navigator.maxTouchPoints}var j=!("undefined"==typeof window||!window.document||!window.document.createElement),N=0,G={capture:!1,passive:!1},U=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},z={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function B(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,r=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,r=e.onTopArrive,i=e.onTopLeave,a=(0,p.useRef)(!1),s=(0,p.useRef)(!1),u=(0,p.useRef)(0),l=(0,p.useRef)(null),c=(0,p.useCallback)((function(e,t){if(null!==l.current){var u=l.current,c=u.scrollTop,d=u.scrollHeight,p=u.clientHeight,f=l.current,h=t>0,v=d-p-c,m=!1;v>t&&a.current&&(o&&o(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>v?(n&&!a.current&&n(e),f.scrollTop=d,m=!0,a.current=!0):!h&&-t>c&&(r&&!s.current&&r(e),f.scrollTop=0,m=!0,s.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,r,i]),d=(0,p.useCallback)((function(e){c(e,e.deltaY)}),[c]),h=(0,p.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),v=(0,p.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;c(e,t)}),[c]),m=(0,p.useCallback)((function(e){if(e){var t=!!f.s&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",v,t)}}),[v,h,d]),g=(0,p.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",v,!1))}),[v,h,d]);return(0,p.useEffect)((function(){if(t){var e=l.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){l.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,r=(0,p.useRef)({}),i=(0,p.useRef)(null),a=(0,p.useCallback)((function(e){if(j){var t=document.body,n=t&&t.style;if(o&&L.forEach((function(e){var t=n&&n[e];r.current[e]=t})),o&&N<1){var i=parseInt(r.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(F).forEach((function(e){var t=F[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&$()&&(t.addEventListener("touchmove",T,G),e&&(e.addEventListener("touchstart",H,G),e.addEventListener("touchmove",A,G))),N+=1}}),[o]),s=(0,p.useCallback)((function(e){if(j){var t=document.body,n=t&&t.style;N=Math.max(N-1,0),o&&N<1&&L.forEach((function(e){var t=r.current[e];n&&(n[e]=t)})),t&&$()&&(t.removeEventListener("touchmove",T,G),e&&(e.removeEventListener("touchstart",H,G),e.removeEventListener("touchmove",A,G)))}}),[o]);return(0,p.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return(0,h.tZ)(p.Fragment,null,n&&(0,h.tZ)("div",{onClick:U,css:z}),t((function(e){r(e),i(e)})))}var _={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},W=function(e){var t=e.name,n=e.onFocus;return(0,h.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:_,value:"",onChange:function(){}})};function Y(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function q(){return Y(/^Mac/i)}var K=function(e){return e.label},X=function(e){return e.value},J={clearIndicator:f.a,container:f.b,control:f.d,dropdownIndicator:f.e,group:f.g,groupHeading:f.f,indicatorsContainer:f.i,indicatorSeparator:f.h,input:f.j,loadingIndicator:f.l,loadingMessage:f.k,menu:f.m,menuList:f.n,menuPortal:f.o,multiValue:f.p,multiValueLabel:f.q,multiValueRemove:f.t,noOptionsMessage:f.u,option:f.v,placeholder:f.w,singleValue:f.x,valueContainer:f.y},Q={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ee={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,f.z)(),captureMenuScroll:!(0,f.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,r.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:k,trim:!0,matchFrom:"any"},undefined),o=n.ignoreCase,i=n.ignoreAccents,a=n.stringify,s=n.trim,u=n.matchFrom,l=s?P(t):t,c=s?P(a(e)):a(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=V(l),c=E(c)),"start"===u?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:K,getOptionValue:X,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,f.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function te(e,t,n,o){return{type:"option",data:t,isDisabled:le(e,t,n),isSelected:ce(e,t,n),label:se(e,t),value:ue(e,t),index:o}}function ne(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return te(e,n,t,o)})).filter((function(t){return ie(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=te(e,n,t,o);return ie(e,i)?i:void 0})).filter(f.K)}function oe(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,(0,d.Z)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function re(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,(0,d.Z)(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function ie(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!pe(e)||!i)&&de(e,{label:a,value:s,data:r},o)}var ae=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},se=function(e,t){return e.getOptionLabel(t)},ue=function(e,t){return e.getOptionValue(t)};function le(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ce(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=ue(e,t);return n.some((function(t){return ue(e,t)===o}))}function de(e,t,n){return!e.filterOption||e.filterOption(t,n)}var pe=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},fe=1,he=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(m,e);var t,n,i,l,h,v=(l=m,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(l);if(h){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function m(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),(t=v.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=q()||Y(/^iPhone/i)||Y(/^iPad/i)||q()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var o=t.props,r=o.onChange,i=o.name;n.name=i,t.ariaOnChange(e,n),r(e,n)},t.setValue=function(e,n,o){var r=t.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:o})},t.selectOption=function(e){var n=t.props,o=n.blurInputOnSelect,r=n.isMulti,i=n.name,a=t.state.selectValue,s=r&&t.isOptionSelected(e,a),u=t.isOptionDisabled(e,a);if(s){var l=t.getOptionValue(e);t.setValue((0,f.B)(a.filter((function(e){return t.getOptionValue(e)!==l}))),"deselect-option",e)}else{if(u)return void t.ariaOnChange((0,f.C)(e),{action:"select-option",option:e,name:i});r?t.setValue((0,f.B)([].concat((0,d.Z)(a),[e])),"select-option",e):t.setValue((0,f.C)(e),"select-option")}o&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,o=t.state.selectValue,r=t.getOptionValue(e),i=o.filter((function(e){return t.getOptionValue(e)!==r})),a=(0,f.D)(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange((0,f.D)(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,o=n[n.length-1],r=n.slice(0,n.length-1),i=(0,f.D)(e,r,r[0]||null);o&&t.onChange(i,{action:"pop-value",removedValue:o})},t.getFocusedOptionId=function(e){return ae(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return re(ne(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return f.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return se(t.props,e)},t.getOptionValue=function(e){return ue(t.props,e)},t.getStyles=function(e,n){var o=t.props.unstyled,r=J[e](n,o);r.boxSizing="border-box";var i=t.props.styles[e];return i?i(r,n):r},t.getClassNames=function(e,n){var o,r;return null===(o=(r=t.props.classNames)[e])||void 0===o?void 0:o.call(r,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return(0,f.F)(t.props)},t.buildCategorizedOptions=function(){return ne(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return oe(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,r.Z)({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,o=n.isMulti,r=n.menuIsOpen;t.focusInput(),r?(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,f.G)(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,o=n&&n.item(0);o&&(t.initialTouchX=o.clientX,t.initialTouchY=o.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,o=n&&n.item(0);if(o){var r=Math.abs(o.clientX-t.initialTouchX),i=Math.abs(o.clientY-t.initialTouchY);t.userIsDragging=r>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,o=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(o,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return pe(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,o=n.isMulti,r=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,u=n.isDisabled,l=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,h=f.focusedOption,v=f.focusedValue,m=f.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!o||a)return;t.focusValue("previous");break;case"ArrowRight":if(!o||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(v)t.removeValue(v);else{if(!r)return;o?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!d||!h||p&&t.isOptionSelected(h,m))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++fe),t.state.selectValue=(0,f.H)(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),o=t.buildFocusableOptions(),i=o.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=o[i],t.state.focusedOptionId=ae(n,o[i])}return t}return t=m,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,f.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,f.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(a=r+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[r])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Q):(0,r.Z)((0,r.Z)({},Q),this.props.theme):Q}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return le(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ce(this.props,e,t)}},{key:"filterOption",value:function(e,t){return de(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,a=e.inputValue,s=e.tabIndex,u=e.form,l=e.menuIsOpen,c=e.required,d=this.getComponents().Input,h=this.state,v=h.inputIsHidden,m=h.ariaSelection,g=this.commonProps,b=i||this.getElementId("input"),y=(0,r.Z)((0,r.Z)((0,r.Z)({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?p.createElement(d,(0,o.Z)({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:t,isHidden:v,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:u,type:"text",value:a},y)):p.createElement(R,(0,o.Z)({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:f.J,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:u,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,u=t.Placeholder,l=this.commonProps,c=this.props,d=c.controlShouldRenderValue,f=c.isDisabled,h=c.isMulti,v=c.inputValue,m=c.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,O=g.isFocused;if(!this.hasValue()||!d)return v?null:p.createElement(u,(0,o.Z)({},l,{key:"placeholder",isDisabled:f,isFocused:O,innerProps:{id:this.getElementId("placeholder")}}),m);if(h)return b.map((function(t,s){var u=t===y,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return p.createElement(n,(0,o.Z)({},l,{components:{Container:r,Label:i,Remove:a},isFocused:u,isDisabled:f,key:c,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(v)return null;var w=b[0];return p.createElement(s,(0,o.Z)({},l,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,(0,o.Z)({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return e&&i?p.createElement(e,(0,o.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return p.createElement(n,(0,o.Z)({},r,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,(0,o.Z)({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,u=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,d=this.commonProps,h=this.state.focusedOption,v=this.props,m=v.captureMenuScroll,g=v.inputValue,b=v.isLoading,y=v.loadingMessage,O=v.minMenuHeight,w=v.maxMenuHeight,C=v.menuIsOpen,x=v.menuPlacement,S=v.menuPosition,Z=v.menuPortalTarget,I=v.menuShouldBlockScroll,M=v.menuShouldScrollIntoView,E=v.noOptionsMessage,V=v.onMenuScrollToTop,P=v.onMenuScrollToBottom;if(!C)return null;var k,D=function(t,n){var r=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,u=t.label,l=t.value,f=h===i,v=a?void 0:function(){return e.onOptionHover(i)},m=a?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:m,onMouseMove:v,onMouseOver:v,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return p.createElement(c,(0,o.Z)({},d,{innerProps:b,data:i,isDisabled:a,isSelected:s,key:g,label:u,type:r,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())k=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,u="".concat(e.getElementId("group"),"-").concat(s),l="".concat(u,"-heading");return p.createElement(n,(0,o.Z)({},d,{key:u,data:i,options:a,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return D(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return D(t,"".concat(t.index))}));else if(b){var R=y({inputValue:g});if(null===R)return null;k=p.createElement(u,d,R)}else{var L=E({inputValue:g});if(null===L)return null;k=p.createElement(l,d,L)}var F={minMenuHeight:O,maxMenuHeight:w,menuPlacement:x,menuPosition:S,menuShouldScrollIntoView:M},T=p.createElement(f.M,(0,o.Z)({},d,F),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,u=r.maxHeight;return p.createElement(i,(0,o.Z)({},d,F,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:s}),p.createElement(B,{captureEnabled:m,onTopArrive:V,onBottomArrive:P,lockEnabled:I},(function(t){return p.createElement(a,(0,o.Z)({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:b,maxHeight:u,focusedOption:h}),k)})))}));return Z||"fixed"===S?p.createElement(s,(0,o.Z)({},d,{appendTo:Z,controlElement:this.controlRef,menuPlacement:x,menuPosition:S}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,r=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!o)return p.createElement(W,{name:i,onFocus:this.onValueInputFocus});if(i&&!o){if(r){if(n){var u=s.map((function(t){return e.getOptionValue(t)})).join(n);return p.createElement("input",{name:i,type:"hidden",value:u})}var l=s.length>0?s.map((function(t,n){return p.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):p.createElement("input",{name:i,type:"hidden",value:""});return p.createElement("div",null,l)}var c=s[0]?this.getOptionValue(s[0]):"";return p.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,u=this.getFocusableOptions();return p.createElement(w,(0,o.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:u,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,u=a.id,l=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return p.createElement(r,(0,o.Z)({},f,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),p.createElement(t,(0,o.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:c}),p.createElement(i,(0,o.Z)({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),p.createElement(n,(0,o.Z)({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,u=t.prevWasFocused,l=t.instancePrefix,c=e.options,d=e.value,p=e.menuIsOpen,h=e.inputValue,v=e.isMulti,m=(0,f.H)(d),g={};if(n&&(d!==n.value||c!==n.options||p!==n.menuIsOpen||h!==n.inputValue)){var b=p?function(e,t){return oe(ne(e,t))}(e,m):[],y=p?re(ne(e,m),"".concat(l,"-option")):[],O=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,m):null,w=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,b);g={selectValue:m,focusedOption:w,focusedOptionId:ae(y,w),focusableOptionsWithIds:y,focusedValue:O,clearFocusValueOnUpdate:!1}}var C=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},x=a,S=s&&u;return s&&!S&&(x={value:(0,f.D)(v,m,m[0]||null),options:m,action:"initial-input-focus"},S=!u),"initial-input-focus"===(null==a?void 0:a.action)&&(x=null),(0,r.Z)((0,r.Z)((0,r.Z)({},g),C),{},{prevProps:e,ariaSelection:x,prevWasFocused:S})}}],n&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),m}(p.Component);he.defaultProps=ee},7600:(e,t,n)=>{n.d(t,{A:()=>Y,B:()=>ne,C:()=>te,D:()=>ee,E:()=>A,F:()=>Xe,G:()=>N,H:()=>H,I:()=>_,J:()=>F,K:()=>Q,M:()=>pe,a:()=>Ve,b:()=>be,c:()=>Ke,d:()=>Le,e:()=>Ee,f:()=>Ae,g:()=>Te,h:()=>Pe,i:()=>Oe,j:()=>$e,k:()=>me,l:()=>De,m:()=>ce,n:()=>fe,o:()=>ge,p:()=>Ue,q:()=>ze,r:()=>oe,s:()=>J,t:()=>Be,u:()=>ve,v:()=>We,w:()=>Ye,x:()=>qe,y:()=>ye,z:()=>W});var o=n(3417),r=n(2717),i=n(3442),a=n(1972),s=n(2924),u=n(2360),l=n(8549),c=n(7294),d=n(3935);Math.min,Math.max;function p(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function f(e){return p(e).getComputedStyle(e)}function h(e){return e instanceof p(e).Node}function v(e){return h(e)?(e.nodeName||"").toLowerCase():"#document"}function m(e){return e instanceof p(e).HTMLElement}function g(e){return e instanceof p(e).Element}function b(e){return"undefined"!=typeof ShadowRoot&&(e instanceof p(e).ShadowRoot||e instanceof ShadowRoot)}function y(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=f(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const O=Math.min,w=Math.max,C=Math.round,x=Math.floor,S=e=>({x:e,y:e});function Z(e){return g(e)?e:e.contextElement}function I(e){const t=Z(e);if(!m(t))return S(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=function(e){const t=f(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=m(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=C(n)!==i||C(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}(t);let a=(i?C(n.width):n.width)/o,s=(i?C(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const M=S(0);function E(e,t,n){var o,r;if(void 0===t&&(t=!0),"undefined"==typeof CSS||!CSS.supports||!CSS.supports("-webkit-backdrop-filter","none"))return M;const i=e?p(e):window;return!n||t&&n!==i?M:{x:(null==(o=i.visualViewport)?void 0:o.offsetLeft)||0,y:(null==(r=i.visualViewport)?void 0:r.offsetTop)||0}}function V(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=Z(e);let a=S(1);t&&(o?g(o)&&(a=I(o)):a=I(e));const s=E(i,n,o);let u=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,c=r.width/a.x,d=r.height/a.y;if(i){const e=p(i),t=o&&g(o)?p(o):o;let n=e.frameElement;for(;n&&o&&t!==e;){const e=I(n),t=n.getBoundingClientRect(),o=getComputedStyle(n),r=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;u*=e.x,l*=e.y,c*=e.x,d*=e.y,u+=r,l+=i,n=p(n).frameElement}}return f={width:c,height:d,x:u,y:l},{...f,top:f.y,left:f.x,right:f.x+f.width,bottom:f.y+f.height};var f}function P(e){return((h(e)?e.ownerDocument:e.document)||window.document).documentElement}function k(e){const t=function(e){if("html"===v(e))return e;const t=e.assignedSlot||e.parentNode||b(e)&&e.host||P(e);return b(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(v(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:m(t)&&y(t)?t:k(t)}function D(e,t){var n;void 0===t&&(t=[]);const o=k(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=p(o);return r?t.concat(i,i.visualViewport||[],y(o)?o:[]):t.concat(o,D(o))}var R=n(3469),L=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],F=function(){};function T(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function A(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(T(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var H=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,u.Z)(e)&&null!==e?[e]:[];var t},$=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,s.Z)(e,L);return(0,o.Z)({},t)},j=function(e,t,n){var o=e.cx,r=e.getStyles,i=e.getClassNames,a=e.className;return{css:r(t,e),className:o(null!=n?n:{},i(t,e),a)}};function N(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function G(e){return N(e)?window.pageYOffset:e.scrollTop}function U(e,t){N(e)?window.scrollTo(0,t):e.scrollTop=t}function z(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:F,r=G(e),i=t-r,a=10,s=0;function u(){var t=z(s+=a,r,i,n);U(e,t),s<n?window.requestAnimationFrame(u):o(e)}u()}function _(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?U(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&U(e,Math.max(t.offsetTop-r,0))}function W(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function Y(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var q=!1,K={get passive(){return q=!0}},X="undefined"!=typeof window?window:{};X.addEventListener&&X.removeEventListener&&(X.addEventListener("p",F,K),X.removeEventListener("p",F,!1));var J=q;function Q(e){return null!=e}function ee(e,t,n){return e?t:n}function te(e){return e}function ne(e){return e}var oe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=Object.entries(e).filter((function(e){var t=(0,a.Z)(e,1)[0];return!n.includes(t)}));return r.reduce((function(e,t){var n=(0,a.Z)(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})},re=["children","innerProps"],ie=["children","innerProps"];var ae,se,ue,le=function(e){return"auto"===e?"bottom":e},ce=function(e,t){var n,r=e.placement,i=e.theme,a=i.borderRadius,s=i.spacing,u=i.colors;return(0,o.Z)((n={label:"menu"},(0,l.Z)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),(0,l.Z)(n,"position","absolute"),(0,l.Z)(n,"width","100%"),(0,l.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},de=(0,c.createContext)(null),pe=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,s=e.menuPosition,u=e.menuShouldScrollIntoView,l=e.theme,d=((0,c.useContext)(de)||{}).setPortalPlacement,p=(0,c.useRef)(null),f=(0,c.useState)(r),h=(0,a.Z)(f,2),v=h[0],m=h[1],g=(0,c.useState)(null),b=(0,a.Z)(g,2),y=b[0],O=b[1],w=l.spacing.controlHeight;return(0,R.Z)((function(){var e=p.current;if(e){var t="fixed"===s,o=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c,d=u.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,v=p.top,m=n.offsetParent.getBoundingClientRect().top,g=a||N(c=u)?window.innerHeight:c.clientHeight,b=G(u),y=parseInt(getComputedStyle(n).marginBottom,10),O=parseInt(getComputedStyle(n).marginTop,10),w=m-O,C=g-v,x=w+b,S=d-b-v,Z=f-g+b+y,I=b+v-O,M=160;switch(r){case"auto":case"bottom":if(C>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return i&&B(u,Z,M),{placement:"bottom",maxHeight:t};if(!a&&S>=o||a&&C>=o)return i&&B(u,Z,M),{placement:"bottom",maxHeight:a?C-y:S-y};if("auto"===r||a){var E=t,V=a?w:x;return V>=o&&(E=Math.min(V-y-s,t)),{placement:"top",maxHeight:E}}if("bottom"===r)return i&&U(u,Z),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(x>=h&&!a)return i&&B(u,I,M),{placement:"top",maxHeight:t};if(!a&&x>=o||a&&w>=o){var P=t;return(!a&&x>=o||a&&w>=o)&&(P=a?w-O:x-O),i&&B(u,I,M),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return l}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:u&&!t,isFixedPosition:t,controlHeight:w});m(o.maxHeight),O(o.placement),null==d||d(o.placement)}}),[r,i,s,u,n,d,w]),t({ref:p,placerProps:(0,o.Z)((0,o.Z)({},e),{},{placement:y||le(i),maxHeight:v})})},fe=function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return(0,o.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},he=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return(0,o.Z)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},ve=he,me=he,ge=function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},be=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},ye=function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,o.Z)({alignItems:"center",display:r&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},Oe=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},we=["size"],Ce=["innerProps","isRtl","size"],xe={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Se=function(e){var t=e.size,n=(0,s.Z)(e,we);return(0,i.tZ)("svg",(0,r.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:xe},n))},Ze=function(e){return(0,i.tZ)(Se,(0,r.Z)({size:20},e),(0,i.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ie=function(e){return(0,i.tZ)(Se,(0,r.Z)({size:20},e),(0,i.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Me=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return(0,o.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i,":hover":{color:n?a.neutral80:a.neutral40}})},Ee=Me,Ve=Me,Pe=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return(0,o.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*i,marginTop:2*i})},ke=(0,i.F4)(ae||(se=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],ue||(ue=se.slice(0)),ae=Object.freeze(Object.defineProperties(se,{raw:{value:Object.freeze(ue)}})))),De=function(e,t){var n=e.isFocused,r=e.size,i=e.theme,a=i.colors,s=i.spacing.baseUnit;return(0,o.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*s})},Re=function(e){var t=e.delay,n=e.offset;return(0,i.tZ)("span",{css:(0,i.iv)({animation:"".concat(ke," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Le=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,a=i.colors,s=i.borderRadius,u=i.spacing;return(0,o.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},Fe=["data"],Te=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},Ae=function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return(0,o.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},He=["innerRef","isDisabled","isHidden","inputClassName"],$e=function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,a=i.spacing,s=i.colors;return(0,o.Z)((0,o.Z)({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Ne),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},je={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ne={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,o.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},je)},Ge=function(e){return(0,o.Z)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},je)},Ue=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors;return(0,o.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},ze=function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return(0,o.Z)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Be=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors,s=e.isFocused;return(0,o.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},_e=function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",n,t)},We=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.theme,s=a.spacing,u=a.colors;return(0,o.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?u.primary:r?u.primary25:"transparent",color:n?u.neutral20:i?u.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?u.primary:u.primary50}})},Ye=function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return(0,o.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},qe=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,a=r.colors;return(0,o.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Ke={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({},j(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,i.tZ)(Ze,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,a=e.innerRef,s=e.innerProps,u=e.menuIsOpen;return(0,i.tZ)("div",(0,r.Z)({ref:a},j(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":u}),s,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({},j(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,i.tZ)(Ie,null))},DownChevron:Ie,CrossIcon:Ze,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,a=e.getClassNames,s=e.Heading,u=e.headingProps,l=e.innerProps,c=e.label,d=e.theme,p=e.selectProps;return(0,i.tZ)("div",(0,r.Z)({},j(e,"group",{group:!0}),l),(0,i.tZ)(s,(0,r.Z)({},u,{selectProps:p,theme:d,getStyles:o,getClassNames:a,cx:n}),c),(0,i.tZ)("div",null,t))},GroupHeading:function(e){var t=$(e);t.data;var n=(0,s.Z)(t,Fe);return(0,i.tZ)("div",(0,r.Z)({},j(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({},j(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,i.tZ)("span",(0,r.Z)({},t,j(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=$(e),a=o.innerRef,u=o.isDisabled,l=o.isHidden,c=o.inputClassName,d=(0,s.Z)(o,He);return(0,i.tZ)("div",(0,r.Z)({},j(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,i.tZ)("input",(0,r.Z)({className:t({input:!0},c),ref:a,style:Ge(l),disabled:u},d)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,a=e.size,u=void 0===a?4:a,l=(0,s.Z)(e,Ce);return(0,i.tZ)("div",(0,r.Z)({},j((0,o.Z)((0,o.Z)({},l),{},{innerProps:t,isRtl:n,size:u}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,i.tZ)(Re,{delay:0,offset:n}),(0,i.tZ)(Re,{delay:160,offset:!0}),(0,i.tZ)(Re,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({},j(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,a=e.isMulti;return(0,i.tZ)("div",(0,r.Z)({},j(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,u=e.innerProps,l=e.menuPlacement,p=e.menuPosition,f=(0,c.useRef)(null),h=(0,c.useRef)(null),v=(0,c.useState)(le(l)),m=(0,a.Z)(v,2),g=m[0],b=m[1],y=(0,c.useMemo)((function(){return{setPortalPlacement:b}}),[]),C=(0,c.useState)(null),S=(0,a.Z)(C,2),I=S[0],M=S[1],E=(0,c.useCallback)((function(){if(s){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(s),t="fixed"===p?0:window.pageYOffset,n=e[g]+t;n===(null==I?void 0:I.offset)&&e.left===(null==I?void 0:I.rect.left)&&e.width===(null==I?void 0:I.rect.width)||M({offset:n,rect:e})}}),[s,p,g,null==I?void 0:I.offset,null==I?void 0:I.rect.left,null==I?void 0:I.rect.width]);(0,R.Z)((function(){E()}),[E]);var k=(0,c.useCallback)((function(){"function"==typeof h.current&&(h.current(),h.current=null),s&&f.current&&(h.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=!0,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,l=Z(e),c=r||i?[...l?D(l):[],...D(t)]:[];c.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&s?function(e,t){let n,o=null;const r=P(e);function i(){clearTimeout(n),o&&o.disconnect(),o=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),i();const{left:l,top:c,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f=x(c),h=x(r.clientWidth-(l+d)),v=x(r.clientHeight-(c+p)),m=x(l);let g=!0;o=new IntersectionObserver((e=>{const t=e[0].intersectionRatio;if(t!==u){if(!g)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}g=!1}),{rootMargin:-f+"px "+-h+"px "+-v+"px "+-m+"px",threshold:w(0,O(1,u))||1}),o.observe(e)}(!0),i}(l,n):null;let p,f=null;a&&(f=new ResizeObserver(n),l&&!u&&f.observe(l),f.observe(t));let h=u?V(e):null;return u&&function t(){const o=V(e);!h||o.x===h.x&&o.y===h.y&&o.width===h.width&&o.height===h.height||n(),h=o,p=requestAnimationFrame(t)}(),n(),()=>{c.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),f&&f.disconnect(),f=null,u&&cancelAnimationFrame(p)}}(s,f.current,E,{elementResize:"ResizeObserver"in window}))}),[s,E]);(0,R.Z)((function(){k()}),[k]);var L=(0,c.useCallback)((function(e){f.current=e,k()}),[k]);if(!t&&"fixed"!==p||!I)return null;var F=(0,i.tZ)("div",(0,r.Z)({ref:L},j((0,o.Z)((0,o.Z)({},e),{},{offset:I.offset,position:p,rect:I.rect}),"menuPortal",{"menu-portal":!0}),u),n);return(0,i.tZ)(de.Provider,{value:y},t?(0,d.createPortal)(F,t):F)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,a=e.innerProps,u=(0,s.Z)(e,ie);return(0,i.tZ)("div",(0,r.Z)({},j((0,o.Z)((0,o.Z)({},u),{},{children:n,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,a=e.innerProps,u=(0,s.Z)(e,re);return(0,i.tZ)("div",(0,r.Z)({},j((0,o.Z)((0,o.Z)({},u),{},{children:n,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,a=e.innerProps,s=e.isDisabled,u=e.removeProps,l=e.selectProps,c=n.Container,d=n.Label,p=n.Remove;return(0,i.tZ)(c,{data:r,innerProps:(0,o.Z)((0,o.Z)({},j(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:l},(0,i.tZ)(d,{data:r,innerProps:(0,o.Z)({},j(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),(0,i.tZ)(p,{data:r,innerProps:(0,o.Z)((0,o.Z)({},j(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},u),selectProps:l}))},MultiValueContainer:_e,MultiValueLabel:_e,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({role:"button"},n),t||(0,i.tZ)(Ze,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,a=e.isSelected,s=e.innerRef,u=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({},j(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":a}),{ref:s,"aria-disabled":n},u),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({},j(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,a=e.isRtl;return(0,i.tZ)("div",(0,r.Z)({},j(e,"container",{"--is-disabled":o,"--is-rtl":a}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({},j(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,a=e.hasValue;return(0,i.tZ)("div",(0,r.Z)({},j(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a}),n),t)}},Xe=function(e){return(0,o.Z)((0,o.Z)({},Ke),e.components)}},3157:(e,t,n)=>{n.d(t,{ZP:()=>s});var o=n(5342),r=n(2717),i=n(7294),a=n(1227),s=(n(3394),n(3935),n(3469),(0,i.forwardRef)((function(e,t){var n=(0,o.u)(e);return i.createElement(a.S,(0,r.Z)({ref:t},n))})))},5342:(e,t,n)=>{n.d(t,{u:()=>u});var o=n(3417),r=n(1972),i=n(2924),a=n(7294),s=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function u(e){var t=e.defaultInputValue,n=void 0===t?"":t,u=e.defaultMenuIsOpen,l=void 0!==u&&u,c=e.defaultValue,d=void 0===c?null:c,p=e.inputValue,f=e.menuIsOpen,h=e.onChange,v=e.onInputChange,m=e.onMenuClose,g=e.onMenuOpen,b=e.value,y=(0,i.Z)(e,s),O=(0,a.useState)(void 0!==p?p:n),w=(0,r.Z)(O,2),C=w[0],x=w[1],S=(0,a.useState)(void 0!==f?f:l),Z=(0,r.Z)(S,2),I=Z[0],M=Z[1],E=(0,a.useState)(void 0!==b?b:d),V=(0,r.Z)(E,2),P=V[0],k=V[1],D=(0,a.useCallback)((function(e,t){"function"==typeof h&&h(e,t),k(e)}),[h]),R=(0,a.useCallback)((function(e,t){var n;"function"==typeof v&&(n=v(e,t)),x(void 0!==n?n:e)}),[v]),L=(0,a.useCallback)((function(){"function"==typeof g&&g(),M(!0)}),[g]),F=(0,a.useCallback)((function(){"function"==typeof m&&m(),M(!1)}),[m]),T=void 0!==p?p:C,A=void 0!==f?f:I,H=void 0!==b?b:P;return(0,o.Z)((0,o.Z)({},y),{},{inputValue:T,menuIsOpen:A,onChange:D,onInputChange:R,onMenuClose:F,onMenuOpen:L,value:H})}},3442:(e,t,n)=>{n.d(t,{iv:()=>P,tZ:()=>V,F4:()=>k});var o=n(7294),r=n.t(o,2),i=n(3394),a=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},s={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function u(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var l=/[A-Z]|^ms/g,c=/_EMO_([^_]+?)_([^]*?)_EMO_/g,d=function(e){return 45===e.charCodeAt(1)},p=function(e){return null!=e&&"boolean"!=typeof e},f=u((function(e){return d(e)?e:e.replace(l,"-$&").toLowerCase()})),h=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(c,(function(e,t,n){return m={name:t,styles:n,next:m},t}))}return 1===s[e]||d(e)||"number"!=typeof t||0===t?t:t+"px"};function v(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return m={name:n.name,styles:n.styles,next:m},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)m={name:o.name,styles:o.styles,next:m},o=o.next;return n.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=v(e,t,n[r])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?o+=i+"{"+t[a]+"}":p(a)&&(o+=f(i)+":"+h(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=v(e,t,a);switch(i){case"animation":case"animationName":o+=f(i)+":"+s+";";break;default:o+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)p(a[u])&&(o+=f(i)+":"+h(i,a[u])+";")}return o}(e,t,n);case"function":if(void 0!==e){var r=m,i=n(e);return m=r,v(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var m,g=/label:\s*([^\s;\n{]+)\s*(;|$)/g,b=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";m=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,r+=v(n,t,i)):r+=i[0];for(var a=1;a<e.length;a++)r+=v(n,t,e[a]),o&&(r+=i[a]);g.lastIndex=0;for(var s,u="";null!==(s=g.exec(r));)u+="-"+s[1];var l=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+u;return{name:l,styles:r,next:m}},y=!!r.useInsertionEffect&&r.useInsertionEffect,O=y||function(e){return e()},w=(y||o.useLayoutEffect,{}.hasOwnProperty),C=o.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);C.Provider;var x=function(e){return(0,o.forwardRef)((function(t,n){var r=(0,o.useContext)(C);return e(t,r,n)}))},S=o.createContext({}),Z="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",I=function(e,t){var n={};for(var o in t)w.call(t,o)&&(n[o]=t[o]);return n[Z]=e,n},M=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return a(t,n,o),O((function(){return function(e,t,n){a(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,o)})),null},E=x((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Z],a=[r],s="";"string"==typeof e.className?s=function(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var u=b(a,void 0,o.useContext(S));s+=t.key+"-"+u.name;var l={};for(var c in e)w.call(e,c)&&"css"!==c&&c!==Z&&(l[c]=e[c]);return l.ref=n,l.className=s,o.createElement(o.Fragment,null,o.createElement(M,{cache:t,serialized:u,isStringTag:"string"==typeof i}),o.createElement(i,l))})),V=(n(8679),function(e,t){var n=arguments;if(null==t||!w.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=E,i[1]=I(e,t);for(var a=2;a<r;a++)i[a]=n[a];return o.createElement.apply(null,i)});function P(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b(t)}var k=function(){var e=P.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},3469:(e,t,n)=>{n.d(t,{Z:()=>o});var o=n(7294).useLayoutEffect},6344:(e,t,n)=>{function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{Z:()=>o})},8549:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(5899);function r(e,t,n){return(t=(0,o.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},2717:(e,t,n)=>{function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}n.d(t,{Z:()=>o})},3417:(e,t,n)=>{n.d(t,{Z:()=>i});var o=n(8549);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},2924:(e,t,n)=>{function o(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,{Z:()=>o})},1972:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(8001);function r(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 o,r,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||(0,o.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.")}()}},2195:(e,t,n)=>{n.d(t,{Z:()=>i});var o=n(6344),r=n(8001);function i(e){return function(e){if(Array.isArray(e))return(0,o.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,r.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.")}()}},5899:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(2360);function r(e){var t=function(e,t){if("object"!==(0,o.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==(0,o.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===(0,o.Z)(t)?t:String(t)}},2360:(e,t,n)=>{function o(e){return o="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},o(e)}n.d(t,{Z:()=>o})},8001:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(6344);function r(e,t){if(e){if("string"==typeof e)return(0,o.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,o.Z)(e,t):void 0}}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 598.
|
|
2
|
-
(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[598],{2703:(t,e,n)=>{"use strict";var o=n(414);function i(){}function r(){}r.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,r,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:r,resetWarningCache:i};return n.PropTypes=n,n}},5697:(t,e,n)=>{t.exports=n(2703)()},414:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1400:function(t){t.exports=function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return t[o].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e){"use strict";function n(t,e,n,o){return function(t,e,n,o){return{red:o[4*(n*e+t)],green:o[4*(n*e+t)+1],blue:o[4*(n*e+t)+2],alpha:o[4*(n*e+t)+3]}}(t,e,n,o).alpha}function o(t,e,o,i){for(var r=t?1:-1,a=t?0:o-1;t?a<o:a>-1;a+=r)for(var s=0;s<e;s++)if(n(s,a,e,i))return a;return null}function i(t,e,o,i){for(var r=t?1:-1,a=t?0:e-1;t?a<e:a>-1;a+=r)for(var s=0;s<o;s++)if(n(a,s,e,i))return a;return null}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.getContext("2d"),n=t.width,r=t.height,a=e.getImageData(0,0,n,r).data,s=o(!0,n,r,a),c=o(!1,n,r,a),h=i(!0,n,r,a),u=i(!1,n,r,a)-h+1,l=c-s+1,d=e.getImageData(h,s,u,l);return t.width=u,t.height=l,e.clearRect(0,0,u,l),e.putImageData(d,0,0),t}}])},3598:(t,e,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},o.apply(null,arguments)}function i(t,e){if(null==t)return{};var n,o,i=function(t,e){if(null==t)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(-1!==e.indexOf(o))continue;n[o]=t[o]}return n}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o<r.length;o++)n=r[o],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function u(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}n.d(e,{Z:()=>g});var l=n(5697),d=n(5430);function p(t,e,n){this.x=t,this.y=e,this.time=n||(new Date).getTime()}function f(t,e,n,o){this.startPoint=t,this.control1=e,this.control2=n,this.endPoint=o}function v(t,e){var n=this,o=e||{};this.velocityFilterWeight=o.velocityFilterWeight||.7,this.minWidth=o.minWidth||.5,this.maxWidth=o.maxWidth||2.5,this.throttle="throttle"in o?o.throttle:16,this.minDistance="minDistance"in o?o.minDistance:5,this.throttle?this._strokeMoveUpdate=function(t,e,n){var o,i,r,a=null,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Date.now(),a=null,r=t.apply(o,i),a||(o=i=null)};return function(){var h=Date.now();s||!1!==n.leading||(s=h);var u=e-(h-s);return o=this,i=arguments,u<=0||u>e?(a&&(clearTimeout(a),a=null),s=h,r=t.apply(o,i),a||(o=i=null)):a||!1===n.trailing||(a=setTimeout(c,u)),r}}(v.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=v.prototype._strokeUpdate,this.dotSize=o.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=o.penColor||"black",this.backgroundColor=o.backgroundColor||"rgba(0,0,0,0)",this.onBegin=o.onBegin,this.onEnd=o.onEnd,this._canvas=t,this._ctx=t.getContext("2d"),this.clear(),this._handleMouseDown=function(t){1===t.which&&(n._mouseButtonDown=!0,n._strokeBegin(t))},this._handleMouseMove=function(t){n._mouseButtonDown&&n._strokeMoveUpdate(t)},this._handleMouseUp=function(t){1===t.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(t))},this._handleTouchStart=function(t){if(1===t.targetTouches.length){var e=t.changedTouches[0];n._strokeBegin(e)}},this._handleTouchMove=function(t){t.preventDefault();var e=t.targetTouches[0];n._strokeMoveUpdate(e)},this._handleTouchEnd=function(t){t.target===n._canvas&&(t.preventDefault(),n._strokeEnd(t))},this.on()}p.prototype.velocityFrom=function(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):1},p.prototype.distanceTo=function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},p.prototype.equals=function(t){return this.x===t.x&&this.y===t.y&&this.time===t.time},f.prototype.length=function(){for(var t=0,e=void 0,n=void 0,o=0;o<=10;o+=1){var i=o/10,r=this._point(i,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this._point(i,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){var s=r-e,c=a-n;t+=Math.sqrt(s*s+c*c)}e=r,n=a}return t},f.prototype._point=function(t,e,n,o,i){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*o*(1-t)*t*t+i*t*t*t},v.prototype.clear=function(){var t=this._ctx,e=this._canvas;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(),this._isEmpty=!0},v.prototype.fromDataURL=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=new Image,i=n.ratio||window.devicePixelRatio||1,r=n.width||this._canvas.width/i,a=n.height||this._canvas.height/i;this._reset(),o.src=t,o.onload=function(){e._ctx.drawImage(o,0,0,r,a)},this._isEmpty=!1},v.prototype.toDataURL=function(t){var e;if("image/svg+xml"===t)return this._toSVG();for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(e=this._canvas).toDataURL.apply(e,[t].concat(o))},v.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},v.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},v.prototype.isEmpty=function(){return this._isEmpty},v.prototype._strokeBegin=function(t){this._data.push([]),this._reset(),this._strokeUpdate(t),"function"==typeof this.onBegin&&this.onBegin(t)},v.prototype._strokeUpdate=function(t){var e=t.clientX,n=t.clientY,o=this._createPoint(e,n),i=this._data[this._data.length-1],r=i&&i[i.length-1],a=r&&o.distanceTo(r)<this.minDistance;if(!r||!a){var s=this._addPoint(o),c=s.curve,h=s.widths;c&&h&&this._drawCurve(c,h.start,h.end),this._data[this._data.length-1].push({x:o.x,y:o.y,time:o.time,color:this.penColor})}},v.prototype._strokeEnd=function(t){var e=this.points.length>2,n=this.points[0];if(!e&&n&&this._drawDot(n),n){var o=this._data[this._data.length-1],i=o[o.length-1];n.equals(i)||o.push({x:n.x,y:n.y,time:n.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(t)},v.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},v.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},v.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},v.prototype._createPoint=function(t,e,n){var o=this._canvas.getBoundingClientRect();return new p(t-o.left,e-o.top,n||(new Date).getTime())},v.prototype._addPoint=function(t){var e=this.points;if(e.push(t),e.length>2){3===e.length&&e.unshift(e[0]);var n=this._calculateCurveControlPoints(e[0],e[1],e[2]).c2,o=this._calculateCurveControlPoints(e[1],e[2],e[3]).c1,i=new f(e[1],n,o,e[2]),r=this._calculateCurveWidths(i);return e.shift(),{curve:i,widths:r}}return{}},v.prototype._calculateCurveControlPoints=function(t,e,n){var o=t.x-e.x,i=t.y-e.y,r=e.x-n.x,a=e.y-n.y,s=(t.x+e.x)/2,c=(t.y+e.y)/2,h=(e.x+n.x)/2,u=(e.y+n.y)/2,l=Math.sqrt(o*o+i*i),d=Math.sqrt(r*r+a*a),f=d/(l+d),v=h+(s-h)*f,_=u+(c-u)*f,y=e.x-v,m=e.y-_;return{c1:new p(s+y,c+m),c2:new p(h+y,u+m)}},v.prototype._calculateCurveWidths=function(t){var e=t.startPoint,n=t.endPoint,o={start:null,end:null},i=this.velocityFilterWeight*n.velocityFrom(e)+(1-this.velocityFilterWeight)*this._lastVelocity,r=this._strokeWidth(i);return o.start=this._lastWidth,o.end=r,this._lastVelocity=i,this._lastWidth=r,o},v.prototype._strokeWidth=function(t){return Math.max(this.maxWidth/(t+1),this.minWidth)},v.prototype._drawPoint=function(t,e,n){var o=this._ctx;o.moveTo(t,e),o.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1},v.prototype._drawCurve=function(t,e,n){var o=this._ctx,i=n-e,r=Math.floor(t.length());o.beginPath();for(var a=0;a<r;a+=1){var s=a/r,c=s*s,h=c*s,u=1-s,l=u*u,d=l*u,p=d*t.startPoint.x;p+=3*l*s*t.control1.x,p+=3*u*c*t.control2.x,p+=h*t.endPoint.x;var f=d*t.startPoint.y;f+=3*l*s*t.control1.y,f+=3*u*c*t.control2.y,f+=h*t.endPoint.y;var v=e+h*i;this._drawPoint(p,f,v)}o.closePath(),o.fill()},v.prototype._drawDot=function(t){var e=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;e.beginPath(),this._drawPoint(t.x,t.y,n),e.closePath(),e.fill()},v.prototype._fromData=function(t,e,n){for(var o=0;o<t.length;o+=1){var i=t[o];if(i.length>1)for(var r=0;r<i.length;r+=1){var a=i[r],s=new p(a.x,a.y,a.time),c=a.color;if(0===r)this.penColor=c,this._reset(),this._addPoint(s);else if(r!==i.length-1){var h=this._addPoint(s),u=h.curve,l=h.widths;u&&l&&e(u,l,c)}}else this._reset(),n(i[0])}},v.prototype._toSVG=function(){var t=this,e=this._data,n=this._canvas,o=Math.max(window.devicePixelRatio||1,1),i=n.width/o,r=n.height/o,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"width",n.width),a.setAttributeNS(null,"height",n.height),this._fromData(e,(function(t,e,n){var o=document.createElement("path");if(!(isNaN(t.control1.x)||isNaN(t.control1.y)||isNaN(t.control2.x)||isNaN(t.control2.y))){var i="M "+t.startPoint.x.toFixed(3)+","+t.startPoint.y.toFixed(3)+" C "+t.control1.x.toFixed(3)+","+t.control1.y.toFixed(3)+" "+t.control2.x.toFixed(3)+","+t.control2.y.toFixed(3)+" "+t.endPoint.x.toFixed(3)+","+t.endPoint.y.toFixed(3);o.setAttribute("d",i),o.setAttribute("stroke-width",(2.25*e.end).toFixed(3)),o.setAttribute("stroke",n),o.setAttribute("fill","none"),o.setAttribute("stroke-linecap","round"),a.appendChild(o)}}),(function(e){var n=document.createElement("circle"),o="function"==typeof t.dotSize?t.dotSize():t.dotSize;n.setAttribute("r",o),n.setAttribute("cx",e.x),n.setAttribute("cy",e.y),n.setAttribute("fill",e.color),a.appendChild(n)}));var s='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+i+" "+r+'" width="'+i+'" height="'+r+'">',c=a.innerHTML;if(void 0===c){var h=document.createElement("dummy"),u=a.childNodes;h.innerHTML="";for(var l=0;l<u.length;l+=1)h.appendChild(u[l].cloneNode(!0));c=h.innerHTML}return"data:image/svg+xml;base64,"+btoa(s+c+"</svg>")},v.prototype.fromData=function(t){var e=this;this.clear(),this._fromData(t,(function(t,n){return e._drawCurve(t,n.start,n.end)}),(function(t){return e._drawDot(t)})),this._data=t},v.prototype.toData=function(){return this._data};const _=v;var y=n(1400),m=["canvasProps","clearOnResize"],g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(p,t);var e,n,r,l=(e=p,n=h(),function(){var t,o=c(e);if(n){var i=c(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return u(this,t)});function p(){var t;a(this,p);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=l.call.apply(l,[this].concat(n))).staticThis=t.constructor,t._sigPad=null,t._canvas=null,t.setRef=function(e){t._canvas=e,null===t._canvas&&(t._sigPad=null)},t._excludeOurProps=function(){var e=t.props;return e.canvasProps,e.clearOnResize,i(e,m)},t.componentDidMount=function(){var e=t.getCanvas();t._sigPad=new _(e,t._excludeOurProps()),t._resizeCanvas(),t.on()},t.componentWillUnmount=function(){t.off()},t.componentDidUpdate=function(){Object.assign(t._sigPad,t._excludeOurProps())},t.getCanvas=function(){if(null===t._canvas)throw t.staticThis.refNullError;return t._canvas},t.getTrimmedCanvas=function(){var e=t.getCanvas(),n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0),y(n)},t.getSignaturePad=function(){if(null===t._sigPad)throw t.staticThis.refNullError;return t._sigPad},t._checkClearOnResize=function(){t.props.clearOnResize&&t._resizeCanvas()},t._resizeCanvas=function(){var e,n,o=null!==(e=t.props.canvasProps)&&void 0!==e?e:{},i=o.width,r=o.height;if(void 0===i||void 0===r){var a=t.getCanvas(),s=Math.max(null!==(n=window.devicePixelRatio)&&void 0!==n?n:1,1);void 0===i&&(a.width=a.offsetWidth*s),void 0===r&&(a.height=a.offsetHeight*s),a.getContext("2d").scale(s,s),t.clear()}},t.render=function(){var e=t.props.canvasProps;return d.createElement("canvas",o({ref:t.setRef},e))},t.on=function(){return window.addEventListener("resize",t._checkClearOnResize),t.getSignaturePad().on()},t.off=function(){return window.removeEventListener("resize",t._checkClearOnResize),t.getSignaturePad().off()},t.clear=function(){return t.getSignaturePad().clear()},t.isEmpty=function(){return t.getSignaturePad().isEmpty()},t.fromDataURL=function(e,n){return t.getSignaturePad().fromDataURL(e,n)},t.toDataURL=function(e,n){return t.getSignaturePad().toDataURL(e,n)},t.fromData=function(e){return t.getSignaturePad().fromData(e)},t.toData=function(){return t.getSignaturePad().toData()},t}return r=p,Object.defineProperty(r,"prototype",{writable:!1}),r}(d.Component);g.propTypes={velocityFilterWeight:l.number,minWidth:l.number,maxWidth:l.number,minDistance:l.number,dotSize:l.oneOfType([l.number,l.func]),penColor:l.string,throttle:l.number,onEnd:l.func,onBegin:l.func,canvasProps:l.object,clearOnResize:l.bool},g.defaultProps={clearOnResize:!0},g.refNullError=new Error("react-signature-canvas is currently mounting or unmounting: React refs are null during this phase.")}}]);
|
|
1
|
+
/*! For license information please see 598.ca92da6595afad37b511.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[598],{2703:(t,e,n)=>{"use strict";var o=n(414);function i(){}function r(){}r.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,r,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:r,resetWarningCache:i};return n.PropTypes=n,n}},5697:(t,e,n)=>{t.exports=n(2703)()},414:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1400:function(t){t.exports=function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return t[o].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e){"use strict";function n(t,e,n,o){return function(t,e,n,o){return{red:o[4*(n*e+t)],green:o[4*(n*e+t)+1],blue:o[4*(n*e+t)+2],alpha:o[4*(n*e+t)+3]}}(t,e,n,o).alpha}function o(t,e,o,i){for(var r=t?1:-1,a=t?0:o-1;t?a<o:a>-1;a+=r)for(var s=0;s<e;s++)if(n(s,a,e,i))return a;return null}function i(t,e,o,i){for(var r=t?1:-1,a=t?0:e-1;t?a<e:a>-1;a+=r)for(var s=0;s<o;s++)if(n(a,s,e,i))return a;return null}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.getContext("2d"),n=t.width,r=t.height,a=e.getImageData(0,0,n,r).data,s=o(!0,n,r,a),c=o(!1,n,r,a),h=i(!0,n,r,a),u=i(!1,n,r,a)-h+1,l=c-s+1,d=e.getImageData(h,s,u,l);return t.width=u,t.height=l,e.clearRect(0,0,u,l),e.putImageData(d,0,0),t}}])},3598:(t,e,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},o.apply(null,arguments)}function i(t,e){if(null==t)return{};var n,o,i=function(t,e){if(null==t)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(-1!==e.indexOf(o))continue;n[o]=t[o]}return n}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o<r.length;o++)n=r[o],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function u(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}n.d(e,{Z:()=>g});var l=n(5697),d=n(7294);function p(t,e,n){this.x=t,this.y=e,this.time=n||(new Date).getTime()}function f(t,e,n,o){this.startPoint=t,this.control1=e,this.control2=n,this.endPoint=o}function v(t,e){var n=this,o=e||{};this.velocityFilterWeight=o.velocityFilterWeight||.7,this.minWidth=o.minWidth||.5,this.maxWidth=o.maxWidth||2.5,this.throttle="throttle"in o?o.throttle:16,this.minDistance="minDistance"in o?o.minDistance:5,this.throttle?this._strokeMoveUpdate=function(t,e,n){var o,i,r,a=null,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Date.now(),a=null,r=t.apply(o,i),a||(o=i=null)};return function(){var h=Date.now();s||!1!==n.leading||(s=h);var u=e-(h-s);return o=this,i=arguments,u<=0||u>e?(a&&(clearTimeout(a),a=null),s=h,r=t.apply(o,i),a||(o=i=null)):a||!1===n.trailing||(a=setTimeout(c,u)),r}}(v.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=v.prototype._strokeUpdate,this.dotSize=o.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=o.penColor||"black",this.backgroundColor=o.backgroundColor||"rgba(0,0,0,0)",this.onBegin=o.onBegin,this.onEnd=o.onEnd,this._canvas=t,this._ctx=t.getContext("2d"),this.clear(),this._handleMouseDown=function(t){1===t.which&&(n._mouseButtonDown=!0,n._strokeBegin(t))},this._handleMouseMove=function(t){n._mouseButtonDown&&n._strokeMoveUpdate(t)},this._handleMouseUp=function(t){1===t.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(t))},this._handleTouchStart=function(t){if(1===t.targetTouches.length){var e=t.changedTouches[0];n._strokeBegin(e)}},this._handleTouchMove=function(t){t.preventDefault();var e=t.targetTouches[0];n._strokeMoveUpdate(e)},this._handleTouchEnd=function(t){t.target===n._canvas&&(t.preventDefault(),n._strokeEnd(t))},this.on()}p.prototype.velocityFrom=function(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):1},p.prototype.distanceTo=function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},p.prototype.equals=function(t){return this.x===t.x&&this.y===t.y&&this.time===t.time},f.prototype.length=function(){for(var t=0,e=void 0,n=void 0,o=0;o<=10;o+=1){var i=o/10,r=this._point(i,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this._point(i,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){var s=r-e,c=a-n;t+=Math.sqrt(s*s+c*c)}e=r,n=a}return t},f.prototype._point=function(t,e,n,o,i){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*o*(1-t)*t*t+i*t*t*t},v.prototype.clear=function(){var t=this._ctx,e=this._canvas;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(),this._isEmpty=!0},v.prototype.fromDataURL=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=new Image,i=n.ratio||window.devicePixelRatio||1,r=n.width||this._canvas.width/i,a=n.height||this._canvas.height/i;this._reset(),o.src=t,o.onload=function(){e._ctx.drawImage(o,0,0,r,a)},this._isEmpty=!1},v.prototype.toDataURL=function(t){var e;if("image/svg+xml"===t)return this._toSVG();for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(e=this._canvas).toDataURL.apply(e,[t].concat(o))},v.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},v.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},v.prototype.isEmpty=function(){return this._isEmpty},v.prototype._strokeBegin=function(t){this._data.push([]),this._reset(),this._strokeUpdate(t),"function"==typeof this.onBegin&&this.onBegin(t)},v.prototype._strokeUpdate=function(t){var e=t.clientX,n=t.clientY,o=this._createPoint(e,n),i=this._data[this._data.length-1],r=i&&i[i.length-1],a=r&&o.distanceTo(r)<this.minDistance;if(!r||!a){var s=this._addPoint(o),c=s.curve,h=s.widths;c&&h&&this._drawCurve(c,h.start,h.end),this._data[this._data.length-1].push({x:o.x,y:o.y,time:o.time,color:this.penColor})}},v.prototype._strokeEnd=function(t){var e=this.points.length>2,n=this.points[0];if(!e&&n&&this._drawDot(n),n){var o=this._data[this._data.length-1],i=o[o.length-1];n.equals(i)||o.push({x:n.x,y:n.y,time:n.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(t)},v.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},v.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},v.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},v.prototype._createPoint=function(t,e,n){var o=this._canvas.getBoundingClientRect();return new p(t-o.left,e-o.top,n||(new Date).getTime())},v.prototype._addPoint=function(t){var e=this.points;if(e.push(t),e.length>2){3===e.length&&e.unshift(e[0]);var n=this._calculateCurveControlPoints(e[0],e[1],e[2]).c2,o=this._calculateCurveControlPoints(e[1],e[2],e[3]).c1,i=new f(e[1],n,o,e[2]),r=this._calculateCurveWidths(i);return e.shift(),{curve:i,widths:r}}return{}},v.prototype._calculateCurveControlPoints=function(t,e,n){var o=t.x-e.x,i=t.y-e.y,r=e.x-n.x,a=e.y-n.y,s=(t.x+e.x)/2,c=(t.y+e.y)/2,h=(e.x+n.x)/2,u=(e.y+n.y)/2,l=Math.sqrt(o*o+i*i),d=Math.sqrt(r*r+a*a),f=d/(l+d),v=h+(s-h)*f,_=u+(c-u)*f,y=e.x-v,m=e.y-_;return{c1:new p(s+y,c+m),c2:new p(h+y,u+m)}},v.prototype._calculateCurveWidths=function(t){var e=t.startPoint,n=t.endPoint,o={start:null,end:null},i=this.velocityFilterWeight*n.velocityFrom(e)+(1-this.velocityFilterWeight)*this._lastVelocity,r=this._strokeWidth(i);return o.start=this._lastWidth,o.end=r,this._lastVelocity=i,this._lastWidth=r,o},v.prototype._strokeWidth=function(t){return Math.max(this.maxWidth/(t+1),this.minWidth)},v.prototype._drawPoint=function(t,e,n){var o=this._ctx;o.moveTo(t,e),o.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1},v.prototype._drawCurve=function(t,e,n){var o=this._ctx,i=n-e,r=Math.floor(t.length());o.beginPath();for(var a=0;a<r;a+=1){var s=a/r,c=s*s,h=c*s,u=1-s,l=u*u,d=l*u,p=d*t.startPoint.x;p+=3*l*s*t.control1.x,p+=3*u*c*t.control2.x,p+=h*t.endPoint.x;var f=d*t.startPoint.y;f+=3*l*s*t.control1.y,f+=3*u*c*t.control2.y,f+=h*t.endPoint.y;var v=e+h*i;this._drawPoint(p,f,v)}o.closePath(),o.fill()},v.prototype._drawDot=function(t){var e=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;e.beginPath(),this._drawPoint(t.x,t.y,n),e.closePath(),e.fill()},v.prototype._fromData=function(t,e,n){for(var o=0;o<t.length;o+=1){var i=t[o];if(i.length>1)for(var r=0;r<i.length;r+=1){var a=i[r],s=new p(a.x,a.y,a.time),c=a.color;if(0===r)this.penColor=c,this._reset(),this._addPoint(s);else if(r!==i.length-1){var h=this._addPoint(s),u=h.curve,l=h.widths;u&&l&&e(u,l,c)}}else this._reset(),n(i[0])}},v.prototype._toSVG=function(){var t=this,e=this._data,n=this._canvas,o=Math.max(window.devicePixelRatio||1,1),i=n.width/o,r=n.height/o,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"width",n.width),a.setAttributeNS(null,"height",n.height),this._fromData(e,(function(t,e,n){var o=document.createElement("path");if(!(isNaN(t.control1.x)||isNaN(t.control1.y)||isNaN(t.control2.x)||isNaN(t.control2.y))){var i="M "+t.startPoint.x.toFixed(3)+","+t.startPoint.y.toFixed(3)+" C "+t.control1.x.toFixed(3)+","+t.control1.y.toFixed(3)+" "+t.control2.x.toFixed(3)+","+t.control2.y.toFixed(3)+" "+t.endPoint.x.toFixed(3)+","+t.endPoint.y.toFixed(3);o.setAttribute("d",i),o.setAttribute("stroke-width",(2.25*e.end).toFixed(3)),o.setAttribute("stroke",n),o.setAttribute("fill","none"),o.setAttribute("stroke-linecap","round"),a.appendChild(o)}}),(function(e){var n=document.createElement("circle"),o="function"==typeof t.dotSize?t.dotSize():t.dotSize;n.setAttribute("r",o),n.setAttribute("cx",e.x),n.setAttribute("cy",e.y),n.setAttribute("fill",e.color),a.appendChild(n)}));var s='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+i+" "+r+'" width="'+i+'" height="'+r+'">',c=a.innerHTML;if(void 0===c){var h=document.createElement("dummy"),u=a.childNodes;h.innerHTML="";for(var l=0;l<u.length;l+=1)h.appendChild(u[l].cloneNode(!0));c=h.innerHTML}return"data:image/svg+xml;base64,"+btoa(s+c+"</svg>")},v.prototype.fromData=function(t){var e=this;this.clear(),this._fromData(t,(function(t,n){return e._drawCurve(t,n.start,n.end)}),(function(t){return e._drawDot(t)})),this._data=t},v.prototype.toData=function(){return this._data};const _=v;var y=n(1400),m=["canvasProps","clearOnResize"],g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(p,t);var e,n,r,l=(e=p,n=h(),function(){var t,o=c(e);if(n){var i=c(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return u(this,t)});function p(){var t;a(this,p);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=l.call.apply(l,[this].concat(n))).staticThis=t.constructor,t._sigPad=null,t._canvas=null,t.setRef=function(e){t._canvas=e,null===t._canvas&&(t._sigPad=null)},t._excludeOurProps=function(){var e=t.props;return e.canvasProps,e.clearOnResize,i(e,m)},t.componentDidMount=function(){var e=t.getCanvas();t._sigPad=new _(e,t._excludeOurProps()),t._resizeCanvas(),t.on()},t.componentWillUnmount=function(){t.off()},t.componentDidUpdate=function(){Object.assign(t._sigPad,t._excludeOurProps())},t.getCanvas=function(){if(null===t._canvas)throw t.staticThis.refNullError;return t._canvas},t.getTrimmedCanvas=function(){var e=t.getCanvas(),n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0),y(n)},t.getSignaturePad=function(){if(null===t._sigPad)throw t.staticThis.refNullError;return t._sigPad},t._checkClearOnResize=function(){t.props.clearOnResize&&t._resizeCanvas()},t._resizeCanvas=function(){var e,n,o=null!==(e=t.props.canvasProps)&&void 0!==e?e:{},i=o.width,r=o.height;if(void 0===i||void 0===r){var a=t.getCanvas(),s=Math.max(null!==(n=window.devicePixelRatio)&&void 0!==n?n:1,1);void 0===i&&(a.width=a.offsetWidth*s),void 0===r&&(a.height=a.offsetHeight*s),a.getContext("2d").scale(s,s),t.clear()}},t.render=function(){var e=t.props.canvasProps;return d.createElement("canvas",o({ref:t.setRef},e))},t.on=function(){return window.addEventListener("resize",t._checkClearOnResize),t.getSignaturePad().on()},t.off=function(){return window.removeEventListener("resize",t._checkClearOnResize),t.getSignaturePad().off()},t.clear=function(){return t.getSignaturePad().clear()},t.isEmpty=function(){return t.getSignaturePad().isEmpty()},t.fromDataURL=function(e,n){return t.getSignaturePad().fromDataURL(e,n)},t.toDataURL=function(e,n){return t.getSignaturePad().toDataURL(e,n)},t.fromData=function(e){return t.getSignaturePad().fromData(e)},t.toData=function(){return t.getSignaturePad().toData()},t}return r=p,Object.defineProperty(r,"prototype",{writable:!1}),r}(d.Component);g.propTypes={velocityFilterWeight:l.number,minWidth:l.number,maxWidth:l.number,minDistance:l.number,dotSize:l.oneOfType([l.number,l.func]),penColor:l.string,throttle:l.number,onEnd:l.func,onBegin:l.func,canvasProps:l.object,clearOnResize:l.bool},g.defaultProps={clearOnResize:!0},g.refNullError=new Error("react-signature-canvas is currently mounting or unmounting: React refs are null during this phase.")}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[664],{6664:function(e,t,n){!function(e,t){"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e){return o="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},o(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,c=[],u=!0,i=!1;try{for(n=n.call(e);!(u=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);u=!0);}catch(e){i=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(i)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,p,f,d,h={exports:{}};h.exports=function(){if(d)return f;d=1;var e=p?l:(p=1,l="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,f=function(){function r(t,n,r,o,c,u){if(u!==e){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function o(){return r}r.isRequired=r;var c={array:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return c.PropTypes=c,c}}()();var m=a(h.exports),y=function(e,n,r){var o=!!r,c=t.useRef(r);t.useEffect((function(){c.current=r}),[r]),t.useEffect((function(){if(!o||!e)return function(){};var t=function(){c.current&&c.current.apply(c,arguments)};return e.on(n,t),function(){e.off(n,t)}}),[o,n,e,c])},g=function(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e}),[e]),n.current},v=function(e){return null!==e&&"object"===o(e)},C=function(e){return v(e)&&"function"==typeof e.then},E=function(e){return v(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment},k="[object Object]",b=function e(t,n){if(!v(t)||!v(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var o=Object.prototype.toString.call(t)===k;if(o!==(Object.prototype.toString.call(n)===k))return!1;if(!o&&!r)return t===n;var c=Object.keys(t),u=Object.keys(n);if(c.length!==u.length)return!1;for(var i={},s=0;s<c.length;s+=1)i[c[s]]=!0;for(var a=0;a<u.length;a+=1)i[u[a]]=!0;var l=Object.keys(i);if(l.length!==c.length)return!1;var p=t,f=n;return l.every((function(t){return e(p[t],f[t])}))},S=function(e,t,n){return v(e)?Object.keys(e).reduce((function(o,u){var i=!v(t)||!b(e[u],t[u]);return n.includes(u)?(i&&console.warn("Unsupported prop change: options.".concat(u," is not a mutable property.")),o):i?r(r({},o||{}),{},c({},u,e[u])):o}),null):null},w="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w;if(null===e||E(e))return e;throw new Error(t)},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w;if(C(e))return{tag:"async",stripePromise:Promise.resolve(e).then((function(e){return P(e,t)}))};var n=P(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},j=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"3.7.0"}),e.registerAppInfo({name:"react-stripe-js",version:"3.7.0",url:"https://stripe.com/docs/stripe-js/react"}))},x=t.createContext(null);x.displayName="ElementsContext";var A=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},R=function(e){var n=e.stripe,r=e.options,o=e.children,c=t.useMemo((function(){return O(n)}),[n]),u=i(t.useState((function(){return{stripe:"sync"===c.tag?c.stripe:null,elements:"sync"===c.tag?c.stripe.elements(r):null}})),2),s=u[0],a=u[1];t.useEffect((function(){var e=!0,t=function(e){a((function(t){return t.stripe?t:{stripe:e,elements:e.elements(r)}}))};return"async"!==c.tag||s.stripe?"sync"!==c.tag||s.stripe||t(c.stripe):c.stripePromise.then((function(n){n&&e&&t(n)})),function(){e=!1}}),[c,s,r]);var l=g(n);t.useEffect((function(){null!==l&&l!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")}),[l,n]);var p=g(r);return t.useEffect((function(){if(s.elements){var e=S(r,p,["clientSecret","fonts"]);e&&s.elements.update(e)}}),[r,p,s.elements]),t.useEffect((function(){j(s.stripe)}),[s.stripe]),t.createElement(x.Provider,{value:s},o)};R.propTypes={stripe:m.any,options:m.object};var I=function(e){var n=t.useContext(x);return A(n,e)},N=function(e){return(0,e.children)(I("mounts <ElementsConsumer>"))};N.propTypes={children:m.func.isRequired};var T=["on","session"],Y=t.createContext(null);Y.displayName="CheckoutSdkContext";var B=function(e,t){if(!e)throw new Error("Could not find CheckoutProvider context; You need to wrap the part of your app that ".concat(t," in an <CheckoutProvider> provider."));return e},U=t.createContext(null);U.displayName="CheckoutContext";var M=function(e){var n=e.stripe,r=e.options,o=e.children,c=t.useMemo((function(){return O(n,"Invalid prop `stripe` supplied to `CheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")}),[n]),s=i(t.useState(null),2),a=s[0],l=s[1],p=i(t.useState((function(){return{stripe:"sync"===c.tag?c.stripe:null,checkoutSdk:null}})),2),f=p[0],d=p[1],h=function(e,t){d((function(n){return n.stripe&&n.checkoutSdk?n:{stripe:e,checkoutSdk:t}}))},m=t.useRef(!1);t.useEffect((function(){var e=!0;return"async"!==c.tag||f.stripe?"sync"===c.tag&&c.stripe&&!m.current&&(m.current=!0,c.stripe.initCheckout(r).then((function(e){e&&(h(c.stripe,e),e.on("change",l))}))):c.stripePromise.then((function(t){t&&e&&!m.current&&(m.current=!0,t.initCheckout(r).then((function(e){e&&(h(t,e),e.on("change",l))})))})),function(){e=!1}}),[c,f,r,l]);var y=g(n);t.useEffect((function(){null!==y&&y!==n&&console.warn("Unsupported prop change on CheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[y,n]);var v=g(r),C=g(f.checkoutSdk);t.useEffect((function(){var e,t;if(f.checkoutSdk){var n=null==v||null===(e=v.elementsOptions)||void 0===e?void 0:e.appearance,o=null==r||null===(t=r.elementsOptions)||void 0===t?void 0:t.appearance,c=!b(o,n),u=!C&&f.checkoutSdk;o&&(c||u)&&f.checkoutSdk.changeAppearance(o)}}),[r,v,f.checkoutSdk,C]),t.useEffect((function(){j(f.stripe)}),[f.stripe]);var E=t.useMemo((function(){return function(e,t){if(!e)return null;e.on,e.session;var n=u(e,T);return t?Object.assign(t,n):Object.assign(e.session(),n)}(f.checkoutSdk,a)}),[f.checkoutSdk,a]);return f.checkoutSdk?t.createElement(Y.Provider,{value:f},t.createElement(U.Provider,{value:E},o)):null};M.propTypes={stripe:m.any,options:m.shape({fetchClientSecret:m.func.isRequired,elementsOptions:m.object}).isRequired};var _=function(e){var n=t.useContext(Y),r=t.useContext(x);if(n&&r)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CheckoutProvider> and <Elements> providers."));return n?B(n,e):A(r,e)},L=["mode"],D=function(e,n){var r,o="".concat((r=e).charAt(0).toUpperCase()+r.slice(1),"Element"),c=n?function(e){_("mounts <".concat(o,">"));var n=e.id,r=e.className;return t.createElement("div",{id:n,className:r})}:function(n){var r,c=n.id,s=n.className,a=n.options,l=void 0===a?{}:a,p=n.onBlur,f=n.onFocus,d=n.onReady,h=n.onChange,m=n.onEscape,v=n.onClick,C=n.onLoadError,E=n.onLoaderStart,k=n.onNetworksChange,b=n.onConfirm,w=n.onCancel,P=n.onShippingAddressChange,O=n.onShippingRateChange,j=_("mounts <".concat(o,">")),x="elements"in j?j.elements:null,A="checkoutSdk"in j?j.checkoutSdk:null,R=i(t.useState(null),2),I=R[0],N=R[1],T=t.useRef(null),Y=t.useRef(null);y(I,"blur",p),y(I,"focus",f),y(I,"escape",m),y(I,"click",v),y(I,"loaderror",C),y(I,"loaderstart",E),y(I,"networkschange",k),y(I,"confirm",b),y(I,"cancel",w),y(I,"shippingaddresschange",P),y(I,"shippingratechange",O),y(I,"change",h),d&&(r="expressCheckout"===e?d:function(){d(I)}),y(I,"ready",r),t.useLayoutEffect((function(){if(null===T.current&&null!==Y.current&&(x||A)){var t=null;if(A)switch(e){case"payment":t=A.createPaymentElement(l);break;case"address":if(!("mode"in l))throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");var n=l.mode,r=u(l,L);if("shipping"===n)t=A.createShippingAddressElement(r);else{if("billing"!==n)throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.");t=A.createBillingAddressElement(r)}break;case"expressCheckout":t=A.createExpressCheckoutElement(l);break;case"currencySelector":t=A.createCurrencySelectorElement();break;default:throw new Error("Invalid Element type ".concat(o,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else x&&(t=x.create(e,l));T.current=t,N(t),t&&t.mount(Y.current)}}),[x,A,l]);var B=g(l);return t.useEffect((function(){if(T.current){var e=S(l,B,["paymentRequest"]);e&&"update"in T.current&&T.current.update(e)}}),[l,B]),t.useLayoutEffect((function(){return function(){if(T.current&&"function"==typeof T.current.destroy)try{T.current.destroy(),T.current=null}catch(e){}}}),[]),t.createElement("div",{id:c,className:s,ref:Y})};return c.propTypes={id:m.string,className:m.string,onChange:m.func,onBlur:m.func,onFocus:m.func,onReady:m.func,onEscape:m.func,onClick:m.func,onLoadError:m.func,onLoaderStart:m.func,onNetworksChange:m.func,onConfirm:m.func,onCancel:m.func,onShippingAddressChange:m.func,onShippingRateChange:m.func,options:m.object},c.displayName=o,c.__elementType=e,c},W="undefined"==typeof window,q=t.createContext(null);q.displayName="EmbeddedCheckoutProviderContext";var F=function(){var e=t.useContext(q);if(!e)throw new Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return e},H=W?function(e){var n=e.id,r=e.className;return F(),t.createElement("div",{id:n,className:r})}:function(e){var n=e.id,r=e.className,o=F().embeddedCheckout,c=t.useRef(!1),u=t.useRef(null);return t.useLayoutEffect((function(){return!c.current&&o&&null!==u.current&&(o.mount(u.current),c.current=!0),function(){if(c.current&&o)try{o.unmount(),c.current=!1}catch(e){}}}),[o]),t.createElement("div",{ref:u,id:n,className:r})},V=D("auBankAccount",W),$=D("card",W),z=D("cardNumber",W),G=D("cardExpiry",W),J=D("cardCvc",W),K=D("fpxBank",W),Q=D("iban",W),X=D("idealBank",W),Z=D("p24Bank",W),ee=D("epsBank",W),te=D("payment",W),ne=D("expressCheckout",W),re=D("currencySelector",W),oe=D("paymentRequestButton",W),ce=D("linkAuthentication",W),ue=D("address",W),ie=D("shippingAddress",W),se=D("paymentMethodMessaging",W),ae=D("affirmMessage",W),le=D("afterpayClearpayMessage",W);e.AddressElement=ue,e.AffirmMessageElement=ae,e.AfterpayClearpayMessageElement=le,e.AuBankAccountElement=V,e.CardCvcElement=J,e.CardElement=$,e.CardExpiryElement=G,e.CardNumberElement=z,e.CheckoutProvider=M,e.CurrencySelectorElement=re,e.Elements=R,e.ElementsConsumer=N,e.EmbeddedCheckout=H,e.EmbeddedCheckoutProvider=function(e){var n=e.stripe,r=e.options,o=e.children,c=t.useMemo((function(){return O(n,"Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")}),[n]),u=t.useRef(null),s=t.useRef(null),a=i(t.useState({embeddedCheckout:null}),2),l=a[0],p=a[1];t.useEffect((function(){if(!s.current&&!u.current){var e=function(e){s.current||u.current||(s.current=e,u.current=s.current.initEmbeddedCheckout(r).then((function(e){p({embeddedCheckout:e})})))};"async"!==c.tag||s.current||!r.clientSecret&&!r.fetchClientSecret?"sync"!==c.tag||s.current||!r.clientSecret&&!r.fetchClientSecret||e(c.stripe):c.stripePromise.then((function(t){t&&e(t)}))}}),[c,r,l,s]),t.useEffect((function(){return function(){l.embeddedCheckout?(u.current=null,l.embeddedCheckout.destroy()):u.current&&u.current.then((function(){u.current=null,l.embeddedCheckout&&l.embeddedCheckout.destroy()}))}}),[l.embeddedCheckout]),t.useEffect((function(){j(s)}),[s]);var f=g(n);t.useEffect((function(){null!==f&&f!==n&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[f,n]);var d=g(r);return t.useEffect((function(){null!=d&&(null!=r?(void 0===r.clientSecret&&void 0===r.fetchClientSecret&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),null!=d.clientSecret&&r.clientSecret!==d.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=d.fetchClientSecret&&r.fetchClientSecret!==d.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=d.onComplete&&r.onComplete!==d.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),null!=d.onShippingDetailsChange&&r.onShippingDetailsChange!==d.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),null!=d.onLineItemsChange&&r.onLineItemsChange!==d.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")):console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them."))}),[d,r]),t.createElement(q.Provider,{value:l},o)},e.EpsBankElement=ee,e.ExpressCheckoutElement=ne,e.FpxBankElement=K,e.IbanElement=Q,e.IdealBankElement=X,e.LinkAuthenticationElement=ce,e.P24BankElement=Z,e.PaymentElement=te,e.PaymentMethodMessagingElement=se,e.PaymentRequestButtonElement=oe,e.ShippingAddressElement=ie,e.useCheckout=function(){!function(e){var n=t.useContext(Y);B(n,e)}("calls useCheckout()");var e=t.useContext(U);if(!e)throw new Error("Could not find Checkout Context; You need to wrap the part of your app that calls useCheckout() in an <CheckoutProvider> provider.");return e},e.useElements=function(){return I("calls useElements()").elements},e.useStripe=function(){return _("calls useStripe()").stripe}}(t,n(5430))}}]);
|
|
1
|
+
(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[664],{6664:function(e,t,n){!function(e,t){"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e){return o="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},o(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,c=[],u=!0,i=!1;try{for(n=n.call(e);!(u=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);u=!0);}catch(e){i=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(i)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,p,f,d,h={exports:{}};h.exports=function(){if(d)return f;d=1;var e=p?l:(p=1,l="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,f=function(){function r(t,n,r,o,c,u){if(u!==e){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function o(){return r}r.isRequired=r;var c={array:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return c.PropTypes=c,c}}()();var m=a(h.exports),y=function(e,n,r){var o=!!r,c=t.useRef(r);t.useEffect((function(){c.current=r}),[r]),t.useEffect((function(){if(!o||!e)return function(){};var t=function(){c.current&&c.current.apply(c,arguments)};return e.on(n,t),function(){e.off(n,t)}}),[o,n,e,c])},g=function(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e}),[e]),n.current},v=function(e){return null!==e&&"object"===o(e)},C=function(e){return v(e)&&"function"==typeof e.then},E=function(e){return v(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment},k="[object Object]",b=function e(t,n){if(!v(t)||!v(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var o=Object.prototype.toString.call(t)===k;if(o!==(Object.prototype.toString.call(n)===k))return!1;if(!o&&!r)return t===n;var c=Object.keys(t),u=Object.keys(n);if(c.length!==u.length)return!1;for(var i={},s=0;s<c.length;s+=1)i[c[s]]=!0;for(var a=0;a<u.length;a+=1)i[u[a]]=!0;var l=Object.keys(i);if(l.length!==c.length)return!1;var p=t,f=n;return l.every((function(t){return e(p[t],f[t])}))},S=function(e,t,n){return v(e)?Object.keys(e).reduce((function(o,u){var i=!v(t)||!b(e[u],t[u]);return n.includes(u)?(i&&console.warn("Unsupported prop change: options.".concat(u," is not a mutable property.")),o):i?r(r({},o||{}),{},c({},u,e[u])):o}),null):null},w="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w;if(null===e||E(e))return e;throw new Error(t)},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w;if(C(e))return{tag:"async",stripePromise:Promise.resolve(e).then((function(e){return P(e,t)}))};var n=P(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},j=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"3.7.0"}),e.registerAppInfo({name:"react-stripe-js",version:"3.7.0",url:"https://stripe.com/docs/stripe-js/react"}))},x=t.createContext(null);x.displayName="ElementsContext";var A=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},R=function(e){var n=e.stripe,r=e.options,o=e.children,c=t.useMemo((function(){return O(n)}),[n]),u=i(t.useState((function(){return{stripe:"sync"===c.tag?c.stripe:null,elements:"sync"===c.tag?c.stripe.elements(r):null}})),2),s=u[0],a=u[1];t.useEffect((function(){var e=!0,t=function(e){a((function(t){return t.stripe?t:{stripe:e,elements:e.elements(r)}}))};return"async"!==c.tag||s.stripe?"sync"!==c.tag||s.stripe||t(c.stripe):c.stripePromise.then((function(n){n&&e&&t(n)})),function(){e=!1}}),[c,s,r]);var l=g(n);t.useEffect((function(){null!==l&&l!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")}),[l,n]);var p=g(r);return t.useEffect((function(){if(s.elements){var e=S(r,p,["clientSecret","fonts"]);e&&s.elements.update(e)}}),[r,p,s.elements]),t.useEffect((function(){j(s.stripe)}),[s.stripe]),t.createElement(x.Provider,{value:s},o)};R.propTypes={stripe:m.any,options:m.object};var I=function(e){var n=t.useContext(x);return A(n,e)},N=function(e){return(0,e.children)(I("mounts <ElementsConsumer>"))};N.propTypes={children:m.func.isRequired};var T=["on","session"],Y=t.createContext(null);Y.displayName="CheckoutSdkContext";var B=function(e,t){if(!e)throw new Error("Could not find CheckoutProvider context; You need to wrap the part of your app that ".concat(t," in an <CheckoutProvider> provider."));return e},U=t.createContext(null);U.displayName="CheckoutContext";var M=function(e){var n=e.stripe,r=e.options,o=e.children,c=t.useMemo((function(){return O(n,"Invalid prop `stripe` supplied to `CheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")}),[n]),s=i(t.useState(null),2),a=s[0],l=s[1],p=i(t.useState((function(){return{stripe:"sync"===c.tag?c.stripe:null,checkoutSdk:null}})),2),f=p[0],d=p[1],h=function(e,t){d((function(n){return n.stripe&&n.checkoutSdk?n:{stripe:e,checkoutSdk:t}}))},m=t.useRef(!1);t.useEffect((function(){var e=!0;return"async"!==c.tag||f.stripe?"sync"===c.tag&&c.stripe&&!m.current&&(m.current=!0,c.stripe.initCheckout(r).then((function(e){e&&(h(c.stripe,e),e.on("change",l))}))):c.stripePromise.then((function(t){t&&e&&!m.current&&(m.current=!0,t.initCheckout(r).then((function(e){e&&(h(t,e),e.on("change",l))})))})),function(){e=!1}}),[c,f,r,l]);var y=g(n);t.useEffect((function(){null!==y&&y!==n&&console.warn("Unsupported prop change on CheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[y,n]);var v=g(r),C=g(f.checkoutSdk);t.useEffect((function(){var e,t;if(f.checkoutSdk){var n=null==v||null===(e=v.elementsOptions)||void 0===e?void 0:e.appearance,o=null==r||null===(t=r.elementsOptions)||void 0===t?void 0:t.appearance,c=!b(o,n),u=!C&&f.checkoutSdk;o&&(c||u)&&f.checkoutSdk.changeAppearance(o)}}),[r,v,f.checkoutSdk,C]),t.useEffect((function(){j(f.stripe)}),[f.stripe]);var E=t.useMemo((function(){return function(e,t){if(!e)return null;e.on,e.session;var n=u(e,T);return t?Object.assign(t,n):Object.assign(e.session(),n)}(f.checkoutSdk,a)}),[f.checkoutSdk,a]);return f.checkoutSdk?t.createElement(Y.Provider,{value:f},t.createElement(U.Provider,{value:E},o)):null};M.propTypes={stripe:m.any,options:m.shape({fetchClientSecret:m.func.isRequired,elementsOptions:m.object}).isRequired};var _=function(e){var n=t.useContext(Y),r=t.useContext(x);if(n&&r)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CheckoutProvider> and <Elements> providers."));return n?B(n,e):A(r,e)},L=["mode"],D=function(e,n){var r,o="".concat((r=e).charAt(0).toUpperCase()+r.slice(1),"Element"),c=n?function(e){_("mounts <".concat(o,">"));var n=e.id,r=e.className;return t.createElement("div",{id:n,className:r})}:function(n){var r,c=n.id,s=n.className,a=n.options,l=void 0===a?{}:a,p=n.onBlur,f=n.onFocus,d=n.onReady,h=n.onChange,m=n.onEscape,v=n.onClick,C=n.onLoadError,E=n.onLoaderStart,k=n.onNetworksChange,b=n.onConfirm,w=n.onCancel,P=n.onShippingAddressChange,O=n.onShippingRateChange,j=_("mounts <".concat(o,">")),x="elements"in j?j.elements:null,A="checkoutSdk"in j?j.checkoutSdk:null,R=i(t.useState(null),2),I=R[0],N=R[1],T=t.useRef(null),Y=t.useRef(null);y(I,"blur",p),y(I,"focus",f),y(I,"escape",m),y(I,"click",v),y(I,"loaderror",C),y(I,"loaderstart",E),y(I,"networkschange",k),y(I,"confirm",b),y(I,"cancel",w),y(I,"shippingaddresschange",P),y(I,"shippingratechange",O),y(I,"change",h),d&&(r="expressCheckout"===e?d:function(){d(I)}),y(I,"ready",r),t.useLayoutEffect((function(){if(null===T.current&&null!==Y.current&&(x||A)){var t=null;if(A)switch(e){case"payment":t=A.createPaymentElement(l);break;case"address":if(!("mode"in l))throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");var n=l.mode,r=u(l,L);if("shipping"===n)t=A.createShippingAddressElement(r);else{if("billing"!==n)throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.");t=A.createBillingAddressElement(r)}break;case"expressCheckout":t=A.createExpressCheckoutElement(l);break;case"currencySelector":t=A.createCurrencySelectorElement();break;default:throw new Error("Invalid Element type ".concat(o,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else x&&(t=x.create(e,l));T.current=t,N(t),t&&t.mount(Y.current)}}),[x,A,l]);var B=g(l);return t.useEffect((function(){if(T.current){var e=S(l,B,["paymentRequest"]);e&&"update"in T.current&&T.current.update(e)}}),[l,B]),t.useLayoutEffect((function(){return function(){if(T.current&&"function"==typeof T.current.destroy)try{T.current.destroy(),T.current=null}catch(e){}}}),[]),t.createElement("div",{id:c,className:s,ref:Y})};return c.propTypes={id:m.string,className:m.string,onChange:m.func,onBlur:m.func,onFocus:m.func,onReady:m.func,onEscape:m.func,onClick:m.func,onLoadError:m.func,onLoaderStart:m.func,onNetworksChange:m.func,onConfirm:m.func,onCancel:m.func,onShippingAddressChange:m.func,onShippingRateChange:m.func,options:m.object},c.displayName=o,c.__elementType=e,c},W="undefined"==typeof window,q=t.createContext(null);q.displayName="EmbeddedCheckoutProviderContext";var F=function(){var e=t.useContext(q);if(!e)throw new Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return e},H=W?function(e){var n=e.id,r=e.className;return F(),t.createElement("div",{id:n,className:r})}:function(e){var n=e.id,r=e.className,o=F().embeddedCheckout,c=t.useRef(!1),u=t.useRef(null);return t.useLayoutEffect((function(){return!c.current&&o&&null!==u.current&&(o.mount(u.current),c.current=!0),function(){if(c.current&&o)try{o.unmount(),c.current=!1}catch(e){}}}),[o]),t.createElement("div",{ref:u,id:n,className:r})},V=D("auBankAccount",W),$=D("card",W),z=D("cardNumber",W),G=D("cardExpiry",W),J=D("cardCvc",W),K=D("fpxBank",W),Q=D("iban",W),X=D("idealBank",W),Z=D("p24Bank",W),ee=D("epsBank",W),te=D("payment",W),ne=D("expressCheckout",W),re=D("currencySelector",W),oe=D("paymentRequestButton",W),ce=D("linkAuthentication",W),ue=D("address",W),ie=D("shippingAddress",W),se=D("paymentMethodMessaging",W),ae=D("affirmMessage",W),le=D("afterpayClearpayMessage",W);e.AddressElement=ue,e.AffirmMessageElement=ae,e.AfterpayClearpayMessageElement=le,e.AuBankAccountElement=V,e.CardCvcElement=J,e.CardElement=$,e.CardExpiryElement=G,e.CardNumberElement=z,e.CheckoutProvider=M,e.CurrencySelectorElement=re,e.Elements=R,e.ElementsConsumer=N,e.EmbeddedCheckout=H,e.EmbeddedCheckoutProvider=function(e){var n=e.stripe,r=e.options,o=e.children,c=t.useMemo((function(){return O(n,"Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")}),[n]),u=t.useRef(null),s=t.useRef(null),a=i(t.useState({embeddedCheckout:null}),2),l=a[0],p=a[1];t.useEffect((function(){if(!s.current&&!u.current){var e=function(e){s.current||u.current||(s.current=e,u.current=s.current.initEmbeddedCheckout(r).then((function(e){p({embeddedCheckout:e})})))};"async"!==c.tag||s.current||!r.clientSecret&&!r.fetchClientSecret?"sync"!==c.tag||s.current||!r.clientSecret&&!r.fetchClientSecret||e(c.stripe):c.stripePromise.then((function(t){t&&e(t)}))}}),[c,r,l,s]),t.useEffect((function(){return function(){l.embeddedCheckout?(u.current=null,l.embeddedCheckout.destroy()):u.current&&u.current.then((function(){u.current=null,l.embeddedCheckout&&l.embeddedCheckout.destroy()}))}}),[l.embeddedCheckout]),t.useEffect((function(){j(s)}),[s]);var f=g(n);t.useEffect((function(){null!==f&&f!==n&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[f,n]);var d=g(r);return t.useEffect((function(){null!=d&&(null!=r?(void 0===r.clientSecret&&void 0===r.fetchClientSecret&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),null!=d.clientSecret&&r.clientSecret!==d.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=d.fetchClientSecret&&r.fetchClientSecret!==d.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=d.onComplete&&r.onComplete!==d.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),null!=d.onShippingDetailsChange&&r.onShippingDetailsChange!==d.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),null!=d.onLineItemsChange&&r.onLineItemsChange!==d.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")):console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them."))}),[d,r]),t.createElement(q.Provider,{value:l},o)},e.EpsBankElement=ee,e.ExpressCheckoutElement=ne,e.FpxBankElement=K,e.IbanElement=Q,e.IdealBankElement=X,e.LinkAuthenticationElement=ce,e.P24BankElement=Z,e.PaymentElement=te,e.PaymentMethodMessagingElement=se,e.PaymentRequestButtonElement=oe,e.ShippingAddressElement=ie,e.useCheckout=function(){!function(e){var n=t.useContext(Y);B(n,e)}("calls useCheckout()");var e=t.useContext(U);if(!e)throw new Error("Could not find Checkout Context; You need to wrap the part of your app that calls useCheckout() in an <CheckoutProvider> provider.");return e},e.useElements=function(){return I("calls useElements()").elements},e.useStripe=function(){return _("calls useStripe()").stripe}}(t,n(7294))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[94],{3094:(e,t,n)=>{n.d(t,{Z:()=>L});var r=n(5430);const a="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,s=(e,t)=>{const n=r.useRef(!0);a((()=>e(n.current)),t),a((()=>(n.current=!1,()=>{n.current=!0})),[])},l=function(e){const t=r.useRef();return t.current=e,r.useCallback(((...e)=>t.current?.(...e)),[])};let c={};const o=[];function u(e,t){}function i(e,t){}function d(e,t,n){t||c[n]||(e(!1,n),c[n]=!0)}function f(e,t){d(u,e,t)}f.preMessage=e=>{o.push(e)},f.resetWarned=function(){c={}},f.noteOnce=function(e,t){d(i,e,t)};const E=f;var m=n(4184),h=n.n(m),g=n(3935);function v(e,t,n){return(e-t)/(n-t)}function b(e,t,n,r){const a=v(t,n,r),s={};switch(e){case"rtl":s.right=100*a+"%",s.transform="translateX(50%)";break;case"btt":s.bottom=100*a+"%",s.transform="translateY(50%)";break;case"ttb":s.top=100*a+"%",s.transform="translateY(-50%)";break;default:s.left=100*a+"%",s.transform="translateX(-50%)"}return s}function p(e,t){return Array.isArray(e)?e[t]:e}const C={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=C.F1&&t<=C.F12)return!1;switch(t){case C.ALT:case C.CAPS_LOCK:case C.CONTEXT_MENU:case C.CTRL:case C.DOWN:case C.END:case C.ESC:case C.HOME:case C.INSERT:case C.LEFT:case C.MAC_FF_META:case C.META:case C.NUMLOCK:case C.NUM_CENTER:case C.PAGE_DOWN:case C.PAGE_UP:case C.PAUSE:case C.PRINT_SCREEN:case C.RIGHT:case C.SHIFT:case C.UP:case C.WIN_KEY:case C.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=C.ZERO&&e<=C.NINE)return!0;if(e>=C.NUM_ZERO&&e<=C.NUM_MULTIPLY)return!0;if(e>=C.A&&e<=C.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case C.SPACE:case C.QUESTION_MARK:case C.NUM_PLUS:case C.NUM_MINUS:case C.NUM_PERIOD:case C.NUM_DIVISION:case C.SEMICOLON:case C.DASH:case C.EQUALS:case C.COMMA:case C.PERIOD:case C.SLASH:case C.APOSTROPHE:case C.SINGLE_QUOTE:case C.OPEN_SQUARE_BRACKET:case C.BACKSLASH:case C.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},M=C,y=r.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),N=r.createContext({});function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}const x=r.forwardRef(((e,t)=>{const{prefixCls:n,value:a,valueIndex:s,onStartMove:l,onDelete:c,style:o,render:u,dragging:i,draggingDelete:d,onOffsetChange:f,onChangeComplete:E,onFocus:m,onMouseEnter:g,...v}=e,{min:C,max:N,direction:x,disabled:O,keyboard:k,range:A,tabIndex:T,ariaLabelForHandle:I,ariaLabelledByForHandle:R,ariaRequired:_,ariaValueTextFormatterForHandle:U,styles:F,classNames:L}=r.useContext(y),P=`${n}-handle`,D=e=>{O||l(e,s)},H=b(x,a,C,N);let w={};null!==s&&(w={tabIndex:O?null:p(T,s),role:"slider","aria-valuemin":C,"aria-valuemax":N,"aria-valuenow":a,"aria-disabled":O,"aria-label":p(I,s),"aria-labelledby":p(R,s),"aria-required":p(_,s),"aria-valuetext":p(U,s)?.(a),"aria-orientation":"ltr"===x||"rtl"===x?"horizontal":"vertical",onMouseDown:D,onTouchStart:D,onFocus:e=>{m?.(e,s)},onMouseEnter:e=>{g(e,s)},onKeyDown:e=>{if(!O&&k){let t=null;switch(e.which||e.keyCode){case M.LEFT:t="ltr"===x||"btt"===x?-1:1;break;case M.RIGHT:t="ltr"===x||"btt"===x?1:-1;break;case M.UP:t="ttb"!==x?1:-1;break;case M.DOWN:t="ttb"!==x?-1:1;break;case M.HOME:t="min";break;case M.END:t="max";break;case M.PAGE_UP:t=2;break;case M.PAGE_DOWN:t=-2;break;case M.BACKSPACE:case M.DELETE:c?.(s)}null!==t&&(e.preventDefault(),f(t,s))}},onKeyUp:e=>{switch(e.which||e.keyCode){case M.LEFT:case M.RIGHT:case M.UP:case M.DOWN:case M.HOME:case M.END:case M.PAGE_UP:case M.PAGE_DOWN:E?.()}}});let K=r.createElement("div",S({ref:t,className:h()(P,{[`${P}-${s+1}`]:null!==s&&A,[`${P}-dragging`]:i,[`${P}-dragging-delete`]:d},L.handle),style:{...H,...o,...F.handle}},w,v));return u&&(K=u(K,{index:s,prefixCls:n,value:a,dragging:i,draggingDelete:d})),K}));function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(this,arguments)}const k=r.forwardRef(((e,t)=>{const{prefixCls:n,style:a,onStartMove:s,onOffsetChange:l,values:c,handleRender:o,activeHandleRender:u,draggingIndex:i,draggingDelete:d,onFocus:f,...E}=e,m=r.useRef({}),[h,v]=r.useState(!1),[b,C]=r.useState(-1),M=e=>{C(e),v(!0)};r.useImperativeHandle(t,(()=>({focus:e=>{m.current[e]?.focus()},hideHelp:()=>{(0,g.flushSync)((()=>{v(!1)}))}})));const y={prefixCls:n,onStartMove:s,onOffsetChange:l,render:o,onFocus:(e,t)=>{M(t),f?.(e)},onMouseEnter:(e,t)=>{M(t)},...E};return r.createElement(r.Fragment,null,c.map(((e,t)=>{const n=i===t;return r.createElement(x,O({ref:e=>{e?m.current[t]=e:delete m.current[t]},dragging:n,draggingDelete:n&&d,style:p(a,t),key:t,value:e,valueIndex:t},y))})),u&&h&&r.createElement(x,O({key:"a11y"},y,{value:c[b],valueIndex:null,dragging:-1!==i,draggingDelete:d,render:u,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))})),A=e=>{const{prefixCls:t,style:n,children:a,value:s,onClick:l}=e,{min:c,max:o,direction:u,includedStart:i,includedEnd:d,included:f}=r.useContext(y),E=`${t}-text`,m=b(u,s,c,o);return r.createElement("span",{className:h()(E,{[`${E}-active`]:f&&i<=s&&s<=d}),style:{...m,...n},onMouseDown:e=>{e.stopPropagation()},onClick:()=>{l(s)}},a)},T=e=>{const{prefixCls:t,marks:n,onClick:a}=e,s=`${t}-mark`;return n.length?r.createElement("div",{className:s},n.map((({value:e,style:t,label:n})=>r.createElement(A,{key:e,prefixCls:s,style:t,value:e,onClick:a},n)))):null},I=e=>{const{prefixCls:t,value:n,style:a,activeStyle:s}=e,{min:l,max:c,direction:o,included:u,includedStart:i,includedEnd:d}=r.useContext(y),f=`${t}-dot`,E=u&&i<=n&&n<=d;let m={...b(o,n,l,c),..."function"==typeof a?a(n):a};return E&&(m={...m,..."function"==typeof s?s(n):s}),r.createElement("span",{className:h()(f,{[`${f}-active`]:E}),style:m})},R=e=>{const{prefixCls:t,marks:n,dots:a,style:s,activeStyle:l}=e,{min:c,max:o,step:u}=r.useContext(y),i=r.useMemo((()=>{const e=new Set;if(n.forEach((t=>{e.add(t.value)})),a&&null!==u){let t=c;for(;t<=o;)e.add(t),t+=u}return Array.from(e)}),[c,o,u,a,n]);return r.createElement("div",{className:`${t}-step`},i.map((e=>r.createElement(I,{prefixCls:t,key:e,value:e,style:s,activeStyle:l}))))},_=e=>{const{prefixCls:t,style:n,start:a,end:s,index:l,onStartMove:c,replaceCls:o}=e,{direction:u,min:i,max:d,disabled:f,range:E,classNames:m}=r.useContext(y),g=`${t}-track`,b=v(a,i,d),p=v(s,i,d),C=e=>{!f&&c&&c(e,-1)},M={};switch(u){case"rtl":M.right=100*b+"%",M.width=100*p-100*b+"%";break;case"btt":M.bottom=100*b+"%",M.height=100*p-100*b+"%";break;case"ttb":M.top=100*b+"%",M.height=100*p-100*b+"%";break;default:M.left=100*b+"%",M.width=100*p-100*b+"%"}const N=o||h()(g,{[`${g}-${l+1}`]:null!==l&&E,[`${t}-track-draggable`]:c},m.track);return r.createElement("div",{className:N,style:{...M,...n},onMouseDown:C,onTouchStart:C})},U=e=>{const{prefixCls:t,style:n,values:a,startPoint:s,onStartMove:l}=e,{included:c,range:o,min:u,styles:i,classNames:d}=r.useContext(y),f=r.useMemo((()=>{if(!o){if(0===a.length)return[];const e=s??u,t=a[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}const e=[];for(let t=0;t<a.length-1;t+=1)e.push({start:a[t],end:a[t+1]});return e}),[a,o,s,u]);if(!c)return null;const E=f?.length&&(d.tracks||i.tracks)?r.createElement(_,{index:null,prefixCls:t,start:f[0].start,end:f[f.length-1].end,replaceCls:h()(d.tracks,`${t}-tracks`),style:i.tracks}):null;return r.createElement(r.Fragment,null,E,f.map((({start:e,end:a},s)=>r.createElement(_,{index:s,prefixCls:t,style:{...p(n,s),...i.track},start:e,end:a,key:s,onStartMove:l}))))};function F(e){const t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}const L=r.forwardRef(((e,t)=>{const{prefixCls:n="rc-slider",className:a,style:c,classNames:o,styles:u,id:i,disabled:d=!1,keyboard:f=!0,autoFocus:m,onFocus:g,onBlur:v,min:b=0,max:p=100,step:C=1,value:M,defaultValue:S,range:x,count:O,onChange:A,onBeforeChange:I,onAfterChange:_,onChangeComplete:L,allowCross:P=!0,pushable:D=!1,reverse:H,vertical:w,included:K=!0,startPoint:$,trackStyle:G,handleStyle:W,railStyle:B,dotStyle:V,activeDotStyle:Y,marks:j,dots:X,handleRender:Q,activeHandleRender:Z,track:q,tabIndex:z=0,ariaLabelForHandle:J,ariaLabelledByForHandle:ee,ariaRequired:te,ariaValueTextFormatterForHandle:ne}=e,re=r.useRef(null),ae=r.useRef(null),se=r.useMemo((()=>w?H?"ttb":"btt":H?"rtl":"ltr"),[H,w]),[le,ce,oe,ue,ie]=function(e){return(0,r.useMemo)((()=>{if(!0===e||!e)return[!!e,!1,!1,0];const{editable:t,draggableTrack:n,minCount:r,maxCount:a}=e;return[!0,t,!t&&n,r||0,a]}),[e])}(x),de=r.useMemo((()=>isFinite(b)?b:0),[b]),fe=r.useMemo((()=>isFinite(p)?p:100),[p]),Ee=r.useMemo((()=>null!==C&&C<=0?1:C),[C]),me=r.useMemo((()=>"boolean"==typeof D?!!D&&Ee:D>=0&&D),[D,Ee]),he=r.useMemo((()=>Object.keys(j||{}).map((e=>{const t=j[e],n={value:Number(e)};return t&&"object"==typeof t&&!r.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((({label:e})=>e||"number"==typeof e)).sort(((e,t)=>e.value-t.value))),[j]),[ge,ve]=function(e,t,n,a,s,l){const c=r.useCallback((n=>Math.max(e,Math.min(t,n))),[e,t]),o=r.useCallback((r=>{if(null!==n){const a=e+Math.round((c(r)-e)/n)*n,s=e=>(String(e).split(".")[1]||"").length,l=Math.max(s(n),s(t),s(e)),o=Number(a.toFixed(l));return e<=o&&o<=t?o:null}return null}),[n,e,t,c]),u=r.useCallback((r=>{const s=c(r),l=a.map((e=>e.value));null!==n&&l.push(o(r)),l.push(e,t);let u=l[0],i=t-e;return l.forEach((e=>{const t=Math.abs(s-e);t<=i&&(u=e,i=t)})),u}),[e,t,a,n,c,o]),i=(r,s,l,c="unit")=>{if("number"==typeof s){let u;const d=r[l],f=d+s;let E=[];a.forEach((e=>{E.push(e.value)})),E.push(e,t),E.push(o(d));const m=s>0?1:-1;"unit"===c?E.push(o(d+m*n)):E.push(o(f)),E=E.filter((e=>null!==e)).filter((e=>s<0?e<=d:e>=d)),"unit"===c&&(E=E.filter((e=>e!==d)));const h="unit"===c?d:f;u=E[0];let g=Math.abs(u-h);if(E.forEach((e=>{const t=Math.abs(e-h);t<g&&(u=e,g=t)})),void 0===u)return s<0?e:t;if("dist"===c)return u;if(Math.abs(s)>1){const e=[...r];return e[l]=u,i(e,s-m,l,c)}return u}return"min"===s?e:"max"===s?t:void 0},d=(e,t,n,r="unit")=>{const a=e[n],s=i(e,t,n,r);return{value:s,changed:s!==a}},f=e=>null===l&&0===e||"number"==typeof l&&e<l;return[u,(e,t,n,r="unit")=>{const a=e.map(u),c=a[n],o=i(a,t,n,r);if(a[n]=o,!1===s){const e=l||0;n>0&&a[n-1]!==c&&(a[n]=Math.max(a[n],a[n-1]+e)),n<a.length-1&&a[n+1]!==c&&(a[n]=Math.min(a[n],a[n+1]-e))}else if("number"==typeof l||null===l){for(let e=n+1;e<a.length;e+=1){let t=!0;for(;f(a[e]-a[e-1])&&t;)({value:a[e],changed:t}=d(a,1,e))}for(let e=n;e>0;e-=1){let t=!0;for(;f(a[e]-a[e-1])&&t;)({value:a[e-1],changed:t}=d(a,-1,e-1))}for(let e=a.length-1;e>0;e-=1){let t=!0;for(;f(a[e]-a[e-1])&&t;)({value:a[e-1],changed:t}=d(a,-1,e-1))}for(let e=0;e<a.length-1;e+=1){let t=!0;for(;f(a[e+1]-a[e])&&t;)({value:a[e+1],changed:t}=d(a,1,e+1))}}return{value:a[n],values:a}}]}(de,fe,Ee,he,P,me),[be,pe]=function(e,t){const[n,a]=(0,r.useState)(e),l=void 0!==t?t:n;return s((e=>{e||a(t)}),[t]),[l,a]}(S,M),Ce=r.useMemo((()=>{const e=null==be?[]:Array.isArray(be)?be:[be],[t=de]=e;let n=null===be?[]:[t];if(le){if(n=[...e],O||void 0===be){const e=O>=0?O+1:2;for(n=n.slice(0,e);n.length<e;)n.push(n[n.length-1]??de)}n.sort(((e,t)=>e-t))}return n.forEach(((e,t)=>{n[t]=ge(e)})),n}),[be,le,de,O,ge]),Me=e=>le?e:e[0],ye=l((e=>{const t=[...e].sort(((e,t)=>e-t));A&&!function(e,t,n=!1){const r=new Set;return function e(t,a,s=1){const l=r.has(t);if(E(!l,"Warning: There may be circular references"),l)return!1;if(t===a)return!0;if(n&&s>1)return!1;r.add(t);const c=s+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(let n=0;n<t.length;n++)if(!e(t[n],a[n],c))return!1;return!0}if(t&&a&&"object"==typeof t&&"object"==typeof a){const n=Object.keys(t);return n.length===Object.keys(a).length&&n.every((n=>e(t[n],a[n],c)))}return!1}(e,t)}(t,Ce,!0)&&A(Me(t)),pe(t)})),Ne=l((e=>{e&&re.current.hideHelp();const t=Me(Ce);_?.(t),E(!_,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),L?.(t)})),[Se,xe,Oe,ke,Ae]=function(e,t,n,a,c,o,u,i,d,f,E){const[m,h]=r.useState(null),[g,v]=r.useState(-1),[b,p]=r.useState(!1),[C,M]=r.useState(n),[y,S]=r.useState(n),x=r.useRef(null),O=r.useRef(null),k=r.useRef(null),{onDragStart:A,onDragChange:T}=r.useContext(N);s((()=>{-1===g&&M(n)}),[n,g]),r.useEffect((()=>()=>{document.removeEventListener("mousemove",x.current),document.removeEventListener("mouseup",O.current),k.current&&(k.current.removeEventListener("touchmove",x.current),k.current.removeEventListener("touchend",O.current))}),[]);const I=(e,t,n)=>{void 0!==t&&h(t),M(e);let r=e;n&&(r=e.filter(((e,t)=>t!==g))),u(r),T&&T({rawValues:e,deleteIndex:n?g:-1,draggingIndex:g,draggingValue:t})},R=l(((e,t,n)=>{if(-1===e){const e=y[0],n=y[y.length-1],r=a-e,s=c-n;let l=t*(c-a);l=Math.max(l,r),l=Math.min(l,s);const u=o(e+l);l=u-e;const i=y.map((e=>e+l));I(i)}else{const r=(c-a)*t,s=[...C];s[e]=y[e];const l=d(s,r,e,"dist");I(l.values,l.value,n)}})),_=r.useMemo((()=>{const e=[...n].sort(((e,t)=>e-t)),t=[...C].sort(((e,t)=>e-t)),r={};t.forEach((e=>{r[e]=(r[e]||0)+1})),e.forEach((e=>{r[e]=(r[e]||0)-1}));const a=f?1:0;return Object.values(r).reduce(((e,t)=>e+Math.abs(t)),0)<=a?C:n}),[n,C,f]);return[g,m,b,_,(r,a,s)=>{r.stopPropagation();const l=s||n,c=l[a];v(a),h(c),S(l),M(l),p(!1);const{pageX:o,pageY:u}=F(r);let d=!1;A&&A({rawValues:l,draggingIndex:a,draggingValue:c});const m=n=>{n.preventDefault();const{pageX:r,pageY:s}=F(n),l=r-o,c=s-u,{width:i,height:m}=e.current.getBoundingClientRect();let h,g;switch(t){case"btt":h=-c/m,g=l;break;case"ttb":h=c/m,g=l;break;case"rtl":h=-l/i,g=c;break;default:h=l/i,g=c}d=!!f&&Math.abs(g)>130&&E<C.length,p(d),R(a,h,d)},g=e=>{e.preventDefault(),document.removeEventListener("mouseup",g),document.removeEventListener("mousemove",m),k.current&&(k.current.removeEventListener("touchmove",x.current),k.current.removeEventListener("touchend",O.current)),x.current=null,O.current=null,k.current=null,i(d),v(-1),p(!1)};document.addEventListener("mouseup",g),document.addEventListener("mousemove",m),r.currentTarget.addEventListener("touchend",g),r.currentTarget.addEventListener("touchmove",m),x.current=m,O.current=g,k.current=r.currentTarget}]}(ae,se,Ce,de,fe,ge,ye,Ne,ve,ce,ue),Te=(e,t)=>{if(!d){const n=[...Ce];let r=0,a=0,s=fe-de;Ce.forEach(((t,n)=>{const l=Math.abs(e-t);l<=s&&(s=l,r=n),t<e&&(a=n)}));let l=r;ce&&0!==s&&(!ie||Ce.length<ie)?(n.splice(a+1,0,e),l=a+1):n[r]=e,le&&!Ce.length&&void 0===O&&n.push(e);const c=Me(n);I?.(c),ye(n),t?(document.activeElement?.blur?.(),re.current.focus(l),Ae(t,l,n)):(_?.(c),E(!_,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),L?.(c))}},[Ie,Re]=r.useState(null);r.useEffect((()=>{if(null!==Ie){const e=Ce.indexOf(Ie);e>=0&&re.current.focus(e)}Re(null)}),[Ie]);const _e=r.useMemo((()=>(!oe||null!==Ee)&&oe),[oe,Ee]),Ue=l(((e,t)=>{Ae(e,t),I?.(Me(Ce))})),Fe=-1!==Se;r.useEffect((()=>{if(!Fe){const e=Ce.lastIndexOf(xe);re.current.focus(e)}}),[Fe]);const Le=r.useMemo((()=>[...ke].sort(((e,t)=>e-t))),[ke]),[Pe,De]=r.useMemo((()=>le?[Le[0],Le[Le.length-1]]:[de,Le[0]]),[Le,le,de]);r.useImperativeHandle(t,(()=>({focus:()=>{re.current.focus(0)},blur:()=>{const{activeElement:e}=document;ae.current?.contains(e)&&e?.blur()}}))),r.useEffect((()=>{m&&re.current.focus(0)}),[]);const He=r.useMemo((()=>({min:de,max:fe,direction:se,disabled:d,keyboard:f,step:Ee,included:K,includedStart:Pe,includedEnd:De,range:le,tabIndex:z,ariaLabelForHandle:J,ariaLabelledByForHandle:ee,ariaRequired:te,ariaValueTextFormatterForHandle:ne,styles:u||{},classNames:o||{}})),[de,fe,se,d,f,Ee,K,Pe,De,le,z,J,ee,te,ne,u,o]);return r.createElement(y.Provider,{value:He},r.createElement("div",{ref:ae,className:h()(n,a,{[`${n}-disabled`]:d,[`${n}-vertical`]:w,[`${n}-horizontal`]:!w,[`${n}-with-marks`]:he.length}),style:c,onMouseDown:e=>{e.preventDefault();const{width:t,height:n,left:r,top:a,bottom:s,right:l}=ae.current.getBoundingClientRect(),{clientX:c,clientY:o}=e;let u;switch(se){case"btt":u=(s-o)/n;break;case"ttb":u=(o-a)/n;break;case"rtl":u=(l-c)/t;break;default:u=(c-r)/t}Te(ge(de+u*(fe-de)),e)},id:i},r.createElement("div",{className:h()(`${n}-rail`,o?.rail),style:{...B,...u?.rail}}),!1!==q&&r.createElement(U,{prefixCls:n,style:G,values:Ce,startPoint:$,onStartMove:_e?Ue:void 0}),r.createElement(R,{prefixCls:n,marks:he,dots:X,style:V,activeStyle:Y}),r.createElement(k,{ref:re,prefixCls:n,style:W,values:ke,draggingIndex:Se,draggingDelete:Oe,onStartMove:Ue,onOffsetChange:(e,t)=>{if(!d){const n=ve(Ce,e,t);I?.(Me(Ce)),ye(n.values),Re(n.value)}},onFocus:g,onBlur:v,handleRender:Q,activeHandleRender:Z,onChangeComplete:Ne,onDelete:ce?e=>{if(d||!ce||Ce.length<=ue)return;const t=[...Ce];t.splice(e,1),I?.(Me(t)),ye(t);const n=Math.max(0,e-1);re.current.hideHelp(),re.current.focus(n)}:void 0}),r.createElement(T,{prefixCls:n,marks:he,onClick:Te})))}))}}]);
|
|
1
|
+
"use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[94],{3094:(e,t,n)=>{n.d(t,{Z:()=>L});var r=n(7294);const a="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,s=(e,t)=>{const n=r.useRef(!0);a((()=>e(n.current)),t),a((()=>(n.current=!1,()=>{n.current=!0})),[])},l=function(e){const t=r.useRef();return t.current=e,r.useCallback(((...e)=>t.current?.(...e)),[])};let c={};const o=[];function u(e,t){}function i(e,t){}function d(e,t,n){t||c[n]||(e(!1,n),c[n]=!0)}function f(e,t){d(u,e,t)}f.preMessage=e=>{o.push(e)},f.resetWarned=function(){c={}},f.noteOnce=function(e,t){d(i,e,t)};const E=f;var m=n(4184),h=n.n(m),g=n(3935);function v(e,t,n){return(e-t)/(n-t)}function b(e,t,n,r){const a=v(t,n,r),s={};switch(e){case"rtl":s.right=100*a+"%",s.transform="translateX(50%)";break;case"btt":s.bottom=100*a+"%",s.transform="translateY(50%)";break;case"ttb":s.top=100*a+"%",s.transform="translateY(-50%)";break;default:s.left=100*a+"%",s.transform="translateX(-50%)"}return s}function p(e,t){return Array.isArray(e)?e[t]:e}const C={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=C.F1&&t<=C.F12)return!1;switch(t){case C.ALT:case C.CAPS_LOCK:case C.CONTEXT_MENU:case C.CTRL:case C.DOWN:case C.END:case C.ESC:case C.HOME:case C.INSERT:case C.LEFT:case C.MAC_FF_META:case C.META:case C.NUMLOCK:case C.NUM_CENTER:case C.PAGE_DOWN:case C.PAGE_UP:case C.PAUSE:case C.PRINT_SCREEN:case C.RIGHT:case C.SHIFT:case C.UP:case C.WIN_KEY:case C.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=C.ZERO&&e<=C.NINE)return!0;if(e>=C.NUM_ZERO&&e<=C.NUM_MULTIPLY)return!0;if(e>=C.A&&e<=C.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case C.SPACE:case C.QUESTION_MARK:case C.NUM_PLUS:case C.NUM_MINUS:case C.NUM_PERIOD:case C.NUM_DIVISION:case C.SEMICOLON:case C.DASH:case C.EQUALS:case C.COMMA:case C.PERIOD:case C.SLASH:case C.APOSTROPHE:case C.SINGLE_QUOTE:case C.OPEN_SQUARE_BRACKET:case C.BACKSLASH:case C.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},M=C,y=r.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),N=r.createContext({});function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}const x=r.forwardRef(((e,t)=>{const{prefixCls:n,value:a,valueIndex:s,onStartMove:l,onDelete:c,style:o,render:u,dragging:i,draggingDelete:d,onOffsetChange:f,onChangeComplete:E,onFocus:m,onMouseEnter:g,...v}=e,{min:C,max:N,direction:x,disabled:O,keyboard:k,range:A,tabIndex:T,ariaLabelForHandle:I,ariaLabelledByForHandle:R,ariaRequired:_,ariaValueTextFormatterForHandle:U,styles:F,classNames:L}=r.useContext(y),P=`${n}-handle`,D=e=>{O||l(e,s)},H=b(x,a,C,N);let w={};null!==s&&(w={tabIndex:O?null:p(T,s),role:"slider","aria-valuemin":C,"aria-valuemax":N,"aria-valuenow":a,"aria-disabled":O,"aria-label":p(I,s),"aria-labelledby":p(R,s),"aria-required":p(_,s),"aria-valuetext":p(U,s)?.(a),"aria-orientation":"ltr"===x||"rtl"===x?"horizontal":"vertical",onMouseDown:D,onTouchStart:D,onFocus:e=>{m?.(e,s)},onMouseEnter:e=>{g(e,s)},onKeyDown:e=>{if(!O&&k){let t=null;switch(e.which||e.keyCode){case M.LEFT:t="ltr"===x||"btt"===x?-1:1;break;case M.RIGHT:t="ltr"===x||"btt"===x?1:-1;break;case M.UP:t="ttb"!==x?1:-1;break;case M.DOWN:t="ttb"!==x?-1:1;break;case M.HOME:t="min";break;case M.END:t="max";break;case M.PAGE_UP:t=2;break;case M.PAGE_DOWN:t=-2;break;case M.BACKSPACE:case M.DELETE:c?.(s)}null!==t&&(e.preventDefault(),f(t,s))}},onKeyUp:e=>{switch(e.which||e.keyCode){case M.LEFT:case M.RIGHT:case M.UP:case M.DOWN:case M.HOME:case M.END:case M.PAGE_UP:case M.PAGE_DOWN:E?.()}}});let K=r.createElement("div",S({ref:t,className:h()(P,{[`${P}-${s+1}`]:null!==s&&A,[`${P}-dragging`]:i,[`${P}-dragging-delete`]:d},L.handle),style:{...H,...o,...F.handle}},w,v));return u&&(K=u(K,{index:s,prefixCls:n,value:a,dragging:i,draggingDelete:d})),K}));function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(this,arguments)}const k=r.forwardRef(((e,t)=>{const{prefixCls:n,style:a,onStartMove:s,onOffsetChange:l,values:c,handleRender:o,activeHandleRender:u,draggingIndex:i,draggingDelete:d,onFocus:f,...E}=e,m=r.useRef({}),[h,v]=r.useState(!1),[b,C]=r.useState(-1),M=e=>{C(e),v(!0)};r.useImperativeHandle(t,(()=>({focus:e=>{m.current[e]?.focus()},hideHelp:()=>{(0,g.flushSync)((()=>{v(!1)}))}})));const y={prefixCls:n,onStartMove:s,onOffsetChange:l,render:o,onFocus:(e,t)=>{M(t),f?.(e)},onMouseEnter:(e,t)=>{M(t)},...E};return r.createElement(r.Fragment,null,c.map(((e,t)=>{const n=i===t;return r.createElement(x,O({ref:e=>{e?m.current[t]=e:delete m.current[t]},dragging:n,draggingDelete:n&&d,style:p(a,t),key:t,value:e,valueIndex:t},y))})),u&&h&&r.createElement(x,O({key:"a11y"},y,{value:c[b],valueIndex:null,dragging:-1!==i,draggingDelete:d,render:u,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))})),A=e=>{const{prefixCls:t,style:n,children:a,value:s,onClick:l}=e,{min:c,max:o,direction:u,includedStart:i,includedEnd:d,included:f}=r.useContext(y),E=`${t}-text`,m=b(u,s,c,o);return r.createElement("span",{className:h()(E,{[`${E}-active`]:f&&i<=s&&s<=d}),style:{...m,...n},onMouseDown:e=>{e.stopPropagation()},onClick:()=>{l(s)}},a)},T=e=>{const{prefixCls:t,marks:n,onClick:a}=e,s=`${t}-mark`;return n.length?r.createElement("div",{className:s},n.map((({value:e,style:t,label:n})=>r.createElement(A,{key:e,prefixCls:s,style:t,value:e,onClick:a},n)))):null},I=e=>{const{prefixCls:t,value:n,style:a,activeStyle:s}=e,{min:l,max:c,direction:o,included:u,includedStart:i,includedEnd:d}=r.useContext(y),f=`${t}-dot`,E=u&&i<=n&&n<=d;let m={...b(o,n,l,c),..."function"==typeof a?a(n):a};return E&&(m={...m,..."function"==typeof s?s(n):s}),r.createElement("span",{className:h()(f,{[`${f}-active`]:E}),style:m})},R=e=>{const{prefixCls:t,marks:n,dots:a,style:s,activeStyle:l}=e,{min:c,max:o,step:u}=r.useContext(y),i=r.useMemo((()=>{const e=new Set;if(n.forEach((t=>{e.add(t.value)})),a&&null!==u){let t=c;for(;t<=o;)e.add(t),t+=u}return Array.from(e)}),[c,o,u,a,n]);return r.createElement("div",{className:`${t}-step`},i.map((e=>r.createElement(I,{prefixCls:t,key:e,value:e,style:s,activeStyle:l}))))},_=e=>{const{prefixCls:t,style:n,start:a,end:s,index:l,onStartMove:c,replaceCls:o}=e,{direction:u,min:i,max:d,disabled:f,range:E,classNames:m}=r.useContext(y),g=`${t}-track`,b=v(a,i,d),p=v(s,i,d),C=e=>{!f&&c&&c(e,-1)},M={};switch(u){case"rtl":M.right=100*b+"%",M.width=100*p-100*b+"%";break;case"btt":M.bottom=100*b+"%",M.height=100*p-100*b+"%";break;case"ttb":M.top=100*b+"%",M.height=100*p-100*b+"%";break;default:M.left=100*b+"%",M.width=100*p-100*b+"%"}const N=o||h()(g,{[`${g}-${l+1}`]:null!==l&&E,[`${t}-track-draggable`]:c},m.track);return r.createElement("div",{className:N,style:{...M,...n},onMouseDown:C,onTouchStart:C})},U=e=>{const{prefixCls:t,style:n,values:a,startPoint:s,onStartMove:l}=e,{included:c,range:o,min:u,styles:i,classNames:d}=r.useContext(y),f=r.useMemo((()=>{if(!o){if(0===a.length)return[];const e=s??u,t=a[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}const e=[];for(let t=0;t<a.length-1;t+=1)e.push({start:a[t],end:a[t+1]});return e}),[a,o,s,u]);if(!c)return null;const E=f?.length&&(d.tracks||i.tracks)?r.createElement(_,{index:null,prefixCls:t,start:f[0].start,end:f[f.length-1].end,replaceCls:h()(d.tracks,`${t}-tracks`),style:i.tracks}):null;return r.createElement(r.Fragment,null,E,f.map((({start:e,end:a},s)=>r.createElement(_,{index:s,prefixCls:t,style:{...p(n,s),...i.track},start:e,end:a,key:s,onStartMove:l}))))};function F(e){const t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}const L=r.forwardRef(((e,t)=>{const{prefixCls:n="rc-slider",className:a,style:c,classNames:o,styles:u,id:i,disabled:d=!1,keyboard:f=!0,autoFocus:m,onFocus:g,onBlur:v,min:b=0,max:p=100,step:C=1,value:M,defaultValue:S,range:x,count:O,onChange:A,onBeforeChange:I,onAfterChange:_,onChangeComplete:L,allowCross:P=!0,pushable:D=!1,reverse:H,vertical:w,included:K=!0,startPoint:$,trackStyle:G,handleStyle:W,railStyle:B,dotStyle:V,activeDotStyle:Y,marks:j,dots:X,handleRender:Q,activeHandleRender:Z,track:q,tabIndex:z=0,ariaLabelForHandle:J,ariaLabelledByForHandle:ee,ariaRequired:te,ariaValueTextFormatterForHandle:ne}=e,re=r.useRef(null),ae=r.useRef(null),se=r.useMemo((()=>w?H?"ttb":"btt":H?"rtl":"ltr"),[H,w]),[le,ce,oe,ue,ie]=function(e){return(0,r.useMemo)((()=>{if(!0===e||!e)return[!!e,!1,!1,0];const{editable:t,draggableTrack:n,minCount:r,maxCount:a}=e;return[!0,t,!t&&n,r||0,a]}),[e])}(x),de=r.useMemo((()=>isFinite(b)?b:0),[b]),fe=r.useMemo((()=>isFinite(p)?p:100),[p]),Ee=r.useMemo((()=>null!==C&&C<=0?1:C),[C]),me=r.useMemo((()=>"boolean"==typeof D?!!D&&Ee:D>=0&&D),[D,Ee]),he=r.useMemo((()=>Object.keys(j||{}).map((e=>{const t=j[e],n={value:Number(e)};return t&&"object"==typeof t&&!r.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((({label:e})=>e||"number"==typeof e)).sort(((e,t)=>e.value-t.value))),[j]),[ge,ve]=function(e,t,n,a,s,l){const c=r.useCallback((n=>Math.max(e,Math.min(t,n))),[e,t]),o=r.useCallback((r=>{if(null!==n){const a=e+Math.round((c(r)-e)/n)*n,s=e=>(String(e).split(".")[1]||"").length,l=Math.max(s(n),s(t),s(e)),o=Number(a.toFixed(l));return e<=o&&o<=t?o:null}return null}),[n,e,t,c]),u=r.useCallback((r=>{const s=c(r),l=a.map((e=>e.value));null!==n&&l.push(o(r)),l.push(e,t);let u=l[0],i=t-e;return l.forEach((e=>{const t=Math.abs(s-e);t<=i&&(u=e,i=t)})),u}),[e,t,a,n,c,o]),i=(r,s,l,c="unit")=>{if("number"==typeof s){let u;const d=r[l],f=d+s;let E=[];a.forEach((e=>{E.push(e.value)})),E.push(e,t),E.push(o(d));const m=s>0?1:-1;"unit"===c?E.push(o(d+m*n)):E.push(o(f)),E=E.filter((e=>null!==e)).filter((e=>s<0?e<=d:e>=d)),"unit"===c&&(E=E.filter((e=>e!==d)));const h="unit"===c?d:f;u=E[0];let g=Math.abs(u-h);if(E.forEach((e=>{const t=Math.abs(e-h);t<g&&(u=e,g=t)})),void 0===u)return s<0?e:t;if("dist"===c)return u;if(Math.abs(s)>1){const e=[...r];return e[l]=u,i(e,s-m,l,c)}return u}return"min"===s?e:"max"===s?t:void 0},d=(e,t,n,r="unit")=>{const a=e[n],s=i(e,t,n,r);return{value:s,changed:s!==a}},f=e=>null===l&&0===e||"number"==typeof l&&e<l;return[u,(e,t,n,r="unit")=>{const a=e.map(u),c=a[n],o=i(a,t,n,r);if(a[n]=o,!1===s){const e=l||0;n>0&&a[n-1]!==c&&(a[n]=Math.max(a[n],a[n-1]+e)),n<a.length-1&&a[n+1]!==c&&(a[n]=Math.min(a[n],a[n+1]-e))}else if("number"==typeof l||null===l){for(let e=n+1;e<a.length;e+=1){let t=!0;for(;f(a[e]-a[e-1])&&t;)({value:a[e],changed:t}=d(a,1,e))}for(let e=n;e>0;e-=1){let t=!0;for(;f(a[e]-a[e-1])&&t;)({value:a[e-1],changed:t}=d(a,-1,e-1))}for(let e=a.length-1;e>0;e-=1){let t=!0;for(;f(a[e]-a[e-1])&&t;)({value:a[e-1],changed:t}=d(a,-1,e-1))}for(let e=0;e<a.length-1;e+=1){let t=!0;for(;f(a[e+1]-a[e])&&t;)({value:a[e+1],changed:t}=d(a,1,e+1))}}return{value:a[n],values:a}}]}(de,fe,Ee,he,P,me),[be,pe]=function(e,t){const[n,a]=(0,r.useState)(e),l=void 0!==t?t:n;return s((e=>{e||a(t)}),[t]),[l,a]}(S,M),Ce=r.useMemo((()=>{const e=null==be?[]:Array.isArray(be)?be:[be],[t=de]=e;let n=null===be?[]:[t];if(le){if(n=[...e],O||void 0===be){const e=O>=0?O+1:2;for(n=n.slice(0,e);n.length<e;)n.push(n[n.length-1]??de)}n.sort(((e,t)=>e-t))}return n.forEach(((e,t)=>{n[t]=ge(e)})),n}),[be,le,de,O,ge]),Me=e=>le?e:e[0],ye=l((e=>{const t=[...e].sort(((e,t)=>e-t));A&&!function(e,t,n=!1){const r=new Set;return function e(t,a,s=1){const l=r.has(t);if(E(!l,"Warning: There may be circular references"),l)return!1;if(t===a)return!0;if(n&&s>1)return!1;r.add(t);const c=s+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(let n=0;n<t.length;n++)if(!e(t[n],a[n],c))return!1;return!0}if(t&&a&&"object"==typeof t&&"object"==typeof a){const n=Object.keys(t);return n.length===Object.keys(a).length&&n.every((n=>e(t[n],a[n],c)))}return!1}(e,t)}(t,Ce,!0)&&A(Me(t)),pe(t)})),Ne=l((e=>{e&&re.current.hideHelp();const t=Me(Ce);_?.(t),E(!_,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),L?.(t)})),[Se,xe,Oe,ke,Ae]=function(e,t,n,a,c,o,u,i,d,f,E){const[m,h]=r.useState(null),[g,v]=r.useState(-1),[b,p]=r.useState(!1),[C,M]=r.useState(n),[y,S]=r.useState(n),x=r.useRef(null),O=r.useRef(null),k=r.useRef(null),{onDragStart:A,onDragChange:T}=r.useContext(N);s((()=>{-1===g&&M(n)}),[n,g]),r.useEffect((()=>()=>{document.removeEventListener("mousemove",x.current),document.removeEventListener("mouseup",O.current),k.current&&(k.current.removeEventListener("touchmove",x.current),k.current.removeEventListener("touchend",O.current))}),[]);const I=(e,t,n)=>{void 0!==t&&h(t),M(e);let r=e;n&&(r=e.filter(((e,t)=>t!==g))),u(r),T&&T({rawValues:e,deleteIndex:n?g:-1,draggingIndex:g,draggingValue:t})},R=l(((e,t,n)=>{if(-1===e){const e=y[0],n=y[y.length-1],r=a-e,s=c-n;let l=t*(c-a);l=Math.max(l,r),l=Math.min(l,s);const u=o(e+l);l=u-e;const i=y.map((e=>e+l));I(i)}else{const r=(c-a)*t,s=[...C];s[e]=y[e];const l=d(s,r,e,"dist");I(l.values,l.value,n)}})),_=r.useMemo((()=>{const e=[...n].sort(((e,t)=>e-t)),t=[...C].sort(((e,t)=>e-t)),r={};t.forEach((e=>{r[e]=(r[e]||0)+1})),e.forEach((e=>{r[e]=(r[e]||0)-1}));const a=f?1:0;return Object.values(r).reduce(((e,t)=>e+Math.abs(t)),0)<=a?C:n}),[n,C,f]);return[g,m,b,_,(r,a,s)=>{r.stopPropagation();const l=s||n,c=l[a];v(a),h(c),S(l),M(l),p(!1);const{pageX:o,pageY:u}=F(r);let d=!1;A&&A({rawValues:l,draggingIndex:a,draggingValue:c});const m=n=>{n.preventDefault();const{pageX:r,pageY:s}=F(n),l=r-o,c=s-u,{width:i,height:m}=e.current.getBoundingClientRect();let h,g;switch(t){case"btt":h=-c/m,g=l;break;case"ttb":h=c/m,g=l;break;case"rtl":h=-l/i,g=c;break;default:h=l/i,g=c}d=!!f&&Math.abs(g)>130&&E<C.length,p(d),R(a,h,d)},g=e=>{e.preventDefault(),document.removeEventListener("mouseup",g),document.removeEventListener("mousemove",m),k.current&&(k.current.removeEventListener("touchmove",x.current),k.current.removeEventListener("touchend",O.current)),x.current=null,O.current=null,k.current=null,i(d),v(-1),p(!1)};document.addEventListener("mouseup",g),document.addEventListener("mousemove",m),r.currentTarget.addEventListener("touchend",g),r.currentTarget.addEventListener("touchmove",m),x.current=m,O.current=g,k.current=r.currentTarget}]}(ae,se,Ce,de,fe,ge,ye,Ne,ve,ce,ue),Te=(e,t)=>{if(!d){const n=[...Ce];let r=0,a=0,s=fe-de;Ce.forEach(((t,n)=>{const l=Math.abs(e-t);l<=s&&(s=l,r=n),t<e&&(a=n)}));let l=r;ce&&0!==s&&(!ie||Ce.length<ie)?(n.splice(a+1,0,e),l=a+1):n[r]=e,le&&!Ce.length&&void 0===O&&n.push(e);const c=Me(n);I?.(c),ye(n),t?(document.activeElement?.blur?.(),re.current.focus(l),Ae(t,l,n)):(_?.(c),E(!_,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),L?.(c))}},[Ie,Re]=r.useState(null);r.useEffect((()=>{if(null!==Ie){const e=Ce.indexOf(Ie);e>=0&&re.current.focus(e)}Re(null)}),[Ie]);const _e=r.useMemo((()=>(!oe||null!==Ee)&&oe),[oe,Ee]),Ue=l(((e,t)=>{Ae(e,t),I?.(Me(Ce))})),Fe=-1!==Se;r.useEffect((()=>{if(!Fe){const e=Ce.lastIndexOf(xe);re.current.focus(e)}}),[Fe]);const Le=r.useMemo((()=>[...ke].sort(((e,t)=>e-t))),[ke]),[Pe,De]=r.useMemo((()=>le?[Le[0],Le[Le.length-1]]:[de,Le[0]]),[Le,le,de]);r.useImperativeHandle(t,(()=>({focus:()=>{re.current.focus(0)},blur:()=>{const{activeElement:e}=document;ae.current?.contains(e)&&e?.blur()}}))),r.useEffect((()=>{m&&re.current.focus(0)}),[]);const He=r.useMemo((()=>({min:de,max:fe,direction:se,disabled:d,keyboard:f,step:Ee,included:K,includedStart:Pe,includedEnd:De,range:le,tabIndex:z,ariaLabelForHandle:J,ariaLabelledByForHandle:ee,ariaRequired:te,ariaValueTextFormatterForHandle:ne,styles:u||{},classNames:o||{}})),[de,fe,se,d,f,Ee,K,Pe,De,le,z,J,ee,te,ne,u,o]);return r.createElement(y.Provider,{value:He},r.createElement("div",{ref:ae,className:h()(n,a,{[`${n}-disabled`]:d,[`${n}-vertical`]:w,[`${n}-horizontal`]:!w,[`${n}-with-marks`]:he.length}),style:c,onMouseDown:e=>{e.preventDefault();const{width:t,height:n,left:r,top:a,bottom:s,right:l}=ae.current.getBoundingClientRect(),{clientX:c,clientY:o}=e;let u;switch(se){case"btt":u=(s-o)/n;break;case"ttb":u=(o-a)/n;break;case"rtl":u=(l-c)/t;break;default:u=(c-r)/t}Te(ge(de+u*(fe-de)),e)},id:i},r.createElement("div",{className:h()(`${n}-rail`,o?.rail),style:{...B,...u?.rail}}),!1!==q&&r.createElement(U,{prefixCls:n,style:G,values:Ce,startPoint:$,onStartMove:_e?Ue:void 0}),r.createElement(R,{prefixCls:n,marks:he,dots:X,style:V,activeStyle:Y}),r.createElement(k,{ref:re,prefixCls:n,style:W,values:ke,draggingIndex:Se,draggingDelete:Oe,onStartMove:Ue,onOffsetChange:(e,t)=>{if(!d){const n=ve(Ce,e,t);I?.(Me(Ce)),ye(n.values),Re(n.value)}},onFocus:g,onBlur:v,handleRender:Q,activeHandleRender:Z,onChangeComplete:Ne,onDelete:ce?e=>{if(d||!ce||Ce.length<=ue)return;const t=[...Ce];t.splice(e,1),I?.(Me(t)),ye(t);const n=Math.max(0,e-1);re.current.hideHelp(),re.current.focus(n)}:void 0}),r.createElement(T,{prefixCls:n,marks:he,onClick:Te})))}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[102],{1587:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(5944),o=r(5430),i=r(8776),a=r(5467),l=r(2988),u=r(4665),c=r(7449),s=r(9479),f=function(){return f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};function d(e){var t=e.id,r=e.text,d=e.responsiveStyles,p=e.absolute,h=void 0===p||p,v=e.containerRef,g=e.repeat,y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,o.useState)(!1),2),b=y[0],m=y[1],w=(0,o.useRef)(null);if(!(r=(0,u.xf)(r,g)))return null;var x=(0,s.tq)();return(0,n.BX)(n.HY,{children:[(0,n.tZ)("div",f({ref:w,onMouseEnter:x?void 0:function(){return m(!0)},onMouseLeave:x?void 0:function(){return m(!1)},onFocus:function(){return m(!0)},onBlur:function(){return m(!1)},onClick:function(){return m((function(e){return!e}))},css:h?{position:"absolute",insetInlineEnd:"10px",top:0,bottom:0,zIndex:l.rM,margin:"auto",cursor:"pointer",height:"100%",display:"flex"}:{position:"relative",marginInlineStart:"8px",display:"flex",alignItems:"center"}},{children:(0,n.tZ)(a.by,{cssStyles:d.getTarget("tooltipIcon")})})),(0,n.tZ)(c.Z,f({show:b,targetRef:w,containerRef:v,placement:"left",onHide:function(){return m(!1)},offset:8},{children:(0,n.tZ)(i.u,f({id:"tooltip-".concat(t),css:{zIndex:l.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}}},{children:r}))}))]})}},7449:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(5944),o=r(5430),i=r(3935),a=r(9479),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};const u=function(e){var t=e.show,r=e.targetRef,u=e.children,f=e.onHide,d=e.placement,p=void 0===d?"bottom-start":d,h=e.offset,v=void 0===h?0:h,g=e.zIndex,y=void 0===g?1e3:g,b=e.containerRef,m=(0,o.useRef)(null),w=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,o.useState)(null),2),x=w[0],S=w[1],E=(0,o.useCallback)((function(){return(null==b?void 0:b.current)||(0,a.me)().body}),[b]),k=(0,o.useCallback)((function(){var e;if(t&&r.current&&m.current){var n=(0,a.Kv)(),o=E();if(o){var i=r.current.getBoundingClientRect(),l=m.current.getBoundingClientRect(),u=o.getBoundingClientRect(),f=s(p,i,l,v),d=f.top,h=f.left,g=d+l.height,y=h+l.width,b=d>=0&&g<=n.innerHeight,w=h>=0&&y<=n.innerWidth;if(!b||!w){var x=c(p,!b,!w);x!==p&&(d=(e=s(x,i,l,v)).top,h=e.left)}var k=o===(0,a.me)().body,O=k?d+n.scrollY:d-u.top,Z=k?h+n.scrollX:h-u.left;S((function(e){return e&&e.top===O&&e.left===Z?e:{top:O,left:Z}}))}}}),[t,p,v,E,r]),O=(0,o.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){k(),e=!1})))}}),[k])();if((0,o.useLayoutEffect)((function(){t&&k()}),[t,k]),(0,o.useEffect)((function(){if(t){var e=(0,a.Kv)(),n=E();if(n){e.addEventListener("resize",O),e.addEventListener("scroll",O,!0),n!==(0,a.me)().body&&n.addEventListener("scroll",O);var o=new ResizeObserver((function(){return O()}));return r.current&&o.observe(r.current),n!==(0,a.me)().body&&o.observe(n),function(){e.removeEventListener("resize",O),e.removeEventListener("scroll",O,!0),n!==(0,a.me)().body&&n.removeEventListener("scroll",O),o.disconnect()}}}}),[t,O,E,r]),(0,o.useEffect)((function(){if(t){var e=function(e){"Escape"===e.key&&(S(null),null==f||f())},n=function(e){var t=e.target;m.current&&!m.current.contains(t)&&r.current&&!r.current.contains(t)&&(S(null),null==f||f())},o=(0,a.me)();return o.addEventListener("mousedown",n),o.addEventListener("keydown",e),function(){o.removeEventListener("mousedown",n),o.removeEventListener("keydown",e)}}}),[t,f,r]),!t)return null;var Z=E();return Z?(0,i.createPortal)((0,n.tZ)("div",l({ref:m,style:l(l({position:"absolute"},x||{top:-9999,left:-9999}),{zIndex:y})},{children:u})),Z):(0,n.tZ)(n.HY,{children:u})};var c=function(e,t,r){if(t){if(e.includes("top"))return e.replace("top","bottom");if(e.includes("bottom"))return e.replace("bottom","top")}if(r){if(e.includes("left"))return e.replace("left","right");if(e.includes("right"))return e.replace("right","left")}return e},s=function(e,t,r,n){switch(void 0===n&&(n=0),e){case"top":return{top:t.top-r.height-n,left:t.left+(t.width-r.width)/2};case"top-start":return{top:t.top-r.height-n,left:t.left};case"top-end":return{top:t.top-r.height-n,left:t.right-r.width};case"left":return{top:t.top+(t.height-r.height)/2,left:t.left-r.width-n};case"left-start":return{top:t.top,left:t.left-r.width-n};case"left-end":return{top:t.bottom-r.height,left:t.left-r.width-n};case"bottom":default:return{top:t.bottom+n,left:t.left+(t.width-r.width)/2};case"bottom-start":return{top:t.bottom+n,left:t.left};case"bottom-end":return{top:t.bottom+n,left:t.right-r.width};case"right":return{top:t.top+(t.height-r.height)/2,left:t.right+n};case"right-start":return{top:t.top,left:t.right+n};case"right-end":return{top:t.bottom-r.height,left:t.right+n}}}},9069:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(5944),o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function i(e){var t,r,i,a=e.value,l=e.element,u=e.responsiveStyles,c=e.type,s=void 0===c?"input":c,f=e.inputFocused,d=void 0!==f&&f,p=e.repeatIndex,h=void 0===p?null:p,v=l.properties,g=null!==(i=(null!==(r=v.repeat_placeholder)&&void 0!==r?r:[])[null!=h?h:0])&&void 0!==i?i:v.placeholder||"",y=o(o({},u.getTarget("placeholderFocus")),u.getTarget("placeholderActive"));return(0,n.tZ)("span",o({css:o(o(o(o({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},u.getTarget("placeholder")),a?u.getTarget("placeholderFocus"):{}),d?y:{}),(t={},t["".concat(s,":focus ~ &")]=y,t))},{children:g}))}},8776:(e,t,r)=>{r.d(t,{u:()=>a});var n=r(5944),o=r(2988),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=function(e){var t=e.children,r=e.css,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","css"]);return(0,n.tZ)("div",i({css:i({zIndex:o.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}},r)},a,{children:(0,n.tZ)("div",i({className:"tooltip-inner"},{children:t}))}))}},5024:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var n=r(5944),o=r(5430),i=r(9069),a=r(1587),l=r(1211),u=r(3703),c=r(1296),s=r.n(c),f=r(6867),d=r(7449),p=r(1275),h=r(9479),v=r(5398),g=function(){return g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)},y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};const b=(0,o.memo)((function(e){var t=this,r=e.element,c=e.responsiveStyles,b=e.fieldLabel,m=e.elementProps,w=void 0===m?{}:m,x=e.disabled,S=void 0!==x&&x,E=e.autoComplete,k=e.editMode,O=e.repeatIndex,Z=void 0===O?null:O,R=e.onSelect,L=void 0===R?function(){}:R,C=e.onChange,T=void 0===C?function(){}:C,z=e.required,I=e.onBlur,j=void 0===I?function(){}:I,B=e.onEnter,P=void 0===B?function(){}:B,F=e.setRef,_=void 0===F?function(){}:F,M=e.value,H=void 0===M?"":M,X=e.inlineError,q=e.children,A=r.servar,K=function(e,t){var r,n=t.metadata,i=n.address_autocomplete,a=null!==(r=n.autocomplete_country)&&void 0!==r?r:"",l=function(){var e=(0,o.useRef)(!0);return(0,o.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}(),c=y((0,o.useState)(e),2),f=c[0],d=c[1],p=y((0,o.useState)([]),2),h=p[0],v=p[1],g=(0,o.useCallback)(s()((function(e){(new u.ZP).addressSearchResults(e,a,"gmap_city"===t.type).then((function(t){l.current&&(v(t),d(e))}))}),500),[v,d]);return(0,o.useEffect)((function(){var t=e.trim();i&&t!==f&&(t.length>3?g(t):(h.length&&v([]),d(t)))}),[e]),h}(H,A),W=y((0,o.useState)(!1),2),Y=W[0],D=W[1],G=y((0,o.useState)(!1),2),N=G[0],J=G[1],Q=(0,o.useRef)(null),U=(0,o.useRef)(null),V=(0,o.useRef)(null),$=(0,v.Z)(V).width,ee=(0,f.Z)({element:r,error:X,breakpoint:c.getMobileBreakpoint()}),te=ee.borderStyles,re=ee.customBorder;return(0,n.BX)("div",g({ref:U,css:g({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:k?"none":"auto"},c.getTarget("fc"))},w,{children:[q,b,(0,n.BX)("div",g({ref:V,css:g(g(g({position:"relative",width:"100%",overflowX:"clip"},c.getTarget("sub-fc")),S?c.getTarget("disabled"):{}),{"&:hover":(0,h.wL)(S?{}:g(g({},c.getTarget("hover")),te.hover)),"&&":N?g(g({},c.getTarget("active")),te.active):{}})},{children:[re,(0,n.tZ)("input",{id:A.key,name:A.key,css:g(g(g({position:"relative",height:"100%",width:"100%",border:"none",margin:0,backgroundColor:"transparent"},l.ET),c.getTarget("field")),N||H||!r.properties.placeholder?{}:{color:"transparent !important"}),maxLength:A.max_length,minLength:A.min_length,placeholder:"",disabled:S,"aria-label":r.properties.aria_label,autoComplete:"on"===E?"street-address":"new-password",value:H,ref:function(e){Q.current=e,_(e)},onKeyDown:function(e){var t;t=e,Boolean(t.isTrusted&&t.code)&&("Enter"===e.key?P(e):D("Escape"!==e.key))},onFocus:function(e){J(!0),(0,h.ms)(e)},onBlur:function(e){setTimeout((function(){return D(!1)}),200),j(e),J(!1)},onChange:T,required:z}),(0,n.tZ)(d.Z,g({show:Y&&K.length>0,targetRef:Q,containerRef:U,placement:"bottom-start",offset:4,onHide:function(){return D(!1)}},{children:(0,n.tZ)("ul",g({css:g({zIndex:p.m,listStyleType:"none",padding:0,margin:0,backgroundColor:"white",cursor:"pointer",boxShadow:"0 0 4px rgb(0 0 0 / 15%)",width:void 0!==$?"".concat($,"px"):"100%"},c.getTarget("dropdown"))},{children:K.map((function(e){var r=e.display,o=e.address_id;return(0,n.tZ)("li",g({css:{padding:"8px 14px",transition:"0.1s ease all","&:hover":(0,h.wL)({backgroundColor:"#e6e6e633"})},onClick:function(){return e=t,r=void 0,i=function(){var e,t;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(r){switch(r.label){case 0:return[4,(new u.ZP).addressDetail(o)];case 1:return e=r.sent(),L(e,o),D(!1),null===(t=Q.current)||void 0===t||t.focus(),[2]}}))},new((n=void 0)||(n=Promise))((function(t,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function l(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(a,l)}u((i=i.apply(e,r||[])).next())}));var e,r,n,i}},{children:r}),r)}))}))})),(0,n.tZ)(i.Z,{value:H,element:r,responsiveStyles:c,repeatIndex:Z}),(0,n.tZ)(a.Z,{containerRef:U,id:r.id,text:r.properties.tooltipText,responsiveStyles:c,repeat:r.repeat})]}))]}))}))},5398:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(5430),o=r(9479);function i(e){var t=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,n.useState)({width:void 0,height:void 0}),2),r=t[0],i=t[1];return(0,n.useLayoutEffect)((function(){var t=function(){var t=e.current;if(t){var r=t.getBoundingClientRect(),n=r.width,o=r.height;i({width:n>0?n:void 0,height:o>0?o:void 0})}},r=e.current;if(r){if("undefined"==typeof ResizeObserver){var n=(0,o.Kv)();return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener?(n.addEventListener("resize",t),t(),function(){return n.removeEventListener("resize",t)}):void t()}var a=new ResizeObserver((function(){return t()}));try{a.observe(r,{box:"border-box"})}catch(e){a.observe(r)}return t(),function(){return a.disconnect()}}}),[e]),r}}}]);
|
|
1
|
+
"use strict";(this.webpackChunkFeathery=this.webpackChunkFeathery||[]).push([[102],{1587:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(5944),o=r(7294),i=r(8776),a=r(5467),l=r(2988),u=r(4665),c=r(7449),s=r(9479),f=function(){return f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};function d(e){var t=e.id,r=e.text,d=e.responsiveStyles,p=e.absolute,h=void 0===p||p,v=e.containerRef,g=e.repeat,y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,o.useState)(!1),2),b=y[0],m=y[1],w=(0,o.useRef)(null);if(!(r=(0,u.xf)(r,g)))return null;var x=(0,s.tq)();return(0,n.BX)(n.HY,{children:[(0,n.tZ)("div",f({ref:w,onMouseEnter:x?void 0:function(){return m(!0)},onMouseLeave:x?void 0:function(){return m(!1)},onFocus:function(){return m(!0)},onBlur:function(){return m(!1)},onClick:function(){return m((function(e){return!e}))},css:h?{position:"absolute",insetInlineEnd:"10px",top:0,bottom:0,zIndex:l.rM,margin:"auto",cursor:"pointer",height:"100%",display:"flex"}:{position:"relative",marginInlineStart:"8px",display:"flex",alignItems:"center"}},{children:(0,n.tZ)(a.by,{cssStyles:d.getTarget("tooltipIcon")})})),(0,n.tZ)(c.Z,f({show:b,targetRef:w,containerRef:v,placement:"left",onHide:function(){return m(!1)},offset:8},{children:(0,n.tZ)(i.u,f({id:"tooltip-".concat(t),css:{zIndex:l.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}}},{children:r}))}))]})}},7449:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(5944),o=r(7294),i=r(3935),a=r(9479),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};const u=function(e){var t=e.show,r=e.targetRef,u=e.children,f=e.onHide,d=e.placement,p=void 0===d?"bottom-start":d,h=e.offset,v=void 0===h?0:h,g=e.zIndex,y=void 0===g?1e3:g,b=e.containerRef,m=(0,o.useRef)(null),w=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,o.useState)(null),2),x=w[0],S=w[1],E=(0,o.useCallback)((function(){return(null==b?void 0:b.current)||(0,a.me)().body}),[b]),k=(0,o.useCallback)((function(){var e;if(t&&r.current&&m.current){var n=(0,a.Kv)(),o=E();if(o){var i=r.current.getBoundingClientRect(),l=m.current.getBoundingClientRect(),u=o.getBoundingClientRect(),f=s(p,i,l,v),d=f.top,h=f.left,g=d+l.height,y=h+l.width,b=d>=0&&g<=n.innerHeight,w=h>=0&&y<=n.innerWidth;if(!b||!w){var x=c(p,!b,!w);x!==p&&(d=(e=s(x,i,l,v)).top,h=e.left)}var k=o===(0,a.me)().body,O=k?d+n.scrollY:d-u.top,Z=k?h+n.scrollX:h-u.left;S((function(e){return e&&e.top===O&&e.left===Z?e:{top:O,left:Z}}))}}}),[t,p,v,E,r]),O=(0,o.useCallback)((function(){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){k(),e=!1})))}}),[k])();if((0,o.useLayoutEffect)((function(){t&&k()}),[t,k]),(0,o.useEffect)((function(){if(t){var e=(0,a.Kv)(),n=E();if(n){e.addEventListener("resize",O),e.addEventListener("scroll",O,!0),n!==(0,a.me)().body&&n.addEventListener("scroll",O);var o=new ResizeObserver((function(){return O()}));return r.current&&o.observe(r.current),n!==(0,a.me)().body&&o.observe(n),function(){e.removeEventListener("resize",O),e.removeEventListener("scroll",O,!0),n!==(0,a.me)().body&&n.removeEventListener("scroll",O),o.disconnect()}}}}),[t,O,E,r]),(0,o.useEffect)((function(){if(t){var e=function(e){"Escape"===e.key&&(S(null),null==f||f())},n=function(e){var t=e.target;m.current&&!m.current.contains(t)&&r.current&&!r.current.contains(t)&&(S(null),null==f||f())},o=(0,a.me)();return o.addEventListener("mousedown",n),o.addEventListener("keydown",e),function(){o.removeEventListener("mousedown",n),o.removeEventListener("keydown",e)}}}),[t,f,r]),!t)return null;var Z=E();return Z?(0,i.createPortal)((0,n.tZ)("div",l({ref:m,style:l(l({position:"absolute"},x||{top:-9999,left:-9999}),{zIndex:y})},{children:u})),Z):(0,n.tZ)(n.HY,{children:u})};var c=function(e,t,r){if(t){if(e.includes("top"))return e.replace("top","bottom");if(e.includes("bottom"))return e.replace("bottom","top")}if(r){if(e.includes("left"))return e.replace("left","right");if(e.includes("right"))return e.replace("right","left")}return e},s=function(e,t,r,n){switch(void 0===n&&(n=0),e){case"top":return{top:t.top-r.height-n,left:t.left+(t.width-r.width)/2};case"top-start":return{top:t.top-r.height-n,left:t.left};case"top-end":return{top:t.top-r.height-n,left:t.right-r.width};case"left":return{top:t.top+(t.height-r.height)/2,left:t.left-r.width-n};case"left-start":return{top:t.top,left:t.left-r.width-n};case"left-end":return{top:t.bottom-r.height,left:t.left-r.width-n};case"bottom":default:return{top:t.bottom+n,left:t.left+(t.width-r.width)/2};case"bottom-start":return{top:t.bottom+n,left:t.left};case"bottom-end":return{top:t.bottom+n,left:t.right-r.width};case"right":return{top:t.top+(t.height-r.height)/2,left:t.right+n};case"right-start":return{top:t.top,left:t.right+n};case"right-end":return{top:t.bottom-r.height,left:t.right+n}}}},9069:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(5944),o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function i(e){var t,r,i,a=e.value,l=e.element,u=e.responsiveStyles,c=e.type,s=void 0===c?"input":c,f=e.inputFocused,d=void 0!==f&&f,p=e.repeatIndex,h=void 0===p?null:p,v=l.properties,g=null!==(i=(null!==(r=v.repeat_placeholder)&&void 0!==r?r:[])[null!=h?h:0])&&void 0!==i?i:v.placeholder||"",y=o(o({},u.getTarget("placeholderFocus")),u.getTarget("placeholderActive"));return(0,n.tZ)("span",o({css:o(o(o(o({position:"absolute",pointerEvents:"none",insetInlineStart:"0.75rem",transition:"0.2s ease all",top:"input"===s?"50%":"0.6rem"},u.getTarget("placeholder")),a?u.getTarget("placeholderFocus"):{}),d?y:{}),(t={},t["".concat(s,":focus ~ &")]=y,t))},{children:g}))}},8776:(e,t,r)=>{r.d(t,{u:()=>a});var n=r(5944),o=r(2988),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=function(e){var t=e.children,r=e.css,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","css"]);return(0,n.tZ)("div",i({css:i({zIndex:o.rM+1,padding:".4rem 0",transition:"opacity .10s linear",".tooltip-inner":{maxWidth:"200px",padding:".25rem .5rem",color:"#fff",textAlign:"center",backgroundColor:"#000",borderRadius:".25rem",fontSize:"smaller"}},r)},a,{children:(0,n.tZ)("div",i({className:"tooltip-inner"},{children:t}))}))}},5024:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var n=r(5944),o=r(7294),i=r(9069),a=r(1587),l=r(1211),u=r(3703),c=r(1296),s=r.n(c),f=r(6867),d=r(7449),p=r(1275),h=r(9479),v=r(5398),g=function(){return g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)},y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};const b=(0,o.memo)((function(e){var t=this,r=e.element,c=e.responsiveStyles,b=e.fieldLabel,m=e.elementProps,w=void 0===m?{}:m,x=e.disabled,S=void 0!==x&&x,E=e.autoComplete,k=e.editMode,O=e.repeatIndex,Z=void 0===O?null:O,R=e.onSelect,L=void 0===R?function(){}:R,C=e.onChange,T=void 0===C?function(){}:C,z=e.required,I=e.onBlur,j=void 0===I?function(){}:I,B=e.onEnter,P=void 0===B?function(){}:B,F=e.setRef,_=void 0===F?function(){}:F,M=e.value,H=void 0===M?"":M,X=e.inlineError,q=e.children,A=r.servar,K=function(e,t){var r,n=t.metadata,i=n.address_autocomplete,a=null!==(r=n.autocomplete_country)&&void 0!==r?r:"",l=function(){var e=(0,o.useRef)(!0);return(0,o.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}(),c=y((0,o.useState)(e),2),f=c[0],d=c[1],p=y((0,o.useState)([]),2),h=p[0],v=p[1],g=(0,o.useCallback)(s()((function(e){(new u.ZP).addressSearchResults(e,a,"gmap_city"===t.type).then((function(t){l.current&&(v(t),d(e))}))}),500),[v,d]);return(0,o.useEffect)((function(){var t=e.trim();i&&t!==f&&(t.length>3?g(t):(h.length&&v([]),d(t)))}),[e]),h}(H,A),W=y((0,o.useState)(!1),2),Y=W[0],D=W[1],G=y((0,o.useState)(!1),2),N=G[0],J=G[1],Q=(0,o.useRef)(null),U=(0,o.useRef)(null),V=(0,o.useRef)(null),$=(0,v.Z)(V).width,ee=(0,f.Z)({element:r,error:X,breakpoint:c.getMobileBreakpoint()}),te=ee.borderStyles,re=ee.customBorder;return(0,n.BX)("div",g({ref:U,css:g({maxWidth:"100%",width:"100%",height:"100%",position:"relative",pointerEvents:k?"none":"auto"},c.getTarget("fc"))},w,{children:[q,b,(0,n.BX)("div",g({ref:V,css:g(g(g({position:"relative",width:"100%",overflowX:"clip"},c.getTarget("sub-fc")),S?c.getTarget("disabled"):{}),{"&:hover":(0,h.wL)(S?{}:g(g({},c.getTarget("hover")),te.hover)),"&&":N?g(g({},c.getTarget("active")),te.active):{}})},{children:[re,(0,n.tZ)("input",{id:A.key,name:A.key,css:g(g(g({position:"relative",height:"100%",width:"100%",border:"none",margin:0,backgroundColor:"transparent"},l.ET),c.getTarget("field")),N||H||!r.properties.placeholder?{}:{color:"transparent !important"}),maxLength:A.max_length,minLength:A.min_length,placeholder:"",disabled:S,"aria-label":r.properties.aria_label,autoComplete:"on"===E?"street-address":"new-password",value:H,ref:function(e){Q.current=e,_(e)},onKeyDown:function(e){var t;t=e,Boolean(t.isTrusted&&t.code)&&("Enter"===e.key?P(e):D("Escape"!==e.key))},onFocus:function(e){J(!0),(0,h.ms)(e)},onBlur:function(e){setTimeout((function(){return D(!1)}),200),j(e),J(!1)},onChange:T,required:z}),(0,n.tZ)(d.Z,g({show:Y&&K.length>0,targetRef:Q,containerRef:U,placement:"bottom-start",offset:4,onHide:function(){return D(!1)}},{children:(0,n.tZ)("ul",g({css:g({zIndex:p.m,listStyleType:"none",padding:0,margin:0,backgroundColor:"white",cursor:"pointer",boxShadow:"0 0 4px rgb(0 0 0 / 15%)",width:void 0!==$?"".concat($,"px"):"100%"},c.getTarget("dropdown"))},{children:K.map((function(e){var r=e.display,o=e.address_id;return(0,n.tZ)("li",g({css:{padding:"8px 14px",transition:"0.1s ease all","&:hover":(0,h.wL)({backgroundColor:"#e6e6e633"})},onClick:function(){return e=t,r=void 0,i=function(){var e,t;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(r){switch(r.label){case 0:return[4,(new u.ZP).addressDetail(o)];case 1:return e=r.sent(),L(e,o),D(!1),null===(t=Q.current)||void 0===t||t.focus(),[2]}}))},new((n=void 0)||(n=Promise))((function(t,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function l(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(a,l)}u((i=i.apply(e,r||[])).next())}));var e,r,n,i}},{children:r}),r)}))}))})),(0,n.tZ)(i.Z,{value:H,element:r,responsiveStyles:c,repeatIndex:Z}),(0,n.tZ)(a.Z,{containerRef:U,id:r.id,text:r.properties.tooltipText,responsiveStyles:c,repeat:r.repeat})]}))]}))}))},5398:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(7294),o=r(9479);function i(e){var t=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}((0,n.useState)({width:void 0,height:void 0}),2),r=t[0],i=t[1];return(0,n.useLayoutEffect)((function(){var t=function(){var t=e.current;if(t){var r=t.getBoundingClientRect(),n=r.width,o=r.height;i({width:n>0?n:void 0,height:o>0?o:void 0})}},r=e.current;if(r){if("undefined"==typeof ResizeObserver){var n=(0,o.Kv)();return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener?(n.addEventListener("resize",t),t(),function(){return n.removeEventListener("resize",t)}):void t()}var a=new ResizeObserver((function(){return t()}));try{a.observe(r,{box:"border-box"})}catch(e){a.observe(r)}return t(),function(){return a.disconnect()}}}),[e]),r}}}]);
|