diff --git a/dist/packages-rtl.css b/dist/packages-rtl.css index e81d30dfd..8d218326e 100644 --- a/dist/packages-rtl.css +++ b/dist/packages-rtl.css @@ -1,3 +1,3 @@ .e6O4SPcPv7bj7YqOEmNY{position:relative;width:100%}.j9lF5gTQkLDyWMaitOmh{--padding-right:8px;display:flex;gap:0 4px}.j9lF5gTQkLDyWMaitOmh.es4LMAAOKCNo5fT9VKtL{--padding-right:24px}.j9lF5gTQkLDyWMaitOmh.UhT6Uk1ZtQUNcJg1nBBg.es4LMAAOKCNo5fT9VKtL .JK1cHDK9cpKVFGggL7LU{padding-left:calc(var(--padding-right) + 20px)}.Q68VFpy3X0eyJK1_XRja{flex-grow:1;position:relative}.JK1cHDK9cpKVFGggL7LU{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:#8c8f94;border-radius:3px;box-shadow:none;color:#2c3338;cursor:pointer;font-size:16px;line-height:2;min-height:30px;min-width:0;padding:0 8px 0 var(--padding-right);vertical-align:middle;width:100%}@media(min-width:600px){.JK1cHDK9cpKVFGggL7LU{font-size:13px}}.JK1cHDK9cpKVFGggL7LU.pT4aDdn7WDOtf8LktRNU{outline-offset:2px}.lp4jH71YULsLQxRUabwN{display:block;height:12px;width:12px}.BtPab7ae0nWY5rnuRlsT{background:transparent;border:none;box-shadow:none;height:100%;left:0;top:0}.BtPab7ae0nWY5rnuRlsT,.ww5amWr_Ul0_wa771HwI{position:absolute}.ww5amWr_Ul0_wa771HwI{background-color:#fff;border:1px solid #d3d6d9;color:#0b0c0c;margin:8px 0 0;max-height:342px;overflow-x:hidden;padding:0;transform:translateZ(0);width:calc(100% - 2px);z-index:200}.ww5amWr_Ul0_wa771HwI.UhBZrjKaXeFc7wVxEgUE{display:block}.ww5amWr_Ul0_wa771HwI.rkgd8u9XeQaKdUh4V9gk{display:none}.tMJK6UCzzd4dRKnNi1nq{cursor:pointer;display:block;margin:0;padding:8px 12px;position:relative}.tMJK6UCzzd4dRKnNi1nq>*{pointer-events:none}.tMJK6UCzzd4dRKnNi1nq.pT4aDdn7WDOtf8LktRNU,.tMJK6UCzzd4dRKnNi1nq:hover{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff;outline:0}.JpKfaIPcqSOXmRfsNTdz{margin:0}.JpKfaIPcqSOXmRfsNTdz .tMJK6UCzzd4dRKnNi1nq{padding-right:20px}.lOKlzFthzaW0zBXkV_aB{height:30px!important;min-width:16px!important;padding:0!important;position:absolute;left:var(--padding-right);top:0;width:16px!important}.TI50VzfokX6eLhrOi70h{font-weight:700;margin:8px 12px}.kSzutuRlPlz3jlArbm77{background-color:transparent}@media(-ms-high-contrast:active),(forced-colors:active){.ww5amWr_Ul0_wa771HwI{border-color:FieldText}.tMJK6UCzzd4dRKnNi1nq{background-color:Field;color:FieldText}.tMJK6UCzzd4dRKnNi1nq.pT4aDdn7WDOtf8LktRNU,.tMJK6UCzzd4dRKnNi1nq:hover{background-color:SelectedItem;border-color:SelectedItem;color:SelectedItemText;forced-color-adjust:none;outline-color:SelectedItemText}}.YrJKrECebxy2N010bYmy .components-base-control__field{align-items:center;display:flex}.YrJKrECebxy2N010bYmy .components-base-control__field .components-base-control__label{flex:1;margin:0}._sFRKZIx_rmnTr8KV6Zc{height:auto;min-height:auto;padding:4px}.ExkdOKeVBK5IJhCj4y6G{background:linear-gradient(45deg,transparent 48%,rgba(0,0,0,.2) 0,rgba(0,0,0,.2) 52%,transparent 0);border:1px solid rgba(0,0,0,.2);border-radius:50%;height:25px;width:25px}.GRPyAHvb86BvWaiPQQ64 .components-popover__content{max-width:365px;min-width:-moz-max-content;min-width:max-content;padding:15px}.GRPyAHvb86BvWaiPQQ64 .components-popover__content>div{padding:0}.GRPyAHvb86BvWaiPQQ64 .components-base-control__field{margin-bottom:0}.GRPyAHvb86BvWaiPQQ64 .react-colorful{width:100%!important}.GRPyAHvb86BvWaiPQQ64 .react-colorful .react-colorful__pointer{height:20px;width:20px}.GRPyAHvb86BvWaiPQQ64 .react-colorful .react-colorful__saturation{height:150px}.GRPyAHvb86BvWaiPQQ64 .components-circular-option-picker__option-wrapper{height:25px;width:25px}.UqMleJg7WVwswh6Y90G0{display:flex;gap:5px;margin-top:15px}.UqMleJg7WVwswh6Y90G0 .TmNjuU1grTIJ2SDYVBCQ{flex:1}.UqMleJg7WVwswh6Y90G0 .fLVfpUoFtwFbvarYhKZq{height:auto}.UqMleJg7WVwswh6Y90G0 .components-base-control__field{margin-bottom:0}.MabCbXOeSQJHUzaGdZY7{margin-top:15px}.MabCbXOeSQJHUzaGdZY7 .components-circular-option-picker{display:flex;flex-wrap:wrap}.MabCbXOeSQJHUzaGdZY7 .components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:6px}.MabCbXOeSQJHUzaGdZY7 .components-circular-option-picker .components-circular-option-picker__swatches .components-circular-option-picker__option-wrapper{margin:0}.LG1wd9f39u25C3OZz7Z2{display:flex;margin-top:15px}.LG1wd9f39u25C3OZz7Z2 .components-range-control{flex-grow:1;padding-right:5px}._dYsFRKN1sDgERxlL8cR{margin:0}.qJERrnFefv_O50nv_edM{--icon-size:1rem;display:grid;gap:.625rem;grid-template-columns:36px minmax(0,1fr);position:relative}.qJERrnFefv_O50nv_edM .components-button svg{display:block;height:var(--icon-size);width:var(--icon-size)}.T95NbM4ZNigoT_wIDhRQ{border-radius:0;height:100%;position:relative;z-index:2}._FNJnr_HsSBteeCYhHU3{display:flex;flex-wrap:wrap;gap:var(--gap,10px)}.syvVNiObl2WYqYtGRcTn.WO_aMtG3Bg4zooUBEp7x>*+*{margin-inline-start:var(--gap,10px)}.KkGQsmYxiUE8hxLd2Xwj.WO_aMtG3Bg4zooUBEp7x>*+*{margin-block-start:var(--gap,10px)}.KkGQsmYxiUE8hxLd2Xwj._FNJnr_HsSBteeCYhHU3{flex-direction:column}.x1eMpmfuIpD_el57lOsS{border-collapse:collapse;width:100%}.x1eMpmfuIpD_el57lOsS td,.x1eMpmfuIpD_el57lOsS th{box-sizing:border-box}.x1eMpmfuIpD_el57lOsS.UfKOOGHdQURZ41pihZXA tr:nth-child(2n){background-color:rgba(var(--wp-admin-theme-color--rgb),.04)}.Jt_HCDtpPDDe0zG_jA8E .R4RBfohTRDBJ5KQueVP2{align-items:center;display:flex;gap:1rem;justify-content:space-between;margin-bottom:1em}.Jt_HCDtpPDDe0zG_jA8E .R4RBfohTRDBJ5KQueVP2 h2{margin:0}.Jt_HCDtpPDDe0zG_jA8E .lFx02P_kj4WJAxuPfDVR .components-base-control{margin-bottom:0}.Jt_HCDtpPDDe0zG_jA8E .lFx02P_kj4WJAxuPfDVR .components-base-control>.components-base-control__field{margin:0}.Jt_HCDtpPDDe0zG_jA8E .lFx02P_kj4WJAxuPfDVR>*+*{margin-block-end:0;margin-block-start:15px}.QM1tb8cm9U9FvdJBRqTg{display:grid;gap:10px;grid-template-columns:200px 1fr}.QM1tb8cm9U9FvdJBRqTg.gb-icon-library--divider .R3462S4fO_NJhMOetJu4{flex-direction:column}.QM1tb8cm9U9FvdJBRqTg.gb-icon-library--divider .R3462S4fO_NJhMOetJu4 .components-button{height:auto}.QM1tb8cm9U9FvdJBRqTg.gb-icon-library--divider .R3462S4fO_NJhMOetJu4 .components-button,.QM1tb8cm9U9FvdJBRqTg.gb-icon-library--divider .R3462S4fO_NJhMOetJu4 .components-button span{width:100%}.QM1tb8cm9U9FvdJBRqTg.gb-icon-library--divider .R3462S4fO_NJhMOetJu4 .components-button svg{height:auto;min-width:0;width:100%}.R3462S4fO_NJhMOetJu4{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.R3462S4fO_NJhMOetJu4 .components-button{border:1px solid #ddd;height:50px;padding:20px}.R3462S4fO_NJhMOetJu4 .components-button svg{height:40px;min-width:20px}.zFsone2zGKgdXw_JBDSu{align-self:flex-start;position:sticky;top:0}.zFsone2zGKgdXw_JBDSu button{width:100%}.uey0NWE8S8eBW5iriB5Y{align-items:center;background:#fff;border-top:1px solid #ddd;bottom:-32px;display:grid;gap:10px;grid-template-areas:"left right";justify-content:space-between;margin:20px -32px -32px;padding:20px;position:sticky}.uey0NWE8S8eBW5iriB5Y svg{height:1.5em;width:1.5em}.Uvu7wfl_BcNpRy7Toi6P{flex-grow:1}.Uvu7wfl_BcNpRy7Toi6P textarea{font-family:monospace}.a3peKdW8EEhhJNaY_kYi{align-items:center;display:flex;gap:10px;grid-area:right;-ms-grid-column:3;-ms-grid-row:1;justify-content:flex-end}.yRdSE3_VmxOo30qmlpTj .components-base-control{margin-bottom:0}.yRdSE3_VmxOo30qmlpTj .MeLzq8yBexZJ8iSv17Wf{align-items:center;border:1px solid #8c8f94;display:flex;gap:10px;height:35px;width:100%}.yRdSE3_VmxOo30qmlpTj .MeLzq8yBexZJ8iSv17Wf>span{display:block;line-height:0;max-width:50%}.yRdSE3_VmxOo30qmlpTj .MeLzq8yBexZJ8iSv17Wf svg{height:20px;max-width:100%;width:auto}.eGpceyyXvidN0eGE7oRl .components-modal__content{padding:4px 32px 32px} -.aXTNFJcVrsguxNZy07JA{isolation:isolate}.aXTNFJcVrsguxNZy07JA :where(.components-range-control__number,.components-base-control__field){margin-bottom:0!important}.aXTNFJcVrsguxNZy07JA .components-panel__body-toggle.components-button{font-size:12px;padding-bottom:12px;padding-top:12px}.aXTNFJcVrsguxNZy07JA .components-panel__body-toggle.components-button .components-panel__arrow{height:18px;width:18px}.aXTNFJcVrsguxNZy07JA .components-panel__body-toggle.components-button>svg{color:#0a0a0a;margin-right:0;margin-left:6px;order:-1}._n7gGYm9M8MFYioC_tnA{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;text-transform:uppercase;white-space:nowrap}.wZMI6U93fOq6ONi2BIMx{margin-bottom:20px}.wZMI6U93fOq6ONi2BIMx>button.components-button{margin-bottom:3px;margin-left:3px}.wZMI6U93fOq6ONi2BIMx button.components-button{border:0;font-family:monospace;font-size:11px;height:auto;line-height:normal;padding:5px 10px}.wZMI6U93fOq6ONi2BIMx button.components-button:not(.is-pressed){background:#eff4f9}.IkszCwt2RSahUOA6cnBn:not(:first-child){margin-top:20px}.Lv4O8kNoTBfefDdx0ZSf .components-base-control{margin:0}.Lv4O8kNoTBfefDdx0ZSf .components-toggle-control{margin-top:.5em}.exF1HddU0AkwAhIpOZgN{display:flex;margin-bottom:3px}.exF1HddU0AkwAhIpOZgN:not(:first-child){border-right:1px solid rgba(0,0,0,.1);padding-right:10px;position:relative}.exF1HddU0AkwAhIpOZgN:not(:first-child):before{background:rgba(0,0,0,.1);bottom:0;content:"";display:block;height:1px;right:0;position:absolute;top:calc(50% - 1px);width:7px}.exF1HddU0AkwAhIpOZgN .components-dropdown button.components-button{border-bottom-right-radius:0;border-right:0;border-top-right-radius:0;height:100%;min-width:10px;padding:5px 10px}.exF1HddU0AkwAhIpOZgN .components-dropdown button.components-button svg{height:17px;width:17px}.exF1HddU0AkwAhIpOZgN>button.components-button{border-radius:3px;border-bottom-left-radius:0;border-top-left-radius:0;flex-grow:1;min-height:27px;text-align:right}.exF1HddU0AkwAhIpOZgN>button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.exF1HddU0AkwAhIpOZgN:first-child>button.components-button{border-bottom-left-radius:3px;border-top-left-radius:3px}.sivCIEzK7hnS_jYTmkQS{align-self:center;background:#e15e1f;border-radius:100%;display:inline-block;flex-shrink:0;height:8px;margin-right:5px;width:8px}.q4Vt9u4L6NHDPsd6y0RN{display:block;font-size:11px;font-weight:500;margin-bottom:5px;margin-top:10px}.SdqkeZJnaGZW5sjp7Cbl{margin-bottom:20px}.yrBJ0RWIFkQx2jPca6oQ{background:#ffdfdf;margin-top:10px;padding:10px}._eMJAha2XlEzp5LbJNoU{margin-bottom:16px;position:relative;z-index:10002}.BOHNqXESw4VeWayhp9gV{display:flex;gap:10px;justify-content:space-between;margin-top:20px}.bsFDeOOx3XaWTtMpsHh9{font-family:monospace;font-size:11px;font-weight:600}.JfcrVVxi0Le7WqG1QrUs{background:#fafafa;border-right-color:currentColor;margin-top:10px}.JfcrVVxi0Le7WqG1QrUs .components-notice__content{margin-left:0}.cNIaZ9TFMrQuku9AMTd7 svg{height:20px;width:20px}.R3E2gPdBZcQ3fGB44pMn.components-button.has-text{display:flex;flex-direction:row-reverse;gap:0;padding-right:8px;padding-left:6px}.R3E2gPdBZcQ3fGB44pMn.components-button.has-text svg{height:17px;width:17px}.oCwXXlsUVmwVHOqFZ8fx{display:flex;gap:5px;padding-top:10px}.oCwXXlsUVmwVHOqFZ8fx button.components-button{box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);font-family:inherit;padding:3px 6px}.oCwXXlsUVmwVHOqFZ8fx button.components-button:first-child:last-child{border-radius:2px}.uSzzU88fk2uFJ96sOTjo{border-bottom:1px solid rgba(0,0,0,.2);border-right:1px solid rgba(0,0,0,.2);height:13px;width:8px}.BABsdAWLRMrTwoZ5nq1w{padding:15px}.rFvheKp_Ld4Xq2afm0B7{margin-bottom:10px}.rFvheKp_Ld4Xq2afm0B7 .components-button-group{display:flex}.rFvheKp_Ld4Xq2afm0B7 .components-button-group button{flex:1}.nRPkFhbFIvEor1OPe2Ht{font-size:11px;font-weight:400;margin-top:5px;opacity:.6}.RH2SaGq5s9_xxeenpiAB{display:flex;gap:10px}.hQ2FMZ3Tgtexl8pMJCS6 .components-popover__content{min-width:300px}.kz8IWmpCkeKTwVsJVN6l .components-button.has-icon{min-width:24px;padding:4px}.EBNwYjwZHC0WOkdJpGf0{flex-grow:1;margin:0!important}.EBNwYjwZHC0WOkdJpGf0 .components-input-control__input{height:32px!important;min-height:32px!important}.eLeLPDEe53QDQ4_SHGEr{background-color:#fff;border-bottom:1px solid #ddd;margin:-16px -16px 0;padding:16px;position:sticky;top:var(--topOffset);z-index:10001}.fBiNbsJwfo6m5W319YeV,.zBNu4EXMvGLl5F0Whgcu{position:relative}.zBNu4EXMvGLl5F0Whgcu{background:#fff;border:1px solid #949494;border-radius:2px;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e;cursor:pointer;display:block;font-family:inherit;font-size:13px;height:35px;margin:0;max-width:none;min-height:35px;overflow:hidden;padding:0 8px 0 26px;text-align:right;text-overflow:ellipsis;white-space:nowrap;width:100%}.zBNu4EXMvGLl5F0Whgcu.Gv4AVZ3Uo9WsTswIzApZ .H5BpC4Xn0Vqp02xqec8t{transform:translateY(-50%) rotate(-180deg);transform-origin:center}.H5BpC4Xn0Vqp02xqec8t{position:absolute;left:8px;top:55%;transform:translateY(-50%)}.H5BpC4Xn0Vqp02xqec8t svg{display:block}.LZ_Q_jIwNWRN9uzPHG6F{background:#fff;border:1px solid #949494;border-top:none;right:0;margin:0;padding:0;position:absolute;left:0;z-index:10}.LZ_Q_jIwNWRN9uzPHG6F.fuiIHvsQoDtzSwhIiZqA{display:none}.oFtCdmsssMg8H77hPFTg{cursor:pointer;font-size:16px;margin:0;padding:6px 8px}.oFtCdmsssMg8H77hPFTg.aRQyIjys1XBHeSktg1zw{background:#ddd}.oFtCdmsssMg8H77hPFTg.VgpUqbG14GJePp0Beo1z{background:#fafafa}.oFtCdmsssMg8H77hPFTg.S6wZSSZk2olFnn3eYf8O{align-items:center;display:flex;gap:8px;justify-content:space-between}.jept9XZS7KxgsCNkbH1p{margin-top:8px}.WPEZvtpxlOepmonsa_vy{margin:0}.WPEZvtpxlOepmonsa_vy>:first-child{border-top:1px solid #e1e1e1}.WPEZvtpxlOepmonsa_vy>*{border-bottom:1px solid #e1e1e1;margin:0}.WPEZvtpxlOepmonsa_vy.is-dragging{background-color:#bcecfb}.WPEZvtpxlOepmonsa_vy .gb-sortable-listitem{background-color:#fefefe;gap:0}.WPEZvtpxlOepmonsa_vy .gb-sortable-listitem.is-dragging{background-color:#f0f0f0}.t3m0oWRj6QvABZ1BpM_a{display:none;flex:1 1 auto}.Hem3vI_alRw0fuRKobVi{background-image:linear-gradient(-45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),linear-gradient(-45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-position:100% 0,7.5px 7.5px;background-size:30px 30px;border-radius:50%;position:relative}.Hem3vI_alRw0fuRKobVi:after{content:"";height:100%;right:0;position:absolute;top:0;width:100%}.qELjYtUNLBgxG3dVY1MT{border-radius:50%;height:15px;width:15px}.eLgazplyjWUwkBZizkAi{background-color:#fff;border:1px solid #ccc;border-radius:50%;justify-content:center}.TOkDiwiqR4BjcMYMPy7w,.eLgazplyjWUwkBZizkAi{align-items:center;display:flex}.TOkDiwiqR4BjcMYMPy7w{font-family:monospace;font-size:12px;height:36px;justify-content:flex-start;padding:5px 8px 5px 5px}.TOkDiwiqR4BjcMYMPy7w:nth-child(odd){background-color:#f3f3f3}.TOkDiwiqR4BjcMYMPy7w svg{height:16px;width:16px}.TOkDiwiqR4BjcMYMPy7w:hover .t3m0oWRj6QvABZ1BpM_a{display:inline-flex;justify-content:flex-end}.TOkDiwiqR4BjcMYMPy7w:hover .eLgazplyjWUwkBZizkAi{border:1px solid #fff}.TOkDiwiqR4BjcMYMPy7w:hover{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}.TOkDiwiqR4BjcMYMPy7w:hover svg{fill:#fff}.sc53cEZEYka6VEQdlguH{display:-webkit-box;flex:1 1 auto;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.sc53cEZEYka6VEQdlguH:not(:first-child){margin-right:10px}.sc53cEZEYka6VEQdlguH>span{white-space:nowrap}.Kxn9txAhUpts4Hh5LFLl>.components-base-control__field{display:grid;gap:3px;grid-template-columns:1fr auto;position:relative}.Kxn9txAhUpts4Hh5LFLl>.components-base-control__field>label{align-items:center;display:flex;grid-column:1;margin-bottom:0}.D7CffuJGzqF34RY4dZ6R{align-items:center;display:inline-flex;gap:2px;grid-column:2;margin-right:auto}.D7CffuJGzqF34RY4dZ6R svg{height:20px;width:20px}.dITUNDZ8hTR1v4AVOkT2{border:none;font-size:11px;font-weight:500;height:16px;line-height:1.4;margin:0;padding:0;text-transform:uppercase}.dITUNDZ8hTR1v4AVOkT2:hover{color:inherit}.dITUNDZ8hTR1v4AVOkT2:focus:not(:disabled){box-shadow:none;outline:none}.dITUNDZ8hTR1v4AVOkT2 svg{display:block;height:18px;margin-right:2px;width:18px}.dITUNDZ8hTR1v4AVOkT2[aria-expanded=true]{color:inherit}.bz0ajUyoumIjJylbv_Tr{grid-column:1/-1}.bz0ajUyoumIjJylbv_Tr:not(:empty){padding-top:10px}.lgogTEjiaQEXgUYjcw2y{height:24px}.lgogTEjiaQEXgUYjcw2y .components-button.has-icon{height:24px;min-width:24px;padding:2px;width:24px}._3vjaqzDcV3IvmQyrxhG .components-popover__content{min-width:240px}._3vjaqzDcV3IvmQyrxhG .components-menu-group button svg{height:20px;width:20px}._3vjaqzDcV3IvmQyrxhG .components-menu-group button.r20x1Lcqgmja2UoO4kgY{opacity:.8;pointer-events:none}.VfAkVX3mqRIuRHtj3UQg{padding:0 8px 4px}.BoKWmP79VS5rj8sZcPZ4{display:flex;gap:10px;justify-content:space-between;margin-top:20px}.hAtBY8JhM_Gi3WSUSzqr{background:#fafafa;box-shadow:inset 0 0 4px 1px rgba(0,0,0,.05);padding:12px}.hAtBY8JhM_Gi3WSUSzqr .components-base-control__field{margin-bottom:0}.ceurPSPMJBQM5_zJv5Qj{margin-bottom:2em}.Vhpy9djpImFEmyXjfSlx{display:flex;justify-content:space-between}.bAk1niPiagGU6oSLJbvA{margin:.4em 0 2em}.MmfVpnbQ85G6UjIw1u5W{display:flex!important;gap:0 6px;margin-bottom:5px}.MmfVpnbQ85G6UjIw1u5W,.YebmhFgupzjyq0N2udmU{align-items:center}.YebmhFgupzjyq0N2udmU{display:inline-flex;font-size:10px;font-weight:500;line-height:1.4;line-height:24px;margin-bottom:0;text-transform:uppercase}.yCoIRP0ogL5sZXeHU7_w{align-items:center;display:flex;margin-right:auto}.FvMzS1_Byw1S16xBCDc2{height:24px}.FvMzS1_Byw1S16xBCDc2 .components-button.has-icon{height:24px;min-width:24px;padding:2px;width:24px}.aBjtgF5WMv9EShbYATob{line-height:0}.aBjtgF5WMv9EShbYATob .components-menu-group button svg{height:20px;width:20px}.aBjtgF5WMv9EShbYATob .components-popover__content{min-width:240px}.aBjtgF5WMv9EShbYATob dl{margin:0;min-width:215px}.aBjtgF5WMv9EShbYATob dl dt{font-weight:700}.aBjtgF5WMv9EShbYATob dl dd{margin-right:0}.aBjtgF5WMv9EShbYATob dl dd:not(:last-child){margin-bottom:10px}.uzhd5E8WcQNM0lAKMk7k{box-sizing:border-box;position:relative}.uzhd5E8WcQNM0lAKMk7k.Wh1bsxP7LYgneG5rZTAC{display:grid;gap:0 5px;grid-template-columns:minmax(0,1fr) auto}.uzhd5E8WcQNM0lAKMk7k.Wh1bsxP7LYgneG5rZTAC>*{grid-column:1}.uzhd5E8WcQNM0lAKMk7k.Wh1bsxP7LYgneG5rZTAC .FvMzS1_Byw1S16xBCDc2{grid-column:2;transform:translateY(4px)}.O_Wuw7CS2upgJFqUitvq{padding:0 8px 4px}.O_Wuw7CS2upgJFqUitvq>:last-child{margin-bottom:0}.fJ5fAm5nhaTBip_S4DxM{height:20px;left:8px;top:8px;width:20px}.fJ5fAm5nhaTBip_S4DxM.has-icon{min-width:20px;padding:3px}.zAOzeKIYT9PG6cQOqjaQ{background-color:#639;border-radius:4px;color:#fff;font-size:12px;margin-right:6px;padding:2px 4px}.zAOzeKIYT9PG6cQOqjaQ.LA3zREEmXdwWKgHSv35F{background-color:#f0b849}.nM0uaXqi_1IsHFDunR9U{background-color:#639;border-radius:100%;height:8px;margin-right:6px;padding:0;width:8px}.nM0uaXqi_1IsHFDunR9U>*{display:none}.nM0uaXqi_1IsHFDunR9U.LA3zREEmXdwWKgHSv35F{background-color:#f0b849}@supports selector(:has(a,b)){.has-global-style label:has(.nM0uaXqi_1IsHFDunR9U){padding-left:14px;position:relative}.has-global-style label:has(.nM0uaXqi_1IsHFDunR9U)+.components-button{margin-right:8px}.has-global-style .nM0uaXqi_1IsHFDunR9U{position:absolute;transform:translateY(50%)}}@supports not selector(:has(a,b)){.has-global-style label{align-items:center;display:flex}}.d2v4yBMoHotau1FiSFd4{flex-grow:1}.uT0q3TLMAkFDgS0reTSK .components-popover__content{background-color:#fafafa;font-family:monospace;font-size:11px;max-width:min(400px,100vw);padding:16px 8px 8px 16px;width:-moz-max-content;width:max-content}.ibwoScdLkV660uMEhBzT{height:inherit;line-height:inherit;padding:0}.nV3hv1krzxIvjVaEp9fc{margin-right:12px}.Y5oNSpAeWJAycKoyoN_p{padding-right:12px;position:relative}.Y5oNSpAeWJAycKoyoN_p:focus .dglmO4hyhnrUp4qbMQp2,.Y5oNSpAeWJAycKoyoN_p:focus-within .dglmO4hyhnrUp4qbMQp2,.Y5oNSpAeWJAycKoyoN_p:hover .dglmO4hyhnrUp4qbMQp2{display:inline-flex}.dglmO4hyhnrUp4qbMQp2{display:none;height:20px!important;right:-12px;line-height:20px!important;min-width:20px!important;position:absolute;top:0;width:20px!important}.E8pebkDuLKz7SV12Xc6g [data-selector]{color:#757575}.E8pebkDuLKz7SV12Xc6g [data-property]{color:#2271b1}.fJ5fAm5nhaTBip_S4DxM{height:20px!important;line-height:20px!important;min-width:20px!important;position:absolute;left:0;top:0;width:20px!important}.knttE5KP5YHzKcXfmYvf.gb-inspector-controls--filtering .components-panel__body-title{pointer-events:none}.knttE5KP5YHzKcXfmYvf.gb-inspector-controls--filtering .components-panel__body-toggle svg:not(.components-panel__icon){display:none}.knttE5KP5YHzKcXfmYvf input::-webkit-inner-spin-button,.knttE5KP5YHzKcXfmYvf input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.knttE5KP5YHzKcXfmYvf input[type=number]{-moz-appearance:textfield}.knttE5KP5YHzKcXfmYvf:not(:has(.gb-styles-builder-control.visible)) .VjTLWYpdToJ8tz4sZpC6.alIq7NNnng4aQl1UHzEp{display:block}.knttE5KP5YHzKcXfmYvf .components-flex-block:has(.gb-styles-builder-control.hidden:only-child){display:none}.knttE5KP5YHzKcXfmYvf .components-base-control .components-input-control__input,.knttE5KP5YHzKcXfmYvf .components-base-control .components-select-control__input,.knttE5KP5YHzKcXfmYvf .components-base-control .components-text-control__input,.knttE5KP5YHzKcXfmYvf .components-base-control .components-text-control__input[type=color],.knttE5KP5YHzKcXfmYvf .components-base-control .components-text-control__input[type=number],.knttE5KP5YHzKcXfmYvf .components-base-control .components-text-control__input[type=text],.knttE5KP5YHzKcXfmYvf .components-base-control .components-text-control__input[type=url]{height:35px!important;min-height:35px!important;padding-right:10px!important;padding-left:10px!important}.knttE5KP5YHzKcXfmYvf .components-base-control .gb-stack>.components-button:not(.is-compact):not(.is-small){height:35px!important;min-height:35px!important}.VjTLWYpdToJ8tz4sZpC6{display:none}.eVxP5EbXKBfj36ytKhHz{margin-right:16px;margin-left:16px}.eVxP5EbXKBfj36ytKhHz.dM9ABmijKbDAlB8_Nu4e{margin-bottom:16px;margin-top:16px}.EQPCi2ra6jOyVlsV1DEY.mvSjIIiaUxz8GrR6Cgro:where(:not(:has(.gb-styles-builder-panel__content>.gb-styles-builder-control.visible))){display:none}.EQPCi2ra6jOyVlsV1DEY.mvSjIIiaUxz8GrR6Cgro:has(.gb-panel-section .gb-styles-builder-control.visible){display:block}.sGqOB5yAvDyMP6EUQ9So.s4BUUfX8qtMYr0UIn0VC{--angle:-90deg}.zkJpI_g3ns2yn1c84Tog.s4BUUfX8qtMYr0UIn0VC{--angle:90deg}.sGqOB5yAvDyMP6EUQ9So.cpP_Kd4muZiI1kRXmjYM,.zkJpI_g3ns2yn1c84Tog.cpP_Kd4muZiI1kRXmjYM{--reverse:-1,1}.sGqOB5yAvDyMP6EUQ9So .gb-button-icon-control .components-button svg,.zkJpI_g3ns2yn1c84Tog .gb-button-icon-control .components-button svg{transform:rotate(var(--angle,0deg)) scale(var(--reverse,1))}.b5D9V1FgjJfFX9m813dk{display:flex}.b5D9V1FgjJfFX9m813dk button{display:flex;flex-grow:1;font-size:12px;justify-content:center}.b5D9V1FgjJfFX9m813dk button.rFUOeZBQQsQTUjQOlKx5{background:rgba(0,0,0,.07)}.b5D9V1FgjJfFX9m813dk button svg{width:15px}.MhSQw4WJGtyl3tO1UCPo{background:#efefef;border-radius:3px;border-top-right-radius:0;border-top-left-radius:0;display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin-top:-2px;padding:10px}.HVECegTS7Wq9zUojYKwg{background:none;border:0;border-radius:0;cursor:pointer;display:grid;gap:1px;grid-template-columns:var(--grid-template-columns);height:auto;overflow:hidden;padding:3px;width:40px}.inMuz2hImwcjmM50NjZL{background:#fff;border:1px solid #000;border-radius:1px;height:15px}.nxSoIujYGeTu8bJaTef0{position:relative}.nxSoIujYGeTu8bJaTef0>.components-button{height:100%;min-width:35px!important;padding-right:2px!important;padding-left:2px!important;position:absolute;left:0;top:0;width:35px!important}.nxSoIujYGeTu8bJaTef0>.components-button svg{height:25px;width:25px}.nxSoIujYGeTu8bJaTef0 .components-base-control,.nxSoIujYGeTu8bJaTef0 .components-base-control__field{margin:0!important}.nxSoIujYGeTu8bJaTef0 .components-base-control input,.nxSoIujYGeTu8bJaTef0 .components-base-control__field input{padding-left:30px!important}.nxSoIujYGeTu8bJaTef0 .gb-styles-builder-control{display:block;flex-grow:1}.s1yAQZ1lhdvyK7Rc3Fh6{display:flex}.U9ucXh3pWCfv__xBzHc5{display:grid;grid-template-columns:1fr 1fr}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button{border-radius:0;margin:0}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:nth-child(2n){margin-right:-1px}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:not(:nth-child(-n+2)){margin-top:-1px}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:first-child{border-top-right-radius:3px}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:nth-child(2){border-top-left-radius:3px}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:nth-last-child(2){border-bottom-right-radius:3px}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:last-child{border-bottom-left-radius:3px}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:nth-child(2n):nth-last-child(2){border-bottom-right-radius:0}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:nth-child(odd):last-child{border-bottom-right-radius:3px;grid-column:1/-1}.YKOygrEMPs0F3Z_ykrlJ{background-color:#fff;box-sizing:border-box;display:flex;flex-grow:1;font-size:10px;height:35px;justify-content:center;padding:2px}.YKOygrEMPs0F3Z_ykrlJ.f2m99dKbx_sCD_41l6HW{background:rgba(0,0,0,.07)}.YKOygrEMPs0F3Z_ykrlJ svg{max-width:100%;width:24px}.EF_Zj9a5xxxy2lEEERHD{align-items:flex-start;display:flex;position:relative}.EF_Zj9a5xxxy2lEEERHD .components-base-control:first-child{flex-grow:1}.EF_Zj9a5xxxy2lEEERHD .components-base-control,.EF_Zj9a5xxxy2lEEERHD .components-base-control__field{margin-bottom:0!important}.EF_Zj9a5xxxy2lEEERHD:has(button) .components-base-control .components-text-control__input[type=text]{padding-left:32px!important}.iFVXMLsKZb14fQwFzjtr{bottom:0;display:flex;gap:3px;position:absolute;left:5px;top:0}.rtl .iFVXMLsKZb14fQwFzjtr{right:5px;left:auto}.Z2u52JP3PVlVgMgtxOoA{align-items:center;display:flex;justify-content:center}.Z2u52JP3PVlVgMgtxOoA button.components-button{height:25px;justify-content:center!important;min-width:25px;padding:0;width:25px}.Z2u52JP3PVlVgMgtxOoA button.components-button svg{height:17px;width:17px}.ou7mkFi2exmWQF1LFH2A,.ou7mkFi2exmWQF1LFH2A button{align-items:center;display:flex;justify-content:center}.ou7mkFi2exmWQF1LFH2A button{border:1px solid rgba(0,0,0,.1);border-radius:3px;font-size:10px;height:25px;min-width:25px;padding:0 3px;width:auto}.ou7mkFi2exmWQF1LFH2A button:disabled{pointer-events:none}.ou7mkFi2exmWQF1LFH2A button.is-opened,.ou7mkFi2exmWQF1LFH2A button:hover{border-color:currentColor}.ou7mkFi2exmWQF1LFH2A button.is-opened{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.ou7mkFi2exmWQF1LFH2A button.is-opened,.ou7mkFi2exmWQF1LFH2A button.is-opened:hover{color:var(--wp-components-color-accent-inverted,#fff)}.kqlSt5nfwpEdpFGofTiF .components-menu-group{padding:8px}.kqlSt5nfwpEdpFGofTiF .components-menu-group>div[role=group]{display:grid;grid-template-columns:repeat(4,1fr)}.kqlSt5nfwpEdpFGofTiF .components-menu-group>div[role=group] button{border:none;display:flex;justify-content:center;min-height:auto;padding:6px 8px}.kqlSt5nfwpEdpFGofTiF .components-menu-group>div[role=group] button .components-menu-item__item{font-size:11px;margin:0;min-width:auto}.kqlSt5nfwpEdpFGofTiF .components-menu-group>div[role=group] button .components-menu-item__item svg{height:16px;width:16px}.Bh5wvxMbpeD7Old6u5ku .EF_Zj9a5xxxy2lEEERHD>.components-base-control{opacity:.5}.L6HWWaC2QKFnEnN7bIT6{position:relative}.L6HWWaC2QKFnEnN7bIT6[open]:before{background-color:#fafafa;border:1px solid hsla(0,0%,88%,.4);border-radius:2px;content:"";inset:-5px;position:absolute;z-index:-1}.L6HWWaC2QKFnEnN7bIT6[open] .g114QnXWTrDwrFsE6laq{margin-bottom:12px}.L6HWWaC2QKFnEnN7bIT6.ltOJpJtIkjQwu5WzqHDs:has(.gb-styles-builder-control.hidden){display:none}.L6HWWaC2QKFnEnN7bIT6.ltOJpJtIkjQwu5WzqHDs:has(.gb-styles-builder-control.visible){display:block}.g114QnXWTrDwrFsE6laq{align-items:center;cursor:pointer;display:inline-flex;display:flex;font-size:10px;font-weight:500;font-weight:700;line-height:1.4;text-transform:uppercase}.sIaYnrjcgPiojlFCimMT{margin-right:auto;padding:0 3px}.Ij3uz2Tos76qsxTARgIN{border-bottom:1px solid #e0e0e0}.nJ0YOLf4hv4V5YRWMK9W .gb-styles-builder-control{flex:1 1 calc(50% - var(--gap))}.nJ0YOLf4hv4V5YRWMK9W.Vf9zB1ay0IcmhqekEa44 .gb-styles-builder-control{flex-basis:100%}.PCFpCriUITvNSDLh29WU>.components-base-control__field{display:flex;flex-wrap:wrap}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy{display:grid;flex-basis:100%;gap:10px;grid-template-areas:"top right " "left bottom"}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy>div .components-base-control__field{margin-bottom:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy>div:nth-child(3){grid-area:left;-ms-grid-column:1;-ms-grid-row:3}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy>div:nth-child(4){grid-area:bottom;-ms-grid-column:3;-ms-grid-row:3}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr){gap:5px;grid-template-areas:". top top ." "left left right right" ". bottom bottom ."}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div{position:relative}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div .gb-styles-builder-control__header--label{align-items:center;display:flex}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.IUniyeyRV7mitJGnZJxt{-ms-grid-column:3;-ms-grid-row:1;-ms-grid-column-span:3;grid-area:top}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.IUniyeyRV7mitJGnZJxt .gb-styles-builder-control__header--label{justify-content:center}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.rtZsBhlaymLFTMUYSz5w{-ms-grid-column:1;-ms-grid-row:3;-ms-grid-column-span:3;grid-area:left}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.rtZsBhlaymLFTMUYSz5w .gb-styles-builder-control__header{margin:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.rtZsBhlaymLFTMUYSz5w .gb-styles-builder-control__header--label{bottom:calc(100% + 5px);right:0;position:absolute}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.a4S6waEBLgbbxc4Gpca9{-ms-grid-column:5;-ms-grid-row:3;-ms-grid-column-span:3;grid-area:right}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.a4S6waEBLgbbxc4Gpca9 .gb-styles-builder-control__header{margin:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.a4S6waEBLgbbxc4Gpca9 .gb-styles-builder-control__header--label{bottom:calc(100% + 5px);position:absolute;left:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.sMqsTM3VAgx5sL0EmorH{-ms-grid-column:3;-ms-grid-row:5;-ms-grid-column-span:3;display:flex;flex-direction:column-reverse;grid-area:bottom}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.sMqsTM3VAgx5sL0EmorH .gb-styles-builder-control__header--label{justify-content:center;margin-bottom:0;padding-top:5px}.gb-inspector-controls .pRlQr9CmDu49TywHgBRy.KGcUQH7pK3XM3yu4Qxqr,.gb-inspector-controls.gb-inspector-controls--filtering .pRlQr9CmDu49TywHgBRy{grid-template-areas:none!important;grid-template-columns:1fr}.gb-inspector-controls .pRlQr9CmDu49TywHgBRy.KGcUQH7pK3XM3yu4Qxqr .gb-styles-builder-control{display:flex;flex-direction:column-reverse}.gb-inspector-controls .pRlQr9CmDu49TywHgBRy .gb-styles-builder-control label,.gb-inspector-controls .pRlQr9CmDu49TywHgBRy .iJmJ_aKaNzdrA3YyUsro{font-size:10px;line-height:1;opacity:.5;text-transform:none}.gb-inspector-controls .pRlQr9CmDu49TywHgBRy svg{display:block;margin-top:4px}.rtl .E6kg5JIRw7FHi2ibUDQp>div:nth-child(2){grid-area:right;-ms-grid-column:3;-ms-grid-row:1}.rtl .E6kg5JIRw7FHi2ibUDQp>div:nth-child(3){grid-area:left;-ms-grid-column:1;-ms-grid-row:3}.gGSuNXklC1RtlLka8Mr7 .components-menu-item__item svg{height:24px;width:24px}.Xp7DkjqWuT0J3MPzVhQv{display:flex;gap:2px}.MS1hcxqG_B_dNPZ2hiiz .gb-styles-builder-control label{font-size:10px;line-height:1;opacity:.5;text-transform:none}.ZSLmLcDy4r_1MDxj8D9Q{align-items:center;display:flex;gap:5px}.ZSLmLcDy4r_1MDxj8D9Q>div{flex-grow:0;gap:0!important}.ZSLmLcDy4r_1MDxj8D9Q>div .components-base-control__field{margin-bottom:0}.ZSLmLcDy4r_1MDxj8D9Q .gb-unit-control{flex-grow:1}.ZSLmLcDy4r_1MDxj8D9Q .IWyVbLG8N8SDZHTVLCro button{border:1px solid #ccc;height:35px;min-width:35px;width:35px}.ZSLmLcDy4r_1MDxj8D9Q .IWyVbLG8N8SDZHTVLCro button svg{width:15px}.gq0KidCT2MFPMU3Sy9MC{display:flex;flex-grow:0}.gq0KidCT2MFPMU3Sy9MC>div{margin:0}.gq0KidCT2MFPMU3Sy9MC>div .components-base-control__help{font-size:10px;line-height:1;margin-top:5px;opacity:.7}.KskWBtPTKVESQKa8riNL.components-button{height:15px;margin-inline-start:5px;padding:0;text-align:center;width:15px}.KskWBtPTKVESQKa8riNL.components-button svg{height:18px;width:18px;fill:currentColor}.lUXQ0Lx1MC1lYwmNDp0N{flex-shrink:0}.yHcufASwe2Jc9Z6bbSSe{align-items:center;display:flex;font-style:normal}.yHcufASwe2Jc9Z6bbSSe img{display:block;height:21px}.k5bjOpbYApv66i_MPm_d{overflow:hidden;text-overflow:ellipsis}.OUJ7LVzaxq7e2rCHhJGc .components-custom-gradient-picker .components-angle-picker-control .components-spacer{align-self:flex-end;margin:0 0 3px}.OUJ7LVzaxq7e2rCHhJGc .components-custom-gradient-picker__ui-line{margin-bottom:10px}.OUJ7LVzaxq7e2rCHhJGc .components-circular-option-picker__custom-clear-wrapper{margin-top:10px}.OUJ7LVzaxq7e2rCHhJGc .components-circular-option-picker__custom-clear-wrapper:only-child{margin-top:0}.OUJ7LVzaxq7e2rCHhJGc .components-circular-option-picker__clear{padding-bottom:0;padding-top:0}.K0Xh6sLBOKGlq54ju8lK>*+*{margin-top:8px}.u5sTb9OBuu2Z6_BNsMTg{background-image:repeating-linear-gradient(-45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(-45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:100% 0,12px 12px;background-size:24px 24px;position:relative;width:100%}.ldpL4isspIMrUCUrLHAS{height:48px}.UxXQpt01aUwtQSbESr8e :is(input,select){height:40px!important}.UxXQpt01aUwtQSbESr8e .ZdM6NILLibKs0vJaYdCm,.VaGMuZgvmrALRwM8Hgls{flex-basis:50%}.sWX7uQcOHk9WuxD6tnUg{min-width:0;padding:0}.sU6_NtjVO2sOefYGgoa7{margin-bottom:0}.sU6_NtjVO2sOefYGgoa7>*+*{margin-top:10px}.pwnKGe7HVJxW4nUSFsfy .focal-point-picker__controls{display:none}.pwnKGe7HVJxW4nUSFsfy .components-text-control__input{height:35px}.xtKlTeuQp1AG_B4XbA4X.components-button{height:35px;line-height:35px}.J4GV12PDBJMrq6EbqlKt{border-bottom-left-radius:0;border-top-left-radius:0}.U55WhJgyJuVdKj0flf6G{display:flex} +._beQLZREZ1EkGHI1NaNk{isolation:isolate}._beQLZREZ1EkGHI1NaNk :where(.components-range-control__number,.components-base-control__field){margin-bottom:0!important}._beQLZREZ1EkGHI1NaNk .components-panel__body-toggle.components-button{font-size:12px;padding-bottom:12px;padding-top:12px}._beQLZREZ1EkGHI1NaNk .components-panel__body-toggle.components-button .components-panel__arrow{height:18px;width:18px}._beQLZREZ1EkGHI1NaNk .components-panel__body-toggle.components-button>svg{color:#0a0a0a;margin-right:0;margin-left:6px;order:-1}.jMpz1TCrgSNMZo4SM7LY{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;text-transform:uppercase;white-space:nowrap}.B0VorIO4MUddZuXHz0BA{margin-bottom:20px}.B0VorIO4MUddZuXHz0BA>button.components-button{margin-bottom:3px;margin-left:3px}.B0VorIO4MUddZuXHz0BA button.components-button{border:0;font-family:monospace;font-size:11px;height:auto;line-height:normal;padding:5px 10px}.B0VorIO4MUddZuXHz0BA button.components-button:not(.is-pressed){background:#eff4f9}.cXqPS5tF2tvT_mdiBl5x:not(:first-child){margin-top:20px}.ilPwrLxdSTvTQQXvvvC7 .components-base-control{margin:0}.ilPwrLxdSTvTQQXvvvC7 .components-toggle-control{margin-top:.5em}.sIHFoOk4wT0hgFhdVFYk{display:flex;margin-bottom:3px}.sIHFoOk4wT0hgFhdVFYk:not(:first-child){border-right:1px solid rgba(0,0,0,.1);padding-right:10px;position:relative}.sIHFoOk4wT0hgFhdVFYk:not(:first-child):before{background:rgba(0,0,0,.1);bottom:0;content:"";display:block;height:1px;right:0;position:absolute;top:calc(50% - 1px);width:7px}.sIHFoOk4wT0hgFhdVFYk .components-dropdown button.components-button{border-bottom-right-radius:0;border-right:0;border-top-right-radius:0;height:100%;min-width:10px;padding:5px 10px}.sIHFoOk4wT0hgFhdVFYk .components-dropdown button.components-button svg{height:17px;width:17px}.sIHFoOk4wT0hgFhdVFYk>button.components-button{border-radius:3px;border-bottom-left-radius:0;border-top-left-radius:0;flex-grow:1;min-height:27px;text-align:right}.sIHFoOk4wT0hgFhdVFYk>button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.sIHFoOk4wT0hgFhdVFYk:first-child>button.components-button{border-bottom-left-radius:3px;border-top-left-radius:3px}.TrA5H448nQRtf_p28KId{align-self:center;background:#e15e1f;border-radius:100%;display:inline-block;flex-shrink:0;height:8px;margin-right:5px;width:8px}.cYJLfI1DIDW4SuAFxsqG{display:block;font-size:11px;font-weight:500;margin-bottom:5px;margin-top:10px}.cnsxGVqMnPl1apKeuiup{margin-bottom:20px}.KdgRkc3rpk6NtCLYDnNp{background:#ffdfdf;margin-top:10px;padding:10px}.YNMQ6wONU_vudyJ05NDy{margin-bottom:16px;position:relative;z-index:10002}.MEcBZjNjsEeGH_BcIM5r{display:flex;gap:10px;justify-content:space-between;margin-top:20px}.end0waUJZgfs2Cg9LNbP{font-family:monospace;font-size:11px;font-weight:600}.XI7PBzBf6xATaHCgZ3_g{background:#fafafa;border-right-color:currentColor;margin-top:10px}.XI7PBzBf6xATaHCgZ3_g .components-notice__content{margin-left:0}.kdfxUCrijWG1oGcXYKL7 svg{height:20px;width:20px}.io6Dcs9lUe3YHzZf5WBl.components-button.has-text{display:flex;flex-direction:row-reverse;gap:0;padding-right:8px;padding-left:6px}.io6Dcs9lUe3YHzZf5WBl.components-button.has-text svg{height:17px;width:17px}.KCAL3DqzDqGghFCeFVof{display:flex;gap:5px;padding-top:10px}.KCAL3DqzDqGghFCeFVof button.components-button{box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);font-family:inherit;padding:3px 6px}.KCAL3DqzDqGghFCeFVof button.components-button:first-child:last-child{border-radius:2px}.L_uKqLTrfKtCBl5z3T9k{border-bottom:1px solid rgba(0,0,0,.2);border-right:1px solid rgba(0,0,0,.2);height:13px;width:8px}.clD1mjOXD5QSIjgbS37a{padding:15px}.EolSL6L_PG4VOw2hXvcU{margin-bottom:10px}.EolSL6L_PG4VOw2hXvcU .components-button-group{display:flex}.EolSL6L_PG4VOw2hXvcU .components-button-group button{flex:1}.O_etAvKgI1XzHx2SlLU3{font-size:11px;font-weight:400;margin-top:5px;opacity:.6}.Hail9xhcDPj9DlVE0Pda{display:flex;gap:10px}.dhmW1Y4sYYCEpL5SW6NI .components-popover__content{min-width:300px}.NtwgV2EUsG2omMzSRI0K .components-button.has-icon{min-width:24px;padding:4px}.UOvXMpPNlYfOKDhTmmew{flex-grow:1;margin:0!important}.UOvXMpPNlYfOKDhTmmew .components-input-control__input{height:32px!important;min-height:32px!important}.gOTdkoKuZf8labfeSFi4{background-color:#fff;border-bottom:1px solid #ddd;margin:-16px -16px 0;padding:16px;position:sticky;top:var(--topOffset);z-index:10001}.rKLQr8TKqzeWpWLGZftZ,.zmYGpOnnlJOzZRM2Mxbl{position:relative}.rKLQr8TKqzeWpWLGZftZ{background:#fff;border:1px solid #949494;border-radius:2px;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e;cursor:pointer;display:block;font-family:inherit;font-size:13px;height:35px;margin:0;max-width:none;min-height:35px;overflow:hidden;padding:0 8px 0 26px;text-align:right;text-overflow:ellipsis;white-space:nowrap;width:100%}.rKLQr8TKqzeWpWLGZftZ.dKwvrnfl7uZHiuJgxKIz .d5CsyxMsla7yukTJEfVX{transform:translateY(-50%) rotate(-180deg);transform-origin:center}.d5CsyxMsla7yukTJEfVX{position:absolute;left:8px;top:55%;transform:translateY(-50%)}.d5CsyxMsla7yukTJEfVX svg{display:block}.RieWgm_TWBPqYEI7qrA3{background:#fff;border:1px solid #949494;border-top:none;right:0;margin:0;padding:0;position:absolute;left:0;z-index:10}.RieWgm_TWBPqYEI7qrA3.NJR9d9TclQx9DBbC0aZe{display:none}.LJ4lOpDClk0nYRNJcefv{cursor:pointer;font-size:16px;margin:0;padding:6px 8px}.LJ4lOpDClk0nYRNJcefv.GhiAFuagoNr03XH9qRSe{background:#ddd}.LJ4lOpDClk0nYRNJcefv.s9OE8j1y5Kgf6LwxIdVm{background:#fafafa}.LJ4lOpDClk0nYRNJcefv.D39BwOKxZY5h3gDqhmqb{align-items:center;display:flex;gap:8px;justify-content:space-between}.YFfQpRtpVrWQYTjfA46i{margin-top:8px}.wbr3xTdE1CNsHtyepu2f{margin:0}.wbr3xTdE1CNsHtyepu2f>:first-child{border-top:1px solid #e1e1e1}.wbr3xTdE1CNsHtyepu2f>*{border-bottom:1px solid #e1e1e1;margin:0}.wbr3xTdE1CNsHtyepu2f.is-dragging{background-color:#bcecfb}.wbr3xTdE1CNsHtyepu2f .gb-sortable-listitem{background-color:#fefefe;gap:0}.wbr3xTdE1CNsHtyepu2f .gb-sortable-listitem.is-dragging{background-color:#f0f0f0}.wj1voJ7HsdHvyyjdyjjC{display:none;flex:1 1 auto}.IEDsGgHoiewB72FuYnZN{background-image:linear-gradient(-45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),linear-gradient(-45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-position:100% 0,7.5px 7.5px;background-size:30px 30px;border-radius:50%;position:relative}.IEDsGgHoiewB72FuYnZN:after{content:"";height:100%;right:0;position:absolute;top:0;width:100%}.y4EzXyzXxVg48NODe8vr{border-radius:50%;height:15px;width:15px}.l7nYGZDTccz_q3wRaPi2{background-color:#fff;border:1px solid #ccc;border-radius:50%;justify-content:center}.DN5M8vx4N_0BCVgoLOes,.l7nYGZDTccz_q3wRaPi2{align-items:center;display:flex}.DN5M8vx4N_0BCVgoLOes{font-family:monospace;font-size:12px;height:36px;justify-content:flex-start;padding:5px 8px 5px 5px}.DN5M8vx4N_0BCVgoLOes:nth-child(odd){background-color:#f3f3f3}.DN5M8vx4N_0BCVgoLOes svg{height:16px;width:16px}.DN5M8vx4N_0BCVgoLOes:hover .wj1voJ7HsdHvyyjdyjjC{display:inline-flex;justify-content:flex-end}.DN5M8vx4N_0BCVgoLOes:hover .l7nYGZDTccz_q3wRaPi2{border:1px solid #fff}.DN5M8vx4N_0BCVgoLOes:hover{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}.DN5M8vx4N_0BCVgoLOes:hover svg{fill:#fff}.ocg7EGgem4ZIHgEZQu_6{display:-webkit-box;flex:1 1 auto;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.ocg7EGgem4ZIHgEZQu_6:not(:first-child){margin-right:10px}.ocg7EGgem4ZIHgEZQu_6>span{white-space:nowrap}.CBb1Pwp3kYhrOKuepTrF>.components-base-control__field{display:grid;gap:3px;grid-template-columns:1fr auto;position:relative}.CBb1Pwp3kYhrOKuepTrF>.components-base-control__field>label{align-items:center;display:flex;grid-column:1;margin-bottom:0}.zvat3Q07S377Zb0WfL1Y{align-items:center;display:inline-flex;gap:2px;grid-column:2;margin-right:auto}.zvat3Q07S377Zb0WfL1Y svg{height:20px;width:20px}.hR7OqMf_5gWUqSRAX3dQ{border:none;font-size:11px;font-weight:500;height:16px;line-height:1.4;margin:0;padding:0;text-transform:uppercase}.hR7OqMf_5gWUqSRAX3dQ:hover{color:inherit}.hR7OqMf_5gWUqSRAX3dQ:focus:not(:disabled){box-shadow:none;outline:none}.hR7OqMf_5gWUqSRAX3dQ svg{display:block;height:18px;margin-right:2px;width:18px}.hR7OqMf_5gWUqSRAX3dQ[aria-expanded=true]{color:inherit}.DUGv5Rxlew6J3N9KogMI{grid-column:1/-1}.DUGv5Rxlew6J3N9KogMI:not(:empty){padding-top:10px}.DDhoA91t6p_RSabkPcf3{height:24px}.DDhoA91t6p_RSabkPcf3 .components-button.has-icon{height:24px;min-width:24px;padding:2px;width:24px}.t3LKxwUzjexhetMplHQl .components-popover__content{min-width:240px}.t3LKxwUzjexhetMplHQl .components-menu-group button svg{height:20px;width:20px}.t3LKxwUzjexhetMplHQl .components-menu-group button.nZz2pLiQ2Lo0AaIbySR6{opacity:.8;pointer-events:none}.uIc9SzfhdI_ANvvmKZcE{padding:0 8px 4px}.nSwxZVH8ScixpQ2BmynZ{display:flex;gap:10px;justify-content:space-between;margin-top:20px}.EbWf6NUYLnSr0XfmGdZN{background:#fafafa;box-shadow:inset 0 0 4px 1px rgba(0,0,0,.05);padding:12px}.EbWf6NUYLnSr0XfmGdZN .components-base-control__field{margin-bottom:0}.vDX5ZbixYbW0ruJiYEVX{margin-bottom:2em}.G4ZmuvVdiWn2_ZQdrNZp{display:flex;justify-content:space-between}.fDpqJqlzwUwWvDrplYSg{margin:.4em 0 2em}.SPY2Sdnjy2rnJsiQFtsU{display:flex!important;gap:0 6px;margin-bottom:5px}.Q2UeBb6zVuXmr__my7aT,.SPY2Sdnjy2rnJsiQFtsU{align-items:center}.Q2UeBb6zVuXmr__my7aT{display:inline-flex;font-size:10px;font-weight:500;line-height:1.4;line-height:24px;margin-bottom:0;text-transform:uppercase}.pGFZX3ruHHyEz0_Fvd_y{align-items:center;display:flex;margin-right:auto}.qVLiSZAPL7gH85gj3P5g{height:24px}.qVLiSZAPL7gH85gj3P5g .components-button.has-icon{height:24px;min-width:24px;padding:2px;width:24px}.keFZJsNURjdJzetmN7q1{line-height:0}.keFZJsNURjdJzetmN7q1 .components-menu-group button svg{height:20px;width:20px}.keFZJsNURjdJzetmN7q1 .components-popover__content{min-width:240px}.keFZJsNURjdJzetmN7q1 dl{margin:0;min-width:215px}.keFZJsNURjdJzetmN7q1 dl dt{font-weight:700}.keFZJsNURjdJzetmN7q1 dl dd{margin-right:0}.keFZJsNURjdJzetmN7q1 dl dd:not(:last-child){margin-bottom:10px}.S_7Mee_tUZyxquzyyhXf{box-sizing:border-box;position:relative}.S_7Mee_tUZyxquzyyhXf.EjSdpyoqNnau6XU9m_im{display:grid;gap:0 5px;grid-template-columns:minmax(0,1fr) auto}.S_7Mee_tUZyxquzyyhXf.EjSdpyoqNnau6XU9m_im>*{grid-column:1}.S_7Mee_tUZyxquzyyhXf.EjSdpyoqNnau6XU9m_im .qVLiSZAPL7gH85gj3P5g{grid-column:2;transform:translateY(4px)}.UGqEIHCNur2jkY0KH61H{padding:0 8px 4px}.UGqEIHCNur2jkY0KH61H>:last-child{margin-bottom:0}.JtbLZxnFrJKGTnJwHpu1{height:20px;left:8px;top:8px;width:20px}.JtbLZxnFrJKGTnJwHpu1.has-icon{min-width:20px;padding:3px}.wwZXbtCiKgyZfunTtT8d{background-color:#639;border-radius:4px;color:#fff;font-size:12px;margin-right:6px;padding:2px 4px}.wwZXbtCiKgyZfunTtT8d.yZOtiHB_QhT3asx8z66I{background-color:#f0b849}.T3R15coh19iViXl7tTQE{background-color:#639;border-radius:100%;height:8px;margin-right:6px;padding:0;width:8px}.T3R15coh19iViXl7tTQE>*{display:none}.T3R15coh19iViXl7tTQE.yZOtiHB_QhT3asx8z66I{background-color:#f0b849}@supports selector(:has(a,b)){.has-global-style label:has(.T3R15coh19iViXl7tTQE){padding-left:14px;position:relative}.has-global-style label:has(.T3R15coh19iViXl7tTQE)+.components-button{margin-right:8px}.has-global-style .T3R15coh19iViXl7tTQE{position:absolute;transform:translateY(50%)}}@supports not selector(:has(a,b)){.has-global-style label{align-items:center;display:flex}}.NAK8N2eGrLkJMFhb24Tw{flex-grow:1}.CrCOieTDiyA3Wo23_Qgn .components-popover__content{background-color:#fafafa;font-family:monospace;font-size:11px;max-width:min(400px,100vw);padding:16px 8px 8px 16px;width:-moz-max-content;width:max-content}.m6J0Djac6HSlveha2bhT{height:inherit;line-height:inherit;padding:0}.JHwKMapQBGU48LjE4edR{margin-right:12px}.BIescFqR618CiiAp66Ok{padding-right:12px;position:relative}.BIescFqR618CiiAp66Ok:focus .ul0em3OHCyNj4T6wHdS3,.BIescFqR618CiiAp66Ok:focus-within .ul0em3OHCyNj4T6wHdS3,.BIescFqR618CiiAp66Ok:hover .ul0em3OHCyNj4T6wHdS3{display:inline-flex}.ul0em3OHCyNj4T6wHdS3{display:none;height:20px!important;right:-12px;line-height:20px!important;min-width:20px!important;position:absolute;top:0;width:20px!important}.MHKuQQdbx0VHBoze4CHB [data-selector]{color:#757575}.MHKuQQdbx0VHBoze4CHB [data-property]{color:#2271b1}.JtbLZxnFrJKGTnJwHpu1{height:20px!important;line-height:20px!important;min-width:20px!important;position:absolute;left:0;top:0;width:20px!important}.Q4_95wjbLPOxIvH375IJ.gb-inspector-controls--filtering .components-panel__body-title{pointer-events:none}.Q4_95wjbLPOxIvH375IJ.gb-inspector-controls--filtering .components-panel__body-toggle svg:not(.components-panel__icon){display:none}.Q4_95wjbLPOxIvH375IJ input::-webkit-inner-spin-button,.Q4_95wjbLPOxIvH375IJ input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.Q4_95wjbLPOxIvH375IJ input[type=number]{-moz-appearance:textfield}.Q4_95wjbLPOxIvH375IJ:not(:has(.gb-styles-builder-control.visible)) .WnWPZZWG_5lgPFahXYyv.qtYUinEI4ZCq2SKlqjOZ{display:block}.Q4_95wjbLPOxIvH375IJ .components-flex-block:has(.gb-styles-builder-control.hidden:only-child){display:none}.Q4_95wjbLPOxIvH375IJ .components-base-control .components-input-control__input,.Q4_95wjbLPOxIvH375IJ .components-base-control .components-select-control__input,.Q4_95wjbLPOxIvH375IJ .components-base-control .components-text-control__input,.Q4_95wjbLPOxIvH375IJ .components-base-control .components-text-control__input[type=color],.Q4_95wjbLPOxIvH375IJ .components-base-control .components-text-control__input[type=number],.Q4_95wjbLPOxIvH375IJ .components-base-control .components-text-control__input[type=text],.Q4_95wjbLPOxIvH375IJ .components-base-control .components-text-control__input[type=url]{height:35px!important;min-height:35px!important;padding-right:10px!important;padding-left:10px!important}.Q4_95wjbLPOxIvH375IJ .components-base-control .gb-stack>.components-button:not(.is-compact):not(.is-small){height:35px!important;min-height:35px!important}.WnWPZZWG_5lgPFahXYyv{display:none}.YzcJARI0jtDyHOPN_Pmm{margin-right:16px;margin-left:16px}.YzcJARI0jtDyHOPN_Pmm.u0l1RpwLFjS3kzoimUMX{margin-bottom:16px;margin-top:16px}.GHGTIuGFWhqTp_J9_nsx.wIHdoZo8md5DrJ9sEaM5:where(:not(:has(.gb-styles-builder-panel__content>.gb-styles-builder-control.visible))){display:none}.GHGTIuGFWhqTp_J9_nsx.wIHdoZo8md5DrJ9sEaM5:has(.gb-panel-section .gb-styles-builder-control.visible){display:block}.VFAmHPT1TFBBIljAeR7m.Kb3Er53JB_rc7ApXXQW6{--angle:-90deg}.BoLE9XSOsBFiKLK7YQp5.Kb3Er53JB_rc7ApXXQW6{--angle:90deg}.BoLE9XSOsBFiKLK7YQp5.h32Unw9c539Lz1Q2aMv8,.VFAmHPT1TFBBIljAeR7m.h32Unw9c539Lz1Q2aMv8{--reverse:-1,1}.BoLE9XSOsBFiKLK7YQp5 .gb-button-icon-control .components-button svg,.VFAmHPT1TFBBIljAeR7m .gb-button-icon-control .components-button svg{transform:rotate(var(--angle,0deg)) scale(var(--reverse,1))}.zgkkZANZwXqBZgReRDZQ{display:flex}.zgkkZANZwXqBZgReRDZQ button{display:flex;flex-grow:1;font-size:12px;justify-content:center}.zgkkZANZwXqBZgReRDZQ button.uLw3ahuDnKx9S5fpzHNn{background:rgba(0,0,0,.07)}.zgkkZANZwXqBZgReRDZQ button svg{width:15px}.KyBT3CpPILZIw3nOozTp{background:#efefef;border-radius:3px;border-top-right-radius:0;border-top-left-radius:0;display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin-top:-2px;padding:10px}.mph0DI7wT2miOOStjFow{background:none;border:0;border-radius:0;cursor:pointer;display:grid;gap:1px;grid-template-columns:var(--grid-template-columns);height:auto;overflow:hidden;padding:3px;width:40px}.AGUoqbXhTSPwOeqXxdCw{background:#fff;border:1px solid #000;border-radius:1px;height:15px}.D_CiAJK3wC3VO5T56qHB{position:relative}.D_CiAJK3wC3VO5T56qHB>.components-button{height:100%;min-width:35px!important;padding-right:2px!important;padding-left:2px!important;position:absolute;left:0;top:0;width:35px!important}.D_CiAJK3wC3VO5T56qHB>.components-button svg{height:25px;width:25px}.D_CiAJK3wC3VO5T56qHB .components-base-control,.D_CiAJK3wC3VO5T56qHB .components-base-control__field{margin:0!important}.D_CiAJK3wC3VO5T56qHB .components-base-control input,.D_CiAJK3wC3VO5T56qHB .components-base-control__field input{padding-left:30px!important}.D_CiAJK3wC3VO5T56qHB .gb-styles-builder-control{display:block;flex-grow:1}.UnofI3BhsT7DIti_pKQG{display:flex}.CHjAr3oDItc_Ei3RRROX{display:grid;grid-template-columns:1fr 1fr}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button{border-radius:0;margin:0}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:nth-child(2n){margin-right:-1px}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:not(:nth-child(-n+2)){margin-top:-1px}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:first-child{border-top-right-radius:3px}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:nth-child(2){border-top-left-radius:3px}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:nth-last-child(2){border-bottom-right-radius:3px}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:last-child{border-bottom-left-radius:3px}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:nth-child(2n):nth-last-child(2){border-bottom-right-radius:0}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:nth-child(odd):last-child{border-bottom-right-radius:3px;grid-column:1/-1}.cvZ249JsgBL_b3vtK8Sv{background-color:#fff;box-sizing:border-box;display:flex;flex-grow:1;font-size:10px;height:35px;justify-content:center;padding:2px}.cvZ249JsgBL_b3vtK8Sv.xEdfT0lWkniW5AACnpxt{background:rgba(0,0,0,.07)}.cvZ249JsgBL_b3vtK8Sv svg{max-width:100%;width:24px}.B8VOAqTJqMh6lwIEPHvQ{align-items:flex-start;display:flex;position:relative}.B8VOAqTJqMh6lwIEPHvQ .components-base-control:first-child{flex-grow:1}.B8VOAqTJqMh6lwIEPHvQ .components-base-control,.B8VOAqTJqMh6lwIEPHvQ .components-base-control__field{margin-bottom:0!important}.B8VOAqTJqMh6lwIEPHvQ:has(button) .components-base-control .components-text-control__input[type=text]{padding-left:32px!important}.c6jzdWOpz80VWp1scmAc{bottom:0;display:flex;gap:3px;position:absolute;left:5px;top:0}.rtl .c6jzdWOpz80VWp1scmAc{right:5px;left:auto}.GJQsQEez1XBMEeKZrekA{align-items:center;display:flex;justify-content:center}.GJQsQEez1XBMEeKZrekA button.components-button{height:25px;justify-content:center!important;min-width:25px;padding:0;width:25px}.GJQsQEez1XBMEeKZrekA button.components-button svg{height:17px;width:17px}.w0K4iKteMT6yizzo2Hsw,.w0K4iKteMT6yizzo2Hsw button{align-items:center;display:flex;justify-content:center}.w0K4iKteMT6yizzo2Hsw button{border:1px solid rgba(0,0,0,.1);border-radius:3px;font-size:10px;height:25px;min-width:25px;padding:0 3px;width:auto}.w0K4iKteMT6yizzo2Hsw button:disabled{pointer-events:none}.w0K4iKteMT6yizzo2Hsw button.is-opened,.w0K4iKteMT6yizzo2Hsw button:hover{border-color:currentColor}.w0K4iKteMT6yizzo2Hsw button.is-opened{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.w0K4iKteMT6yizzo2Hsw button.is-opened,.w0K4iKteMT6yizzo2Hsw button.is-opened:hover{color:var(--wp-components-color-accent-inverted,#fff)}.fPt28OUocui1dDoB1xyu .components-menu-group{padding:8px}.fPt28OUocui1dDoB1xyu .components-menu-group>div[role=group]{display:grid;grid-template-columns:repeat(4,1fr)}.fPt28OUocui1dDoB1xyu .components-menu-group>div[role=group] button{border:none;display:flex;justify-content:center;min-height:auto;padding:6px 8px}.fPt28OUocui1dDoB1xyu .components-menu-group>div[role=group] button .components-menu-item__item{font-size:11px;margin:0;min-width:auto}.fPt28OUocui1dDoB1xyu .components-menu-group>div[role=group] button .components-menu-item__item svg{height:16px;width:16px}.sCx2ZPJ1of6T_tDkH_4c .B8VOAqTJqMh6lwIEPHvQ>.components-base-control{opacity:.5}.o1lCSUrpCUlc5A93xPrJ{position:relative}.o1lCSUrpCUlc5A93xPrJ[open]:before{background-color:#fafafa;border:1px solid hsla(0,0%,88%,.4);border-radius:2px;content:"";inset:-5px;position:absolute;z-index:-1}.o1lCSUrpCUlc5A93xPrJ[open] .rpgdg0SSQiGRARSyFlSS{margin-bottom:12px}.o1lCSUrpCUlc5A93xPrJ.cyuju2GJDbWyqf5U9L3l:has(.gb-styles-builder-control.hidden){display:none}.o1lCSUrpCUlc5A93xPrJ.cyuju2GJDbWyqf5U9L3l:has(.gb-styles-builder-control.visible){display:block}.rpgdg0SSQiGRARSyFlSS{align-items:center;cursor:pointer;display:inline-flex;display:flex;font-size:10px;font-weight:500;font-weight:700;line-height:1.4;text-transform:uppercase}.HGkaFei6kut9o_uLvDjM{margin-right:auto;padding:0 3px}.mQGCsCZDSgE9pRJOnwia{border-bottom:1px solid #e0e0e0}.ySp1_zkvicNdYxsDc9Tg .gb-styles-builder-control{flex:1 1 calc(50% - var(--gap))}.ySp1_zkvicNdYxsDc9Tg.namiLqYFPoXSBrbIaUMs .gb-styles-builder-control{flex-basis:100%}.uLOXs5mIjq23fWdLWa3k>.components-base-control__field{display:flex;flex-wrap:wrap}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK{display:grid;flex-basis:100%;gap:10px;grid-template-areas:"top right " "left bottom"}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK>div .components-base-control__field{margin-bottom:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK>div:nth-child(3){grid-area:left;-ms-grid-column:1;-ms-grid-row:3}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK>div:nth-child(4){grid-area:bottom;-ms-grid-column:3;-ms-grid-row:3}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t){gap:5px;grid-template-areas:". top top ." "left left right right" ". bottom bottom ."}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div{position:relative}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div .gb-styles-builder-control__header--label{align-items:center;display:flex}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.QElevkje66lfTl4cuwr2{-ms-grid-column:3;-ms-grid-row:1;-ms-grid-column-span:3;grid-area:top}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.QElevkje66lfTl4cuwr2 .gb-styles-builder-control__header--label{justify-content:center}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.CPM5pS5rzn1Oa0W6R7FH{-ms-grid-column:1;-ms-grid-row:3;-ms-grid-column-span:3;grid-area:left}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.CPM5pS5rzn1Oa0W6R7FH .gb-styles-builder-control__header{margin:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.CPM5pS5rzn1Oa0W6R7FH .gb-styles-builder-control__header--label{bottom:calc(100% + 5px);right:0;position:absolute}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.vv_IKEQ1ZCdZNnSQRNA8{-ms-grid-column:5;-ms-grid-row:3;-ms-grid-column-span:3;grid-area:right}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.vv_IKEQ1ZCdZNnSQRNA8 .gb-styles-builder-control__header{margin:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.vv_IKEQ1ZCdZNnSQRNA8 .gb-styles-builder-control__header--label{bottom:calc(100% + 5px);position:absolute;left:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.ajRN30F56YZPDW8WVFX1{-ms-grid-column:3;-ms-grid-row:5;-ms-grid-column-span:3;display:flex;flex-direction:column-reverse;grid-area:bottom}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.ajRN30F56YZPDW8WVFX1 .gb-styles-builder-control__header--label{justify-content:center;margin-bottom:0;padding-top:5px}.gb-inspector-controls.gb-inspector-controls--filtering .TvuhW9CdmGXLAA9il_YK{display:grid;gap:10px}.gb-inspector-controls .TvuhW9CdmGXLAA9il_YK.mg3aRxMNkJswlLXmbc_t,.gb-inspector-controls.gb-inspector-controls--filtering .TvuhW9CdmGXLAA9il_YK{grid-template-areas:none!important;grid-template-columns:1fr}.gb-inspector-controls .TvuhW9CdmGXLAA9il_YK.mg3aRxMNkJswlLXmbc_t .gb-styles-builder-control{display:flex;flex-direction:column-reverse}.gb-inspector-controls .TvuhW9CdmGXLAA9il_YK .OQfw2jErVUghY4ELWRXQ,.gb-inspector-controls .TvuhW9CdmGXLAA9il_YK .gb-styles-builder-control label{font-size:10px;line-height:1;opacity:.5;text-transform:none}.gb-inspector-controls .TvuhW9CdmGXLAA9il_YK svg{display:block;margin-top:4px}.rtl .FnMClCYu3ERvyT65sLhY>div:nth-child(2){grid-area:right;-ms-grid-column:3;-ms-grid-row:1}.rtl .FnMClCYu3ERvyT65sLhY>div:nth-child(3){grid-area:left;-ms-grid-column:1;-ms-grid-row:3}.sHjKPywBYBsV2H0Jryvw .components-menu-item__item svg{height:24px;width:24px}.x1Ic1Ll1wI1vcqsur8Mz{display:flex;gap:2px}.LRvHIGv_KGa2bSMR9Jaz .gb-styles-builder-control label{font-size:10px;line-height:1;opacity:.5;text-transform:none}.Vnf_lJBS5iuXn9zbu5MR{align-items:center;display:flex;gap:5px}.Vnf_lJBS5iuXn9zbu5MR>div{flex-grow:0;gap:0!important}.Vnf_lJBS5iuXn9zbu5MR>div .components-base-control__field{margin-bottom:0}.Vnf_lJBS5iuXn9zbu5MR .gb-unit-control{flex-grow:1}.Vnf_lJBS5iuXn9zbu5MR .EeCMoXJgf8PSan_tp3sw button{border:1px solid #ccc;height:35px;min-width:35px;width:35px}.Vnf_lJBS5iuXn9zbu5MR .EeCMoXJgf8PSan_tp3sw button svg{width:15px}.tucdNfG9RtPOLhlEaywP{display:flex;flex-grow:0}.tucdNfG9RtPOLhlEaywP>div{margin:0}.tucdNfG9RtPOLhlEaywP>div .components-base-control__help{font-size:10px;line-height:1;margin-top:5px;opacity:.7}.TUCdF7Lx0BYwXfg5yjhx.components-button{height:15px;margin-inline-start:5px;padding:0;text-align:center;width:15px}.TUCdF7Lx0BYwXfg5yjhx.components-button svg{height:18px;width:18px;fill:currentColor}.sHuHr5kM6xOBOFFfmGpr{flex-shrink:0}.fXFgJAxmLLUPjAL1_R1n{align-items:center;display:flex;font-style:normal}.fXFgJAxmLLUPjAL1_R1n img{display:block;height:21px}.kdt8o8TCjBzm4VAkZZsM{overflow:hidden;text-overflow:ellipsis}.HXBoYZy0LsrG0A2KPxEN .components-custom-gradient-picker .components-angle-picker-control .components-spacer{align-self:flex-end;margin:0 0 3px}.HXBoYZy0LsrG0A2KPxEN .components-custom-gradient-picker__ui-line{margin-bottom:10px}.HXBoYZy0LsrG0A2KPxEN .components-circular-option-picker__custom-clear-wrapper{margin-top:10px}.HXBoYZy0LsrG0A2KPxEN .components-circular-option-picker__custom-clear-wrapper:only-child{margin-top:0}.HXBoYZy0LsrG0A2KPxEN .components-circular-option-picker__clear{padding-bottom:0;padding-top:0}.ZQ2jczeEzclMSq2Y6Ycl>*+*{margin-top:8px}.kQhlV9f3Se0c02RlYBcS{background-image:repeating-linear-gradient(-45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(-45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:100% 0,12px 12px;background-size:24px 24px;position:relative;width:100%}.VYOL7GnBkf6Ar5jt1Jo5{height:48px}.q7yvbdMjv5bBfP4xTul8 :is(input,select){height:40px!important}._EBPOE6iJi31mNASb0jM,.q7yvbdMjv5bBfP4xTul8 .lmdboHK0j89_NNsHTa44{flex-basis:50%}.l5bareCDpJkw8udwU7nC{min-width:0;padding:0}.g5_kFvTqIN8NCdhdSwKl{margin-bottom:0}.g5_kFvTqIN8NCdhdSwKl>*+*{margin-top:10px}.PDhnyDecXzi_7wPZzgsp .focal-point-picker__controls{display:none}.PDhnyDecXzi_7wPZzgsp .components-text-control__input{height:35px}.hp6b8k8k_jvTKv07UXJ7.components-button{height:35px;line-height:35px}.GYXAKGkqN8o8ViTiPrmr{border-bottom-left-radius:0;border-top-left-radius:0}.NoZsOEI44T12k6kp6rBl{display:flex} .IpVd14D6_9_6nibT1bMp .components-base-control .components-input-control__input,.IpVd14D6_9_6nibT1bMp .components-base-control .components-select-control__input,.IpVd14D6_9_6nibT1bMp .components-base-control .components-text-control__input,.IpVd14D6_9_6nibT1bMp .components-base-control .components-text-control__input[type=color],.IpVd14D6_9_6nibT1bMp .components-base-control .components-text-control__input[type=number],.IpVd14D6_9_6nibT1bMp .components-base-control .components-text-control__input[type=text],.IpVd14D6_9_6nibT1bMp .components-base-control .components-text-control__input[type=url],.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .components-input-control__input,.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .components-select-control__input,.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .components-text-control__input,.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .components-text-control__input[type=color],.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .components-text-control__input[type=number],.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .components-text-control__input[type=text],.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .components-text-control__input[type=url]{height:35px!important;min-height:35px!important;padding-right:10px!important;padding-left:10px!important}.IpVd14D6_9_6nibT1bMp .components-base-control .gb-stack>.components-button:not(.is-compact):not(.is-small),.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .gb-stack>.components-button:not(.is-compact):not(.is-small){height:35px!important;min-height:35px!important}.ute8pCHQmVYd9K5Qx4hW:not(:first-child){border-top:1px solid #ddd}.ute8pCHQmVYd9K5Qx4hW .components-tab-panel__tabs button{flex-grow:1}.ute8pCHQmVYd9K5Qx4hW .gb-styles-builder{border-top:1px solid #ddd;padding:16px}.ute8pCHQmVYd9K5Qx4hW .gb-styles-builder .gb-inspector-controls .components-base-control{margin-bottom:0}.ute8pCHQmVYd9K5Qx4hW .gb-inspector-controls{margin-right:-16px;margin-left:-16px}.ute8pCHQmVYd9K5Qx4hW.IbI9OE7ZkHsb96yIuS6K~.components-panel__body{display:none}.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel [id$=styles-view]) .gb-block-styles-tab-panel~*,.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel [id$=styles-view])+div{display:none!important} diff --git a/dist/packages.asset.php b/dist/packages.asset.php index 708503e39..6fb034377 100644 --- a/dist/packages.asset.php +++ b/dist/packages.asset.php @@ -1 +1 @@ - array(), 'version' => '3d1b3cfac46b37102e5f'); + array(), 'version' => '80cb1b699fa98f98bf96'); diff --git a/dist/packages.css b/dist/packages.css index 45abcbd38..d052ba09d 100644 --- a/dist/packages.css +++ b/dist/packages.css @@ -1,3 +1,3 @@ .e6O4SPcPv7bj7YqOEmNY{position:relative;width:100%}.j9lF5gTQkLDyWMaitOmh{--padding-right:8px;display:flex;gap:0 4px}.j9lF5gTQkLDyWMaitOmh.es4LMAAOKCNo5fT9VKtL{--padding-right:24px}.j9lF5gTQkLDyWMaitOmh.UhT6Uk1ZtQUNcJg1nBBg.es4LMAAOKCNo5fT9VKtL .JK1cHDK9cpKVFGggL7LU{padding-right:calc(var(--padding-right) + 20px)}.Q68VFpy3X0eyJK1_XRja{flex-grow:1;position:relative}.JK1cHDK9cpKVFGggL7LU{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:#8c8f94;border-radius:3px;box-shadow:none;color:#2c3338;cursor:pointer;font-size:16px;line-height:2;min-height:30px;min-width:0;padding:0 var(--padding-right) 0 8px;vertical-align:middle;width:100%}@media(min-width:600px){.JK1cHDK9cpKVFGggL7LU{font-size:13px}}.JK1cHDK9cpKVFGggL7LU.pT4aDdn7WDOtf8LktRNU{outline-offset:2px}.lp4jH71YULsLQxRUabwN{display:block;height:12px;width:12px}.BtPab7ae0nWY5rnuRlsT{background:transparent;border:none;box-shadow:none;height:100%;right:0;top:0}.BtPab7ae0nWY5rnuRlsT,.ww5amWr_Ul0_wa771HwI{position:absolute}.ww5amWr_Ul0_wa771HwI{background-color:#fff;border:1px solid #d3d6d9;color:#0b0c0c;margin:8px 0 0;max-height:342px;overflow-x:hidden;padding:0;transform:translateZ(0);width:calc(100% - 2px);z-index:200}.ww5amWr_Ul0_wa771HwI.UhBZrjKaXeFc7wVxEgUE{display:block}.ww5amWr_Ul0_wa771HwI.rkgd8u9XeQaKdUh4V9gk{display:none}.tMJK6UCzzd4dRKnNi1nq{cursor:pointer;display:block;margin:0;padding:8px 12px;position:relative}.tMJK6UCzzd4dRKnNi1nq>*{pointer-events:none}.tMJK6UCzzd4dRKnNi1nq.pT4aDdn7WDOtf8LktRNU,.tMJK6UCzzd4dRKnNi1nq:hover{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff;outline:0}.JpKfaIPcqSOXmRfsNTdz{margin:0}.JpKfaIPcqSOXmRfsNTdz .tMJK6UCzzd4dRKnNi1nq{padding-left:20px}.lOKlzFthzaW0zBXkV_aB{height:30px!important;min-width:16px!important;padding:0!important;position:absolute;right:var(--padding-right);top:0;width:16px!important}.TI50VzfokX6eLhrOi70h{font-weight:700;margin:8px 12px}.kSzutuRlPlz3jlArbm77{background-color:transparent}@media(-ms-high-contrast:active),(forced-colors:active){.ww5amWr_Ul0_wa771HwI{border-color:FieldText}.tMJK6UCzzd4dRKnNi1nq{background-color:Field;color:FieldText}.tMJK6UCzzd4dRKnNi1nq.pT4aDdn7WDOtf8LktRNU,.tMJK6UCzzd4dRKnNi1nq:hover{background-color:SelectedItem;border-color:SelectedItem;color:SelectedItemText;forced-color-adjust:none;outline-color:SelectedItemText}}.YrJKrECebxy2N010bYmy .components-base-control__field{align-items:center;display:flex}.YrJKrECebxy2N010bYmy .components-base-control__field .components-base-control__label{flex:1;margin:0}._sFRKZIx_rmnTr8KV6Zc{height:auto;min-height:auto;padding:4px}.ExkdOKeVBK5IJhCj4y6G{background:linear-gradient(-45deg,transparent 48%,rgba(0,0,0,.2) 0,rgba(0,0,0,.2) 52%,transparent 0);border:1px solid rgba(0,0,0,.2);border-radius:50%;height:25px;width:25px}.GRPyAHvb86BvWaiPQQ64 .components-popover__content{max-width:365px;min-width:-moz-max-content;min-width:max-content;padding:15px}.GRPyAHvb86BvWaiPQQ64 .components-popover__content>div{padding:0}.GRPyAHvb86BvWaiPQQ64 .components-base-control__field{margin-bottom:0}.GRPyAHvb86BvWaiPQQ64 .react-colorful{width:100%!important}.GRPyAHvb86BvWaiPQQ64 .react-colorful .react-colorful__pointer{height:20px;width:20px}.GRPyAHvb86BvWaiPQQ64 .react-colorful .react-colorful__saturation{height:150px}.GRPyAHvb86BvWaiPQQ64 .components-circular-option-picker__option-wrapper{height:25px;width:25px}.UqMleJg7WVwswh6Y90G0{display:flex;gap:5px;margin-top:15px}.UqMleJg7WVwswh6Y90G0 .TmNjuU1grTIJ2SDYVBCQ{flex:1}.UqMleJg7WVwswh6Y90G0 .fLVfpUoFtwFbvarYhKZq{height:auto}.UqMleJg7WVwswh6Y90G0 .components-base-control__field{margin-bottom:0}.MabCbXOeSQJHUzaGdZY7{margin-top:15px}.MabCbXOeSQJHUzaGdZY7 .components-circular-option-picker{display:flex;flex-wrap:wrap}.MabCbXOeSQJHUzaGdZY7 .components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:6px}.MabCbXOeSQJHUzaGdZY7 .components-circular-option-picker .components-circular-option-picker__swatches .components-circular-option-picker__option-wrapper{margin:0}.LG1wd9f39u25C3OZz7Z2{display:flex;margin-top:15px}.LG1wd9f39u25C3OZz7Z2 .components-range-control{flex-grow:1;padding-left:5px}._dYsFRKN1sDgERxlL8cR{margin:0}.qJERrnFefv_O50nv_edM{--icon-size:1rem;display:grid;gap:.625rem;grid-template-columns:36px minmax(0,1fr);position:relative}.qJERrnFefv_O50nv_edM .components-button svg{display:block;height:var(--icon-size);width:var(--icon-size)}.T95NbM4ZNigoT_wIDhRQ{border-radius:0;height:100%;position:relative;z-index:2}._FNJnr_HsSBteeCYhHU3{display:flex;flex-wrap:wrap;gap:var(--gap,10px)}.syvVNiObl2WYqYtGRcTn.WO_aMtG3Bg4zooUBEp7x>*+*{margin-inline-start:var(--gap,10px)}.KkGQsmYxiUE8hxLd2Xwj.WO_aMtG3Bg4zooUBEp7x>*+*{margin-block-start:var(--gap,10px)}.KkGQsmYxiUE8hxLd2Xwj._FNJnr_HsSBteeCYhHU3{flex-direction:column}.x1eMpmfuIpD_el57lOsS{border-collapse:collapse;width:100%}.x1eMpmfuIpD_el57lOsS td,.x1eMpmfuIpD_el57lOsS th{box-sizing:border-box}.x1eMpmfuIpD_el57lOsS.UfKOOGHdQURZ41pihZXA tr:nth-child(2n){background-color:rgba(var(--wp-admin-theme-color--rgb),.04)}.Jt_HCDtpPDDe0zG_jA8E .R4RBfohTRDBJ5KQueVP2{align-items:center;display:flex;gap:1rem;justify-content:space-between;margin-bottom:1em}.Jt_HCDtpPDDe0zG_jA8E .R4RBfohTRDBJ5KQueVP2 h2{margin:0}.Jt_HCDtpPDDe0zG_jA8E .lFx02P_kj4WJAxuPfDVR .components-base-control{margin-bottom:0}.Jt_HCDtpPDDe0zG_jA8E .lFx02P_kj4WJAxuPfDVR .components-base-control>.components-base-control__field{margin:0}.Jt_HCDtpPDDe0zG_jA8E .lFx02P_kj4WJAxuPfDVR>*+*{margin-block-end:0;margin-block-start:15px}.QM1tb8cm9U9FvdJBRqTg{display:grid;gap:10px;grid-template-columns:200px 1fr}.QM1tb8cm9U9FvdJBRqTg.gb-icon-library--divider .R3462S4fO_NJhMOetJu4{flex-direction:column}.QM1tb8cm9U9FvdJBRqTg.gb-icon-library--divider .R3462S4fO_NJhMOetJu4 .components-button{height:auto}.QM1tb8cm9U9FvdJBRqTg.gb-icon-library--divider .R3462S4fO_NJhMOetJu4 .components-button,.QM1tb8cm9U9FvdJBRqTg.gb-icon-library--divider .R3462S4fO_NJhMOetJu4 .components-button span{width:100%}.QM1tb8cm9U9FvdJBRqTg.gb-icon-library--divider .R3462S4fO_NJhMOetJu4 .components-button svg{height:auto;min-width:0;width:100%}.R3462S4fO_NJhMOetJu4{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.R3462S4fO_NJhMOetJu4 .components-button{border:1px solid #ddd;height:50px;padding:20px}.R3462S4fO_NJhMOetJu4 .components-button svg{height:40px;min-width:20px}.zFsone2zGKgdXw_JBDSu{align-self:flex-start;position:sticky;top:0}.zFsone2zGKgdXw_JBDSu button{width:100%}.uey0NWE8S8eBW5iriB5Y{align-items:center;background:#fff;border-top:1px solid #ddd;bottom:-32px;display:grid;gap:10px;grid-template-areas:"left right";justify-content:space-between;margin:20px -32px -32px;padding:20px;position:sticky}.uey0NWE8S8eBW5iriB5Y svg{height:1.5em;width:1.5em}.Uvu7wfl_BcNpRy7Toi6P{flex-grow:1}.Uvu7wfl_BcNpRy7Toi6P textarea{font-family:monospace}.a3peKdW8EEhhJNaY_kYi{align-items:center;display:flex;gap:10px;grid-area:right;-ms-grid-column:3;-ms-grid-row:1;justify-content:flex-end}.yRdSE3_VmxOo30qmlpTj .components-base-control{margin-bottom:0}.yRdSE3_VmxOo30qmlpTj .MeLzq8yBexZJ8iSv17Wf{align-items:center;border:1px solid #8c8f94;display:flex;gap:10px;height:35px;width:100%}.yRdSE3_VmxOo30qmlpTj .MeLzq8yBexZJ8iSv17Wf>span{display:block;line-height:0;max-width:50%}.yRdSE3_VmxOo30qmlpTj .MeLzq8yBexZJ8iSv17Wf svg{height:20px;max-width:100%;width:auto}.eGpceyyXvidN0eGE7oRl .components-modal__content{padding:4px 32px 32px} -.aXTNFJcVrsguxNZy07JA{isolation:isolate}.aXTNFJcVrsguxNZy07JA :where(.components-range-control__number,.components-base-control__field){margin-bottom:0!important}.aXTNFJcVrsguxNZy07JA .components-panel__body-toggle.components-button{font-size:12px;padding-bottom:12px;padding-top:12px}.aXTNFJcVrsguxNZy07JA .components-panel__body-toggle.components-button .components-panel__arrow{height:18px;width:18px}.aXTNFJcVrsguxNZy07JA .components-panel__body-toggle.components-button>svg{color:#0a0a0a;margin-left:0;margin-right:6px;order:-1}._n7gGYm9M8MFYioC_tnA{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;text-transform:uppercase;white-space:nowrap}.wZMI6U93fOq6ONi2BIMx{margin-bottom:20px}.wZMI6U93fOq6ONi2BIMx>button.components-button{margin-bottom:3px;margin-right:3px}.wZMI6U93fOq6ONi2BIMx button.components-button{border:0;font-family:monospace;font-size:11px;height:auto;line-height:normal;padding:5px 10px}.wZMI6U93fOq6ONi2BIMx button.components-button:not(.is-pressed){background:#eff4f9}.IkszCwt2RSahUOA6cnBn:not(:first-child){margin-top:20px}.Lv4O8kNoTBfefDdx0ZSf .components-base-control{margin:0}.Lv4O8kNoTBfefDdx0ZSf .components-toggle-control{margin-top:.5em}.exF1HddU0AkwAhIpOZgN{display:flex;margin-bottom:3px}.exF1HddU0AkwAhIpOZgN:not(:first-child){border-left:1px solid rgba(0,0,0,.1);padding-left:10px;position:relative}.exF1HddU0AkwAhIpOZgN:not(:first-child):before{background:rgba(0,0,0,.1);bottom:0;content:"";display:block;height:1px;left:0;position:absolute;top:calc(50% - 1px);width:7px}.exF1HddU0AkwAhIpOZgN .components-dropdown button.components-button{border-bottom-left-radius:0;border-left:0;border-top-left-radius:0;height:100%;min-width:10px;padding:5px 10px}.exF1HddU0AkwAhIpOZgN .components-dropdown button.components-button svg{height:17px;width:17px}.exF1HddU0AkwAhIpOZgN>button.components-button{border-radius:3px;border-bottom-right-radius:0;border-top-right-radius:0;flex-grow:1;min-height:27px;text-align:left}.exF1HddU0AkwAhIpOZgN>button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.exF1HddU0AkwAhIpOZgN:first-child>button.components-button{border-bottom-right-radius:3px;border-top-right-radius:3px}.sivCIEzK7hnS_jYTmkQS{align-self:center;background:#e15e1f;border-radius:100%;display:inline-block;flex-shrink:0;height:8px;margin-left:5px;width:8px}.q4Vt9u4L6NHDPsd6y0RN{display:block;font-size:11px;font-weight:500;margin-bottom:5px;margin-top:10px}.SdqkeZJnaGZW5sjp7Cbl{margin-bottom:20px}.yrBJ0RWIFkQx2jPca6oQ{background:#ffdfdf;margin-top:10px;padding:10px}._eMJAha2XlEzp5LbJNoU{margin-bottom:16px;position:relative;z-index:10002}.BOHNqXESw4VeWayhp9gV{display:flex;gap:10px;justify-content:space-between;margin-top:20px}.bsFDeOOx3XaWTtMpsHh9{font-family:monospace;font-size:11px;font-weight:600}.JfcrVVxi0Le7WqG1QrUs{background:#fafafa;border-left-color:currentColor;margin-top:10px}.JfcrVVxi0Le7WqG1QrUs .components-notice__content{margin-right:0}.cNIaZ9TFMrQuku9AMTd7 svg{height:20px;width:20px}.R3E2gPdBZcQ3fGB44pMn.components-button.has-text{display:flex;flex-direction:row-reverse;gap:0;padding-left:8px;padding-right:6px}.R3E2gPdBZcQ3fGB44pMn.components-button.has-text svg{height:17px;width:17px}.oCwXXlsUVmwVHOqFZ8fx{display:flex;gap:5px;padding-top:10px}.oCwXXlsUVmwVHOqFZ8fx button.components-button{box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);font-family:inherit;padding:3px 6px}.oCwXXlsUVmwVHOqFZ8fx button.components-button:first-child:last-child{border-radius:2px}.uSzzU88fk2uFJ96sOTjo{border-bottom:1px solid rgba(0,0,0,.2);border-left:1px solid rgba(0,0,0,.2);height:13px;width:8px}.BABsdAWLRMrTwoZ5nq1w{padding:15px}.rFvheKp_Ld4Xq2afm0B7{margin-bottom:10px}.rFvheKp_Ld4Xq2afm0B7 .components-button-group{display:flex}.rFvheKp_Ld4Xq2afm0B7 .components-button-group button{flex:1}.nRPkFhbFIvEor1OPe2Ht{font-size:11px;font-weight:400;margin-top:5px;opacity:.6}.RH2SaGq5s9_xxeenpiAB{display:flex;gap:10px}.hQ2FMZ3Tgtexl8pMJCS6 .components-popover__content{min-width:300px}.kz8IWmpCkeKTwVsJVN6l .components-button.has-icon{min-width:24px;padding:4px}.EBNwYjwZHC0WOkdJpGf0{flex-grow:1;margin:0!important}.EBNwYjwZHC0WOkdJpGf0 .components-input-control__input{height:32px!important;min-height:32px!important}.eLeLPDEe53QDQ4_SHGEr{background-color:#fff;border-bottom:1px solid #ddd;margin:-16px -16px 0;padding:16px;position:sticky;top:var(--topOffset);z-index:10001}.fBiNbsJwfo6m5W319YeV,.zBNu4EXMvGLl5F0Whgcu{position:relative}.zBNu4EXMvGLl5F0Whgcu{background:#fff;border:1px solid #949494;border-radius:2px;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e;cursor:pointer;display:block;font-family:inherit;font-size:13px;height:35px;margin:0;max-width:none;min-height:35px;overflow:hidden;padding:0 26px 0 8px;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}.zBNu4EXMvGLl5F0Whgcu.Gv4AVZ3Uo9WsTswIzApZ .H5BpC4Xn0Vqp02xqec8t{transform:translateY(-50%) rotate(180deg);transform-origin:center}.H5BpC4Xn0Vqp02xqec8t{position:absolute;right:8px;top:55%;transform:translateY(-50%)}.H5BpC4Xn0Vqp02xqec8t svg{display:block}.LZ_Q_jIwNWRN9uzPHG6F{background:#fff;border:1px solid #949494;border-top:none;left:0;margin:0;padding:0;position:absolute;right:0;z-index:10}.LZ_Q_jIwNWRN9uzPHG6F.fuiIHvsQoDtzSwhIiZqA{display:none}.oFtCdmsssMg8H77hPFTg{cursor:pointer;font-size:16px;margin:0;padding:6px 8px}.oFtCdmsssMg8H77hPFTg.aRQyIjys1XBHeSktg1zw{background:#ddd}.oFtCdmsssMg8H77hPFTg.VgpUqbG14GJePp0Beo1z{background:#fafafa}.oFtCdmsssMg8H77hPFTg.S6wZSSZk2olFnn3eYf8O{align-items:center;display:flex;gap:8px;justify-content:space-between}.jept9XZS7KxgsCNkbH1p{margin-top:8px}.WPEZvtpxlOepmonsa_vy{margin:0}.WPEZvtpxlOepmonsa_vy>:first-child{border-top:1px solid #e1e1e1}.WPEZvtpxlOepmonsa_vy>*{border-bottom:1px solid #e1e1e1;margin:0}.WPEZvtpxlOepmonsa_vy.is-dragging{background-color:#bcecfb}.WPEZvtpxlOepmonsa_vy .gb-sortable-listitem{background-color:#fefefe;gap:0}.WPEZvtpxlOepmonsa_vy .gb-sortable-listitem.is-dragging{background-color:#f0f0f0}.t3m0oWRj6QvABZ1BpM_a{display:none;flex:1 1 auto}.Hem3vI_alRw0fuRKobVi{background-image:linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-position:0 0,7.5px 7.5px;background-size:30px 30px;border-radius:50%;position:relative}.Hem3vI_alRw0fuRKobVi:after{content:"";height:100%;left:0;position:absolute;top:0;width:100%}.qELjYtUNLBgxG3dVY1MT{border-radius:50%;height:15px;width:15px}.eLgazplyjWUwkBZizkAi{background-color:#fff;border:1px solid #ccc;border-radius:50%;justify-content:center}.TOkDiwiqR4BjcMYMPy7w,.eLgazplyjWUwkBZizkAi{align-items:center;display:flex}.TOkDiwiqR4BjcMYMPy7w{font-family:monospace;font-size:12px;height:36px;justify-content:flex-start;padding:5px 5px 5px 8px}.TOkDiwiqR4BjcMYMPy7w:nth-child(odd){background-color:#f3f3f3}.TOkDiwiqR4BjcMYMPy7w svg{height:16px;width:16px}.TOkDiwiqR4BjcMYMPy7w:hover .t3m0oWRj6QvABZ1BpM_a{display:inline-flex;justify-content:flex-end}.TOkDiwiqR4BjcMYMPy7w:hover .eLgazplyjWUwkBZizkAi{border:1px solid #fff}.TOkDiwiqR4BjcMYMPy7w:hover{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}.TOkDiwiqR4BjcMYMPy7w:hover svg{fill:#fff}.sc53cEZEYka6VEQdlguH{display:-webkit-box;flex:1 1 auto;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.sc53cEZEYka6VEQdlguH:not(:first-child){margin-left:10px}.sc53cEZEYka6VEQdlguH>span{white-space:nowrap}.Kxn9txAhUpts4Hh5LFLl>.components-base-control__field{display:grid;gap:3px;grid-template-columns:1fr auto;position:relative}.Kxn9txAhUpts4Hh5LFLl>.components-base-control__field>label{align-items:center;display:flex;grid-column:1;margin-bottom:0}.D7CffuJGzqF34RY4dZ6R{align-items:center;display:inline-flex;gap:2px;grid-column:2;margin-left:auto}.D7CffuJGzqF34RY4dZ6R svg{height:20px;width:20px}.dITUNDZ8hTR1v4AVOkT2{border:none;font-size:11px;font-weight:500;height:16px;line-height:1.4;margin:0;padding:0;text-transform:uppercase}.dITUNDZ8hTR1v4AVOkT2:hover{color:inherit}.dITUNDZ8hTR1v4AVOkT2:focus:not(:disabled){box-shadow:none;outline:none}.dITUNDZ8hTR1v4AVOkT2 svg{display:block;height:18px;margin-left:2px;width:18px}.dITUNDZ8hTR1v4AVOkT2[aria-expanded=true]{color:inherit}.bz0ajUyoumIjJylbv_Tr{grid-column:1/-1}.bz0ajUyoumIjJylbv_Tr:not(:empty){padding-top:10px}.lgogTEjiaQEXgUYjcw2y{height:24px}.lgogTEjiaQEXgUYjcw2y .components-button.has-icon{height:24px;min-width:24px;padding:2px;width:24px}._3vjaqzDcV3IvmQyrxhG .components-popover__content{min-width:240px}._3vjaqzDcV3IvmQyrxhG .components-menu-group button svg{height:20px;width:20px}._3vjaqzDcV3IvmQyrxhG .components-menu-group button.r20x1Lcqgmja2UoO4kgY{opacity:.8;pointer-events:none}.VfAkVX3mqRIuRHtj3UQg{padding:0 8px 4px}.BoKWmP79VS5rj8sZcPZ4{display:flex;gap:10px;justify-content:space-between;margin-top:20px}.hAtBY8JhM_Gi3WSUSzqr{background:#fafafa;box-shadow:inset 0 0 4px 1px rgba(0,0,0,.05);padding:12px}.hAtBY8JhM_Gi3WSUSzqr .components-base-control__field{margin-bottom:0}.ceurPSPMJBQM5_zJv5Qj{margin-bottom:2em}.Vhpy9djpImFEmyXjfSlx{display:flex;justify-content:space-between}.bAk1niPiagGU6oSLJbvA{margin:.4em 0 2em}.MmfVpnbQ85G6UjIw1u5W{display:flex!important;gap:0 6px;margin-bottom:5px}.MmfVpnbQ85G6UjIw1u5W,.YebmhFgupzjyq0N2udmU{align-items:center}.YebmhFgupzjyq0N2udmU{display:inline-flex;font-size:10px;font-weight:500;line-height:1.4;line-height:24px;margin-bottom:0;text-transform:uppercase}.yCoIRP0ogL5sZXeHU7_w{align-items:center;display:flex;margin-left:auto}.FvMzS1_Byw1S16xBCDc2{height:24px}.FvMzS1_Byw1S16xBCDc2 .components-button.has-icon{height:24px;min-width:24px;padding:2px;width:24px}.aBjtgF5WMv9EShbYATob{line-height:0}.aBjtgF5WMv9EShbYATob .components-menu-group button svg{height:20px;width:20px}.aBjtgF5WMv9EShbYATob .components-popover__content{min-width:240px}.aBjtgF5WMv9EShbYATob dl{margin:0;min-width:215px}.aBjtgF5WMv9EShbYATob dl dt{font-weight:700}.aBjtgF5WMv9EShbYATob dl dd{margin-left:0}.aBjtgF5WMv9EShbYATob dl dd:not(:last-child){margin-bottom:10px}.uzhd5E8WcQNM0lAKMk7k{box-sizing:border-box;position:relative}.uzhd5E8WcQNM0lAKMk7k.Wh1bsxP7LYgneG5rZTAC{display:grid;gap:0 5px;grid-template-columns:minmax(0,1fr) auto}.uzhd5E8WcQNM0lAKMk7k.Wh1bsxP7LYgneG5rZTAC>*{grid-column:1}.uzhd5E8WcQNM0lAKMk7k.Wh1bsxP7LYgneG5rZTAC .FvMzS1_Byw1S16xBCDc2{grid-column:2;transform:translateY(4px)}.O_Wuw7CS2upgJFqUitvq{padding:0 8px 4px}.O_Wuw7CS2upgJFqUitvq>:last-child{margin-bottom:0}.fJ5fAm5nhaTBip_S4DxM{height:20px;right:8px;top:8px;width:20px}.fJ5fAm5nhaTBip_S4DxM.has-icon{min-width:20px;padding:3px}.zAOzeKIYT9PG6cQOqjaQ{background-color:#639;border-radius:4px;color:#fff;font-size:12px;margin-left:6px;padding:2px 4px}.zAOzeKIYT9PG6cQOqjaQ.LA3zREEmXdwWKgHSv35F{background-color:#f0b849}.nM0uaXqi_1IsHFDunR9U{background-color:#639;border-radius:100%;height:8px;margin-left:6px;padding:0;width:8px}.nM0uaXqi_1IsHFDunR9U>*{display:none}.nM0uaXqi_1IsHFDunR9U.LA3zREEmXdwWKgHSv35F{background-color:#f0b849}@supports selector(:has(a,b)){.has-global-style label:has(.nM0uaXqi_1IsHFDunR9U){padding-right:14px;position:relative}.has-global-style label:has(.nM0uaXqi_1IsHFDunR9U)+.components-button{margin-left:8px}.has-global-style .nM0uaXqi_1IsHFDunR9U{position:absolute;transform:translateY(50%)}}@supports not selector(:has(a,b)){.has-global-style label{align-items:center;display:flex}}.d2v4yBMoHotau1FiSFd4{flex-grow:1}.uT0q3TLMAkFDgS0reTSK .components-popover__content{background-color:#fafafa;font-family:monospace;font-size:11px;max-width:min(400px,100vw);padding:16px 16px 8px 8px;width:-moz-max-content;width:max-content}.ibwoScdLkV660uMEhBzT{height:inherit;line-height:inherit;padding:0}.nV3hv1krzxIvjVaEp9fc{margin-left:12px}.Y5oNSpAeWJAycKoyoN_p{padding-left:12px;position:relative}.Y5oNSpAeWJAycKoyoN_p:focus .dglmO4hyhnrUp4qbMQp2,.Y5oNSpAeWJAycKoyoN_p:focus-within .dglmO4hyhnrUp4qbMQp2,.Y5oNSpAeWJAycKoyoN_p:hover .dglmO4hyhnrUp4qbMQp2{display:inline-flex}.dglmO4hyhnrUp4qbMQp2{display:none;height:20px!important;left:-12px;line-height:20px!important;min-width:20px!important;position:absolute;top:0;width:20px!important}.E8pebkDuLKz7SV12Xc6g [data-selector]{color:#757575}.E8pebkDuLKz7SV12Xc6g [data-property]{color:#2271b1}.fJ5fAm5nhaTBip_S4DxM{height:20px!important;line-height:20px!important;min-width:20px!important;position:absolute;right:0;top:0;width:20px!important}.knttE5KP5YHzKcXfmYvf.gb-inspector-controls--filtering .components-panel__body-title{pointer-events:none}.knttE5KP5YHzKcXfmYvf.gb-inspector-controls--filtering .components-panel__body-toggle svg:not(.components-panel__icon){display:none}.knttE5KP5YHzKcXfmYvf input::-webkit-inner-spin-button,.knttE5KP5YHzKcXfmYvf input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.knttE5KP5YHzKcXfmYvf input[type=number]{-moz-appearance:textfield}.knttE5KP5YHzKcXfmYvf:not(:has(.gb-styles-builder-control.visible)) .VjTLWYpdToJ8tz4sZpC6.alIq7NNnng4aQl1UHzEp{display:block}.knttE5KP5YHzKcXfmYvf .components-flex-block:has(.gb-styles-builder-control.hidden:only-child){display:none}.knttE5KP5YHzKcXfmYvf .components-base-control .components-input-control__input,.knttE5KP5YHzKcXfmYvf .components-base-control .components-select-control__input,.knttE5KP5YHzKcXfmYvf .components-base-control .components-text-control__input,.knttE5KP5YHzKcXfmYvf .components-base-control .components-text-control__input[type=color],.knttE5KP5YHzKcXfmYvf .components-base-control .components-text-control__input[type=number],.knttE5KP5YHzKcXfmYvf .components-base-control .components-text-control__input[type=text],.knttE5KP5YHzKcXfmYvf .components-base-control .components-text-control__input[type=url]{height:35px!important;min-height:35px!important;padding-left:10px!important;padding-right:10px!important}.knttE5KP5YHzKcXfmYvf .components-base-control .gb-stack>.components-button:not(.is-compact):not(.is-small){height:35px!important;min-height:35px!important}.VjTLWYpdToJ8tz4sZpC6{display:none}.eVxP5EbXKBfj36ytKhHz{margin-left:16px;margin-right:16px}.eVxP5EbXKBfj36ytKhHz.dM9ABmijKbDAlB8_Nu4e{margin-bottom:16px;margin-top:16px}.EQPCi2ra6jOyVlsV1DEY.mvSjIIiaUxz8GrR6Cgro:where(:not(:has(.gb-styles-builder-panel__content>.gb-styles-builder-control.visible))){display:none}.EQPCi2ra6jOyVlsV1DEY.mvSjIIiaUxz8GrR6Cgro:has(.gb-panel-section .gb-styles-builder-control.visible){display:block}.sGqOB5yAvDyMP6EUQ9So.s4BUUfX8qtMYr0UIn0VC{--angle:-90deg}.zkJpI_g3ns2yn1c84Tog.s4BUUfX8qtMYr0UIn0VC{--angle:90deg}.sGqOB5yAvDyMP6EUQ9So.cpP_Kd4muZiI1kRXmjYM,.zkJpI_g3ns2yn1c84Tog.cpP_Kd4muZiI1kRXmjYM{--reverse:-1,1}.sGqOB5yAvDyMP6EUQ9So .gb-button-icon-control .components-button svg,.zkJpI_g3ns2yn1c84Tog .gb-button-icon-control .components-button svg{transform:rotate(var(--angle,0deg)) scale(var(--reverse,1))}.b5D9V1FgjJfFX9m813dk{display:flex}.b5D9V1FgjJfFX9m813dk button{display:flex;flex-grow:1;font-size:12px;justify-content:center}.b5D9V1FgjJfFX9m813dk button.rFUOeZBQQsQTUjQOlKx5{background:rgba(0,0,0,.07)}.b5D9V1FgjJfFX9m813dk button svg{width:15px}.MhSQw4WJGtyl3tO1UCPo{background:#efefef;border-radius:3px;border-top-left-radius:0;border-top-right-radius:0;display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin-top:-2px;padding:10px}.HVECegTS7Wq9zUojYKwg{background:none;border:0;border-radius:0;cursor:pointer;display:grid;gap:1px;grid-template-columns:var(--grid-template-columns);height:auto;overflow:hidden;padding:3px;width:40px}.inMuz2hImwcjmM50NjZL{background:#fff;border:1px solid #000;border-radius:1px;height:15px}.nxSoIujYGeTu8bJaTef0{position:relative}.nxSoIujYGeTu8bJaTef0>.components-button{height:100%;min-width:35px!important;padding-left:2px!important;padding-right:2px!important;position:absolute;right:0;top:0;width:35px!important}.nxSoIujYGeTu8bJaTef0>.components-button svg{height:25px;width:25px}.nxSoIujYGeTu8bJaTef0 .components-base-control,.nxSoIujYGeTu8bJaTef0 .components-base-control__field{margin:0!important}.nxSoIujYGeTu8bJaTef0 .components-base-control input,.nxSoIujYGeTu8bJaTef0 .components-base-control__field input{padding-right:30px!important}.nxSoIujYGeTu8bJaTef0 .gb-styles-builder-control{display:block;flex-grow:1}.s1yAQZ1lhdvyK7Rc3Fh6{display:flex}.U9ucXh3pWCfv__xBzHc5{display:grid;grid-template-columns:1fr 1fr}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button{border-radius:0;margin:0}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:nth-child(2n){margin-left:-1px}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:not(:nth-child(-n+2)){margin-top:-1px}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:first-child{border-top-left-radius:3px}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:nth-child(2){border-top-right-radius:3px}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:nth-last-child(2){border-bottom-left-radius:3px}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:last-child{border-bottom-right-radius:3px}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:nth-child(2n):nth-last-child(2){border-bottom-left-radius:0}.U9ucXh3pWCfv__xBzHc5.components-button-group button.components-button:nth-child(odd):last-child{border-bottom-left-radius:3px;grid-column:1/-1}.YKOygrEMPs0F3Z_ykrlJ{background-color:#fff;box-sizing:border-box;display:flex;flex-grow:1;font-size:10px;height:35px;justify-content:center;padding:2px}.YKOygrEMPs0F3Z_ykrlJ.f2m99dKbx_sCD_41l6HW{background:rgba(0,0,0,.07)}.YKOygrEMPs0F3Z_ykrlJ svg{max-width:100%;width:24px}.EF_Zj9a5xxxy2lEEERHD{align-items:flex-start;display:flex;position:relative}.EF_Zj9a5xxxy2lEEERHD .components-base-control:first-child{flex-grow:1}.EF_Zj9a5xxxy2lEEERHD .components-base-control,.EF_Zj9a5xxxy2lEEERHD .components-base-control__field{margin-bottom:0!important}.EF_Zj9a5xxxy2lEEERHD:has(button) .components-base-control .components-text-control__input[type=text]{padding-right:32px!important}.iFVXMLsKZb14fQwFzjtr{bottom:0;display:flex;gap:3px;position:absolute;right:5px;top:0}.rtl .iFVXMLsKZb14fQwFzjtr{left:5px;right:auto}.Z2u52JP3PVlVgMgtxOoA{align-items:center;display:flex;justify-content:center}.Z2u52JP3PVlVgMgtxOoA button.components-button{height:25px;justify-content:center!important;min-width:25px;padding:0;width:25px}.Z2u52JP3PVlVgMgtxOoA button.components-button svg{height:17px;width:17px}.ou7mkFi2exmWQF1LFH2A,.ou7mkFi2exmWQF1LFH2A button{align-items:center;display:flex;justify-content:center}.ou7mkFi2exmWQF1LFH2A button{border:1px solid rgba(0,0,0,.1);border-radius:3px;font-size:10px;height:25px;min-width:25px;padding:0 3px;width:auto}.ou7mkFi2exmWQF1LFH2A button:disabled{pointer-events:none}.ou7mkFi2exmWQF1LFH2A button.is-opened,.ou7mkFi2exmWQF1LFH2A button:hover{border-color:currentColor}.ou7mkFi2exmWQF1LFH2A button.is-opened{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.ou7mkFi2exmWQF1LFH2A button.is-opened,.ou7mkFi2exmWQF1LFH2A button.is-opened:hover{color:var(--wp-components-color-accent-inverted,#fff)}.kqlSt5nfwpEdpFGofTiF .components-menu-group{padding:8px}.kqlSt5nfwpEdpFGofTiF .components-menu-group>div[role=group]{display:grid;grid-template-columns:repeat(4,1fr)}.kqlSt5nfwpEdpFGofTiF .components-menu-group>div[role=group] button{border:none;display:flex;justify-content:center;min-height:auto;padding:6px 8px}.kqlSt5nfwpEdpFGofTiF .components-menu-group>div[role=group] button .components-menu-item__item{font-size:11px;margin:0;min-width:auto}.kqlSt5nfwpEdpFGofTiF .components-menu-group>div[role=group] button .components-menu-item__item svg{height:16px;width:16px}.Bh5wvxMbpeD7Old6u5ku .EF_Zj9a5xxxy2lEEERHD>.components-base-control{opacity:.5}.L6HWWaC2QKFnEnN7bIT6{position:relative}.L6HWWaC2QKFnEnN7bIT6[open]:before{background-color:#fafafa;border:1px solid hsla(0,0%,88%,.4);border-radius:2px;content:"";inset:-5px;position:absolute;z-index:-1}.L6HWWaC2QKFnEnN7bIT6[open] .g114QnXWTrDwrFsE6laq{margin-bottom:12px}.L6HWWaC2QKFnEnN7bIT6.ltOJpJtIkjQwu5WzqHDs:has(.gb-styles-builder-control.hidden){display:none}.L6HWWaC2QKFnEnN7bIT6.ltOJpJtIkjQwu5WzqHDs:has(.gb-styles-builder-control.visible){display:block}.g114QnXWTrDwrFsE6laq{align-items:center;cursor:pointer;display:inline-flex;display:flex;font-size:10px;font-weight:500;font-weight:700;line-height:1.4;text-transform:uppercase}.sIaYnrjcgPiojlFCimMT{margin-left:auto;padding:0 3px}.Ij3uz2Tos76qsxTARgIN{border-bottom:1px solid #e0e0e0}.nJ0YOLf4hv4V5YRWMK9W .gb-styles-builder-control{flex:1 1 calc(50% - var(--gap))}.nJ0YOLf4hv4V5YRWMK9W.Vf9zB1ay0IcmhqekEa44 .gb-styles-builder-control{flex-basis:100%}.PCFpCriUITvNSDLh29WU>.components-base-control__field{display:flex;flex-wrap:wrap}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy{display:grid;flex-basis:100%;gap:10px;grid-template-areas:"top right " "left bottom"}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy>div .components-base-control__field{margin-bottom:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy>div:nth-child(3){grid-area:left;-ms-grid-column:1;-ms-grid-row:3}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy>div:nth-child(4){grid-area:bottom;-ms-grid-column:3;-ms-grid-row:3}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr){gap:5px;grid-template-areas:". top top ." "left left right right" ". bottom bottom ."}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div{position:relative}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div .gb-styles-builder-control__header--label{align-items:center;display:flex}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.IUniyeyRV7mitJGnZJxt{-ms-grid-column:3;-ms-grid-row:1;-ms-grid-column-span:3;grid-area:top}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.IUniyeyRV7mitJGnZJxt .gb-styles-builder-control__header--label{justify-content:center}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.rtZsBhlaymLFTMUYSz5w{-ms-grid-column:1;-ms-grid-row:3;-ms-grid-column-span:3;grid-area:left}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.rtZsBhlaymLFTMUYSz5w .gb-styles-builder-control__header{margin:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.rtZsBhlaymLFTMUYSz5w .gb-styles-builder-control__header--label{bottom:calc(100% + 5px);left:0;position:absolute}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.a4S6waEBLgbbxc4Gpca9{-ms-grid-column:5;-ms-grid-row:3;-ms-grid-column-span:3;grid-area:right}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.a4S6waEBLgbbxc4Gpca9 .gb-styles-builder-control__header{margin:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.a4S6waEBLgbbxc4Gpca9 .gb-styles-builder-control__header--label{bottom:calc(100% + 5px);position:absolute;right:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.sMqsTM3VAgx5sL0EmorH{-ms-grid-column:3;-ms-grid-row:5;-ms-grid-column-span:3;display:flex;flex-direction:column-reverse;grid-area:bottom}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .pRlQr9CmDu49TywHgBRy.E6kg5JIRw7FHi2ibUDQp:not(.KGcUQH7pK3XM3yu4Qxqr)>div.sMqsTM3VAgx5sL0EmorH .gb-styles-builder-control__header--label{justify-content:center;margin-bottom:0;padding-top:5px}.gb-inspector-controls .pRlQr9CmDu49TywHgBRy.KGcUQH7pK3XM3yu4Qxqr,.gb-inspector-controls.gb-inspector-controls--filtering .pRlQr9CmDu49TywHgBRy{grid-template-areas:none!important;grid-template-columns:1fr}.gb-inspector-controls .pRlQr9CmDu49TywHgBRy.KGcUQH7pK3XM3yu4Qxqr .gb-styles-builder-control{display:flex;flex-direction:column-reverse}.gb-inspector-controls .pRlQr9CmDu49TywHgBRy .gb-styles-builder-control label,.gb-inspector-controls .pRlQr9CmDu49TywHgBRy .iJmJ_aKaNzdrA3YyUsro{font-size:10px;line-height:1;opacity:.5;text-transform:none}.gb-inspector-controls .pRlQr9CmDu49TywHgBRy svg{display:block;margin-top:4px}.rtl .E6kg5JIRw7FHi2ibUDQp>div:nth-child(2){grid-area:right;-ms-grid-column:3;-ms-grid-row:1}.rtl .E6kg5JIRw7FHi2ibUDQp>div:nth-child(3){grid-area:left;-ms-grid-column:1;-ms-grid-row:3}.gGSuNXklC1RtlLka8Mr7 .components-menu-item__item svg{height:24px;width:24px}.Xp7DkjqWuT0J3MPzVhQv{display:flex;gap:2px}.MS1hcxqG_B_dNPZ2hiiz .gb-styles-builder-control label{font-size:10px;line-height:1;opacity:.5;text-transform:none}.ZSLmLcDy4r_1MDxj8D9Q{align-items:center;display:flex;gap:5px}.ZSLmLcDy4r_1MDxj8D9Q>div{flex-grow:0;gap:0!important}.ZSLmLcDy4r_1MDxj8D9Q>div .components-base-control__field{margin-bottom:0}.ZSLmLcDy4r_1MDxj8D9Q .gb-unit-control{flex-grow:1}.ZSLmLcDy4r_1MDxj8D9Q .IWyVbLG8N8SDZHTVLCro button{border:1px solid #ccc;height:35px;min-width:35px;width:35px}.ZSLmLcDy4r_1MDxj8D9Q .IWyVbLG8N8SDZHTVLCro button svg{width:15px}.gq0KidCT2MFPMU3Sy9MC{display:flex;flex-grow:0}.gq0KidCT2MFPMU3Sy9MC>div{margin:0}.gq0KidCT2MFPMU3Sy9MC>div .components-base-control__help{font-size:10px;line-height:1;margin-top:5px;opacity:.7}.KskWBtPTKVESQKa8riNL.components-button{height:15px;margin-inline-start:5px;padding:0;text-align:center;width:15px}.KskWBtPTKVESQKa8riNL.components-button svg{height:18px;width:18px;fill:currentColor}.lUXQ0Lx1MC1lYwmNDp0N{flex-shrink:0}.yHcufASwe2Jc9Z6bbSSe{align-items:center;display:flex;font-style:normal}.yHcufASwe2Jc9Z6bbSSe img{display:block;height:21px}.k5bjOpbYApv66i_MPm_d{overflow:hidden;text-overflow:ellipsis}.OUJ7LVzaxq7e2rCHhJGc .components-custom-gradient-picker .components-angle-picker-control .components-spacer{align-self:flex-end;margin:0 0 3px}.OUJ7LVzaxq7e2rCHhJGc .components-custom-gradient-picker__ui-line{margin-bottom:10px}.OUJ7LVzaxq7e2rCHhJGc .components-circular-option-picker__custom-clear-wrapper{margin-top:10px}.OUJ7LVzaxq7e2rCHhJGc .components-circular-option-picker__custom-clear-wrapper:only-child{margin-top:0}.OUJ7LVzaxq7e2rCHhJGc .components-circular-option-picker__clear{padding-bottom:0;padding-top:0}.K0Xh6sLBOKGlq54ju8lK>*+*{margin-top:8px}.u5sTb9OBuu2Z6_BNsMTg{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px;position:relative;width:100%}.ldpL4isspIMrUCUrLHAS{height:48px}.UxXQpt01aUwtQSbESr8e :is(input,select){height:40px!important}.UxXQpt01aUwtQSbESr8e .ZdM6NILLibKs0vJaYdCm,.VaGMuZgvmrALRwM8Hgls{flex-basis:50%}.sWX7uQcOHk9WuxD6tnUg{min-width:0;padding:0}.sU6_NtjVO2sOefYGgoa7{margin-bottom:0}.sU6_NtjVO2sOefYGgoa7>*+*{margin-top:10px}.pwnKGe7HVJxW4nUSFsfy .focal-point-picker__controls{display:none}.pwnKGe7HVJxW4nUSFsfy .components-text-control__input{height:35px}.xtKlTeuQp1AG_B4XbA4X.components-button{height:35px;line-height:35px}.J4GV12PDBJMrq6EbqlKt{border-bottom-right-radius:0;border-top-right-radius:0}.U55WhJgyJuVdKj0flf6G{display:flex} +._beQLZREZ1EkGHI1NaNk{isolation:isolate}._beQLZREZ1EkGHI1NaNk :where(.components-range-control__number,.components-base-control__field){margin-bottom:0!important}._beQLZREZ1EkGHI1NaNk .components-panel__body-toggle.components-button{font-size:12px;padding-bottom:12px;padding-top:12px}._beQLZREZ1EkGHI1NaNk .components-panel__body-toggle.components-button .components-panel__arrow{height:18px;width:18px}._beQLZREZ1EkGHI1NaNk .components-panel__body-toggle.components-button>svg{color:#0a0a0a;margin-left:0;margin-right:6px;order:-1}.jMpz1TCrgSNMZo4SM7LY{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;text-transform:uppercase;white-space:nowrap}.B0VorIO4MUddZuXHz0BA{margin-bottom:20px}.B0VorIO4MUddZuXHz0BA>button.components-button{margin-bottom:3px;margin-right:3px}.B0VorIO4MUddZuXHz0BA button.components-button{border:0;font-family:monospace;font-size:11px;height:auto;line-height:normal;padding:5px 10px}.B0VorIO4MUddZuXHz0BA button.components-button:not(.is-pressed){background:#eff4f9}.cXqPS5tF2tvT_mdiBl5x:not(:first-child){margin-top:20px}.ilPwrLxdSTvTQQXvvvC7 .components-base-control{margin:0}.ilPwrLxdSTvTQQXvvvC7 .components-toggle-control{margin-top:.5em}.sIHFoOk4wT0hgFhdVFYk{display:flex;margin-bottom:3px}.sIHFoOk4wT0hgFhdVFYk:not(:first-child){border-left:1px solid rgba(0,0,0,.1);padding-left:10px;position:relative}.sIHFoOk4wT0hgFhdVFYk:not(:first-child):before{background:rgba(0,0,0,.1);bottom:0;content:"";display:block;height:1px;left:0;position:absolute;top:calc(50% - 1px);width:7px}.sIHFoOk4wT0hgFhdVFYk .components-dropdown button.components-button{border-bottom-left-radius:0;border-left:0;border-top-left-radius:0;height:100%;min-width:10px;padding:5px 10px}.sIHFoOk4wT0hgFhdVFYk .components-dropdown button.components-button svg{height:17px;width:17px}.sIHFoOk4wT0hgFhdVFYk>button.components-button{border-radius:3px;border-bottom-right-radius:0;border-top-right-radius:0;flex-grow:1;min-height:27px;text-align:left}.sIHFoOk4wT0hgFhdVFYk>button.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.sIHFoOk4wT0hgFhdVFYk:first-child>button.components-button{border-bottom-right-radius:3px;border-top-right-radius:3px}.TrA5H448nQRtf_p28KId{align-self:center;background:#e15e1f;border-radius:100%;display:inline-block;flex-shrink:0;height:8px;margin-left:5px;width:8px}.cYJLfI1DIDW4SuAFxsqG{display:block;font-size:11px;font-weight:500;margin-bottom:5px;margin-top:10px}.cnsxGVqMnPl1apKeuiup{margin-bottom:20px}.KdgRkc3rpk6NtCLYDnNp{background:#ffdfdf;margin-top:10px;padding:10px}.YNMQ6wONU_vudyJ05NDy{margin-bottom:16px;position:relative;z-index:10002}.MEcBZjNjsEeGH_BcIM5r{display:flex;gap:10px;justify-content:space-between;margin-top:20px}.end0waUJZgfs2Cg9LNbP{font-family:monospace;font-size:11px;font-weight:600}.XI7PBzBf6xATaHCgZ3_g{background:#fafafa;border-left-color:currentColor;margin-top:10px}.XI7PBzBf6xATaHCgZ3_g .components-notice__content{margin-right:0}.kdfxUCrijWG1oGcXYKL7 svg{height:20px;width:20px}.io6Dcs9lUe3YHzZf5WBl.components-button.has-text{display:flex;flex-direction:row-reverse;gap:0;padding-left:8px;padding-right:6px}.io6Dcs9lUe3YHzZf5WBl.components-button.has-text svg{height:17px;width:17px}.KCAL3DqzDqGghFCeFVof{display:flex;gap:5px;padding-top:10px}.KCAL3DqzDqGghFCeFVof button.components-button{box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);font-family:inherit;padding:3px 6px}.KCAL3DqzDqGghFCeFVof button.components-button:first-child:last-child{border-radius:2px}.L_uKqLTrfKtCBl5z3T9k{border-bottom:1px solid rgba(0,0,0,.2);border-left:1px solid rgba(0,0,0,.2);height:13px;width:8px}.clD1mjOXD5QSIjgbS37a{padding:15px}.EolSL6L_PG4VOw2hXvcU{margin-bottom:10px}.EolSL6L_PG4VOw2hXvcU .components-button-group{display:flex}.EolSL6L_PG4VOw2hXvcU .components-button-group button{flex:1}.O_etAvKgI1XzHx2SlLU3{font-size:11px;font-weight:400;margin-top:5px;opacity:.6}.Hail9xhcDPj9DlVE0Pda{display:flex;gap:10px}.dhmW1Y4sYYCEpL5SW6NI .components-popover__content{min-width:300px}.NtwgV2EUsG2omMzSRI0K .components-button.has-icon{min-width:24px;padding:4px}.UOvXMpPNlYfOKDhTmmew{flex-grow:1;margin:0!important}.UOvXMpPNlYfOKDhTmmew .components-input-control__input{height:32px!important;min-height:32px!important}.gOTdkoKuZf8labfeSFi4{background-color:#fff;border-bottom:1px solid #ddd;margin:-16px -16px 0;padding:16px;position:sticky;top:var(--topOffset);z-index:10001}.rKLQr8TKqzeWpWLGZftZ,.zmYGpOnnlJOzZRM2Mxbl{position:relative}.rKLQr8TKqzeWpWLGZftZ{background:#fff;border:1px solid #949494;border-radius:2px;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e;cursor:pointer;display:block;font-family:inherit;font-size:13px;height:35px;margin:0;max-width:none;min-height:35px;overflow:hidden;padding:0 26px 0 8px;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}.rKLQr8TKqzeWpWLGZftZ.dKwvrnfl7uZHiuJgxKIz .d5CsyxMsla7yukTJEfVX{transform:translateY(-50%) rotate(180deg);transform-origin:center}.d5CsyxMsla7yukTJEfVX{position:absolute;right:8px;top:55%;transform:translateY(-50%)}.d5CsyxMsla7yukTJEfVX svg{display:block}.RieWgm_TWBPqYEI7qrA3{background:#fff;border:1px solid #949494;border-top:none;left:0;margin:0;padding:0;position:absolute;right:0;z-index:10}.RieWgm_TWBPqYEI7qrA3.NJR9d9TclQx9DBbC0aZe{display:none}.LJ4lOpDClk0nYRNJcefv{cursor:pointer;font-size:16px;margin:0;padding:6px 8px}.LJ4lOpDClk0nYRNJcefv.GhiAFuagoNr03XH9qRSe{background:#ddd}.LJ4lOpDClk0nYRNJcefv.s9OE8j1y5Kgf6LwxIdVm{background:#fafafa}.LJ4lOpDClk0nYRNJcefv.D39BwOKxZY5h3gDqhmqb{align-items:center;display:flex;gap:8px;justify-content:space-between}.YFfQpRtpVrWQYTjfA46i{margin-top:8px}.wbr3xTdE1CNsHtyepu2f{margin:0}.wbr3xTdE1CNsHtyepu2f>:first-child{border-top:1px solid #e1e1e1}.wbr3xTdE1CNsHtyepu2f>*{border-bottom:1px solid #e1e1e1;margin:0}.wbr3xTdE1CNsHtyepu2f.is-dragging{background-color:#bcecfb}.wbr3xTdE1CNsHtyepu2f .gb-sortable-listitem{background-color:#fefefe;gap:0}.wbr3xTdE1CNsHtyepu2f .gb-sortable-listitem.is-dragging{background-color:#f0f0f0}.wj1voJ7HsdHvyyjdyjjC{display:none;flex:1 1 auto}.IEDsGgHoiewB72FuYnZN{background-image:linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-position:0 0,7.5px 7.5px;background-size:30px 30px;border-radius:50%;position:relative}.IEDsGgHoiewB72FuYnZN:after{content:"";height:100%;left:0;position:absolute;top:0;width:100%}.y4EzXyzXxVg48NODe8vr{border-radius:50%;height:15px;width:15px}.l7nYGZDTccz_q3wRaPi2{background-color:#fff;border:1px solid #ccc;border-radius:50%;justify-content:center}.DN5M8vx4N_0BCVgoLOes,.l7nYGZDTccz_q3wRaPi2{align-items:center;display:flex}.DN5M8vx4N_0BCVgoLOes{font-family:monospace;font-size:12px;height:36px;justify-content:flex-start;padding:5px 5px 5px 8px}.DN5M8vx4N_0BCVgoLOes:nth-child(odd){background-color:#f3f3f3}.DN5M8vx4N_0BCVgoLOes svg{height:16px;width:16px}.DN5M8vx4N_0BCVgoLOes:hover .wj1voJ7HsdHvyyjdyjjC{display:inline-flex;justify-content:flex-end}.DN5M8vx4N_0BCVgoLOes:hover .l7nYGZDTccz_q3wRaPi2{border:1px solid #fff}.DN5M8vx4N_0BCVgoLOes:hover{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}.DN5M8vx4N_0BCVgoLOes:hover svg{fill:#fff}.ocg7EGgem4ZIHgEZQu_6{display:-webkit-box;flex:1 1 auto;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.ocg7EGgem4ZIHgEZQu_6:not(:first-child){margin-left:10px}.ocg7EGgem4ZIHgEZQu_6>span{white-space:nowrap}.CBb1Pwp3kYhrOKuepTrF>.components-base-control__field{display:grid;gap:3px;grid-template-columns:1fr auto;position:relative}.CBb1Pwp3kYhrOKuepTrF>.components-base-control__field>label{align-items:center;display:flex;grid-column:1;margin-bottom:0}.zvat3Q07S377Zb0WfL1Y{align-items:center;display:inline-flex;gap:2px;grid-column:2;margin-left:auto}.zvat3Q07S377Zb0WfL1Y svg{height:20px;width:20px}.hR7OqMf_5gWUqSRAX3dQ{border:none;font-size:11px;font-weight:500;height:16px;line-height:1.4;margin:0;padding:0;text-transform:uppercase}.hR7OqMf_5gWUqSRAX3dQ:hover{color:inherit}.hR7OqMf_5gWUqSRAX3dQ:focus:not(:disabled){box-shadow:none;outline:none}.hR7OqMf_5gWUqSRAX3dQ svg{display:block;height:18px;margin-left:2px;width:18px}.hR7OqMf_5gWUqSRAX3dQ[aria-expanded=true]{color:inherit}.DUGv5Rxlew6J3N9KogMI{grid-column:1/-1}.DUGv5Rxlew6J3N9KogMI:not(:empty){padding-top:10px}.DDhoA91t6p_RSabkPcf3{height:24px}.DDhoA91t6p_RSabkPcf3 .components-button.has-icon{height:24px;min-width:24px;padding:2px;width:24px}.t3LKxwUzjexhetMplHQl .components-popover__content{min-width:240px}.t3LKxwUzjexhetMplHQl .components-menu-group button svg{height:20px;width:20px}.t3LKxwUzjexhetMplHQl .components-menu-group button.nZz2pLiQ2Lo0AaIbySR6{opacity:.8;pointer-events:none}.uIc9SzfhdI_ANvvmKZcE{padding:0 8px 4px}.nSwxZVH8ScixpQ2BmynZ{display:flex;gap:10px;justify-content:space-between;margin-top:20px}.EbWf6NUYLnSr0XfmGdZN{background:#fafafa;box-shadow:inset 0 0 4px 1px rgba(0,0,0,.05);padding:12px}.EbWf6NUYLnSr0XfmGdZN .components-base-control__field{margin-bottom:0}.vDX5ZbixYbW0ruJiYEVX{margin-bottom:2em}.G4ZmuvVdiWn2_ZQdrNZp{display:flex;justify-content:space-between}.fDpqJqlzwUwWvDrplYSg{margin:.4em 0 2em}.SPY2Sdnjy2rnJsiQFtsU{display:flex!important;gap:0 6px;margin-bottom:5px}.Q2UeBb6zVuXmr__my7aT,.SPY2Sdnjy2rnJsiQFtsU{align-items:center}.Q2UeBb6zVuXmr__my7aT{display:inline-flex;font-size:10px;font-weight:500;line-height:1.4;line-height:24px;margin-bottom:0;text-transform:uppercase}.pGFZX3ruHHyEz0_Fvd_y{align-items:center;display:flex;margin-left:auto}.qVLiSZAPL7gH85gj3P5g{height:24px}.qVLiSZAPL7gH85gj3P5g .components-button.has-icon{height:24px;min-width:24px;padding:2px;width:24px}.keFZJsNURjdJzetmN7q1{line-height:0}.keFZJsNURjdJzetmN7q1 .components-menu-group button svg{height:20px;width:20px}.keFZJsNURjdJzetmN7q1 .components-popover__content{min-width:240px}.keFZJsNURjdJzetmN7q1 dl{margin:0;min-width:215px}.keFZJsNURjdJzetmN7q1 dl dt{font-weight:700}.keFZJsNURjdJzetmN7q1 dl dd{margin-left:0}.keFZJsNURjdJzetmN7q1 dl dd:not(:last-child){margin-bottom:10px}.S_7Mee_tUZyxquzyyhXf{box-sizing:border-box;position:relative}.S_7Mee_tUZyxquzyyhXf.EjSdpyoqNnau6XU9m_im{display:grid;gap:0 5px;grid-template-columns:minmax(0,1fr) auto}.S_7Mee_tUZyxquzyyhXf.EjSdpyoqNnau6XU9m_im>*{grid-column:1}.S_7Mee_tUZyxquzyyhXf.EjSdpyoqNnau6XU9m_im .qVLiSZAPL7gH85gj3P5g{grid-column:2;transform:translateY(4px)}.UGqEIHCNur2jkY0KH61H{padding:0 8px 4px}.UGqEIHCNur2jkY0KH61H>:last-child{margin-bottom:0}.JtbLZxnFrJKGTnJwHpu1{height:20px;right:8px;top:8px;width:20px}.JtbLZxnFrJKGTnJwHpu1.has-icon{min-width:20px;padding:3px}.wwZXbtCiKgyZfunTtT8d{background-color:#639;border-radius:4px;color:#fff;font-size:12px;margin-left:6px;padding:2px 4px}.wwZXbtCiKgyZfunTtT8d.yZOtiHB_QhT3asx8z66I{background-color:#f0b849}.T3R15coh19iViXl7tTQE{background-color:#639;border-radius:100%;height:8px;margin-left:6px;padding:0;width:8px}.T3R15coh19iViXl7tTQE>*{display:none}.T3R15coh19iViXl7tTQE.yZOtiHB_QhT3asx8z66I{background-color:#f0b849}@supports selector(:has(a,b)){.has-global-style label:has(.T3R15coh19iViXl7tTQE){padding-right:14px;position:relative}.has-global-style label:has(.T3R15coh19iViXl7tTQE)+.components-button{margin-left:8px}.has-global-style .T3R15coh19iViXl7tTQE{position:absolute;transform:translateY(50%)}}@supports not selector(:has(a,b)){.has-global-style label{align-items:center;display:flex}}.NAK8N2eGrLkJMFhb24Tw{flex-grow:1}.CrCOieTDiyA3Wo23_Qgn .components-popover__content{background-color:#fafafa;font-family:monospace;font-size:11px;max-width:min(400px,100vw);padding:16px 16px 8px 8px;width:-moz-max-content;width:max-content}.m6J0Djac6HSlveha2bhT{height:inherit;line-height:inherit;padding:0}.JHwKMapQBGU48LjE4edR{margin-left:12px}.BIescFqR618CiiAp66Ok{padding-left:12px;position:relative}.BIescFqR618CiiAp66Ok:focus .ul0em3OHCyNj4T6wHdS3,.BIescFqR618CiiAp66Ok:focus-within .ul0em3OHCyNj4T6wHdS3,.BIescFqR618CiiAp66Ok:hover .ul0em3OHCyNj4T6wHdS3{display:inline-flex}.ul0em3OHCyNj4T6wHdS3{display:none;height:20px!important;left:-12px;line-height:20px!important;min-width:20px!important;position:absolute;top:0;width:20px!important}.MHKuQQdbx0VHBoze4CHB [data-selector]{color:#757575}.MHKuQQdbx0VHBoze4CHB [data-property]{color:#2271b1}.JtbLZxnFrJKGTnJwHpu1{height:20px!important;line-height:20px!important;min-width:20px!important;position:absolute;right:0;top:0;width:20px!important}.Q4_95wjbLPOxIvH375IJ.gb-inspector-controls--filtering .components-panel__body-title{pointer-events:none}.Q4_95wjbLPOxIvH375IJ.gb-inspector-controls--filtering .components-panel__body-toggle svg:not(.components-panel__icon){display:none}.Q4_95wjbLPOxIvH375IJ input::-webkit-inner-spin-button,.Q4_95wjbLPOxIvH375IJ input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.Q4_95wjbLPOxIvH375IJ input[type=number]{-moz-appearance:textfield}.Q4_95wjbLPOxIvH375IJ:not(:has(.gb-styles-builder-control.visible)) .WnWPZZWG_5lgPFahXYyv.qtYUinEI4ZCq2SKlqjOZ{display:block}.Q4_95wjbLPOxIvH375IJ .components-flex-block:has(.gb-styles-builder-control.hidden:only-child){display:none}.Q4_95wjbLPOxIvH375IJ .components-base-control .components-input-control__input,.Q4_95wjbLPOxIvH375IJ .components-base-control .components-select-control__input,.Q4_95wjbLPOxIvH375IJ .components-base-control .components-text-control__input,.Q4_95wjbLPOxIvH375IJ .components-base-control .components-text-control__input[type=color],.Q4_95wjbLPOxIvH375IJ .components-base-control .components-text-control__input[type=number],.Q4_95wjbLPOxIvH375IJ .components-base-control .components-text-control__input[type=text],.Q4_95wjbLPOxIvH375IJ .components-base-control .components-text-control__input[type=url]{height:35px!important;min-height:35px!important;padding-left:10px!important;padding-right:10px!important}.Q4_95wjbLPOxIvH375IJ .components-base-control .gb-stack>.components-button:not(.is-compact):not(.is-small){height:35px!important;min-height:35px!important}.WnWPZZWG_5lgPFahXYyv{display:none}.YzcJARI0jtDyHOPN_Pmm{margin-left:16px;margin-right:16px}.YzcJARI0jtDyHOPN_Pmm.u0l1RpwLFjS3kzoimUMX{margin-bottom:16px;margin-top:16px}.GHGTIuGFWhqTp_J9_nsx.wIHdoZo8md5DrJ9sEaM5:where(:not(:has(.gb-styles-builder-panel__content>.gb-styles-builder-control.visible))){display:none}.GHGTIuGFWhqTp_J9_nsx.wIHdoZo8md5DrJ9sEaM5:has(.gb-panel-section .gb-styles-builder-control.visible){display:block}.VFAmHPT1TFBBIljAeR7m.Kb3Er53JB_rc7ApXXQW6{--angle:-90deg}.BoLE9XSOsBFiKLK7YQp5.Kb3Er53JB_rc7ApXXQW6{--angle:90deg}.BoLE9XSOsBFiKLK7YQp5.h32Unw9c539Lz1Q2aMv8,.VFAmHPT1TFBBIljAeR7m.h32Unw9c539Lz1Q2aMv8{--reverse:-1,1}.BoLE9XSOsBFiKLK7YQp5 .gb-button-icon-control .components-button svg,.VFAmHPT1TFBBIljAeR7m .gb-button-icon-control .components-button svg{transform:rotate(var(--angle,0deg)) scale(var(--reverse,1))}.zgkkZANZwXqBZgReRDZQ{display:flex}.zgkkZANZwXqBZgReRDZQ button{display:flex;flex-grow:1;font-size:12px;justify-content:center}.zgkkZANZwXqBZgReRDZQ button.uLw3ahuDnKx9S5fpzHNn{background:rgba(0,0,0,.07)}.zgkkZANZwXqBZgReRDZQ button svg{width:15px}.KyBT3CpPILZIw3nOozTp{background:#efefef;border-radius:3px;border-top-left-radius:0;border-top-right-radius:0;display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin-top:-2px;padding:10px}.mph0DI7wT2miOOStjFow{background:none;border:0;border-radius:0;cursor:pointer;display:grid;gap:1px;grid-template-columns:var(--grid-template-columns);height:auto;overflow:hidden;padding:3px;width:40px}.AGUoqbXhTSPwOeqXxdCw{background:#fff;border:1px solid #000;border-radius:1px;height:15px}.D_CiAJK3wC3VO5T56qHB{position:relative}.D_CiAJK3wC3VO5T56qHB>.components-button{height:100%;min-width:35px!important;padding-left:2px!important;padding-right:2px!important;position:absolute;right:0;top:0;width:35px!important}.D_CiAJK3wC3VO5T56qHB>.components-button svg{height:25px;width:25px}.D_CiAJK3wC3VO5T56qHB .components-base-control,.D_CiAJK3wC3VO5T56qHB .components-base-control__field{margin:0!important}.D_CiAJK3wC3VO5T56qHB .components-base-control input,.D_CiAJK3wC3VO5T56qHB .components-base-control__field input{padding-right:30px!important}.D_CiAJK3wC3VO5T56qHB .gb-styles-builder-control{display:block;flex-grow:1}.UnofI3BhsT7DIti_pKQG{display:flex}.CHjAr3oDItc_Ei3RRROX{display:grid;grid-template-columns:1fr 1fr}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button{border-radius:0;margin:0}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:nth-child(2n){margin-left:-1px}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:not(:nth-child(-n+2)){margin-top:-1px}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:first-child{border-top-left-radius:3px}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:nth-child(2){border-top-right-radius:3px}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:nth-last-child(2){border-bottom-left-radius:3px}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:last-child{border-bottom-right-radius:3px}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:nth-child(2n):nth-last-child(2){border-bottom-left-radius:0}.CHjAr3oDItc_Ei3RRROX.components-button-group button.components-button:nth-child(odd):last-child{border-bottom-left-radius:3px;grid-column:1/-1}.cvZ249JsgBL_b3vtK8Sv{background-color:#fff;box-sizing:border-box;display:flex;flex-grow:1;font-size:10px;height:35px;justify-content:center;padding:2px}.cvZ249JsgBL_b3vtK8Sv.xEdfT0lWkniW5AACnpxt{background:rgba(0,0,0,.07)}.cvZ249JsgBL_b3vtK8Sv svg{max-width:100%;width:24px}.B8VOAqTJqMh6lwIEPHvQ{align-items:flex-start;display:flex;position:relative}.B8VOAqTJqMh6lwIEPHvQ .components-base-control:first-child{flex-grow:1}.B8VOAqTJqMh6lwIEPHvQ .components-base-control,.B8VOAqTJqMh6lwIEPHvQ .components-base-control__field{margin-bottom:0!important}.B8VOAqTJqMh6lwIEPHvQ:has(button) .components-base-control .components-text-control__input[type=text]{padding-right:32px!important}.c6jzdWOpz80VWp1scmAc{bottom:0;display:flex;gap:3px;position:absolute;right:5px;top:0}.rtl .c6jzdWOpz80VWp1scmAc{left:5px;right:auto}.GJQsQEez1XBMEeKZrekA{align-items:center;display:flex;justify-content:center}.GJQsQEez1XBMEeKZrekA button.components-button{height:25px;justify-content:center!important;min-width:25px;padding:0;width:25px}.GJQsQEez1XBMEeKZrekA button.components-button svg{height:17px;width:17px}.w0K4iKteMT6yizzo2Hsw,.w0K4iKteMT6yizzo2Hsw button{align-items:center;display:flex;justify-content:center}.w0K4iKteMT6yizzo2Hsw button{border:1px solid rgba(0,0,0,.1);border-radius:3px;font-size:10px;height:25px;min-width:25px;padding:0 3px;width:auto}.w0K4iKteMT6yizzo2Hsw button:disabled{pointer-events:none}.w0K4iKteMT6yizzo2Hsw button.is-opened,.w0K4iKteMT6yizzo2Hsw button:hover{border-color:currentColor}.w0K4iKteMT6yizzo2Hsw button.is-opened{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.w0K4iKteMT6yizzo2Hsw button.is-opened,.w0K4iKteMT6yizzo2Hsw button.is-opened:hover{color:var(--wp-components-color-accent-inverted,#fff)}.fPt28OUocui1dDoB1xyu .components-menu-group{padding:8px}.fPt28OUocui1dDoB1xyu .components-menu-group>div[role=group]{display:grid;grid-template-columns:repeat(4,1fr)}.fPt28OUocui1dDoB1xyu .components-menu-group>div[role=group] button{border:none;display:flex;justify-content:center;min-height:auto;padding:6px 8px}.fPt28OUocui1dDoB1xyu .components-menu-group>div[role=group] button .components-menu-item__item{font-size:11px;margin:0;min-width:auto}.fPt28OUocui1dDoB1xyu .components-menu-group>div[role=group] button .components-menu-item__item svg{height:16px;width:16px}.sCx2ZPJ1of6T_tDkH_4c .B8VOAqTJqMh6lwIEPHvQ>.components-base-control{opacity:.5}.o1lCSUrpCUlc5A93xPrJ{position:relative}.o1lCSUrpCUlc5A93xPrJ[open]:before{background-color:#fafafa;border:1px solid hsla(0,0%,88%,.4);border-radius:2px;content:"";inset:-5px;position:absolute;z-index:-1}.o1lCSUrpCUlc5A93xPrJ[open] .rpgdg0SSQiGRARSyFlSS{margin-bottom:12px}.o1lCSUrpCUlc5A93xPrJ.cyuju2GJDbWyqf5U9L3l:has(.gb-styles-builder-control.hidden){display:none}.o1lCSUrpCUlc5A93xPrJ.cyuju2GJDbWyqf5U9L3l:has(.gb-styles-builder-control.visible){display:block}.rpgdg0SSQiGRARSyFlSS{align-items:center;cursor:pointer;display:inline-flex;display:flex;font-size:10px;font-weight:500;font-weight:700;line-height:1.4;text-transform:uppercase}.HGkaFei6kut9o_uLvDjM{margin-left:auto;padding:0 3px}.mQGCsCZDSgE9pRJOnwia{border-bottom:1px solid #e0e0e0}.ySp1_zkvicNdYxsDc9Tg .gb-styles-builder-control{flex:1 1 calc(50% - var(--gap))}.ySp1_zkvicNdYxsDc9Tg.namiLqYFPoXSBrbIaUMs .gb-styles-builder-control{flex-basis:100%}.uLOXs5mIjq23fWdLWa3k>.components-base-control__field{display:flex;flex-wrap:wrap}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK{display:grid;flex-basis:100%;gap:10px;grid-template-areas:"top right " "left bottom"}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK>div .components-base-control__field{margin-bottom:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK>div:nth-child(3){grid-area:left;-ms-grid-column:1;-ms-grid-row:3}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK>div:nth-child(4){grid-area:bottom;-ms-grid-column:3;-ms-grid-row:3}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t){gap:5px;grid-template-areas:". top top ." "left left right right" ". bottom bottom ."}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div{position:relative}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div .gb-styles-builder-control__header--label{align-items:center;display:flex}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.QElevkje66lfTl4cuwr2{-ms-grid-column:3;-ms-grid-row:1;-ms-grid-column-span:3;grid-area:top}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.QElevkje66lfTl4cuwr2 .gb-styles-builder-control__header--label{justify-content:center}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.CPM5pS5rzn1Oa0W6R7FH{-ms-grid-column:1;-ms-grid-row:3;-ms-grid-column-span:3;grid-area:left}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.CPM5pS5rzn1Oa0W6R7FH .gb-styles-builder-control__header{margin:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.CPM5pS5rzn1Oa0W6R7FH .gb-styles-builder-control__header--label{bottom:calc(100% + 5px);left:0;position:absolute}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.vv_IKEQ1ZCdZNnSQRNA8{-ms-grid-column:5;-ms-grid-row:3;-ms-grid-column-span:3;grid-area:right}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.vv_IKEQ1ZCdZNnSQRNA8 .gb-styles-builder-control__header{margin:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.vv_IKEQ1ZCdZNnSQRNA8 .gb-styles-builder-control__header--label{bottom:calc(100% + 5px);position:absolute;right:0}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.ajRN30F56YZPDW8WVFX1{-ms-grid-column:3;-ms-grid-row:5;-ms-grid-column-span:3;display:flex;flex-direction:column-reverse;grid-area:bottom}.gb-inspector-controls:not(.gb-inspector-controls--filtering) .TvuhW9CdmGXLAA9il_YK.FnMClCYu3ERvyT65sLhY:not(.mg3aRxMNkJswlLXmbc_t)>div.ajRN30F56YZPDW8WVFX1 .gb-styles-builder-control__header--label{justify-content:center;margin-bottom:0;padding-top:5px}.gb-inspector-controls.gb-inspector-controls--filtering .TvuhW9CdmGXLAA9il_YK{display:grid;gap:10px}.gb-inspector-controls .TvuhW9CdmGXLAA9il_YK.mg3aRxMNkJswlLXmbc_t,.gb-inspector-controls.gb-inspector-controls--filtering .TvuhW9CdmGXLAA9il_YK{grid-template-areas:none!important;grid-template-columns:1fr}.gb-inspector-controls .TvuhW9CdmGXLAA9il_YK.mg3aRxMNkJswlLXmbc_t .gb-styles-builder-control{display:flex;flex-direction:column-reverse}.gb-inspector-controls .TvuhW9CdmGXLAA9il_YK .OQfw2jErVUghY4ELWRXQ,.gb-inspector-controls .TvuhW9CdmGXLAA9il_YK .gb-styles-builder-control label{font-size:10px;line-height:1;opacity:.5;text-transform:none}.gb-inspector-controls .TvuhW9CdmGXLAA9il_YK svg{display:block;margin-top:4px}.rtl .FnMClCYu3ERvyT65sLhY>div:nth-child(2){grid-area:right;-ms-grid-column:3;-ms-grid-row:1}.rtl .FnMClCYu3ERvyT65sLhY>div:nth-child(3){grid-area:left;-ms-grid-column:1;-ms-grid-row:3}.sHjKPywBYBsV2H0Jryvw .components-menu-item__item svg{height:24px;width:24px}.x1Ic1Ll1wI1vcqsur8Mz{display:flex;gap:2px}.LRvHIGv_KGa2bSMR9Jaz .gb-styles-builder-control label{font-size:10px;line-height:1;opacity:.5;text-transform:none}.Vnf_lJBS5iuXn9zbu5MR{align-items:center;display:flex;gap:5px}.Vnf_lJBS5iuXn9zbu5MR>div{flex-grow:0;gap:0!important}.Vnf_lJBS5iuXn9zbu5MR>div .components-base-control__field{margin-bottom:0}.Vnf_lJBS5iuXn9zbu5MR .gb-unit-control{flex-grow:1}.Vnf_lJBS5iuXn9zbu5MR .EeCMoXJgf8PSan_tp3sw button{border:1px solid #ccc;height:35px;min-width:35px;width:35px}.Vnf_lJBS5iuXn9zbu5MR .EeCMoXJgf8PSan_tp3sw button svg{width:15px}.tucdNfG9RtPOLhlEaywP{display:flex;flex-grow:0}.tucdNfG9RtPOLhlEaywP>div{margin:0}.tucdNfG9RtPOLhlEaywP>div .components-base-control__help{font-size:10px;line-height:1;margin-top:5px;opacity:.7}.TUCdF7Lx0BYwXfg5yjhx.components-button{height:15px;margin-inline-start:5px;padding:0;text-align:center;width:15px}.TUCdF7Lx0BYwXfg5yjhx.components-button svg{height:18px;width:18px;fill:currentColor}.sHuHr5kM6xOBOFFfmGpr{flex-shrink:0}.fXFgJAxmLLUPjAL1_R1n{align-items:center;display:flex;font-style:normal}.fXFgJAxmLLUPjAL1_R1n img{display:block;height:21px}.kdt8o8TCjBzm4VAkZZsM{overflow:hidden;text-overflow:ellipsis}.HXBoYZy0LsrG0A2KPxEN .components-custom-gradient-picker .components-angle-picker-control .components-spacer{align-self:flex-end;margin:0 0 3px}.HXBoYZy0LsrG0A2KPxEN .components-custom-gradient-picker__ui-line{margin-bottom:10px}.HXBoYZy0LsrG0A2KPxEN .components-circular-option-picker__custom-clear-wrapper{margin-top:10px}.HXBoYZy0LsrG0A2KPxEN .components-circular-option-picker__custom-clear-wrapper:only-child{margin-top:0}.HXBoYZy0LsrG0A2KPxEN .components-circular-option-picker__clear{padding-bottom:0;padding-top:0}.ZQ2jczeEzclMSq2Y6Ycl>*+*{margin-top:8px}.kQhlV9f3Se0c02RlYBcS{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px;position:relative;width:100%}.VYOL7GnBkf6Ar5jt1Jo5{height:48px}.q7yvbdMjv5bBfP4xTul8 :is(input,select){height:40px!important}._EBPOE6iJi31mNASb0jM,.q7yvbdMjv5bBfP4xTul8 .lmdboHK0j89_NNsHTa44{flex-basis:50%}.l5bareCDpJkw8udwU7nC{min-width:0;padding:0}.g5_kFvTqIN8NCdhdSwKl{margin-bottom:0}.g5_kFvTqIN8NCdhdSwKl>*+*{margin-top:10px}.PDhnyDecXzi_7wPZzgsp .focal-point-picker__controls{display:none}.PDhnyDecXzi_7wPZzgsp .components-text-control__input{height:35px}.hp6b8k8k_jvTKv07UXJ7.components-button{height:35px;line-height:35px}.GYXAKGkqN8o8ViTiPrmr{border-bottom-right-radius:0;border-top-right-radius:0}.NoZsOEI44T12k6kp6rBl{display:flex} .IpVd14D6_9_6nibT1bMp .components-base-control .components-input-control__input,.IpVd14D6_9_6nibT1bMp .components-base-control .components-select-control__input,.IpVd14D6_9_6nibT1bMp .components-base-control .components-text-control__input,.IpVd14D6_9_6nibT1bMp .components-base-control .components-text-control__input[type=color],.IpVd14D6_9_6nibT1bMp .components-base-control .components-text-control__input[type=number],.IpVd14D6_9_6nibT1bMp .components-base-control .components-text-control__input[type=text],.IpVd14D6_9_6nibT1bMp .components-base-control .components-text-control__input[type=url],.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .components-input-control__input,.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .components-select-control__input,.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .components-text-control__input,.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .components-text-control__input[type=color],.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .components-text-control__input[type=number],.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .components-text-control__input[type=text],.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .components-text-control__input[type=url]{height:35px!important;min-height:35px!important;padding-left:10px!important;padding-right:10px!important}.IpVd14D6_9_6nibT1bMp .components-base-control .gb-stack>.components-button:not(.is-compact):not(.is-small),.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel)+div .components-base-control .gb-stack>.components-button:not(.is-compact):not(.is-small){height:35px!important;min-height:35px!important}.ute8pCHQmVYd9K5Qx4hW:not(:first-child){border-top:1px solid #ddd}.ute8pCHQmVYd9K5Qx4hW .components-tab-panel__tabs button{flex-grow:1}.ute8pCHQmVYd9K5Qx4hW .gb-styles-builder{border-top:1px solid #ddd;padding:16px}.ute8pCHQmVYd9K5Qx4hW .gb-styles-builder .gb-inspector-controls .components-base-control{margin-bottom:0}.ute8pCHQmVYd9K5Qx4hW .gb-inspector-controls{margin-left:-16px;margin-right:-16px}.ute8pCHQmVYd9K5Qx4hW.IbI9OE7ZkHsb96yIuS6K~.components-panel__body{display:none}.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel [id$=styles-view]) .gb-block-styles-tab-panel~*,.block-editor-block-inspector>div:has(.gb-block-styles-tab-panel [id$=styles-view])+div{display:none!important} diff --git a/dist/styles-builder-imported.asset.php b/dist/styles-builder-imported.asset.php index 8174221c6..b863d36ff 100644 --- a/dist/styles-builder-imported.asset.php +++ b/dist/styles-builder-imported.asset.php @@ -1 +1 @@ - array('generateblocks-components', 'lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives'), 'version' => 'adeb8da8c9bf0be95072'); + array('generateblocks-components', 'lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives'), 'version' => '030c831a171b5da1ae09'); diff --git a/dist/styles-builder.asset.php b/dist/styles-builder.asset.php index 556e6a7f6..f741b9f09 100644 --- a/dist/styles-builder.asset.php +++ b/dist/styles-builder.asset.php @@ -1 +1 @@ - array(), 'version' => 'aa06f430bb7096f41f9d'); + array(), 'version' => '5361383867e189cdec93'); diff --git a/dist/styles-builder.js b/dist/styles-builder.js index 596b9560e..ea66ee9cc 100644 --- a/dist/styles-builder.js +++ b/dist/styles-builder.js @@ -1,19 +1,19 @@ -(()=>{var e={555:e=>{var t;self,t=()=>(()=>{var e={8937:e=>{"use strict";var t={}.hasOwnProperty,r=/[ -,\.\/:-@\[-\^`\{-~]/,n=/[ -,\.\/:-@\[\]\^`\{-~]/,o=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,a=function e(a,s){"single"!=(s=function(e,r){if(!e)return r;var n={};for(var o in r)n[o]=t.call(e,o)?e[o]:r[o];return n}(s,e.options)).quotes&&"double"!=s.quotes&&(s.quotes="single");for(var i="double"==s.quotes?'"':"'",l=s.isIdentifier,c=a.charAt(0),u="",d=0,p=a.length;d126){if(m>=55296&&m<=56319&&d{var r,n;(n=n||{}).stringify=(r={"visit_linear-gradient":function(e){return r.visit_gradient(e)},"visit_repeating-linear-gradient":function(e){return r.visit_gradient(e)},"visit_radial-gradient":function(e){return r.visit_gradient(e)},"visit_repeating-radial-gradient":function(e){return r.visit_gradient(e)},visit_gradient:function(e){var t=r.visit(e.orientation);return t&&(t+=", "),e.type+"("+t+r.visit(e.colorStops)+")"},visit_shape:function(e){var t=e.value,n=r.visit(e.at),o=r.visit(e.style);return o&&(t+=" "+o),n&&(t+=" at "+n),t},"visit_default-radial":function(e){var t="",n=r.visit(e.at);return n&&(t+=n),t},"visit_extent-keyword":function(e){var t=e.value,n=r.visit(e.at);return n&&(t+=" at "+n),t},"visit_position-keyword":function(e){return e.value},visit_position:function(e){return r.visit(e.value.x)+" "+r.visit(e.value.y)},"visit_%":function(e){return e.value+"%"},visit_em:function(e){return e.value+"em"},visit_px:function(e){return e.value+"px"},visit_literal:function(e){return r.visit_color(e.value,e)},visit_hex:function(e){return r.visit_color("#"+e.value,e)},visit_rgb:function(e){return r.visit_color("rgb("+e.value.join(", ")+")",e)},visit_rgba:function(e){return r.visit_color("rgba("+e.value.join(", ")+")",e)},visit_color:function(e,t){var n=e,o=r.visit(t.length);return o&&(n+=" "+o),n},visit_angular:function(e){return e.value+"deg"},visit_directional:function(e){return"to "+e.value},visit_array:function(e){var t="",n=e.length;return e.forEach((function(e,o){t+=r.visit(e),o0&&r("Invalid input not EOF"),o;var o}}(),t.parse=n.parse,t.stringify=n.stringify},9456:(e,t,r)=>{e.exports.all=r(9817).properties},8633:e=>{var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=r(),e.exports.createColors=r},3268:e=>{"use strict";const t="postcss-discard-empty";function r(){return{postcssPlugin:t,OnceExit(e,{result:r}){!function(e,r){e.each((function e(n){const{type:o}=n,a=n.nodes;a&&n.each(e),("decl"===o&&!n.value&&!n.prop.startsWith("--")||"rule"===o&&!n.selector||a&&!a.length&&("atrule"!==o||"layer"!==n.name)||"atrule"===o&&(!a&&!n.params||!n.params&&!a.length))&&(n.remove(),r.messages.push({type:"removal",plugin:t,node:n}))}))}(e,r)}}}r.postcss=!0,e.exports=r},691:(e,t,r)=>{const n=r(7149),o=r(5482),a=n((e=>{e.walk((e=>{e.spaces={before:"",after:""},e.raws&&e.raws.spaces&&(e.raws.spaces={})}))}));function s(e){const t=o(e.trim());return t.walk((e=>{e.before&&(e.before=""),e.after&&(e.after=""),"space"===e.type&&(e.value=" ")})),t.toString()}e.exports=()=>({postcssPlugin:"postcss-minify",AtRule:e=>{e.raws={before:"",after:"",afterName:" "},e.params=s(e.params)},Comment:e=>{"!"===e.text[0]?(e.raws.before="",e.raws.after=""):e.remove()},Declaration:e=>{e.raws={before:"",between:":"},e.value=s(e.value)},Rule:e=>{var t;e.raws={before:"",between:"",after:"",semicolon:!1},e.selector=(t=e.selector,a.processSync(t))}}),e.exports.postcss=!0},7149:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(8349))&&n.__esModule?n:{default:n},a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(680));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var i=function(e){return new o.default(e)};Object.assign(i,a),delete i.__esModule;var l=i;t.default=l,e.exports=t.default},5170:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o,a=x(r(518)),s=x(r(339)),i=x(r(4195)),l=x(r(425)),c=x(r(7071)),u=x(r(9720)),d=x(r(5799)),p=x(r(7324)),h=S(r(5588)),m=x(r(1669)),f=x(r(1704)),g=x(r(2918)),b=x(r(263)),v=S(r(2648)),y=S(r(71)),w=S(r(1581)),k=r(9606);function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(E=function(e){return e?r:t})(e)}function S(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=E(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function x(e){return e&&e.__esModule?e:{default:e}}function C(e,t){for(var r=0;rthis.position&&(o=this.parseWhitespaceEquivalentTokens(t)),this.isNamedCombinator()?r=this.namedCombinator():this.currToken[v.FIELDS.TYPE]===y.combinator?(r=new f.default({value:this.content(),source:P(this.currToken),sourceIndex:this.currToken[v.FIELDS.START_POS]}),this.position++):_[this.currToken[v.FIELDS.TYPE]]||o||this.unexpected(),r){if(o){var a=this.convertWhitespaceNodesToSpace(o),s=a.space,i=a.rawSpace;r.spaces.before=s,r.rawSpaceBefore=i}}else{var l=this.convertWhitespaceNodesToSpace(o,!0),c=l.space,u=l.rawSpace;u||(u=c);var d={},p={spaces:{}};c.endsWith(" ")&&u.endsWith(" ")?(d.before=c.slice(0,c.length-1),p.spaces.before=u.slice(0,u.length-1)):c.startsWith(" ")&&u.startsWith(" ")?(d.after=c.slice(1),p.spaces.after=u.slice(1)):p.value=u,r=new f.default({value:" ",source:A(n,this.tokens[this.position-1]),sourceIndex:n[v.FIELDS.START_POS],spaces:d,raws:p})}return this.currToken&&this.currToken[v.FIELDS.TYPE]===y.space&&(r.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(r)}var h=this.parseWhitespaceEquivalentTokens(t);if(h.length>0){var m=this.current.last;if(m){var g=this.convertWhitespaceNodesToSpace(h),b=g.space,w=g.rawSpace;void 0!==w&&(m.rawSpaceAfter+=w),m.spaces.after+=b}else h.forEach((function(t){return e.newNode(t)}))}},n.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;this.current._inferEndPosition();var e=new s.default({source:{start:T(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][v.FIELDS.START_POS]});this.current.parent.append(e),this.current=e,this.position++},n.comment=function(){var e=this.currToken;this.newNode(new l.default({value:this.content(),source:P(e),sourceIndex:e[v.FIELDS.START_POS]})),this.position++},n.error=function(e,t){throw this.root.error(e,t)},n.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[v.FIELDS.START_POS]})},n.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[v.FIELDS.START_POS])},n.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[v.FIELDS.START_POS])},n.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[v.FIELDS.START_POS])},n.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[v.FIELDS.START_POS])},n.namespace=function(){var e=this.prevToken&&this.content(this.prevToken)||!0;return this.nextToken[v.FIELDS.TYPE]===y.word?(this.position++,this.word(e)):this.nextToken[v.FIELDS.TYPE]===y.asterisk?(this.position++,this.universal(e)):void this.unexpectedPipe()},n.nesting=function(){if(this.nextToken&&"|"===this.content(this.nextToken))this.position++;else{var e=this.currToken;this.newNode(new g.default({value:this.content(),source:P(e),sourceIndex:e[v.FIELDS.START_POS]})),this.position++}},n.parentheses=function(){var e=this.current.last,t=1;if(this.position++,e&&e.type===w.PSEUDO){var r=new s.default({source:{start:T(this.tokens[this.position])},sourceIndex:this.tokens[this.position][v.FIELDS.START_POS]}),n=this.current;for(e.append(r),this.current=r;this.position1&&e.nextToken&&e.nextToken[v.FIELDS.TYPE]===y.openParenthesis&&e.error("Misplaced parenthesis.",{index:e.nextToken[v.FIELDS.START_POS]})})):this.expected(["pseudo-class","pseudo-element"],this.position-1)},n.space=function(){var e=this.content();0===this.position||this.prevToken[v.FIELDS.TYPE]===y.comma||this.prevToken[v.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every((function(e){return"comment"===e.type}))?(this.spaces=this.optionalSpace(e),this.position++):this.position===this.tokens.length-1||this.nextToken[v.FIELDS.TYPE]===y.comma||this.nextToken[v.FIELDS.TYPE]===y.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(e),this.position++):this.combinator()},n.string=function(){var e=this.currToken;this.newNode(new d.default({value:this.content(),source:P(e),sourceIndex:e[v.FIELDS.START_POS]})),this.position++},n.universal=function(e){var t=this.nextToken;if(t&&"|"===this.content(t))return this.position++,this.namespace();var r=this.currToken;this.newNode(new m.default({value:this.content(),source:P(r),sourceIndex:r[v.FIELDS.START_POS]}),e),this.position++},n.splitWord=function(e,t){for(var r=this,n=this.nextToken,o=this.content();n&&~[y.dollar,y.caret,y.equals,y.word].indexOf(n[v.FIELDS.TYPE]);){this.position++;var a=this.content();if(o+=a,a.lastIndexOf("\\")===a.length-1){var s=this.nextToken;s&&s[v.FIELDS.TYPE]===y.space&&(o+=this.requiredSpace(this.content(s)),this.position++)}n=this.nextToken}var l=L(o,".").filter((function(e){var t="\\"===o[e-1],r=/^\d+\.\d+%$/.test(o);return!t&&!r})),d=L(o,"#").filter((function(e){return"\\"!==o[e-1]})),p=L(o,"#{");p.length&&(d=d.filter((function(e){return!~p.indexOf(e)})));var h=(0,b.default)(function(){var e=Array.prototype.concat.apply([],arguments);return e.filter((function(t,r){return r===e.indexOf(t)}))}([0].concat(l,d)));h.forEach((function(n,a){var s,p=h[a+1]||o.length,m=o.slice(n,p);if(0===a&&t)return t.call(r,m,h.length);var f=r.currToken,g=f[v.FIELDS.START_POS]+h[a],b=M(f[1],f[2]+n,f[3],f[2]+(p-1));if(~l.indexOf(n)){var y={value:m.slice(1),source:b,sourceIndex:g};s=new i.default(R(y,"value"))}else if(~d.indexOf(n)){var w={value:m.slice(1),source:b,sourceIndex:g};s=new c.default(R(w,"value"))}else{var k={value:m,source:b,sourceIndex:g};R(k,"value"),s=new u.default(k)}r.newNode(s,e),e=null})),this.position++},n.word=function(e){var t=this.nextToken;return t&&"|"===this.content(t)?(this.position++,this.namespace()):this.splitWord(e)},n.loop=function(){for(;this.position{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(5170))&&n.__esModule?n:{default:n},a=function(){function e(e,t){this.func=e||function(){},this.funcRes=null,this.options=t}var t=e.prototype;return t._shouldUpdateSelector=function(e,t){return void 0===t&&(t={}),!1!==Object.assign({},this.options,t).updateSelector&&"string"!=typeof e},t._isLossy=function(e){return void 0===e&&(e={}),!1===Object.assign({},this.options,e).lossless},t._root=function(e,t){return void 0===t&&(t={}),new o.default(e,this._parseOptions(t)).root},t._parseOptions=function(e){return{lossy:this._isLossy(e)}},t._run=function(e,t){var r=this;return void 0===t&&(t={}),new Promise((function(n,o){try{var a=r._root(e,t);Promise.resolve(r.func(a)).then((function(n){var o=void 0;return r._shouldUpdateSelector(e,t)&&(o=a.toString(),e.selector=o),{transform:n,root:a,string:o}})).then(n,o)}catch(e){return void o(e)}}))},t._runSync=function(e,t){void 0===t&&(t={});var r=this._root(e,t),n=this.func(r);if(n&&"function"==typeof n.then)throw new Error("Selector processor returned a promise to a synchronous call.");var o=void 0;return t.updateSelector&&"string"!=typeof e&&(o=r.toString(),e.selector=o),{transform:n,root:r,string:o}},t.ast=function(e,t){return this._run(e,t).then((function(e){return e.root}))},t.astSync=function(e,t){return this._runSync(e,t).root},t.transform=function(e,t){return this._run(e,t).then((function(e){return e.transform}))},t.transformSync=function(e,t){return this._runSync(e,t).transform},t.process=function(e,t){return this._run(e,t).then((function(e){return e.string||e.root.toString()}))},t.processSync=function(e,t){var r=this._runSync(e,t);return r.string||r.root.toString()},e}();t.default=a,e.exports=t.default},5588:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0,t.unescapeValue=g;var n,o=l(r(8937)),a=l(r(5286)),s=l(r(3295)),i=r(1581);function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var r=0;r0)||e.quoted||0!==r.before.length||e.spaces.value&&e.spaces.value.after||(r.before=" "),y(t,r)})))),t.push("]"),t.push(this.rawSpaceAfter),t.join("")},a=n,(s=[{key:"quoted",get:function(){var e=this.quoteMark;return"'"===e||'"'===e},set:function(e){m()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(e){this._constructed?this._quoteMark!==e&&(this._quoteMark=e,this._syncRawValue()):this._quoteMark=e}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(e){if(this._constructed){var t=g(e),r=t.deprecatedUsage,n=t.unescaped,o=t.quoteMark;if(r&&h(),n===this._value&&o===this._quoteMark)return;this._value=n,this._quoteMark=o,this._syncRawValue()}else this._value=e}},{key:"insensitive",get:function(){return this._insensitive},set:function(e){e||(this._insensitive=!1,!this.raws||"I"!==this.raws.insensitiveFlag&&"i"!==this.raws.insensitiveFlag||(this.raws.insensitiveFlag=void 0)),this._insensitive=e}},{key:"attribute",get:function(){return this._attribute},set:function(e){this._handleEscapes("attribute",e),this._attribute=e}}])&&c(a.prototype,s),Object.defineProperty(a,"prototype",{writable:!1}),n}(s.default);t.default=b,b.NO_QUOTE=null,b.SINGLE_QUOTE="'",b.DOUBLE_QUOTE='"';var v=((n={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}}).null={isIdentifier:!0},n);function y(e,t){return""+t.before+e+t.after}},4195:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=i(r(8937)),o=r(9606),a=i(r(4646)),s=r(1581);function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var r=0;r{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(4646))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.COMBINATOR,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n}(o.default);t.default=i,e.exports=t.default},425:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(4646))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.COMMENT,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n}(o.default);t.default=i,e.exports=t.default},4451:(e,t,r)=>{"use strict";t.__esModule=!0,t.universal=t.tag=t.string=t.selector=t.root=t.pseudo=t.nesting=t.id=t.comment=t.combinator=t.className=t.attribute=void 0;var n=f(r(5588)),o=f(r(4195)),a=f(r(1704)),s=f(r(425)),i=f(r(7071)),l=f(r(2918)),c=f(r(7324)),u=f(r(518)),d=f(r(339)),p=f(r(5799)),h=f(r(9720)),m=f(r(1669));function f(e){return e&&e.__esModule?e:{default:e}}t.attribute=function(e){return new n.default(e)},t.className=function(e){return new o.default(e)},t.combinator=function(e){return new a.default(e)},t.comment=function(e){return new s.default(e)},t.id=function(e){return new i.default(e)},t.nesting=function(e){return new l.default(e)},t.pseudo=function(e){return new c.default(e)},t.root=function(e){return new u.default(e)},t.selector=function(e){return new d.default(e)},t.string=function(e){return new p.default(e)},t.tag=function(e){return new h.default(e)},t.universal=function(e){return new m.default(e)}},3631:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(4646))&&n.__esModule?n:{default:n},a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(1581));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e&&(this.indexes[r]=t-1);return this},u.removeAll=function(){for(var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.nodes);!(e=t()).done;)e.value.parent=void 0;return this.nodes=[],this},u.empty=function(){return this.removeAll()},u.insertAfter=function(e,t){t.parent=this;var r,n=this.index(e);for(var o in this.nodes.splice(n+1,0,t),t.parent=this,this.indexes)n<=(r=this.indexes[o])&&(this.indexes[o]=r+1);return this},u.insertBefore=function(e,t){t.parent=this;var r,n=this.index(e);for(var o in this.nodes.splice(n,0,t),t.parent=this,this.indexes)(r=this.indexes[o])<=n&&(this.indexes[o]=r+1);return this},u._findChildAtPosition=function(e,t){var r=void 0;return this.each((function(n){if(n.atPosition){var o=n.atPosition(e,t);if(o)return r=o,!1}else if(n.isAtPosition(e,t))return r=n,!1})),r},u.atPosition=function(e,t){return this.isAtPosition(e,t)?this._findChildAtPosition(e,t)||this:void 0},u._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},u.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var r,n;this.indexes[t]{"use strict";t.__esModule=!0,t.isComment=t.isCombinator=t.isClassName=t.isAttribute=void 0,t.isContainer=function(e){return!(!s(e)||!e.walk)},t.isIdentifier=void 0,t.isNamespace=function(e){return l(e)||v(e)},t.isNesting=void 0,t.isNode=s,t.isPseudo=void 0,t.isPseudoClass=function(e){return m(e)&&!w(e)},t.isPseudoElement=w,t.isUniversal=t.isTag=t.isString=t.isSelector=t.isRoot=void 0;var n,o=r(1581),a=((n={})[o.ATTRIBUTE]=!0,n[o.CLASS]=!0,n[o.COMBINATOR]=!0,n[o.COMMENT]=!0,n[o.ID]=!0,n[o.NESTING]=!0,n[o.PSEUDO]=!0,n[o.ROOT]=!0,n[o.SELECTOR]=!0,n[o.STRING]=!0,n[o.TAG]=!0,n[o.UNIVERSAL]=!0,n);function s(e){return"object"==typeof e&&a[e.type]}function i(e,t){return s(t)&&t.type===e}var l=i.bind(null,o.ATTRIBUTE);t.isAttribute=l;var c=i.bind(null,o.CLASS);t.isClassName=c;var u=i.bind(null,o.COMBINATOR);t.isCombinator=u;var d=i.bind(null,o.COMMENT);t.isComment=d;var p=i.bind(null,o.ID);t.isIdentifier=p;var h=i.bind(null,o.NESTING);t.isNesting=h;var m=i.bind(null,o.PSEUDO);t.isPseudo=m;var f=i.bind(null,o.ROOT);t.isRoot=f;var g=i.bind(null,o.SELECTOR);t.isSelector=g;var b=i.bind(null,o.STRING);t.isString=b;var v=i.bind(null,o.TAG);t.isTag=v;var y=i.bind(null,o.UNIVERSAL);function w(e){return m(e)&&e.value&&(e.value.startsWith("::")||":before"===e.value.toLowerCase()||":after"===e.value.toLowerCase()||":first-letter"===e.value.toLowerCase()||":first-line"===e.value.toLowerCase())}t.isUniversal=y},7071:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(4646))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.ID,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n.prototype.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},n}(o.default);t.default=i,e.exports=t.default},680:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(1581);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))}));var o=r(4451);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var a=r(8500);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},3295:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=a(r(8937)),o=r(9606);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var r=0;r{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(4646))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.NESTING,r.value="&",r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n}(o.default);t.default=i,e.exports=t.default},4646:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=r(9606);function o(e,t){for(var r=0;re||this.source.end.linet||this.source.end.line===e&&this.source.end.column{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(3631))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.PSEUDO,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n.prototype.toString=function(){var e=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),e,this.rawSpaceAfter].join("")},n}(o.default);t.default=i,e.exports=t.default},518:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(3631))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){for(var r=0;r{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(3631))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.SELECTOR,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n}(o.default);t.default=i,e.exports=t.default},5799:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(4646))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.STRING,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n}(o.default);t.default=i,e.exports=t.default},9720:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(3295))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.TAG,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n}(o.default);t.default=i,e.exports=t.default},1581:(e,t)=>{"use strict";t.__esModule=!0,t.UNIVERSAL=t.TAG=t.STRING=t.SELECTOR=t.ROOT=t.PSEUDO=t.NESTING=t.ID=t.COMMENT=t.COMBINATOR=t.CLASS=t.ATTRIBUTE=void 0,t.TAG="tag",t.STRING="string",t.SELECTOR="selector",t.ROOT="root",t.PSEUDO="pseudo",t.NESTING="nesting",t.ID="id",t.COMMENT="comment",t.COMBINATOR="combinator",t.CLASS="class",t.ATTRIBUTE="attribute",t.UNIVERSAL="universal"},1669:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(3295))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.UNIVERSAL,r.value="*",r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n}(o.default);t.default=i,e.exports=t.default},263:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e.sort((function(e,t){return e-t}))},e.exports=t.default},71:(e,t)=>{"use strict";t.__esModule=!0,t.word=t.tilde=t.tab=t.str=t.space=t.slash=t.singleQuote=t.semicolon=t.plus=t.pipe=t.openSquare=t.openParenthesis=t.newline=t.greaterThan=t.feed=t.equals=t.doubleQuote=t.dollar=t.cr=t.comment=t.comma=t.combinator=t.colon=t.closeSquare=t.closeParenthesis=t.caret=t.bang=t.backslash=t.at=t.asterisk=t.ampersand=void 0,t.ampersand=38,t.asterisk=42,t.at=64,t.comma=44,t.colon=58,t.semicolon=59,t.openParenthesis=40,t.closeParenthesis=41,t.openSquare=91,t.closeSquare=93,t.dollar=36,t.tilde=126,t.caret=94,t.plus=43,t.equals=61,t.pipe=124,t.greaterThan=62,t.space=32,t.singleQuote=39,t.doubleQuote=34,t.slash=47,t.bang=33,t.backslash=92,t.cr=13,t.feed=12,t.newline=10,t.tab=9,t.str=39,t.comment=-1,t.word=-2,t.combinator=-3},2648:(e,t,r)=>{"use strict";t.__esModule=!0,t.FIELDS=void 0,t.default=function(e){var t,r,n,o,s,i,l,c,u,p,h,m,f=[],g=e.css.valueOf(),b=g.length,v=-1,y=1,w=0,k=0;function E(t,r){if(!e.safe)throw e.error("Unclosed "+t,y,w-v,w);c=(g+=r).length-1}for(;w0?(u=y+i,p=c-l[i].length):(u=y,p=v),m=a.comment,y=u,n=u,r=c-p):t===a.slash?(m=t,n=y,r=w-v,k=(c=w)+1):(c=d(g,w),m=a.word,n=y,r=c-v),k=c+1}f.push([m,y,w-v,n,r,w,k]),p&&(v=p,p=null),w=k}return f};var n,o,a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(71));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}for(var i=((n={})[a.tab]=!0,n[a.newline]=!0,n[a.cr]=!0,n[a.feed]=!0,n),l=((o={})[a.space]=!0,o[a.tab]=!0,o[a.newline]=!0,o[a.cr]=!0,o[a.feed]=!0,o[a.ampersand]=!0,o[a.asterisk]=!0,o[a.bang]=!0,o[a.comma]=!0,o[a.colon]=!0,o[a.semicolon]=!0,o[a.openParenthesis]=!0,o[a.closeParenthesis]=!0,o[a.openSquare]=!0,o[a.closeSquare]=!0,o[a.singleQuote]=!0,o[a.doubleQuote]=!0,o[a.plus]=!0,o[a.pipe]=!0,o[a.tilde]=!0,o[a.greaterThan]=!0,o[a.equals]=!0,o[a.dollar]=!0,o[a.caret]=!0,o[a.slash]=!0,o),c={},u=0;u<22;u++)c["0123456789abcdefABCDEF".charCodeAt(u)]=!0;function d(e,t){var r,n=t;do{if(r=e.charCodeAt(n),l[r])return n-1;r===a.backslash?n=p(e,n)+1:n++}while(n{"use strict";t.__esModule=!0,t.default=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0;){var o=r.shift();e[o]||(e[o]={}),e=e[o]}},e.exports=t.default},6291:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0;){var o=r.shift();if(!e[o])return;e=e[o]}return e},e.exports=t.default},9606:(e,t,r)=>{"use strict";t.__esModule=!0,t.unesc=t.stripComments=t.getProp=t.ensureObject=void 0;var n=i(r(5286));t.unesc=n.default;var o=i(r(6291));t.getProp=o.default;var a=i(r(1557));t.ensureObject=a.default;var s=i(r(8354));function i(e){return e&&e.__esModule?e:{default:e}}t.stripComments=s.default},8354:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){for(var t="",r=e.indexOf("/*"),n=0;r>=0;){t+=e.slice(n,r);var o=e.indexOf("*/",r+2);if(o<0)return t;n=o+2,r=e.indexOf("/*",n)}return t+e.slice(n)},e.exports=t.default},5286:(e,t)=>{"use strict";function r(e){for(var t=e.toLowerCase(),r="",n=!1,o=0;o<6&&void 0!==t[o];o++){var a=t.charCodeAt(o);if(n=32===a,!(a>=97&&a<=102||a>=48&&a<=57))break;r+=t[o]}if(0!==r.length){var s=parseInt(r,16);return s>=55296&&s<=57343||0===s||s>1114111?["�",r.length+(n?1:0)]:[String.fromCodePoint(s),r.length+(n?1:0)]}}t.__esModule=!0,t.default=function(e){if(!n.test(e))return e;for(var t="",o=0;o{var n=r(8809),o=r(8449),a=r(9063);function s(e){return this instanceof s?(this.nodes=n(e),this):new s(e)}s.prototype.toString=function(){return Array.isArray(this.nodes)?a(this.nodes):""},s.prototype.walk=function(e,t){return o(this.nodes,e,t),this},s.unit=r(2882),s.walk=o,s.stringify=a,e.exports=s},8809:e=>{var t="(".charCodeAt(0),r=")".charCodeAt(0),n="'".charCodeAt(0),o='"'.charCodeAt(0),a="\\".charCodeAt(0),s="/".charCodeAt(0),i=",".charCodeAt(0),l=":".charCodeAt(0),c="*".charCodeAt(0),u="u".charCodeAt(0),d="U".charCodeAt(0),p="+".charCodeAt(0),h=/^[a-f0-9?-]+$/i;e.exports=function(e){for(var m,f,g,b,v,y,w,k,E,S=[],x=e,C=0,_=x.charCodeAt(C),O=x.length,T=[{nodes:S}],I=0,M="",P="",A="";C{function t(e,t){var n,o,a=e.type,s=e.value;return t&&void 0!==(o=t(e))?o:"word"===a||"space"===a?s:"string"===a?(n=e.quote||"")+s+(e.unclosed?"":n):"comment"===a?"/*"+s+(e.unclosed?"":"*/"):"div"===a?(e.before||"")+s+(e.after||""):Array.isArray(e.nodes)?(n=r(e.nodes,t),"function"!==a?n:s+"("+(e.before||"")+n+(e.after||"")+(e.unclosed?"":")")):s}function r(e,r){var n,o;if(Array.isArray(e)){for(n="",o=e.length-1;~o;o-=1)n=t(e[o],r)+n;return n}return t(e,r)}e.exports=r},2882:e=>{var t="-".charCodeAt(0),r="+".charCodeAt(0),n=".".charCodeAt(0),o="e".charCodeAt(0),a="E".charCodeAt(0);e.exports=function(e){var s,i,l,c=0,u=e.length;if(0===u||!function(e){var o,a=e.charCodeAt(0);if(a===r||a===t){if((o=e.charCodeAt(1))>=48&&o<=57)return!0;var s=e.charCodeAt(2);return o===n&&s>=48&&s<=57}return a===n?(o=e.charCodeAt(1))>=48&&o<=57:a>=48&&a<=57}(e))return!1;for((s=e.charCodeAt(c))!==r&&s!==t||c++;c57);)c+=1;if(s=e.charCodeAt(c),i=e.charCodeAt(c+1),s===n&&i>=48&&i<=57)for(c+=2;c57);)c+=1;if(s=e.charCodeAt(c),i=e.charCodeAt(c+1),l=e.charCodeAt(c+2),(s===o||s===a)&&(i>=48&&i<=57||(i===r||i===t)&&l>=48&&l<=57))for(c+=i===r||i===t?3:2;c57);)c+=1;return{number:e.slice(0,c),unit:e.slice(c)}}},8449:e=>{e.exports=function e(t,r,n){var o,a,s,i;for(o=0,a=t.length;o{"use strict";let n=r(7793);class o extends n{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=o,o.default=o,n.registerAtRule(o)},9371:(e,t,r)=>{"use strict";let n=r(3152);class o extends n{constructor(e){super(e),this.type="comment"}}e.exports=o,o.default=o},7793:(e,t,r)=>{"use strict";let n,o,a,s,{isClean:i,my:l}=r(4151),c=r(5238),u=r(9371),d=r(3152);function p(e){return e.map((e=>(e.nodes&&(e.nodes=p(e.nodes)),delete e.source,e)))}function h(e){if(e[i]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)h(t)}class m extends d{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map((e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e))):"every"===t||"some"===t?r=>e[t](((e,...t)=>r(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),o=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of o)this.proxyOf.nodes.splice(n+1,0,e);for(let e in this.indexes)r=this.indexes[e],n(e[l]||m.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[i]&&h(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls((n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{let n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("atrule"===e.type)return t(e,r)})))}walkComments(e){return this.walk(((t,r)=>{if("comment"===t.type)return e(t,r)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("decl"===e.type)return t(e,r)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("rule"===e.type)return t(e,r)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}m.registerParse=e=>{n=e},m.registerRule=e=>{o=e},m.registerAtRule=e=>{a=e},m.registerRoot=e=>{s=e},e.exports=m,m.default=m,m.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,a.prototype):"rule"===e.type?Object.setPrototypeOf(e,o.prototype):"decl"===e.type?Object.setPrototypeOf(e,c.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[l]=!0,e.nodes&&e.nodes.forEach((e=>{m.rebuild(e)}))}},3614:(e,t,r)=>{"use strict";let n=r(8633),o=r(9746);class a extends Error{constructor(e,t,r,n,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),n&&(this.source=n),s&&(this.plugin=s),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,a)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=n.isColorSupported),o&&e&&(t=o(t));let r,a,s=t.split(/\r?\n/),i=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),c=String(l).length;if(e){let{bold:e,gray:t,red:o}=n.createColors(!0);r=t=>e(o(t)),a=e=>t(e)}else r=a=e=>e;return s.slice(i,l).map(((e,t)=>{let n=i+1+t,o=" "+(" "+n).slice(-c)+" | ";if(n===this.line){let t=a(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+a(o)+e+"\n "+t+r("^")}return" "+a(o)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=a,a.default=a},5238:(e,t,r)=>{"use strict";let n=r(3152);class o extends n{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=o,o.default=o},145:(e,t,r)=>{"use strict";let n,o,a=r(7793);class s extends a{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new n(new o,this,e).stringify()}}s.registerLazyResult=e=>{n=e},s.registerProcessor=e=>{o=e},e.exports=s,s.default=s},3438:(e,t,r)=>{"use strict";let n=r(5238),o=r(3878),a=r(9371),s=r(396),i=r(1106),l=r(5644),c=r(1534);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:r,...d}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:i.prototype};r.map&&(r.map={...r.map,__proto__:o.prototype}),t.push(r)}}if(d.nodes&&(d.nodes=e.nodes.map((e=>u(e,t)))),d.source){let{inputId:e,...r}=d.source;d.source=r,null!=e&&(d.source.input=t[e])}if("root"===d.type)return new l(d);if("decl"===d.type)return new n(d);if("rule"===d.type)return new c(d);if("comment"===d.type)return new a(d);if("atrule"===d.type)return new s(d);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},1106:(e,t,r)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:o}=r(1866),{fileURLToPath:a,pathToFileURL:s}=r(2739),{isAbsolute:i,resolve:l}=r(197),{nanoid:c}=r(5042),u=r(9746),d=r(3614),p=r(3878),h=Symbol("fromOffsetCache"),m=Boolean(n&&o),f=Boolean(l&&i);class g{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!f||/^\w+:\/\//.test(t.from)||i(t.from)?this.file=t.from:this.file=l(t.from)),f&&m){let e=new p(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let o,a,i;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);a=e.line,i=e.col}else a=n.line,i=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let l=this.origin(t,r,a,i);return o=l?new d(e,void 0===l.endLine?l.line:{column:l.column,line:l.line},void 0===l.endLine?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,n.plugin):new d(e,void 0===a?t:{column:r,line:t},void 0===a?r:{column:i,line:a},this.css,this.file,n.plugin),o.input={column:r,endColumn:i,endLine:a,line:t,source:this.css},this.file&&(s&&(o.input.url=s(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,r;if(this[h])r=this[h];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,o=e.length;n=t)n=r.length-1;else{let t,o=r.length-2;for(;n>1),e=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let o,l,c=this.map.consumer(),u=c.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof r&&(o=c.originalPositionFor({column:n,line:r})),l=i(u.source)?s(u.source):new URL(u.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let d={column:u.column,endColumn:o&&o.column,endLine:o&&o.line,line:u.line,url:l.toString()};if("file:"===l.protocol){if(!a)throw new Error("file: protocol is not available in this PostCSS build");d.file=a(l)}let p=c.sourceContentFor(u.source);return p&&(d.source=p),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=g,g.default=g,u&&u.registerInput&&u.registerInput(g)},6966:(e,t,r)=>{"use strict";let{isClean:n,my:o}=r(4151),a=r(3604),s=r(3303),i=r(7793),l=r(145),c=(r(6156),r(3717)),u=r(9577),d=r(5644);const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},m={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function g(e){return"object"==typeof e&&"function"==typeof e.then}function b(e){let t=!1,r=p[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,f,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,f,r+"Exit"]:[r,r+"Exit"]}function v(e){let t;return t="document"===e.type?["Document",f,"DocumentExit"]:"root"===e.type?["Root",f,"RootExit"]:b(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function y(e){return e[n]=!1,e.nodes&&e.nodes.forEach((e=>y(e))),e}let w={};class k{constructor(e,t,r){let n;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof k||t instanceof c)n=y(t.root),t.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let e=u;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{n=e(t,r)}catch(e){this.processed=!0,this.error=e}n&&!n[o]&&i.rebuild(n)}else n=y(t);this.result=new c(e,n,r),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!h[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!m[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let e=this.visitTick(t);if(g(e))try{await e}catch(e){let r=t[t.length-1].node;throw this.handleError(e,r)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>r(e,this.helpers)));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return g(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new a(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(g(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[n];)e[n]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,n]of e){let e;this.result.lastPlugin=r;try{e=n(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:o}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(o.length>0&&t.visitorIndex{e[n]||this.walkSync(e)}));else{let t=this.listeners[r];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}k.registerPostcss=e=>{w=e},e.exports=k,k.default=k,d.registerLazyResult(k),l.registerLazyResult(k)},1752:e=>{"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(e,t,r){let n=[],o="",a=!1,s=0,i=!1,l="",c=!1;for(let r of e)c?c=!1:"\\"===r?c=!0:i?r===l&&(i=!1):'"'===r||"'"===r?(i=!0,l=r):"("===r?s+=1:")"===r?s>0&&(s-=1):0===s&&t.includes(r)&&(a=!0),a?(""!==o&&n.push(o.trim()),o="",a=!1):o+=r;return(r||""!==o)&&n.push(o.trim()),n}};e.exports=t,t.default=t},3604:(e,t,r)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:o}=r(1866),{dirname:a,relative:s,resolve:i,sep:l}=r(197),{pathToFileURL:c}=r(2739),u=r(1106),d=Boolean(n&&o),p=Boolean(a&&i&&s&&l);e.exports=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),o=e.root||a(e.file);!1===this.mapOpts.sourcesContent?(t=new n(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(o)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=o.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,r=1,n=1,a="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((o,i,l)=>{if(this.css+=o,i&&"end"!==l&&(s.generated.line=r,s.generated.column=n-1,i.source&&i.source.start?(s.source=this.sourcePath(i),s.original.line=i.source.start.line,s.original.column=i.source.start.column-1,this.map.addMapping(s)):(s.source=a,s.original.line=1,s.original.column=0,this.map.addMapping(s))),e=o.match(/\n/g),e?(r+=e.length,t=o.lastIndexOf("\n"),n=o.length-t):n+=o.length,i&&"start"!==l){let e=i.parent||{raws:{}};("decl"===i.type||"atrule"===i.type&&!i.nodes)&&i===e.last&&!e.raws.semicolon||(i.source&&i.source.end?(s.source=this.sourcePath(i),s.original.line=i.source.end.line,s.original.column=i.source.end.column-1,s.generated.line=r,s.generated.column=n-2,this.map.addMapping(s)):(s.source=a,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1,this.map.addMapping(s)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?a(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=a(i(r,this.mapOpts.annotation)));let n=s(r,e);return this.memoizedPaths.set(e,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===l&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}},4211:(e,t,r)=>{"use strict";let n=r(3604),o=r(3303),a=(r(6156),r(9577));const s=r(3717);class i{constructor(e,t,r){let a;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i=o;this.result=new s(this._processor,a,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new n(i,a,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=a;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}}e.exports=i,i.default=i},3152:(e,t,r)=>{"use strict";let{isClean:n,my:o}=r(4151),a=r(3614),s=r(7668),i=r(3303);function l(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let o=e[n],a=typeof o;"parent"===n&&"object"===a?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map((e=>l(e,r))):("object"===a&&null!==o&&(o=l(o)),r[n]=o)}return r}class c{constructor(e={}){this.raws={},this[n]=!1,this[o]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=l(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new a(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[n]){this[n]=!1;let e=this;for(;e=e.parent;)e[n]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,o=this.source.start.line;for(let t=0;t"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof n&&n.toJSON)r[e]=n.toJSON(null,t);else if("source"===e){let a=t.get(n.input);null==a&&(a=o,t.set(n.input,o),o++),r[e]={end:n.end,inputId:a,start:n.start}}else r[e]=n}return n&&(r.inputs=[...t.keys()].map((e=>e.toJSON()))),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,r){let n={node:this};for(let e in r)n[e]=r[e];return e.warn(t,n)}get proxyOf(){return this}}e.exports=c,c.default=c},9577:(e,t,r)=>{"use strict";let n=r(7793),o=r(8339),a=r(1106);function s(e,t){let r=new a(e,t),n=new o(r);try{n.parse()}catch(e){throw e}return n.root}e.exports=s,s.default=s,n.registerParse(s)},8339:(e,t,r)=>{"use strict";let n=r(5238),o=r(5781),a=r(9371),s=r(396),i=r(5644),l=r(1534);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,n,o=new s;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);let a=!1,i=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){i=!0;break}if("}"===t){if(l.length>0){for(n=l.length-1,r=l[n];r&&"space"===r[0];)r=l[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),a&&(e=l[l.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),i&&(o.nodes=[],this.current=o)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let o=t-1;o>=0&&(r=e[o],"space"===r[0]||(n+=1,2!==n));o--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,o=0;for(let[a,s]of e.entries()){if(t=s,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return a}this.doubleColon(t)}n=t}return!1}comment(e){let t=new a;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(e,t){let r=new n;this.init(r,e[0][2]);let o,a=e[e.length-1];for(";"===a[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(a[3]||a[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(o=e.shift(),":"===o[0]){r.raws.between+=o[1];break}"word"===o[0]&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s,i=[];for(;e.length&&(s=e[0][0],"space"===s||"comment"===s);)i.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(o=e[t],"!important"===o[1].toLowerCase()){r.important=!0;let n=this.stringFrom(e,t);n=this.spacesFromEnd(e)+n," !important"!==n&&(r.raws.important=n);break}if("important"===o[1].toLowerCase()){let n=e.slice(0),o="";for(let e=t;e>0;e--){let t=n[e][0];if(0===o.trim().indexOf("!")&&"space"!==t)break;o=n.pop()[1]+o}0===o.trim().indexOf("!")&&(r.important=!0,r.raws.important=o,e=n)}if("space"!==o[0]&&"comment"!==o[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(r.raws.between+=i.map((e=>e[1])).join(""),i=[]),this.raw(r,"value",i.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,o=null,a=[],s=e[1].startsWith("--"),i=[],l=e;for(;l;){if(r=l[0],i.push(l),"("===r||"["===r)o||(o=l),a.push("("===r?")":"]");else if(s&&n&&"{"===r)o||(o=l),a.push("}");else if(0===a.length){if(";"===r){if(n)return void this.decl(i,s);break}if("{"===r)return void this.rule(i);if("}"===r){this.tokenizer.back(i.pop()),t=!0;break}":"===r&&(n=!0)}else r===a[a.length-1]&&(a.pop(),0===a.length&&(o=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(o),t&&n){if(!s)for(;i.length&&(l=i[i.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(i.pop());this.decl(i,s)}else this.unknownWord(i)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let o,a,s,i,l=r.length,u="",d=!0;for(let e=0;ee+t[1]),"");e.raws[t]={raw:n,value:u}}e[t]=u}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n{"use strict";let n=r(3614),o=r(5238),a=r(6966),s=r(7793),i=r(6846),l=r(3303),c=r(3438),u=r(145),d=r(38),p=r(9371),h=r(396),m=r(3717),f=r(1106),g=r(9577),b=r(1752),v=r(1534),y=r(5644),w=r(3152);function k(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new i(e)}k.plugin=function(e,t){let r,n=!1;function o(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let o=t(...r);return o.postcssPlugin=e,o.postcssVersion=(new i).version,o}return Object.defineProperty(o,"postcss",{get:()=>(r||(r=o()),r)}),o.process=function(e,t,r){return k([o(r)]).process(e,t)},o},k.stringify=l,k.parse=g,k.fromJSON=c,k.list=b,k.comment=e=>new p(e),k.atRule=e=>new h(e),k.decl=e=>new o(e),k.rule=e=>new v(e),k.root=e=>new y(e),k.document=e=>new u(e),k.CssSyntaxError=n,k.Declaration=o,k.Container=s,k.Processor=i,k.Document=u,k.Comment=p,k.Warning=d,k.AtRule=h,k.Result=m,k.Input=f,k.Rule=v,k.Root=y,k.Node=w,a.registerPostcss(k),e.exports=k,k.default=k},3878:(e,t,r)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:o}=r(1866),{existsSync:a,readFileSync:s}=r(9977),{dirname:i,join:l}=r(197);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=i(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new n(this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let r=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(r)return n=e.substr(r[0].length),Buffer?Buffer.from(n,"base64").toString():window.atob(n);var n;let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=i(e),a(e))return this.mapFile=e,s(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof n)return o.fromSourceMap(t).toString();if(t instanceof o)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=l(i(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c,c.default=c},6846:(e,t,r)=>{"use strict";let n=r(4211),o=r(6966),a=r(145),s=r(5644);class i{constructor(e=[]){this.version="8.4.41",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new o(this,e,t):new n(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=i,i.default=i,s.registerProcessor(i),a.registerProcessor(i)},3717:(e,t,r)=>{"use strict";let n=r(38);class o{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=o,o.default=o},5644:(e,t,r)=>{"use strict";let n,o,a=r(7793);class s extends a{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of n)e.raws.before=t.raws.before;return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new n(new o,this,e).stringify()}}s.registerLazyResult=e=>{n=e},s.registerProcessor=e=>{o=e},e.exports=s,s.default=s,a.registerRoot(s)},1534:(e,t,r)=>{"use strict";let n=r(7793),o=r(1752);class a extends n{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return o.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}e.exports=a,a.default=a,n.registerRule(a)},7668:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class r{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let o=(e.raws.between||"")+(t?";":"");this.builder(r+n+o,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,o=0;for(;n&&"root"!==n.type;)o+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n{if(o=e.raws[r],void 0!==o)return!1}))}var i;return void 0===o&&(o=t[n]),s.rawCache[n]=o,o}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments((e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls((e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=r,r.default=r},3303:(e,t,r)=>{"use strict";let n=r(7668);function o(e,t){new n(t).stringify(e)}e.exports=o,o.default=o},4151:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},5781:e=>{"use strict";const t="'".charCodeAt(0),r='"'.charCodeAt(0),n="\\".charCodeAt(0),o="/".charCodeAt(0),a="\n".charCodeAt(0),s=" ".charCodeAt(0),i="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),d="]".charCodeAt(0),p="(".charCodeAt(0),h=")".charCodeAt(0),m="{".charCodeAt(0),f="}".charCodeAt(0),g=";".charCodeAt(0),b="*".charCodeAt(0),v=":".charCodeAt(0),y="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,k=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,E=/.[\r\n"'(/\\]/,S=/[\da-f]/i;e.exports=function(e,x={}){let C,_,O,T,I,M,P,A,R,L,z=e.css.valueOf(),D=x.ignoreErrors,F=z.length,B=0,N=[],j=[];function V(t){throw e.error("Unclosed "+t,B)}return{back:function(e){j.push(e)},endOfFile:function(){return 0===j.length&&B>=F},nextToken:function(e){if(j.length)return j.pop();if(B>=F)return;let x=!!e&&e.ignoreUnclosed;switch(C=z.charCodeAt(B),C){case a:case s:case l:case c:case i:_=B;do{_+=1,C=z.charCodeAt(_)}while(C===s||C===a||C===l||C===c||C===i);L=["space",z.slice(B,_)],B=_-1;break;case u:case d:case m:case f:case v:case g:case h:{let e=String.fromCharCode(C);L=[e,e,B];break}case p:if(A=N.length?N.pop()[1]:"",R=z.charCodeAt(B+1),"url"===A&&R!==t&&R!==r&&R!==s&&R!==a&&R!==l&&R!==i&&R!==c){_=B;do{if(M=!1,_=z.indexOf(")",_+1),-1===_){if(D||x){_=B;break}V("bracket")}for(P=_;z.charCodeAt(P-1)===n;)P-=1,M=!M}while(M);L=["brackets",z.slice(B,_+1),B,_],B=_}else _=z.indexOf(")",B+1),T=z.slice(B,_+1),-1===_||E.test(T)?L=["(","(",B]:(L=["brackets",T,B,_],B=_);break;case t:case r:O=C===t?"'":'"',_=B;do{if(M=!1,_=z.indexOf(O,_+1),-1===_){if(D||x){_=B+1;break}V("string")}for(P=_;z.charCodeAt(P-1)===n;)P-=1,M=!M}while(M);L=["string",z.slice(B,_+1),B,_],B=_;break;case y:w.lastIndex=B+1,w.test(z),_=0===w.lastIndex?z.length-1:w.lastIndex-2,L=["at-word",z.slice(B,_+1),B,_],B=_;break;case n:for(_=B,I=!0;z.charCodeAt(_+1)===n;)_+=1,I=!I;if(C=z.charCodeAt(_+1),I&&C!==o&&C!==s&&C!==a&&C!==l&&C!==c&&C!==i&&(_+=1,S.test(z.charAt(_)))){for(;S.test(z.charAt(_+1));)_+=1;z.charCodeAt(_+1)===s&&(_+=1)}L=["word",z.slice(B,_+1),B,_],B=_;break;default:C===o&&z.charCodeAt(B+1)===b?(_=z.indexOf("*/",B+2)+1,0===_&&(D||x?_=z.length:V("comment")),L=["comment",z.slice(B,_+1),B,_],B=_):(k.lastIndex=B+1,k.test(z),_=0===k.lastIndex?z.length-1:k.lastIndex-2,L=["word",z.slice(B,_+1),B,_],N.push(L),B=_)}return B++,L},position:function(){return B}}}},6156:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},38:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},2694:(e,t,r)=>{"use strict";var n=r(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,s){if(s!==n){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 t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},5556:(e,t,r)=>{e.exports=r(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2799:(e,t)=>{"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.module.reference")},4363:(e,t,r)=>{"use strict";r(2799)},4643:(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},9746:()=>{},9977:()=>{},197:()=>{},1866:()=>{},2739:()=>{},5042:e=>{e.exports={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let n="",o=r;for(;o--;)n+=e[Math.random()*e.length|0];return n}}},9817:e=>{"use strict";e.exports=JSON.parse('{"properties":["-epub-caption-side","-epub-hyphens","-epub-text-combine","-epub-text-emphasis","-epub-text-emphasis-color","-epub-text-emphasis-style","-epub-text-orientation","-epub-text-transform","-epub-word-break","-epub-writing-mode","-internal-text-autosizing-status","accelerator","accent-color","-wap-accesskey","additive-symbols","align-content","-webkit-align-content","align-items","-webkit-align-items","align-self","-webkit-align-self","alignment-baseline","all","alt","-webkit-alt","anchor-default","anchor-name","anchor-scroll","animation","animation-composition","animation-delay","-moz-animation-delay","-ms-animation-delay","-webkit-animation-delay","animation-direction","-moz-animation-direction","-ms-animation-direction","-webkit-animation-direction","animation-duration","-moz-animation-duration","-ms-animation-duration","-webkit-animation-duration","animation-fill-mode","-moz-animation-fill-mode","-ms-animation-fill-mode","-webkit-animation-fill-mode","animation-iteration-count","-moz-animation-iteration-count","-ms-animation-iteration-count","-webkit-animation-iteration-count","-moz-animation","-ms-animation","animation-name","-moz-animation-name","-ms-animation-name","-webkit-animation-name","animation-play-state","-moz-animation-play-state","-ms-animation-play-state","-webkit-animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","-moz-animation-timing-function","-ms-animation-timing-function","-webkit-animation-timing-function","-webkit-animation-trigger","-webkit-animation","app-region","-webkit-app-region","appearance","-moz-appearance","-webkit-appearance","ascent-override","aspect-ratio","-webkit-aspect-ratio","audio-level","azimuth","backdrop-filter","-webkit-backdrop-filter","backface-visibility","-moz-backface-visibility","-ms-backface-visibility","-webkit-backface-visibility","background","background-attachment","-webkit-background-attachment","background-blend-mode","background-clip","-moz-background-clip","-webkit-background-clip","background-color","-webkit-background-color","-webkit-background-composite","background-image","-webkit-background-image","-moz-background-inline-policy","background-origin","-moz-background-origin","-webkit-background-origin","background-position","-webkit-background-position","background-position-x","-webkit-background-position-x","background-position-y","-webkit-background-position-y","background-repeat","-webkit-background-repeat","background-repeat-x","background-repeat-y","background-size","-moz-background-size","-webkit-background-size","-webkit-background","base-palette","baseline-shift","baseline-source","behavior","-moz-binding","block-ellipsis","-ms-block-progression","block-size","block-step","block-step-align","block-step-insert","block-step-round","block-step-size","bookmark-label","bookmark-level","bookmark-state","border","-webkit-border-after-color","-webkit-border-after-style","-webkit-border-after","-webkit-border-after-width","-webkit-border-before-color","-webkit-border-before-style","-webkit-border-before","-webkit-border-before-width","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","-moz-border-bottom-colors","border-bottom-left-radius","-webkit-border-bottom-left-radius","border-bottom-right-radius","-webkit-border-bottom-right-radius","border-bottom-style","border-bottom-width","border-boundary","border-collapse","border-color","-moz-border-end-color","-webkit-border-end-color","border-end-end-radius","-moz-border-end","border-end-start-radius","-moz-border-end-style","-webkit-border-end-style","-webkit-border-end","-moz-border-end-width","-webkit-border-end-width","-webkit-border-fit","-webkit-border-horizontal-spacing","border-image","-moz-border-image","-o-border-image","border-image-outset","-webkit-border-image-outset","border-image-repeat","-webkit-border-image-repeat","border-image-slice","-webkit-border-image-slice","border-image-source","-webkit-border-image-source","-webkit-border-image","border-image-width","-webkit-border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","-moz-border-left-colors","border-left-style","border-left-width","border-radius","-moz-border-radius-bottomleft","-moz-border-radius-bottomright","-moz-border-radius","-moz-border-radius-topleft","-moz-border-radius-topright","-webkit-border-radius","border-right","border-right-color","-moz-border-right-colors","border-right-style","border-right-width","border-spacing","-moz-border-start-color","-webkit-border-start-color","border-start-end-radius","-moz-border-start","border-start-start-radius","-moz-border-start-style","-webkit-border-start-style","-webkit-border-start","-moz-border-start-width","-webkit-border-start-width","border-style","border-top","border-top-color","-moz-border-top-colors","border-top-left-radius","-webkit-border-top-left-radius","border-top-right-radius","-webkit-border-top-right-radius","border-top-style","border-top-width","-webkit-border-vertical-spacing","border-width","bottom","-moz-box-align","-webkit-box-align","box-decoration-break","-webkit-box-decoration-break","-moz-box-direction","-webkit-box-direction","-webkit-box-flex-group","-moz-box-flex","-webkit-box-flex","-webkit-box-lines","-moz-box-ordinal-group","-webkit-box-ordinal-group","-moz-box-orient","-webkit-box-orient","-moz-box-pack","-webkit-box-pack","-webkit-box-reflect","box-shadow","-moz-box-shadow","-webkit-box-shadow","box-sizing","-moz-box-sizing","-webkit-box-sizing","box-snap","break-after","break-before","break-inside","buffered-rendering","caption-side","caret","caret-animation","caret-color","caret-shape","chains","clear","clip","clip-path","-webkit-clip-path","clip-rule","color","color-adjust","-webkit-color-correction","-apple-color-filter","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","-webkit-column-axis","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","column-count","-moz-column-count","-webkit-column-count","column-fill","-moz-column-fill","-webkit-column-fill","column-gap","-moz-column-gap","-webkit-column-gap","column-progression","-webkit-column-progression","column-rule","column-rule-color","-moz-column-rule-color","-webkit-column-rule-color","-moz-column-rule","column-rule-style","-moz-column-rule-style","-webkit-column-rule-style","-webkit-column-rule","column-rule-width","-moz-column-rule-width","-webkit-column-rule-width","column-span","-moz-column-span","-webkit-column-span","column-width","-moz-column-width","-webkit-column-width","columns","-moz-columns","-webkit-columns","-webkit-composition-fill-color","-webkit-composition-frame-color","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","-ms-content-zoom-chaining","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-limit","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-content-zooming","continue","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","-webkit-cursor-visibility","cx","cy","d","-apple-dashboard-region","-webkit-dashboard-region","descent-override","direction","display","display-align","dominant-baseline","elevation","empty-cells","enable-background","epub-caption-side","epub-hyphens","epub-text-combine","epub-text-emphasis","epub-text-emphasis-color","epub-text-emphasis-style","epub-text-orientation","epub-text-transform","epub-word-break","epub-writing-mode","fallback","field-sizing","fill","fill-break","fill-color","fill-image","fill-opacity","fill-origin","fill-position","fill-repeat","fill-rule","fill-size","filter","-ms-filter","-webkit-filter","flex","-ms-flex-align","-webkit-flex-align","flex-basis","-webkit-flex-basis","flex-direction","-ms-flex-direction","-webkit-flex-direction","flex-flow","-ms-flex-flow","-webkit-flex-flow","flex-grow","-webkit-flex-grow","-ms-flex-item-align","-webkit-flex-item-align","-ms-flex-line-pack","-webkit-flex-line-pack","-ms-flex","-ms-flex-negative","-ms-flex-order","-webkit-flex-order","-ms-flex-pack","-webkit-flex-pack","-ms-flex-positive","-ms-flex-preferred-size","flex-shrink","-webkit-flex-shrink","-webkit-flex","flex-wrap","-ms-flex-wrap","-webkit-flex-wrap","float","float-defer","-moz-float-edge","float-offset","float-reference","flood-color","flood-opacity","flow","flow-from","-ms-flow-from","-webkit-flow-from","flow-into","-ms-flow-into","-webkit-flow-into","font","font-display","font-family","font-feature-settings","-moz-font-feature-settings","-ms-font-feature-settings","-webkit-font-feature-settings","font-kerning","-webkit-font-kerning","font-language-override","-moz-font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","-webkit-font-size-delta","-webkit-font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","-webkit-font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","font-width","footnote-display","footnote-policy","-moz-force-broken-image-icon","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","-webkit-grid-after","grid-area","grid-auto-columns","-webkit-grid-auto-columns","grid-auto-flow","-webkit-grid-auto-flow","grid-auto-rows","-webkit-grid-auto-rows","-webkit-grid-before","grid-column","-ms-grid-column-align","grid-column-end","grid-column-gap","-ms-grid-column","-ms-grid-column-span","grid-column-start","-webkit-grid-column","-ms-grid-columns","-webkit-grid-columns","-webkit-grid-end","grid-gap","grid-row","-ms-grid-row-align","grid-row-end","grid-row-gap","-ms-grid-row","-ms-grid-row-span","grid-row-start","-webkit-grid-row","-ms-grid-rows","-webkit-grid-rows","-webkit-grid-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","-ms-high-contrast-adjust","-webkit-highlight","hyphenate-character","-webkit-hyphenate-character","-webkit-hyphenate-limit-after","-webkit-hyphenate-limit-before","hyphenate-limit-chars","-ms-hyphenate-limit-chars","hyphenate-limit-last","hyphenate-limit-lines","-ms-hyphenate-limit-lines","-webkit-hyphenate-limit-lines","hyphenate-limit-zone","-ms-hyphenate-limit-zone","hyphens","-moz-hyphens","-ms-hyphens","-webkit-hyphens","image-orientation","-moz-image-region","image-rendering","image-resolution","-ms-ime-align","ime-mode","inherits","initial-letter","initial-letter-align","-webkit-initial-letter","initial-letter-wrap","initial-value","inline-size","inline-sizing","input-format","-wap-input-format","-wap-input-required","input-security","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","-ms-interpolation-mode","isolation","justify-content","-webkit-justify-content","justify-items","-webkit-justify-items","justify-self","-webkit-justify-self","kerning","layout-flow","layout-grid","layout-grid-char","layout-grid-line","layout-grid-mode","layout-grid-type","left","letter-spacing","lighting-color","-webkit-line-align","-webkit-line-box-contain","line-break","-webkit-line-break","line-clamp","-webkit-line-clamp","line-gap-override","line-grid","-webkit-line-grid-snap","-webkit-line-grid","line-height","line-height-step","line-increment","line-padding","line-snap","-webkit-line-snap","-o-link","-o-link-source","list-style","list-style-image","list-style-position","list-style-type","-webkit-locale","-webkit-logical-height","-webkit-logical-width","margin","-webkit-margin-after-collapse","-webkit-margin-after","-webkit-margin-before-collapse","-webkit-margin-before","margin-block","margin-block-end","margin-block-start","margin-bottom","-webkit-margin-bottom-collapse","margin-break","-webkit-margin-collapse","-moz-margin-end","-webkit-margin-end","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","-moz-margin-start","-webkit-margin-start","margin-top","-webkit-margin-top-collapse","margin-trim","marker","marker-end","marker-knockout-left","marker-knockout-right","marker-mid","marker-offset","marker-pattern","marker-segment","marker-side","marker-start","marks","-wap-marquee-dir","-webkit-marquee-direction","-webkit-marquee-increment","-wap-marquee-loop","-webkit-marquee-repetition","-wap-marquee-speed","-webkit-marquee-speed","-wap-marquee-style","-webkit-marquee-style","-webkit-marquee","mask","-webkit-mask-attachment","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","-webkit-mask-box-image-outset","-webkit-mask-box-image-repeat","-webkit-mask-box-image-slice","-webkit-mask-box-image-source","-webkit-mask-box-image","-webkit-mask-box-image-width","mask-clip","-webkit-mask-clip","mask-composite","-webkit-mask-composite","mask-image","-webkit-mask-image","mask-mode","mask-origin","-webkit-mask-origin","mask-position","-webkit-mask-position","mask-position-x","-webkit-mask-position-x","mask-position-y","-webkit-mask-position-y","mask-repeat","-webkit-mask-repeat","-webkit-mask-repeat-x","-webkit-mask-repeat-y","mask-size","-webkit-mask-size","mask-source-type","-webkit-mask-source-type","mask-type","-webkit-mask","-webkit-match-nearest-mail-blockquote-color","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-lines","-webkit-max-logical-height","-webkit-max-logical-width","max-width","max-zoom","min-block-size","min-height","min-inline-size","min-intrinsic-sizing","-webkit-min-logical-height","-webkit-min-logical-width","min-width","min-zoom","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","nav-down","nav-index","nav-left","nav-right","nav-up","-webkit-nbsp-mode","negative","object-fit","-o-object-fit","object-position","-o-object-position","object-view-box","offset","offset-anchor","offset-block-end","offset-block-start","offset-distance","offset-inline-end","offset-inline-start","offset-path","offset-position","offset-rotate","offset-rotation","opacity","-moz-opacity","-webkit-opacity","order","-webkit-order","-moz-orient","orientation","orphans","-moz-osx-font-smoothing","outline","outline-color","-moz-outline-color","-moz-outline","outline-offset","-moz-outline-offset","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius","-moz-outline-radius-topleft","-moz-outline-radius-topright","outline-style","-moz-outline-style","outline-width","-moz-outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-clip-margin-block","overflow-clip-margin-block-end","overflow-clip-margin-block-start","overflow-clip-margin-bottom","overflow-clip-margin-inline","overflow-clip-margin-inline-end","overflow-clip-margin-inline-start","overflow-clip-margin-left","overflow-clip-margin-right","overflow-clip-margin-top","overflow-inline","-webkit-overflow-scrolling","-ms-overflow-style","overflow-wrap","overflow-x","overflow-y","overlay","override-colors","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","pad","padding","-webkit-padding-after","-webkit-padding-before","padding-block","padding-block-end","padding-block-start","padding-bottom","-moz-padding-end","-webkit-padding-end","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","-moz-padding-start","-webkit-padding-start","padding-top","page","page-break-after","page-break-before","page-break-inside","page-orientation","paint-order","pause","pause-after","pause-before","-apple-pay-button-style","-apple-pay-button-type","pen-action","perspective","-moz-perspective","-ms-perspective","perspective-origin","-moz-perspective-origin","-ms-perspective-origin","-webkit-perspective-origin","perspective-origin-x","-webkit-perspective-origin-x","perspective-origin-y","-webkit-perspective-origin-y","-webkit-perspective","pitch","pitch-range","place-content","place-items","place-self","play-during","pointer-events","position","position-animation","position-fallback","position-fallback-bounds","position-try","position-try-options","position-try-order","prefix","print-color-adjust","-webkit-print-color-adjust","property-name","quotes","r","range","-webkit-region-break-after","-webkit-region-break-before","-webkit-region-break-inside","region-fragment","-webkit-region-fragment","-webkit-region-overflow","resize","rest","rest-after","rest-before","richness","right","rotate","row-gap","-webkit-rtl-ordering","ruby-align","ruby-merge","ruby-overhang","ruby-position","-webkit-ruby-position","running","rx","ry","scale","scroll-behavior","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","-ms-scroll-rails","scroll-snap-align","scroll-snap-coordinate","-webkit-scroll-snap-coordinate","scroll-snap-destination","-webkit-scroll-snap-destination","scroll-snap-margin","scroll-snap-margin-bottom","scroll-snap-margin-left","scroll-snap-margin-right","scroll-snap-margin-top","scroll-snap-points-x","-ms-scroll-snap-points-x","-webkit-scroll-snap-points-x","scroll-snap-points-y","-ms-scroll-snap-points-y","-webkit-scroll-snap-points-y","scroll-snap-stop","scroll-snap-type","-ms-scroll-snap-type","-webkit-scroll-snap-type","scroll-snap-type-x","scroll-snap-type-y","-ms-scroll-snap-x","-ms-scroll-snap-y","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","-ms-scroll-translation","scrollbar-arrow-color","scrollbar-base-color","scrollbar-color","scrollbar-dark-shadow-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-gutter","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scrollbar-width","scrollbar3d-light-color","scrollbar3dlight-color","shape-image-threshold","-webkit-shape-image-threshold","shape-inside","-webkit-shape-inside","shape-margin","-webkit-shape-margin","shape-outside","-webkit-shape-outside","-webkit-shape-padding","shape-rendering","size","size-adjust","snap-height","solid-color","solid-opacity","spatial-navigation-action","spatial-navigation-contain","spatial-navigation-function","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","src","-moz-stack-sizing","stop-color","stop-opacity","stress","string-set","stroke","stroke-align","stroke-alignment","stroke-break","stroke-color","stroke-dash-corner","stroke-dash-justify","stroke-dashadjust","stroke-dasharray","stroke-dashcorner","stroke-dashoffset","stroke-image","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-origin","stroke-position","stroke-repeat","stroke-size","stroke-width","suffix","supported-color-schemes","-webkit-svg-shadow","symbols","syntax","system","tab-size","-moz-tab-size","-o-tab-size","-o-table-baseline","table-layout","-webkit-tap-highlight-color","text-align","text-align-all","text-align-last","-moz-text-align-last","text-anchor","text-autospace","-moz-text-blink","text-box-edge","text-box-trim","-ms-text-combine-horizontal","text-combine-upright","-webkit-text-combine","text-decoration","text-decoration-blink","text-decoration-color","-moz-text-decoration-color","-webkit-text-decoration-color","text-decoration-line","-moz-text-decoration-line","text-decoration-line-through","-webkit-text-decoration-line","text-decoration-none","text-decoration-overline","text-decoration-skip","text-decoration-skip-box","text-decoration-skip-ink","text-decoration-skip-inset","text-decoration-skip-self","text-decoration-skip-spaces","-webkit-text-decoration-skip","text-decoration-style","-moz-text-decoration-style","-webkit-text-decoration-style","text-decoration-thickness","text-decoration-trim","text-decoration-underline","-webkit-text-decoration","-webkit-text-decorations-in-effect","text-emphasis","text-emphasis-color","-webkit-text-emphasis-color","text-emphasis-position","-webkit-text-emphasis-position","text-emphasis-skip","text-emphasis-style","-webkit-text-emphasis-style","-webkit-text-emphasis","-webkit-text-fill-color","text-group-align","text-indent","text-justify","text-justify-trim","text-kashida","text-kashida-space","text-line-through","text-line-through-color","text-line-through-mode","text-line-through-style","text-line-through-width","text-orientation","-webkit-text-orientation","text-overflow","text-overline","text-overline-color","text-overline-mode","text-overline-style","text-overline-width","text-rendering","-webkit-text-security","text-shadow","text-size-adjust","-moz-text-size-adjust","-ms-text-size-adjust","-webkit-text-size-adjust","text-spacing","text-spacing-trim","-webkit-text-stroke-color","-webkit-text-stroke","-webkit-text-stroke-width","text-transform","text-underline","text-underline-color","text-underline-mode","text-underline-offset","text-underline-position","-webkit-text-underline-position","text-underline-style","text-underline-width","text-wrap","text-wrap-mode","text-wrap-style","-webkit-text-zoom","timeline-scope","top","touch-action","touch-action-delay","-ms-touch-action","-webkit-touch-callout","-ms-touch-select","-apple-trailing-word","transform","transform-box","-moz-transform","-ms-transform","-o-transform","transform-origin","-moz-transform-origin","-ms-transform-origin","-o-transform-origin","-webkit-transform-origin","transform-origin-x","-webkit-transform-origin-x","transform-origin-y","-webkit-transform-origin-y","transform-origin-z","-webkit-transform-origin-z","transform-style","-moz-transform-style","-ms-transform-style","-webkit-transform-style","-webkit-transform","transition","transition-behavior","transition-delay","-moz-transition-delay","-ms-transition-delay","-o-transition-delay","-webkit-transition-delay","transition-duration","-moz-transition-duration","-ms-transition-duration","-o-transition-duration","-webkit-transition-duration","-moz-transition","-ms-transition","-o-transition","transition-property","-moz-transition-property","-ms-transition-property","-o-transition-property","-webkit-transition-property","transition-timing-function","-moz-transition-timing-function","-ms-transition-timing-function","-o-transition-timing-function","-webkit-transition-timing-function","-webkit-transition","translate","uc-alt-skin","uc-skin","unicode-bidi","unicode-range","-webkit-user-drag","-moz-user-focus","-moz-user-input","-moz-user-modify","-webkit-user-modify","user-select","-moz-user-select","-ms-user-select","-webkit-user-select","user-zoom","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","viewport-fill","viewport-fill-opacity","viewport-fit","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","white-space-collapse","white-space-trim","-webkit-widget-region","widows","width","will-change","-moz-window-dragging","-moz-window-shadow","word-break","word-space-transform","word-spacing","word-wrap","wrap-after","wrap-before","wrap-flow","-ms-wrap-flow","-webkit-wrap-flow","wrap-inside","-ms-wrap-margin","-webkit-wrap-margin","-webkit-wrap-padding","-webkit-wrap-shape-inside","-webkit-wrap-shape-outside","wrap-through","-ms-wrap-through","-webkit-wrap-through","-webkit-wrap","writing-mode","-webkit-writing-mode","x","y","z-index","zoom"]}')}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{ActiveSelectors:()=>u,AtRules:()=>be,BackgroundControl:()=>zo,BoxShadowControl:()=>$o,BuildAtRule:()=>ge,BuildSelector:()=>ye,ButtonIconControl:()=>sn,Control:()=>$r,CustomSelect:()=>lr,DimensionsControl:()=>jn,EffectControl:()=>Zr,EffectEdit:()=>Kr,EffectList:()=>Xr,FilterControl:()=>sa,ImageControl:()=>Mo,Selector:()=>nn,StylesBuilder:()=>Ba,TransformControl:()=>Sa,TransitionControl:()=>Xo,UnitControl:()=>xn,atRuleActions:()=>Ja,atRuleReducer:()=>es,atRuleSelectors:()=>Xa,cleanStylesObject:()=>ae,currentStyleActions:()=>Za,currentStyleReducer:()=>Ya,currentStyleSelectors:()=>Ka,defaultAtRules:()=>fe,deleteStylesObjectKey:()=>ce,filterActions:()=>rs,filterReducer:()=>os,filterSelectors:()=>ns,getCss:()=>oe,getElementStyles:()=>he,getStylesObject:()=>ue,nestedRuleActions:()=>Ha,nestedRuleReducer:()=>qa,nestedRuleSelectors:()=>$a,styleActions:()=>ja,styleReducer:()=>Ua,styleSelectors:()=>Va,updateStylesObjectKey:()=>le,usePanelSections:()=>Lr,useSelectedBlockElement:()=>Ar,useSelectedBlockElements:()=>Pr});const e=window.React;var t=r.n(e);const o=window.wp.components,a=window.wp.element,s=window.wp.i18n,i=window.wp.primitives,l=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})),c={component:"aXTNFJcVrsguxNZy07JA",label:"_n7gGYm9M8MFYioC_tnA",list:"wZMI6U93fOq6ONi2BIMx",options:"IkszCwt2RSahUOA6cnBn",buildSelector:"Lv4O8kNoTBfefDdx0ZSf",item:"exF1HddU0AkwAhIpOZgN",dot:"sivCIEzK7hnS_jYTmkQS",selector:"q4Vt9u4L6NHDPsd6y0RN",build:"SdqkeZJnaGZW5sjp7Cbl",errors:"yrBJ0RWIFkQx2jPca6oQ",selectors:"_eMJAha2XlEzp5LbJNoU",actions:"BOHNqXESw4VeWayhp9gV",name:"bsFDeOOx3XaWTtMpsHh9",notice:"JfcrVVxi0Le7WqG1QrUs",button:"cNIaZ9TFMrQuku9AMTd7",more:"R3E2gPdBZcQ3fGB44pMn",shortcuts:"oCwXXlsUVmwVHOqFZ8fx",icon:"uSzzU88fk2uFJ96sOTjo",delete:"BABsdAWLRMrTwoZ5nq1w",atRules:"rFvheKp_Ld4Xq2afm0B7",preview:"nRPkFhbFIvEor1OPe2Ht",filters:"RH2SaGq5s9_xxeenpiAB",filtersPopover:"hQ2FMZ3Tgtexl8pMJCS6",filtersDropdown:"kz8IWmpCkeKTwVsJVN6l",search:"EBNwYjwZHC0WOkdJpGf0",atRuleFilters:"eLeLPDEe53QDQ4_SHGEr"};function u({activeSelectors:t,nestedRule:r,onNestedRuleChange:n,setShowSelectorOptions:i,setShowBuildSelector:u,setEditSelector:d,onDeleteStyle:p,allStyles:h,selectorShortcuts:m,currentSelector:f,allowCustomAdvancedSelector:g}){const[b,v]=(0,a.useState)(!1);function y({selector:t}){return t&&!h[t]?null:t||Object.values(h).some((e=>"object"!=typeof e||null===e))?(0,e.createElement)("span",{title:(0,s.__)("Custom styles exist for this selector","generateblocks-pro"),className:c.dot}):null}function w({currentSelectorName:t}){return(0,e.createElement)("span",{style:{fontFamily:"monospace"}},t)}return(0,e.createElement)("div",{className:c.options},!!t.length&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.BaseControl,{label:(0,s.__)("Selectors","generateblocks-pro"),id:""},(0,e.createElement)("div",{className:c.list},(0,e.createElement)("span",{className:c.item},(0,e.createElement)(o.Button,{size:"small",onClick:()=>{n(""),i(!1)},isPressed:!r,title:f},(0,s.__)("Main Selector","generateblocks-pro"),(0,e.createElement)(y,{selector:""}))),t.map((t=>{return(0,e.createElement)("span",{key:t,className:c.item},(0,e.createElement)(o.Button,{size:"small",onClick:()=>{n(t===r?"":t),i(!1)},isPressed:t===r,title:f+(k=t,k?k.startsWith("&")?k.replace("&",""):String.fromCharCode(160)+k:"")},function(e,t){for(const r in t){const n=t[r].items.find((t=>t.value===e));if(n)return n.label}return e.replace("&","")}(t,m),(0,e.createElement)(y,{selector:t})),!!g&&(0,e.createElement)(o.DropdownMenu,{icon:l,label:(0,s.__)("Options","generateblocks-pro"),toggleProps:{isPressed:t===r}},(({onClose:i})=>(0,e.createElement)(o.MenuGroup,null,b?(0,e.createElement)("div",{className:c.delete},(0,e.createElement)("p",null,(0,a.createInterpolateElement)( +(()=>{var e={555:e=>{var t;self,t=()=>(()=>{var e={8937:e=>{"use strict";var t={}.hasOwnProperty,r=/[ -,\.\/:-@\[-\^`\{-~]/,n=/[ -,\.\/:-@\[\]\^`\{-~]/,o=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,a=function e(a,s){"single"!=(s=function(e,r){if(!e)return r;var n={};for(var o in r)n[o]=t.call(e,o)?e[o]:r[o];return n}(s,e.options)).quotes&&"double"!=s.quotes&&(s.quotes="single");for(var i="double"==s.quotes?'"':"'",l=s.isIdentifier,c=a.charAt(0),u="",d=0,p=a.length;d126){if(m>=55296&&m<=56319&&d{var r,n;(n=n||{}).stringify=(r={"visit_linear-gradient":function(e){return r.visit_gradient(e)},"visit_repeating-linear-gradient":function(e){return r.visit_gradient(e)},"visit_radial-gradient":function(e){return r.visit_gradient(e)},"visit_repeating-radial-gradient":function(e){return r.visit_gradient(e)},visit_gradient:function(e){var t=r.visit(e.orientation);return t&&(t+=", "),e.type+"("+t+r.visit(e.colorStops)+")"},visit_shape:function(e){var t=e.value,n=r.visit(e.at),o=r.visit(e.style);return o&&(t+=" "+o),n&&(t+=" at "+n),t},"visit_default-radial":function(e){var t="",n=r.visit(e.at);return n&&(t+=n),t},"visit_extent-keyword":function(e){var t=e.value,n=r.visit(e.at);return n&&(t+=" at "+n),t},"visit_position-keyword":function(e){return e.value},visit_position:function(e){return r.visit(e.value.x)+" "+r.visit(e.value.y)},"visit_%":function(e){return e.value+"%"},visit_em:function(e){return e.value+"em"},visit_px:function(e){return e.value+"px"},visit_literal:function(e){return r.visit_color(e.value,e)},visit_hex:function(e){return r.visit_color("#"+e.value,e)},visit_rgb:function(e){return r.visit_color("rgb("+e.value.join(", ")+")",e)},visit_rgba:function(e){return r.visit_color("rgba("+e.value.join(", ")+")",e)},visit_color:function(e,t){var n=e,o=r.visit(t.length);return o&&(n+=" "+o),n},visit_angular:function(e){return e.value+"deg"},visit_directional:function(e){return"to "+e.value},visit_array:function(e){var t="",n=e.length;return e.forEach((function(e,o){t+=r.visit(e),o0&&r("Invalid input not EOF"),o;var o}}(),t.parse=n.parse,t.stringify=n.stringify},9456:(e,t,r)=>{e.exports.all=r(9817).properties},8633:e=>{var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=r(),e.exports.createColors=r},3268:e=>{"use strict";const t="postcss-discard-empty";function r(){return{postcssPlugin:t,OnceExit(e,{result:r}){!function(e,r){e.each((function e(n){const{type:o}=n,a=n.nodes;a&&n.each(e),("decl"===o&&!n.value&&!n.prop.startsWith("--")||"rule"===o&&!n.selector||a&&!a.length&&("atrule"!==o||"layer"!==n.name)||"atrule"===o&&(!a&&!n.params||!n.params&&!a.length))&&(n.remove(),r.messages.push({type:"removal",plugin:t,node:n}))}))}(e,r)}}}r.postcss=!0,e.exports=r},691:(e,t,r)=>{const n=r(7149),o=r(5482),a=n((e=>{e.walk((e=>{e.spaces={before:"",after:""},e.raws&&e.raws.spaces&&(e.raws.spaces={})}))}));function s(e){const t=o(e.trim());return t.walk((e=>{e.before&&(e.before=""),e.after&&(e.after=""),"space"===e.type&&(e.value=" ")})),t.toString()}e.exports=()=>({postcssPlugin:"postcss-minify",AtRule:e=>{e.raws={before:"",after:"",afterName:" "},e.params=s(e.params)},Comment:e=>{"!"===e.text[0]?(e.raws.before="",e.raws.after=""):e.remove()},Declaration:e=>{e.raws={before:"",between:":"},e.value=s(e.value)},Rule:e=>{var t;e.raws={before:"",between:"",after:"",semicolon:!1},e.selector=(t=e.selector,a.processSync(t))}}),e.exports.postcss=!0},7149:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(8349))&&n.__esModule?n:{default:n},a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(680));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var i=function(e){return new o.default(e)};Object.assign(i,a),delete i.__esModule;var l=i;t.default=l,e.exports=t.default},5170:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o,a=x(r(518)),s=x(r(339)),i=x(r(4195)),l=x(r(425)),c=x(r(7071)),u=x(r(9720)),d=x(r(5799)),p=x(r(7324)),h=S(r(5588)),m=x(r(1669)),f=x(r(1704)),g=x(r(2918)),b=x(r(263)),v=S(r(2648)),y=S(r(71)),w=S(r(1581)),k=r(9606);function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(E=function(e){return e?r:t})(e)}function S(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=E(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function x(e){return e&&e.__esModule?e:{default:e}}function C(e,t){for(var r=0;rthis.position&&(o=this.parseWhitespaceEquivalentTokens(t)),this.isNamedCombinator()?r=this.namedCombinator():this.currToken[v.FIELDS.TYPE]===y.combinator?(r=new f.default({value:this.content(),source:M(this.currToken),sourceIndex:this.currToken[v.FIELDS.START_POS]}),this.position++):_[this.currToken[v.FIELDS.TYPE]]||o||this.unexpected(),r){if(o){var a=this.convertWhitespaceNodesToSpace(o),s=a.space,i=a.rawSpace;r.spaces.before=s,r.rawSpaceBefore=i}}else{var l=this.convertWhitespaceNodesToSpace(o,!0),c=l.space,u=l.rawSpace;u||(u=c);var d={},p={spaces:{}};c.endsWith(" ")&&u.endsWith(" ")?(d.before=c.slice(0,c.length-1),p.spaces.before=u.slice(0,u.length-1)):c.startsWith(" ")&&u.startsWith(" ")?(d.after=c.slice(1),p.spaces.after=u.slice(1)):p.value=u,r=new f.default({value:" ",source:A(n,this.tokens[this.position-1]),sourceIndex:n[v.FIELDS.START_POS],spaces:d,raws:p})}return this.currToken&&this.currToken[v.FIELDS.TYPE]===y.space&&(r.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(r)}var h=this.parseWhitespaceEquivalentTokens(t);if(h.length>0){var m=this.current.last;if(m){var g=this.convertWhitespaceNodesToSpace(h),b=g.space,w=g.rawSpace;void 0!==w&&(m.rawSpaceAfter+=w),m.spaces.after+=b}else h.forEach((function(t){return e.newNode(t)}))}},n.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;this.current._inferEndPosition();var e=new s.default({source:{start:T(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][v.FIELDS.START_POS]});this.current.parent.append(e),this.current=e,this.position++},n.comment=function(){var e=this.currToken;this.newNode(new l.default({value:this.content(),source:M(e),sourceIndex:e[v.FIELDS.START_POS]})),this.position++},n.error=function(e,t){throw this.root.error(e,t)},n.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[v.FIELDS.START_POS]})},n.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[v.FIELDS.START_POS])},n.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[v.FIELDS.START_POS])},n.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[v.FIELDS.START_POS])},n.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[v.FIELDS.START_POS])},n.namespace=function(){var e=this.prevToken&&this.content(this.prevToken)||!0;return this.nextToken[v.FIELDS.TYPE]===y.word?(this.position++,this.word(e)):this.nextToken[v.FIELDS.TYPE]===y.asterisk?(this.position++,this.universal(e)):void this.unexpectedPipe()},n.nesting=function(){if(this.nextToken&&"|"===this.content(this.nextToken))this.position++;else{var e=this.currToken;this.newNode(new g.default({value:this.content(),source:M(e),sourceIndex:e[v.FIELDS.START_POS]})),this.position++}},n.parentheses=function(){var e=this.current.last,t=1;if(this.position++,e&&e.type===w.PSEUDO){var r=new s.default({source:{start:T(this.tokens[this.position])},sourceIndex:this.tokens[this.position][v.FIELDS.START_POS]}),n=this.current;for(e.append(r),this.current=r;this.position1&&e.nextToken&&e.nextToken[v.FIELDS.TYPE]===y.openParenthesis&&e.error("Misplaced parenthesis.",{index:e.nextToken[v.FIELDS.START_POS]})})):this.expected(["pseudo-class","pseudo-element"],this.position-1)},n.space=function(){var e=this.content();0===this.position||this.prevToken[v.FIELDS.TYPE]===y.comma||this.prevToken[v.FIELDS.TYPE]===y.openParenthesis||this.current.nodes.every((function(e){return"comment"===e.type}))?(this.spaces=this.optionalSpace(e),this.position++):this.position===this.tokens.length-1||this.nextToken[v.FIELDS.TYPE]===y.comma||this.nextToken[v.FIELDS.TYPE]===y.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(e),this.position++):this.combinator()},n.string=function(){var e=this.currToken;this.newNode(new d.default({value:this.content(),source:M(e),sourceIndex:e[v.FIELDS.START_POS]})),this.position++},n.universal=function(e){var t=this.nextToken;if(t&&"|"===this.content(t))return this.position++,this.namespace();var r=this.currToken;this.newNode(new m.default({value:this.content(),source:M(r),sourceIndex:r[v.FIELDS.START_POS]}),e),this.position++},n.splitWord=function(e,t){for(var r=this,n=this.nextToken,o=this.content();n&&~[y.dollar,y.caret,y.equals,y.word].indexOf(n[v.FIELDS.TYPE]);){this.position++;var a=this.content();if(o+=a,a.lastIndexOf("\\")===a.length-1){var s=this.nextToken;s&&s[v.FIELDS.TYPE]===y.space&&(o+=this.requiredSpace(this.content(s)),this.position++)}n=this.nextToken}var l=L(o,".").filter((function(e){var t="\\"===o[e-1],r=/^\d+\.\d+%$/.test(o);return!t&&!r})),d=L(o,"#").filter((function(e){return"\\"!==o[e-1]})),p=L(o,"#{");p.length&&(d=d.filter((function(e){return!~p.indexOf(e)})));var h=(0,b.default)(function(){var e=Array.prototype.concat.apply([],arguments);return e.filter((function(t,r){return r===e.indexOf(t)}))}([0].concat(l,d)));h.forEach((function(n,a){var s,p=h[a+1]||o.length,m=o.slice(n,p);if(0===a&&t)return t.call(r,m,h.length);var f=r.currToken,g=f[v.FIELDS.START_POS]+h[a],b=P(f[1],f[2]+n,f[3],f[2]+(p-1));if(~l.indexOf(n)){var y={value:m.slice(1),source:b,sourceIndex:g};s=new i.default(R(y,"value"))}else if(~d.indexOf(n)){var w={value:m.slice(1),source:b,sourceIndex:g};s=new c.default(R(w,"value"))}else{var k={value:m,source:b,sourceIndex:g};R(k,"value"),s=new u.default(k)}r.newNode(s,e),e=null})),this.position++},n.word=function(e){var t=this.nextToken;return t&&"|"===this.content(t)?(this.position++,this.namespace()):this.splitWord(e)},n.loop=function(){for(;this.position{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(5170))&&n.__esModule?n:{default:n},a=function(){function e(e,t){this.func=e||function(){},this.funcRes=null,this.options=t}var t=e.prototype;return t._shouldUpdateSelector=function(e,t){return void 0===t&&(t={}),!1!==Object.assign({},this.options,t).updateSelector&&"string"!=typeof e},t._isLossy=function(e){return void 0===e&&(e={}),!1===Object.assign({},this.options,e).lossless},t._root=function(e,t){return void 0===t&&(t={}),new o.default(e,this._parseOptions(t)).root},t._parseOptions=function(e){return{lossy:this._isLossy(e)}},t._run=function(e,t){var r=this;return void 0===t&&(t={}),new Promise((function(n,o){try{var a=r._root(e,t);Promise.resolve(r.func(a)).then((function(n){var o=void 0;return r._shouldUpdateSelector(e,t)&&(o=a.toString(),e.selector=o),{transform:n,root:a,string:o}})).then(n,o)}catch(e){return void o(e)}}))},t._runSync=function(e,t){void 0===t&&(t={});var r=this._root(e,t),n=this.func(r);if(n&&"function"==typeof n.then)throw new Error("Selector processor returned a promise to a synchronous call.");var o=void 0;return t.updateSelector&&"string"!=typeof e&&(o=r.toString(),e.selector=o),{transform:n,root:r,string:o}},t.ast=function(e,t){return this._run(e,t).then((function(e){return e.root}))},t.astSync=function(e,t){return this._runSync(e,t).root},t.transform=function(e,t){return this._run(e,t).then((function(e){return e.transform}))},t.transformSync=function(e,t){return this._runSync(e,t).transform},t.process=function(e,t){return this._run(e,t).then((function(e){return e.string||e.root.toString()}))},t.processSync=function(e,t){var r=this._runSync(e,t);return r.string||r.root.toString()},e}();t.default=a,e.exports=t.default},5588:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0,t.unescapeValue=g;var n,o=l(r(8937)),a=l(r(5286)),s=l(r(3295)),i=r(1581);function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var r=0;r0)||e.quoted||0!==r.before.length||e.spaces.value&&e.spaces.value.after||(r.before=" "),y(t,r)})))),t.push("]"),t.push(this.rawSpaceAfter),t.join("")},a=n,(s=[{key:"quoted",get:function(){var e=this.quoteMark;return"'"===e||'"'===e},set:function(e){m()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(e){this._constructed?this._quoteMark!==e&&(this._quoteMark=e,this._syncRawValue()):this._quoteMark=e}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(e){if(this._constructed){var t=g(e),r=t.deprecatedUsage,n=t.unescaped,o=t.quoteMark;if(r&&h(),n===this._value&&o===this._quoteMark)return;this._value=n,this._quoteMark=o,this._syncRawValue()}else this._value=e}},{key:"insensitive",get:function(){return this._insensitive},set:function(e){e||(this._insensitive=!1,!this.raws||"I"!==this.raws.insensitiveFlag&&"i"!==this.raws.insensitiveFlag||(this.raws.insensitiveFlag=void 0)),this._insensitive=e}},{key:"attribute",get:function(){return this._attribute},set:function(e){this._handleEscapes("attribute",e),this._attribute=e}}])&&c(a.prototype,s),Object.defineProperty(a,"prototype",{writable:!1}),n}(s.default);t.default=b,b.NO_QUOTE=null,b.SINGLE_QUOTE="'",b.DOUBLE_QUOTE='"';var v=((n={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}}).null={isIdentifier:!0},n);function y(e,t){return""+t.before+e+t.after}},4195:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=i(r(8937)),o=r(9606),a=i(r(4646)),s=r(1581);function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var r=0;r{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(4646))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.COMBINATOR,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n}(o.default);t.default=i,e.exports=t.default},425:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(4646))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.COMMENT,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n}(o.default);t.default=i,e.exports=t.default},4451:(e,t,r)=>{"use strict";t.__esModule=!0,t.universal=t.tag=t.string=t.selector=t.root=t.pseudo=t.nesting=t.id=t.comment=t.combinator=t.className=t.attribute=void 0;var n=f(r(5588)),o=f(r(4195)),a=f(r(1704)),s=f(r(425)),i=f(r(7071)),l=f(r(2918)),c=f(r(7324)),u=f(r(518)),d=f(r(339)),p=f(r(5799)),h=f(r(9720)),m=f(r(1669));function f(e){return e&&e.__esModule?e:{default:e}}t.attribute=function(e){return new n.default(e)},t.className=function(e){return new o.default(e)},t.combinator=function(e){return new a.default(e)},t.comment=function(e){return new s.default(e)},t.id=function(e){return new i.default(e)},t.nesting=function(e){return new l.default(e)},t.pseudo=function(e){return new c.default(e)},t.root=function(e){return new u.default(e)},t.selector=function(e){return new d.default(e)},t.string=function(e){return new p.default(e)},t.tag=function(e){return new h.default(e)},t.universal=function(e){return new m.default(e)}},3631:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(4646))&&n.__esModule?n:{default:n},a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(1581));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e&&(this.indexes[r]=t-1);return this},u.removeAll=function(){for(var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.nodes);!(e=t()).done;)e.value.parent=void 0;return this.nodes=[],this},u.empty=function(){return this.removeAll()},u.insertAfter=function(e,t){t.parent=this;var r,n=this.index(e);for(var o in this.nodes.splice(n+1,0,t),t.parent=this,this.indexes)n<=(r=this.indexes[o])&&(this.indexes[o]=r+1);return this},u.insertBefore=function(e,t){t.parent=this;var r,n=this.index(e);for(var o in this.nodes.splice(n,0,t),t.parent=this,this.indexes)(r=this.indexes[o])<=n&&(this.indexes[o]=r+1);return this},u._findChildAtPosition=function(e,t){var r=void 0;return this.each((function(n){if(n.atPosition){var o=n.atPosition(e,t);if(o)return r=o,!1}else if(n.isAtPosition(e,t))return r=n,!1})),r},u.atPosition=function(e,t){return this.isAtPosition(e,t)?this._findChildAtPosition(e,t)||this:void 0},u._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},u.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var r,n;this.indexes[t]{"use strict";t.__esModule=!0,t.isComment=t.isCombinator=t.isClassName=t.isAttribute=void 0,t.isContainer=function(e){return!(!s(e)||!e.walk)},t.isIdentifier=void 0,t.isNamespace=function(e){return l(e)||v(e)},t.isNesting=void 0,t.isNode=s,t.isPseudo=void 0,t.isPseudoClass=function(e){return m(e)&&!w(e)},t.isPseudoElement=w,t.isUniversal=t.isTag=t.isString=t.isSelector=t.isRoot=void 0;var n,o=r(1581),a=((n={})[o.ATTRIBUTE]=!0,n[o.CLASS]=!0,n[o.COMBINATOR]=!0,n[o.COMMENT]=!0,n[o.ID]=!0,n[o.NESTING]=!0,n[o.PSEUDO]=!0,n[o.ROOT]=!0,n[o.SELECTOR]=!0,n[o.STRING]=!0,n[o.TAG]=!0,n[o.UNIVERSAL]=!0,n);function s(e){return"object"==typeof e&&a[e.type]}function i(e,t){return s(t)&&t.type===e}var l=i.bind(null,o.ATTRIBUTE);t.isAttribute=l;var c=i.bind(null,o.CLASS);t.isClassName=c;var u=i.bind(null,o.COMBINATOR);t.isCombinator=u;var d=i.bind(null,o.COMMENT);t.isComment=d;var p=i.bind(null,o.ID);t.isIdentifier=p;var h=i.bind(null,o.NESTING);t.isNesting=h;var m=i.bind(null,o.PSEUDO);t.isPseudo=m;var f=i.bind(null,o.ROOT);t.isRoot=f;var g=i.bind(null,o.SELECTOR);t.isSelector=g;var b=i.bind(null,o.STRING);t.isString=b;var v=i.bind(null,o.TAG);t.isTag=v;var y=i.bind(null,o.UNIVERSAL);function w(e){return m(e)&&e.value&&(e.value.startsWith("::")||":before"===e.value.toLowerCase()||":after"===e.value.toLowerCase()||":first-letter"===e.value.toLowerCase()||":first-line"===e.value.toLowerCase())}t.isUniversal=y},7071:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(4646))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.ID,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n.prototype.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},n}(o.default);t.default=i,e.exports=t.default},680:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(1581);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))}));var o=r(4451);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var a=r(8500);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},3295:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=a(r(8937)),o=r(9606);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var r=0;r{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(4646))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.NESTING,r.value="&",r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n}(o.default);t.default=i,e.exports=t.default},4646:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=r(9606);function o(e,t){for(var r=0;re||this.source.end.linet||this.source.end.line===e&&this.source.end.column{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(3631))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.PSEUDO,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n.prototype.toString=function(){var e=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),e,this.rawSpaceAfter].join("")},n}(o.default);t.default=i,e.exports=t.default},518:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(3631))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){for(var r=0;r{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(3631))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.SELECTOR,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n}(o.default);t.default=i,e.exports=t.default},5799:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(4646))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.STRING,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n}(o.default);t.default=i,e.exports=t.default},9720:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(3295))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.TAG,r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n}(o.default);t.default=i,e.exports=t.default},1581:(e,t)=>{"use strict";t.__esModule=!0,t.UNIVERSAL=t.TAG=t.STRING=t.SELECTOR=t.ROOT=t.PSEUDO=t.NESTING=t.ID=t.COMMENT=t.COMBINATOR=t.CLASS=t.ATTRIBUTE=void 0,t.TAG="tag",t.STRING="string",t.SELECTOR="selector",t.ROOT="root",t.PSEUDO="pseudo",t.NESTING="nesting",t.ID="id",t.COMMENT="comment",t.COMBINATOR="combinator",t.CLASS="class",t.ATTRIBUTE="attribute",t.UNIVERSAL="universal"},1669:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(3295))&&n.__esModule?n:{default:n},a=r(1581);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var i=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).type=a.UNIVERSAL,r.value="*",r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r),n}(o.default);t.default=i,e.exports=t.default},263:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e.sort((function(e,t){return e-t}))},e.exports=t.default},71:(e,t)=>{"use strict";t.__esModule=!0,t.word=t.tilde=t.tab=t.str=t.space=t.slash=t.singleQuote=t.semicolon=t.plus=t.pipe=t.openSquare=t.openParenthesis=t.newline=t.greaterThan=t.feed=t.equals=t.doubleQuote=t.dollar=t.cr=t.comment=t.comma=t.combinator=t.colon=t.closeSquare=t.closeParenthesis=t.caret=t.bang=t.backslash=t.at=t.asterisk=t.ampersand=void 0,t.ampersand=38,t.asterisk=42,t.at=64,t.comma=44,t.colon=58,t.semicolon=59,t.openParenthesis=40,t.closeParenthesis=41,t.openSquare=91,t.closeSquare=93,t.dollar=36,t.tilde=126,t.caret=94,t.plus=43,t.equals=61,t.pipe=124,t.greaterThan=62,t.space=32,t.singleQuote=39,t.doubleQuote=34,t.slash=47,t.bang=33,t.backslash=92,t.cr=13,t.feed=12,t.newline=10,t.tab=9,t.str=39,t.comment=-1,t.word=-2,t.combinator=-3},2648:(e,t,r)=>{"use strict";t.__esModule=!0,t.FIELDS=void 0,t.default=function(e){var t,r,n,o,s,i,l,c,u,p,h,m,f=[],g=e.css.valueOf(),b=g.length,v=-1,y=1,w=0,k=0;function E(t,r){if(!e.safe)throw e.error("Unclosed "+t,y,w-v,w);c=(g+=r).length-1}for(;w0?(u=y+i,p=c-l[i].length):(u=y,p=v),m=a.comment,y=u,n=u,r=c-p):t===a.slash?(m=t,n=y,r=w-v,k=(c=w)+1):(c=d(g,w),m=a.word,n=y,r=c-v),k=c+1}f.push([m,y,w-v,n,r,w,k]),p&&(v=p,p=null),w=k}return f};var n,o,a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(71));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}for(var i=((n={})[a.tab]=!0,n[a.newline]=!0,n[a.cr]=!0,n[a.feed]=!0,n),l=((o={})[a.space]=!0,o[a.tab]=!0,o[a.newline]=!0,o[a.cr]=!0,o[a.feed]=!0,o[a.ampersand]=!0,o[a.asterisk]=!0,o[a.bang]=!0,o[a.comma]=!0,o[a.colon]=!0,o[a.semicolon]=!0,o[a.openParenthesis]=!0,o[a.closeParenthesis]=!0,o[a.openSquare]=!0,o[a.closeSquare]=!0,o[a.singleQuote]=!0,o[a.doubleQuote]=!0,o[a.plus]=!0,o[a.pipe]=!0,o[a.tilde]=!0,o[a.greaterThan]=!0,o[a.equals]=!0,o[a.dollar]=!0,o[a.caret]=!0,o[a.slash]=!0,o),c={},u=0;u<22;u++)c["0123456789abcdefABCDEF".charCodeAt(u)]=!0;function d(e,t){var r,n=t;do{if(r=e.charCodeAt(n),l[r])return n-1;r===a.backslash?n=p(e,n)+1:n++}while(n{"use strict";t.__esModule=!0,t.default=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0;){var o=r.shift();e[o]||(e[o]={}),e=e[o]}},e.exports=t.default},6291:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0;){var o=r.shift();if(!e[o])return;e=e[o]}return e},e.exports=t.default},9606:(e,t,r)=>{"use strict";t.__esModule=!0,t.unesc=t.stripComments=t.getProp=t.ensureObject=void 0;var n=i(r(5286));t.unesc=n.default;var o=i(r(6291));t.getProp=o.default;var a=i(r(1557));t.ensureObject=a.default;var s=i(r(8354));function i(e){return e&&e.__esModule?e:{default:e}}t.stripComments=s.default},8354:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){for(var t="",r=e.indexOf("/*"),n=0;r>=0;){t+=e.slice(n,r);var o=e.indexOf("*/",r+2);if(o<0)return t;n=o+2,r=e.indexOf("/*",n)}return t+e.slice(n)},e.exports=t.default},5286:(e,t)=>{"use strict";function r(e){for(var t=e.toLowerCase(),r="",n=!1,o=0;o<6&&void 0!==t[o];o++){var a=t.charCodeAt(o);if(n=32===a,!(a>=97&&a<=102||a>=48&&a<=57))break;r+=t[o]}if(0!==r.length){var s=parseInt(r,16);return s>=55296&&s<=57343||0===s||s>1114111?["�",r.length+(n?1:0)]:[String.fromCodePoint(s),r.length+(n?1:0)]}}t.__esModule=!0,t.default=function(e){if(!n.test(e))return e;for(var t="",o=0;o{var n=r(8809),o=r(8449),a=r(9063);function s(e){return this instanceof s?(this.nodes=n(e),this):new s(e)}s.prototype.toString=function(){return Array.isArray(this.nodes)?a(this.nodes):""},s.prototype.walk=function(e,t){return o(this.nodes,e,t),this},s.unit=r(2882),s.walk=o,s.stringify=a,e.exports=s},8809:e=>{var t="(".charCodeAt(0),r=")".charCodeAt(0),n="'".charCodeAt(0),o='"'.charCodeAt(0),a="\\".charCodeAt(0),s="/".charCodeAt(0),i=",".charCodeAt(0),l=":".charCodeAt(0),c="*".charCodeAt(0),u="u".charCodeAt(0),d="U".charCodeAt(0),p="+".charCodeAt(0),h=/^[a-f0-9?-]+$/i;e.exports=function(e){for(var m,f,g,b,v,y,w,k,E,S=[],x=e,C=0,_=x.charCodeAt(C),O=x.length,T=[{nodes:S}],I=0,P="",M="",A="";C{function t(e,t){var n,o,a=e.type,s=e.value;return t&&void 0!==(o=t(e))?o:"word"===a||"space"===a?s:"string"===a?(n=e.quote||"")+s+(e.unclosed?"":n):"comment"===a?"/*"+s+(e.unclosed?"":"*/"):"div"===a?(e.before||"")+s+(e.after||""):Array.isArray(e.nodes)?(n=r(e.nodes,t),"function"!==a?n:s+"("+(e.before||"")+n+(e.after||"")+(e.unclosed?"":")")):s}function r(e,r){var n,o;if(Array.isArray(e)){for(n="",o=e.length-1;~o;o-=1)n=t(e[o],r)+n;return n}return t(e,r)}e.exports=r},2882:e=>{var t="-".charCodeAt(0),r="+".charCodeAt(0),n=".".charCodeAt(0),o="e".charCodeAt(0),a="E".charCodeAt(0);e.exports=function(e){var s,i,l,c=0,u=e.length;if(0===u||!function(e){var o,a=e.charCodeAt(0);if(a===r||a===t){if((o=e.charCodeAt(1))>=48&&o<=57)return!0;var s=e.charCodeAt(2);return o===n&&s>=48&&s<=57}return a===n?(o=e.charCodeAt(1))>=48&&o<=57:a>=48&&a<=57}(e))return!1;for((s=e.charCodeAt(c))!==r&&s!==t||c++;c57);)c+=1;if(s=e.charCodeAt(c),i=e.charCodeAt(c+1),s===n&&i>=48&&i<=57)for(c+=2;c57);)c+=1;if(s=e.charCodeAt(c),i=e.charCodeAt(c+1),l=e.charCodeAt(c+2),(s===o||s===a)&&(i>=48&&i<=57||(i===r||i===t)&&l>=48&&l<=57))for(c+=i===r||i===t?3:2;c57);)c+=1;return{number:e.slice(0,c),unit:e.slice(c)}}},8449:e=>{e.exports=function e(t,r,n){var o,a,s,i;for(o=0,a=t.length;o{"use strict";let n=r(7793);class o extends n{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=o,o.default=o,n.registerAtRule(o)},9371:(e,t,r)=>{"use strict";let n=r(3152);class o extends n{constructor(e){super(e),this.type="comment"}}e.exports=o,o.default=o},7793:(e,t,r)=>{"use strict";let n,o,a,s,{isClean:i,my:l}=r(4151),c=r(5238),u=r(9371),d=r(3152);function p(e){return e.map((e=>(e.nodes&&(e.nodes=p(e.nodes)),delete e.source,e)))}function h(e){if(e[i]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)h(t)}class m extends d{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map((e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e))):"every"===t||"some"===t?r=>e[t](((e,...t)=>r(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),o=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of o)this.proxyOf.nodes.splice(n+1,0,e);for(let e in this.indexes)r=this.indexes[e],n(e[l]||m.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[i]&&h(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls((n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{let n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("atrule"===e.type)return t(e,r)})))}walkComments(e){return this.walk(((t,r)=>{if("comment"===t.type)return e(t,r)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("decl"===e.type)return t(e,r)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("rule"===e.type)return t(e,r)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}m.registerParse=e=>{n=e},m.registerRule=e=>{o=e},m.registerAtRule=e=>{a=e},m.registerRoot=e=>{s=e},e.exports=m,m.default=m,m.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,a.prototype):"rule"===e.type?Object.setPrototypeOf(e,o.prototype):"decl"===e.type?Object.setPrototypeOf(e,c.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[l]=!0,e.nodes&&e.nodes.forEach((e=>{m.rebuild(e)}))}},3614:(e,t,r)=>{"use strict";let n=r(8633),o=r(9746);class a extends Error{constructor(e,t,r,n,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),n&&(this.source=n),s&&(this.plugin=s),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,a)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=n.isColorSupported),o&&e&&(t=o(t));let r,a,s=t.split(/\r?\n/),i=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),c=String(l).length;if(e){let{bold:e,gray:t,red:o}=n.createColors(!0);r=t=>e(o(t)),a=e=>t(e)}else r=a=e=>e;return s.slice(i,l).map(((e,t)=>{let n=i+1+t,o=" "+(" "+n).slice(-c)+" | ";if(n===this.line){let t=a(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+a(o)+e+"\n "+t+r("^")}return" "+a(o)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=a,a.default=a},5238:(e,t,r)=>{"use strict";let n=r(3152);class o extends n{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=o,o.default=o},145:(e,t,r)=>{"use strict";let n,o,a=r(7793);class s extends a{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new n(new o,this,e).stringify()}}s.registerLazyResult=e=>{n=e},s.registerProcessor=e=>{o=e},e.exports=s,s.default=s},3438:(e,t,r)=>{"use strict";let n=r(5238),o=r(3878),a=r(9371),s=r(396),i=r(1106),l=r(5644),c=r(1534);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:r,...d}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:i.prototype};r.map&&(r.map={...r.map,__proto__:o.prototype}),t.push(r)}}if(d.nodes&&(d.nodes=e.nodes.map((e=>u(e,t)))),d.source){let{inputId:e,...r}=d.source;d.source=r,null!=e&&(d.source.input=t[e])}if("root"===d.type)return new l(d);if("decl"===d.type)return new n(d);if("rule"===d.type)return new c(d);if("comment"===d.type)return new a(d);if("atrule"===d.type)return new s(d);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},1106:(e,t,r)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:o}=r(1866),{fileURLToPath:a,pathToFileURL:s}=r(2739),{isAbsolute:i,resolve:l}=r(197),{nanoid:c}=r(5042),u=r(9746),d=r(3614),p=r(3878),h=Symbol("fromOffsetCache"),m=Boolean(n&&o),f=Boolean(l&&i);class g{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!f||/^\w+:\/\//.test(t.from)||i(t.from)?this.file=t.from:this.file=l(t.from)),f&&m){let e=new p(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let o,a,i;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);a=e.line,i=e.col}else a=n.line,i=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let l=this.origin(t,r,a,i);return o=l?new d(e,void 0===l.endLine?l.line:{column:l.column,line:l.line},void 0===l.endLine?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,n.plugin):new d(e,void 0===a?t:{column:r,line:t},void 0===a?r:{column:i,line:a},this.css,this.file,n.plugin),o.input={column:r,endColumn:i,endLine:a,line:t,source:this.css},this.file&&(s&&(o.input.url=s(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,r;if(this[h])r=this[h];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,o=e.length;n=t)n=r.length-1;else{let t,o=r.length-2;for(;n>1),e=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let o,l,c=this.map.consumer(),u=c.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof r&&(o=c.originalPositionFor({column:n,line:r})),l=i(u.source)?s(u.source):new URL(u.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let d={column:u.column,endColumn:o&&o.column,endLine:o&&o.line,line:u.line,url:l.toString()};if("file:"===l.protocol){if(!a)throw new Error("file: protocol is not available in this PostCSS build");d.file=a(l)}let p=c.sourceContentFor(u.source);return p&&(d.source=p),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=g,g.default=g,u&&u.registerInput&&u.registerInput(g)},6966:(e,t,r)=>{"use strict";let{isClean:n,my:o}=r(4151),a=r(3604),s=r(3303),i=r(7793),l=r(145),c=(r(6156),r(3717)),u=r(9577),d=r(5644);const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},m={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function g(e){return"object"==typeof e&&"function"==typeof e.then}function b(e){let t=!1,r=p[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,f,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,f,r+"Exit"]:[r,r+"Exit"]}function v(e){let t;return t="document"===e.type?["Document",f,"DocumentExit"]:"root"===e.type?["Root",f,"RootExit"]:b(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function y(e){return e[n]=!1,e.nodes&&e.nodes.forEach((e=>y(e))),e}let w={};class k{constructor(e,t,r){let n;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof k||t instanceof c)n=y(t.root),t.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let e=u;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{n=e(t,r)}catch(e){this.processed=!0,this.error=e}n&&!n[o]&&i.rebuild(n)}else n=y(t);this.result=new c(e,n,r),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!h[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!m[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let e=this.visitTick(t);if(g(e))try{await e}catch(e){let r=t[t.length-1].node;throw this.handleError(e,r)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>r(e,this.helpers)));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return g(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new a(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(g(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[n];)e[n]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,n]of e){let e;this.result.lastPlugin=r;try{e=n(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:o}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(o.length>0&&t.visitorIndex{e[n]||this.walkSync(e)}));else{let t=this.listeners[r];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}k.registerPostcss=e=>{w=e},e.exports=k,k.default=k,d.registerLazyResult(k),l.registerLazyResult(k)},1752:e=>{"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(e,t,r){let n=[],o="",a=!1,s=0,i=!1,l="",c=!1;for(let r of e)c?c=!1:"\\"===r?c=!0:i?r===l&&(i=!1):'"'===r||"'"===r?(i=!0,l=r):"("===r?s+=1:")"===r?s>0&&(s-=1):0===s&&t.includes(r)&&(a=!0),a?(""!==o&&n.push(o.trim()),o="",a=!1):o+=r;return(r||""!==o)&&n.push(o.trim()),n}};e.exports=t,t.default=t},3604:(e,t,r)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:o}=r(1866),{dirname:a,relative:s,resolve:i,sep:l}=r(197),{pathToFileURL:c}=r(2739),u=r(1106),d=Boolean(n&&o),p=Boolean(a&&i&&s&&l);e.exports=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),o=e.root||a(e.file);!1===this.mapOpts.sourcesContent?(t=new n(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(o)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=o.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,r=1,n=1,a="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((o,i,l)=>{if(this.css+=o,i&&"end"!==l&&(s.generated.line=r,s.generated.column=n-1,i.source&&i.source.start?(s.source=this.sourcePath(i),s.original.line=i.source.start.line,s.original.column=i.source.start.column-1,this.map.addMapping(s)):(s.source=a,s.original.line=1,s.original.column=0,this.map.addMapping(s))),e=o.match(/\n/g),e?(r+=e.length,t=o.lastIndexOf("\n"),n=o.length-t):n+=o.length,i&&"start"!==l){let e=i.parent||{raws:{}};("decl"===i.type||"atrule"===i.type&&!i.nodes)&&i===e.last&&!e.raws.semicolon||(i.source&&i.source.end?(s.source=this.sourcePath(i),s.original.line=i.source.end.line,s.original.column=i.source.end.column-1,s.generated.line=r,s.generated.column=n-2,this.map.addMapping(s)):(s.source=a,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1,this.map.addMapping(s)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?a(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=a(i(r,this.mapOpts.annotation)));let n=s(r,e);return this.memoizedPaths.set(e,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===l&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}},4211:(e,t,r)=>{"use strict";let n=r(3604),o=r(3303),a=(r(6156),r(9577));const s=r(3717);class i{constructor(e,t,r){let a;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i=o;this.result=new s(this._processor,a,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new n(i,a,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=a;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}}e.exports=i,i.default=i},3152:(e,t,r)=>{"use strict";let{isClean:n,my:o}=r(4151),a=r(3614),s=r(7668),i=r(3303);function l(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let o=e[n],a=typeof o;"parent"===n&&"object"===a?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map((e=>l(e,r))):("object"===a&&null!==o&&(o=l(o)),r[n]=o)}return r}class c{constructor(e={}){this.raws={},this[n]=!1,this[o]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=l(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new a(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[n]){this[n]=!1;let e=this;for(;e=e.parent;)e[n]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,o=this.source.start.line;for(let t=0;t"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof n&&n.toJSON)r[e]=n.toJSON(null,t);else if("source"===e){let a=t.get(n.input);null==a&&(a=o,t.set(n.input,o),o++),r[e]={end:n.end,inputId:a,start:n.start}}else r[e]=n}return n&&(r.inputs=[...t.keys()].map((e=>e.toJSON()))),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,r){let n={node:this};for(let e in r)n[e]=r[e];return e.warn(t,n)}get proxyOf(){return this}}e.exports=c,c.default=c},9577:(e,t,r)=>{"use strict";let n=r(7793),o=r(8339),a=r(1106);function s(e,t){let r=new a(e,t),n=new o(r);try{n.parse()}catch(e){throw e}return n.root}e.exports=s,s.default=s,n.registerParse(s)},8339:(e,t,r)=>{"use strict";let n=r(5238),o=r(5781),a=r(9371),s=r(396),i=r(5644),l=r(1534);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,n,o=new s;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);let a=!1,i=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){i=!0;break}if("}"===t){if(l.length>0){for(n=l.length-1,r=l[n];r&&"space"===r[0];)r=l[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),a&&(e=l[l.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),i&&(o.nodes=[],this.current=o)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let o=t-1;o>=0&&(r=e[o],"space"===r[0]||(n+=1,2!==n));o--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,o=0;for(let[a,s]of e.entries()){if(t=s,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return a}this.doubleColon(t)}n=t}return!1}comment(e){let t=new a;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(e,t){let r=new n;this.init(r,e[0][2]);let o,a=e[e.length-1];for(";"===a[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(a[3]||a[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(o=e.shift(),":"===o[0]){r.raws.between+=o[1];break}"word"===o[0]&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s,i=[];for(;e.length&&(s=e[0][0],"space"===s||"comment"===s);)i.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(o=e[t],"!important"===o[1].toLowerCase()){r.important=!0;let n=this.stringFrom(e,t);n=this.spacesFromEnd(e)+n," !important"!==n&&(r.raws.important=n);break}if("important"===o[1].toLowerCase()){let n=e.slice(0),o="";for(let e=t;e>0;e--){let t=n[e][0];if(0===o.trim().indexOf("!")&&"space"!==t)break;o=n.pop()[1]+o}0===o.trim().indexOf("!")&&(r.important=!0,r.raws.important=o,e=n)}if("space"!==o[0]&&"comment"!==o[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(r.raws.between+=i.map((e=>e[1])).join(""),i=[]),this.raw(r,"value",i.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,o=null,a=[],s=e[1].startsWith("--"),i=[],l=e;for(;l;){if(r=l[0],i.push(l),"("===r||"["===r)o||(o=l),a.push("("===r?")":"]");else if(s&&n&&"{"===r)o||(o=l),a.push("}");else if(0===a.length){if(";"===r){if(n)return void this.decl(i,s);break}if("{"===r)return void this.rule(i);if("}"===r){this.tokenizer.back(i.pop()),t=!0;break}":"===r&&(n=!0)}else r===a[a.length-1]&&(a.pop(),0===a.length&&(o=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(o),t&&n){if(!s)for(;i.length&&(l=i[i.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(i.pop());this.decl(i,s)}else this.unknownWord(i)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let o,a,s,i,l=r.length,u="",d=!0;for(let e=0;ee+t[1]),"");e.raws[t]={raw:n,value:u}}e[t]=u}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n{"use strict";let n=r(3614),o=r(5238),a=r(6966),s=r(7793),i=r(6846),l=r(3303),c=r(3438),u=r(145),d=r(38),p=r(9371),h=r(396),m=r(3717),f=r(1106),g=r(9577),b=r(1752),v=r(1534),y=r(5644),w=r(3152);function k(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new i(e)}k.plugin=function(e,t){let r,n=!1;function o(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let o=t(...r);return o.postcssPlugin=e,o.postcssVersion=(new i).version,o}return Object.defineProperty(o,"postcss",{get:()=>(r||(r=o()),r)}),o.process=function(e,t,r){return k([o(r)]).process(e,t)},o},k.stringify=l,k.parse=g,k.fromJSON=c,k.list=b,k.comment=e=>new p(e),k.atRule=e=>new h(e),k.decl=e=>new o(e),k.rule=e=>new v(e),k.root=e=>new y(e),k.document=e=>new u(e),k.CssSyntaxError=n,k.Declaration=o,k.Container=s,k.Processor=i,k.Document=u,k.Comment=p,k.Warning=d,k.AtRule=h,k.Result=m,k.Input=f,k.Rule=v,k.Root=y,k.Node=w,a.registerPostcss(k),e.exports=k,k.default=k},3878:(e,t,r)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:o}=r(1866),{existsSync:a,readFileSync:s}=r(9977),{dirname:i,join:l}=r(197);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=i(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new n(this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let r=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(r)return n=e.substr(r[0].length),Buffer?Buffer.from(n,"base64").toString():window.atob(n);var n;let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=i(e),a(e))return this.mapFile=e,s(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof n)return o.fromSourceMap(t).toString();if(t instanceof o)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=l(i(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c,c.default=c},6846:(e,t,r)=>{"use strict";let n=r(4211),o=r(6966),a=r(145),s=r(5644);class i{constructor(e=[]){this.version="8.4.41",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new o(this,e,t):new n(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=i,i.default=i,s.registerProcessor(i),a.registerProcessor(i)},3717:(e,t,r)=>{"use strict";let n=r(38);class o{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=o,o.default=o},5644:(e,t,r)=>{"use strict";let n,o,a=r(7793);class s extends a{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of n)e.raws.before=t.raws.before;return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new n(new o,this,e).stringify()}}s.registerLazyResult=e=>{n=e},s.registerProcessor=e=>{o=e},e.exports=s,s.default=s,a.registerRoot(s)},1534:(e,t,r)=>{"use strict";let n=r(7793),o=r(1752);class a extends n{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return o.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}e.exports=a,a.default=a,n.registerRule(a)},7668:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class r{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let o=(e.raws.between||"")+(t?";":"");this.builder(r+n+o,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,o=0;for(;n&&"root"!==n.type;)o+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n{if(o=e.raws[r],void 0!==o)return!1}))}var i;return void 0===o&&(o=t[n]),s.rawCache[n]=o,o}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments((e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls((e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=r,r.default=r},3303:(e,t,r)=>{"use strict";let n=r(7668);function o(e,t){new n(t).stringify(e)}e.exports=o,o.default=o},4151:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},5781:e=>{"use strict";const t="'".charCodeAt(0),r='"'.charCodeAt(0),n="\\".charCodeAt(0),o="/".charCodeAt(0),a="\n".charCodeAt(0),s=" ".charCodeAt(0),i="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),d="]".charCodeAt(0),p="(".charCodeAt(0),h=")".charCodeAt(0),m="{".charCodeAt(0),f="}".charCodeAt(0),g=";".charCodeAt(0),b="*".charCodeAt(0),v=":".charCodeAt(0),y="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,k=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,E=/.[\r\n"'(/\\]/,S=/[\da-f]/i;e.exports=function(e,x={}){let C,_,O,T,I,P,M,A,R,L,z=e.css.valueOf(),D=x.ignoreErrors,F=z.length,B=0,N=[],j=[];function V(t){throw e.error("Unclosed "+t,B)}return{back:function(e){j.push(e)},endOfFile:function(){return 0===j.length&&B>=F},nextToken:function(e){if(j.length)return j.pop();if(B>=F)return;let x=!!e&&e.ignoreUnclosed;switch(C=z.charCodeAt(B),C){case a:case s:case l:case c:case i:_=B;do{_+=1,C=z.charCodeAt(_)}while(C===s||C===a||C===l||C===c||C===i);L=["space",z.slice(B,_)],B=_-1;break;case u:case d:case m:case f:case v:case g:case h:{let e=String.fromCharCode(C);L=[e,e,B];break}case p:if(A=N.length?N.pop()[1]:"",R=z.charCodeAt(B+1),"url"===A&&R!==t&&R!==r&&R!==s&&R!==a&&R!==l&&R!==i&&R!==c){_=B;do{if(P=!1,_=z.indexOf(")",_+1),-1===_){if(D||x){_=B;break}V("bracket")}for(M=_;z.charCodeAt(M-1)===n;)M-=1,P=!P}while(P);L=["brackets",z.slice(B,_+1),B,_],B=_}else _=z.indexOf(")",B+1),T=z.slice(B,_+1),-1===_||E.test(T)?L=["(","(",B]:(L=["brackets",T,B,_],B=_);break;case t:case r:O=C===t?"'":'"',_=B;do{if(P=!1,_=z.indexOf(O,_+1),-1===_){if(D||x){_=B+1;break}V("string")}for(M=_;z.charCodeAt(M-1)===n;)M-=1,P=!P}while(P);L=["string",z.slice(B,_+1),B,_],B=_;break;case y:w.lastIndex=B+1,w.test(z),_=0===w.lastIndex?z.length-1:w.lastIndex-2,L=["at-word",z.slice(B,_+1),B,_],B=_;break;case n:for(_=B,I=!0;z.charCodeAt(_+1)===n;)_+=1,I=!I;if(C=z.charCodeAt(_+1),I&&C!==o&&C!==s&&C!==a&&C!==l&&C!==c&&C!==i&&(_+=1,S.test(z.charAt(_)))){for(;S.test(z.charAt(_+1));)_+=1;z.charCodeAt(_+1)===s&&(_+=1)}L=["word",z.slice(B,_+1),B,_],B=_;break;default:C===o&&z.charCodeAt(B+1)===b?(_=z.indexOf("*/",B+2)+1,0===_&&(D||x?_=z.length:V("comment")),L=["comment",z.slice(B,_+1),B,_],B=_):(k.lastIndex=B+1,k.test(z),_=0===k.lastIndex?z.length-1:k.lastIndex-2,L=["word",z.slice(B,_+1),B,_],N.push(L),B=_)}return B++,L},position:function(){return B}}}},6156:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},38:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},2694:(e,t,r)=>{"use strict";var n=r(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,s){if(s!==n){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 t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},5556:(e,t,r)=>{e.exports=r(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2799:(e,t)=>{"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.module.reference")},4363:(e,t,r)=>{"use strict";r(2799)},4643:(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},9746:()=>{},9977:()=>{},197:()=>{},1866:()=>{},2739:()=>{},5042:e=>{e.exports={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let n="",o=r;for(;o--;)n+=e[Math.random()*e.length|0];return n}}},9817:e=>{"use strict";e.exports=JSON.parse('{"properties":["-epub-caption-side","-epub-hyphens","-epub-text-combine","-epub-text-emphasis","-epub-text-emphasis-color","-epub-text-emphasis-style","-epub-text-orientation","-epub-text-transform","-epub-word-break","-epub-writing-mode","-internal-text-autosizing-status","accelerator","accent-color","-wap-accesskey","additive-symbols","align-content","-webkit-align-content","align-items","-webkit-align-items","align-self","-webkit-align-self","alignment-baseline","all","alt","-webkit-alt","anchor-default","anchor-name","anchor-scroll","animation","animation-composition","animation-delay","-moz-animation-delay","-ms-animation-delay","-webkit-animation-delay","animation-direction","-moz-animation-direction","-ms-animation-direction","-webkit-animation-direction","animation-duration","-moz-animation-duration","-ms-animation-duration","-webkit-animation-duration","animation-fill-mode","-moz-animation-fill-mode","-ms-animation-fill-mode","-webkit-animation-fill-mode","animation-iteration-count","-moz-animation-iteration-count","-ms-animation-iteration-count","-webkit-animation-iteration-count","-moz-animation","-ms-animation","animation-name","-moz-animation-name","-ms-animation-name","-webkit-animation-name","animation-play-state","-moz-animation-play-state","-ms-animation-play-state","-webkit-animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","-moz-animation-timing-function","-ms-animation-timing-function","-webkit-animation-timing-function","-webkit-animation-trigger","-webkit-animation","app-region","-webkit-app-region","appearance","-moz-appearance","-webkit-appearance","ascent-override","aspect-ratio","-webkit-aspect-ratio","audio-level","azimuth","backdrop-filter","-webkit-backdrop-filter","backface-visibility","-moz-backface-visibility","-ms-backface-visibility","-webkit-backface-visibility","background","background-attachment","-webkit-background-attachment","background-blend-mode","background-clip","-moz-background-clip","-webkit-background-clip","background-color","-webkit-background-color","-webkit-background-composite","background-image","-webkit-background-image","-moz-background-inline-policy","background-origin","-moz-background-origin","-webkit-background-origin","background-position","-webkit-background-position","background-position-x","-webkit-background-position-x","background-position-y","-webkit-background-position-y","background-repeat","-webkit-background-repeat","background-repeat-x","background-repeat-y","background-size","-moz-background-size","-webkit-background-size","-webkit-background","base-palette","baseline-shift","baseline-source","behavior","-moz-binding","block-ellipsis","-ms-block-progression","block-size","block-step","block-step-align","block-step-insert","block-step-round","block-step-size","bookmark-label","bookmark-level","bookmark-state","border","-webkit-border-after-color","-webkit-border-after-style","-webkit-border-after","-webkit-border-after-width","-webkit-border-before-color","-webkit-border-before-style","-webkit-border-before","-webkit-border-before-width","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","-moz-border-bottom-colors","border-bottom-left-radius","-webkit-border-bottom-left-radius","border-bottom-right-radius","-webkit-border-bottom-right-radius","border-bottom-style","border-bottom-width","border-boundary","border-collapse","border-color","-moz-border-end-color","-webkit-border-end-color","border-end-end-radius","-moz-border-end","border-end-start-radius","-moz-border-end-style","-webkit-border-end-style","-webkit-border-end","-moz-border-end-width","-webkit-border-end-width","-webkit-border-fit","-webkit-border-horizontal-spacing","border-image","-moz-border-image","-o-border-image","border-image-outset","-webkit-border-image-outset","border-image-repeat","-webkit-border-image-repeat","border-image-slice","-webkit-border-image-slice","border-image-source","-webkit-border-image-source","-webkit-border-image","border-image-width","-webkit-border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","-moz-border-left-colors","border-left-style","border-left-width","border-radius","-moz-border-radius-bottomleft","-moz-border-radius-bottomright","-moz-border-radius","-moz-border-radius-topleft","-moz-border-radius-topright","-webkit-border-radius","border-right","border-right-color","-moz-border-right-colors","border-right-style","border-right-width","border-spacing","-moz-border-start-color","-webkit-border-start-color","border-start-end-radius","-moz-border-start","border-start-start-radius","-moz-border-start-style","-webkit-border-start-style","-webkit-border-start","-moz-border-start-width","-webkit-border-start-width","border-style","border-top","border-top-color","-moz-border-top-colors","border-top-left-radius","-webkit-border-top-left-radius","border-top-right-radius","-webkit-border-top-right-radius","border-top-style","border-top-width","-webkit-border-vertical-spacing","border-width","bottom","-moz-box-align","-webkit-box-align","box-decoration-break","-webkit-box-decoration-break","-moz-box-direction","-webkit-box-direction","-webkit-box-flex-group","-moz-box-flex","-webkit-box-flex","-webkit-box-lines","-moz-box-ordinal-group","-webkit-box-ordinal-group","-moz-box-orient","-webkit-box-orient","-moz-box-pack","-webkit-box-pack","-webkit-box-reflect","box-shadow","-moz-box-shadow","-webkit-box-shadow","box-sizing","-moz-box-sizing","-webkit-box-sizing","box-snap","break-after","break-before","break-inside","buffered-rendering","caption-side","caret","caret-animation","caret-color","caret-shape","chains","clear","clip","clip-path","-webkit-clip-path","clip-rule","color","color-adjust","-webkit-color-correction","-apple-color-filter","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","-webkit-column-axis","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","column-count","-moz-column-count","-webkit-column-count","column-fill","-moz-column-fill","-webkit-column-fill","column-gap","-moz-column-gap","-webkit-column-gap","column-progression","-webkit-column-progression","column-rule","column-rule-color","-moz-column-rule-color","-webkit-column-rule-color","-moz-column-rule","column-rule-style","-moz-column-rule-style","-webkit-column-rule-style","-webkit-column-rule","column-rule-width","-moz-column-rule-width","-webkit-column-rule-width","column-span","-moz-column-span","-webkit-column-span","column-width","-moz-column-width","-webkit-column-width","columns","-moz-columns","-webkit-columns","-webkit-composition-fill-color","-webkit-composition-frame-color","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","-ms-content-zoom-chaining","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-limit","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-content-zooming","continue","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","-webkit-cursor-visibility","cx","cy","d","-apple-dashboard-region","-webkit-dashboard-region","descent-override","direction","display","display-align","dominant-baseline","elevation","empty-cells","enable-background","epub-caption-side","epub-hyphens","epub-text-combine","epub-text-emphasis","epub-text-emphasis-color","epub-text-emphasis-style","epub-text-orientation","epub-text-transform","epub-word-break","epub-writing-mode","fallback","field-sizing","fill","fill-break","fill-color","fill-image","fill-opacity","fill-origin","fill-position","fill-repeat","fill-rule","fill-size","filter","-ms-filter","-webkit-filter","flex","-ms-flex-align","-webkit-flex-align","flex-basis","-webkit-flex-basis","flex-direction","-ms-flex-direction","-webkit-flex-direction","flex-flow","-ms-flex-flow","-webkit-flex-flow","flex-grow","-webkit-flex-grow","-ms-flex-item-align","-webkit-flex-item-align","-ms-flex-line-pack","-webkit-flex-line-pack","-ms-flex","-ms-flex-negative","-ms-flex-order","-webkit-flex-order","-ms-flex-pack","-webkit-flex-pack","-ms-flex-positive","-ms-flex-preferred-size","flex-shrink","-webkit-flex-shrink","-webkit-flex","flex-wrap","-ms-flex-wrap","-webkit-flex-wrap","float","float-defer","-moz-float-edge","float-offset","float-reference","flood-color","flood-opacity","flow","flow-from","-ms-flow-from","-webkit-flow-from","flow-into","-ms-flow-into","-webkit-flow-into","font","font-display","font-family","font-feature-settings","-moz-font-feature-settings","-ms-font-feature-settings","-webkit-font-feature-settings","font-kerning","-webkit-font-kerning","font-language-override","-moz-font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","-webkit-font-size-delta","-webkit-font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","-webkit-font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","font-width","footnote-display","footnote-policy","-moz-force-broken-image-icon","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","-webkit-grid-after","grid-area","grid-auto-columns","-webkit-grid-auto-columns","grid-auto-flow","-webkit-grid-auto-flow","grid-auto-rows","-webkit-grid-auto-rows","-webkit-grid-before","grid-column","-ms-grid-column-align","grid-column-end","grid-column-gap","-ms-grid-column","-ms-grid-column-span","grid-column-start","-webkit-grid-column","-ms-grid-columns","-webkit-grid-columns","-webkit-grid-end","grid-gap","grid-row","-ms-grid-row-align","grid-row-end","grid-row-gap","-ms-grid-row","-ms-grid-row-span","grid-row-start","-webkit-grid-row","-ms-grid-rows","-webkit-grid-rows","-webkit-grid-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","-ms-high-contrast-adjust","-webkit-highlight","hyphenate-character","-webkit-hyphenate-character","-webkit-hyphenate-limit-after","-webkit-hyphenate-limit-before","hyphenate-limit-chars","-ms-hyphenate-limit-chars","hyphenate-limit-last","hyphenate-limit-lines","-ms-hyphenate-limit-lines","-webkit-hyphenate-limit-lines","hyphenate-limit-zone","-ms-hyphenate-limit-zone","hyphens","-moz-hyphens","-ms-hyphens","-webkit-hyphens","image-orientation","-moz-image-region","image-rendering","image-resolution","-ms-ime-align","ime-mode","inherits","initial-letter","initial-letter-align","-webkit-initial-letter","initial-letter-wrap","initial-value","inline-size","inline-sizing","input-format","-wap-input-format","-wap-input-required","input-security","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","-ms-interpolation-mode","isolation","justify-content","-webkit-justify-content","justify-items","-webkit-justify-items","justify-self","-webkit-justify-self","kerning","layout-flow","layout-grid","layout-grid-char","layout-grid-line","layout-grid-mode","layout-grid-type","left","letter-spacing","lighting-color","-webkit-line-align","-webkit-line-box-contain","line-break","-webkit-line-break","line-clamp","-webkit-line-clamp","line-gap-override","line-grid","-webkit-line-grid-snap","-webkit-line-grid","line-height","line-height-step","line-increment","line-padding","line-snap","-webkit-line-snap","-o-link","-o-link-source","list-style","list-style-image","list-style-position","list-style-type","-webkit-locale","-webkit-logical-height","-webkit-logical-width","margin","-webkit-margin-after-collapse","-webkit-margin-after","-webkit-margin-before-collapse","-webkit-margin-before","margin-block","margin-block-end","margin-block-start","margin-bottom","-webkit-margin-bottom-collapse","margin-break","-webkit-margin-collapse","-moz-margin-end","-webkit-margin-end","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","-moz-margin-start","-webkit-margin-start","margin-top","-webkit-margin-top-collapse","margin-trim","marker","marker-end","marker-knockout-left","marker-knockout-right","marker-mid","marker-offset","marker-pattern","marker-segment","marker-side","marker-start","marks","-wap-marquee-dir","-webkit-marquee-direction","-webkit-marquee-increment","-wap-marquee-loop","-webkit-marquee-repetition","-wap-marquee-speed","-webkit-marquee-speed","-wap-marquee-style","-webkit-marquee-style","-webkit-marquee","mask","-webkit-mask-attachment","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","-webkit-mask-box-image-outset","-webkit-mask-box-image-repeat","-webkit-mask-box-image-slice","-webkit-mask-box-image-source","-webkit-mask-box-image","-webkit-mask-box-image-width","mask-clip","-webkit-mask-clip","mask-composite","-webkit-mask-composite","mask-image","-webkit-mask-image","mask-mode","mask-origin","-webkit-mask-origin","mask-position","-webkit-mask-position","mask-position-x","-webkit-mask-position-x","mask-position-y","-webkit-mask-position-y","mask-repeat","-webkit-mask-repeat","-webkit-mask-repeat-x","-webkit-mask-repeat-y","mask-size","-webkit-mask-size","mask-source-type","-webkit-mask-source-type","mask-type","-webkit-mask","-webkit-match-nearest-mail-blockquote-color","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-lines","-webkit-max-logical-height","-webkit-max-logical-width","max-width","max-zoom","min-block-size","min-height","min-inline-size","min-intrinsic-sizing","-webkit-min-logical-height","-webkit-min-logical-width","min-width","min-zoom","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","nav-down","nav-index","nav-left","nav-right","nav-up","-webkit-nbsp-mode","negative","object-fit","-o-object-fit","object-position","-o-object-position","object-view-box","offset","offset-anchor","offset-block-end","offset-block-start","offset-distance","offset-inline-end","offset-inline-start","offset-path","offset-position","offset-rotate","offset-rotation","opacity","-moz-opacity","-webkit-opacity","order","-webkit-order","-moz-orient","orientation","orphans","-moz-osx-font-smoothing","outline","outline-color","-moz-outline-color","-moz-outline","outline-offset","-moz-outline-offset","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius","-moz-outline-radius-topleft","-moz-outline-radius-topright","outline-style","-moz-outline-style","outline-width","-moz-outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-clip-margin-block","overflow-clip-margin-block-end","overflow-clip-margin-block-start","overflow-clip-margin-bottom","overflow-clip-margin-inline","overflow-clip-margin-inline-end","overflow-clip-margin-inline-start","overflow-clip-margin-left","overflow-clip-margin-right","overflow-clip-margin-top","overflow-inline","-webkit-overflow-scrolling","-ms-overflow-style","overflow-wrap","overflow-x","overflow-y","overlay","override-colors","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","pad","padding","-webkit-padding-after","-webkit-padding-before","padding-block","padding-block-end","padding-block-start","padding-bottom","-moz-padding-end","-webkit-padding-end","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","-moz-padding-start","-webkit-padding-start","padding-top","page","page-break-after","page-break-before","page-break-inside","page-orientation","paint-order","pause","pause-after","pause-before","-apple-pay-button-style","-apple-pay-button-type","pen-action","perspective","-moz-perspective","-ms-perspective","perspective-origin","-moz-perspective-origin","-ms-perspective-origin","-webkit-perspective-origin","perspective-origin-x","-webkit-perspective-origin-x","perspective-origin-y","-webkit-perspective-origin-y","-webkit-perspective","pitch","pitch-range","place-content","place-items","place-self","play-during","pointer-events","position","position-animation","position-fallback","position-fallback-bounds","position-try","position-try-options","position-try-order","prefix","print-color-adjust","-webkit-print-color-adjust","property-name","quotes","r","range","-webkit-region-break-after","-webkit-region-break-before","-webkit-region-break-inside","region-fragment","-webkit-region-fragment","-webkit-region-overflow","resize","rest","rest-after","rest-before","richness","right","rotate","row-gap","-webkit-rtl-ordering","ruby-align","ruby-merge","ruby-overhang","ruby-position","-webkit-ruby-position","running","rx","ry","scale","scroll-behavior","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","-ms-scroll-rails","scroll-snap-align","scroll-snap-coordinate","-webkit-scroll-snap-coordinate","scroll-snap-destination","-webkit-scroll-snap-destination","scroll-snap-margin","scroll-snap-margin-bottom","scroll-snap-margin-left","scroll-snap-margin-right","scroll-snap-margin-top","scroll-snap-points-x","-ms-scroll-snap-points-x","-webkit-scroll-snap-points-x","scroll-snap-points-y","-ms-scroll-snap-points-y","-webkit-scroll-snap-points-y","scroll-snap-stop","scroll-snap-type","-ms-scroll-snap-type","-webkit-scroll-snap-type","scroll-snap-type-x","scroll-snap-type-y","-ms-scroll-snap-x","-ms-scroll-snap-y","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","-ms-scroll-translation","scrollbar-arrow-color","scrollbar-base-color","scrollbar-color","scrollbar-dark-shadow-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-gutter","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scrollbar-width","scrollbar3d-light-color","scrollbar3dlight-color","shape-image-threshold","-webkit-shape-image-threshold","shape-inside","-webkit-shape-inside","shape-margin","-webkit-shape-margin","shape-outside","-webkit-shape-outside","-webkit-shape-padding","shape-rendering","size","size-adjust","snap-height","solid-color","solid-opacity","spatial-navigation-action","spatial-navigation-contain","spatial-navigation-function","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","src","-moz-stack-sizing","stop-color","stop-opacity","stress","string-set","stroke","stroke-align","stroke-alignment","stroke-break","stroke-color","stroke-dash-corner","stroke-dash-justify","stroke-dashadjust","stroke-dasharray","stroke-dashcorner","stroke-dashoffset","stroke-image","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-origin","stroke-position","stroke-repeat","stroke-size","stroke-width","suffix","supported-color-schemes","-webkit-svg-shadow","symbols","syntax","system","tab-size","-moz-tab-size","-o-tab-size","-o-table-baseline","table-layout","-webkit-tap-highlight-color","text-align","text-align-all","text-align-last","-moz-text-align-last","text-anchor","text-autospace","-moz-text-blink","text-box-edge","text-box-trim","-ms-text-combine-horizontal","text-combine-upright","-webkit-text-combine","text-decoration","text-decoration-blink","text-decoration-color","-moz-text-decoration-color","-webkit-text-decoration-color","text-decoration-line","-moz-text-decoration-line","text-decoration-line-through","-webkit-text-decoration-line","text-decoration-none","text-decoration-overline","text-decoration-skip","text-decoration-skip-box","text-decoration-skip-ink","text-decoration-skip-inset","text-decoration-skip-self","text-decoration-skip-spaces","-webkit-text-decoration-skip","text-decoration-style","-moz-text-decoration-style","-webkit-text-decoration-style","text-decoration-thickness","text-decoration-trim","text-decoration-underline","-webkit-text-decoration","-webkit-text-decorations-in-effect","text-emphasis","text-emphasis-color","-webkit-text-emphasis-color","text-emphasis-position","-webkit-text-emphasis-position","text-emphasis-skip","text-emphasis-style","-webkit-text-emphasis-style","-webkit-text-emphasis","-webkit-text-fill-color","text-group-align","text-indent","text-justify","text-justify-trim","text-kashida","text-kashida-space","text-line-through","text-line-through-color","text-line-through-mode","text-line-through-style","text-line-through-width","text-orientation","-webkit-text-orientation","text-overflow","text-overline","text-overline-color","text-overline-mode","text-overline-style","text-overline-width","text-rendering","-webkit-text-security","text-shadow","text-size-adjust","-moz-text-size-adjust","-ms-text-size-adjust","-webkit-text-size-adjust","text-spacing","text-spacing-trim","-webkit-text-stroke-color","-webkit-text-stroke","-webkit-text-stroke-width","text-transform","text-underline","text-underline-color","text-underline-mode","text-underline-offset","text-underline-position","-webkit-text-underline-position","text-underline-style","text-underline-width","text-wrap","text-wrap-mode","text-wrap-style","-webkit-text-zoom","timeline-scope","top","touch-action","touch-action-delay","-ms-touch-action","-webkit-touch-callout","-ms-touch-select","-apple-trailing-word","transform","transform-box","-moz-transform","-ms-transform","-o-transform","transform-origin","-moz-transform-origin","-ms-transform-origin","-o-transform-origin","-webkit-transform-origin","transform-origin-x","-webkit-transform-origin-x","transform-origin-y","-webkit-transform-origin-y","transform-origin-z","-webkit-transform-origin-z","transform-style","-moz-transform-style","-ms-transform-style","-webkit-transform-style","-webkit-transform","transition","transition-behavior","transition-delay","-moz-transition-delay","-ms-transition-delay","-o-transition-delay","-webkit-transition-delay","transition-duration","-moz-transition-duration","-ms-transition-duration","-o-transition-duration","-webkit-transition-duration","-moz-transition","-ms-transition","-o-transition","transition-property","-moz-transition-property","-ms-transition-property","-o-transition-property","-webkit-transition-property","transition-timing-function","-moz-transition-timing-function","-ms-transition-timing-function","-o-transition-timing-function","-webkit-transition-timing-function","-webkit-transition","translate","uc-alt-skin","uc-skin","unicode-bidi","unicode-range","-webkit-user-drag","-moz-user-focus","-moz-user-input","-moz-user-modify","-webkit-user-modify","user-select","-moz-user-select","-ms-user-select","-webkit-user-select","user-zoom","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","viewport-fill","viewport-fill-opacity","viewport-fit","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","white-space-collapse","white-space-trim","-webkit-widget-region","widows","width","will-change","-moz-window-dragging","-moz-window-shadow","word-break","word-space-transform","word-spacing","word-wrap","wrap-after","wrap-before","wrap-flow","-ms-wrap-flow","-webkit-wrap-flow","wrap-inside","-ms-wrap-margin","-webkit-wrap-margin","-webkit-wrap-padding","-webkit-wrap-shape-inside","-webkit-wrap-shape-outside","wrap-through","-ms-wrap-through","-webkit-wrap-through","-webkit-wrap","writing-mode","-webkit-writing-mode","x","y","z-index","zoom"]}')}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{ActiveSelectors:()=>u,AtRules:()=>be,BackgroundControl:()=>zo,BoxShadowControl:()=>$o,BuildAtRule:()=>ge,BuildSelector:()=>ye,ButtonIconControl:()=>sn,Control:()=>$r,CustomSelect:()=>lr,DimensionsControl:()=>jn,EffectControl:()=>Zr,EffectEdit:()=>Kr,EffectList:()=>Xr,FilterControl:()=>sa,ImageControl:()=>Po,Selector:()=>nn,StylesBuilder:()=>Ba,TransformControl:()=>Sa,TransitionControl:()=>Xo,UnitControl:()=>xn,atRuleActions:()=>Ja,atRuleReducer:()=>es,atRuleSelectors:()=>Xa,cleanStylesObject:()=>ae,currentStyleActions:()=>Za,currentStyleReducer:()=>Ya,currentStyleSelectors:()=>Ka,defaultAtRules:()=>fe,deleteStylesObjectKey:()=>ce,filterActions:()=>rs,filterReducer:()=>os,filterSelectors:()=>ns,getCss:()=>oe,getElementStyles:()=>he,getStylesObject:()=>ue,nestedRuleActions:()=>Wa,nestedRuleReducer:()=>qa,nestedRuleSelectors:()=>$a,styleActions:()=>ja,styleReducer:()=>Ua,styleSelectors:()=>Va,updateStylesObjectKey:()=>le,usePanelSections:()=>Lr,useSelectedBlockElement:()=>Ar,useSelectedBlockElements:()=>Mr});const e=window.React;var t=r.n(e);const o=window.wp.components,a=window.wp.element,s=window.wp.i18n,i=window.wp.primitives,l=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})),c={component:"_beQLZREZ1EkGHI1NaNk",label:"jMpz1TCrgSNMZo4SM7LY",list:"B0VorIO4MUddZuXHz0BA",options:"cXqPS5tF2tvT_mdiBl5x",buildSelector:"ilPwrLxdSTvTQQXvvvC7",item:"sIHFoOk4wT0hgFhdVFYk",dot:"TrA5H448nQRtf_p28KId",selector:"cYJLfI1DIDW4SuAFxsqG",build:"cnsxGVqMnPl1apKeuiup",errors:"KdgRkc3rpk6NtCLYDnNp",selectors:"YNMQ6wONU_vudyJ05NDy",actions:"MEcBZjNjsEeGH_BcIM5r",name:"end0waUJZgfs2Cg9LNbP",notice:"XI7PBzBf6xATaHCgZ3_g",button:"kdfxUCrijWG1oGcXYKL7",more:"io6Dcs9lUe3YHzZf5WBl",shortcuts:"KCAL3DqzDqGghFCeFVof",icon:"L_uKqLTrfKtCBl5z3T9k",delete:"clD1mjOXD5QSIjgbS37a",atRules:"EolSL6L_PG4VOw2hXvcU",preview:"O_etAvKgI1XzHx2SlLU3",filters:"Hail9xhcDPj9DlVE0Pda",filtersPopover:"dhmW1Y4sYYCEpL5SW6NI",filtersDropdown:"NtwgV2EUsG2omMzSRI0K",search:"UOvXMpPNlYfOKDhTmmew",atRuleFilters:"gOTdkoKuZf8labfeSFi4"};function u({activeSelectors:t,nestedRule:r,onNestedRuleChange:n,setShowSelectorOptions:i,setShowBuildSelector:u,setEditSelector:d,onDeleteStyle:p,allStyles:h,selectorShortcuts:m,currentSelector:f,allowCustomAdvancedSelector:g}){const[b,v]=(0,a.useState)(!1);function y({selector:t}){return t&&!h[t]?null:t||Object.values(h).some((e=>"object"!=typeof e||null===e))?(0,e.createElement)("span",{title:(0,s.__)("Custom styles exist for this selector","generateblocks-pro"),className:c.dot}):null}function w({currentSelectorName:t}){return(0,e.createElement)("span",{style:{fontFamily:"monospace"}},t)}return(0,e.createElement)("div",{className:c.options},!!t.length&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.BaseControl,{label:(0,s.__)("Selectors","generateblocks-pro"),id:""},(0,e.createElement)("div",{className:c.list},(0,e.createElement)("span",{className:c.item},(0,e.createElement)(o.Button,{size:"small",onClick:()=>{n(""),i(!1)},isPressed:!r,title:f},(0,s.__)("Main Selector","generateblocks-pro"),(0,e.createElement)(y,{selector:""}))),t.map((t=>{return(0,e.createElement)("span",{key:t,className:c.item},(0,e.createElement)(o.Button,{size:"small",onClick:()=>{n(t===r?"":t),i(!1)},isPressed:t===r,title:f+(k=t,k?k.startsWith("&")?k.replace("&",""):String.fromCharCode(160)+k:"")},function(e,t){for(const r in t){const n=t[r].items.find((t=>t.value===e));if(n)return n.label}return e.replace("&","")}(t,m),(0,e.createElement)(y,{selector:t})),!!g&&(0,e.createElement)(o.DropdownMenu,{icon:l,label:(0,s.__)("Options","generateblocks-pro"),toggleProps:{isPressed:t===r}},(({onClose:i})=>(0,e.createElement)(o.MenuGroup,null,b?(0,e.createElement)("div",{className:c.delete},(0,e.createElement)("p",null,(0,a.createInterpolateElement)( // Translators: the at-rule for deletion. // Translators: the at-rule for deletion. (0,s.__)("This will delete the selector and its styles. This operation cannot be undone.","generateblocks-pro"),{SelectorName:(0,e.createElement)(w,{currentSelectorName:t})})),(0,e.createElement)("div",{className:c.actions},(0,e.createElement)(o.Button,{variant:"secondary",size:"compact",onClick:()=>{v(!1),i()}},(0,s.__)("Cancel","generateblocks-pro")),(0,e.createElement)(o.Button,{isDestructive:!0,variant:"secondary",size:"compact",onClick:()=>{p(t),r===t&&n(""),v(!1),i()}},(0,s.__)("Confirm","generateblocks-pro")))):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuItem,{onClick:()=>{u(!0),d(t),i()}},(0,s.__)("Edit selector","generateblocks-pro")),(0,e.createElement)(o.MenuItem,{onClick:()=>{v(!0)},disabled:!h[t],title:h[t]?"":(0,s.__)("No styles to be deleted.","generateblocks-pro")},(0,s.__)("Delete selector","generateblocks-pro")))))));var k}))))))}const d=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,e.createElement)(i.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})),p=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"}));function h(e,t){var r;return null!==(r=t.find((t=>t.value===e))?.label)&&void 0!==r?r:e}function m({nestedRule:t,onAtRuleChange:r,onNestedRuleChange:n,atRule:i,setShowAtRuleOptions:u,setShowBuildAtRule:d,setEditAtRule:p,onDeleteStyle:m,allStyles:f,currentSelector:g,activeAtRules:b,defaultAtRules:v,allowCustomAtRule:y}){const[w,k]=(0,a.useState)(!1);function E({selector:t="",atRuleValue:r=" "}){if(r){var n,o;const e=t?null!==(n=f?.[t]?.[r])&&void 0!==n?n:{}:null!==(o=f?.[r])&&void 0!==o?o:{};if(!Object.keys(e).length)return null}return r||Object.values(f).some((e=>"object"!=typeof e||null===e))?(0,e.createElement)("span",{title:(0,s.__)("Custom styles exist for this at rule","generateblocks-pro"),className:c.dot}):null}const S=(0,a.useCallback)((e=>t?f?.[t]?.[e]:f?.[e]),[f]);function x({currentAtRule:t}){return(0,e.createElement)("span",{style:{fontFamily:"monospace"}},t)}return(0,e.createElement)("div",{className:c.options},!!b.length&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.BaseControl,{label:(0,s.__)("At-Rules","generateblocks-pro"),id:""},(0,e.createElement)("div",{className:c.list},(0,e.createElement)("span",{className:c.item},(0,e.createElement)(o.Button,{size:"small",onClick:()=>{r(""),u(!1)},isPressed:!i,title:g},(0,s.__)("All devices","generateblocks-pro"),(0,e.createElement)(E,{selector:t,atRuleValue:""}))),b.map((f=>(0,e.createElement)("span",{key:t+f,className:c.item},(0,e.createElement)(o.Button,{size:"small",onClick:()=>{const e=f===i?"":f;n(t),r(e),u(!1)},isPressed:f===i,title:f!==h(f,v)?f:""},h(f,v),(0,e.createElement)(E,{selector:t,atRuleValue:f})),!!y&&(0,e.createElement)(o.DropdownMenu,{icon:l,label:(0,s.__)("Options","generateblocks-pro"),toggleProps:{isPressed:f===i}},(({onClose:n})=>(0,e.createElement)(o.MenuGroup,null,w?(0,e.createElement)("div",{className:c.delete},(0,e.createElement)("p",null,(0,a.createInterpolateElement)( // Translators: the at-rule for deletion. // Translators: the at-rule for deletion. -(0,s.__)("This will delete the at-rule and its styles. This operation cannot be undone.","generateblocks-pro"),{AtRuleName:(0,e.createElement)(x,{currentAtRule:f})})),(0,e.createElement)("div",{className:c.actions},(0,e.createElement)(o.Button,{variant:"secondary",size:"compact",onClick:()=>{k(!1),n()}},(0,s.__)("Cancel","generateblocks-pro")),(0,e.createElement)(o.Button,{isDestructive:!0,variant:"secondary",size:"compact",onClick:()=>{m(f,t),i===f&&r(""),k(!1),n()}},(0,s.__)("Confirm","generateblocks-pro")))):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuItem,{onClick:()=>{d(!0),p(f),n()}},(0,s.__)("Edit at-rule","generateblocks-pro")),(0,e.createElement)(o.MenuItem,{onClick:()=>{k(!0)},disabled:!S(f),title:S(f)?"":(0,s.__)("No styles to be deleted.","generateblocks-pro")},(0,s.__)("Delete at-rule","generateblocks-pro")))))))))))))}const f=window.wp.hooks,g=window.wp.blockEditor;var b=r(2895);const v=b;b.stringify,b.fromJSON,b.plugin,b.parse,b.list,b.document,b.comment,b.atRule,b.rule,b.decl,b.root,b.CssSyntaxError,b.Declaration,b.Container,b.Processor,b.Document,b.Comment,b.Warning,b.AtRule,b.Result,b.Input,b.Rule,b.Root,b.Node;var y=r(3268),w=r.n(y),k=r(691),E=r.n(k);function S(e){let t="",r="",n="";return e.forEach((e=>{const{prop:o,value:a}=e;o.includes("width")?t=a:o.includes("style")?r=a:o.includes("color")&&(n=a)})),t&&r&&n?`${t} ${r} ${n}`:""}function x(e){let t="",r="",n="",o="";return e.forEach((e=>{const{prop:a,value:s}=e;a.includes("top")?t=s:a.includes("right")?r=s:a.includes("bottom")?n=s:a.includes("left")&&(o=s)})),[t,r,n,o].some((e=>""===e))?"":t===n&&r===o?t===r?t:`${t} ${r}`:`${t} ${r} ${n} ${o}`}function C(){return{postcssPlugin:"gb-merge-longhand",OnceExit(e){e.walkRules((e=>{const t=e.nodes.filter((e=>e.prop&&e.prop.startsWith("border-")&&!e.prop.includes("radius"))),r=e.nodes.filter((e=>e.prop&&e.prop.startsWith("border-")&&e.prop.includes("radius"))),n=e.nodes.filter((e=>e.prop&&e.prop.startsWith("margin-"))),o=e.nodes.filter((e=>e.prop&&e.prop.startsWith("padding-")));if(t){const r=[],n=t.filter((e=>e.prop.startsWith("border-top"))),o=t.filter((e=>e.prop.startsWith("border-right"))),a=t.filter((e=>e.prop.startsWith("border-bottom"))),s=t.filter((e=>e.prop.startsWith("border-left"))),i={top:!1,left:!1,bottom:!1,right:!1},l=S(n);l&&(r.push(S(n)),i.top=!0);const c=S(o);c&&(r.push(S(o)),i.right=!0);const u=S(a);u&&(r.push(S(a)),i.bottom=!0);const d=S(s);d&&(r.push(S(s)),i.left=!0),4===r.length&&r.every((e=>e===r[0]))?(e.append({prop:"border",value:r[0]}),t.forEach((e=>e.remove()))):(i.top&&(e.append({prop:"border-top",value:l}),n.forEach((e=>e.remove()))),i.right&&(e.append({prop:"border-right",value:c}),o.forEach((e=>e.remove()))),i.bottom&&(e.append({prop:"border-bottom",value:u}),a.forEach((e=>e.remove()))),i.left&&(e.append({prop:"border-left",value:d}),s.forEach((e=>e.remove()))))}if(4===r.length){const t=function(e){let t="",r="",n="",o="";return e.forEach((e=>{const{prop:a,value:s}=e;a.includes("top-left")?t=s:a.includes("top-right")?r=s:a.includes("bottom-right")?n=s:a.includes("bottom-left")&&(o=s)})),t&&r&&n&&o?t===n&&r===o?t===r?t:`${t} ${r}`:`${t} ${r} ${n} ${o}`:""}(r);e.append({prop:"border-radius",value:t}),r.forEach((e=>e.remove()))}if(4===n.length){const t=x(n);e.append({prop:"margin",value:t}),n.forEach((e=>e.remove()))}if(4===o.length){const t=x(o);e.append({prop:"padding",value:t}),o.forEach((e=>e.remove()))}})),e.rawCache={beforeDecl:"",beforeRule:"",colon:":",indent:"",after:"",semicolon:!0}}}}const _=e=>/^([-]?\d|[-]?\.)/.test(e);function O(e,t=""){return e?/^https?:\/\//i.test(e)?e:new URL(e,t||location.origin).href:""}function T(e=[]){return e.reduce(((e,t)=>{if(t.hidden)return e;const{type:r,backgroundAttachment:n="",backgroundImage:o="",backgroundSize:a="",backgroundRepeat:s="",backgroundPosition:i=""}=t;if(!o)return e;let l="";return o&&(l+=`${o.replace("'","").replace('"',"")}`),"image"===r&&(i&&(l+=` ${i}`),a&&(i||(l+="0% 0% "),l+=` / ${a}`),s&&(l+=` ${s}`),n&&(l+=` ${n}`)),l.length?e.length>0?`${e}, ${l}`:`${l}`:e}),"").replace(/,$/,"").trim()}function I(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}const M=/(?:#(?:[0-9a-fA-F]{3}){1,2}|(?:rgb|rgba|hsl|hsla)\(\s*\d+%?\s*(?:,\s*\d+%?\s*){2,3}(?:,\s*(?:0?\.\d+|1|100%))?\))/g,P=/(linear-gradient|radial-gradient)\([^)]*\)(?:\s*\d+%?,\s*(?:rgba?\([^)]*\)|#[0-9a-fA-F]+)\s*\d*%?)+\s*\)|url\([^)]*\)[^,)]*/g;function A(e=""){const t=O("/wp-content/plugins/generateblocks-pro/dist/assets/placeholder-lg.min.jpg");return""===e?{type:"image",media:{selectedSize:"full",sizes:{}},backgroundAttachment:"",backgroundImage:`url(${t})`,backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundBlendMode:"normal"}:{type:"image",media:{id:0},backgroundAttachment:"",backgroundImage:"",backgroundPosition:"",backgroundSize:"",backgroundRepeat:"",backgroundBlendMode:""}}function R(){const e="rgba(0, 0, 0, .25)",t=`linear-gradient(to right, ${e} 0%, ${e} 100%)`;return{...A(),type:"overlay",backgroundBlendMode:"normal",backgroundImage:t,overlayColor:e}}function L(){const e=["background-attachment","background-image","background-size","background-repeat","background-position"];function t(t){var r;const n=t.nodes.filter((e=>e.prop&&e.prop.startsWith("background-")));if(0===n.length)return;const o=null!==(r=n.find((e=>"background-image"===e.prop)))&&void 0!==r?r:{value:""},a=J(o.value);if(a&&a.length>1)try{var s,i,l,c;const r=null!==(s=n.find((e=>"background-attachment"===e.prop)))&&void 0!==s?s:{value:""},a=null!==(i=n.find((e=>"background-size"===e.prop)))&&void 0!==i?i:{value:""},u=null!==(l=n.find((e=>"background-repeat"===e.prop)))&&void 0!==l?l:{value:""},d=null!==(c=n.find((e=>"background-position"===e.prop)))&&void 0!==c?c:{value:""},p=X({backgroundAttachment:r.value,backgroundSize:a.value,backgroundImage:o.value,backgroundRepeat:u.value,backgroundPosition:d.value});n.forEach((t=>{const r=t.prop;e.includes(r)&&t.remove()})),t.append(v.decl({prop:"background",value:T(p)}))}catch(e){console.error(e.messsage)}}return{postcssPlugin:"combine-background-properties",Once(e){const r=e.nodes.filter((e=>"rule"===e.type)),n=e.nodes.filter((e=>"atrule"===e.type));r.forEach(t),n.forEach((e=>{e.nodes.forEach(t)}))}}}const z=/(!?\(\s*min(-device)?-width)(.|\n)+\(\s*max(-device)?-width|\(\s*width\s*>(=)?(.|\n)+\(\s*width\s*<(=)?|(!?\(.*<(=)?\s*width\s*<(=)?)/i,D=/(!?\(\s*max(-device)?-width)(.|\n)+\(\s*min(-device)?-width|\(\s*width\s*<(=)?(.|\n)+\(\s*width\s*>(=)?|(!?\(.*>(=)?\s*width\s*>(=)?)/i,F=G(z,D,/\(\s*min(-device)?-width|\(\s*width\s*>(=)?/i),B=G(D,z,/\(\s*max(-device)?-width|\(\s*width\s*<(=)?/i),N=/(!?\(\s*min(-device)?-height)(.|\n)+\(\s*max(-device)?-height|\(\s*height\s*>(=)?(.|\n)+\(\s*height\s*<(=)?|(!?\(.*<(=)?\s*height\s*<(=)?)/i,j=/(!?\(\s*max(-device)?-height)(.|\n)+\(\s*min(-device)?-height|\(\s*height\s*<(=)?(.|\n)+\(\s*height\s*>(=)?|(!?\(.*>(=)?\s*height\s*>(=)?)/i,V=G(N,j,/\(\s*min(-device)?-height|\(\s*height\s*>(=)?/i),U=G(j,N,/\(\s*max(-device)?-height|\(\s*height\s*<(=)?/i),W=/print/i,H=/^print$/i,$=Number.MAX_VALUE;function q(e){let t=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(e);if(null===t&&(F(e)||V(e))&&(t=/(\d)/.exec(e)),"0"===t)return 0;if(null===t)return $;let r=t[1];switch(t[2]){case"ch":r=8.8984375*parseFloat(r);break;case"em":case"rem":r=16*parseFloat(r);break;case"ex":r=8.296875*parseFloat(r);break;case"px":r=parseFloat(r)}return+r}function G(e,t,r){return function(n){return!!e.test(n)||!t.test(n)&&r.test(n)}}const Z=!0;function K(e,t){const r=function(e,t){const r=W.test(e),n=H.test(e),o=W.test(t),a=H.test(t);return r&&o?!n&&a?1:n&&!a?-1:e.localeCompare(t):r?1:o?-1:null}(e,t);if(null!==r)return r;const n=F(e)||V(e),o=B(e)||U(e),a=F(t)||V(t),s=B(t)||U(t);if(Z&&(!n&&!o||!a&&!s))return n||o||a||s?a||s?-1:1:e.localeCompare(t);if(n&&s)return-1;if(o&&a)return 1;const i=q(e),l=q(t);return i===$&&l===$?e.localeCompare(t):i===$?1:l===$?-1:i>l?o?-1:1:i{if(e.onlyTopLevel&&"root"===t.parent.type){const e=t.params;n[e]||(n[e]=new r({name:t.name,params:t.params,source:t.source})),t.nodes.forEach((t=>{n[e].append(t.clone())})),t.remove()}if(!e.onlyTopLevel){const e=t.params;n[e]||(n[e]=new r({name:t.name,params:t.params,source:t.source})),t.nodes.forEach((t=>{n[e].append(t.clone())})),t.remove()}})),n&&Object.keys(n).sort(K).forEach((e=>{t.append(n[e])}))}}}const Q={a:"a:where(:not(.components-external-link))",button:"button:where(:not(.components-button))"};function J(e){const t=[];let r=0,n=0;for(let o=0;oe===n[0]))&&(t="overlay",r=n[0])}m.push({backgroundAttachment:null!==(f=i[h])&&void 0!==f?f:"",backgroundSize:null!==(g=l[h])&&void 0!==g?g:"",backgroundRepeat:null!==(b=c[h])&&void 0!==b?b:"",backgroundPosition:null!==(v=u[h])&&void 0!==v?v:"",backgroundImage:d[h],backgroundBlendMode:null!==(y=p[h])&&void 0!==y?y:"",type:t,overlayColor:r,media:{id:0}}),h++}return m}function ee(e){const t={atRules:{},nestedRules:{},propertyRules:{}};for(const[n,o]of Object.entries(e))if(n.startsWith("@")){var r;const e=null!==(r=t?.atRules?.[n])&&void 0!==r?r:{};t.atRules[n]={...e,...o}}else"object"==typeof o?Object.entries(o).forEach((([e,r])=>{if(e.startsWith("@")){var o;const a=null!==(o=t?.atRules?.[e])&&void 0!==o?o:{};t.atRules[e]={...a,[n]:r}}else{var a;const o=null!==(a=t?.nestedRules?.[n])&&void 0!==a?a:{};t.nestedRules[n]={...o,[e]:r}}})):t.propertyRules[n]=o;function n(e){return Object.keys(e).sort().reduce(((t,r)=>(t[r]=e[r],t)),{})}return{atRules:n(t.atRules),nestedRules:n(t.nestedRules),propertyRules:n(t.propertyRules)}}function te(e){return e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}function re(e,t,r){e+=`${t} {`;for(let[t,n]of Object.entries(r))"settings"!==t&&(t=te(t),e+=`${t}:${n.toString()};`);return e+"}"}function ne(e,t=""){if(!t)return e;const r=e.split(",").map((e=>e.trim())),n=[];return r.forEach((e=>{n.push(t.startsWith("&")?e+t.replace("&",""):e+" "+t)})),n.join(",")}async function oe(e,t,r="frontend"){var n;const o=(0,f.applyFilters)("generateStylesBuilder.rawCss",function(e,t){if(!e)return"";let r="";if((t=ee(t)).propertyRules&&Object.keys(t.propertyRules).length>0&&(r=re(r,ne(e),t.propertyRules)),t.nestedRules&&Object.keys(t.nestedRules).length>0)for(const n in t.nestedRules)r=re(r,ne(e,n),t.nestedRules[n]);if(t.atRules&&Object.keys(t.atRules).length>0)for(const n in t.atRules){const o=ee(t.atRules[n]);if(r+=`${n} {`,o.propertyRules&&Object.keys(o.propertyRules).length>0&&(r=re(r,e,o.propertyRules)),o.nestedRules&&Object.keys(o.nestedRules).length>0)for(const t in o.nestedRules)r=re(r,ne(e,t),o.nestedRules[t]);r+="}"}return r}(e,t)),a=[{css:o}],s="editor"===r?(0,g.transformStyles)(a,".editor-styles-wrapper")?.[0]:o;let i=[w()(),C(),L(),Y(),E()()];"editor"===r&&(i=[w()(),C(),L(),Y(),{postcssPlugin:"gb-editor-transforms",Rule(e){let t=e.selector;Object.keys(Q).forEach((e=>{const r=new RegExp(`(^|\\s|>|\\+|~)(${e})(\\s|$|>|\\+|~)(?!:where)`,"g");t=t.replace(r,`$1${Q[e]}$3`)})),e.selector=t}}]);const l=await v(i).process(s,{from:void 0}).catch((e=>{console.error(e.message)}));return null!==(n=l?.css)&&void 0!==n?n:s}function ae(e){return"object"!=typeof e?{}:Object.entries(e).reduce(((e,[t,r])=>{if("object"==typeof r){const n=ae(r);Object.keys(n).length>0&&(e[t]=n)}else if(""!==r&&null!=r){const n=r.toString().replace(";","").replace("{","").replace("}","");e[t]=n}return e}),{})}class se{constructor({value:e,settings:t=[]}){this.value=e,this.settings=t}toString(){return this.value}}function ie(e,t,r,n,o){let a={};const s="object"==typeof r&&null!==r?new se(r):r;if(o){var i;const r=null!==(i=e?.[o])&&void 0!==i?i:{};if(n){var l;const i=null!==(l=e?.[o]?.[n])&&void 0!==l?l:{};a={...e,[o]:{...r,[n]:{...i,[t]:s}}}}else a={...e,[o]:{...r,[t]:s}}}else if(n){var c;const r=null!==(c=e?.[n])&&void 0!==c?c:{};a={...e,[n]:{...r,[t]:s}}}else a={...e,[t]:s};return ae(a)}function le(e,t,r,n=""){const o={},a=n&&t.startsWith("@"),s=a?e[n]:e;return Object.entries(s).forEach((([e,n])=>{e===t?o[r]=n:o[e]=n})),a?{...e,[n]:o}:o}function ce(e,t,r=""){const n={},o=r&&t.startsWith("@"),a=o?e[r]:e;return Object.entries(a).forEach((([e,r])=>{e!==t&&(n[e]=r)})),o?{...e,[r]:n}:n}function ue(e,t="",r=""){return"object"!=typeof e||Array.isArray(e)?{}:r?t?null!==(o=e?.[r]?.[t])&&void 0!==o?o:{}:null!==(n=e?.[r])&&void 0!==n?n:{}:t?null!==(a=e?.[t])&&void 0!==a?a:{}:null!=e?e:{};var n,o,a}function de(e){return"CSSMediaRule"===e.constructor.name?{name:"media",type:CSSMediaRule}:"CSSSupportsRule"===e.constructor.name?{name:"supports",type:CSSSupportsRule}:"CSSContainerRule"===e.constructor.name?{name:"container",type:window.CSSContainerRule}:{name:"unknown",type:Error}}function pe({element:e,properties:t,sources:r=["inline","tag"],computedStyles:n=null,deviceAttributes:o={},atRule:a=""}){if(!t||0===t.length)throw new Error("properties must be specified");const s=document.querySelector('iframe[name="editor-canvas"]')?.contentDocument||document,i=null!=n?n:getComputedStyle(e),l={},c=r.includes("tag")?s.querySelectorAll("style"):[],u=r.includes("stylesheet")?s.styleSheets:[],d=["width","height","minWidth","minHeight","maxWidth","maxHeight"],p=["fontFamily","fontSize","fontWeight","letterSpacing","lineHeight","textAlign","textTransform"],h=e=>null!=e&&""!==e;for(const y of t){var m;const w=y.startsWith("padding")||y.startsWith("margin"),k=d.includes(y),E=y.startsWith("border");if(p.includes(y)){var f;const _=null!==(f=o?.typography?.[y])&&void 0!==f?f:"";if(h(_)){l[y]={source:"local",selector:"",value:_};continue}}else if(E){var g;const O=null!==(g=o?.borders?.[y])&&void 0!==g?g:"";if(h(O)){l[y]={source:"local",selector:"",value:O};continue}}else if(w){var b;const T=null!==(b=o?.spacing?.[y])&&void 0!==b?b:"";if(h(T)){l[y]={source:"local",selector:"",value:T};continue}}else if(k){var v;const I=null!==(v=o?.sizing?.[y])&&void 0!==v?v:"";if(h(I)){l[y]={source:"local",selector:"",value:I};continue}}else if(h(o?.[y])){l[y]={source:"local",selector:"",value:o[y]};continue}const S=null!==(m=i[y])&&void 0!==m?m:null;if(null===S){l[y]={source:null,selector:"",value:S};continue}const x=[".editor-styles-wrapper .gb-container, .editor-styles-wrapper .gb-headline, .editor-styles-wrapper .gb-button"];function C(t,r,o=""){for(const a of t){const t=!!a?.cssRules&&a.cssRules.length>0,s=!!a?.conditionText;if("CSSStyleRule"===a.constructor.name){let t=y in a.style?a.style[y]:null;if(t?.startsWith("var(")&&(e.style[y]=t,t=i[y]||t,e.style[y]=""),!h(t))continue;if(x.includes(a.selectorText))continue;if(e.matches(a.selectorText)){let s=!1;if(w||k||E||["fontSize","lineHeight","letterSpacing","transform"].includes(y)){e.style[y]=t;const r=n?.[y];e.style[y]="",r===S&&(s=!0)}else t===S&&(s=!0);if(s){l[y]={source:r,selector:a.selectorText,value:S,valueRaw:t,atRule:o};break}}}else if(t&&s){const e=de(a);if("media"!==e.name)return;const t=me(`@${e.name} ${a.conditionText}`);return C(a.cssRules,r,t)}}}if(r.includes("inline")&&!a){const M=e.style[y];if(M&&null!==S){l[y]={source:"inline",selector:"",value:S,valueRaw:M};continue}}if(r.includes("tag")){for(const P of c)try{C(P.sheet.cssRules,"tag")}catch(A){console.error(A.message)}if(y in l)continue}if(r.includes("stylesheet")){for(const R of u)try{C(R.rules||R.cssRules,"stylesheet")}catch(L){console.error("Error accessing stylesheet:",L.message)}if(y in l)continue}l[y]={source:"other",selector:"",value:S}}return l}function he({elements:e,properties:t,computedStyles:r=null,deviceAttributes:n={},atRule:o="",sources:a=["inline","tag"]}){const s=!Array.isArray(t),i=s?[t]:t;if(Array.isArray(e))return e.map((e=>{const l=pe({element:e,properties:i,computedStyles:r,deviceAttributes:n,atRule:o,sources:a});return s?l[t]:l}));const l=pe({element:e,properties:i,computedStyles:r,deviceAttributes:n,atRule:o,sources:a});return s?l[t]:l}function me(e){let t=e;return t=t.replace("@media(","@media ("),t=t.replace("@supports(","@supports ("),t=t.replace("@container(","@container ("),t.includes(":")&&(t=t.replace(/\([^()]*\)/g,(e=>e.replace(/\s+/g,"")))),t}const fe=(0,f.applyFilters)("generateblocks.styles.defaultAtRules",[{label:(0,s.__)("All devices","generateblocks-pro"),value:"",icon:()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M57.128 31.707h5.556v5.556h-5.556zM75.489 50.836h3.703v3.704H75.49z"}),(0,e.createElement)("path",{d:"M93.396 15.181c1.926.074 3.598 1.704 3.673 3.676.263 20.76 0 41.528 0 62.287-.025 1.972-1.691 3.695-3.673 3.769-28.896.37-57.797.009-86.695.009-1.966-.028-3.694-1.695-3.769-3.676-.263-20.76-.001-41.528-.001-62.287.025-1.972 1.692-3.695 3.673-3.778 28.928-.361 57.864-.361 86.792 0Zm-4.772 65.111h3.816V19.811H7.56v60.481h31.664c-.21-17.342.006-34.676.006-52.009.027-2.13 1.792-4.037 4.014-4.12 11.109-.14 22.222-.14 33.331 0 2.113.083 3.93 1.86 4.012 4.009.07 5.565.096 11.12.1 16.685 1.907.01 3.817.028 5.725.046 1.147.047 2.139 1.028 2.183 2.186.14 11.064.15 22.13.03 33.203Zm-3.886 0V48.764H69.946v31.528h14.792Zm-7.962-35.444c-.023-5.51-.045-11.028-.045-16.537 0-.167-.107-.278-.245-.287-11.03-.417-22.075 0-33.112 0-.163 0-.28.11-.285.25-.225 17.333-.005 34.676-.001 52.018H66.06c-.12-11.074-.11-22.139.029-33.203.044-1.149 1.028-2.14 2.183-2.186 2.835-.037 5.67-.055 8.504-.055Z"})),show:!0,id:"all"},{label:(0,s.__)("Desktop","generateblocks-pro"),value:"@media (min-width:1025px)",icon:()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 417 417",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M389.233 63.228c7.989.304 14.98 7.083 15.229 15.28 1.082 86.514 0 173.028 0 259.542-.083 8.196-6.99 15.38-15.23 15.684-120.42 1.518-240.84 0-361.26 0-8.155-.101-15.395-7.083-15.728-15.28-1.082-86.513 0-173.028 0-259.542.083-8.196 7.074-15.38 15.312-15.684a13466.862 13466.862 0 0 1 361.677 0ZM31.55 82.454v251.953h353.687V82.454H31.551Z"})),show:!1,id:"largeWidth"},{label:(0,s.__)("Desktop & tablet","generateblocks-pro"),value:"@media (min-width:768px)",icon:()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 417 417",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M389.145 63.263c8.025.309 15.008 7.099 15.317 15.316 1.08 86.497 0 173.033 0 259.53-.116 8.217-7.06 15.393-15.317 15.702-120.409 1.543-240.818.038-361.227.038-8.179-.115-15.393-7.06-15.702-15.316-1.08-86.497 0-173.032 0-259.53.077-8.217 7.06-15.393 15.317-15.74a14485.169 14485.169 0 0 1 361.612 0Zm-3.973 19.29H31.506v252.006h145.487c-.926-72.762 0-145.524 0-218.287.115-8.873 7.484-16.82 16.705-17.168 46.296-.579 92.592-.579 138.889 0 8.796.347 16.396 7.755 16.744 16.705.926 72.917 0 145.834 0 218.75h35.84V82.553Zm-51.89 252.006c2.7-72.685-.04-145.486-.04-218.21 0-.617-.424-1.119-1.002-1.157-45.988-1.736-91.976 0-137.963 0-.695 0-1.196.463-1.196 1.042-.926 72.762 0 145.524 0 218.325h140.2Z"}),(0,e.createElement)("path",{d:"M251.558 132.111h23.148v23.15h-23.148z"})),show:!1,id:"mediumLargeWidth"},{label:(0,s.__)("Tablet","generateblocks-pro"),value:"@media (max-width:1024px) and (min-width:768px)",icon:()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M0 0h24v24H0z",style:{fill:"none",transform:"scale(4.16667)"}}),(0,e.createElement)("path",{d:"M69.096 15.124c2.445.045 4.626 2.189 4.659 4.673.132 20.139.396 40.278 0 60.417-.066 2.396-2.181 4.525-4.593 4.599a969.265 969.265 0 0 1-38.233 0c-2.412-.074-4.527-2.174-4.61-4.599-.38-20.154-.38-40.322 0-60.491.083-2.395 2.181-4.525 4.61-4.599 12.722-.236 25.444-.074 38.167 0ZM31.06 19.131c-.38 0-.727.311-.743.695-.397 20.08 0 40.175 0 60.255 0 .385.314.725.694.74 12.672.413 25.345 0 38.017 0 .397 0 .727-.34.727-.74.017-20.065.017-40.145 0-60.21 0-.4-.314-.725-.694-.74-12.656-.414-25.328 0-38 0Z"}),(0,e.createElement)("path",{d:"M46.842 22.597h6.4v6.4h-6.4z"})),show:!1,id:"mediumWidth"},{label:(0,s.__)("Tablet & mobile","generateblocks-pro"),value:"@media (max-width:1024px)",icon:()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M42.284 22.603h6.4v6.4h-6.4zM63.082 45.178h4.8v4.8h-4.8z"}),(0,e.createElement)("path",{d:"M61.364 84.873c-11.663.184-23.333.168-34.996-.056-2.4-.072-4.528-2.183-4.6-4.6a1588.412 1588.412 0 0 1 0-60.489c.072-2.4 2.184-4.527 4.6-4.599 12.726-.24 25.453-.08 38.18 0 2.431.04 4.615 2.192 4.663 4.663.04 6.36.088 12.711.128 19.07 2.184.008 4.368.032 6.551.056 1.312.048 2.456 1.184 2.504 2.504.176 13.63.176 27.261 0 40.892-.048 1.32-1.176 2.455-2.504 2.503-4.839.064-9.678.08-14.526.056Zm3.104-65.744H26.504c-.4 0-.728.336-.736.711-.112 20.078 0 40.164 0 60.242 0 .368.32.72.688.736 8.703.28 17.398.176 26.101.088a1665.8 1665.8 0 0 1 .016-39.484c.056-1.32 1.184-2.456 2.504-2.504 3.423-.04 6.839-.064 10.255-.064a1880.03 1880.03 0 0 1-.12-18.99.751.751 0 0 0-.744-.735Zm9.927 23.789H56.573v37.9h17.822v-37.9Z"})),show:!0,id:"mediumSmallWidth"},{label:(0,s.__)("Mobile","generateblocks-pro"),value:"@media (max-width:767px)",icon:()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M62.043 23.435c1.52.056 2.841 1.364 2.893 2.897.208 15.781.208 31.563 0 47.333-.052 1.533-1.363 2.84-2.893 2.897-8.025.101-16.06.101-24.085 0-1.53-.056-2.84-1.364-2.903-2.897-.198-15.77-.198-31.552 0-47.333.062-1.522 1.363-2.84 2.903-2.897 8.025-.102 16.06-.102 24.085 0Zm-22.357 4.633V71.94h20.629V28.068H39.686Z"}),(0,e.createElement)("path",{d:"M47.22 30.36h5.556v5.557h-5.555z"})),show:!0,id:"smallWidth"}]);function ge({editAtRule:t="",setShowBuildAtRule:r,allStyles:n,onAtRuleChange:i,setTempAtRule:l,removeTempAtRule:u,onUpdateKey:d,defaultAtRules:p,setShowAtRuleOptions:h,setEditAtRule:m,nestedRule:f}){const[g,b]=(0,a.useState)(""),[v,y]=(0,a.useState)("");return(0,a.useEffect)((()=>{b(t||"")}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:c.options},(0,e.createElement)(o.BaseControl,{label:(0,s.__)("At-Rule","generateblocks-pro"),className:c.build,id:"class-selector"},(0,e.createElement)(o.TextControl,{id:"class-selector",value:g,onChange:e=>{y(""),b(e)},onBlur:()=>{g&&(["@media","@supports","@container"].some((e=>g.startsWith(e)))?b(me(g)):y((0,s.__)("Invalid at-rule.","generateblocks-pro")))}})),(0,e.createElement)("div",{className:c.list},p.filter((e=>e.value)).map((t=>(0,e.createElement)(o.Button,{key:t.value,size:"small",onClick:()=>{const e=t.value===g?"":t.value;b(e)},isPressed:t.value===g},t.label))))),(0,e.createElement)("div",{className:c.actions},(0,e.createElement)(o.Button,{variant:"tertiary",onClick:()=>{r(!1),m("")}},(0,s.__)("Cancel","generateblocks-pro")),!t&&(0,e.createElement)(o.Button,{variant:"primary",disabled:!g||v,onClick:()=>{(f?n?.[f]:n)[g]?y((0,s.__)("At-rule already exists.","generateblocks-pro")):(i(g),l(g),r(!1),h(!1))}},(0,s.__)("Create","generateblocks-pro")),!!t&&(0,e.createElement)(o.Button,{variant:"primary",disabled:!g||t===g,onClick:()=>{(f?n?.[f]:n)[g]?y((0,s.__)("At-rule already exists.","generateblocks-pro")):(d(t,g,f),i(g),l(g),u(t),r(!1),h(!1),m(""))}},(0,s.__)("Update","generateblocks-pro"))),!!v&&(0,e.createElement)(o.Notice,{status:"error",isDismissible:!1,style:c.notice},v))}function be({atRule:t,onAtRuleChange:r,onNestedRuleChange:n,defaultAtRules:i,allStyles:l,showAtRuleOptions:u,setShowAtRuleOptions:h,onUpdateKey:f,nestedRule:g,onDeleteStyle:b,allowCustomAtRule:v}){const[y,w]=(0,a.useState)([]),[k,E]=(0,a.useState)(!1),[S,x]=(0,a.useState)(""),C=(0,a.useCallback)((e=>{var r;return e.show||!!e.icon&&(Object.keys(null!==(r=l?.[e.value])&&void 0!==r?r:{})?.length>0||e.value===t)}),[l,t]),_=(0,a.useMemo)((()=>{var e;const t=[];i.forEach((e=>{e.value&&t.push(e.value)}));const r=g?null!==(e=l?.[g])&&void 0!==e?e:{}:l;return Object.keys(r)?.forEach((e=>{e.startsWith("@")&&!t.includes(e)&&t.push(e)})),y.forEach((e=>{t.includes(e)||t.push(e)})),Array.from(new Set(t))}),[l,y]),O=i.some((e=>e.value===t));return(0,e.createElement)("div",{className:c.atRules},(0,e.createElement)(o.ButtonGroup,null,i.map((n=>C(n)?(0,e.createElement)(o.Button,{key:n.label,onClick:()=>{n.value!==t&&(r(n.value),h(!1))},isPressed:n.value===t,icon:n.icon,label:n.label,size:"compact"}):null)),(0,e.createElement)(o.Button,{onClick:()=>h(!u),isPressed:u||!O,icon:d,label:u?(0,s.__)("Hide at-rule options","generateblocks-pro"):(0,s.__)("Show at-rule options","generateblocks-pro"),size:"compact",iconSize:"18"})),!!t&&(0,e.createElement)("div",{className:c.preview},t),u&&(0,e.createElement)(e.Fragment,null,!k&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(m,{atRule:t,onAtRuleChange:r,onNestedRuleChange:n,allStyles:l,setShowAtRuleOptions:h,defaultAtRules:i,activeAtRules:_,showBuildAtRule:k,setShowBuildAtRule:E,editAtRule:S,setEditAtRule:x,nestedRule:g,onDeleteStyle:b,allowCustomAtRule:v}),(0,e.createElement)("div",{className:c.actions},(0,e.createElement)(o.Button,{variant:"tertiary",size:"compact",onClick:()=>h(!1)},(0,s.__)("Cancel","generateblocks-pro")),!!v&&(0,e.createElement)(o.Button,{variant:"primary",size:"compact",showTooltip:!0,label:(0,s.__)("Add a new custom at-rule","generateblocks-pro"),icon:p,onClick:()=>{E(!0)}},(0,s.__)("New","generateblocks-pro")))),!!k&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.Notice,{className:c.notice,isDismissible:!1},S?(0,s.sprintf)( +(0,s.__)("This will delete the at-rule and its styles. This operation cannot be undone.","generateblocks-pro"),{AtRuleName:(0,e.createElement)(x,{currentAtRule:f})})),(0,e.createElement)("div",{className:c.actions},(0,e.createElement)(o.Button,{variant:"secondary",size:"compact",onClick:()=>{k(!1),n()}},(0,s.__)("Cancel","generateblocks-pro")),(0,e.createElement)(o.Button,{isDestructive:!0,variant:"secondary",size:"compact",onClick:()=>{m(f,t),i===f&&r(""),k(!1),n()}},(0,s.__)("Confirm","generateblocks-pro")))):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuItem,{onClick:()=>{d(!0),p(f),n()}},(0,s.__)("Edit at-rule","generateblocks-pro")),(0,e.createElement)(o.MenuItem,{onClick:()=>{k(!0)},disabled:!S(f),title:S(f)?"":(0,s.__)("No styles to be deleted.","generateblocks-pro")},(0,s.__)("Delete at-rule","generateblocks-pro")))))))))))))}const f=window.wp.hooks,g=window.wp.blockEditor;var b=r(2895);const v=b;b.stringify,b.fromJSON,b.plugin,b.parse,b.list,b.document,b.comment,b.atRule,b.rule,b.decl,b.root,b.CssSyntaxError,b.Declaration,b.Container,b.Processor,b.Document,b.Comment,b.Warning,b.AtRule,b.Result,b.Input,b.Rule,b.Root,b.Node;var y=r(3268),w=r.n(y),k=r(691),E=r.n(k);function S(e){let t="",r="",n="";return e.forEach((e=>{const{prop:o,value:a}=e;o.includes("width")?t=a:o.includes("style")?r=a:o.includes("color")&&(n=a)})),t&&r&&n?`${t} ${r} ${n}`:""}function x(e){let t="",r="",n="",o="";return e.forEach((e=>{const{prop:a,value:s}=e;a.includes("top")?t=s:a.includes("right")?r=s:a.includes("bottom")?n=s:a.includes("left")&&(o=s)})),[t,r,n,o].some((e=>""===e))?"":t===n&&r===o?t===r?t:`${t} ${r}`:`${t} ${r} ${n} ${o}`}function C(){return{postcssPlugin:"gb-merge-longhand",OnceExit(e){e.walkRules((e=>{const t=e.nodes.filter((e=>e.prop&&e.prop.startsWith("border-")&&!e.prop.includes("radius"))),r=e.nodes.filter((e=>e.prop&&e.prop.startsWith("border-")&&e.prop.includes("radius"))),n=e.nodes.filter((e=>e.prop&&e.prop.startsWith("margin-"))),o=e.nodes.filter((e=>e.prop&&e.prop.startsWith("padding-")));if(t){const r=[],n=t.filter((e=>e.prop.startsWith("border-top"))),o=t.filter((e=>e.prop.startsWith("border-right"))),a=t.filter((e=>e.prop.startsWith("border-bottom"))),s=t.filter((e=>e.prop.startsWith("border-left"))),i={top:!1,left:!1,bottom:!1,right:!1},l=S(n);l&&(r.push(S(n)),i.top=!0);const c=S(o);c&&(r.push(S(o)),i.right=!0);const u=S(a);u&&(r.push(S(a)),i.bottom=!0);const d=S(s);d&&(r.push(S(s)),i.left=!0),4===r.length&&r.every((e=>e===r[0]))?(e.append({prop:"border",value:r[0]}),t.forEach((e=>e.remove()))):(i.top&&(e.append({prop:"border-top",value:l}),n.forEach((e=>e.remove()))),i.right&&(e.append({prop:"border-right",value:c}),o.forEach((e=>e.remove()))),i.bottom&&(e.append({prop:"border-bottom",value:u}),a.forEach((e=>e.remove()))),i.left&&(e.append({prop:"border-left",value:d}),s.forEach((e=>e.remove()))))}if(4===r.length){const t=function(e){let t="",r="",n="",o="";return e.forEach((e=>{const{prop:a,value:s}=e;a.includes("top-left")?t=s:a.includes("top-right")?r=s:a.includes("bottom-right")?n=s:a.includes("bottom-left")&&(o=s)})),t&&r&&n&&o?t===n&&r===o?t===r?t:`${t} ${r}`:`${t} ${r} ${n} ${o}`:""}(r);e.append({prop:"border-radius",value:t}),r.forEach((e=>e.remove()))}if(4===n.length){const t=x(n);e.append({prop:"margin",value:t}),n.forEach((e=>e.remove()))}if(4===o.length){const t=x(o);e.append({prop:"padding",value:t}),o.forEach((e=>e.remove()))}})),e.rawCache={beforeDecl:"",beforeRule:"",colon:":",indent:"",after:"",semicolon:!0}}}}const _=e=>/^([-]?\d|[-]?\.)/.test(e);function O(e,t=""){return e?/^https?:\/\//i.test(e)?e:new URL(e,t||location.origin).href:""}function T(e=[]){return e.reduce(((e,t)=>{if(t.hidden)return e;const{type:r,backgroundAttachment:n="",backgroundImage:o="",backgroundSize:a="",backgroundRepeat:s="",backgroundPosition:i=""}=t;if(!o)return e;let l="";return o&&(l+=`${o.replace("'","").replace('"',"")}`),"image"===r&&(i&&(l+=` ${i}`),a&&(i||(l+="0% 0% "),l+=` / ${a}`),s&&(l+=` ${s}`),n&&(l+=` ${n}`)),l.length?e.length>0?`${e}, ${l}`:`${l}`:e}),"").replace(/,$/,"").trim()}function I(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}const P=/(?:#(?:[0-9a-fA-F]{3}){1,2}|(?:rgb|rgba|hsl|hsla)\(\s*\d+%?\s*(?:,\s*\d+%?\s*){2,3}(?:,\s*(?:0?\.\d+|1|100%))?\))/g,M=/(linear-gradient|radial-gradient)\([^)]*\)(?:\s*\d+%?,\s*(?:rgba?\([^)]*\)|#[0-9a-fA-F]+)\s*\d*%?)+\s*\)|url\([^)]*\)[^,)]*/g;function A(e=""){const t=O("/wp-content/plugins/generateblocks-pro/dist/assets/placeholder-lg.min.jpg");return""===e?{type:"image",media:{selectedSize:"full",sizes:{}},backgroundAttachment:"",backgroundImage:`url(${t})`,backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundBlendMode:"normal"}:{type:"image",media:{id:0},backgroundAttachment:"",backgroundImage:"",backgroundPosition:"",backgroundSize:"",backgroundRepeat:"",backgroundBlendMode:""}}function R(){const e="rgba(0, 0, 0, .25)",t=`linear-gradient(to right, ${e} 0%, ${e} 100%)`;return{...A(),type:"overlay",backgroundBlendMode:"normal",backgroundImage:t,overlayColor:e}}function L(){const e=["background-attachment","background-image","background-size","background-repeat","background-position"];function t(t){var r;const n=t.nodes.filter((e=>e.prop&&e.prop.startsWith("background-")));if(0===n.length)return;const o=null!==(r=n.find((e=>"background-image"===e.prop)))&&void 0!==r?r:{value:""},a=J(o.value);if(a&&a.length>1)try{var s,i,l,c;const r=null!==(s=n.find((e=>"background-attachment"===e.prop)))&&void 0!==s?s:{value:""},a=null!==(i=n.find((e=>"background-size"===e.prop)))&&void 0!==i?i:{value:""},u=null!==(l=n.find((e=>"background-repeat"===e.prop)))&&void 0!==l?l:{value:""},d=null!==(c=n.find((e=>"background-position"===e.prop)))&&void 0!==c?c:{value:""},p=X({backgroundAttachment:r.value,backgroundSize:a.value,backgroundImage:o.value,backgroundRepeat:u.value,backgroundPosition:d.value});n.forEach((t=>{const r=t.prop;e.includes(r)&&t.remove()})),t.append(v.decl({prop:"background",value:T(p)}))}catch(e){console.error(e.messsage)}}return{postcssPlugin:"combine-background-properties",Once(e){const r=e.nodes.filter((e=>"rule"===e.type)),n=e.nodes.filter((e=>"atrule"===e.type));r.forEach(t),n.forEach((e=>{e.nodes.forEach(t)}))}}}const z=/(!?\(\s*min(-device)?-width)(.|\n)+\(\s*max(-device)?-width|\(\s*width\s*>(=)?(.|\n)+\(\s*width\s*<(=)?|(!?\(.*<(=)?\s*width\s*<(=)?)/i,D=/(!?\(\s*max(-device)?-width)(.|\n)+\(\s*min(-device)?-width|\(\s*width\s*<(=)?(.|\n)+\(\s*width\s*>(=)?|(!?\(.*>(=)?\s*width\s*>(=)?)/i,F=G(z,D,/\(\s*min(-device)?-width|\(\s*width\s*>(=)?/i),B=G(D,z,/\(\s*max(-device)?-width|\(\s*width\s*<(=)?/i),N=/(!?\(\s*min(-device)?-height)(.|\n)+\(\s*max(-device)?-height|\(\s*height\s*>(=)?(.|\n)+\(\s*height\s*<(=)?|(!?\(.*<(=)?\s*height\s*<(=)?)/i,j=/(!?\(\s*max(-device)?-height)(.|\n)+\(\s*min(-device)?-height|\(\s*height\s*<(=)?(.|\n)+\(\s*height\s*>(=)?|(!?\(.*>(=)?\s*height\s*>(=)?)/i,V=G(N,j,/\(\s*min(-device)?-height|\(\s*height\s*>(=)?/i),U=G(j,N,/\(\s*max(-device)?-height|\(\s*height\s*<(=)?/i),H=/print/i,W=/^print$/i,$=Number.MAX_VALUE;function q(e){let t=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(e);if(null===t&&(F(e)||V(e))&&(t=/(\d)/.exec(e)),"0"===t)return 0;if(null===t)return $;let r=t[1];switch(t[2]){case"ch":r=8.8984375*parseFloat(r);break;case"em":case"rem":r=16*parseFloat(r);break;case"ex":r=8.296875*parseFloat(r);break;case"px":r=parseFloat(r)}return+r}function G(e,t,r){return function(n){return!!e.test(n)||!t.test(n)&&r.test(n)}}const Z=!0;function K(e,t){const r=function(e,t){const r=H.test(e),n=W.test(e),o=H.test(t),a=W.test(t);return r&&o?!n&&a?1:n&&!a?-1:e.localeCompare(t):r?1:o?-1:null}(e,t);if(null!==r)return r;const n=F(e)||V(e),o=B(e)||U(e),a=F(t)||V(t),s=B(t)||U(t);if(Z&&(!n&&!o||!a&&!s))return n||o||a||s?a||s?-1:1:e.localeCompare(t);if(n&&s)return-1;if(o&&a)return 1;const i=q(e),l=q(t);return i===$&&l===$?e.localeCompare(t):i===$?1:l===$?-1:i>l?o?-1:1:i{if(e.onlyTopLevel&&"root"===t.parent.type){const e=t.params;n[e]||(n[e]=new r({name:t.name,params:t.params,source:t.source})),t.nodes.forEach((t=>{n[e].append(t.clone())})),t.remove()}if(!e.onlyTopLevel){const e=t.params;n[e]||(n[e]=new r({name:t.name,params:t.params,source:t.source})),t.nodes.forEach((t=>{n[e].append(t.clone())})),t.remove()}})),n&&Object.keys(n).sort(K).forEach((e=>{t.append(n[e])}))}}}const Q={a:"a:where(:not(.components-external-link))",button:"button:where(:not(.components-button))"};function J(e){const t=[];let r=0,n=0;for(let o=0;oe===n[0]))&&(t="overlay",r=n[0])}m.push({backgroundAttachment:null!==(f=i[h])&&void 0!==f?f:"",backgroundSize:null!==(g=l[h])&&void 0!==g?g:"",backgroundRepeat:null!==(b=c[h])&&void 0!==b?b:"",backgroundPosition:null!==(v=u[h])&&void 0!==v?v:"",backgroundImage:d[h],backgroundBlendMode:null!==(y=p[h])&&void 0!==y?y:"",type:t,overlayColor:r,media:{id:0}}),h++}return m}function ee(e){const t={atRules:{},nestedRules:{},propertyRules:{}};for(const[n,o]of Object.entries(e))if(n.startsWith("@")){var r;const e=null!==(r=t?.atRules?.[n])&&void 0!==r?r:{};t.atRules[n]={...e,...o}}else"object"==typeof o?Object.entries(o).forEach((([e,r])=>{if(e.startsWith("@")){var o;const a=null!==(o=t?.atRules?.[e])&&void 0!==o?o:{};t.atRules[e]={...a,[n]:r}}else{var a;const o=null!==(a=t?.nestedRules?.[n])&&void 0!==a?a:{};t.nestedRules[n]={...o,[e]:r}}})):t.propertyRules[n]=o;function n(e){return Object.keys(e).sort().reduce(((t,r)=>(t[r]=e[r],t)),{})}return{atRules:n(t.atRules),nestedRules:n(t.nestedRules),propertyRules:n(t.propertyRules)}}function te(e){return e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}function re(e,t,r){e+=`${t} {`;for(let[t,n]of Object.entries(r))"settings"!==t&&(t=te(t),e+=`${t}:${n.toString()};`);return e+"}"}function ne(e,t=""){if(!t)return e;const r=e.split(",").map((e=>e.trim())),n=[];return r.forEach((e=>{n.push(t.startsWith("&")?e+t.replace("&",""):e+" "+t)})),n.join(",")}async function oe(e,t,r="frontend"){var n;const o=(0,f.applyFilters)("generateStylesBuilder.rawCss",function(e,t){if(!e)return"";let r="";if((t=ee(t)).propertyRules&&Object.keys(t.propertyRules).length>0&&(r=re(r,ne(e),t.propertyRules)),t.nestedRules&&Object.keys(t.nestedRules).length>0)for(const n in t.nestedRules)r=re(r,ne(e,n),t.nestedRules[n]);if(t.atRules&&Object.keys(t.atRules).length>0)for(const n in t.atRules){const o=ee(t.atRules[n]);if(r+=`${n} {`,o.propertyRules&&Object.keys(o.propertyRules).length>0&&(r=re(r,e,o.propertyRules)),o.nestedRules&&Object.keys(o.nestedRules).length>0)for(const t in o.nestedRules)r=re(r,ne(e,t),o.nestedRules[t]);r+="}"}return r}(e,t)),a=[{css:o}],s="editor"===r?(0,g.transformStyles)(a,".editor-styles-wrapper")?.[0]:o;let i=[w()(),C(),L(),Y(),E()()];"editor"===r&&(i=[w()(),C(),L(),Y(),{postcssPlugin:"gb-editor-transforms",Rule(e){let t=e.selector;Object.keys(Q).forEach((e=>{const r=new RegExp(`(^|\\s|>|\\+|~)(${e})(\\s|$|>|\\+|~)(?!:where)`,"g");t=t.replace(r,`$1${Q[e]}$3`)})),e.selector=t}}]);const l=await v(i).process(s,{from:void 0}).catch((e=>{console.error(e.message)}));return null!==(n=l?.css)&&void 0!==n?n:s}function ae(e){return"object"!=typeof e?{}:Object.entries(e).reduce(((e,[t,r])=>{if("object"==typeof r){const n=ae(r);Object.keys(n).length>0&&(e[t]=n)}else if(""!==r&&null!=r){const n=r.toString().replace(";","").replace("{","").replace("}","");e[t]=n}return e}),{})}class se{constructor({value:e,settings:t=[]}){this.value=e,this.settings=t}toString(){return this.value}}function ie(e,t,r,n,o){let a={};const s="object"==typeof r&&null!==r?new se(r):r;if(o){var i;const r=null!==(i=e?.[o])&&void 0!==i?i:{};if(n){var l;const i=null!==(l=e?.[o]?.[n])&&void 0!==l?l:{};a={...e,[o]:{...r,[n]:{...i,[t]:s}}}}else a={...e,[o]:{...r,[t]:s}}}else if(n){var c;const r=null!==(c=e?.[n])&&void 0!==c?c:{};a={...e,[n]:{...r,[t]:s}}}else a={...e,[t]:s};return ae(a)}function le(e,t,r,n=""){const o={},a=n&&t.startsWith("@"),s=a?e[n]:e;return Object.entries(s).forEach((([e,n])=>{e===t?o[r]=n:o[e]=n})),a?{...e,[n]:o}:o}function ce(e,t,r=""){const n={},o=r&&t.startsWith("@"),a=o?e[r]:e;return Object.entries(a).forEach((([e,r])=>{e!==t&&(n[e]=r)})),o?{...e,[r]:n}:n}function ue(e,t="",r=""){return"object"!=typeof e||Array.isArray(e)?{}:r?t?null!==(o=e?.[r]?.[t])&&void 0!==o?o:{}:null!==(n=e?.[r])&&void 0!==n?n:{}:t?null!==(a=e?.[t])&&void 0!==a?a:{}:null!=e?e:{};var n,o,a}function de(e){return"CSSMediaRule"===e.constructor.name?{name:"media",type:CSSMediaRule}:"CSSSupportsRule"===e.constructor.name?{name:"supports",type:CSSSupportsRule}:"CSSContainerRule"===e.constructor.name?{name:"container",type:window.CSSContainerRule}:{name:"unknown",type:Error}}function pe({element:e,properties:t,sources:r=["inline","tag"],computedStyles:n=null,deviceAttributes:o={},atRule:a=""}){if(!t||0===t.length)throw new Error("properties must be specified");const s=document.querySelector('iframe[name="editor-canvas"]')?.contentDocument||document,i=null!=n?n:getComputedStyle(e),l={},c=r.includes("tag")?s.querySelectorAll("style"):[],u=r.includes("stylesheet")?s.styleSheets:[],d=["width","height","minWidth","minHeight","maxWidth","maxHeight"],p=["fontFamily","fontSize","fontWeight","letterSpacing","lineHeight","textAlign","textTransform"],h=e=>null!=e&&""!==e;for(const y of t){var m;const w=y.startsWith("padding")||y.startsWith("margin"),k=d.includes(y),E=y.startsWith("border");if(p.includes(y)){var f;const _=null!==(f=o?.typography?.[y])&&void 0!==f?f:"";if(h(_)){l[y]={source:"local",selector:"",value:_};continue}}else if(E){var g;const O=null!==(g=o?.borders?.[y])&&void 0!==g?g:"";if(h(O)){l[y]={source:"local",selector:"",value:O};continue}}else if(w){var b;const T=null!==(b=o?.spacing?.[y])&&void 0!==b?b:"";if(h(T)){l[y]={source:"local",selector:"",value:T};continue}}else if(k){var v;const I=null!==(v=o?.sizing?.[y])&&void 0!==v?v:"";if(h(I)){l[y]={source:"local",selector:"",value:I};continue}}else if(h(o?.[y])){l[y]={source:"local",selector:"",value:o[y]};continue}const S=null!==(m=i[y])&&void 0!==m?m:null;if(null===S){l[y]={source:null,selector:"",value:S};continue}const x=[".editor-styles-wrapper .gb-container, .editor-styles-wrapper .gb-headline, .editor-styles-wrapper .gb-button"];function C(t,r,o=""){for(const a of t){const t=!!a?.cssRules&&a.cssRules.length>0,s=!!a?.conditionText;if("CSSStyleRule"===a.constructor.name){let t=y in a.style?a.style[y]:null;if(t?.startsWith("var(")&&(e.style[y]=t,t=i[y]||t,e.style[y]=""),!h(t))continue;if(x.includes(a.selectorText))continue;if(e.matches(a.selectorText)){let s=!1;if(w||k||E||["fontSize","lineHeight","letterSpacing","transform"].includes(y)){e.style[y]=t;const r=n?.[y];e.style[y]="",r===S&&(s=!0)}else t===S&&(s=!0);if(s){l[y]={source:r,selector:a.selectorText,value:S,valueRaw:t,atRule:o};break}}}else if(t&&s){const e=de(a);if("media"!==e.name)return;const t=me(`@${e.name} ${a.conditionText}`);return C(a.cssRules,r,t)}}}if(r.includes("inline")&&!a){const P=e.style[y];if(P&&null!==S){l[y]={source:"inline",selector:"",value:S,valueRaw:P};continue}}if(r.includes("tag")){for(const M of c)try{C(M.sheet.cssRules,"tag")}catch(A){console.error(A.message)}if(y in l)continue}if(r.includes("stylesheet")){for(const R of u)try{C(R.rules||R.cssRules,"stylesheet")}catch(L){console.error("Error accessing stylesheet:",L.message)}if(y in l)continue}l[y]={source:"other",selector:"",value:S}}return l}function he({elements:e,properties:t,computedStyles:r=null,deviceAttributes:n={},atRule:o="",sources:a=["inline","tag"]}){const s=!Array.isArray(t),i=s?[t]:t;if(Array.isArray(e))return e.map((e=>{const l=pe({element:e,properties:i,computedStyles:r,deviceAttributes:n,atRule:o,sources:a});return s?l[t]:l}));const l=pe({element:e,properties:i,computedStyles:r,deviceAttributes:n,atRule:o,sources:a});return s?l[t]:l}function me(e){let t=e;return t=t.replace("@media(","@media ("),t=t.replace("@supports(","@supports ("),t=t.replace("@container(","@container ("),t.includes(":")&&(t=t.replace(/\([^()]*\)/g,(e=>e.replace(/\s+/g,"")))),t}const fe=(0,f.applyFilters)("generateblocks.styles.defaultAtRules",[{label:(0,s.__)("All devices","generateblocks-pro"),value:"",icon:()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M57.128 31.707h5.556v5.556h-5.556zM75.489 50.836h3.703v3.704H75.49z"}),(0,e.createElement)("path",{d:"M93.396 15.181c1.926.074 3.598 1.704 3.673 3.676.263 20.76 0 41.528 0 62.287-.025 1.972-1.691 3.695-3.673 3.769-28.896.37-57.797.009-86.695.009-1.966-.028-3.694-1.695-3.769-3.676-.263-20.76-.001-41.528-.001-62.287.025-1.972 1.692-3.695 3.673-3.778 28.928-.361 57.864-.361 86.792 0Zm-4.772 65.111h3.816V19.811H7.56v60.481h31.664c-.21-17.342.006-34.676.006-52.009.027-2.13 1.792-4.037 4.014-4.12 11.109-.14 22.222-.14 33.331 0 2.113.083 3.93 1.86 4.012 4.009.07 5.565.096 11.12.1 16.685 1.907.01 3.817.028 5.725.046 1.147.047 2.139 1.028 2.183 2.186.14 11.064.15 22.13.03 33.203Zm-3.886 0V48.764H69.946v31.528h14.792Zm-7.962-35.444c-.023-5.51-.045-11.028-.045-16.537 0-.167-.107-.278-.245-.287-11.03-.417-22.075 0-33.112 0-.163 0-.28.11-.285.25-.225 17.333-.005 34.676-.001 52.018H66.06c-.12-11.074-.11-22.139.029-33.203.044-1.149 1.028-2.14 2.183-2.186 2.835-.037 5.67-.055 8.504-.055Z"})),show:!0,id:"all"},{label:(0,s.__)("Desktop","generateblocks-pro"),value:"@media (min-width:1025px)",icon:()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 417 417",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M389.233 63.228c7.989.304 14.98 7.083 15.229 15.28 1.082 86.514 0 173.028 0 259.542-.083 8.196-6.99 15.38-15.23 15.684-120.42 1.518-240.84 0-361.26 0-8.155-.101-15.395-7.083-15.728-15.28-1.082-86.513 0-173.028 0-259.542.083-8.196 7.074-15.38 15.312-15.684a13466.862 13466.862 0 0 1 361.677 0ZM31.55 82.454v251.953h353.687V82.454H31.551Z"})),show:!1,id:"largeWidth"},{label:(0,s.__)("Desktop & tablet","generateblocks-pro"),value:"@media (min-width:768px)",icon:()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 417 417",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M389.145 63.263c8.025.309 15.008 7.099 15.317 15.316 1.08 86.497 0 173.033 0 259.53-.116 8.217-7.06 15.393-15.317 15.702-120.409 1.543-240.818.038-361.227.038-8.179-.115-15.393-7.06-15.702-15.316-1.08-86.497 0-173.032 0-259.53.077-8.217 7.06-15.393 15.317-15.74a14485.169 14485.169 0 0 1 361.612 0Zm-3.973 19.29H31.506v252.006h145.487c-.926-72.762 0-145.524 0-218.287.115-8.873 7.484-16.82 16.705-17.168 46.296-.579 92.592-.579 138.889 0 8.796.347 16.396 7.755 16.744 16.705.926 72.917 0 145.834 0 218.75h35.84V82.553Zm-51.89 252.006c2.7-72.685-.04-145.486-.04-218.21 0-.617-.424-1.119-1.002-1.157-45.988-1.736-91.976 0-137.963 0-.695 0-1.196.463-1.196 1.042-.926 72.762 0 145.524 0 218.325h140.2Z"}),(0,e.createElement)("path",{d:"M251.558 132.111h23.148v23.15h-23.148z"})),show:!1,id:"mediumLargeWidth"},{label:(0,s.__)("Tablet","generateblocks-pro"),value:"@media (max-width:1024px) and (min-width:768px)",icon:()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M0 0h24v24H0z",style:{fill:"none",transform:"scale(4.16667)"}}),(0,e.createElement)("path",{d:"M69.096 15.124c2.445.045 4.626 2.189 4.659 4.673.132 20.139.396 40.278 0 60.417-.066 2.396-2.181 4.525-4.593 4.599a969.265 969.265 0 0 1-38.233 0c-2.412-.074-4.527-2.174-4.61-4.599-.38-20.154-.38-40.322 0-60.491.083-2.395 2.181-4.525 4.61-4.599 12.722-.236 25.444-.074 38.167 0ZM31.06 19.131c-.38 0-.727.311-.743.695-.397 20.08 0 40.175 0 60.255 0 .385.314.725.694.74 12.672.413 25.345 0 38.017 0 .397 0 .727-.34.727-.74.017-20.065.017-40.145 0-60.21 0-.4-.314-.725-.694-.74-12.656-.414-25.328 0-38 0Z"}),(0,e.createElement)("path",{d:"M46.842 22.597h6.4v6.4h-6.4z"})),show:!1,id:"mediumWidth"},{label:(0,s.__)("Tablet & mobile","generateblocks-pro"),value:"@media (max-width:1024px)",icon:()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M42.284 22.603h6.4v6.4h-6.4zM63.082 45.178h4.8v4.8h-4.8z"}),(0,e.createElement)("path",{d:"M61.364 84.873c-11.663.184-23.333.168-34.996-.056-2.4-.072-4.528-2.183-4.6-4.6a1588.412 1588.412 0 0 1 0-60.489c.072-2.4 2.184-4.527 4.6-4.599 12.726-.24 25.453-.08 38.18 0 2.431.04 4.615 2.192 4.663 4.663.04 6.36.088 12.711.128 19.07 2.184.008 4.368.032 6.551.056 1.312.048 2.456 1.184 2.504 2.504.176 13.63.176 27.261 0 40.892-.048 1.32-1.176 2.455-2.504 2.503-4.839.064-9.678.08-14.526.056Zm3.104-65.744H26.504c-.4 0-.728.336-.736.711-.112 20.078 0 40.164 0 60.242 0 .368.32.72.688.736 8.703.28 17.398.176 26.101.088a1665.8 1665.8 0 0 1 .016-39.484c.056-1.32 1.184-2.456 2.504-2.504 3.423-.04 6.839-.064 10.255-.064a1880.03 1880.03 0 0 1-.12-18.99.751.751 0 0 0-.744-.735Zm9.927 23.789H56.573v37.9h17.822v-37.9Z"})),show:!0,id:"mediumSmallWidth"},{label:(0,s.__)("Mobile","generateblocks-pro"),value:"@media (max-width:767px)",icon:()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M62.043 23.435c1.52.056 2.841 1.364 2.893 2.897.208 15.781.208 31.563 0 47.333-.052 1.533-1.363 2.84-2.893 2.897-8.025.101-16.06.101-24.085 0-1.53-.056-2.84-1.364-2.903-2.897-.198-15.77-.198-31.552 0-47.333.062-1.522 1.363-2.84 2.903-2.897 8.025-.102 16.06-.102 24.085 0Zm-22.357 4.633V71.94h20.629V28.068H39.686Z"}),(0,e.createElement)("path",{d:"M47.22 30.36h5.556v5.557h-5.555z"})),show:!0,id:"smallWidth"}]);function ge({editAtRule:t="",setShowBuildAtRule:r,allStyles:n,onAtRuleChange:i,setTempAtRule:l,removeTempAtRule:u,onUpdateKey:d,defaultAtRules:p,setShowAtRuleOptions:h,setEditAtRule:m,nestedRule:f}){const[g,b]=(0,a.useState)(""),[v,y]=(0,a.useState)("");return(0,a.useEffect)((()=>{b(t||"")}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:c.options},(0,e.createElement)(o.BaseControl,{label:(0,s.__)("At-Rule","generateblocks-pro"),className:c.build,id:"class-selector"},(0,e.createElement)(o.TextControl,{id:"class-selector",value:g,onChange:e=>{y(""),b(e)},onBlur:()=>{g&&(["@media","@supports","@container"].some((e=>g.startsWith(e)))?b(me(g)):y((0,s.__)("Invalid at-rule.","generateblocks-pro")))}})),(0,e.createElement)("div",{className:c.list},p.filter((e=>e.value)).map((t=>(0,e.createElement)(o.Button,{key:t.value,size:"small",onClick:()=>{const e=t.value===g?"":t.value;b(e)},isPressed:t.value===g},t.label))))),(0,e.createElement)("div",{className:c.actions},(0,e.createElement)(o.Button,{variant:"tertiary",onClick:()=>{r(!1),m("")}},(0,s.__)("Cancel","generateblocks-pro")),!t&&(0,e.createElement)(o.Button,{variant:"primary",disabled:!g||v,onClick:()=>{(f?n?.[f]:n)[g]?y((0,s.__)("At-rule already exists.","generateblocks-pro")):(i(g),l(g),r(!1),h(!1))}},(0,s.__)("Create","generateblocks-pro")),!!t&&(0,e.createElement)(o.Button,{variant:"primary",disabled:!g||t===g,onClick:()=>{(f?n?.[f]:n)[g]?y((0,s.__)("At-rule already exists.","generateblocks-pro")):(d(t,g,f),i(g),l(g),u(t),r(!1),h(!1),m(""))}},(0,s.__)("Update","generateblocks-pro"))),!!v&&(0,e.createElement)(o.Notice,{status:"error",isDismissible:!1,style:c.notice},v))}function be({atRule:t,onAtRuleChange:r,onNestedRuleChange:n,defaultAtRules:i,allStyles:l,showAtRuleOptions:u,setShowAtRuleOptions:h,onUpdateKey:f,nestedRule:g,onDeleteStyle:b,allowCustomAtRule:v}){const[y,w]=(0,a.useState)([]),[k,E]=(0,a.useState)(!1),[S,x]=(0,a.useState)(""),C=(0,a.useCallback)((e=>{var r;return e.show||!!e.icon&&(Object.keys(null!==(r=l?.[e.value])&&void 0!==r?r:{})?.length>0||e.value===t)}),[l,t]),_=(0,a.useMemo)((()=>{var e;const t=[];i.forEach((e=>{e.value&&t.push(e.value)}));const r=g?null!==(e=l?.[g])&&void 0!==e?e:{}:l;return Object.keys(r)?.forEach((e=>{e.startsWith("@")&&!t.includes(e)&&t.push(e)})),y.forEach((e=>{t.includes(e)||t.push(e)})),Array.from(new Set(t))}),[l,y]),O=i.some((e=>e.value===t));return(0,e.createElement)("div",{className:c.atRules},(0,e.createElement)(o.ButtonGroup,null,i.map((n=>C(n)?(0,e.createElement)(o.Button,{key:n.label,onClick:()=>{n.value!==t&&(r(n.value),h(!1))},isPressed:n.value===t,icon:n.icon,label:n.label,size:"compact"}):null)),(0,e.createElement)(o.Button,{onClick:()=>h(!u),isPressed:u||!O,icon:d,label:u?(0,s.__)("Hide at-rule options","generateblocks-pro"):(0,s.__)("Show at-rule options","generateblocks-pro"),size:"compact",iconSize:"18"})),!!t&&(0,e.createElement)("div",{className:c.preview},t),u&&(0,e.createElement)(e.Fragment,null,!k&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(m,{atRule:t,onAtRuleChange:r,onNestedRuleChange:n,allStyles:l,setShowAtRuleOptions:h,defaultAtRules:i,activeAtRules:_,showBuildAtRule:k,setShowBuildAtRule:E,editAtRule:S,setEditAtRule:x,nestedRule:g,onDeleteStyle:b,allowCustomAtRule:v}),(0,e.createElement)("div",{className:c.actions},(0,e.createElement)(o.Button,{variant:"tertiary",size:"compact",onClick:()=>h(!1)},(0,s.__)("Cancel","generateblocks-pro")),!!v&&(0,e.createElement)(o.Button,{variant:"primary",size:"compact",showTooltip:!0,label:(0,s.__)("Add a new custom at-rule","generateblocks-pro"),icon:p,onClick:()=>{E(!0)}},(0,s.__)("New","generateblocks-pro")))),!!k&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.Notice,{className:c.notice,isDismissible:!1},S?(0,s.sprintf)( // translators: %s: selector name. // translators: %s: selector name. -(0,s.__)("You are editing an at-rule: %s","generateblocks-pro"),S):(0,s.__)("You are creating a new custom at-rule.","generateblocks-pro")),(0,e.createElement)(ge,{editAtRule:S,setShowBuildAtRule:E,allStyles:l,onAtRuleChange:r,setTempAtRule:function(e){w([...y,e])},removeTempAtRule:function(e){w(y.filter((t=>t!==e)))},nestedRule:g,onUpdateKey:f,defaultAtRules:i,setShowAtRuleOptions:h,setEditAtRule:x}))))}const ve=window.gb.components;function ye({editSelector:t="",setShowBuildSelector:r,allStyles:n,onNestedRuleChange:i,setTempSelector:l,removeTempSelector:u,onUpdateKey:d,selectorShortcuts:p,setShowSelectorOptions:h,setEditSelector:m}){const[f,g]=(0,a.useState)(!1),[b,v]=(0,a.useState)(""),[y,w]=(0,a.useState)("");(0,a.useEffect)((()=>{v(t||"")}),[]),(0,a.useEffect)((()=>{b.startsWith("&")&&!f?g(!0):!b.startsWith("&")&&f&&g(!1),k||g(!1)}),[b]);const k=(0,a.useMemo)((()=>{const e=b.replace("&","");return""===b||"&"===b||[":",".","#","["].some((t=>e.startsWith(t)))}),[b]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:c.options},(0,e.createElement)(o.BaseControl,{label:(0,s.__)("Selector","generateblocks-pro"),className:"gb-styles-builder__selector-options--build",id:"class-selector"},(0,e.createElement)(ve.Stack,{className:c.buildSelector,direction:"vertical",gap:"12px"},(0,e.createElement)(o.TextControl,{id:"class-selector",value:b,onChange:e=>v(e)}),(0,e.createElement)(o.ToggleControl,{label:(0,s.__)("Compound selector","generateblocks-pro"),checked:!!f,disabled:!k,onChange:e=>{e&&!b.startsWith("&")&&v("&"+b),!e&&b.startsWith("&")&&v(b.replace("&",""))}}))),Object.entries(p).map((([t,r])=>"default"===t?null:(0,e.createElement)(o.BaseControl,{key:r?.label,label:r?.label,id:""},(0,e.createElement)("div",{className:c.list},r?.items.map((t=>(0,e.createElement)(o.Button,{key:t.value,size:"small",onClick:()=>{const e=t.value===b?"":t.value;v(e)},isPressed:t.value===b},t.label)))))))),(0,e.createElement)("div",{className:c.actions},(0,e.createElement)(o.Button,{variant:"tertiary",onClick:()=>{r(!1),m("")}},(0,s.__)("Cancel","generateblocks-pro")),!t&&(0,e.createElement)(o.Button,{variant:"primary",disabled:!b||"&"===b,onClick:()=>{n[b]?w((0,s.__)("Selector already exists.","generateblocks-pro")):(i(b),l(b),r(!1),h(!1))}},(0,s.__)("Create","generateblocks-pro")),!!t&&(0,e.createElement)(o.Button,{variant:"primary",disabled:!b||"&"===b||t===b,onClick:()=>{n[b]?w((0,s.__)("Selector already exists.","generateblocks-pro")):(d(t,b),i(b),l(b),u(t),r(!1),h(!1),m(""))}},(0,s.__)("Update","generateblocks-pro"))),!!y&&(0,e.createElement)(o.Notice,{status:"error",isDismissible:!1,className:c.notice},y))}const we=(0,a.forwardRef)((function({icon:e,size:t=24,...r},n){return(0,a.cloneElement)(e,{width:t,height:t,...r,ref:n})})),ke=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));function Ee(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t"object"==typeof e&&null!=e&&1===e.nodeType,Ie=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Me=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightat||a>e&&s=t&&i>=r?a-e-n:s>t&&ir?s-t+o:0,Ae=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var Re=function(){return Re=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?r-1:0),o=1;os)&&(e=t>0?-1:s+1);var i=e+t;i<0?i=o?s:0:i>s&&(i=o?0:s);var l=Ue(i,t<0,r,n,o);return-1===l?e>=a?-1:e:l}function Ue(e,t,r,n,o){void 0===o&&(o=!1);var a=r.length;if(t){for(var s=e;s>=0;s--)if(!n(r[s],s))return s}else for(var i=e;i{var r,n,o,a;if("undefined"==typeof document)return[];const{scrollMode:s,block:i,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!Te(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let m=e;for(;Te(m)&&d(m);){if(m=Ae(m),m===p){h.push(m);break}null!=m&&m===document.body&&Me(m)&&!Me(document.documentElement)||null!=m&&Me(m,u)&&h.push(m)}const f=null!=(n=null==(r=window.visualViewport)?void 0:r.width)?n:innerWidth,g=null!=(a=null==(o=window.visualViewport)?void 0:o.height)?a:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:w,top:k,right:E,bottom:S,left:x}=e.getBoundingClientRect(),{top:C,right:_,bottom:O,left:T}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let I="start"===i||"nearest"===i?k-C:"end"===i?S+O:k+y/2-C+O,M="center"===l?x+w/2-T+_:"end"===l?E+_:x-T;const P=[];for(let e=0;e=0&&x>=0&&S<=g&&E<=f&&k>=o&&S<=c&&x>=u&&E<=a)return P;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),C=parseInt(d.borderTopWidth,10),_=parseInt(d.borderRightWidth,10),O=parseInt(d.borderBottomWidth,10);let T=0,A=0;const R="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-_:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-C-O:0,z="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,D="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(p===t)T="start"===i?I:"end"===i?I-g:"nearest"===i?Pe(v,v+g,g,C,O,v+I,v+I+y,y):I-g/2,A="start"===l?M:"center"===l?M-f/2:"end"===l?M-f:Pe(b,b+f,f,m,_,b+M,b+M+w,w),T=Math.max(0,T+v),A=Math.max(0,A+b);else{T="start"===i?I-o-C:"end"===i?I-c+O+L:"nearest"===i?Pe(o,c,r,C,O+L,I,I+y,y):I-(o+r/2)+L/2,A="start"===l?M-u-m:"center"===l?M-(u+n/2)+R/2:"end"===l?M-a+_+R:Pe(u,a,n,m,_+R,M,M+w,w);const{scrollLeft:e,scrollTop:s}=t;T=0===D?0:Math.max(0,Math.min(s+T/D,t.scrollHeight-r/D+L)),A=0===z?0:Math.max(0,Math.min(e+A/z,t.scrollWidth-n/z+R)),I+=s-T,M+=e-A}P.push({el:t,top:T,left:A})}return P})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});r.forEach((function(e){var t=e.el,r=e.top,n=e.left;t.scrollTop=r,t.scrollLeft=n}))}},environment:"undefined"==typeof window?void 0:window};function et(e,t,r){void 0===r&&(r=qe);var n=e["default"+Ye(t)];return void 0!==n?n:r[t]}function tt(e,t,r){void 0===r&&(r=qe);var n=e[t];if(void 0!==n)return n;var o=e["initial"+Ye(t)];return void 0!==o?o:et(e,t,r)}function rt(e){var t=tt(e,"selectedItem"),r=tt(e,"isOpen"),n=function(e){var t=tt(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),o=tt(e,"inputValue");return{highlightedIndex:n<0&&t&&r?e.items.findIndex((function(r){return e.itemToKey(r)===e.itemToKey(t)})):n,isOpen:r,selectedItem:t,inputValue:o}}function nt(e,t,r){var n=e.items,o=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,s=e.isItemDisabled,i=e.itemToKey,l=t.selectedItem,c=t.highlightedIndex;return 0===n.length?-1:void 0===o||c!==o||s(n[o],o)?void 0===a||s(n[a],a)?l?n.findIndex((function(e){return i(l)===i(e)})):r<0&&!s(n[n.length-1],n.length-1)?n.length-1:r>0&&!s(n[0],0)?0:-1:a:o}var ot=function(){return ze};function at(r,n,o,a){void 0===a&&(a={});var s,i=a.document,l=(s=t().useRef(!0),t().useEffect((function(){return s.current=!1,function(){s.current=!0}}),[]),s.current);(0,e.useEffect)((function(){if(r&&!l&&i){var e=r(n);Ge(e,i)}}),o),(0,e.useEffect)((function(){return function(){var e,t;Ge.cancel(),(t=null==(e=i)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}}),[i])}var st=ze;function it(e,t,r){var n;return void 0===r&&(r=!0),Ce({isOpen:!1,highlightedIndex:-1},(null==(n=e.items)?void 0:n.length)&&t>=0&&Ce({selectedItem:e.items[t],isOpen:et(e,"isOpen"),highlightedIndex:et(e,"highlightedIndex")},r&&{inputValue:e.itemToString(e.items[t])}))}function lt(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function ct(e){var t=et(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var ut=Ce({},{environment:Oe().shape({addEventListener:Oe().func.isRequired,removeEventListener:Oe().func.isRequired,document:Oe().shape({createElement:Oe().func.isRequired,getElementById:Oe().func.isRequired,activeElement:Oe().any.isRequired,body:Oe().any.isRequired}).isRequired,Node:Oe().func.isRequired}),itemToString:Oe().func,itemToKey:Oe().func,stateReducer:Oe().func},{getA11yStatusMessage:Oe().func,highlightedIndex:Oe().number,defaultHighlightedIndex:Oe().number,initialHighlightedIndex:Oe().number,isOpen:Oe().bool,defaultIsOpen:Oe().bool,initialIsOpen:Oe().bool,selectedItem:Oe().any,initialSelectedItem:Oe().any,defaultSelectedItem:Oe().any,id:Oe().string,labelId:Oe().string,menuId:Oe().string,getItemId:Oe().func,toggleButtonId:Oe().string,onSelectedItemChange:Oe().func,onHighlightedIndexChange:Oe().func,onStateChange:Oe().func,onIsOpenChange:Oe().func,scrollIntoView:Oe().func});Re(Re({},ut),{items:Oe().array.isRequired,isItemDisabled:Oe().func});var dt=Re(Re({},Xe),{isItemDisabled:function(){return!1}}),pt=ze,ht=0,mt=1,ft=2,gt=3,bt=4,vt=5,yt=6,wt=7,kt=8,Et=9,St=10,xt=11,Ct=12,_t=13,Ot=14,Tt=15,It=16,Mt=17,Pt=18,At=19,Rt=20,Lt=21,zt=Object.freeze({__proto__:null,FunctionCloseMenu:Mt,FunctionOpenMenu:It,FunctionReset:Lt,FunctionSelectItem:At,FunctionSetHighlightedIndex:Pt,FunctionSetInputValue:Rt,FunctionToggleMenu:Tt,ItemClick:Ot,ItemMouseMove:_t,MenuMouseLeave:Ct,ToggleButtonBlur:xt,ToggleButtonClick:ht,ToggleButtonKeyDownArrowDown:mt,ToggleButtonKeyDownArrowUp:ft,ToggleButtonKeyDownCharacter:gt,ToggleButtonKeyDownEnd:yt,ToggleButtonKeyDownEnter:wt,ToggleButtonKeyDownEscape:bt,ToggleButtonKeyDownHome:vt,ToggleButtonKeyDownPageDown:St,ToggleButtonKeyDownPageUp:Et,ToggleButtonKeyDownSpaceButton:kt});function Dt(e,t){var r,n,o=t.type,a=t.props,s=t.altKey;switch(o){case Ot:n={isOpen:et(a,"isOpen"),highlightedIndex:ct(a),selectedItem:a.items[t.index]};break;case gt:var i=t.key,l=""+e.inputValue+i;n={inputValue:l,highlightedIndex:function(e){for(var t=e.keysSoFar,r=e.highlightedIndex,n=e.items,o=e.itemToString,a=e.isItemDisabled,s=t.toLowerCase(),i=0;i=0&&(null==(r=a.items)?void 0:r.length)&&{selectedItem:a.items[e.highlightedIndex]});break;case At:n={selectedItem:t.selectedItem};break;default:return function(e,t,r){var n,o=t.type,a=t.props;switch(o){case r.ItemMouseMove:n={highlightedIndex:t.disabled?-1:t.index};break;case r.MenuMouseLeave:n={highlightedIndex:-1};break;case r.ToggleButtonClick:case r.FunctionToggleMenu:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:nt(a,e,0)};break;case r.FunctionOpenMenu:n={isOpen:!0,highlightedIndex:nt(a,e,0)};break;case r.FunctionCloseMenu:n={isOpen:!1};break;case r.FunctionSetHighlightedIndex:n={highlightedIndex:a.isItemDisabled(a.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case r.FunctionSetInputValue:n={inputValue:t.inputValue};break;case r.FunctionReset:n={highlightedIndex:ct(a),isOpen:et(a,"isOpen"),selectedItem:et(a,"selectedItem"),inputValue:et(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Ce({},e,n)}(e,t,zt)}return Ce({},e,n)}var Ft=["onClick"],Bt=["onMouseLeave","refKey","ref"],Nt=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],jt=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function Vt(t){void 0===t&&(t={}),pt(t,Vt);var r=Ce({},dt,t),n=r.scrollIntoView,o=r.environment,a=r.getA11yStatusMessage,s=function(e,t,r,n){var o=Je(e,t,r,n),a=o[0],s=o[1];return[je(a,t),s]}(Dt,r,rt,lt),i=s[0],l=s[1],c=i.isOpen,u=i.highlightedIndex,d=i.selectedItem,p=i.inputValue,h=(0,e.useRef)(null),m=(0,e.useRef)(null),f=(0,e.useRef)({}),g=(0,e.useRef)(null),b=Ke(r),v=Qe({state:i,props:r}),y=(0,e.useCallback)((function(e){return f.current[b.getItemId(e)]}),[b]);at(a,i,[c,u,d,p],o);var w=function(t){var r=t.highlightedIndex,n=t.isOpen,o=t.itemRefs,a=t.getItemNodeFromIndex,s=t.menuElement,i=t.scrollIntoView,l=(0,e.useRef)(!0);return Ze((function(){r<0||!n||!Object.keys(o.current).length||(!1===l.current?l.current=!0:i(a(r),s))}),[r]),l}({menuElement:m.current,highlightedIndex:u,isOpen:c,itemRefs:f,scrollIntoView:n,getItemNodeFromIndex:y});(0,e.useEffect)((function(){return g.current=Fe((function(e){e({type:Rt,inputValue:""})}),500),function(){g.current.cancel()}}),[]),(0,e.useEffect)((function(){p&&g.current(l)}),[l,p]),st({props:r,state:i}),(0,e.useEffect)((function(){tt(r,"isOpen")&&h.current&&h.current.focus()}),[]);var k=function(t,r,n){var o=(0,e.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,e.useEffect)((function(){if(!t)return ze;var e=n.map((function(e){return e.current}));function a(){o.current.isTouchEnd=!1,o.current.isMouseDown=!0}function s(n){o.current.isMouseDown=!1,We(n.target,e,t)||r()}function i(){o.current.isTouchEnd=!1,o.current.isTouchMove=!1}function l(){o.current.isTouchMove=!0}function c(n){o.current.isTouchEnd=!0,o.current.isTouchMove||We(n.target,e,t,!1)||r()}return t.addEventListener("mousedown",a),t.addEventListener("mouseup",s),t.addEventListener("touchstart",i),t.addEventListener("touchmove",l),t.addEventListener("touchend",c),function(){t.removeEventListener("mousedown",a),t.removeEventListener("mouseup",s),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",l),t.removeEventListener("touchend",c)}}),[n,t,r]),o.current}(o,(0,e.useCallback)((function(){v.current.state.isOpen&&l({type:xt})}),[l,v]),(0,e.useMemo)((function(){return[m,h]}),[m.current,h.current])),E=ot("getMenuProps","getToggleButtonProps");(0,e.useEffect)((function(){c||(f.current={})}),[c]);var S=(0,e.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),l({type:mt,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),l({type:ft,altKey:e.altKey})},Home:function(e){e.preventDefault(),l({type:vt})},End:function(e){e.preventDefault(),l({type:yt})},Escape:function(){v.current.state.isOpen&&l({type:bt})},Enter:function(e){e.preventDefault(),l({type:v.current.state.isOpen?wt:ht})},PageUp:function(e){v.current.state.isOpen&&(e.preventDefault(),l({type:Et}))},PageDown:function(e){v.current.state.isOpen&&(e.preventDefault(),l({type:St}))}," ":function(e){e.preventDefault();var t=v.current.state;t.isOpen?t.inputValue?l({type:gt,key:" "}):l({type:kt}):l({type:ht})}}}),[l,v]),x=(0,e.useCallback)((function(){l({type:Tt})}),[l]),C=(0,e.useCallback)((function(){l({type:Mt})}),[l]),_=(0,e.useCallback)((function(){l({type:It})}),[l]),O=(0,e.useCallback)((function(e){l({type:Pt,highlightedIndex:e})}),[l]),T=(0,e.useCallback)((function(e){l({type:At,selectedItem:e})}),[l]),I=(0,e.useCallback)((function(){l({type:Lt})}),[l]),M=(0,e.useCallback)((function(e){l({type:Rt,inputValue:e})}),[l]),P=(0,e.useCallback)((function(e){var t=void 0===e?{}:e,r=t.onClick,n=xe(t,Ft);return Ce({id:b.labelId,htmlFor:b.toggleButtonId,onClick:Be(r,(function(){var e;null==(e=h.current)||e.focus()}))},n)}),[b]),A=(0,e.useCallback)((function(e,t){var r,n=void 0===e?{}:e,o=n.onMouseLeave,a=n.refKey,s=void 0===a?"ref":a,i=n.ref,c=xe(n,Bt),u=(void 0===t?{}:t).suppressRefError;return E("getMenuProps",void 0!==u&&u,s,m),Ce(((r={})[s]=Ne(i,(function(e){m.current=e})),r.id=b.menuId,r.role="listbox",r["aria-labelledby"]=c&&c["aria-label"]?void 0:""+b.labelId,r.onMouseLeave=Be(o,(function(){l({type:Ct})})),r),c)}),[l,E,b]),R=(0,e.useCallback)((function(e,t){var r,n=void 0===e?{}:e,o=n.onBlur,a=n.onClick;n.onPress;var s=n.onKeyDown,i=n.refKey,c=void 0===i?"ref":i,u=n.ref,d=xe(n,Nt),p=(void 0===t?{}:t).suppressRefError,m=void 0!==p&&p,f=v.current.state,g=Ce(((r={})[c]=Ne(u,(function(e){h.current=e})),r["aria-activedescendant"]=f.isOpen&&f.highlightedIndex>-1?b.getItemId(f.highlightedIndex):"",r["aria-controls"]=b.menuId,r["aria-expanded"]=v.current.state.isOpen,r["aria-haspopup"]="listbox",r["aria-labelledby"]=d&&d["aria-label"]?void 0:""+b.labelId,r.id=b.toggleButtonId,r.role="combobox",r.tabIndex=0,r.onBlur=Be(o,(function(){f.isOpen&&!k.isMouseDown&&l({type:xt})})),r),d);return d.disabled||(g.onClick=Be(a,(function(){l({type:ht})})),g.onKeyDown=Be(s,(function(e){var t=function(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}(e);t&&S[t]?S[t](e):function(e){return/^\S{1}$/.test(e)}(t)&&l({type:gt,key:t})}))),E("getToggleButtonProps",m,c,h),g}),[l,b,v,k,E,S]),L=(0,e.useCallback)((function(e){var t,r=void 0===e?{}:e,n=r.item,o=r.index,a=r.onMouseMove,s=r.onClick,i=r.onMouseDown;r.onPress;var c=r.refKey,u=void 0===c?"ref":c,d=r.disabled,p=r.ref,h=xe(r,jt);void 0!==d&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var m=v.current,g=m.state,y=m.props,E=function(e,t,r,n){var o,a;if(void 0===e){if(void 0===t)throw new Error(n);o=r[t],a=t}else a=void 0===t?r.indexOf(e):t,o=e;return[o,a]}(n,o,y.items,"Pass either item or index to getItemProps!"),S=E[0],x=E[1],C=y.isItemDisabled(S,x),_=Ce(((t={})[u]=Ne(p,(function(e){e&&(f.current[b.getItemId(x)]=e)})),t["aria-disabled"]=C,t["aria-selected"]=S===g.selectedItem,t.id=b.getItemId(x),t.role="option",t),h);return C||(_.onClick=Be(s,(function(){l({type:Ot,index:x})}))),_.onMouseMove=Be(a,(function(){k.isTouchEnd||x===g.highlightedIndex||(w.current=!1,l({type:_t,index:x,disabled:C}))})),_.onMouseDown=Be(i,(function(e){return e.preventDefault()})),_}),[v,b,k,w,l]);return{getToggleButtonProps:R,getLabelProps:P,getMenuProps:A,getItemProps:L,toggleMenu:x,openMenu:_,closeMenu:C,setHighlightedIndex:O,selectItem:T,reset:I,setInputValue:M,highlightedIndex:u,isOpen:c,selectedItem:d,inputValue:p}}Vt.stateChangeTypes=zt,Ce({},ut,{items:Oe().array.isRequired,isItemDisabled:Oe().func,inputValue:Oe().string,defaultInputValue:Oe().string,initialInputValue:Oe().string,inputId:Oe().string,onInputValueChange:Oe().func}),Ce({},Xe,{isItemDisabled:function(){return!1}}),Oe().array,Oe().array,Oe().array,Oe().func,Oe().number,Oe().number,Oe().number,Oe().func,Oe().func,Oe().string,Oe().string;const Ut=()=>(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16"},(0,e.createElement)("path",{d:"M9.414 8l3.293-3.293-1.414-1.414L8 6.586 4.707 3.293 3.293 4.707 6.586 8l-3.293 3.293 1.414 1.414L8 9.414l3.293 3.293 1.414-1.414L9.414 8z"})),Wt=()=>(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16"},(0,e.createElement)("path",{d:"M1 7h14v2H1z"})),Ht=()=>(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16"},(0,e.createElement)("path",{d:"M0 7h4v2H0zm6 0h4v2H6zm6 0h4v2h-4z"})),$t=()=>(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16"},(0,e.createElement)("path",{d:"M1 7h2v2H1zm4 0h2v2H5zm4 0h2v2H9zm4 0h2v2h-2z"})),qt=()=>(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 256 256",style:{opacity:.1}},(0,e.createElement)("rect",{width:"256",height:"256",fill:"none"}),(0,e.createElement)("rect",{x:"32",y:"32",width:"192",height:"192",rx:"16"})),Gt=()=>(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fillRule:"evenodd","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M18.895,1.105C20.368,2.579 20.368,17.421 18.895,18.895C17.421,20.368 2.579,20.368 1.105,18.895C-0.368,17.421 -0.368,2.579 1.105,1.105C2.579,-0.368 17.421,-0.368 18.895,1.105ZM17.116,2.884C18.295,4.063 18.295,15.937 17.116,17.116C15.937,18.295 4.063,18.295 2.884,17.116C1.705,15.937 1.705,4.063 2.884,2.884C4.063,1.705 15.937,1.705 17.116,2.884Z"}),(0,e.createElement)("path",{d:"M15.93,4.07C16.912,5.053 16.912,14.947 15.93,15.93C14.947,16.912 5.053,16.912 4.07,15.93C3.088,14.947 3.088,5.053 4.07,4.07C5.053,3.088 14.947,3.088 15.93,4.07Z"})),Zt=({size:t,...r})=>(0,e.createElement)("svg",{viewBox:"0 0 20 20",width:t||20,height:t||20,...r},(0,e.createElement)("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7 2-1z",fill:"#0a0a0a",style:{transformOrigin:"center"}})),Kt=({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5A6.5 6.5 0 0 1 6.93 7.931l9.139 9.138A6.473 6.473 0 0 1 12 18.5Zm5.123-2.498a6.5 6.5 0 0 0-9.124-9.124l9.124 9.124ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"})),Yt=({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{d:"M14 22H2V10h12v12ZM3.999 12v8h8v-8h-8ZM22 22h-6V10h6v12Zm-4-10v8h2v-8h-2ZM22 8H2V2h20v6ZM4 4v2h16V4H4Z"})),Qt=({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",fillRule:"evenodd",...r},(0,e.createElement)("path",{d:"M7.95 22v-6.95H2v-2.1h5.95V5H6l3-3 3 3h-1.95v7.95H19V11l3 3-3 3v-1.95h-8.95V22h-2.1Z"})),Jt=({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",fillRule:"evenodd",...r},(0,e.createElement)("path",{d:"M22 2v20H2V2h20Zm-2 2H4v16h16V4Z"}),(0,e.createElement)("path",{d:"M16.586 18H7.414l2-2h5.172l2 2ZM8 9.414v5.172l-2 2V7.414l2 2Zm10 7.172-2-2V9.414l2-2v9.172ZM14.586 8H9.414l-2-2h9.172l-2 2Z"})),Xt=({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",fillRule:"evenodd",...r},(0,e.createElement)("path",{d:"M2 6.036v-4.03c4.298 0 8.596-.026 12.893.001 3.746.071 7.083 3.41 7.107 7.199v12.8h-4.03v-2H20c0-3.645.067-7.29-.002-10.935-.084-2.665-2.439-5.013-5.13-5.064-3.618-.023-7.235-.001-10.852-.001H4v2.03H2Z"}),(0,e.createElement)("path",{d:"M4 10.036v-2H2v2h2ZM4 14.036v-2H2v2h2ZM4 18.031v-2H2v2h2ZM4 22.006v-2H2v2h2Z"}),(0,e.createElement)("path",{d:"M2 20.006h2v2H2zM6 20.006h2v2H6zM10 20.006h2v2h-2zM13.996 20.006h2v2h-2z"})),er=({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{d:"m8.824 5.832 4.448 12.164H11.11l-1.304-3.554H5.43a70.44 70.44 0 0 1-.661 1.768c-.214.607-.429 1.197-.643 1.786H2.001L6.448 5.832h2.376ZM7.609 8.386l-1.536 4.323h3.09L7.609 8.386ZM22.002 17.764a3.626 3.626 0 0 1-.446.232 2.065 2.065 0 0 1-.34.125c-.107.036-.196.036-.268.054h-.178c-.215 0-.411-.036-.572-.125a1.361 1.361 0 0 1-.464-.286 2.916 2.916 0 0 1-.34-.447 2.712 2.712 0 0 1-.232-.518c-.268.268-.518.501-.75.661a4.194 4.194 0 0 1-.679.429 2.666 2.666 0 0 1-.679.214 3.101 3.101 0 0 1-.714.072c-.393 0-.768-.072-1.126-.197a2.638 2.638 0 0 1-.893-.536 2.148 2.148 0 0 1-.607-.821 2.698 2.698 0 0 1-.214-1.09c0-.339.071-.643.232-.893.143-.232.357-.464.607-.643.25-.196.536-.339.858-.482.321-.125.66-.25.982-.357.339-.108.679-.215 1-.322.322-.089.608-.196.858-.304.25-.107.464-.232.607-.375a.622.622 0 0 0 .232-.482.808.808 0 0 0-.143-.482 1.185 1.185 0 0 0-.357-.304 2.376 2.376 0 0 0-.5-.161 3.087 3.087 0 0 0-.536-.053c-.179 0-.357.018-.536.071a1.628 1.628 0 0 0-.464.232 1.41 1.41 0 0 0-.375.411c-.09.161-.161.357-.179.59h-2.09c.036-.518.161-.965.375-1.34.215-.393.5-.697.84-.947.339-.25.714-.446 1.143-.571a5.085 5.085 0 0 1 1.286-.179c.464 0 .929.054 1.358.161.428.107.821.268 1.143.5.339.214.607.518.804.857.196.358.285.786.285 1.269v4.322a.42.42 0 0 0 .125.304.363.363 0 0 0 .322.161c.018 0 .071-.018.179-.036.125-.018.267-.072.446-.161v1.447Zm-3.126-4.019a3.016 3.016 0 0 1-.518.214c-.214.072-.446.125-.696.197-.25.071-.501.143-.769.214-.25.072-.464.161-.678.268a1.481 1.481 0 0 0-.5.357.66.66 0 0 0-.197.483c0 .178.036.339.089.464a.814.814 0 0 0 .233.304.706.706 0 0 0 .321.178c.125.036.25.072.375.072.393 0 .804-.143 1.215-.411.429-.268.804-.679 1.125-1.233v-1.107Z",style:{fillRule:"nonzero"}})),tr=({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{d:"m17.588 3.708.721.595L4.303 18.31l-.595-.721-.533-.98L16.608 3.176l.98.532ZM14.013 2.202l.565.176-12.2 12.2-.176-.565-.191-1.896L12.116 2.011l1.897.191ZM8.696 2.603 2.602 8.696c.979-2.868 3.238-5.134 6.094-6.093ZM20.29 6.41l.56 1.031L7.441 20.85l-1.032-.56-.677-.559L19.731 5.732l.559.678ZM21.795 9.985l.194 1.921L11.906 21.99l-1.921-.194-.545-.169L21.626 9.441l.169.544ZM21.393 15.31c-.978 2.863-3.236 5.128-6.083 6.083l6.083-6.083Z"})),rr=({size:t,...r})=>(0,e.createElement)("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fillRule:"evenodd","aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{d:"M14.694 9.306 21.976 12l-7.282 2.694L12 21.976l-2.694-7.282L2.024 12l7.282-2.694L12 2.024l2.694 7.282Zm-3.832 1.556L7.787 12l3.075 1.138L12 16.213l1.138-3.075L16.213 12l-3.075-1.138L12 7.787l-1.138 3.075Z"}),(0,e.createElement)("path",{d:"m18.746 3.024.81 2.19 2.19.81-2.19.81-.81 2.19-.81-2.19-2.19-.81 2.19-.81.81-2.19ZM18.746 14.976l.81 2.19 2.19.81-2.19.81-.81 2.19-.81-2.19-2.19-.81 2.19-.81.81-2.19Z"})),nr=({size:t,...r})=>(0,e.createElement)("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{d:"m14.879 16.293 1.414 1.415L12 22l-4.293-4.292 1.415-1.415L12 19.172l2.879-2.879ZM6.293 7.708l1.414 1.414L4.829 12l2.878 2.879-1.414 1.414L2 12l4.293-4.292ZM22 12l-4.293 4.293-1.414-1.414L19.172 12l-2.879-2.878 1.414-1.414L22 12Zm-5.707-5.707-1.414 1.415L12 4.829 9.122 7.708 7.707 6.293 12 2l4.293 4.293ZM14.879 12.05l-2.829 2.829-2.928-2.928 2.829-2.829 2.928 2.928Zm-2.929-.099.099.099-.099-.099Z"})),or=({size:t,...r})=>(0,e.createElement)("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{d:"M3.013 4h2v2h-2zM3.013 18h2v2h-2zM7.013 4h2v2h-2zM7.013 18h2v2h-2zM11.013 4h2v2h-2zM11.013 18h2v2h-2zM15.008 4h2v2h-2zM15.008 18h2v2h-2zM18.983 4h2v2h-2zM18.983 18h2v2h-2zM20.998 15.12H2.999l4.284-4.286 2.144 2.143 4.714-4.715 6.857 6.858Z"})),ar=({size:t,...r})=>(0,e.createElement)("svg",{viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("rect",{x:"7.052",y:"10.981",width:"2",height:"2"}),(0,e.createElement)("rect",{x:"11.052",y:"10.981",width:"2",height:"2"}),(0,e.createElement)("rect",{x:"15.052",y:"10.981",width:"2",height:"2"})),sr={button:"zBNu4EXMvGLl5F0Whgcu",control:"fBiNbsJwfo6m5W319YeV",open:"Gv4AVZ3Uo9WsTswIzApZ",icon:"H5BpC4Xn0Vqp02xqec8t",dropdown:"LZ_Q_jIwNWRN9uzPHG6F",hidden:"fuiIHvsQoDtzSwhIiZqA",item:"oFtCdmsssMg8H77hPFTg",highlighted:"aRQyIjys1XBHeSktg1zw",selected:"VgpUqbG14GJePp0Beo1z","has-icon":"S6wZSSZk2olFnn3eYf8O",help:"jept9XZS7KxgsCNkbH1p"};function ir({item:t}){return(0,e.createElement)("span",null,t.label)}function lr({label:t,onChange:r,id:n,help:a,className:i="",items:l=[],selectedItem:c=null,selectedStyle:u="highlight",defaultText:d=(0,s.__)("Select…","generateblocks-pro"),"aria-labelledby":p,"aria-label":h,itemToString:m=e=>e?e.label:"",ItemComponent:f=ir}){const g={items:l,itemToString:m,selectedItem:c};r&&(g.onSelectedItemChange=({selectedItem:e})=>{r(e)});const{isOpen:b,getToggleButtonProps:v,getLabelProps:y,getMenuProps:w,highlightedIndex:k,getItemProps:E}=Vt(g),S=v({id:n,"aria-describedby":a&&n?`${n}__help`:void 0}),x="icon"===u;return(0,e.createElement)(o.BaseControl,{className:Se(sr.control,i),label:t,id:S.id,help:a},(0,e.createElement)("div",{className:sr.header},t&&(0,e.createElement)("div",{...y({className:sr.label})},t),(0,e.createElement)("button",{className:Se(sr.button,b&&sr.open),...S},c?(0,e.createElement)(f,{item:c}):d,(0,e.createElement)("span",{className:sr.icon},(0,e.createElement)(Zt,{size:"12"})))),(0,e.createElement)("ul",{"aria-labelledby":p,"aria-label":h,className:Se(sr.dropdown,!b&&sr.hidden),...w()},b&&l.map(((t,r)=>{const n=c===t,o=k===r;return(0,e.createElement)("li",{key:t.id,className:Se(o&&sr.highlighted,!x&&n&&sr.selected,sr.item,x&&sr["has-icon"]),...E({item:t,index:r})},(0,e.createElement)(f,{item:t}),x&&n&&(0,e.createElement)(we,{icon:ke,size:"18"}))}))))}const cr=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})),ur=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})),dr={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var pr,hr=new Uint8Array(16);function mr(){if(!pr&&!(pr="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pr(hr)}for(var fr=[],gr=0;gr<256;++gr)fr.push((gr+256).toString(16).slice(1));const br=function(e,t,r){if(dr.randomUUID&&!t&&!e)return dr.randomUUID();var n=(e=e||{}).random||(e.rng||mr)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return function(e,t=0){return(fr[e[t+0]]+fr[e[t+1]]+fr[e[t+2]]+fr[e[t+3]]+"-"+fr[e[t+4]]+fr[e[t+5]]+"-"+fr[e[t+6]]+fr[e[t+7]]+"-"+fr[e[t+8]]+fr[e[t+9]]+"-"+fr[e[t+10]]+fr[e[t+11]]+fr[e[t+12]]+fr[e[t+13]]+fr[e[t+14]]+fr[e[t+15]]).toLowerCase()}(n)},vr=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),yr=window.wp.compose,wr={attribute:/\[\s*(?:(?\*|[-\w\P{ASCII}]*)\|)?(?[-\w\P{ASCII}]+)\s*(?:(?\W?=)\s*(?.+?)\s*(\s(?[iIsS]))?\s*)?\]/gu,id:/#(?[-\w\P{ASCII}]+)/gu,class:/\.(?[-\w\P{ASCII}]+)/gu,comma:/\s*,\s*/g,combinator:/\s*[\s>+~]\s*/g,"pseudo-element":/::(?[-\w\P{ASCII}]+)(?:\((?¶*)\))?/gu,"pseudo-class":/:(?[-\w\P{ASCII}]+)(?:\((?¶*)\))?/gu,universal:/(?:(?\*|[-\w\P{ASCII}]*)\|)?\*/gu,type:/(?:(?\*|[-\w\P{ASCII}]*)\|)?(?[-\w\P{ASCII}]+)/gu},kr=new Set(["combinator","comma"]),Er=(new Set(["not","is","where","has","matches","-moz-any","-webkit-any","nth-child","nth-last-child"]),e=>{switch(e){case"pseudo-element":case"pseudo-class":return new RegExp(wr[e].source.replace("(?¶*)","(?.*)"),"gu");default:return wr[e]}});function Sr(e,t){let r=0,n="";for(;t(r.push({value:e,offset:t}),"".repeat(e.length))))).replace(xr,((e,t,n,o)=>(r.push({value:e,offset:o}),`${t}${"".repeat(n.length)}${t}`)));{let t,n=0;for(;(t=e.indexOf("(",n))>-1;){const o=Sr(e,t);r.push({value:o,offset:t}),e=`${e.substring(0,t)}(${"¶".repeat(o.length-2)})${e.substring(t+o.length)}`,n=t+o.length}}const n=function(e,t=wr){if(!e)return[];const r=[e];for(const[e,n]of Object.entries(t))for(let t=0;t[t,e]));break;default:yield[e,t]}}const Tr=window.wp.data,Ir=window.wp.coreData;function Mr(e){return`.editor-styles-wrapper [data-block="${e}"]:not(.gb-is-root-block):not([data-block-wrapper])`}function Pr(){const{getSelectedBlockClientIds:e}=(0,Tr.useSelect)((e=>e("core/block-editor")),[]),t=e(),r=Rr(),[n,o]=(0,a.useState)([]);return(0,a.useLayoutEffect)((()=>{if(!t.length)return;const e=document.querySelector('iframe[name="editor-canvas"]')?.contentDocument||document;o(t.map((t=>e.querySelector(Mr(t)))).filter((e=>null!==e)))}),[t,r]),n}function Ar(){const{getSelectedBlockClientId:e}=(0,Tr.useSelect)((e=>e("core/block-editor")),[]),t=e(),r=Mr(t),[n,o]=(0,a.useState)(document.querySelector(r)),s=Rr();return(0,a.useLayoutEffect)((()=>{if(!t)return;const e=document.querySelector('iframe[name="editor-canvas"]');if(e)return e.addEventListener("load",(()=>{o(e.contentDocument.querySelector(r))}),{once:!0}),void o(e.contentDocument.querySelector(r));o(document.querySelector(r))}),[t,s]),n}function Rr(){return(0,Tr.useSelect)((e=>{const{getDeviceType:t}=e("core/editor")||{};if("function"==typeof t)return t();const{__experimentalGetPreviewDeviceType:r=()=>""}=e("core/edit-post");return r()}),[])}function Lr({sectionState:e,setSectionState:t,storageKey:r,filtersActive:n=!1,search:o=""}){const a=Object.values(e).every((e=>e)),s=sessionStorage.getItem(r),i=JSON.stringify(e);return!n&&!o||a?n||o||!s||s===i||t(JSON.parse(s)):t((e=>{const t={...e};for(const e in t)t[e]=!0;return t})),{onSectionToggle:(a,s)=>{if(a in e){if(e[a]===s||n||o)return;t((e=>{const t={...e,[a]:s};return sessionStorage.setItem(r,JSON.stringify(t)),t}))}}}}const zr=window.wp.editPost,Dr={header:"MmfVpnbQ85G6UjIw1u5W",label:"YebmhFgupzjyq0N2udmU",options:"yCoIRP0ogL5sZXeHU7_w",dropdown:"FvMzS1_Byw1S16xBCDc2",popover:"aBjtgF5WMv9EShbYATob",control:"uzhd5E8WcQNM0lAKMk7k",inline:"Wh1bsxP7LYgneG5rZTAC",description:"O_Wuw7CS2upgJFqUitvq",close:"fJ5fAm5nhaTBip_S4DxM",pill:"zAOzeKIYT9PG6cQOqjaQ",local:"LA3zREEmXdwWKgHSv35F",dot:"nM0uaXqi_1IsHFDunR9U",labelWrap:"d2v4yBMoHotau1FiSFd4",popoverContent:"uT0q3TLMAkFDgS0reTSK",resetButton:"ibwoScdLkV660uMEhBzT",indent:"nV3hv1krzxIvjVaEp9fc",rule:"Y5oNSpAeWJAycKoyoN_p",button:"dglmO4hyhnrUp4qbMQp2",css:"E8pebkDuLKz7SV12Xc6g"},Fr=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),Br=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));function Nr({selectorGroup:t,editStyle:r,setSearch:n,setLocalTab:a,cancelEditStyle:i,onAtRuleChange:l,canManageStyles:c,openGeneralSidebar:u,type:d,isNested:p=!1}){const h=_r(t[0].replace(".editor-styles-wrapper ","")),m=h[0].name,f=`.${m}`;return(0,e.createElement)("div",{"data-declaration":!0,key:t[0],className:Se(p&&Dr.indent)},(0,e.createElement)("div",null,(0,e.createElement)("span",{"data-selector":!0},f)," ",(0,e.createElement)("span",{"data-bracket":"open"},"{")),(0,e.createElement)("div",{"data-rules":!0,className:Dr.indent},Object.entries(t[1]).map((([t,p])=>(0,e.createElement)("div",{key:t,"data-rule":!0,className:Dr.rule,tabIndex:"0"},(0,e.createElement)("span",{"data-property":t},te(t)),": ",(0,e.createElement)("span",{"data-value":!0},p.valueRaw),";",!!c&&(0,e.createElement)(o.Button,{className:Dr.button,variant:"link",label:(0,s.__)("Go to style source","generateblocks-pro"),showTooltip:!0,size:"small",iconSize:"18",icon:Fr,onClick:async()=>{try{const e={atRule:p.atRule};let o=!1;const s=function(e){let t;return t=Array.isArray(e)?e:[...Or(e)].map((([e])=>e)),t.map((e=>e.content)).join("")}(h.filter(((e,t)=>!(e.name===m&&0===t||"combinator"===e.type&&1===t||(1===t&&"combinator"!==e.type&&(o=!0),0)))));s&&(e.nestedRule=o?`&${s}`:s),"global"===d?(await r(f,e),n(t,d)):"local"===d&&a&&i&&u&&(await i(),n(t,d),a("styles"),u("edit-post/block"),l(p.atRule))}catch(e){console.error(e)}}}))))),(0,e.createElement)("div",{"data-bracket":"close"},"}"))}function jr({matchedSources:t,atRule:r,type:n}){const a=(0,f.applyFilters)("generateblocks.indicators.onEditStyle",(()=>{})),i=(0,f.applyFilters)("generateblocks.indicators.setSearch",(()=>{})),l=(0,f.applyFilters)("generateblocks.indicators.setLocalTab",(()=>{})),c=(0,f.applyFilters)("generateblocks.indicators.cancelEditStyle",(()=>{})),u=(0,f.applyFilters)("generateblocks.indicators.onAtRuleChange",(()=>{})),{canManageStyles:d}=function(){const e=(0,f.applyFilters)("generateblocks.permissions.canManageStyles",(()=>e));return{canManageStyles:e}}(),{openGeneralSidebar:p}=(0,Tr.useDispatch)(zr.store);return Object.keys(t).length>0&&n&&(0,e.createElement)(o.Dropdown,{className:Se(Dr.popover,Dr[n]),contentClassName:Dr.popoverContent,renderToggle:({onToggle:t})=>(0,e.createElement)(o.Button,{className:Se(Dr.dot,Dr[n]),onClick:t}),renderContent:({onClose:h})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.Button,{icon:Br,label:(0,s.__)("Close","generateblocks-pro"),size:"small",className:Dr.close,onClick:h}),(0,e.createElement)(ve.Stack,{direction:"vertical",gap:"2px",className:Dr.css},Object.entries(function(e){const t={};for(const r in e){const n=e[r],o=n.atRule?n.atRule:"all",a=n.selector;t[o]||(t[o]={}),t[o][a]||(t[o][a]={}),t[o][a][r]=n}return t}(t)).map((t=>"all"===t[0]?Object.entries(t[1]).map((t=>(0,e.createElement)(Nr,{key:t[0],selectorGroup:t,atRule:r,editStyle:a,setSearch:i,setLocalTab:l,cancelEditStyle:c,onAtRuleChange:u,canManageStyles:d,openGeneralSidebar:p,type:n}))):(0,e.createElement)("div",{className:Dr.group,key:t[0],"data-at-rule-declaration":!0},(0,e.createElement)("div",{"data-at-rule":t[0]},t[0]," ",(0,e.createElement)("span",{"data-bracket":"open"},"{")),Object.entries(t[1]).map((t=>(0,e.createElement)(Nr,{key:t[0],selectorGroup:t,atRule:r,editStyle:a,setSearch:i,setLocalTab:l,cancelEditStyle:c,onAtRuleChange:u,canManageStyles:d,openGeneralSidebar:p,type:n,isNested:!0}))),(0,e.createElement)("div",{"data-bracket":"close"},"}"))))))})}const Vr=(0,a.memo)((function({dropdownOptions:t,dropdownChildren:r,allowCustomValue:n,usingCustomValue:a,setUsingCustomValue:i,learnMoreUrl:c,learnMoreLabel:u,beforeDropdownMenu:d,menuVisible:p=!1}){return(0,e.createElement)("div",{className:Dr.options},d,p&&(0,e.createElement)(o.DropdownMenu,{className:Dr.dropdown,icon:l,label:(0,s.__)("More options","generateblocks-pro"),controls:t,popoverProps:{className:Dr.popover}},(({onClose:t})=>(0,e.createElement)(e.Fragment,null,r&&r({onClose:t}),n&&(0,e.createElement)(o.MenuGroup,null,(0,e.createElement)(o.MenuItem,{onClick:()=>{i(!a),t()},suffix:a?ke:""},(0,s.__)("Enter Custom Value","generateblocks-pro"))),c&&u&&(0,e.createElement)(o.MenuGroup,null,(0,e.createElement)(o.MenuItem,{icon:ur,iconSize:10,onClick:()=>{window.open(c,"_blank"),t()}},u))))))})),Ur=function(t,r){var n,o=(n=(0,e.useRef)(!0)).current?(n.current=!1,!0):n.current;(0,e.useEffect)((function(){if(!o)return t()}),r)},Wr=["label","hideLabelFromVision","value","help","id","className","onChange","type"],Hr=["ColorPicker"],$r=(0,a.forwardRef)((function(t,r){var n;const{id:i,children:l,label:c,dropdownOptions:u,dropdownChildren:d,learnMoreLabel:p,learnMoreUrl:h,style:m,beforeDropdownMenu:g,afterLabel:b,onVisibilityChange:v,value:y,cssProp:w=!1,fallback:k=!1,as:E=null,allowCustomValue:S=!1,hasCustomValue:x=!1,customValueHelp:C=(0,s.__)("Enter a custom value.","generateblocks-pro"),onChange:_,searchKeywords:O=[],className:T="",alwaysVisible:I=!1,...M}=t,P=(0,f.applyFilters)("generateblocks.control.atRule",""),A=(0,f.applyFilters)("generateblocks.control.currentSelector",""),R=(0,f.applyFilters)("generateblocks.control.filters",{}),L=(0,Tr.useSelect)((e=>{const{getEntityRecords:t}=e(Ir.store),r=t("postType","gblocks_styles",{per_page:-1});return null===r?[]:r.map((e=>({classNameSelector:e.gb_style_selector,className:e.gb_style_selector.replace(".",""),id:e.id})))}),[]),z=`control-wrapper-${br()}`,D=i||`control-${br()}`,F=Ar(),B=F?getComputedStyle(F):null,[N,j]=(0,a.useState)(x&&""!==y),V=S&&N?o.TextControl:E,U=h||d||S,[W,H,$]=(0,yr.useDebouncedInput)(y),[q,G]=(0,a.useState)(null),[Z,K]=(0,a.useState)({}),[Y,Q]=(0,a.useState)(""),[J,X]=(0,a.useState)((()=>qr({cssProp:w,fallback:k,matchedSources:Z,computedStyles:B}))),[ee,re]=(0,a.useState)({[P]:!1}),ne=(0,a.useRef)(),oe=r||ne;(0,a.useLayoutEffect)((()=>{if(!w)return;const e="string"==typeof w?w:Object.keys(w);G(F?he({elements:F,properties:e,computedStyles:B,atRule:P,sources:["tag"]}):null)}),[F,P,A,w,k]),(0,a.useEffect)((()=>{if(!w)return;if(Q(""),K({}),X(""),!q)return;const e="string"==typeof w,t=Object.entries(e?{[w]:y}:w);function r(e="global",t,r){K((n=>{const o={...n,[t]:r};return X(qr({cssProp:w,fallback:k,matchedSources:o,computedStyles:B})),Q(e),o}))}for(const[o,a]of t){var n;if(a)continue;const t=null!==(n=e?q:q[o])&&void 0!==n?n:{},{source:s=null,selector:i="",value:l="",valueRaw:c="",atRule:u=""}=t,d=i.replace(".editor-styles-wrapper ","");if(d===A&&P===u)continue;if([null,"other",""].includes(s)||!l)continue;const p=_r(d),h=!!p&&p[0];if(!h)continue;let m=!1;for(const e of L)if("class"===h.type&&h.name===e.className&&(l!==a||c!==a)){r("global",o,t),m=!0;break}!m&&d.startsWith(".gb-")&&(l!==a||c!==a)&&r("local",o,t)}}),[L,y,A,P,q]);const ae={...M,onChange:e=>{H(e);const t="hide-empty"===R?.activeFilter;re((r=>({...r,[P]:!e&&y&&t})))},value:W,placeholder:J};let se=$;E&&Hr.includes(null!==(n=E?.constructor?.name)&&void 0!==n?n:"")&&(se=W),Ur((()=>{_&&_(W)}),[se]),Ur((()=>{y!==W&&H(y)}),[y]);const ie=a.Children.count(l)>0,le={className:Dr.label},ce=![o.RangeControl].includes(E);if(ce?E===o.AnglePickerControl&&c&&(ae.label=""):(ae.label=c||ae["aria-label"],ae.hideLabelFromVision=!0),ce?(ae.id=D,le.htmlFor=D):le["aria-hidden"]="true",N&&(ae.help=C,Object.keys(ae).forEach((e=>{Wr.includes(e)||delete ae[e]}))),S&&E===o.SelectControl){const{options:e=[]}=ae;e.every((e=>e.value!==W.trim()))&&(e.unshift({label:(0,s.sprintf)( +(0,s.__)("You are editing an at-rule: %s","generateblocks-pro"),S):(0,s.__)("You are creating a new custom at-rule.","generateblocks-pro")),(0,e.createElement)(ge,{editAtRule:S,setShowBuildAtRule:E,allStyles:l,onAtRuleChange:r,setTempAtRule:function(e){w([...y,e])},removeTempAtRule:function(e){w(y.filter((t=>t!==e)))},nestedRule:g,onUpdateKey:f,defaultAtRules:i,setShowAtRuleOptions:h,setEditAtRule:x}))))}const ve=window.gb.components;function ye({editSelector:t="",setShowBuildSelector:r,allStyles:n,onNestedRuleChange:i,setTempSelector:l,removeTempSelector:u,onUpdateKey:d,selectorShortcuts:p,setShowSelectorOptions:h,setEditSelector:m}){const[f,g]=(0,a.useState)(!1),[b,v]=(0,a.useState)(""),[y,w]=(0,a.useState)("");(0,a.useEffect)((()=>{v(t||"")}),[]),(0,a.useEffect)((()=>{b.startsWith("&")&&!f?g(!0):!b.startsWith("&")&&f&&g(!1),k||g(!1)}),[b]);const k=(0,a.useMemo)((()=>{const e=b.replace("&","");return""===b||"&"===b||[":",".","#","["].some((t=>e.startsWith(t)))}),[b]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:c.options},(0,e.createElement)(o.BaseControl,{label:(0,s.__)("Selector","generateblocks-pro"),className:"gb-styles-builder__selector-options--build",id:"class-selector"},(0,e.createElement)(ve.Stack,{className:c.buildSelector,direction:"vertical",gap:"12px"},(0,e.createElement)(o.TextControl,{id:"class-selector",value:b,onChange:e=>v(e)}),(0,e.createElement)(o.ToggleControl,{label:(0,s.__)("Compound selector","generateblocks-pro"),checked:!!f,disabled:!k,onChange:e=>{e&&!b.startsWith("&")&&v("&"+b),!e&&b.startsWith("&")&&v(b.replace("&",""))}}))),Object.entries(p).map((([t,r])=>"default"===t?null:(0,e.createElement)(o.BaseControl,{key:r?.label,label:r?.label,id:""},(0,e.createElement)("div",{className:c.list},r?.items.map((t=>(0,e.createElement)(o.Button,{key:t.value,size:"small",onClick:()=>{const e=t.value===b?"":t.value;v(e)},isPressed:t.value===b},t.label)))))))),(0,e.createElement)("div",{className:c.actions},(0,e.createElement)(o.Button,{variant:"tertiary",onClick:()=>{r(!1),m("")}},(0,s.__)("Cancel","generateblocks-pro")),!t&&(0,e.createElement)(o.Button,{variant:"primary",disabled:!b||"&"===b,onClick:()=>{n[b]?w((0,s.__)("Selector already exists.","generateblocks-pro")):(i(b),l(b),r(!1),h(!1))}},(0,s.__)("Create","generateblocks-pro")),!!t&&(0,e.createElement)(o.Button,{variant:"primary",disabled:!b||"&"===b||t===b,onClick:()=>{n[b]?w((0,s.__)("Selector already exists.","generateblocks-pro")):(d(t,b),i(b),l(b),u(t),r(!1),h(!1),m(""))}},(0,s.__)("Update","generateblocks-pro"))),!!y&&(0,e.createElement)(o.Notice,{status:"error",isDismissible:!1,className:c.notice},y))}const we=(0,a.forwardRef)((function({icon:e,size:t=24,...r},n){return(0,a.cloneElement)(e,{width:t,height:t,...r,ref:n})})),ke=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));function Ee(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t"object"==typeof e&&null!=e&&1===e.nodeType,Ie=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Pe=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightat||a>e&&s=t&&i>=r?a-e-n:s>t&&ir?s-t+o:0,Ae=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var Re=function(){return Re=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?r-1:0),o=1;os)&&(e=t>0?-1:s+1);var i=e+t;i<0?i=o?s:0:i>s&&(i=o?0:s);var l=Ue(i,t<0,r,n,o);return-1===l?e>=a?-1:e:l}function Ue(e,t,r,n,o){void 0===o&&(o=!1);var a=r.length;if(t){for(var s=e;s>=0;s--)if(!n(r[s],s))return s}else for(var i=e;i{var r,n,o,a;if("undefined"==typeof document)return[];const{scrollMode:s,block:i,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!Te(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let m=e;for(;Te(m)&&d(m);){if(m=Ae(m),m===p){h.push(m);break}null!=m&&m===document.body&&Pe(m)&&!Pe(document.documentElement)||null!=m&&Pe(m,u)&&h.push(m)}const f=null!=(n=null==(r=window.visualViewport)?void 0:r.width)?n:innerWidth,g=null!=(a=null==(o=window.visualViewport)?void 0:o.height)?a:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:w,top:k,right:E,bottom:S,left:x}=e.getBoundingClientRect(),{top:C,right:_,bottom:O,left:T}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let I="start"===i||"nearest"===i?k-C:"end"===i?S+O:k+y/2-C+O,P="center"===l?x+w/2-T+_:"end"===l?E+_:x-T;const M=[];for(let e=0;e=0&&x>=0&&S<=g&&E<=f&&k>=o&&S<=c&&x>=u&&E<=a)return M;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),C=parseInt(d.borderTopWidth,10),_=parseInt(d.borderRightWidth,10),O=parseInt(d.borderBottomWidth,10);let T=0,A=0;const R="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-_:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-C-O:0,z="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,D="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(p===t)T="start"===i?I:"end"===i?I-g:"nearest"===i?Me(v,v+g,g,C,O,v+I,v+I+y,y):I-g/2,A="start"===l?P:"center"===l?P-f/2:"end"===l?P-f:Me(b,b+f,f,m,_,b+P,b+P+w,w),T=Math.max(0,T+v),A=Math.max(0,A+b);else{T="start"===i?I-o-C:"end"===i?I-c+O+L:"nearest"===i?Me(o,c,r,C,O+L,I,I+y,y):I-(o+r/2)+L/2,A="start"===l?P-u-m:"center"===l?P-(u+n/2)+R/2:"end"===l?P-a+_+R:Me(u,a,n,m,_+R,P,P+w,w);const{scrollLeft:e,scrollTop:s}=t;T=0===D?0:Math.max(0,Math.min(s+T/D,t.scrollHeight-r/D+L)),A=0===z?0:Math.max(0,Math.min(e+A/z,t.scrollWidth-n/z+R)),I+=s-T,P+=e-A}M.push({el:t,top:T,left:A})}return M})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});r.forEach((function(e){var t=e.el,r=e.top,n=e.left;t.scrollTop=r,t.scrollLeft=n}))}},environment:"undefined"==typeof window?void 0:window};function et(e,t,r){void 0===r&&(r=qe);var n=e["default"+Ye(t)];return void 0!==n?n:r[t]}function tt(e,t,r){void 0===r&&(r=qe);var n=e[t];if(void 0!==n)return n;var o=e["initial"+Ye(t)];return void 0!==o?o:et(e,t,r)}function rt(e){var t=tt(e,"selectedItem"),r=tt(e,"isOpen"),n=function(e){var t=tt(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),o=tt(e,"inputValue");return{highlightedIndex:n<0&&t&&r?e.items.findIndex((function(r){return e.itemToKey(r)===e.itemToKey(t)})):n,isOpen:r,selectedItem:t,inputValue:o}}function nt(e,t,r){var n=e.items,o=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,s=e.isItemDisabled,i=e.itemToKey,l=t.selectedItem,c=t.highlightedIndex;return 0===n.length?-1:void 0===o||c!==o||s(n[o],o)?void 0===a||s(n[a],a)?l?n.findIndex((function(e){return i(l)===i(e)})):r<0&&!s(n[n.length-1],n.length-1)?n.length-1:r>0&&!s(n[0],0)?0:-1:a:o}var ot=function(){return ze};function at(r,n,o,a){void 0===a&&(a={});var s,i=a.document,l=(s=t().useRef(!0),t().useEffect((function(){return s.current=!1,function(){s.current=!0}}),[]),s.current);(0,e.useEffect)((function(){if(r&&!l&&i){var e=r(n);Ge(e,i)}}),o),(0,e.useEffect)((function(){return function(){var e,t;Ge.cancel(),(t=null==(e=i)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}}),[i])}var st=ze;function it(e,t,r){var n;return void 0===r&&(r=!0),Ce({isOpen:!1,highlightedIndex:-1},(null==(n=e.items)?void 0:n.length)&&t>=0&&Ce({selectedItem:e.items[t],isOpen:et(e,"isOpen"),highlightedIndex:et(e,"highlightedIndex")},r&&{inputValue:e.itemToString(e.items[t])}))}function lt(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function ct(e){var t=et(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var ut=Ce({},{environment:Oe().shape({addEventListener:Oe().func.isRequired,removeEventListener:Oe().func.isRequired,document:Oe().shape({createElement:Oe().func.isRequired,getElementById:Oe().func.isRequired,activeElement:Oe().any.isRequired,body:Oe().any.isRequired}).isRequired,Node:Oe().func.isRequired}),itemToString:Oe().func,itemToKey:Oe().func,stateReducer:Oe().func},{getA11yStatusMessage:Oe().func,highlightedIndex:Oe().number,defaultHighlightedIndex:Oe().number,initialHighlightedIndex:Oe().number,isOpen:Oe().bool,defaultIsOpen:Oe().bool,initialIsOpen:Oe().bool,selectedItem:Oe().any,initialSelectedItem:Oe().any,defaultSelectedItem:Oe().any,id:Oe().string,labelId:Oe().string,menuId:Oe().string,getItemId:Oe().func,toggleButtonId:Oe().string,onSelectedItemChange:Oe().func,onHighlightedIndexChange:Oe().func,onStateChange:Oe().func,onIsOpenChange:Oe().func,scrollIntoView:Oe().func});Re(Re({},ut),{items:Oe().array.isRequired,isItemDisabled:Oe().func});var dt=Re(Re({},Xe),{isItemDisabled:function(){return!1}}),pt=ze,ht=0,mt=1,ft=2,gt=3,bt=4,vt=5,yt=6,wt=7,kt=8,Et=9,St=10,xt=11,Ct=12,_t=13,Ot=14,Tt=15,It=16,Pt=17,Mt=18,At=19,Rt=20,Lt=21,zt=Object.freeze({__proto__:null,FunctionCloseMenu:Pt,FunctionOpenMenu:It,FunctionReset:Lt,FunctionSelectItem:At,FunctionSetHighlightedIndex:Mt,FunctionSetInputValue:Rt,FunctionToggleMenu:Tt,ItemClick:Ot,ItemMouseMove:_t,MenuMouseLeave:Ct,ToggleButtonBlur:xt,ToggleButtonClick:ht,ToggleButtonKeyDownArrowDown:mt,ToggleButtonKeyDownArrowUp:ft,ToggleButtonKeyDownCharacter:gt,ToggleButtonKeyDownEnd:yt,ToggleButtonKeyDownEnter:wt,ToggleButtonKeyDownEscape:bt,ToggleButtonKeyDownHome:vt,ToggleButtonKeyDownPageDown:St,ToggleButtonKeyDownPageUp:Et,ToggleButtonKeyDownSpaceButton:kt});function Dt(e,t){var r,n,o=t.type,a=t.props,s=t.altKey;switch(o){case Ot:n={isOpen:et(a,"isOpen"),highlightedIndex:ct(a),selectedItem:a.items[t.index]};break;case gt:var i=t.key,l=""+e.inputValue+i;n={inputValue:l,highlightedIndex:function(e){for(var t=e.keysSoFar,r=e.highlightedIndex,n=e.items,o=e.itemToString,a=e.isItemDisabled,s=t.toLowerCase(),i=0;i=0&&(null==(r=a.items)?void 0:r.length)&&{selectedItem:a.items[e.highlightedIndex]});break;case At:n={selectedItem:t.selectedItem};break;default:return function(e,t,r){var n,o=t.type,a=t.props;switch(o){case r.ItemMouseMove:n={highlightedIndex:t.disabled?-1:t.index};break;case r.MenuMouseLeave:n={highlightedIndex:-1};break;case r.ToggleButtonClick:case r.FunctionToggleMenu:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:nt(a,e,0)};break;case r.FunctionOpenMenu:n={isOpen:!0,highlightedIndex:nt(a,e,0)};break;case r.FunctionCloseMenu:n={isOpen:!1};break;case r.FunctionSetHighlightedIndex:n={highlightedIndex:a.isItemDisabled(a.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case r.FunctionSetInputValue:n={inputValue:t.inputValue};break;case r.FunctionReset:n={highlightedIndex:ct(a),isOpen:et(a,"isOpen"),selectedItem:et(a,"selectedItem"),inputValue:et(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Ce({},e,n)}(e,t,zt)}return Ce({},e,n)}var Ft=["onClick"],Bt=["onMouseLeave","refKey","ref"],Nt=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],jt=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function Vt(t){void 0===t&&(t={}),pt(t,Vt);var r=Ce({},dt,t),n=r.scrollIntoView,o=r.environment,a=r.getA11yStatusMessage,s=function(e,t,r,n){var o=Je(e,t,r,n),a=o[0],s=o[1];return[je(a,t),s]}(Dt,r,rt,lt),i=s[0],l=s[1],c=i.isOpen,u=i.highlightedIndex,d=i.selectedItem,p=i.inputValue,h=(0,e.useRef)(null),m=(0,e.useRef)(null),f=(0,e.useRef)({}),g=(0,e.useRef)(null),b=Ke(r),v=Qe({state:i,props:r}),y=(0,e.useCallback)((function(e){return f.current[b.getItemId(e)]}),[b]);at(a,i,[c,u,d,p],o);var w=function(t){var r=t.highlightedIndex,n=t.isOpen,o=t.itemRefs,a=t.getItemNodeFromIndex,s=t.menuElement,i=t.scrollIntoView,l=(0,e.useRef)(!0);return Ze((function(){r<0||!n||!Object.keys(o.current).length||(!1===l.current?l.current=!0:i(a(r),s))}),[r]),l}({menuElement:m.current,highlightedIndex:u,isOpen:c,itemRefs:f,scrollIntoView:n,getItemNodeFromIndex:y});(0,e.useEffect)((function(){return g.current=Fe((function(e){e({type:Rt,inputValue:""})}),500),function(){g.current.cancel()}}),[]),(0,e.useEffect)((function(){p&&g.current(l)}),[l,p]),st({props:r,state:i}),(0,e.useEffect)((function(){tt(r,"isOpen")&&h.current&&h.current.focus()}),[]);var k=function(t,r,n){var o=(0,e.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,e.useEffect)((function(){if(!t)return ze;var e=n.map((function(e){return e.current}));function a(){o.current.isTouchEnd=!1,o.current.isMouseDown=!0}function s(n){o.current.isMouseDown=!1,He(n.target,e,t)||r()}function i(){o.current.isTouchEnd=!1,o.current.isTouchMove=!1}function l(){o.current.isTouchMove=!0}function c(n){o.current.isTouchEnd=!0,o.current.isTouchMove||He(n.target,e,t,!1)||r()}return t.addEventListener("mousedown",a),t.addEventListener("mouseup",s),t.addEventListener("touchstart",i),t.addEventListener("touchmove",l),t.addEventListener("touchend",c),function(){t.removeEventListener("mousedown",a),t.removeEventListener("mouseup",s),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",l),t.removeEventListener("touchend",c)}}),[n,t,r]),o.current}(o,(0,e.useCallback)((function(){v.current.state.isOpen&&l({type:xt})}),[l,v]),(0,e.useMemo)((function(){return[m,h]}),[m.current,h.current])),E=ot("getMenuProps","getToggleButtonProps");(0,e.useEffect)((function(){c||(f.current={})}),[c]);var S=(0,e.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),l({type:mt,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),l({type:ft,altKey:e.altKey})},Home:function(e){e.preventDefault(),l({type:vt})},End:function(e){e.preventDefault(),l({type:yt})},Escape:function(){v.current.state.isOpen&&l({type:bt})},Enter:function(e){e.preventDefault(),l({type:v.current.state.isOpen?wt:ht})},PageUp:function(e){v.current.state.isOpen&&(e.preventDefault(),l({type:Et}))},PageDown:function(e){v.current.state.isOpen&&(e.preventDefault(),l({type:St}))}," ":function(e){e.preventDefault();var t=v.current.state;t.isOpen?t.inputValue?l({type:gt,key:" "}):l({type:kt}):l({type:ht})}}}),[l,v]),x=(0,e.useCallback)((function(){l({type:Tt})}),[l]),C=(0,e.useCallback)((function(){l({type:Pt})}),[l]),_=(0,e.useCallback)((function(){l({type:It})}),[l]),O=(0,e.useCallback)((function(e){l({type:Mt,highlightedIndex:e})}),[l]),T=(0,e.useCallback)((function(e){l({type:At,selectedItem:e})}),[l]),I=(0,e.useCallback)((function(){l({type:Lt})}),[l]),P=(0,e.useCallback)((function(e){l({type:Rt,inputValue:e})}),[l]),M=(0,e.useCallback)((function(e){var t=void 0===e?{}:e,r=t.onClick,n=xe(t,Ft);return Ce({id:b.labelId,htmlFor:b.toggleButtonId,onClick:Be(r,(function(){var e;null==(e=h.current)||e.focus()}))},n)}),[b]),A=(0,e.useCallback)((function(e,t){var r,n=void 0===e?{}:e,o=n.onMouseLeave,a=n.refKey,s=void 0===a?"ref":a,i=n.ref,c=xe(n,Bt),u=(void 0===t?{}:t).suppressRefError;return E("getMenuProps",void 0!==u&&u,s,m),Ce(((r={})[s]=Ne(i,(function(e){m.current=e})),r.id=b.menuId,r.role="listbox",r["aria-labelledby"]=c&&c["aria-label"]?void 0:""+b.labelId,r.onMouseLeave=Be(o,(function(){l({type:Ct})})),r),c)}),[l,E,b]),R=(0,e.useCallback)((function(e,t){var r,n=void 0===e?{}:e,o=n.onBlur,a=n.onClick;n.onPress;var s=n.onKeyDown,i=n.refKey,c=void 0===i?"ref":i,u=n.ref,d=xe(n,Nt),p=(void 0===t?{}:t).suppressRefError,m=void 0!==p&&p,f=v.current.state,g=Ce(((r={})[c]=Ne(u,(function(e){h.current=e})),r["aria-activedescendant"]=f.isOpen&&f.highlightedIndex>-1?b.getItemId(f.highlightedIndex):"",r["aria-controls"]=b.menuId,r["aria-expanded"]=v.current.state.isOpen,r["aria-haspopup"]="listbox",r["aria-labelledby"]=d&&d["aria-label"]?void 0:""+b.labelId,r.id=b.toggleButtonId,r.role="combobox",r.tabIndex=0,r.onBlur=Be(o,(function(){f.isOpen&&!k.isMouseDown&&l({type:xt})})),r),d);return d.disabled||(g.onClick=Be(a,(function(){l({type:ht})})),g.onKeyDown=Be(s,(function(e){var t=function(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}(e);t&&S[t]?S[t](e):function(e){return/^\S{1}$/.test(e)}(t)&&l({type:gt,key:t})}))),E("getToggleButtonProps",m,c,h),g}),[l,b,v,k,E,S]),L=(0,e.useCallback)((function(e){var t,r=void 0===e?{}:e,n=r.item,o=r.index,a=r.onMouseMove,s=r.onClick,i=r.onMouseDown;r.onPress;var c=r.refKey,u=void 0===c?"ref":c,d=r.disabled,p=r.ref,h=xe(r,jt);void 0!==d&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var m=v.current,g=m.state,y=m.props,E=function(e,t,r,n){var o,a;if(void 0===e){if(void 0===t)throw new Error(n);o=r[t],a=t}else a=void 0===t?r.indexOf(e):t,o=e;return[o,a]}(n,o,y.items,"Pass either item or index to getItemProps!"),S=E[0],x=E[1],C=y.isItemDisabled(S,x),_=Ce(((t={})[u]=Ne(p,(function(e){e&&(f.current[b.getItemId(x)]=e)})),t["aria-disabled"]=C,t["aria-selected"]=S===g.selectedItem,t.id=b.getItemId(x),t.role="option",t),h);return C||(_.onClick=Be(s,(function(){l({type:Ot,index:x})}))),_.onMouseMove=Be(a,(function(){k.isTouchEnd||x===g.highlightedIndex||(w.current=!1,l({type:_t,index:x,disabled:C}))})),_.onMouseDown=Be(i,(function(e){return e.preventDefault()})),_}),[v,b,k,w,l]);return{getToggleButtonProps:R,getLabelProps:M,getMenuProps:A,getItemProps:L,toggleMenu:x,openMenu:_,closeMenu:C,setHighlightedIndex:O,selectItem:T,reset:I,setInputValue:P,highlightedIndex:u,isOpen:c,selectedItem:d,inputValue:p}}Vt.stateChangeTypes=zt,Ce({},ut,{items:Oe().array.isRequired,isItemDisabled:Oe().func,inputValue:Oe().string,defaultInputValue:Oe().string,initialInputValue:Oe().string,inputId:Oe().string,onInputValueChange:Oe().func}),Ce({},Xe,{isItemDisabled:function(){return!1}}),Oe().array,Oe().array,Oe().array,Oe().func,Oe().number,Oe().number,Oe().number,Oe().func,Oe().func,Oe().string,Oe().string;const Ut=()=>(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16"},(0,e.createElement)("path",{d:"M9.414 8l3.293-3.293-1.414-1.414L8 6.586 4.707 3.293 3.293 4.707 6.586 8l-3.293 3.293 1.414 1.414L8 9.414l3.293 3.293 1.414-1.414L9.414 8z"})),Ht=()=>(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16"},(0,e.createElement)("path",{d:"M1 7h14v2H1z"})),Wt=()=>(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16"},(0,e.createElement)("path",{d:"M0 7h4v2H0zm6 0h4v2H6zm6 0h4v2h-4z"})),$t=()=>(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16"},(0,e.createElement)("path",{d:"M1 7h2v2H1zm4 0h2v2H5zm4 0h2v2H9zm4 0h2v2h-2z"})),qt=()=>(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 256 256",style:{opacity:.1}},(0,e.createElement)("rect",{width:"256",height:"256",fill:"none"}),(0,e.createElement)("rect",{x:"32",y:"32",width:"192",height:"192",rx:"16"})),Gt=()=>(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fillRule:"evenodd","aria-hidden":"true",focusable:"false"},(0,e.createElement)("path",{d:"M18.895,1.105C20.368,2.579 20.368,17.421 18.895,18.895C17.421,20.368 2.579,20.368 1.105,18.895C-0.368,17.421 -0.368,2.579 1.105,1.105C2.579,-0.368 17.421,-0.368 18.895,1.105ZM17.116,2.884C18.295,4.063 18.295,15.937 17.116,17.116C15.937,18.295 4.063,18.295 2.884,17.116C1.705,15.937 1.705,4.063 2.884,2.884C4.063,1.705 15.937,1.705 17.116,2.884Z"}),(0,e.createElement)("path",{d:"M15.93,4.07C16.912,5.053 16.912,14.947 15.93,15.93C14.947,16.912 5.053,16.912 4.07,15.93C3.088,14.947 3.088,5.053 4.07,4.07C5.053,3.088 14.947,3.088 15.93,4.07Z"})),Zt=({size:t,...r})=>(0,e.createElement)("svg",{viewBox:"0 0 20 20",width:t||20,height:t||20,...r},(0,e.createElement)("path",{d:"M5 6l5 5 5-5 2 1-7 7-7-7 2-1z",fill:"#0a0a0a",style:{transformOrigin:"center"}})),Kt=({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5A6.5 6.5 0 0 1 6.93 7.931l9.139 9.138A6.473 6.473 0 0 1 12 18.5Zm5.123-2.498a6.5 6.5 0 0 0-9.124-9.124l9.124 9.124ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"})),Yt=({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{d:"M14 22H2V10h12v12ZM3.999 12v8h8v-8h-8ZM22 22h-6V10h6v12Zm-4-10v8h2v-8h-2ZM22 8H2V2h20v6ZM4 4v2h16V4H4Z"})),Qt=({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",fillRule:"evenodd",...r},(0,e.createElement)("path",{d:"M7.95 22v-6.95H2v-2.1h5.95V5H6l3-3 3 3h-1.95v7.95H19V11l3 3-3 3v-1.95h-8.95V22h-2.1Z"})),Jt=({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",fillRule:"evenodd",...r},(0,e.createElement)("path",{d:"M22 2v20H2V2h20Zm-2 2H4v16h16V4Z"}),(0,e.createElement)("path",{d:"M16.586 18H7.414l2-2h5.172l2 2ZM8 9.414v5.172l-2 2V7.414l2 2Zm10 7.172-2-2V9.414l2-2v9.172ZM14.586 8H9.414l-2-2h9.172l-2 2Z"})),Xt=({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",fillRule:"evenodd",...r},(0,e.createElement)("path",{d:"M2 6.036v-4.03c4.298 0 8.596-.026 12.893.001 3.746.071 7.083 3.41 7.107 7.199v12.8h-4.03v-2H20c0-3.645.067-7.29-.002-10.935-.084-2.665-2.439-5.013-5.13-5.064-3.618-.023-7.235-.001-10.852-.001H4v2.03H2Z"}),(0,e.createElement)("path",{d:"M4 10.036v-2H2v2h2ZM4 14.036v-2H2v2h2ZM4 18.031v-2H2v2h2ZM4 22.006v-2H2v2h2Z"}),(0,e.createElement)("path",{d:"M2 20.006h2v2H2zM6 20.006h2v2H6zM10 20.006h2v2h-2zM13.996 20.006h2v2h-2z"})),er=({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{d:"m8.824 5.832 4.448 12.164H11.11l-1.304-3.554H5.43a70.44 70.44 0 0 1-.661 1.768c-.214.607-.429 1.197-.643 1.786H2.001L6.448 5.832h2.376ZM7.609 8.386l-1.536 4.323h3.09L7.609 8.386ZM22.002 17.764a3.626 3.626 0 0 1-.446.232 2.065 2.065 0 0 1-.34.125c-.107.036-.196.036-.268.054h-.178c-.215 0-.411-.036-.572-.125a1.361 1.361 0 0 1-.464-.286 2.916 2.916 0 0 1-.34-.447 2.712 2.712 0 0 1-.232-.518c-.268.268-.518.501-.75.661a4.194 4.194 0 0 1-.679.429 2.666 2.666 0 0 1-.679.214 3.101 3.101 0 0 1-.714.072c-.393 0-.768-.072-1.126-.197a2.638 2.638 0 0 1-.893-.536 2.148 2.148 0 0 1-.607-.821 2.698 2.698 0 0 1-.214-1.09c0-.339.071-.643.232-.893.143-.232.357-.464.607-.643.25-.196.536-.339.858-.482.321-.125.66-.25.982-.357.339-.108.679-.215 1-.322.322-.089.608-.196.858-.304.25-.107.464-.232.607-.375a.622.622 0 0 0 .232-.482.808.808 0 0 0-.143-.482 1.185 1.185 0 0 0-.357-.304 2.376 2.376 0 0 0-.5-.161 3.087 3.087 0 0 0-.536-.053c-.179 0-.357.018-.536.071a1.628 1.628 0 0 0-.464.232 1.41 1.41 0 0 0-.375.411c-.09.161-.161.357-.179.59h-2.09c.036-.518.161-.965.375-1.34.215-.393.5-.697.84-.947.339-.25.714-.446 1.143-.571a5.085 5.085 0 0 1 1.286-.179c.464 0 .929.054 1.358.161.428.107.821.268 1.143.5.339.214.607.518.804.857.196.358.285.786.285 1.269v4.322a.42.42 0 0 0 .125.304.363.363 0 0 0 .322.161c.018 0 .071-.018.179-.036.125-.018.267-.072.446-.161v1.447Zm-3.126-4.019a3.016 3.016 0 0 1-.518.214c-.214.072-.446.125-.696.197-.25.071-.501.143-.769.214-.25.072-.464.161-.678.268a1.481 1.481 0 0 0-.5.357.66.66 0 0 0-.197.483c0 .178.036.339.089.464a.814.814 0 0 0 .233.304.706.706 0 0 0 .321.178c.125.036.25.072.375.072.393 0 .804-.143 1.215-.411.429-.268.804-.679 1.125-1.233v-1.107Z",style:{fillRule:"nonzero"}})),tr=({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{d:"m17.588 3.708.721.595L4.303 18.31l-.595-.721-.533-.98L16.608 3.176l.98.532ZM14.013 2.202l.565.176-12.2 12.2-.176-.565-.191-1.896L12.116 2.011l1.897.191ZM8.696 2.603 2.602 8.696c.979-2.868 3.238-5.134 6.094-6.093ZM20.29 6.41l.56 1.031L7.441 20.85l-1.032-.56-.677-.559L19.731 5.732l.559.678ZM21.795 9.985l.194 1.921L11.906 21.99l-1.921-.194-.545-.169L21.626 9.441l.169.544ZM21.393 15.31c-.978 2.863-3.236 5.128-6.083 6.083l6.083-6.083Z"})),rr=({size:t,...r})=>(0,e.createElement)("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fillRule:"evenodd","aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{d:"M14.694 9.306 21.976 12l-7.282 2.694L12 21.976l-2.694-7.282L2.024 12l7.282-2.694L12 2.024l2.694 7.282Zm-3.832 1.556L7.787 12l3.075 1.138L12 16.213l1.138-3.075L16.213 12l-3.075-1.138L12 7.787l-1.138 3.075Z"}),(0,e.createElement)("path",{d:"m18.746 3.024.81 2.19 2.19.81-2.19.81-.81 2.19-.81-2.19-2.19-.81 2.19-.81.81-2.19ZM18.746 14.976l.81 2.19 2.19.81-2.19.81-.81 2.19-.81-2.19-2.19-.81 2.19-.81.81-2.19Z"})),nr=({size:t,...r})=>(0,e.createElement)("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{d:"m14.879 16.293 1.414 1.415L12 22l-4.293-4.292 1.415-1.415L12 19.172l2.879-2.879ZM6.293 7.708l1.414 1.414L4.829 12l2.878 2.879-1.414 1.414L2 12l4.293-4.292ZM22 12l-4.293 4.293-1.414-1.414L19.172 12l-2.879-2.878 1.414-1.414L22 12Zm-5.707-5.707-1.414 1.415L12 4.829 9.122 7.708 7.707 6.293 12 2l4.293 4.293ZM14.879 12.05l-2.829 2.829-2.928-2.928 2.829-2.829 2.928 2.928Zm-2.929-.099.099.099-.099-.099Z"})),or=({size:t,...r})=>(0,e.createElement)("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{d:"M3.013 4h2v2h-2zM3.013 18h2v2h-2zM7.013 4h2v2h-2zM7.013 18h2v2h-2zM11.013 4h2v2h-2zM11.013 18h2v2h-2zM15.008 4h2v2h-2zM15.008 18h2v2h-2zM18.983 4h2v2h-2zM18.983 18h2v2h-2zM20.998 15.12H2.999l4.284-4.286 2.144 2.143 4.714-4.715 6.857 6.858Z"})),ar=({size:t,...r})=>(0,e.createElement)("svg",{viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("rect",{x:"7.052",y:"10.981",width:"2",height:"2"}),(0,e.createElement)("rect",{x:"11.052",y:"10.981",width:"2",height:"2"}),(0,e.createElement)("rect",{x:"15.052",y:"10.981",width:"2",height:"2"})),sr={button:"rKLQr8TKqzeWpWLGZftZ",control:"zmYGpOnnlJOzZRM2Mxbl",open:"dKwvrnfl7uZHiuJgxKIz",icon:"d5CsyxMsla7yukTJEfVX",dropdown:"RieWgm_TWBPqYEI7qrA3",hidden:"NJR9d9TclQx9DBbC0aZe",item:"LJ4lOpDClk0nYRNJcefv",highlighted:"GhiAFuagoNr03XH9qRSe",selected:"s9OE8j1y5Kgf6LwxIdVm","has-icon":"D39BwOKxZY5h3gDqhmqb",help:"YFfQpRtpVrWQYTjfA46i"};function ir({item:t}){return(0,e.createElement)("span",null,t.label)}function lr({label:t,onChange:r,id:n,help:a,className:i="",items:l=[],selectedItem:c=null,selectedStyle:u="highlight",defaultText:d=(0,s.__)("Select…","generateblocks-pro"),"aria-labelledby":p,"aria-label":h,itemToString:m=e=>e?e.label:"",ItemComponent:f=ir}){const g={items:l,itemToString:m,selectedItem:c};r&&(g.onSelectedItemChange=({selectedItem:e})=>{r(e)});const{isOpen:b,getToggleButtonProps:v,getLabelProps:y,getMenuProps:w,highlightedIndex:k,getItemProps:E}=Vt(g),S=v({id:n,"aria-describedby":a&&n?`${n}__help`:void 0}),x="icon"===u;return(0,e.createElement)(o.BaseControl,{className:Se(sr.control,i),label:t,id:S.id,help:a},(0,e.createElement)("div",{className:sr.header},t&&(0,e.createElement)("div",{...y({className:sr.label})},t),(0,e.createElement)("button",{className:Se(sr.button,b&&sr.open),...S},c?(0,e.createElement)(f,{item:c}):d,(0,e.createElement)("span",{className:sr.icon},(0,e.createElement)(Zt,{size:"12"})))),(0,e.createElement)("ul",{"aria-labelledby":p,"aria-label":h,className:Se(sr.dropdown,!b&&sr.hidden),...w()},b&&l.map(((t,r)=>{const n=c===t,o=k===r;return(0,e.createElement)("li",{key:t.id,className:Se(o&&sr.highlighted,!x&&n&&sr.selected,sr.item,x&&sr["has-icon"]),...E({item:t,index:r})},(0,e.createElement)(f,{item:t}),x&&n&&(0,e.createElement)(we,{icon:ke,size:"18"}))}))))}const cr=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})),ur=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})),dr={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var pr,hr=new Uint8Array(16);function mr(){if(!pr&&!(pr="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pr(hr)}for(var fr=[],gr=0;gr<256;++gr)fr.push((gr+256).toString(16).slice(1));const br=function(e,t,r){if(dr.randomUUID&&!t&&!e)return dr.randomUUID();var n=(e=e||{}).random||(e.rng||mr)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return function(e,t=0){return(fr[e[t+0]]+fr[e[t+1]]+fr[e[t+2]]+fr[e[t+3]]+"-"+fr[e[t+4]]+fr[e[t+5]]+"-"+fr[e[t+6]]+fr[e[t+7]]+"-"+fr[e[t+8]]+fr[e[t+9]]+"-"+fr[e[t+10]]+fr[e[t+11]]+fr[e[t+12]]+fr[e[t+13]]+fr[e[t+14]]+fr[e[t+15]]).toLowerCase()}(n)},vr=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),yr=window.wp.compose,wr={attribute:/\[\s*(?:(?\*|[-\w\P{ASCII}]*)\|)?(?[-\w\P{ASCII}]+)\s*(?:(?\W?=)\s*(?.+?)\s*(\s(?[iIsS]))?\s*)?\]/gu,id:/#(?[-\w\P{ASCII}]+)/gu,class:/\.(?[-\w\P{ASCII}]+)/gu,comma:/\s*,\s*/g,combinator:/\s*[\s>+~]\s*/g,"pseudo-element":/::(?[-\w\P{ASCII}]+)(?:\((?¶*)\))?/gu,"pseudo-class":/:(?[-\w\P{ASCII}]+)(?:\((?¶*)\))?/gu,universal:/(?:(?\*|[-\w\P{ASCII}]*)\|)?\*/gu,type:/(?:(?\*|[-\w\P{ASCII}]*)\|)?(?[-\w\P{ASCII}]+)/gu},kr=new Set(["combinator","comma"]),Er=(new Set(["not","is","where","has","matches","-moz-any","-webkit-any","nth-child","nth-last-child"]),e=>{switch(e){case"pseudo-element":case"pseudo-class":return new RegExp(wr[e].source.replace("(?¶*)","(?.*)"),"gu");default:return wr[e]}});function Sr(e,t){let r=0,n="";for(;t(r.push({value:e,offset:t}),"".repeat(e.length))))).replace(xr,((e,t,n,o)=>(r.push({value:e,offset:o}),`${t}${"".repeat(n.length)}${t}`)));{let t,n=0;for(;(t=e.indexOf("(",n))>-1;){const o=Sr(e,t);r.push({value:o,offset:t}),e=`${e.substring(0,t)}(${"¶".repeat(o.length-2)})${e.substring(t+o.length)}`,n=t+o.length}}const n=function(e,t=wr){if(!e)return[];const r=[e];for(const[e,n]of Object.entries(t))for(let t=0;t[t,e]));break;default:yield[e,t]}}const Tr=window.wp.data,Ir=window.wp.coreData;function Pr(e){return`.editor-styles-wrapper [data-block="${e}"]:not(.gb-is-root-block):not([data-block-wrapper])`}function Mr(){const{getSelectedBlockClientIds:e}=(0,Tr.useSelect)((e=>e("core/block-editor")),[]),t=e(),r=Rr(),[n,o]=(0,a.useState)([]);return(0,a.useLayoutEffect)((()=>{if(!t.length)return;const e=document.querySelector('iframe[name="editor-canvas"]')?.contentDocument||document;o(t.map((t=>e.querySelector(Pr(t)))).filter((e=>null!==e)))}),[t,r]),n}function Ar(){const{getSelectedBlockClientId:e}=(0,Tr.useSelect)((e=>e("core/block-editor")),[]),t=e(),r=Pr(t),[n,o]=(0,a.useState)(document.querySelector(r)),s=Rr();return(0,a.useLayoutEffect)((()=>{if(!t)return;const e=document.querySelector('iframe[name="editor-canvas"]');if(e)return e.addEventListener("load",(()=>{o(e.contentDocument.querySelector(r))}),{once:!0}),void o(e.contentDocument.querySelector(r));o(document.querySelector(r))}),[t,s]),n}function Rr(){return(0,Tr.useSelect)((e=>{const{getDeviceType:t}=e("core/editor")||{};if("function"==typeof t)return t();const{__experimentalGetPreviewDeviceType:r=()=>""}=e("core/edit-post");return r()}),[])}function Lr({sectionState:e,setSectionState:t,storageKey:r,filtersActive:n=!1,search:o=""}){const a=Object.values(e).every((e=>e)),s=sessionStorage.getItem(r),i=JSON.stringify(e);return!n&&!o||a?n||o||!s||s===i||t(JSON.parse(s)):t((e=>{const t={...e};for(const e in t)t[e]=!0;return t})),{onSectionToggle:(a,s)=>{if(a in e){if(e[a]===s||n||o)return;t((e=>{const t={...e,[a]:s};return sessionStorage.setItem(r,JSON.stringify(t)),t}))}}}}const zr=window.wp.editPost,Dr={header:"SPY2Sdnjy2rnJsiQFtsU",label:"Q2UeBb6zVuXmr__my7aT",options:"pGFZX3ruHHyEz0_Fvd_y",dropdown:"qVLiSZAPL7gH85gj3P5g",popover:"keFZJsNURjdJzetmN7q1",control:"S_7Mee_tUZyxquzyyhXf",inline:"EjSdpyoqNnau6XU9m_im",description:"UGqEIHCNur2jkY0KH61H",close:"JtbLZxnFrJKGTnJwHpu1",pill:"wwZXbtCiKgyZfunTtT8d",local:"yZOtiHB_QhT3asx8z66I",dot:"T3R15coh19iViXl7tTQE",labelWrap:"NAK8N2eGrLkJMFhb24Tw",popoverContent:"CrCOieTDiyA3Wo23_Qgn",resetButton:"m6J0Djac6HSlveha2bhT",indent:"JHwKMapQBGU48LjE4edR",rule:"BIescFqR618CiiAp66Ok",button:"ul0em3OHCyNj4T6wHdS3",css:"MHKuQQdbx0VHBoze4CHB"},Fr=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),Br=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));function Nr({selectorGroup:t,editStyle:r,setSearch:n,setLocalTab:a,cancelEditStyle:i,onAtRuleChange:l,canManageStyles:c,openGeneralSidebar:u,type:d,isNested:p=!1}){const h=_r(t[0].replace(".editor-styles-wrapper ","")),m=h[0].name,f=`.${m}`;return(0,e.createElement)("div",{"data-declaration":!0,key:t[0],className:Se(p&&Dr.indent)},(0,e.createElement)("div",null,(0,e.createElement)("span",{"data-selector":!0},f)," ",(0,e.createElement)("span",{"data-bracket":"open"},"{")),(0,e.createElement)("div",{"data-rules":!0,className:Dr.indent},Object.entries(t[1]).map((([t,p])=>(0,e.createElement)("div",{key:t,"data-rule":!0,className:Dr.rule,tabIndex:"0"},(0,e.createElement)("span",{"data-property":t},te(t)),": ",(0,e.createElement)("span",{"data-value":!0},p.valueRaw),";",!!c&&(0,e.createElement)(o.Button,{className:Dr.button,variant:"link",label:(0,s.__)("Go to style source","generateblocks-pro"),showTooltip:!0,size:"small",iconSize:"18",icon:Fr,onClick:async()=>{try{const e={atRule:p.atRule};let o=!1;const s=function(e){let t;return t=Array.isArray(e)?e:[...Or(e)].map((([e])=>e)),t.map((e=>e.content)).join("")}(h.filter(((e,t)=>!(e.name===m&&0===t||"combinator"===e.type&&1===t||(1===t&&"combinator"!==e.type&&(o=!0),0)))));s&&(e.nestedRule=o?`&${s}`:s),"global"===d?(await r(f,e),n(t,d)):"local"===d&&a&&i&&u&&(await i(),n(t,d),a("styles"),u("edit-post/block"),l(p.atRule))}catch(e){console.error(e)}}}))))),(0,e.createElement)("div",{"data-bracket":"close"},"}"))}function jr({matchedSources:t,atRule:r,type:n}){const a=(0,f.applyFilters)("generateblocks.indicators.onEditStyle",(()=>{})),i=(0,f.applyFilters)("generateblocks.indicators.setSearch",(()=>{})),l=(0,f.applyFilters)("generateblocks.indicators.setLocalTab",(()=>{})),c=(0,f.applyFilters)("generateblocks.indicators.cancelEditStyle",(()=>{})),u=(0,f.applyFilters)("generateblocks.indicators.onAtRuleChange",(()=>{})),{canManageStyles:d}=function(){const e=(0,f.applyFilters)("generateblocks.permissions.canManageStyles",(()=>e));return{canManageStyles:e}}(),{openGeneralSidebar:p}=(0,Tr.useDispatch)(zr.store);return Object.keys(t).length>0&&n&&(0,e.createElement)(o.Dropdown,{className:Se(Dr.popover,Dr[n]),contentClassName:Dr.popoverContent,renderToggle:({onToggle:t})=>(0,e.createElement)(o.Button,{className:Se(Dr.dot,Dr[n]),onClick:t}),renderContent:({onClose:h})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.Button,{icon:Br,label:(0,s.__)("Close","generateblocks-pro"),size:"small",className:Dr.close,onClick:h}),(0,e.createElement)(ve.Stack,{direction:"vertical",gap:"2px",className:Dr.css},Object.entries(function(e){const t={};for(const r in e){const n=e[r],o=n.atRule?n.atRule:"all",a=n.selector;t[o]||(t[o]={}),t[o][a]||(t[o][a]={}),t[o][a][r]=n}return t}(t)).map((t=>"all"===t[0]?Object.entries(t[1]).map((t=>(0,e.createElement)(Nr,{key:t[0],selectorGroup:t,atRule:r,editStyle:a,setSearch:i,setLocalTab:l,cancelEditStyle:c,onAtRuleChange:u,canManageStyles:d,openGeneralSidebar:p,type:n}))):(0,e.createElement)("div",{className:Dr.group,key:t[0],"data-at-rule-declaration":!0},(0,e.createElement)("div",{"data-at-rule":t[0]},t[0]," ",(0,e.createElement)("span",{"data-bracket":"open"},"{")),Object.entries(t[1]).map((t=>(0,e.createElement)(Nr,{key:t[0],selectorGroup:t,atRule:r,editStyle:a,setSearch:i,setLocalTab:l,cancelEditStyle:c,onAtRuleChange:u,canManageStyles:d,openGeneralSidebar:p,type:n,isNested:!0}))),(0,e.createElement)("div",{"data-bracket":"close"},"}"))))))})}const Vr=(0,a.memo)((function({dropdownOptions:t,dropdownChildren:r,allowCustomValue:n,usingCustomValue:a,setUsingCustomValue:i,learnMoreUrl:c,learnMoreLabel:u,beforeDropdownMenu:d,menuVisible:p=!1}){return(0,e.createElement)("div",{className:Dr.options},d,p&&(0,e.createElement)(o.DropdownMenu,{className:Dr.dropdown,icon:l,label:(0,s.__)("More options","generateblocks-pro"),controls:t,popoverProps:{className:Dr.popover}},(({onClose:t})=>(0,e.createElement)(e.Fragment,null,r&&r({onClose:t}),n&&(0,e.createElement)(o.MenuGroup,null,(0,e.createElement)(o.MenuItem,{onClick:()=>{i(!a),t()},suffix:a?ke:""},(0,s.__)("Enter Custom Value","generateblocks-pro"))),c&&u&&(0,e.createElement)(o.MenuGroup,null,(0,e.createElement)(o.MenuItem,{icon:ur,iconSize:10,onClick:()=>{window.open(c,"_blank"),t()}},u))))))})),Ur=function(t,r){var n,o=(n=(0,e.useRef)(!0)).current?(n.current=!1,!0):n.current;(0,e.useEffect)((function(){if(!o)return t()}),r)},Hr=["label","hideLabelFromVision","value","help","id","className","onChange","type"],Wr=["ColorPicker"],$r=(0,a.forwardRef)((function(t,r){var n;const{id:i,children:l,label:c,dropdownOptions:u,dropdownChildren:d,learnMoreLabel:p,learnMoreUrl:h,style:m,beforeDropdownMenu:g,afterLabel:b,onVisibilityChange:v,value:y,cssProp:w=!1,fallback:k=!1,as:E=null,allowCustomValue:S=!1,hasCustomValue:x=!1,customValueHelp:C=(0,s.__)("Enter a custom value.","generateblocks-pro"),onChange:_,searchKeywords:O=[],className:T="",alwaysVisible:I=!1,...P}=t,M=(0,f.applyFilters)("generateblocks.control.atRule",""),A=(0,f.applyFilters)("generateblocks.control.currentSelector",""),R=(0,f.applyFilters)("generateblocks.control.filters",{}),L=(0,Tr.useSelect)((e=>{const{getEntityRecords:t}=e(Ir.store),r=t("postType","gblocks_styles",{per_page:-1});return null===r?[]:r.map((e=>({classNameSelector:e.gb_style_selector,className:e.gb_style_selector.replace(".",""),id:e.id})))}),[]),z=`control-wrapper-${br()}`,D=i||`control-${br()}`,F=Ar(),B=F?getComputedStyle(F):null,[N,j]=(0,a.useState)(x&&""!==y),V=S&&N?o.TextControl:E,U=h||d||S,[H,W,$]=(0,yr.useDebouncedInput)(y),[q,G]=(0,a.useState)(null),[Z,K]=(0,a.useState)({}),[Y,Q]=(0,a.useState)(""),[J,X]=(0,a.useState)((()=>qr({cssProp:w,fallback:k,matchedSources:Z,computedStyles:B}))),[ee,re]=(0,a.useState)({[M]:!1}),ne=(0,a.useRef)(),oe=r||ne;(0,a.useLayoutEffect)((()=>{if(!w)return;const e="string"==typeof w?w:Object.keys(w);G(F?he({elements:F,properties:e,computedStyles:B,atRule:M,sources:["tag"]}):null)}),[F,M,A,w,k]),(0,a.useEffect)((()=>{if(!w)return;if(Q(""),K({}),X(""),!q)return;const e="string"==typeof w,t=Object.entries(e?{[w]:y}:w);function r(e="global",t,r){K((n=>{const o={...n,[t]:r};return X(qr({cssProp:w,fallback:k,matchedSources:o,computedStyles:B})),Q(e),o}))}for(const[o,a]of t){var n;if(a)continue;const t=null!==(n=e?q:q[o])&&void 0!==n?n:{},{source:s=null,selector:i="",value:l="",valueRaw:c="",atRule:u=""}=t,d=i.replace(".editor-styles-wrapper ","");if(d===A&&M===u)continue;if([null,"other",""].includes(s)||!l)continue;const p=_r(d),h=!!p&&p[0];if(!h)continue;let m=!1;for(const e of L)if("class"===h.type&&h.name===e.className&&(l!==a||c!==a)){r("global",o,t),m=!0;break}!m&&d.startsWith(".gb-")&&(l!==a||c!==a)&&r("local",o,t)}}),[L,y,A,M,q]);const ae={...P,onChange:e=>{const t=void 0===e?"":e;W(t);const r="hide-empty"===R?.activeFilter;re((e=>({...e,[M]:!t&&y&&r})))},value:H,placeholder:J};let se=$;E&&Wr.includes(null!==(n=E?.constructor?.name)&&void 0!==n?n:"")&&(se=H),Ur((()=>{_&&_(H)}),[se]),Ur((()=>{y!==H&&W(y)}),[y]);const ie=a.Children.count(l)>0,le={className:Dr.label},ce=![o.RangeControl].includes(E);if(ce?E===o.AnglePickerControl&&c&&(ae.label=""):(ae.label=c||ae["aria-label"],ae.hideLabelFromVision=!0),ce?(ae.id=D,le.htmlFor=D):le["aria-hidden"]="true",N&&(ae.help=C,Object.keys(ae).forEach((e=>{Hr.includes(e)||delete ae[e]}))),S&&E===o.SelectControl){const{options:e=[]}=ae;e.every((e=>e.value!==H.trim()))&&(e.unshift({label:(0,s.sprintf)( // Translators: %s is the value of the select control. // Translators: %s is the value of the select control. -(0,s.__)("%s (Custom)","generateblocks-pro"),W),componentValue:W}),ae.options=e)}const ue={menuVisible:U,dropdownOptions:u,dropdownChildren:d,allowCustomValue:S,usingCustomValue:N,setUsingCustomValue:j,learnMoreUrl:h,learnMoreLabel:p,beforeDropdownMenu:g};if(!ue.learnMoreLabel&&"string"==typeof w){const e=w.replace(/([A-Z])/g," $1").trim();ue.learnMoreLabel=(0,s.sprintf)( +(0,s.__)("%s (Custom)","generateblocks-pro"),H),componentValue:H}),ae.options=e)}const ue={menuVisible:U,dropdownOptions:u,dropdownChildren:d,allowCustomValue:S,usingCustomValue:N,setUsingCustomValue:j,learnMoreUrl:h,learnMoreLabel:p,beforeDropdownMenu:g};if(!ue.learnMoreLabel&&"string"==typeof w){const e=w.replace(/([A-Z])/g," $1").trim();ue.learnMoreLabel=(0,s.sprintf)( // Translators: %s is the CSS property. // Translators: %s is the CSS property. -(0,s.__)("Learn more about %s","generateblocks-pro"),e.slice(0,1).toUpperCase()+e.slice(1))}let de=[...O];"string"==typeof w?de.push(w):"object"==typeof w&&de.push(...Object.keys(w)),de=Array.from(new Set([...de,...de.map((e=>te(e)))]));const pe={componentProps:ae,props:t,wrapperRef:oe,label:c,labelProps:le,controlId:D,unusedProps:M,matchType:Y,cssProp:w,searchKeywords:de,alwaysVisible:I},me=(0,f.applyFilters)("generateblocks.control.props",ae,pe);if(E&&ie)throw new Error((0,s.__)("Control component cannot have both a component and children.","generateblocks-pro"));const fe=(0,f.applyFilters)("generateblocks.control.visible",!0,pe,me),ge=I||ee[P]||fe;return(0,e.createElement)("div",{className:Se("gb-styles-builder-control",Dr.control,!c&&Dr.inline,ge?"visible":"hidden",T),id:ie?D:z,ref:oe,style:m},c&&(0,e.createElement)("div",{className:Se("gb-styles-builder-control__header",Dr.header)},(0,e.createElement)("div",{className:Se(Dr.labelWrap,"gb-styles-builder-control__header--label")},(0,e.createElement)("label",{...le}," ",c),b,(0,e.createElement)(jr,{type:Y,matchedSources:Z,atRule:P,currentSelector:A,key:y})),(0,e.createElement)(Vr,{...ue})),!l&&V&&(0,e.createElement)(V,{...me}),l,!c&&(0,e.createElement)(Vr,{...ue}))}));function qr({fallback:e,matchedSources:t,cssProp:r,computedStyles:n=null}){var o;if("string"!=typeof r||!e||!n)return"";const a=t?.[r],s=null!==(o=n?.[r])&&void 0!==o?o:"",i=a?.valueRaw||a?.value||"";return s===a?.value?i:""}$r.Description=function({label:t,children:r,onClick:n}){return r&&(0,e.createElement)(o.MenuGroup,{label:t},(0,e.createElement)("div",{className:Dr.description},r,n&&(0,e.createElement)(o.Button,{className:Dr.close,variant:"none",onClick:n,label:(0,s.__)("Close","generateblocks-pro"),icon:vr})))};const Gr={list:"WPEZvtpxlOepmonsa_vy",options:"t3m0oWRj6QvABZ1BpM_a",swatch:"Hem3vI_alRw0fuRKobVi",circle:"qELjYtUNLBgxG3dVY1MT","swatch-wrapper":"eLgazplyjWUwkBZizkAi",item:"TOkDiwiqR4BjcMYMPy7w",css:"sc53cEZEYka6VEQdlguH",control:"Kxn9txAhUpts4Hh5LFLl",icons:"D7CffuJGzqF34RY4dZ6R",toggle:"dITUNDZ8hTR1v4AVOkT2",body:"bz0ajUyoumIjJylbv_Tr",dropdown:"lgogTEjiaQEXgUYjcw2y","dropdown-popover":"_3vjaqzDcV3IvmQyrxhG","is-disabled":"r20x1Lcqgmja2UoO4kgY","dropdown-content":"VfAkVX3mqRIuRHtj3UQg","dropdown-actions":"BoKWmP79VS5rj8sZcPZ4",edit:"hAtBY8JhM_Gi3WSUSzqr","modal-description":"ceurPSPMJBQM5_zJv5Qj","modal-actions":"Vhpy9djpImFEmyXjfSlx","modal-confirm":"bAk1niPiagGU6oSLJbvA"};function Zr({children:t,label:r,dropdownControls:n,dropdownChildren:a,onAdd:i,onClickDone:l,onClickDelete:c,isEditing:u,id:d,cssProp:h,searchKeywords:m=[],showAdd:f=!0,items:g=[]}){const b=`effect-control-${br()}`;return(0,e.createElement)($r,{label:r,beforeDropdownMenu:(0,e.createElement)("div",{className:Gr.icons},u?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.Button,{variant:"primary",size:"small",icon:ke,onClick:l,label:(0,s.__)("Done","generateblocks-pro"),showTooltip:!0}),(0,e.createElement)(o.Button,{variant:"tertiary",size:"small",isDestructive:!0,icon:cr,onClick:c,label:(0,s.__)("Delete","generateblocks-pro"),showTooltip:!0})):f&&(0,e.createElement)(o.Button,{variant:"tertiary",size:"small",icon:p,onClick:i,label:(0,s.__)("Add new","generateblocks-pro")})),id:d||b,className:`gb-effects-control ${Gr.control}`,dropdownControls:n,dropdownChildren:a,popoverProps:{className:Gr["dropdown-popover"]},searchKeywords:m,cssProp:h,value:g.length>0?g.length:""},(0,e.createElement)("div",{className:Gr.body,style:{display:g.length>0?"block":"none"}},t))}function Kr({children:t}){return(0,e.createElement)(ve.Stack,{className:Gr.edit,gap:"12px","data-component":"EffectEdit"},t)}Zr.LearnMore=({learnMoreLabel:t,learnMoreURL:r,onClose:n})=>t&&r&&(0,e.createElement)(o.MenuGroup,null,(0,e.createElement)(o.MenuItem,{icon:ur,iconSize:10,onClick:()=>{window.open(r,"_blank"),n()}},t)),Zr.DeleteAll=function({label:t,content:r,confirmDelete:n,items:a,setConfirmDelete:i,onClose:l,onDelete:c}){return(0,e.createElement)(e.Fragment,null,n?(0,e.createElement)("div",{className:Gr["dropdown-content"]},r,(0,e.createElement)("div",{className:Gr["dropdown-actions"]},(0,e.createElement)(o.Button,{variant:"secondary",size:"compact",onClick:()=>{i(!1),l()}},(0,s.__)("Cancel","generateblocks-pro")),(0,e.createElement)(o.Button,{isDestructive:!0,variant:"secondary",size:"compact",onClick:()=>{c([]),i(!1),l()}},(0,s.__)("Confirm","generateblocks-pro")))):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuItem,{icon:cr,onClick:()=>{a.length>0&&i(!0)},className:Se(0===a.length&&Gr["is-disabled"]),tabIndex:a.length>0?0:-1},t)))},Zr.PasteModal=function({showPasteStyles:t,setShowPasteStyles:r,property:n,onAddStyles:i,errorMessage:l,learnMoreUrl:c=`https://developer.mozilla.org/en-US/docs/Web/CSS/${n}`}){const[u,d]=(0,a.useState)(""),[p,h]=(0,a.useState)(!0),m=n.charAt(0).toUpperCase()+n.slice(1);return!!t&&(0,e.createElement)(o.Modal,{title:(0,s.sprintf)( +(0,s.__)("Learn more about %s","generateblocks-pro"),e.slice(0,1).toUpperCase()+e.slice(1))}let de=[...O];"string"==typeof w?de.push(w):"object"==typeof w&&de.push(...Object.keys(w)),de=Array.from(new Set([...de,...de.map((e=>te(e)))]));const pe={componentProps:ae,props:t,wrapperRef:oe,label:c,labelProps:le,controlId:D,unusedProps:P,matchType:Y,cssProp:w,searchKeywords:de,alwaysVisible:I},me=(0,f.applyFilters)("generateblocks.control.props",ae,pe);if(E&&ie)throw new Error((0,s.__)("Control component cannot have both a component and children.","generateblocks-pro"));const fe=(0,f.applyFilters)("generateblocks.control.visible",!0,pe,me),ge=I||ee[M]||fe;return(0,e.createElement)("div",{className:Se("gb-styles-builder-control",Dr.control,!c&&Dr.inline,ge?"visible":"hidden",T),id:ie?D:z,ref:oe,style:m},c&&(0,e.createElement)("div",{className:Se("gb-styles-builder-control__header",Dr.header)},(0,e.createElement)("div",{className:Se(Dr.labelWrap,"gb-styles-builder-control__header--label")},(0,e.createElement)("label",{...le}," ",c),b,(0,e.createElement)(jr,{type:Y,matchedSources:Z,atRule:M,currentSelector:A,key:y})),(0,e.createElement)(Vr,{...ue})),!l&&V&&(0,e.createElement)(V,{...me}),l,!c&&(0,e.createElement)(Vr,{...ue}))}));function qr({fallback:e,matchedSources:t,cssProp:r,computedStyles:n=null}){var o;if("string"!=typeof r||!e||!n)return"";const a=t?.[r],s=null!==(o=n?.[r])&&void 0!==o?o:"",i=a?.valueRaw||a?.value||"";return s===a?.value?i:""}$r.Description=function({label:t,children:r,onClick:n}){return r&&(0,e.createElement)(o.MenuGroup,{label:t},(0,e.createElement)("div",{className:Dr.description},r,n&&(0,e.createElement)(o.Button,{className:Dr.close,variant:"none",onClick:n,label:(0,s.__)("Close","generateblocks-pro"),icon:vr})))};const Gr={list:"wbr3xTdE1CNsHtyepu2f",options:"wj1voJ7HsdHvyyjdyjjC",swatch:"IEDsGgHoiewB72FuYnZN",circle:"y4EzXyzXxVg48NODe8vr","swatch-wrapper":"l7nYGZDTccz_q3wRaPi2",item:"DN5M8vx4N_0BCVgoLOes",css:"ocg7EGgem4ZIHgEZQu_6",control:"CBb1Pwp3kYhrOKuepTrF",icons:"zvat3Q07S377Zb0WfL1Y",toggle:"hR7OqMf_5gWUqSRAX3dQ",body:"DUGv5Rxlew6J3N9KogMI",dropdown:"DDhoA91t6p_RSabkPcf3","dropdown-popover":"t3LKxwUzjexhetMplHQl","is-disabled":"nZz2pLiQ2Lo0AaIbySR6","dropdown-content":"uIc9SzfhdI_ANvvmKZcE","dropdown-actions":"nSwxZVH8ScixpQ2BmynZ",edit:"EbWf6NUYLnSr0XfmGdZN","modal-description":"vDX5ZbixYbW0ruJiYEVX","modal-actions":"G4ZmuvVdiWn2_ZQdrNZp","modal-confirm":"fDpqJqlzwUwWvDrplYSg"};function Zr({children:t,label:r,dropdownControls:n,dropdownChildren:a,onAdd:i,onClickDone:l,onClickDelete:c,isEditing:u,id:d,cssProp:h,searchKeywords:m=[],showAdd:f=!0,items:g=[]}){const b=`effect-control-${br()}`;return(0,e.createElement)($r,{label:r,beforeDropdownMenu:(0,e.createElement)("div",{className:Gr.icons},u?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.Button,{variant:"primary",size:"small",icon:ke,onClick:l,label:(0,s.__)("Done","generateblocks-pro"),showTooltip:!0}),(0,e.createElement)(o.Button,{variant:"tertiary",size:"small",isDestructive:!0,icon:cr,onClick:c,label:(0,s.__)("Delete","generateblocks-pro"),showTooltip:!0})):f&&(0,e.createElement)(o.Button,{variant:"tertiary",size:"small",icon:p,onClick:i,label:(0,s.__)("Add new","generateblocks-pro")})),id:d||b,className:`gb-effects-control ${Gr.control}`,dropdownControls:n,dropdownChildren:a,popoverProps:{className:Gr["dropdown-popover"]},searchKeywords:m,cssProp:h,value:g.length>0?g.length:""},(0,e.createElement)("div",{className:Gr.body,style:{display:g.length>0?"block":"none"}},t))}function Kr({children:t}){return(0,e.createElement)(ve.Stack,{className:Gr.edit,gap:"12px","data-component":"EffectEdit"},t)}Zr.LearnMore=({learnMoreLabel:t,learnMoreURL:r,onClose:n})=>t&&r&&(0,e.createElement)(o.MenuGroup,null,(0,e.createElement)(o.MenuItem,{icon:ur,iconSize:10,onClick:()=>{window.open(r,"_blank"),n()}},t)),Zr.DeleteAll=function({label:t,content:r,confirmDelete:n,items:a,setConfirmDelete:i,onClose:l,onDelete:c}){return(0,e.createElement)(e.Fragment,null,n?(0,e.createElement)("div",{className:Gr["dropdown-content"]},r,(0,e.createElement)("div",{className:Gr["dropdown-actions"]},(0,e.createElement)(o.Button,{variant:"secondary",size:"compact",onClick:()=>{i(!1),l()}},(0,s.__)("Cancel","generateblocks-pro")),(0,e.createElement)(o.Button,{isDestructive:!0,variant:"secondary",size:"compact",onClick:()=>{c([]),i(!1),l()}},(0,s.__)("Confirm","generateblocks-pro")))):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuItem,{icon:cr,onClick:()=>{a.length>0&&i(!0)},className:Se(0===a.length&&Gr["is-disabled"]),tabIndex:a.length>0?0:-1},t)))},Zr.PasteModal=function({showPasteStyles:t,setShowPasteStyles:r,property:n,onAddStyles:i,errorMessage:l,learnMoreUrl:c=`https://developer.mozilla.org/en-US/docs/Web/CSS/${n}`}){const[u,d]=(0,a.useState)(""),[p,h]=(0,a.useState)(!0),m=n.charAt(0).toUpperCase()+n.slice(1);return!!t&&(0,e.createElement)(o.Modal,{title:(0,s.sprintf)( // Translators: %s: CSS property string in title case // Translators: %s: CSS property string in title case (0,s.__)("Paste %s Styles","generateblocks-pro"),m),isDismissible:!0,onRequestClose:()=>r(!1),style:{maxWidth:"425px",width:"425px"}},(0,e.createElement)(o.TextareaControl,{rows:5,value:u,onChange:e=>{d(e)},help:l}),(0,e.createElement)("div",{className:Gr["modal-description"]},(0,a.createInterpolateElement)( @@ -29,7 +29,7 @@ (0,s.__)("%s selector","generateblocks-pro"),t.label),showTooltip:!0,isPressed:l===t.value,onClick:()=>{r(t.value),h(!1)},size:"small"},t.label)))),(0,e.createElement)(o.Button,{className:c.more,label:(0,s.__)("Manage selectors","generateblocks-pro"),showTooltip:!0,isPressed:!!d,onClick:()=>{h(!d)},icon:d?rn:tn,size:"small",iconPosition:"right"},(0,s.__)("More","generateblocks-pro")))),!!d&&(0,e.createElement)(e.Fragment,null,!w&&(0,e.createElement)(e.Fragment,null,!!f&&Object.keys(f).length>0&&(0,e.createElement)(o.Notice,{className:c.notice,isDismissible:!1},(0,s.__)("Choose a selector from the list below, or create a new custom one.","generateblocks-pro")),(0,e.createElement)(u,{activeSelectors:x,nestedRule:l,onNestedRuleChange:r,setShowSelectorOptions:h,setShowBuildSelector:k,setEditSelector:S,onDeleteStyle:m,allStyles:t,selectorShortcuts:f,currentSelector:i,allowCustomAdvancedSelector:b}),(0,e.createElement)("div",{className:c.actions},(0,e.createElement)(o.Button,{variant:"tertiary",size:"compact",onClick:()=>h(!1)},(0,s.__)("Cancel","generateblocks-pro")),!!b&&(0,e.createElement)(o.Button,{variant:"primary",size:"compact",showTooltip:!0,label:(0,s.__)("Add a new custom selector","generateblocks-pro"),icon:p,onClick:()=>{k(!0)}},(0,s.__)("New","generateblocks-pro")))),!!w&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.Notice,{className:c.notice,isDismissible:!1},E?(0,s.sprintf)( // translators: %s: selector name. // translators: %s: selector name. -(0,s.__)("You are editing a selector: %s","generateblocks-pro"),E):(0,s.__)("You are creating a new custom selector.","generateblocks-pro")),(0,e.createElement)(ye,{editSelector:E,setShowBuildSelector:k,allStyles:t,onNestedRuleChange:r,setTempSelector:function(e){y([...v,e])},removeTempSelector:function(e){y(v.filter((t=>t!==e)))},onUpdateKey:n,selectorShortcuts:f,setShowSelectorOptions:h,setEditSelector:S}))))}const on=(0,e.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(i.Path,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z"})),an={control:"s1yAQZ1lhdvyK7Rc3Fh6",multiRow:"U9ucXh3pWCfv__xBzHc5",button:"YKOygrEMPs0F3Z_ykrlJ",fallback:"f2m99dKbx_sCD_41l6HW"};function sn({buttons:t,value:r,fallbackValue:n="",onChange:a,className:s,multiRow:i}){return(0,e.createElement)(o.ButtonGroup,{className:Se("gb-button-icon-control",an.control,s,i&&an.multiRow)},Object.values(t).map((t=>(0,e.createElement)(o.Button,{key:t.value,isPrimary:t.value===r,onClick:()=>{a(t.value!==r?t.value:"")},label:t.label,showTooltip:!!t.icon,className:Se(an.button,!r&&n===t.value&&an.fallback)},t.icon?t.icon:t.label))))}(0,f.addFilter)("generateblocks.control.props","generateblocks-pro/button-icon-control/component-props",((e,{props:t})=>sn!==t.as?e:e?.placeholder?{...e,fallbackValue:e.placeholder}:e),10,2);const ln={alignItems:"sGqOB5yAvDyMP6EUQ9So",flexColumn:"s4BUUfX8qtMYr0UIn0VC",justifyContent:"zkJpI_g3ns2yn1c84Tog",flexReverse:"cpP_Kd4muZiI1kRXmjYM",buttonGroup:"b5D9V1FgjJfFX9m813dk",isInherited:"rFUOeZBQQsQTUjQOlKx5",presets:"MhSQw4WJGtyl3tO1UCPo",presetButton:"HVECegTS7Wq9zUojYKwg",preview:"inMuz2hImwcjmM50NjZL",gridTemplateColumns:"nxSoIujYGeTu8bJaTef0"},cn=[{value:"flex-start",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M0 0h16v1H0z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M3.5 2.5h3v7h-3zm5 0h3v5h-3z"})),label:"Align Start"},{value:"center",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M3.5 3.5h3v8h-3zm5 1h3v6h-3z"}),(0,e.createElement)("path",{fill:"currentColor",d:"M0 7h16v1H0z"})),label:"Align Center"},{value:"flex-end",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M0 15h16v1H0z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M3.5 6.5h3v7h-3zm5 2h3v5h-3z"})),label:"Align End"},{value:"stretch",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M0 0h16v1H0zm0 15h16v1H0z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M3.5 2.5h3v11h-3zm5 0h3v11h-3z"})),label:"Stretch"},{value:"baseline",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M0 7h16v1H0z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3H8v7h4V3zm-1 1H9v3h2V4zM7 3H3v9h4V3zM6 4H4v3h2V4z",fill:"currentColor"})),label:"Baseline"}];function un({value:t,onChange:r,flexDirection:n}){const o=(0,a.useMemo)((()=>cn.every((e=>e.value!==t))),[t]);return(0,e.createElement)($r,{as:sn,allowCustomValue:!0,hasCustomValue:o,label:"Align Items",id:"gblocks-align-items",value:t,onChange:r,buttons:cn,cssProp:"alignItems",className:Se(ln.alignItems,n.includes("column")&&ln.flexColumn,n.includes("reverse")&&ln.flexReverse)})}function dn({value:t,onChange:r}){var n;const o=Ar(),s=null!==(n=(0,a.useMemo)((()=>o?he({elements:o,properties:"flexDirection"})?.flexDirection?.value:""),[o]))&&void 0!==n?n:"",i=(0,a.useMemo)((()=>[{label:"Row",value:"row"},{label:"Column",value:"column"},{label:"Row Reverse",value:"row-reverse"},{label:"Column Reverse",value:"column-reverse"}]),[t,s]),l=(0,a.useMemo)((()=>i.every((e=>e.value!==t))),[t]);return(0,e.createElement)($r,{as:sn,multiRow:!0,allowCustomValue:!0,hasCustomValue:l,label:"Flex Direction",id:"gblocks-flex-direction",value:t,onChange:r,buttons:i,cssProp:"flexDirection"})}const pn=[{label:"No Wrap",value:"nowrap"},{label:"Wrap",value:"wrap"},{label:"Reverse Wrap",value:"wrap-reverse"}];function hn({value:t,onChange:r}){const n=(0,a.useMemo)((()=>pn.every((e=>e.value!==t))),[t]);return(0,e.createElement)($r,{as:sn,allowCustomValue:!0,hasCustomValue:n,label:"Flex Wrap",id:"gblocks-flex-wrap",value:t,onChange:r,buttons:pn,cssProp:"flexWrap"})}function mn({onClick:t,value:r}){const n={"1fr":1,"repeat(2, minmax(0, 1fr))":2,"repeat(3, minmax(0, 1fr))":3,"repeat(4, minmax(0, 1fr))":4,"1fr 3fr":2,"3fr 1fr":2,"1fr 1fr 2fr":3,"1fr 2fr 1fr":3,"2fr 1fr 1fr":3,"1fr 3fr 1fr":3,"repeat(5, minmax(0, 1fr))":5,"repeat(6, minmax(0, 1fr))":6};return(0,e.createElement)("div",{className:ln.presets},Object.keys(n).map((a=>(0,e.createElement)(o.Button,{label:a,showTooltip:!0,key:`layout-${a}`,className:ln.presetButton,onClick:()=>t(a),isPressed:a===r,style:{"--grid-template-columns":a}},Array.from({length:n[a]},((t,r)=>(0,e.createElement)("div",{key:`layout-${r}`,className:ln.preview})))))))}function fn({value:t,onChange:r}){const[n,i]=(0,a.useState)(!1);return(0,e.createElement)($r,{label:"Grid Template Columns",id:"grid-template-columns",value:t,cssProp:"gridTemplateColumns"},(0,e.createElement)("div",{className:ln.gridTemplateColumns},(0,e.createElement)(o.TextControl,{id:"grid-template-columns",value:t,onChange:r}),(0,e.createElement)(o.Button,{size:"small",onClick:()=>i(!n),icon:()=>(0,e.createElement)("svg",{style:{width:"100%"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},(0,e.createElement)("rect",{width:"256",height:"256",fill:"none"}),(0,e.createElement)("rect",{x:"32",y:"56",width:"192",height:"144",rx:"8",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),(0,e.createElement)("line",{x1:"96",y1:"56",x2:"96",y2:"200",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),(0,e.createElement)("line",{x1:"160",y1:"56",x2:"160",y2:"200",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),(0,e.createElement)("line",{x1:"32",y1:"104",x2:"224",y2:"104",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),(0,e.createElement)("line",{x1:"32",y1:"152",x2:"224",y2:"152",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"})),isPressed:n,label:(0,s.__)("Choose a preset","generateblocks-pro"),showTooltip:!0})),!!n&&(0,e.createElement)(mn,{value:t,onClick:r}))}const gn=[{value:"flex-start",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M2.5 4.5h3v7h-3zm5 0h3v7h-3z"}),(0,e.createElement)("path",{fill:"currentColor",d:"M0 0h1v16H0z"})),label:"Flex Start"},{value:"center",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M2.5 4.5h3v7h-3zm7 0h3v7h-3z"}),(0,e.createElement)("path",{fill:"currentColor",d:"M7 0h1v16H7z"})),label:"Center"},{value:"flex-end",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M15 0h1v16h-1z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M5.5 4.5h3v7h-3zm5 0h3v7h-3z"})),label:"Flex End"},{value:"space-between",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M15 0h1v16h-1zM0 0h1v16H0z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M10.5 4.5h3v7h-3zm-8 0h3v7h-3z"})),label:"Space Between"},{value:"space-around",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M15 0h1v16h-1zM0 0h1v16H0z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M9.5 4.5h3v7h-3zm-6 0h3v7h-3z"})),label:"Space Around"}];function bn({value:t,onChange:r,flexDirection:n}){const o=(0,a.useMemo)((()=>gn.every((e=>e.value!==t))),[t]);return(0,e.createElement)($r,{as:sn,allowCustomValue:!0,hasCustomValue:o,label:"Justify Content",id:"gblocks-justify-content",value:t,onChange:r,buttons:gn,cssProp:"justifyContent",className:Se(ln.justifyContent,n.includes("column")&&ln.flexColumn,n.includes("reverse")&&ln.flexReverse)})}const vn=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})),yn={wrapper:"EF_Zj9a5xxxy2lEEERHD",action:"iFVXMLsKZb14fQwFzjtr",overrideAction:"Z2u52JP3PVlVgMgtxOoA",units:"ou7mkFi2exmWQF1LFH2A",popover:"kqlSt5nfwpEdpFGofTiF",disabled:"Bh5wvxMbpeD7Old6u5ku"};function wn({value:t,onChange:r,units:n=[],disabled:a}){if(!n.length)return null;const i=[...n];return i.includes(t)||(i[i.length-1]=t),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.DropdownMenu,{className:yn.units,label:(0,s.__)("Select a unit","generateblocks-pro"),icon:null,toggleProps:{children:t||String.fromCharCode(8212),disabled:a},popoverProps:{className:yn.popover,focusOnMount:!0,noArrow:!1}},(({onClose:n})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,null,i.map((a=>(0,e.createElement)(o.MenuItem,{key:a,onClick:()=>{r(a),n()},isSelected:a===t,variant:a===t?"primary":""},a||String.fromCharCode(8212)))),(0,e.createElement)(o.MenuItem,{onClick:()=>{window.open("https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units","_blank").focus()},label:(0,s.__)("Learn more about units","generateblocks-pro"),showTooltip:!0},vn))))))}const kn=["px","em","%","rem","vw","vh","ch","cm","mm","in","pt","pc","ex","lh","rlh","vmin","vmax","vb","vi","svw","svh","svb","svi","svmax","svmin","lvw","lvh","lvb","lvi","lvmax","lvmin","dvw","dvh","dvb","dvi","dvmax","dvmin","fr"],En=["px","em","%","rem","vw","vh","ch"];function Sn(e,t=""){var r,n;if(""===e)return{value:"",unit:t};if("-0"===e)return{value:"-0",unit:""};if(0===e||"0"===e)return{value:"0",unit:""};if(!_(e))return{value:e,unit:"none"};if(window?.CSSUnitValue?.parse)try{var o;const t=window?.CSSUnitValue.parse(e);let r=t?.unit;return"number"===r?r="":"percent"===r&&(r="%"),{value:null!==(o=t?.value)&&void 0!==o?o:"",unit:r}}catch(e){}const a=new RegExp(`(${kn.join("|")})`),s=e?e.toString().toLowerCase().split(a).filter((e=>""!==e)):[];return{value:null!==(r=s[0]?.trim())&&void 0!==r?r:"",unit:null!==(n=s[1]?.trim())&&void 0!==n?n:""}}function xn(t){var r;const{label:n,units:s=En,defaultUnit:i,min:l=0,max:c,step:u,id:d,disabled:p=!1,onChange:h,value:m,placeholder:f,help:g="",onFocus:b=()=>null,overrideAction:v=()=>null}=t,y="string"==typeof i?i:s[0],w=(0,a.useMemo)((()=>Sn(m,y)),[m,y]),k=(0,a.useMemo)((()=>m?void 0:Sn(f,y)),[m,f,y]),[E,S]=(0,a.useState)(null!==(r=w?.value)&&void 0!==r?r:""),x=(0,a.useCallback)((function(e){var t,r;const n=e.key,o=e.target.value;if(isNaN(o))return;let a=o;switch(n){case"ArrowUp":a=+o+1,h(`${a}${null!==(t=w?.unit)&&void 0!==t?t:""}`),S(a);break;case"ArrowDown":a=+o-1,h(`${a}${null!==(r=w?.unit)&&void 0!==r?r:""}`),S(a)}}),[w?.unit]),C=(0,a.useCallback)((function(e){var t,r;const n=Sn(e,y),o=null!==(t=n?.value)&&void 0!==t?t:"";if(S(o),""===o)return void h("");const a=n?.unit&&n.unit?n?.unit:null!==(r=w?.unit)&&void 0!==r?r:"";h(a&&"none"!==a?`${o}${a}`:e)}),[w?.unit,y]),_=(0,a.useCallback)((function(e){w?.value&&h(`${w.value}${e}`)}),[E]);return(0,e.createElement)(o.BaseControl,{label:n,help:g,id:d,className:Se("gb-unit-control",p&&yn.disabled),__nextHasNoMarginBottom:!0},(0,e.createElement)("div",{className:yn.wrapper,"data-component":"UnitControl"},(0,e.createElement)(o.TextControl,{type:"text",value:E,placeholder:k?.value,id:d,min:l,max:c,step:u,autoComplete:"off",disabled:p,onKeyDown:x,onChange:C,onFocus:b}),(0,e.createElement)("div",{className:yn.action},!!v&&(0,e.createElement)("div",{className:yn.overrideAction},v(C)),"none"!==w?.unit&&(0,e.createElement)(wn,{value:w?.unit,disabled:p||1===s.length||""===E,units:s,onChange:_}))))}xn.defaultUnits=En;const Cn={details:"L6HWWaC2QKFnEnN7bIT6",summary:"g114QnXWTrDwrFsE6laq",filtersActive:"ltOJpJtIkjQwu5WzqHDs",summaryIcon:"sIaYnrjcgPiojlFCimMT",separator:"Ij3uz2Tos76qsxTARgIN"};function On({children:t,title:r,onClick:n,open:i=!0,filtersActive:l=!1,search:c=""}){if(!r)throw new Error("PanelSection requires a title");const u=(0,a.useRef)(null);let d;return(l||i)&&(d=!0),(0,e.createElement)("details",{ref:u,className:Se("gb-panel-section",Cn.details,(l||c)&&Cn.filtersActive),open:d,onToggle:()=>{if(n){const e=u.current?.hasAttribute("open");n(e)}}},(0,e.createElement)("summary",{className:Cn.summary},r,(0,e.createElement)(o.VisuallyHidden,null,(0,s.__)("style controls","generateblocks-pro")),(0,e.createElement)("div",{className:Cn.summaryIcon},(0,e.createElement)(we,{icon:i?rn:tn,size:"18"}))),(0,e.createElement)(ve.Stack,{gap:"10px",className:Cn.children},t))}const Tn="gbp-panel-state-layout";function In(t){const{styles:r,onStyleChange:n,filtersActive:i,search:l,opened:c,scrollAfterOpen:u,onToggle:d,initialOpen:p}=t,{display:h="",flexDirection:m="",alignItems:f="",justifyContent:g="",flexWrap:b="",columnGap:v="",rowGap:y="",gridTemplateColumns:w="",gridTemplateRows:k="",gridAutoFlow:E="",flexGrow:S="",flexShrink:x="",flexBasis:C="",gridColumn:_="",gridRow:O="",containerType:T="",containerName:I=""}=r,M=sessionStorage.getItem(Tn),[P,A]=(0,a.useState)((()=>M&&!i?JSON.parse(M):{alignment:!0,grid:!0,flex:!0,containerQueries:!0})),{onSectionToggle:R}=Lr({sectionState:P,setSectionState:A,filtersActive:i,search:l,storageKey:Tn});return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Layout","generateblocks-pro"),initialOpen:p,opened:!!c||void 0,icon:(0,e.createElement)(Yt,null),scrollAfterOpen:u,onToggle:d},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)($r,{as:o.SelectControl,allowCustomValue:!0,label:"Display",value:h,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Block",value:"block"},{label:"Inline Block",value:"inline-block"},{label:"Flex",value:"flex"},{label:"Inline Flex",value:"inline-flex"},{label:"Grid",value:"grid"},{label:"Inline",value:"inline"},{label:"List Item",value:"list-item"},{label:"None",value:"none"}],onChange:e=>n("display",e),searchKeywords:["block","inline-block","flex","inline-flex","grid","inline","list-item"],cssProp:"display"}),(0,e.createElement)(On,{title:"Alignment",onClick:e=>R("alignment",e),open:P.alignment,filtersActive:i,search:l},(0,e.createElement)(un,{flexDirection:m,value:f,onChange:e=>n("alignItems",e!==f?e:"")}),(0,e.createElement)(bn,{flexDirection:m,value:g,onChange:e=>n("justifyContent",e!==g?e:"")}),(0,e.createElement)(o.Flex,null,(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:xn,label:"Column Gap",id:"gblocks-column-gap",value:v,onChange:e=>n("columnGap",e),cssProp:"columnGap"})),(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:xn,label:"Row Gap",id:"gblocks-row-gap",value:y,onChange:e=>n("rowGap",e),cssProp:"rowGap"})))),(0,e.createElement)(On,{title:"Grid Layout",onClick:e=>R("grid",e),open:P.grid,filtersActive:i,search:l},(0,e.createElement)(fn,{value:w,onChange:e=>{n("gridTemplateColumns",e!==w?e:"")}}),(0,e.createElement)($r,{as:o.TextControl,label:"Grid Template Rows",value:k,onChange:e=>n("gridTemplateRows",e),cssProp:"gridTemplateRows"}),(0,e.createElement)($r,{as:o.TextControl,label:"Grid Auto Flow",value:E,onChange:e=>n("gridAutoFlow",e),cssProp:"gridAutoFlow"}),(0,e.createElement)(o.Flex,null,(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:o.TextControl,label:"Grid Column",id:"gblocks-grid-column",value:_,onChange:e=>n("gridColumn",e),cssProp:"gridColumn"})),(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:o.TextControl,label:"Grid Row",id:"gblocks-grid-row",value:O,onChange:e=>n("gridRow",e),cssProp:"gridRow"})))),(0,e.createElement)(On,{title:"Flex Layout",onClick:e=>R("flex",e),open:P.flex,filtersActive:i,search:l},(0,e.createElement)(dn,{value:m,onChange:e=>{n("flexDirection",e!==m?e:"")}}),(0,e.createElement)(hn,{value:b,onChange:e=>n("flexWrap",e!==b?e:"")}),(0,e.createElement)(o.Flex,null,(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:o.TextControl,label:"Flex Grow",id:"gblocks-flex-grow",value:S,onChange:e=>n("flexGrow",e),cssProp:"flexGrow"})),(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:o.TextControl,label:"Flex Shrink",id:"gblocks-flex-shrink",value:x,onChange:e=>n("flexShrink",e),cssProp:"flexShrink"}))),(0,e.createElement)($r,{as:xn,label:"Flex Basis",id:"gblocks-flex-basis",value:C,onChange:e=>n("flexBasis",e),cssProp:"flexBasis"})),(0,e.createElement)(On,{title:"Container Queries",onClick:e=>R("containerQueries",e),open:P.containerQueries,filtersActive:i,search:l},(0,e.createElement)($r,{as:o.SelectControl,allowCustomValue:!0,label:"Container Type",value:T,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Size",value:"size"},{label:"Inline Size",value:"inline-size"},{label:"Normal",value:"normal"}],onChange:e=>n("containerType",e),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro"),cssProp:"containerType"}),(0,e.createElement)($r,{as:o.TextControl,label:"Container Name",id:"gblocks-container-name",value:I,onChange:e=>n("containerName",e),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro"),cssProp:"containerName"}))))}const Mn={panel:"nJ0YOLf4hv4V5YRWMK9W",filtersActive:"Vf9zB1ay0IcmhqekEa44"};function Pn(t){const{styles:r,onStyleChange:n,opened:a,scrollAfterOpen:i,filtersActive:l,search:c,onToggle:u,initialOpen:d}=t,{width:p="",height:h="",minWidth:m="",minHeight:f="",maxWidth:g="",maxHeight:b="",aspectRatio:v=""}=r;return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Sizing","generateblocks-pro"),initialOpen:d,icon:(0,e.createElement)(Qt,null),opened:!!a||void 0,scrollAfterOpen:i,className:Se(Mn.panel,(c||l)&&Mn.filtersActive),onToggle:u},(0,e.createElement)(ve.Stack,{gap:"12px",wrap:!0,className:"gb-styles-builder-panel__content"},(0,e.createElement)(ve.Stack,{gap:"12px",wrap:!0,layout:"flex",direction:"horizontal",className:"gb-styles-builder-panel__content"},(0,e.createElement)($r,{as:xn,label:"Width",id:"width",value:p,onChange:e=>n("width",e),cssProp:"width",fallback:!0}),(0,e.createElement)($r,{as:xn,label:"Height",id:"height",value:h,onChange:e=>n("height",e),cssProp:"height",fallback:!0}),(0,e.createElement)($r,{as:xn,label:"Min Width",id:"min-width",value:m,onChange:e=>n("minWidth",e),cssProp:"minWidth",fallback:!0}),(0,e.createElement)($r,{as:xn,label:"Min Height",id:"min-height",value:f,onChange:e=>n("minHeight",e),cssProp:"minHeight",fallback:!0}),(0,e.createElement)($r,{as:xn,label:"Max Width",id:"max-width",value:g,onChange:e=>n("maxWidth",e),cssProp:"maxWidth",fallback:!0}),(0,e.createElement)($r,{as:xn,label:"Max Height",id:"max-height",value:b,onChange:e=>n("maxHeight",e),cssProp:"maxHeight",fallback:!0})),(0,e.createElement)($r,{as:o.TextControl,label:"Aspect Ratio",id:"gblocks-aspect-ratio",value:v,onChange:e=>n("aspectRatio",e),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro"),cssProp:"aspectRatio",fallback:!0})))}const An=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})),Rn=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})),Ln={component:"Xp7DkjqWuT0J3MPzVhQv"};function zn({sync:t,setSync:r,syncTypes:n=["all","axis"],onClick:a=()=>{}}){const i=n.includes("axis"),l=n.includes("all");return(l||i)&&(0,e.createElement)("div",{className:Ln.component},l&&(0,e.createElement)(o.Button,{icon:An,isPressed:"all"===t,size:"small",iconSize:18,onClick:()=>{if("all"===t)return r(!1),void a(!1);r("all"),a("all")},label:(0,s.__)("Link all sides","generateblocks-pro"),showTooltip:!0}),i&&(0,e.createElement)(o.Button,{icon:Rn,isPressed:"axis"===t,size:"small",iconSize:18,onClick:()=>{if("axis"===t)return r(!1),void a(!1);r("axis"),a("axis")},label:(0,s.__)("Link axis","generateblocks-pro"),showTooltip:!0}))}const Dn={control:"PCFpCriUITvNSDLh29WU",inputs:"pRlQr9CmDu49TywHgBRy",circle:"E6kg5JIRw7FHi2ibUDQp",syncActive:"KGcUQH7pK3XM3yu4Qxqr",top:"IUniyeyRV7mitJGnZJxt",left:"rtZsBhlaymLFTMUYSz5w",right:"a4S6waEBLgbbxc4Gpca9",bottom:"sMqsTM3VAgx5sL0EmorH",label:"iJmJ_aKaNzdrA3YyUsro",syncItems:"gGSuNXklC1RtlLka8Mr7"};function Fn(e){const t={};let r;return e.forEach((e=>{e&&(t[e]?t[e]+=1:t[e]=1,(!r||t[e]>t[r])&&(r=e))})),r||""}function Bn(e){return Object.values(e).reduce(((e,{prop:t,value:r})=>(e[t]=r,e)),{})}function Nn(e,t=[]){var r,n;return null!==(n=(null!==(r=e.find((e=>t.includes(e[0].toLowerCase().trim()))))&&void 0!==r?r:["",""])[1].value)&&void 0!==n?n:""}function jn(t){const{onChange:r,id:n,units:o,label:i="",cssProps:l={},layout:c="circle",syncTypes:u=["all","axis"]}=t,[d,p]=(0,a.useState)(!1),[h,m]=(0,a.useState)(""),f=u.includes("axis"),g=u.includes("all"),b=Object.entries(l),v=(0,a.useMemo)((()=>g&&"all"===d?Fn(b.map((e=>e[1].value))):""),[b,d]),y=(0,a.useMemo)((()=>f&&"axis"===d?Nn(b,["top","bottom"]):""),[b,f,d]),w=(0,a.useMemo)((()=>f&&"axis"===d?Nn(b,["left","right"]):""),[b,f,d]);(0,a.useEffect)((()=>{b.some((e=>!e[1].value))||d||b.every((e=>e[1].value===b[0][1].value))&&!d&&p("all")}),[JSON.stringify(b)]),(0,a.useEffect)((()=>{document.getElementById(h)?.focus()}),[d]);const k=Bn(l),E=[l?.Top?.prop,l?.Bottom?.prop].filter(Boolean),S=[l?.Top?.prop,l?.Bottom?.prop].filter(Boolean);return(0,e.createElement)($r,{id:n,value:Object.values(k).filter(Boolean).join(","),searchKeywords:Object.keys(l),cssProp:k,className:Se(Dn.control),label:i,beforeDropdownMenu:(0,e.createElement)(zn,{sync:d,setSync:p,syncTypes:u,onClick:e=>{if("axis"===e){const e=Nn(b,["top","bottom"]),t=Nn(b,["left","right"]),n={...l};for(const r in n)["top","bottom"].includes(r.toLowerCase().trim())&&(n[r].value=e),["left","right"].includes(r.toLowerCase().trim())&&(n[r].value=t);const o=Bn(n);r(o)}if("all"===e){const e=Fn(b.map((e=>e[1].value)));if(!e)return;const t={...l};for(const r in t)t[r].value=e;const n=Bn(t);r(n)}}})},(0,e.createElement)("div",{className:Se(Dn.inputs,Dn[c],d&&Dn.syncActive)},"all"===d&&(0,e.createElement)($r,{as:xn,id:`${n}-all-control`,value:v,units:o,onChange:e=>{const t={...l};for(const r in t)t[r].value=e;const n=Bn(t);r(n)},onFocus:()=>m(`${n}-all-control`),label:(0,s.__)("All sides","generateblocks-pro"),cssProp:k}),"axis"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{as:xn,label:(0,s.__)("Vertical","generateblocks-pro"),id:`${n}-vertical-control`,value:y,units:o,onChange:e=>{const t={...l};for(const r in t)["top","bottom"].includes(r.toLowerCase().trim())&&(t[r].value=e);const n=Bn(t);r(n)},onFocus:()=>m(`${n}-vertical-control`),cssProp:E}),(0,e.createElement)($r,{as:xn,label:(0,s.__)("Horizontal","generateblocks-pro"),id:`${n}-horizontal-control`,value:w,units:o,onChange:e=>{const t={...l};for(const r in t)["left","right"].includes(r.toLowerCase().trim())&&(t[r].value=e);const n=Bn(t);r(n)},onFocus:()=>m(`${n}-horizontal-control`),cssProp:S})),!1===d&&b.map((t=>{const n=t[1].value,a=t[1].prop,s=`${a}-control`,i=t[0].toLowerCase().trim();return(0,e.createElement)($r,{key:s,className:Se(Dn[i]),as:xn,id:s,value:n,units:o,onChange:e=>{r({[a]:e})},onFocus:()=>m(s),label:t[0],cssProp:a})}))))}function Vn(t){const{styles:r,onStyleChange:n,opened:i,scrollAfterOpen:l,onToggle:c,initialOpen:u}=t,{marginTop:d="",marginRight:p="",marginBottom:h="",marginLeft:m="",paddingTop:f="",paddingRight:g="",paddingBottom:b="",paddingLeft:v=""}=r,y=(0,a.useMemo)((()=>({Top:{prop:"paddingTop",value:f},Left:{prop:"paddingLeft",value:v},Bottom:{prop:"paddingBottom",value:b},Right:{prop:"paddingRight",value:g}})),[f,g,b,v]),w=(0,a.useMemo)((()=>({Top:{prop:"marginTop",value:d},Left:{prop:"marginLeft",value:m},Bottom:{prop:"marginBottom",value:h},Right:{prop:"marginRight",value:p}})),[d,p,h,m]);return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Spacing","generateblocks-pro"),initialOpen:u,icon:(0,e.createElement)(Jt,null),opened:!!i||void 0,scrollAfterOpen:l,onToggle:c},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)(jn,{id:"padding",label:"Padding",cssProps:y,onChange:n}),(0,e.createElement)(jn,{id:"margin",label:"Margin",cssProps:w,onChange:n})))}const Un=window.lodash,Wn={parentControl:"MS1hcxqG_B_dNPZ2hiiz",control:"ZSLmLcDy4r_1MDxj8D9Q",dropdown:"IWyVbLG8N8SDZHTVLCro",colors:"gq0KidCT2MFPMU3Sy9MC",sync:"KskWBtPTKVESQKa8riNL",flexShrink:"lUXQ0Lx1MC1lYwmNDp0N"};function Hn({icon:t}){return"border-none"===t?(0,e.createElement)(Ut,null):"border-solid"===t?(0,e.createElement)(Wt,null):"border-dashed"===t?(0,e.createElement)(Ht,null):"border-dotted"===t?(0,e.createElement)($t,null):"border-default"===t?(0,e.createElement)(qt,null):"borders"===t?(0,e.createElement)(Gt,null):void 0}function $n({value:t,onChange:r}){const n={none:(0,e.createElement)(Hn,{icon:"border-none"}),solid:(0,e.createElement)(Hn,{icon:"border-solid"}),dashed:(0,e.createElement)(Hn,{icon:"border-dashed"}),dotted:(0,e.createElement)(Hn,{icon:"border-dotted"})};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.DropdownMenu,{className:Wn.dropdown,icon:n[t]||(0,e.createElement)(Hn,{icon:"border-default"}),label:(0,s.__)("Select a style","generateblocks-pro")},(({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,null,(0,e.createElement)(o.MenuItem,{icon:(0,e.createElement)(Hn,{icon:"border-default"}),onClick:()=>{r(""),t()}},(0,s.__)("Default","generateblocks-pro")),(0,e.createElement)(o.MenuItem,{icon:(0,e.createElement)(Hn,{icon:"border-none"}),onClick:()=>{r("none"),t()}},"None"),(0,e.createElement)(o.MenuItem,{icon:(0,e.createElement)(Hn,{icon:"border-solid"}),onClick:()=>{r("solid"),t()}},"Solid"),(0,e.createElement)(o.MenuItem,{icon:(0,e.createElement)(Hn,{icon:"border-dashed"}),onClick:()=>{r("dashed"),t()}},"Dashed"),(0,e.createElement)(o.MenuItem,{icon:(0,e.createElement)(Hn,{icon:"border-dotted"}),onClick:()=>{r("dotted"),t()}},"Dotted"))))))}function qn(t){const r=["borderTop","borderRight","borderBottom","borderLeft"],[n,i]=(0,a.useState)("all"),{styles:l,onStyleChange:c,opened:u,scrollAfterOpen:d,onToggle:p,initialOpen:h}=t,{border:m="",borderTopWidth:f="",borderTopStyle:g="",borderTopColor:b="",borderRightWidth:v="",borderRightStyle:y="",borderRightColor:w="",borderBottomWidth:k="",borderBottomStyle:E="",borderBottomColor:S="",borderLeftWidth:x="",borderLeftStyle:C="",borderLeftColor:_="",borderTopLeftRadius:O="",borderTopRightRadius:T="",borderBottomRightRadius:I="",borderBottomLeftRadius:M=""}=l,P={border:m,borderTopWidth:f,borderTopStyle:g,borderTopColor:b,borderRightWidth:v,borderRightStyle:y,borderRightColor:w,borderBottomWidth:k,borderBottomStyle:E,borderBottomColor:S,borderLeftWidth:x,borderLeftStyle:C,borderLeftColor:_},A={borderTop:"Top",borderRight:"Right",borderBottom:"Bottom",borderLeft:"Left"};(0,a.useEffect)((()=>{const e=r.map((e=>Object.entries(P).reduce(((t,[r,n])=>{if(r.startsWith(e)&&n){const o=r.replace(e,"");t={...t,[o]:n}}return t}),{})));e.every((t=>!(0,Un.isEmpty)(t)&&!(0,Un.isEqual)(t,e[0])))&&i(!1)}),[]);const R=(0,a.useCallback)((function(){const e=r.filter((e=>{return P[e+"Width"]||(t=P[e+"Width"],isNaN(parseFloat(t))&&isFinite(t));var t}));if(!e.length)return;const t=e[0],n=Object.entries(P).reduce(((e,[r,n])=>(r.startsWith(t)&&(e[r.replace(t,"")]=n),e)),{}),o=Object.entries(n).reduce(((e,[t,n])=>n?(r.forEach((r=>{e[r+t]=n})),e):e),{});c(o)}),[P,c]),L={"Top Left":{prop:"borderTopLeftRadius",value:O},"Top Right":{prop:"borderTopRightRadius",value:T},"Bottom Left":{prop:"borderBottomLeftRadius",value:M},"Bottom Right":{prop:"borderBottomRightRadius",value:I}},z=(0,a.useMemo)((()=>n?m:Object.values(P).filter(Boolean).join(",")),[P,n]);return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Borders","generateblocks-pro"),initialOpen:h,icon:(0,e.createElement)(Xt,null),opened:!!u||void 0,scrollAfterOpen:d,onToggle:p},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)($r,{label:"Border",id:"gblocks-border",className:Se("gb-borders",Wn.parentControl),beforeDropdownMenu:(0,e.createElement)(zn,{sync:n,setSync:i,syncTypes:["all"],onClick:e=>{e&&R()}}),searchKeywords:Object.keys(P),cssProp:P,value:z},(0,e.createElement)(ve.Stack,{gap:"12px"},r.map(((t,r)=>{if(n&&r>0)return null;const o=n?(0,s.__)("All sides","generateblocks-pro"):A[t],a=n?Object.keys(P):[t+"Width",t+"Style",t+"Color"],i=n?z:[P[t+"Width"],P[t+"Style"],P[t+"Color"]].filter(Boolean).join(","),l=n?"all-sides":t;return(0,e.createElement)($r,{key:l,label:o,searchKeywords:a,value:i},(0,e.createElement)("div",{className:Wn.control,"data-border-area":l},(0,e.createElement)($r,{as:xn,id:"gblocks-"+t+"-width",value:P[t+"Width"]||"",cssProp:!1,"aria-label":`border ${t} width`,onChange:e=>{const r={[t+"Width"]:e};n&&(r.borderRightWidth=e,r.borderBottomWidth=e,r.borderLeftWidth=e),e?P[t+"Style"]||(r[t+"Style"]="solid",n&&(r.borderRightStyle="solid",r.borderBottomStyle="solid",r.borderLeftStyle="solid")):(r[t+"Style"]="",n&&(r.borderRightStyle="",r.borderBottomStyle="",r.borderLeftStyle="")),c(r)}}),(0,e.createElement)($n,{value:P[t+"Style"],onChange:e=>{const r={[t+"Style"]:e};n&&(r.borderRightStyle=e,r.borderBottomStyle=e,r.borderLeftStyle=e),c(r)},"aria-label":`border ${t} style`,className:Wn.flexShrink}),(0,e.createElement)(ve.ColorPicker,{as:ve.ColorPicker,value:P[t+"Color"]||"",alpha:!0,onChange:e=>{const r={[t+"Color"]:e};n&&(r.borderRightColor=e,r.borderBottomColor=e,r.borderLeftColor=e),c(r)},"aria-label":`border ${t} color`})))})))),(0,e.createElement)(jn,{id:"border-radius",label:"Border Radius",onChange:c,cssProps:L,syncTypes:["all"],layout:"corners"})))}const Gn=[{icon:(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})),title:"Align text left",value:"left"},{icon:(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})),title:"Align text center",value:"center"},{icon:(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})),title:"Align text right",value:"right"},{icon:(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})),title:"Justify text",value:"justify"}];function Zn({value:t,onChange:r,cssProp:n}){const o=(0,a.useMemo)((()=>Gn.every((e=>e.value!==t))),[t]);return(0,e.createElement)($r,{allowCustomValue:!0,hasCustomValue:o,as:sn,label:"Text Alignment",id:"text-align",buttons:Gn,value:t,onChange:r,cssProp:n})}const Kn=window.wp.apiFetch;var Yn=r.n(Kn);const Qn={preview:"yHcufASwe2Jc9Z6bbSSe",fallback:"k5bjOpbYApv66i_MPm_d"},Jn=(0,a.memo)((function({font:t,loading:r="lazy",fallbackText:n="",showPreviewSvg:a=!1}){const{name:i,alias:l,preview:c,fontFamily:u,cssVariable:d=""}=t;return(0,e.createElement)("div",{className:Qn.preview},a&&c?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{className:Qn.image,src:c,alt:(0,s.__)("A graphical rendering of the font family","gp-premium"),height:"23",loading:r}),(0,e.createElement)(o.VisuallyHidden,null,n||i)):(0,e.createElement)("span",{className:Qn.fallback,style:{fontFamily:d?`var(${d})`:u}},i," ",l&&`(${l})`))})),Xn="undefined"==typeof AbortController?void 0:new AbortController,eo="generatepress-font-library",to=(0,a.memo)(lr),ro=(0,a.memo)((function({item:t}){return t?(0,e.createElement)(Jn,{font:t}):null}));function no(){const{typographyFontFamilyList:e}=window?.generateBlocksInfo,t=[{id:"default",name:(0,s.__)("Default","generateblocks-pro"),fontFamily:""},{id:"inherit",name:"Inherit",fontFamily:"inherit"},{id:"system",name:"System Font",fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif'}];return e?(e.forEach((e=>{"System Fonts"===e.label&&t.push(...e.options.map((({label:e,value:t},r)=>({id:`system-${r+1}`,name:e,fontFamily:t}))))})),t):[]}function oo({onStyleChange:t,fontFamily:r="",cssProp:n=""}){const[o,i]=(0,a.useState)((()=>no())),[l,c]=(0,a.useState)(r),[u,d]=(0,a.useState)(!1),[p,h]=(0,a.useState)(null),m=(0,yr.debounce)(t,100),f=(0,a.useMemo)((()=>"custom"===p?.id?[p,...o]:o),[p,o.length]),g=(0,a.useMemo)((()=>{const e=r.match(/var\((--[^)]+)\)/);return e?e[1]:null}),[r]);return(0,a.useEffect)((()=>{window?.generateBlocksEditor?.hasGPFontLibrary&&async function(){try{const e=await Yn()({path:"/generatepress-font-library/v1/get-fonts",method:"GET"});if(!e.response)throw new Error("Request failed");i([...no(),...e.response])}catch(e){"AbortError"===e.name&&console.error("Request has been aborted"),Xn?.abort()}}()}),[]),(0,a.useEffect)((()=>{l!==r&&c(r)}),[l,r]),(0,a.useEffect)((()=>{let e=o.find((e=>g===e?.cssVariable||r===e?.fontFamily));if(e)return d(!1),void h(e);if(e={id:"custom",name:r,fontFamily:r},g){const t=g?getComputedStyle(document.documentElement).getPropertyValue(g):null;if(t)return void(e.name=t);d(!0)}e.name=e.name.split(",")[0].trim(),h(e)}),[r,o,g]),(0,e.createElement)($r,{className:"gb-styles-builder__font-family",as:to,label:"Font Family",id:"gblocks-font-family",value:l,onChange:e=>{let t=e?.fontFamily;e?.cssVariable&&(t=`var(${e.cssVariable})`),m("fontFamily",t)},items:f,itemToString:e=>e?.fontFamily||e?.cssVariable?e.cssVariable||e.fontFamily:"",ItemComponent:ro,allowCustomValue:!0,hasCustomValue:u,selectedItem:p,setSelectedItem:h,dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Font Family","generateblocks-pro"),onClick:t},(0,s.__)("Select a font from the list or enter your own custom value.","generateblocks-pro")),learnMoreLabel:(0,s.__)("Manage Fonts","generateblocks-pro"),learnMoreUrl:`/wp-admin/themes.php?page=${eo}`,cssProp:n,selectedStyle:"icon"})}const ao=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),so=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),io=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),lo=[{label:"None",value:"none",icon:(0,e.createElement)(Kt,null)},{label:"Uppercase",value:"uppercase",icon:ao},{label:"Lowercase",value:"lowercase",icon:so},{label:"Capitalize",value:"capitalize",icon:io}];function co({value:t,onChange:r,cssProp:n}){const o=(0,a.useMemo)((()=>lo.every((e=>e.value!==t))),[t]);return(0,e.createElement)($r,{as:sn,allowCustomValue:!0,hasCustomValue:o,label:"Text Transform",id:"gblocks-text-transform",value:t,buttons:lo,onChange:r,cssProp:n})}const uo=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})),po=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})),ho=[{label:"None",value:"none",icon:(0,e.createElement)(Kt,null)},{label:"Underline",value:"underline",icon:uo},{label:"Overline",value:"overline",icon:(0,e.createElement)((({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{d:"M7 4v1h10V4H7zm5 14c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V7H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V7H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"}))),null)},{label:"Line-through",value:"line-through",icon:po}];function mo({value:t,onChange:r,cssProp:n}){return(0,e.createElement)($r,{as:sn,allowCustomValue:!0,label:"Text Decoration",id:"gblocks-text-decoration",value:t,onChange:r,buttons:ho,cssProp:n})}const fo=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})),go=[{label:"None",value:"none",icon:(0,e.createElement)(Kt,null)},{label:"Normal",value:"normal",icon:io},{label:"Italic",value:"italic",icon:fo}];function bo({value:t,onChange:r,cssProp:n}){const o=(0,a.useMemo)((()=>go.every((e=>e.value!==t))),[t]);return(0,e.createElement)($r,{as:sn,allowCustomValue:!0,hasCustomValue:o,label:"Font Style",id:"gblocks-font-style",value:t,onChange:r,buttons:go,cssProp:n})}function vo(t){const{styles:r,onStyleChange:n,opened:a,scrollAfterOpen:i,onToggle:l,initialOpen:c}=t,{fontSize:u="",color:d="",lineHeight:p="",letterSpacing:h="",textAlign:m="",fontWeight:f="",fontStyle:g="",textDecoration:b="",fontFamily:v="",textTransform:y=""}=r;return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Typography","generateblocks-pro"),initialOpen:c,icon:(0,e.createElement)(er,null),opened:!!a||void 0,scrollAfterOpen:i,onToggle:l},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)($r,{as:ve.ColorPicker,label:"Text Color",value:d,onChange:e=>n("color",e),cssProp:"color"}),(0,e.createElement)($r,{as:o.SelectControl,allowCustomValue:!0,label:"Font Weight",id:"gblocks-font-weight",value:f,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Normal",value:"normal"},{label:"Bold",value:"bold"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}],onChange:e=>n("fontWeight",e),cssProp:"fontWeight"}),(0,e.createElement)($r,{as:xn,label:"Font Size",id:"gblocks-font-size",value:u,onChange:e=>n("fontSize",e),fallbackProp:!0,cssProp:"fontSize"}),(0,e.createElement)(bo,{value:g,onChange:e=>n("fontStyle",e),cssProp:"fontStyle"}),(0,e.createElement)(Zn,{value:m,onChange:e=>n("textAlign",e),cssProp:"textAlign"}),(0,e.createElement)(co,{value:y,onChange:e=>n("textTransform",e),cssProp:"textTransform"}),(0,e.createElement)(mo,{value:b,onChange:e=>n("textDecoration",e),cssProp:"textDecoration"}),(0,e.createElement)(o.Flex,null,(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:xn,label:"Line Height",id:"gblocks-line-height",value:p,onChange:e=>n("lineHeight",e),cssProp:"lineHeight",units:[...xn.defaultUnits,""],defaultUnit:""})),(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:xn,label:"Letter Spacing",id:"gblocks-letter-spacing",value:h,onChange:e=>n("letterSpacing",e),cssProp:"letterSpacing"}))),(0,e.createElement)(oo,{fontFamily:v,onStyleChange:n,cssProp:"fontFamily"})))}var yo=r(4190);const wo={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},ko=function(e){var t,r,n=[],o=1;if("number"==typeof e)return{space:"rgb",values:[e>>>16,(65280&e)>>>8,255&e],alpha:1};if("number"==typeof e)return{space:"rgb",values:[e>>>16,(65280&e)>>>8,255&e],alpha:1};if(e=String(e).toLowerCase(),wo[e])n=wo[e].slice(),r="rgb";else if("transparent"===e)o=0,r="rgb",n=[0,0,0];else if("#"===e[0]){var a=e.slice(1),s=a.length;o=1,s<=4?(n=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],4===s&&(o=parseInt(a[3]+a[3],16)/255)):(n=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],8===s&&(o=parseInt(a[6]+a[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),r="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var i=t[1],l="cmyk"===(r=i.replace(/a$/,""))?4:"gray"===r?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===r&&(r=n.shift()),n=n.map((function(e,t){if("%"===e[e.length-1])return e=parseFloat(e)/100,3===t?e:"rgb"===r?255*e:"h"===r[0]?100*e:"l"!==r[0]||t?"lab"===r?125*e:"lch"===r?t<2?150*e:360*e:"o"!==r[0]||t?"oklab"===r?.4*e:"oklch"===r?t<2?.4*e:360*e:e:e:100*e;if("h"===r[t]||2===t&&"h"===r[r.length-1]){if(void 0!==Eo[e])return Eo[e];if(e.endsWith("deg"))return parseFloat(e);if(e.endsWith("turn"))return 360*parseFloat(e);if(e.endsWith("grad"))return 360*parseFloat(e)/400;if(e.endsWith("rad"))return 180*parseFloat(e)/Math.PI}return"none"===e?0:parseFloat(e)})),o=n.length>l?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),r=e.match(/([a-z])/gi)?.join("")?.toLowerCase()||"rgb");return{space:r,values:n,alpha:o}};var Eo={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};const So={control:"OUJ7LVzaxq7e2rCHhJGc",gradient:"K0Xh6sLBOKGlq54ju8lK",preview:"u5sTb9OBuu2Z6_BNsMTg",bar:"ldpL4isspIMrUCUrLHAS",settings:"UxXQpt01aUwtQSbESr8e",setting:"VaGMuZgvmrALRwM8Hgls","gb-styles-builder-control":"ZdM6NILLibKs0vJaYdCm",remove:"sWX7uQcOHk9WuxD6tnUg",stops:"sU6_NtjVO2sOefYGgoa7"};function xo({onChange:t,setCurrentGradient:r,currentGradient:n,index:i}){const{colorStops:l}=n,c=l[i],[u,d]=(0,a.useState)(`${c.type}(${c.value})`),[p,h]=(0,a.useState)(c.length.value);return(0,a.useEffect)((()=>{if(t){const e=["rgb","hsl"],r=ko(function(e){if(String(e).startsWith("var(")){const t=e.match(/\(([^)]+)\)/);if(t){const r=getComputedStyle(document.documentElement).getPropertyValue(t[1]);r&&(e=r)}}return e}(u)),n=1!==r.alpha?[...r.values,r.alpha]:r.values,o=e.includes(r.space)&&1!==r.alpha?r.space+"a":r.space;t({type:o,value:n},{type:"%",value:p})}}),[u,p]),(0,e.createElement)(ve.Stack,{direction:"horizontal",layout:"flex"},(0,e.createElement)(ve.ColorPicker,{"aria-label":"Color",value:u,onChange:d}),(0,e.createElement)("div",{style:{flexGrow:1}},(0,e.createElement)(o.RangeControl,{initialPosition:parseInt(p),label:"Stop",hideLabelFromVision:!0,onChange:h})),(0,e.createElement)(o.Button,{disabled:l.length<3,tooltip:l.length<3?(0,s.__)("At least 2 color stops are required","generateblocks-pro"):null,className:So.remove,icon:Br,onClick:()=>{r((e=>{const t=[...e.colorStops];return t.splice(i,1),{...e,colorStops:t}}))},"aria-label":(0,s.sprintf)( +(0,s.__)("You are editing a selector: %s","generateblocks-pro"),E):(0,s.__)("You are creating a new custom selector.","generateblocks-pro")),(0,e.createElement)(ye,{editSelector:E,setShowBuildSelector:k,allStyles:t,onNestedRuleChange:r,setTempSelector:function(e){y([...v,e])},removeTempSelector:function(e){y(v.filter((t=>t!==e)))},onUpdateKey:n,selectorShortcuts:f,setShowSelectorOptions:h,setEditSelector:S}))))}const on=(0,e.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(i.Path,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z"})),an={control:"UnofI3BhsT7DIti_pKQG",multiRow:"CHjAr3oDItc_Ei3RRROX",button:"cvZ249JsgBL_b3vtK8Sv",fallback:"xEdfT0lWkniW5AACnpxt"};function sn({buttons:t,value:r,fallbackValue:n="",onChange:a,className:s,multiRow:i}){return(0,e.createElement)(o.ButtonGroup,{className:Se("gb-button-icon-control",an.control,s,i&&an.multiRow)},Object.values(t).map((t=>(0,e.createElement)(o.Button,{key:t.value,isPrimary:t.value===r,onClick:()=>{a(t.value!==r?t.value:"")},label:t.label,showTooltip:!!t.icon,className:Se(an.button,!r&&n===t.value&&an.fallback)},t.icon?t.icon:t.label))))}(0,f.addFilter)("generateblocks.control.props","generateblocks-pro/button-icon-control/component-props",((e,{props:t})=>sn!==t.as?e:e?.placeholder?{...e,fallbackValue:e.placeholder}:e),10,2);const ln={alignItems:"VFAmHPT1TFBBIljAeR7m",flexColumn:"Kb3Er53JB_rc7ApXXQW6",justifyContent:"BoLE9XSOsBFiKLK7YQp5",flexReverse:"h32Unw9c539Lz1Q2aMv8",buttonGroup:"zgkkZANZwXqBZgReRDZQ",isInherited:"uLw3ahuDnKx9S5fpzHNn",presets:"KyBT3CpPILZIw3nOozTp",presetButton:"mph0DI7wT2miOOStjFow",preview:"AGUoqbXhTSPwOeqXxdCw",gridTemplateColumns:"D_CiAJK3wC3VO5T56qHB"},cn=[{value:"flex-start",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M0 0h16v1H0z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M3.5 2.5h3v7h-3zm5 0h3v5h-3z"})),label:"Align Start"},{value:"center",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M3.5 3.5h3v8h-3zm5 1h3v6h-3z"}),(0,e.createElement)("path",{fill:"currentColor",d:"M0 7h16v1H0z"})),label:"Align Center"},{value:"flex-end",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M0 15h16v1H0z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M3.5 6.5h3v7h-3zm5 2h3v5h-3z"})),label:"Align End"},{value:"stretch",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M0 0h16v1H0zm0 15h16v1H0z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M3.5 2.5h3v11h-3zm5 0h3v11h-3z"})),label:"Stretch"},{value:"baseline",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M0 7h16v1H0z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3H8v7h4V3zm-1 1H9v3h2V4zM7 3H3v9h4V3zM6 4H4v3h2V4z",fill:"currentColor"})),label:"Baseline"}];function un({value:t,onChange:r,flexDirection:n}){const o=(0,a.useMemo)((()=>cn.every((e=>e.value!==t))),[t]);return(0,e.createElement)($r,{as:sn,allowCustomValue:!0,hasCustomValue:o,label:"Align Items",id:"gblocks-align-items",value:t,onChange:r,buttons:cn,cssProp:"alignItems",className:Se(ln.alignItems,n.includes("column")&&ln.flexColumn,n.includes("reverse")&&ln.flexReverse)})}function dn({value:t,onChange:r}){var n;const o=Ar(),s=null!==(n=(0,a.useMemo)((()=>o?he({elements:o,properties:"flexDirection"})?.flexDirection?.value:""),[o]))&&void 0!==n?n:"",i=(0,a.useMemo)((()=>[{label:"Row",value:"row"},{label:"Column",value:"column"},{label:"Row Reverse",value:"row-reverse"},{label:"Column Reverse",value:"column-reverse"}]),[t,s]),l=(0,a.useMemo)((()=>i.every((e=>e.value!==t))),[t]);return(0,e.createElement)($r,{as:sn,multiRow:!0,allowCustomValue:!0,hasCustomValue:l,label:"Flex Direction",id:"gblocks-flex-direction",value:t,onChange:r,buttons:i,cssProp:"flexDirection"})}const pn=[{label:"No Wrap",value:"nowrap"},{label:"Wrap",value:"wrap"},{label:"Reverse Wrap",value:"wrap-reverse"}];function hn({value:t,onChange:r}){const n=(0,a.useMemo)((()=>pn.every((e=>e.value!==t))),[t]);return(0,e.createElement)($r,{as:sn,allowCustomValue:!0,hasCustomValue:n,label:"Flex Wrap",id:"gblocks-flex-wrap",value:t,onChange:r,buttons:pn,cssProp:"flexWrap"})}function mn({onClick:t,value:r}){const n={"1fr":1,"repeat(2, minmax(0, 1fr))":2,"repeat(3, minmax(0, 1fr))":3,"repeat(4, minmax(0, 1fr))":4,"1fr 3fr":2,"3fr 1fr":2,"1fr 1fr 2fr":3,"1fr 2fr 1fr":3,"2fr 1fr 1fr":3,"1fr 3fr 1fr":3,"repeat(5, minmax(0, 1fr))":5,"repeat(6, minmax(0, 1fr))":6};return(0,e.createElement)("div",{className:ln.presets},Object.keys(n).map((a=>(0,e.createElement)(o.Button,{label:a,showTooltip:!0,key:`layout-${a}`,className:ln.presetButton,onClick:()=>t(a),isPressed:a===r,style:{"--grid-template-columns":a}},Array.from({length:n[a]},((t,r)=>(0,e.createElement)("div",{key:`layout-${r}`,className:ln.preview})))))))}function fn({value:t,onChange:r}){const[n,i]=(0,a.useState)(!1);return(0,e.createElement)($r,{label:"Grid Template Columns",id:"grid-template-columns",value:t,cssProp:"gridTemplateColumns"},(0,e.createElement)("div",{className:ln.gridTemplateColumns},(0,e.createElement)(o.TextControl,{id:"grid-template-columns",value:t,onChange:r}),(0,e.createElement)(o.Button,{size:"small",onClick:()=>i(!n),icon:()=>(0,e.createElement)("svg",{style:{width:"100%"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},(0,e.createElement)("rect",{width:"256",height:"256",fill:"none"}),(0,e.createElement)("rect",{x:"32",y:"56",width:"192",height:"144",rx:"8",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),(0,e.createElement)("line",{x1:"96",y1:"56",x2:"96",y2:"200",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),(0,e.createElement)("line",{x1:"160",y1:"56",x2:"160",y2:"200",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),(0,e.createElement)("line",{x1:"32",y1:"104",x2:"224",y2:"104",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),(0,e.createElement)("line",{x1:"32",y1:"152",x2:"224",y2:"152",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"})),isPressed:n,label:(0,s.__)("Choose a preset","generateblocks-pro"),showTooltip:!0})),!!n&&(0,e.createElement)(mn,{value:t,onClick:r}))}const gn=[{value:"flex-start",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M2.5 4.5h3v7h-3zm5 0h3v7h-3z"}),(0,e.createElement)("path",{fill:"currentColor",d:"M0 0h1v16H0z"})),label:"Flex Start"},{value:"center",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M2.5 4.5h3v7h-3zm7 0h3v7h-3z"}),(0,e.createElement)("path",{fill:"currentColor",d:"M7 0h1v16H7z"})),label:"Center"},{value:"flex-end",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M15 0h1v16h-1z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M5.5 4.5h3v7h-3zm5 0h3v7h-3z"})),label:"Flex End"},{value:"space-between",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M15 0h1v16h-1zM0 0h1v16H0z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M10.5 4.5h3v7h-3zm-8 0h3v7h-3z"})),label:"Space Between"},{value:"space-around",icon:(0,e.createElement)("svg",{"aria-hidden":"true",style:{width:"16px",height:"16px"},viewBox:"0 0 16 16"},(0,e.createElement)("path",{fill:"currentColor",d:"M15 0h1v16h-1zM0 0h1v16H0z"}),(0,e.createElement)("path",{fill:"currentColor",stroke:"currentColor",d:"M9.5 4.5h3v7h-3zm-6 0h3v7h-3z"})),label:"Space Around"}];function bn({value:t,onChange:r,flexDirection:n}){const o=(0,a.useMemo)((()=>gn.every((e=>e.value!==t))),[t]);return(0,e.createElement)($r,{as:sn,allowCustomValue:!0,hasCustomValue:o,label:"Justify Content",id:"gblocks-justify-content",value:t,onChange:r,buttons:gn,cssProp:"justifyContent",className:Se(ln.justifyContent,n.includes("column")&&ln.flexColumn,n.includes("reverse")&&ln.flexReverse)})}const vn=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})),yn={wrapper:"B8VOAqTJqMh6lwIEPHvQ",action:"c6jzdWOpz80VWp1scmAc",overrideAction:"GJQsQEez1XBMEeKZrekA",units:"w0K4iKteMT6yizzo2Hsw",popover:"fPt28OUocui1dDoB1xyu",disabled:"sCx2ZPJ1of6T_tDkH_4c"};function wn({value:t,onChange:r,units:n=[],disabled:a}){if(!n.length)return null;const i=[...n];return i.includes(t)||(i[i.length-1]=t),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.DropdownMenu,{className:yn.units,label:(0,s.__)("Select a unit","generateblocks-pro"),icon:null,toggleProps:{children:t||String.fromCharCode(8212),disabled:a},popoverProps:{className:yn.popover,focusOnMount:!0,noArrow:!1}},(({onClose:n})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,null,i.map((a=>(0,e.createElement)(o.MenuItem,{key:a,onClick:()=>{r(a),n()},isSelected:a===t,variant:a===t?"primary":""},a||String.fromCharCode(8212)))),(0,e.createElement)(o.MenuItem,{onClick:()=>{window.open("https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units","_blank").focus()},label:(0,s.__)("Learn more about units","generateblocks-pro"),showTooltip:!0},vn))))))}const kn=["px","em","%","rem","vw","vh","ch","cm","mm","in","pt","pc","ex","lh","rlh","vmin","vmax","vb","vi","svw","svh","svb","svi","svmax","svmin","lvw","lvh","lvb","lvi","lvmax","lvmin","dvw","dvh","dvb","dvi","dvmax","dvmin","fr"],En=["px","em","%","rem","vw","vh","ch"];function Sn(e,t=""){var r,n;if(""===e)return{value:"",unit:t};if("-0"===e)return{value:"-0",unit:""};if(0===e||"0"===e)return{value:"0",unit:""};if(!_(e))return{value:e,unit:"none"};if(window?.CSSUnitValue?.parse)try{var o;const t=window?.CSSUnitValue.parse(e);let r=t?.unit;return"number"===r?r="":"percent"===r&&(r="%"),{value:null!==(o=t?.value)&&void 0!==o?o:"",unit:r}}catch(e){}const a=new RegExp(`(${kn.join("|")})`),s=e?e.toString().toLowerCase().split(a).filter((e=>""!==e)):[];return{value:null!==(r=s[0]?.trim())&&void 0!==r?r:"",unit:null!==(n=s[1]?.trim())&&void 0!==n?n:""}}function xn(t){var r;const{label:n,units:s=En,defaultUnit:i,min:l=0,max:c,step:u,id:d,disabled:p=!1,onChange:h,value:m,placeholder:f,help:g="",onFocus:b=()=>null,overrideAction:v=()=>null}=t,y="string"==typeof i?i:s[0],w=(0,a.useMemo)((()=>Sn(m,y)),[m,y]),k=(0,a.useMemo)((()=>m?void 0:Sn(f,y)),[m,f,y]),[E,S]=(0,a.useState)(null!==(r=w?.value)&&void 0!==r?r:""),x=(0,a.useCallback)((function(e){var t,r;const n=e.key,o=e.target.value;if(isNaN(o))return;let a=o;switch(n){case"ArrowUp":a=+o+1,h(`${a}${null!==(t=w?.unit)&&void 0!==t?t:""}`),S(a);break;case"ArrowDown":a=+o-1,h(`${a}${null!==(r=w?.unit)&&void 0!==r?r:""}`),S(a)}}),[w?.unit]),C=(0,a.useCallback)((function(e){var t,r;const n=Sn(e,y),o=null!==(t=n?.value)&&void 0!==t?t:"";if(S(o),""===o)return void h("");const a=n?.unit&&n.unit?n?.unit:null!==(r=w?.unit)&&void 0!==r?r:"";h(a&&"none"!==a?`${o}${a}`:e)}),[w?.unit,y]),_=(0,a.useCallback)((function(e){w?.value&&h(`${w.value}${e}`)}),[E]);return(0,e.createElement)(o.BaseControl,{label:n,help:g,id:d,className:Se("gb-unit-control",p&&yn.disabled),__nextHasNoMarginBottom:!0},(0,e.createElement)("div",{className:yn.wrapper,"data-component":"UnitControl"},(0,e.createElement)(o.TextControl,{type:"text",value:E,placeholder:k?.value,id:d,min:l,max:c,step:u,autoComplete:"off",disabled:p,onKeyDown:x,onChange:C,onFocus:b}),(0,e.createElement)("div",{className:yn.action},!!v&&(0,e.createElement)("div",{className:yn.overrideAction},v(C)),"none"!==w?.unit&&(0,e.createElement)(wn,{value:w?.unit,disabled:p||1===s.length||""===E,units:s,onChange:_}))))}xn.defaultUnits=En;const Cn={details:"o1lCSUrpCUlc5A93xPrJ",summary:"rpgdg0SSQiGRARSyFlSS",filtersActive:"cyuju2GJDbWyqf5U9L3l",summaryIcon:"HGkaFei6kut9o_uLvDjM",separator:"mQGCsCZDSgE9pRJOnwia"};function On({children:t,title:r,onClick:n,open:i=!0,filtersActive:l=!1,search:c=""}){if(!r)throw new Error("PanelSection requires a title");const u=(0,a.useRef)(null);let d;return(l||i)&&(d=!0),(0,e.createElement)("details",{ref:u,className:Se("gb-panel-section",Cn.details,(l||c)&&Cn.filtersActive),open:d,onToggle:()=>{if(n){const e=u.current?.hasAttribute("open");n(e)}}},(0,e.createElement)("summary",{className:Cn.summary},r,(0,e.createElement)(o.VisuallyHidden,null,(0,s.__)("style controls","generateblocks-pro")),(0,e.createElement)("div",{className:Cn.summaryIcon},(0,e.createElement)(we,{icon:i?rn:tn,size:"18"}))),(0,e.createElement)(ve.Stack,{gap:"10px",className:Cn.children},t))}const Tn="gbp-panel-state-layout";function In(t){const{styles:r,onStyleChange:n,filtersActive:i,search:l,opened:c,scrollAfterOpen:u,onToggle:d,initialOpen:p}=t,{display:h="",flexDirection:m="",alignItems:f="",justifyContent:g="",flexWrap:b="",columnGap:v="",rowGap:y="",gridTemplateColumns:w="",gridTemplateRows:k="",gridAutoFlow:E="",flexGrow:S="",flexShrink:x="",flexBasis:C="",gridColumn:_="",gridRow:O="",containerType:T="",containerName:I=""}=r,P=sessionStorage.getItem(Tn),[M,A]=(0,a.useState)((()=>P&&!i?JSON.parse(P):{alignment:!0,grid:!0,flex:!0,containerQueries:!0})),{onSectionToggle:R}=Lr({sectionState:M,setSectionState:A,filtersActive:i,search:l,storageKey:Tn});return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Layout","generateblocks-pro"),initialOpen:p,opened:!!c||void 0,icon:(0,e.createElement)(Yt,null),scrollAfterOpen:u,onToggle:d},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)($r,{as:o.SelectControl,allowCustomValue:!0,label:"Display",value:h,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Block",value:"block"},{label:"Inline Block",value:"inline-block"},{label:"Flex",value:"flex"},{label:"Inline Flex",value:"inline-flex"},{label:"Grid",value:"grid"},{label:"Inline",value:"inline"},{label:"List Item",value:"list-item"},{label:"None",value:"none"}],onChange:e=>n("display",e),searchKeywords:["block","inline-block","flex","inline-flex","grid","inline","list-item"],cssProp:"display"}),(0,e.createElement)(On,{title:"Alignment",onClick:e=>R("alignment",e),open:M.alignment,filtersActive:i,search:l},(0,e.createElement)(un,{flexDirection:m,value:f,onChange:e=>n("alignItems",e!==f?e:"")}),(0,e.createElement)(bn,{flexDirection:m,value:g,onChange:e=>n("justifyContent",e!==g?e:"")}),(0,e.createElement)(o.Flex,null,(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:xn,label:"Column Gap",id:"gblocks-column-gap",value:v,onChange:e=>n("columnGap",e),cssProp:"columnGap"})),(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:xn,label:"Row Gap",id:"gblocks-row-gap",value:y,onChange:e=>n("rowGap",e),cssProp:"rowGap"})))),(0,e.createElement)(On,{title:"Grid Layout",onClick:e=>R("grid",e),open:M.grid,filtersActive:i,search:l},(0,e.createElement)(fn,{value:w,onChange:e=>{n("gridTemplateColumns",e!==w?e:"")}}),(0,e.createElement)($r,{as:o.TextControl,label:"Grid Template Rows",value:k,onChange:e=>n("gridTemplateRows",e),cssProp:"gridTemplateRows"}),(0,e.createElement)($r,{as:o.TextControl,label:"Grid Auto Flow",value:E,onChange:e=>n("gridAutoFlow",e),cssProp:"gridAutoFlow"}),(0,e.createElement)(o.Flex,null,(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:o.TextControl,label:"Grid Column",id:"gblocks-grid-column",value:_,onChange:e=>n("gridColumn",e),cssProp:"gridColumn"})),(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:o.TextControl,label:"Grid Row",id:"gblocks-grid-row",value:O,onChange:e=>n("gridRow",e),cssProp:"gridRow"})))),(0,e.createElement)(On,{title:"Flex Layout",onClick:e=>R("flex",e),open:M.flex,filtersActive:i,search:l},(0,e.createElement)(dn,{value:m,onChange:e=>{n("flexDirection",e!==m?e:"")}}),(0,e.createElement)(hn,{value:b,onChange:e=>n("flexWrap",e!==b?e:"")}),(0,e.createElement)(o.Flex,null,(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:o.TextControl,label:"Flex Grow",id:"gblocks-flex-grow",value:S,onChange:e=>n("flexGrow",e),cssProp:"flexGrow"})),(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:o.TextControl,label:"Flex Shrink",id:"gblocks-flex-shrink",value:x,onChange:e=>n("flexShrink",e),cssProp:"flexShrink"}))),(0,e.createElement)($r,{as:xn,label:"Flex Basis",id:"gblocks-flex-basis",value:C,onChange:e=>n("flexBasis",e),cssProp:"flexBasis"})),(0,e.createElement)(On,{title:"Container Queries",onClick:e=>R("containerQueries",e),open:M.containerQueries,filtersActive:i,search:l},(0,e.createElement)($r,{as:o.SelectControl,allowCustomValue:!0,label:"Container Type",value:T,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Size",value:"size"},{label:"Inline Size",value:"inline-size"},{label:"Normal",value:"normal"}],onChange:e=>n("containerType",e),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro"),cssProp:"containerType"}),(0,e.createElement)($r,{as:o.TextControl,label:"Container Name",id:"gblocks-container-name",value:I,onChange:e=>n("containerName",e),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro"),cssProp:"containerName"}))))}const Pn={panel:"ySp1_zkvicNdYxsDc9Tg",filtersActive:"namiLqYFPoXSBrbIaUMs"};function Mn(t){const{styles:r,onStyleChange:n,opened:a,scrollAfterOpen:i,filtersActive:l,search:c,onToggle:u,initialOpen:d}=t,{width:p="",height:h="",minWidth:m="",minHeight:f="",maxWidth:g="",maxHeight:b="",aspectRatio:v=""}=r;return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Sizing","generateblocks-pro"),initialOpen:d,icon:(0,e.createElement)(Qt,null),opened:!!a||void 0,scrollAfterOpen:i,className:Se(Pn.panel,(c||l)&&Pn.filtersActive),onToggle:u},(0,e.createElement)(ve.Stack,{gap:"12px",wrap:!0,className:"gb-styles-builder-panel__content"},(0,e.createElement)(ve.Stack,{gap:"12px",wrap:!0,layout:"flex",direction:"horizontal",className:"gb-styles-builder-panel__content"},(0,e.createElement)($r,{as:xn,label:"Width",id:"width",value:p,onChange:e=>n("width",e),cssProp:"width",fallback:!0}),(0,e.createElement)($r,{as:xn,label:"Height",id:"height",value:h,onChange:e=>n("height",e),cssProp:"height",fallback:!0}),(0,e.createElement)($r,{as:xn,label:"Min Width",id:"min-width",value:m,onChange:e=>n("minWidth",e),cssProp:"minWidth",fallback:!0}),(0,e.createElement)($r,{as:xn,label:"Min Height",id:"min-height",value:f,onChange:e=>n("minHeight",e),cssProp:"minHeight",fallback:!0}),(0,e.createElement)($r,{as:xn,label:"Max Width",id:"max-width",value:g,onChange:e=>n("maxWidth",e),cssProp:"maxWidth",fallback:!0}),(0,e.createElement)($r,{as:xn,label:"Max Height",id:"max-height",value:b,onChange:e=>n("maxHeight",e),cssProp:"maxHeight",fallback:!0})),(0,e.createElement)($r,{as:o.TextControl,label:"Aspect Ratio",id:"gblocks-aspect-ratio",value:v,onChange:e=>n("aspectRatio",e),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro"),cssProp:"aspectRatio",fallback:!0})))}const An=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})),Rn=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})),Ln={component:"x1Ic1Ll1wI1vcqsur8Mz"};function zn({sync:t,setSync:r,syncTypes:n=["all","axis"],onClick:a=()=>{}}){const i=n.includes("axis"),l=n.includes("all");return(l||i)&&(0,e.createElement)("div",{className:Ln.component},l&&(0,e.createElement)(o.Button,{icon:An,isPressed:"all"===t,size:"small",iconSize:18,onClick:()=>{if("all"===t)return r(!1),void a(!1);r("all"),a("all")},label:(0,s.__)("Link all sides","generateblocks-pro"),showTooltip:!0}),i&&(0,e.createElement)(o.Button,{icon:Rn,isPressed:"axis"===t,size:"small",iconSize:18,onClick:()=>{if("axis"===t)return r(!1),void a(!1);r("axis"),a("axis")},label:(0,s.__)("Link axis","generateblocks-pro"),showTooltip:!0}))}const Dn={control:"uLOXs5mIjq23fWdLWa3k",inputs:"TvuhW9CdmGXLAA9il_YK",circle:"FnMClCYu3ERvyT65sLhY",syncActive:"mg3aRxMNkJswlLXmbc_t",top:"QElevkje66lfTl4cuwr2",left:"CPM5pS5rzn1Oa0W6R7FH",right:"vv_IKEQ1ZCdZNnSQRNA8",bottom:"ajRN30F56YZPDW8WVFX1",label:"OQfw2jErVUghY4ELWRXQ",syncItems:"sHjKPywBYBsV2H0Jryvw"};function Fn(e){const t={};let r;return e.forEach((e=>{e&&(t[e]?t[e]+=1:t[e]=1,(!r||t[e]>t[r])&&(r=e))})),r||""}function Bn(e){return Object.values(e).reduce(((e,{prop:t,value:r})=>(e[t]=r,e)),{})}function Nn(e,t=[]){var r,n;return null!==(n=(null!==(r=e.find((e=>t.includes(e[0].toLowerCase().trim()))))&&void 0!==r?r:["",""])[1].value)&&void 0!==n?n:""}function jn(t){const{onChange:r,id:n,units:o,label:i="",cssProps:l={},layout:c="circle",syncTypes:u=["all","axis"]}=t,[d,p]=(0,a.useState)(!1),[h,m]=(0,a.useState)(""),f=u.includes("axis"),g=u.includes("all"),b=Object.entries(l),v=(0,a.useMemo)((()=>g&&"all"===d?Fn(b.map((e=>e[1].value))):""),[b,d]),y=(0,a.useMemo)((()=>f&&"axis"===d?Nn(b,["top","bottom"]):""),[b,f,d]),w=(0,a.useMemo)((()=>f&&"axis"===d?Nn(b,["left","right"]):""),[b,f,d]);(0,a.useEffect)((()=>{b.some((e=>!e[1].value))||d||b.every((e=>e[1].value===b[0][1].value))&&!d&&p("all")}),[JSON.stringify(b)]),(0,a.useEffect)((()=>{document.getElementById(h)?.focus()}),[d]);const k=Bn(l),E=[l?.Top?.prop,l?.Bottom?.prop].filter(Boolean),S=[l?.Top?.prop,l?.Bottom?.prop].filter(Boolean);return(0,e.createElement)($r,{id:n,value:Object.values(k).filter(Boolean).join(","),searchKeywords:Object.keys(l),cssProp:k,className:Se(Dn.control),label:i,beforeDropdownMenu:(0,e.createElement)(zn,{sync:d,setSync:p,syncTypes:u,onClick:e=>{if("axis"===e){const e=Nn(b,["top","bottom"]),t=Nn(b,["left","right"]),n={...l};for(const r in n)["top","bottom"].includes(r.toLowerCase().trim())&&(n[r].value=e),["left","right"].includes(r.toLowerCase().trim())&&(n[r].value=t);const o=Bn(n);r(o)}if("all"===e){const e=Fn(b.map((e=>e[1].value)));if(!e)return;const t={...l};for(const r in t)t[r].value=e;const n=Bn(t);r(n)}}})},(0,e.createElement)("div",{className:Se(Dn.inputs,Dn[c],d&&Dn.syncActive)},"all"===d&&(0,e.createElement)($r,{as:xn,id:`${n}-all-control`,value:v,units:o,onChange:e=>{const t={...l};for(const r in t)t[r].value=e;const n=Bn(t);r(n)},onFocus:()=>m(`${n}-all-control`),label:(0,s.__)("All sides","generateblocks-pro"),cssProp:k,searchKeywords:[i]}),"axis"===d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{as:xn,label:(0,s.__)("Vertical","generateblocks-pro"),id:`${n}-vertical-control`,value:y,units:o,onChange:e=>{const t={...l};for(const r in t)["top","bottom"].includes(r.toLowerCase().trim())&&(t[r].value=e);const n=Bn(t);r(n)},onFocus:()=>m(`${n}-vertical-control`),cssProp:E,searchKeywords:[i]}),(0,e.createElement)($r,{as:xn,label:(0,s.__)("Horizontal","generateblocks-pro"),id:`${n}-horizontal-control`,value:w,units:o,onChange:e=>{const t={...l};for(const r in t)["left","right"].includes(r.toLowerCase().trim())&&(t[r].value=e);const n=Bn(t);r(n)},onFocus:()=>m(`${n}-horizontal-control`),cssProp:S})),!1===d&&b.map((t=>{const n=t[1].value,a=t[1].prop,s=`${a}-control`,l=t[0].toLowerCase().trim();return(0,e.createElement)($r,{key:s,className:Se(Dn[l]),as:xn,id:s,value:n,units:o,onChange:e=>{r({[a]:e})},onFocus:()=>m(s),label:t[0],cssProp:a,searchKeywords:[i]})}))))}function Vn(t){const{styles:r,onStyleChange:n,opened:i,scrollAfterOpen:l,onToggle:c,initialOpen:u}=t,{marginTop:d="",marginRight:p="",marginBottom:h="",marginLeft:m="",paddingTop:f="",paddingRight:g="",paddingBottom:b="",paddingLeft:v=""}=r,y=(0,a.useMemo)((()=>({Top:{prop:"paddingTop",value:f},Left:{prop:"paddingLeft",value:v},Bottom:{prop:"paddingBottom",value:b},Right:{prop:"paddingRight",value:g}})),[f,g,b,v]),w=(0,a.useMemo)((()=>({Top:{prop:"marginTop",value:d},Left:{prop:"marginLeft",value:m},Bottom:{prop:"marginBottom",value:h},Right:{prop:"marginRight",value:p}})),[d,p,h,m]);return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Spacing","generateblocks-pro"),initialOpen:u,icon:(0,e.createElement)(Jt,null),opened:!!i||void 0,scrollAfterOpen:l,onToggle:c},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)(jn,{id:"padding",label:"Padding",cssProps:y,onChange:n}),(0,e.createElement)(jn,{id:"margin",label:"Margin",cssProps:w,onChange:n})))}const Un=window.lodash,Hn={parentControl:"LRvHIGv_KGa2bSMR9Jaz",control:"Vnf_lJBS5iuXn9zbu5MR",dropdown:"EeCMoXJgf8PSan_tp3sw",colors:"tucdNfG9RtPOLhlEaywP",sync:"TUCdF7Lx0BYwXfg5yjhx",flexShrink:"sHuHr5kM6xOBOFFfmGpr"};function Wn({icon:t}){return"border-none"===t?(0,e.createElement)(Ut,null):"border-solid"===t?(0,e.createElement)(Ht,null):"border-dashed"===t?(0,e.createElement)(Wt,null):"border-dotted"===t?(0,e.createElement)($t,null):"border-default"===t?(0,e.createElement)(qt,null):"borders"===t?(0,e.createElement)(Gt,null):void 0}function $n({value:t,onChange:r}){const n={none:(0,e.createElement)(Wn,{icon:"border-none"}),solid:(0,e.createElement)(Wn,{icon:"border-solid"}),dashed:(0,e.createElement)(Wn,{icon:"border-dashed"}),dotted:(0,e.createElement)(Wn,{icon:"border-dotted"})};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.DropdownMenu,{className:Hn.dropdown,icon:n[t]||(0,e.createElement)(Wn,{icon:"border-default"}),label:(0,s.__)("Select a style","generateblocks-pro")},(({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,null,(0,e.createElement)(o.MenuItem,{icon:(0,e.createElement)(Wn,{icon:"border-default"}),onClick:()=>{r(""),t()}},(0,s.__)("Default","generateblocks-pro")),(0,e.createElement)(o.MenuItem,{icon:(0,e.createElement)(Wn,{icon:"border-none"}),onClick:()=>{r("none"),t()}},"None"),(0,e.createElement)(o.MenuItem,{icon:(0,e.createElement)(Wn,{icon:"border-solid"}),onClick:()=>{r("solid"),t()}},"Solid"),(0,e.createElement)(o.MenuItem,{icon:(0,e.createElement)(Wn,{icon:"border-dashed"}),onClick:()=>{r("dashed"),t()}},"Dashed"),(0,e.createElement)(o.MenuItem,{icon:(0,e.createElement)(Wn,{icon:"border-dotted"}),onClick:()=>{r("dotted"),t()}},"Dotted"))))))}function qn(t){const r=["borderTop","borderRight","borderBottom","borderLeft"],[n,i]=(0,a.useState)("all"),{styles:l,onStyleChange:c,opened:u,scrollAfterOpen:d,onToggle:p,initialOpen:h}=t,{border:m="",borderTopWidth:f="",borderTopStyle:g="",borderTopColor:b="",borderRightWidth:v="",borderRightStyle:y="",borderRightColor:w="",borderBottomWidth:k="",borderBottomStyle:E="",borderBottomColor:S="",borderLeftWidth:x="",borderLeftStyle:C="",borderLeftColor:_="",borderTopLeftRadius:O="",borderTopRightRadius:T="",borderBottomRightRadius:I="",borderBottomLeftRadius:P=""}=l,M={border:m,borderTopWidth:f,borderTopStyle:g,borderTopColor:b,borderRightWidth:v,borderRightStyle:y,borderRightColor:w,borderBottomWidth:k,borderBottomStyle:E,borderBottomColor:S,borderLeftWidth:x,borderLeftStyle:C,borderLeftColor:_},A={borderTop:"Top",borderRight:"Right",borderBottom:"Bottom",borderLeft:"Left"};(0,a.useEffect)((()=>{const e=r.map((e=>Object.entries(M).reduce(((t,[r,n])=>{if(r.startsWith(e)&&n){const o=r.replace(e,"");t={...t,[o]:n}}return t}),{})));e.every((t=>!(0,Un.isEmpty)(t)&&!(0,Un.isEqual)(t,e[0])))&&i(!1)}),[]);const R=(0,a.useCallback)((function(){const e=r.filter((e=>{return M[e+"Width"]||(t=M[e+"Width"],isNaN(parseFloat(t))&&isFinite(t));var t}));if(!e.length)return;const t=e[0],n=Object.entries(M).reduce(((e,[r,n])=>(r.startsWith(t)&&(e[r.replace(t,"")]=n),e)),{}),o=Object.entries(n).reduce(((e,[t,n])=>n?(r.forEach((r=>{e[r+t]=n})),e):e),{});c(o)}),[M,c]),L={"Top Left":{prop:"borderTopLeftRadius",value:O},"Top Right":{prop:"borderTopRightRadius",value:T},"Bottom Left":{prop:"borderBottomLeftRadius",value:P},"Bottom Right":{prop:"borderBottomRightRadius",value:I}},z=(0,a.useMemo)((()=>n?m:Object.values(M).filter(Boolean).join(",")),[M,n]);return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Borders","generateblocks-pro"),initialOpen:h,icon:(0,e.createElement)(Xt,null),opened:!!u||void 0,scrollAfterOpen:d,onToggle:p},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)($r,{label:"Border",id:"gblocks-border",className:Se("gb-borders",Hn.parentControl),beforeDropdownMenu:(0,e.createElement)(zn,{sync:n,setSync:i,syncTypes:["all"],onClick:e=>{e&&R()}}),searchKeywords:Object.keys(M),cssProp:M,value:z},(0,e.createElement)(ve.Stack,{gap:"12px"},r.map(((t,r)=>{if(n&&r>0)return null;const o=n?(0,s.__)("All sides","generateblocks-pro"):A[t],a=n?Object.keys(M):[t+"Width",t+"Style",t+"Color"],i=n?z:[M[t+"Width"],M[t+"Style"],M[t+"Color"]].filter(Boolean).join(","),l=n?"all-sides":t;return(0,e.createElement)($r,{key:l,label:o,searchKeywords:a,value:i},(0,e.createElement)("div",{className:Hn.control,"data-border-area":l},(0,e.createElement)($r,{as:xn,id:"gblocks-"+t+"-width",value:M[t+"Width"]||"",cssProp:!1,"aria-label":`border ${t} width`,onChange:e=>{const r={[t+"Width"]:e};n&&(r.borderRightWidth=e,r.borderBottomWidth=e,r.borderLeftWidth=e),e?M[t+"Style"]||(r[t+"Style"]="solid",n&&(r.borderRightStyle="solid",r.borderBottomStyle="solid",r.borderLeftStyle="solid")):(r[t+"Style"]="",n&&(r.borderRightStyle="",r.borderBottomStyle="",r.borderLeftStyle="")),c(r)}}),(0,e.createElement)($n,{value:M[t+"Style"],onChange:e=>{const r={[t+"Style"]:e};n&&(r.borderRightStyle=e,r.borderBottomStyle=e,r.borderLeftStyle=e),c(r)},"aria-label":`border ${t} style`,className:Hn.flexShrink}),(0,e.createElement)(ve.ColorPicker,{as:ve.ColorPicker,value:M[t+"Color"]||"",alpha:!0,onChange:e=>{const r={[t+"Color"]:e};n&&(r.borderRightColor=e,r.borderBottomColor=e,r.borderLeftColor=e),c(r)},"aria-label":`border ${t} color`})))})))),(0,e.createElement)(jn,{id:"border-radius",label:"Border Radius",onChange:c,cssProps:L,syncTypes:["all"],layout:"corners"})))}const Gn=[{icon:(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})),title:"Align text left",value:"left"},{icon:(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})),title:"Align text center",value:"center"},{icon:(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})),title:"Align text right",value:"right"},{icon:(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})),title:"Justify text",value:"justify"}];function Zn({value:t,onChange:r,cssProp:n}){const o=(0,a.useMemo)((()=>Gn.every((e=>e.value!==t))),[t]);return(0,e.createElement)($r,{allowCustomValue:!0,hasCustomValue:o,as:sn,label:"Text Alignment",id:"text-align",buttons:Gn,value:t,onChange:r,cssProp:n})}const Kn=window.wp.apiFetch;var Yn=r.n(Kn);const Qn={preview:"fXFgJAxmLLUPjAL1_R1n",fallback:"kdt8o8TCjBzm4VAkZZsM"},Jn=(0,a.memo)((function({font:t,loading:r="lazy",fallbackText:n="",showPreviewSvg:a=!1}){const{name:i,alias:l,preview:c,fontFamily:u,cssVariable:d=""}=t;return(0,e.createElement)("div",{className:Qn.preview},a&&c?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{className:Qn.image,src:c,alt:(0,s.__)("A graphical rendering of the font family","gp-premium"),height:"23",loading:r}),(0,e.createElement)(o.VisuallyHidden,null,n||i)):(0,e.createElement)("span",{className:Qn.fallback,style:{fontFamily:d?`var(${d})`:u}},i," ",l&&`(${l})`))})),Xn="undefined"==typeof AbortController?void 0:new AbortController,eo="generatepress-font-library",to=(0,a.memo)(lr),ro=(0,a.memo)((function({item:t}){return t?(0,e.createElement)(Jn,{font:t}):null}));function no(){const{typographyFontFamilyList:e}=window?.generateBlocksInfo,t=[{id:"default",name:(0,s.__)("Default","generateblocks-pro"),fontFamily:""},{id:"inherit",name:"Inherit",fontFamily:"inherit"},{id:"system",name:"System Font",fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif'}];return e?(e.forEach((e=>{"System Fonts"===e.label&&t.push(...e.options.map((({label:e,value:t},r)=>({id:`system-${r+1}`,name:e,fontFamily:t}))))})),t):[]}function oo({onStyleChange:t,fontFamily:r="",cssProp:n=""}){const[o,i]=(0,a.useState)((()=>no())),[l,c]=(0,a.useState)(r),[u,d]=(0,a.useState)(!1),[p,h]=(0,a.useState)(null),m=(0,a.useMemo)((()=>"custom"===p?.id?[p,...o]:o),[p,o.length]),f=(0,a.useMemo)((()=>{const e=r.match(/var\((--[^)]+)\)/);return e?e[1]:null}),[r]);return(0,a.useEffect)((()=>{window?.generateBlocksEditor?.hasGPFontLibrary&&async function(){try{const e=await Yn()({path:"/generatepress-font-library/v1/get-fonts",method:"GET"});if(!e.response)throw new Error("Request failed");i([...no(),...e.response])}catch(e){"AbortError"===e.name&&console.error("Request has been aborted"),Xn?.abort()}}()}),[]),(0,a.useEffect)((()=>{l!==r&&c(r)}),[l,r]),(0,a.useEffect)((()=>{let e=o.find((e=>f===e?.cssVariable||r===e?.fontFamily));if(e)return d(!1),void h(e);if(e={id:"custom",name:r,fontFamily:r},f){const t=f?getComputedStyle(document.documentElement).getPropertyValue(f):null;if(t)return void(e.name=t);d(!0)}e.name=e.name.split(",")[0].trim(),h(e)}),[r,o,f]),(0,e.createElement)($r,{className:"gb-styles-builder__font-family",as:to,label:"Font Family",id:"gblocks-font-family",value:l,onChange:e=>{let r="string"==typeof e?e:e?.fontFamily;e?.cssVariable&&(r=`var(${e.cssVariable})`),t("fontFamily",r)},items:m,itemToString:e=>e?.fontFamily||e?.cssVariable?e.cssVariable||e.fontFamily:"",ItemComponent:ro,allowCustomValue:!0,hasCustomValue:u,selectedItem:p,setSelectedItem:h,dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Font Family","generateblocks-pro"),onClick:t},(0,s.__)("Select a font from the list or enter your own custom value.","generateblocks-pro")),learnMoreLabel:(0,s.__)("Manage Fonts","generateblocks-pro"),learnMoreUrl:`/wp-admin/themes.php?page=${eo}`,cssProp:n,selectedStyle:"icon"})}const ao=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),so=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),io=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),lo=[{label:"None",value:"none",icon:(0,e.createElement)(Kt,null)},{label:"Uppercase",value:"uppercase",icon:ao},{label:"Lowercase",value:"lowercase",icon:so},{label:"Capitalize",value:"capitalize",icon:io}];function co({value:t,onChange:r,cssProp:n}){const o=(0,a.useMemo)((()=>lo.every((e=>e.value!==t))),[t]);return(0,e.createElement)($r,{as:sn,allowCustomValue:!0,hasCustomValue:o,label:"Text Transform",id:"gblocks-text-transform",value:t,buttons:lo,onChange:r,cssProp:n})}const uo=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})),po=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})),ho=[{label:"None",value:"none",icon:(0,e.createElement)(Kt,null)},{label:"Underline",value:"underline",icon:uo},{label:"Overline",value:"overline",icon:(0,e.createElement)((({size:t,...r})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,"aria-hidden":"true",focusable:"false",...r},(0,e.createElement)("path",{d:"M7 4v1h10V4H7zm5 14c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V7H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V7H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"}))),null)},{label:"Line-through",value:"line-through",icon:po}];function mo({value:t,onChange:r,cssProp:n}){return(0,e.createElement)($r,{as:sn,allowCustomValue:!0,label:"Text Decoration",id:"gblocks-text-decoration",value:t,onChange:r,buttons:ho,cssProp:n})}const fo=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})),go=[{label:"None",value:"none",icon:(0,e.createElement)(Kt,null)},{label:"Normal",value:"normal",icon:io},{label:"Italic",value:"italic",icon:fo}];function bo({value:t,onChange:r,cssProp:n}){const o=(0,a.useMemo)((()=>go.every((e=>e.value!==t))),[t]);return(0,e.createElement)($r,{as:sn,allowCustomValue:!0,hasCustomValue:o,label:"Font Style",id:"gblocks-font-style",value:t,onChange:r,buttons:go,cssProp:n})}function vo(t){const{styles:r,onStyleChange:n,opened:a,scrollAfterOpen:i,onToggle:l,initialOpen:c}=t,{fontSize:u="",color:d="",lineHeight:p="",letterSpacing:h="",textAlign:m="",fontWeight:f="",fontStyle:g="",textDecoration:b="",fontFamily:v="",textTransform:y=""}=r;return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Typography","generateblocks-pro"),initialOpen:c,icon:(0,e.createElement)(er,null),opened:!!a||void 0,scrollAfterOpen:i,onToggle:l},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)($r,{as:ve.ColorPicker,label:"Text Color",value:d,onChange:e=>n("color",e),cssProp:"color"}),(0,e.createElement)($r,{as:o.SelectControl,allowCustomValue:!0,label:"Font Weight",id:"gblocks-font-weight",value:f,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Normal",value:"normal"},{label:"Bold",value:"bold"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}],onChange:e=>n("fontWeight",e),cssProp:"fontWeight"}),(0,e.createElement)($r,{as:xn,label:"Font Size",id:"gblocks-font-size",value:u,onChange:e=>n("fontSize",e),fallbackProp:!0,cssProp:"fontSize"}),(0,e.createElement)(bo,{value:g,onChange:e=>n("fontStyle",e),cssProp:"fontStyle"}),(0,e.createElement)(Zn,{value:m,onChange:e=>n("textAlign",e),cssProp:"textAlign"}),(0,e.createElement)(co,{value:y,onChange:e=>n("textTransform",e),cssProp:"textTransform"}),(0,e.createElement)(mo,{value:b,onChange:e=>n("textDecoration",e),cssProp:"textDecoration"}),(0,e.createElement)(o.Flex,null,(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:xn,label:"Line Height",id:"gblocks-line-height",value:p,onChange:e=>n("lineHeight",e),cssProp:"lineHeight",units:[...xn.defaultUnits,""],defaultUnit:""})),(0,e.createElement)(o.FlexBlock,null,(0,e.createElement)($r,{as:xn,label:"Letter Spacing",id:"gblocks-letter-spacing",value:h,onChange:e=>n("letterSpacing",e),cssProp:"letterSpacing"}))),(0,e.createElement)(oo,{fontFamily:v,onStyleChange:n,cssProp:"fontFamily"})))}var yo=r(4190);const wo={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},ko=function(e){var t,r,n=[],o=1;if("number"==typeof e)return{space:"rgb",values:[e>>>16,(65280&e)>>>8,255&e],alpha:1};if("number"==typeof e)return{space:"rgb",values:[e>>>16,(65280&e)>>>8,255&e],alpha:1};if(e=String(e).toLowerCase(),wo[e])n=wo[e].slice(),r="rgb";else if("transparent"===e)o=0,r="rgb",n=[0,0,0];else if("#"===e[0]){var a=e.slice(1),s=a.length;o=1,s<=4?(n=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],4===s&&(o=parseInt(a[3]+a[3],16)/255)):(n=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],8===s&&(o=parseInt(a[6]+a[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),r="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var i=t[1],l="cmyk"===(r=i.replace(/a$/,""))?4:"gray"===r?1:3;n=t[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===r&&(r=n.shift()),n=n.map((function(e,t){if("%"===e[e.length-1])return e=parseFloat(e)/100,3===t?e:"rgb"===r?255*e:"h"===r[0]?100*e:"l"!==r[0]||t?"lab"===r?125*e:"lch"===r?t<2?150*e:360*e:"o"!==r[0]||t?"oklab"===r?.4*e:"oklch"===r?t<2?.4*e:360*e:e:e:100*e;if("h"===r[t]||2===t&&"h"===r[r.length-1]){if(void 0!==Eo[e])return Eo[e];if(e.endsWith("deg"))return parseFloat(e);if(e.endsWith("turn"))return 360*parseFloat(e);if(e.endsWith("grad"))return 360*parseFloat(e)/400;if(e.endsWith("rad"))return 180*parseFloat(e)/Math.PI}return"none"===e?0:parseFloat(e)})),o=n.length>l?n.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(n=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),r=e.match(/([a-z])/gi)?.join("")?.toLowerCase()||"rgb");return{space:r,values:n,alpha:o}};var Eo={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};const So={control:"HXBoYZy0LsrG0A2KPxEN",gradient:"ZQ2jczeEzclMSq2Y6Ycl",preview:"kQhlV9f3Se0c02RlYBcS",bar:"VYOL7GnBkf6Ar5jt1Jo5",settings:"q7yvbdMjv5bBfP4xTul8",setting:"_EBPOE6iJi31mNASb0jM","gb-styles-builder-control":"lmdboHK0j89_NNsHTa44",remove:"l5bareCDpJkw8udwU7nC",stops:"g5_kFvTqIN8NCdhdSwKl"};function xo({onChange:t,setCurrentGradient:r,currentGradient:n,index:i}){const{colorStops:l}=n,c=l[i],[u,d]=(0,a.useState)(`${c.type}(${c.value})`),[p,h]=(0,a.useState)(c.length.value);return(0,a.useEffect)((()=>{if(t){const e=["rgb","hsl"],r=ko(function(e){if(String(e).startsWith("var(")){const t=e.match(/\(([^)]+)\)/);if(t){const r=getComputedStyle(document.documentElement).getPropertyValue(t[1]);r&&(e=r)}}return e}(u)),n=1!==r.alpha?[...r.values,r.alpha]:r.values,o=e.includes(r.space)&&1!==r.alpha?r.space+"a":r.space;t({type:o,value:n},{type:"%",value:p})}}),[u,p]),(0,e.createElement)(ve.Stack,{direction:"horizontal",layout:"flex"},(0,e.createElement)(ve.ColorPicker,{"aria-label":"Color",value:u,onChange:d}),(0,e.createElement)("div",{style:{flexGrow:1}},(0,e.createElement)(o.RangeControl,{initialPosition:parseInt(p),label:"Stop",hideLabelFromVision:!0,onChange:h})),(0,e.createElement)(o.Button,{disabled:l.length<3,tooltip:l.length<3?(0,s.__)("At least 2 color stops are required","generateblocks-pro"):null,className:So.remove,icon:Br,onClick:()=>{r((e=>{const t=[...e.colorStops];return t.splice(i,1),{...e,colorStops:t}}))},"aria-label":(0,s.sprintf)( // translators: %s is the color stop number. // translators: %s is the color stop number. -(0,s.__)("Remove stop %s","generateblocks-pro"),i)}))}function Co({onChange:t,value:r="",presets:n=[],selectingPreset:i,setSelectingPreset:l=!1}){var c;const[u,d]=(0,a.useState)(yo.parse(r)[0]),{type:p,orientation:h,colorStops:m=[]}=u,g=(0,f.applyFilters)("generateblocks.editor.gradientPresets",n);(0,a.useEffect)((()=>{try{t(yo.stringify([u]))}catch(e){console.error(e.message)}}),[u]);const b=null!==(c=h?.value)&&void 0!==c?c:h;return(0,e.createElement)("div",{className:So.gradient},(0,e.createElement)(ve.Stack,{gap:"12px"},(0,e.createElement)("div",{className:So.preview},(0,e.createElement)("div",{className:So.bar,style:{backgroundImage:r}})),i&&g?(0,e.createElement)(e.Fragment,null,g.map((t=>(0,e.createElement)("div",{className:So.preset,key:t.name},(0,e.createElement)("span",{className:Dr.label},t.name),(0,e.createElement)(ve.Stack,{direction:"horizontal",layout:"flex",gap:"2px"},t.gradients.map((t=>(0,e.createElement)(o.Button,{key:t.slug,onClick:()=>{d(yo.parse(t.gradient)[0])}},(0,e.createElement)("span",{style:{background:t.gradient?t.gradient:null}})))))))),(0,e.createElement)(o.Button,{variant:"link",onClick:()=>l(!1)},(0,s.__)("Back","generateblocks-pro"))):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:So.settings},(0,e.createElement)(ve.Stack,{layout:"flex",direction:"horizontal",wrap:!1},(0,e.createElement)($r,{as:o.SelectControl,label:(0,s.__)("Type","generateblocks-pro"),value:p,options:[{label:"Linear",value:"linear-gradient"},{label:"Radial",value:"radial-gradient"}],onChange:e=>{d((t=>({...t,type:e,orientation:"radial-gradient"===e?void 0:t.orientation||{type:"angular",value:"90"}})))},style:{flexGrow:1}}),"linear-gradient"===p&&(0,e.createElement)($r,{as:o.AnglePickerControl,label:"Angle",value:{right:"90",bottom:"180",left:"270",top:"0"}[b]||b,onChange:e=>{d((t=>({...t,orientation:{type:"angular",value:e}})))}}))),(0,e.createElement)("ul",{className:So.stops,role:"list"},m.map(((t,r)=>(0,e.createElement)("li",{key:r,style:{marginBottom:0}},(0,e.createElement)(xo,{index:r,currentGradient:u,setCurrentGradient:d,colorStop:t,onChange:(e,t)=>{d((n=>{const o=[...n.colorStops],a=o[r];return o[r]={...a,...e,length:t},{...n,colorStops:o}}))}})))),(0,e.createElement)(o.Button,{variant:"primary",size:"compact",onClick:()=>{d((e=>({...e,colorStops:[...e.colorStops,{type:"rgb",value:[0,0,0],length:{type:"%",value:0}}]})))}},(0,s.__)("Add Color","generateblocks-pro"))))))}const _o={left:0,center:.5,top:0,right:1,bottom:1};function Oo(e,{width:t,height:r}){var n,o;const a=document.createElement("div");if(a.style.backgroundPosition=e,""===a.style.backgroundPosition)return e;t&&(a.style.width=`${t}px`),r&&(a.style.height=`${r}px`),document.body.appendChild(a);const s=getComputedStyle(a),i=s.backgroundPositionX,l=s.backgroundPositionY;document.body.removeChild(a);let c=null,u=null;return i.endsWith("%")?c=parseFloat(i)/100:i.endsWith("px")?c=parseFloat(l)/t:i in _o&&(c=_o[i]),l.endsWith("%")?u=parseFloat(l)/100:l.endsWith("px")?u=parseFloat(l)/t:l in _o&&(u=_o[i]),{x:null!==(n=parseFloat(Math.round(100*c)/100))&&void 0!==n?n:.5,y:null!==(o=parseFloat(Math.round(100*u)/100))&&void 0!==o?o:.5}}const To={control:"pwnKGe7HVJxW4nUSFsfy",selectButton:"xtKlTeuQp1AG_B4XbA4X",url:"J4GV12PDBJMrq6EbqlKt",flex:"U55WhJgyJuVdKj0flf6G"},Io=O("/wp-content/plugins/generateblocks-pro/dist/assets/placeholder-lg.min.jpg");function Mo({onUrlChange:t,onPositionChange:r,onSizeChange:n,onMediaSelect:i,url:l,urlInputLabel:c,imageSizeLabel:u=(0,s.__)("Media Size","generateblocks-pro"),position:d="center",size:p="full"}){const h=(0,a.useRef)(null),[m,f]=(0,a.useState)({width:240,height:131}),[b,v]=(0,a.useState)((()=>Oo(d,m))),y=(0,s.__)("Enter any valid background position.","generateblocks-pro"),[w,k]=(0,a.useState)(y),[E,S,x]=(0,yr.useDebouncedInput)(d),[C,_]=(0,a.useState)((()=>{var e;return null!==(e=JSON.parse(sessionStorage.getItem("gb_image_sizes")))&&void 0!==e?e:{}})),[O,T]=(0,a.useState)((()=>function(e){if(e.startsWith("url(")){const t=e.match(/url\((.*?)\)/);return(t?t[1]:"").replace('"',"").replace("'","")}return e}(l))),[I,M]=(0,a.useState)(!0),[P,A]=(0,a.useState)(O),R=(0,a.useMemo)((()=>{var e;return null!==(e=function(e,t){const r=Object.keys(e).find((r=>Object.values(e[r]).some((e=>e.url===t))));return r?e[r]:null}(C,O))&&void 0!==e?e:{}}),[C,O]),L=(0,a.useMemo)((()=>{const e=Object.keys(R).map((e=>({label:e.charAt(0).toUpperCase()+e.slice(1),value:e})));return e.length||e.unshift({label:(0,s.__)("Full","generateblocks-pro"),value:""}),e}),[R]),z=(0,a.useMemo)((()=>{var e;return Object.keys(R).length&&null!==(e=Object.entries(R).find((([,e])=>e.url===O))[0])&&void 0!==e?e:""}),[R,O]),D=(0,a.useCallback)((function(e){const t=`${Math.round(100*e.x)}% ${Math.round(100*e.y)}%`;v(e),S(t)}),[r]),F=(0,a.useCallback)((function(e){const t=function(e){const t=document.createElement("div");return t.style.backgroundPosition=e,""!==t.style.backgroundPosition}(e);S(e),t?(k(y),v(Oo(e,m))):k((0,s.__)("Invalid background position.","generateblocks-pro"))}),[]),B=(0,a.useCallback)((function(e){t&&(t(e),A(e)),M(!0)}),[t]);return(0,a.useLayoutEffect)((()=>{if(!h.current)return;const e=h.current.querySelector(".components-focal-point-picker__media--image");function t(){O.startsWith("var(")||"none"===O||M(!1),A(Io),e.style.width="240px",e.style.height="131px"}if(e){e.addEventListener("error",t);const r=e.clientWidth||240,n=e.clientHeight||131;f({width:r,height:n})}return()=>{e&&e.removeEventListener("error",t)}}),[O]),Ur((()=>{r&&r(E)}),[x]),(0,e.createElement)("div",{className:Se("gb-image-control",To.control),ref:h},(0,e.createElement)(ve.Stack,{gap:"12px"},(0,e.createElement)("div",{className:To.flex},(0,e.createElement)($r,{as:o.TextControl,className:To.url,type:"text",value:O,onChange:B,label:c,help:!I&&(0,s.__)("Could not load image.","generateblocks-pro")}),(0,e.createElement)(g.MediaUploadCheck,null,(0,e.createElement)(g.MediaUpload,{title:(0,s.__)("Choose Media","generateblocks-pro"),onSelect:e=>{var t,r;const n={...C,[e.id]:e.sizes};sessionStorage.setItem("gb_image_sizes",JSON.stringify(n)),_(n);const o=null!==(t=null!==(r=e.sizes?.[p].url)&&void 0!==r?r:e?.url)&&void 0!==t?t:"";B(o),i&&i(e)},allowedTypes:["image"],value:O,modalClass:"gb-image-control-modal",render:({open:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.Tooltip,{text:(0,s.__)("Open the Media Library","generateblocks-pro")},(0,e.createElement)(o.Button,{variant:"secondary",onClick:()=>{t()},className:To.selectButton},(0,s.__)("Select","generateblocks-pro"))))}))),"none"!==O&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(g.MediaUploadCheck,null,(0,e.createElement)($r,{as:o.SelectControl,value:z,options:L,disabled:!Object.keys(R).length,onChange:e=>{var t;(null!==(t=R?.[e])&&void 0!==t?t:null)&&T(R?.[e].url),n&&n(e)},label:u,help:Object.keys(R).length?(0,s.__)("Sets the size of the image chosen from the Media Library.","generateblocks-pro"):(0,s.__)("Size information is not available. Try re-inserting the image from the Media Library.","generateblocks-pro")})),(0,e.createElement)(o.FocalPointPicker,{url:P,value:b,onDragStart:D,onDrag:D,onChange:D}),(0,e.createElement)($r,{as:o.TextControl,label:"Background Position",value:E,help:w,onChange:F}))))}const Po=[{label:"Default",value:""},{label:"Normal",value:"normal"},{label:"Multiply",value:"multiply"},{label:"Screen",value:"screen"},{label:"Overlay",value:"overlay"},{label:"Darken",value:"darken"},{label:"Lighten",value:"lighten"},{label:"Color-dodge",value:"color-dodge"},{label:"Color-burn",value:"color-burn"},{label:"Hard-light",value:"hard-light"},{label:"Soft-light",value:"soft-light"},{label:"Difference",value:"difference"},{label:"Exclusion",value:"exclusion"},{label:"Hue",value:"hue"},{label:"Saturation",value:"saturation"},{label:"Color",value:"color"},{label:"Luminosity",value:"luminosity"}],Ao={image:(0,s.__)("Choose a background image from the Media Library or enter a URL to a remote image.","generateblocks-pro"),gradient:(0,s.__)("Use this to create a linear or radial gradient. To overlay a gradient over another background, the gradient colors must be semi-transparent.","generateblocks-pro"),overlay:(0,s.__)("Use this to overlay a single color over one or more backgrounds. The chosen color must semi-transparent.","generateblocks-pro"),none:(0,s.__)("Disables the background for this at-rule (sets background: none","generateblocks-pro")},Ro="linear-gradient(to right, rgba(0, 0, 0, 1) 0%,rgba(10, 10, 10, 0.5) 100%)";function Lo({currentOption:t,findBackgroundIndex:r,setSettings:n}){const i=(0,g.useSetting)("color.gradients")||[],[l,c]=(0,a.useState)(!1),u=[];i.length&&u.push({name:(0,s.__)("Theme.JSON Presets","generateblocks-pro"),gradients:i});const{styles:d,index:p}=r(),{type:h,backgroundImage:m="",backgroundSize:f="",backgroundRepeat:b="",backgroundPosition:v="",backgroundBlendMode:y="",backgroundAttachment:w="",overlayColor:k=""}=t,[E,S]=(0,a.useState)((()=>({prevType:h,prevValue:m}))),[x,C]=(0,a.useState)((()=>"gradient"===h?m:Ro)),[_,O]=(0,a.useState)((()=>k||"rgba(0, 0, 0, .25)"));return"gradient"===h&&m!==x&&(d[p].backgroundImage=x,n(d)),t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Kr,null,(0,e.createElement)($r,{alwaysVisible:!0,as:o.SelectControl,options:[{label:(0,s.__)("Image","generateblocks-pro"),value:"image"},{label:(0,s.__)("Gradient","generateblocks-pro"),value:"gradient"},{label:(0,s.__)("Overlay","generateblocks-pro"),value:"overlay"},{label:(0,s.__)("None","generateblocks-pro"),value:"none"}],label:(0,s.__)("Background Type","generateblocks-pro"),onChange:e=>{const t=d[p].backgroundImage,{prevType:r="",prevValue:o=""}=E;d[p].type=e,["overlay","gradient"].includes(e)?("overlay"===e&&(d[p].overlayColor=_,d[p].backgroundImage="overlay"===r?o:`linear-gradient(to left, ${_} 0%, ${_} 100%)`),"gradient"===e&&(d[p].backgroundImage="gradient"===r?o:Ro)):"image"===e?d[p].backgroundImage="image"===r?o:"":"none"===e&&(d[p].backgroundImage="none"),S({prevType:h,prevValue:t}),n(d)},dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Background Types","generateblocks-pro"),onClick:t},(0,e.createElement)("dl",null,(0,e.createElement)("dt",null,(0,s.__)("Image","generateblocks-pro")," ","image"===h&&(0,s.__)("(Current)","generateblocks-pro")),(0,e.createElement)("dd",null,Ao.image),(0,e.createElement)("dt",null,(0,s.__)("Gradient","generateblocks-pro")," ","gradient"===h&&(0,s.__)("(Current)","generateblocks-pro")),(0,e.createElement)("dd",null,Ao.gradient),(0,e.createElement)("dt",null,(0,s.__)("Overlay","generateblocks-pro")," ","overlay"===h&&(0,s.__)("(Current)","generateblocks-pro")),(0,e.createElement)("dd",null,Ao.overlay))),value:h}),"overlay"===h&&(0,e.createElement)($r,{alwaysVisible:!0,as:ve.ColorPicker,label:(0,s.__)("Overlay Color","generateblocks-pro"),help:(0,e.createElement)(e.Fragment,null,!_.includes("rgba")&&!_.includes("hsla")&&(0,s.__)("The chosen color must have some transparency for the background(s) beneath to be visible.","generateblocks-pro")),value:_,onChange:e=>{d[p].overlayColor=e,d[p].backgroundImage=`linear-gradient(to left, ${e} 0%, ${e} 100%)`,O(e),n(d)},dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Background Overlay","generateblocks-pro"),onClick:t},Ao.overlay)}),"image"===h&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{alwaysVisible:!0,as:Mo,label:"Background Image",url:m,position:v,onUrlChange:e=>{const t=e.startsWith("http")||e.startsWith("://")||e.startsWith("/");d[p].backgroundImage=t?`url(${e})`:e,n(d)},onPositionChange:e=>{d[p].backgroundPosition=e,n(d)},onSizeChange:e=>{d[p].media.selectedSize=e,n(d)},onMediaSelect:e=>{var t;d[p].media.sizes=null!==(t=e.sizes)&&void 0!==t?t:{},n(d)},dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Background Image","generateblocks-pro"),onClick:t},Ao.image)}),"none"!==m&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{alwaysVisible:!0,allowCustomValue:!0,as:o.SelectControl,label:"Repeat",value:b,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"},{label:"round",value:"round"},{label:"space",value:"space"},{label:"no-repeat",value:"no-repeat"}],dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Background Blend Mode","generateblocks-pro"),onClick:t},(0,s.__)("The background-repeat CSS property sets how background images are repeated. A background image can be repeated along the horizontal and vertical axes, or not repeated at all.","generateblocks-pro")),onChange:(e=0)=>{d[p].backgroundRepeat=e,n(d)},learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro")}),(0,e.createElement)($r,{alwaysVisible:!0,as:o.SelectControl,allowCustomValue:!0,label:"Size",value:f,placeholder:(0,s.__)("100px 50%, cover, contain, etc","generateblocks-pro"),options:[{id:1,label:(0,s.__)("Default","generateblocks-pro"),value:""},{id:2,label:"cover",value:"cover"},{id:3,label:"contain",value:"contain"},{id:4,label:"auto",value:"auto"}],onChange:e=>{d[p].backgroundSize=e,n(d)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:o.SelectControl,allowCustomValue:!0,label:"Attachment Type",value:w,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Fixed",value:"fixed"},{label:"Scroll with Content (scroll)",value:"scroll"},{label:"Local",value:"local"}],dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Background Attachment","generateblocks-pro"),onClick:t},(0,s.__)("The background-attachment CSS property sets whether a background image's position is fixed within the viewport, or scrolls with its containing block.","generateblocks-pro")),onChange:(e=0)=>{d[p].backgroundAttachment=e,n(d)},learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/background-attachment",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro")}))),"gradient"===h&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{alwaysVisible:!0,as:Co,selectingPreset:l,setSelectingPreset:c,presets:u,label:"Gradient",onChange:C,value:m.includes("gradient")?m:Ro,dropdownChildren:({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r.Description,{label:(0,s.__)("About Gradients","generateblocks-pro"),onClick:t},Ao.gradient),(0,e.createElement)(o.MenuGroup,null,(0,e.createElement)(o.MenuItem,{onClick:()=>{t(),c(!l)}},l?(0,s.__)("Cancel select preset","generateblocks-pro"):(0,s.__)("Select preset","generateblocks-pro")))),learnMoreLabel:(0,s.__)("Learn more about gradients.","generateblocks-pro"),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/gradient"})),"none"!==m&&(0,e.createElement)($r,{alwaysVisible:!0,as:o.SelectControl,allowCustomValue:!0,label:"Blend Mode",value:y,options:Po,onChange:(e=0)=>{d[p].backgroundBlendMode=e,n(d)},dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Background Blend Mode","generateblocks-pro"),onClick:t},(0,s.__)("The background-blend-mode CSS property sets how an element's background images should blend with each other and with the element's background color.","generateblocks-pro")),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/background-blend-mode",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro")})))}const zo=({onStyleChange:t,value:r,atRule:n})=>{var i;const[l,c]=(0,a.useState)(!1),[u,d]=(0,a.useState)((()=>function(e){const{background:t="",backgroundBlendMode:r="",backgroundAttachment:n="",backgroundImage:o="",backgroundPosition:a="",backgroundSize:s="",backgroundRepeat:i=""}=e;if(Object.values(e).every((e=>""===e)))return[];if(t){const e=r.split(",");return(l=t,(l.match(P)||[]).map((e=>{const t=document.createElement("div");if(t.style.background=e,""===t.style.background)return{type:"image"};const{backgroundAttachment:r="",backgroundImage:n="",backgroundSize:o="",backgroundRepeat:a="",backgroundPosition:s=""}=t.style,i=n.includes("gradient("),l=n.startsWith("url(");if(!i&&!l)return{type:"image"};let c="image",u="";if(i){c="gradient";const e=n.match(M);e&&e.every((t=>t===e[0]))&&(c="overlay",u=e[0])}return{type:c,backgroundAttachment:"initial"===r?"":r,backgroundImage:n.replace('"',"").replace("'",""),backgroundSize:o,backgroundRepeat:a,backgroundPosition:s,overlayColor:u}}))).map(((t,r)=>(t.backgroundBlendMode=e[r]||"normal","image"===t.type&&(t.media={id:0}),t)))}var l;return X({backgroundBlendMode:r,backgroundAttachment:n,backgroundImage:o,backgroundPosition:a,backgroundSize:s,backgroundRepeat:i})}(r))),[p,h]=(0,a.useState)(null),m=u.some((e=>"none"===e.backgroundImage)),f=null!==(i=u[p])&&void 0!==i?i:null,g=null!==f,b=(0,yr.useDebounce)(t,0),v=(0,a.useCallback)((function(e){d(e),b({backgroundAttachment:e.reduce(((e,t)=>{const{backgroundBlendMode:r="normal"}=t;return e.length>0?`${e},${r.trim()}`:`${r.trim()}`}),"").trim(),backgroundImage:e.reduce(((e,t)=>{const{backgroundAttachment:r=""}=t;return e.length>0?`${e},${r.trim()}`:`${r.trim()}`}),""),backgroundSize:e.reduce(((e,t)=>{const{backgroundImage:r=""}=t;return e.length>0?`${e},${r.trim()}`:`${r.trim()}`}),""),backgroundRepeat:e.reduce(((e,t)=>{const{backgroundSize:r=""}=t;return e.length>0?`${e},${r.trim()}`:`${r.trim()}`}),""),backgroundPosition:e.reduce(((e,t)=>{const{backgroundRepeat:r=""}=t;return e.length>0?`${e},${r.trim()}`:`${r.trim()}`}),""),backgroundBlendMode:e.reduce(((e,t)=>{const{backgroundPosition:r=""}=t;return e.length>0?`${e},${r.trim()}`:`${r.trim()}`}),"")})}),[b]),y=(0,a.useCallback)((()=>{const e=[...u];return{styles:e,index:e[p]?p:-1}}),[u,p]),{styles:w,index:k}=y();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Zr,{id:"BackgroundControl",items:u,label:(0,s.__)("Backgrounds","generateblocks-pro"),isEditing:g,onClickDelete:()=>{w.splice(k,1),v(w),h(null)},onClickDone:()=>{h(null)},showAdd:!m,dropdownChildren:({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("Options","generateblocks-pro")},(0,e.createElement)(Zr.DeleteAll,{label:(0,s.__)("Delete all background styles","generateblocks-pro"),content:(0,s.__)("This will delete all background styles for the current selector. This operation cannot be undone.","generateblocks-pro"),items:u,onDelete:()=>{v([]),h(null)},onClose:t,confirmDelete:l,setConfirmDelete:c})),!l&&(0,e.createElement)(Zr.LearnMore,{learnMoreLabel:(0,s.__)("Learn more about Backgrounds","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/background",onClose:t})),onAdd:()=>{const e=u.some((e=>"image"===e.type));h(0),v([e?R():A(n),...u])},learnMoreLabel:(0,s.__)("Learn more about Backgrounds","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/background",help:m&&(0,s.__)("Remove the disabled background to enable.","generateblocks-pro"),searchKeywords:["image","gradient","blend mode","bg"],cssProp:r},(0,e.createElement)("div",{className:So.control},(0,e.createElement)("div",{className:So.wrapper},!g&&(0,e.createElement)("div",null,(0,e.createElement)(Xr,{items:u,dragHandleLabel:(0,s.__)("Reorder Background","generateblocks-pro"),setItems:e=>{v(e)},itemComponent:function({item:t,index:r}){const n=function(e={}){var t;return[["backgroundImage",null!==(t=e.backgroundImage)&&void 0!==t?t:""],...Object.entries(e).filter((([e])=>e.startsWith("background")&&"backgroundImage"!==e))].reduce(((e,[t,r])=>t.startsWith("background")&&r?e?`${e}\n${I(t)}: ${r};`:`${I(t)}: ${r};`:e),"")}(t),o=n.length>0?n:(0,s.__)("Empty","generateblocks-pro");return(0,e.createElement)(Xr.Item,{label:t.label,css:o,canDuplicate:n.length>0,onDuplicate:()=>{const e=[...u,{...t}];h(e.length-1),v(e)},onEdit:()=>{h(r)}})},dragHandle:!0})),g&&(0,e.createElement)(Lo,{isEditing:g,currentOption:f,findBackgroundIndex:y,setSettings:v})))))};function Do(t){const{styles:r,onStyleChange:n,nestedRule:i,atRule:l,opened:c,scrollAfterOpen:u,onToggle:d,initialOpen:p}=t,{background:h="",backgroundColor:m="",backgroundClip:f="",backgroundOrigin:g="",backgroundBlendMode:b="",backgroundAttachment:v="",backgroundImage:y="",backgroundPosition:w="",backgroundSize:k="",backgroundRepeat:E=""}=r,S=(0,a.useMemo)((()=>({background:h,backgroundBlendMode:b,backgroundAttachment:v,backgroundImage:y,backgroundPosition:w,backgroundSize:k,backgroundRepeat:E})),[h,b,v,y,w,k,E]);return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Backgrounds","generateblocks-pro"),initialOpen:p,icon:(0,e.createElement)(tr,null),opened:!!c||void 0,scrollAfterOpen:u,onToggle:d},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)(zo,{value:S,onStyleChange:n,nestedRule:i,atRule:l}),(0,e.createElement)($r,{as:ve.ColorPicker,label:"Background Color",value:m,cssProp:"backgroundColor",onChange:e=>n("backgroundColor",e),searchKeywords:["bg"]}),(0,e.createElement)($r,{allowCustomValue:!0,as:o.SelectControl,label:"Background Clip",value:f,cssProp:"backgroundClip",options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"border-box",value:"border-box"},{label:"padding-box",value:"padding-box"},{label:"content-box",value:"content-box"},{label:"text",value:"text"}],onChange:e=>n("backgroundClip",e),learnMoreLabel:(0,s.__)("Learn more about this property","generateblocks-pro"),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip",dropdownChildren:()=>(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("About Background Clip","generateblocks-pro")},(0,e.createElement)("p",{style:{padding:"0 8px"}},(0,s.__)("This property only will apply if a background color or image is set, or if the element has a border with transparency.","generateblocks-pro")))}),(0,e.createElement)($r,{allowCustomValue:!0,as:o.SelectControl,label:"Background Origin",value:g,cssProp:"backgroundOrigin",options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"border-box",value:"border-box"},{label:"padding-box",value:"padding-box"},{label:"content-box",value:"content-box"}],onChange:e=>n("backgroundOrigin",e),learnMoreLabel:(0,s.__)("Learn more about this property","generateblocks-pro"),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/background-origin",dropdownChildren:()=>(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("About Background Origin","generateblocks-pro")},(0,e.createElement)("p",{style:{padding:"0 8px"}},(0,s.__)("This property property sets the background's origin: from the border start, inside the border, or inside the padding.","generateblocks-pro")))})))}function Fo(t){const{styles:r,onStyleChange:n,opened:i,scrollAfterOpen:l,onToggle:c,initialOpen:u}=t,{position:d="",overflowX:p="",overflowY:h="",zIndex:m="",top:f="",right:g="",bottom:b="",left:v=""}=r,y=[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"visible",value:"visible"},{label:"hidden",value:"hidden"},{label:"clip",value:"clip"},{label:"scroll",value:"scroll"},{label:"auto",value:"auto"}],w=(0,a.useMemo)((()=>({Top:{prop:"top",value:f},Left:{prop:"left",value:v},Bottom:{prop:"bottom",value:b},Right:{prop:"right",value:g}})),[f,g,b,v]);return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Position","generateblocks-pro"),initialOpen:u,icon:(0,e.createElement)(nr,null),opened:!!i||void 0,scrollAfterOpen:l,onToggle:c},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)($r,{allowCustomValue:!0,as:o.SelectControl,label:"position",value:d,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Relative",value:"relative"},{label:"Absolute",value:"absolute"},{label:"Sticky",value:"sticky"},{label:"Fixed",value:"fixed"}],onChange:e=>n("position",e),cssProp:"position"}),(0,e.createElement)(jn,{id:"direction",cssProps:w,onChange:n,syncTypes:["all"],label:"Inset"}),(0,e.createElement)($r,{allowCustomValue:!0,as:o.SelectControl,label:"Overflow-X",value:p,options:y,onChange:e=>n("overflowX",e),cssProp:"overflowX"}),(0,e.createElement)($r,{allowCustomValue:!0,as:o.SelectControl,label:"Overflow-Y",value:h,options:y,onChange:e=>n("overflowY",e),cssProp:"overflowY"}),(0,e.createElement)($r,{as:o.TextControl,label:"z-index",value:m,cssProp:"zIndex",onChange:e=>{n("zIndex",e),d||n("position","relative")}})))}function Bo({opacity:t,onStyleChange:r}){let n=100*parseFloat(t);const a=Number.isInteger(n);return isNaN(n)&&(n=t),(0,e.createElement)($r,{as:o.RangeControl,label:"Opacity",hasCustomValue:!a&&""!==t,value:n,step:1,cssProp:"opacity",onChange:e=>{let t=parseFloat(e)/100;isNaN(t)&&(t=e),r("opacity",t)},min:0,max:100,allowCustomValue:!0})}const No=e=>e.replace(/-webkit-box-shadow:[^;]+;|-moz-box-shadow:[^;]+;/g,""),jo=e=>e.replace(/box-shadow/g,"").replace(/webkit/g,"").replace(/\r?\n|\r/g,"").replace(/;/g,"").replace(/:/g,"").trim(),Vo=(e=[])=>e.reduce(((e,t)=>{if(t.hidden)return e;const{offsetX:r="",offsetY:n="",blur:o="",spread:a="",color:s="",inset:i=!1}=t,l=`${i?"inset":""} ${r} ${n} ${o} ${a} ${s}`.trim();return l.trim().length?e.length>0?`${e}, ${l}`:`${l}`:e}),"").replace(/,$/,"").trim(),Uo=function(){const e=/,(?![^\(]*\))/,t=/\s(?![^(]*\))/,r=/^[0-9]+[a-zA-Z%]+$/,n=e=>{const r=e.split(t),n=r.includes("inset"),o=r.slice(-1)[0],s=a(o)?void 0:o,i=r.filter((e=>"inset"!==e)).filter((e=>e!==s)),[l,c,u,d]=i;return{inset:n,offsetX:l,offsetY:c,blur:u,spread:d,color:s}},o=e=>{const{inset:t,offsetX:r=0,offsetY:n=0,blur:o=0,spread:a,color:s}=e||{};return[t?"inset":null,r,n,o,a,s].filter((e=>null!=e)).map((e=>(""+e).trim())).join(" ")},a=e=>r.test(e);return{parse:t=>t?t.split(e).map((e=>e.trim())).map(n):[],stringify:e=>e?.length?e.map(o).join(", "):""}}(),Wo=["px","em","rem","vw","vh","ch"];function Ho({findBoxShadowIndex:t,setSettings:r,currentOption:n=null}){const{styles:a,index:s}=t();return n&&(0,e.createElement)(Kr,null,(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,e.createElement)(o.CheckboxControl,{checked:n.inset,label:"Inset",onChange:e=>{a[s].inset=e,r(a)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:ve.ColorPicker,value:n?.color||"rgba(0,0,0,.1)",tooltip:"Box Shadow Color",onChange:e=>{a[s].color=e,r(a)}})),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,label:"x-Offset",units:Wo,value:n.offsetX,onChange:e=>{a[s].offsetX=e,r(a)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,label:"y-Offset",units:Wo,value:n.offsetY,onChange:e=>{a[s].offsetY=e,r(a)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,label:"blur",units:Wo,value:n?.blur,onChange:e=>{a[s].blur=e,r(a)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,label:"spread",units:Wo,value:n?.spread,onChange:e=>{a[s].spread=e,r(a)}}))}function $o({onStyleChange:t,value:r}){var n;const[i,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)(""),[d,p]=(0,a.useState)(!1),[h,m]=(0,a.useState)((()=>Uo.parse(r))),[f,g]=(0,a.useState)(null),b=null!==(n=h[f])&&void 0!==n?n:null,v=null!==b,y=(0,yr.useDebounce)(t,0),w=(0,a.useCallback)((function(e){m(e),y("boxShadow",Vo(e))}),[y]),k=(0,a.useCallback)((()=>{const e=[...h];return{styles:e,index:e[f]?f:-1}}),[h,f]),{styles:E,index:S}=k();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Zr,{items:h,label:"Box Shadow",searchKeywords:["shadows","box-shadow"],cssProp:"boxShadow",onAdd:()=>{const e=[...h,{offsetX:"10px",offsetY:"10px",blur:"5px",spread:"7px",color:"rgba(0,0,0,0.1)",inset:!1}];g(e.length-1),w(e)},isEditing:v,onClickDelete:()=>{E.splice(S,1),w(E),g(null)},onClickDone:()=>{g(null)},dropdownChildren:({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("Options","generateblocks-pro")},!d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuItem,{onClick:()=>{l(!0),t()}},(0,s.__)("Add via paste…","generateblocks-pro"))),(0,e.createElement)(Zr.DeleteAll,{label:(0,s.__)("Delete all box shadow styles","generateblocks-pro"),content:(0,s.__)("This will delete all box shadow styles for the current selector. This operation cannot be undone.","generateblocks-pro"),items:h,onDelete:e=>{w(e),g(null)},onClose:t,confirmDelete:d,setConfirmDelete:p})),!d&&(0,e.createElement)(Zr.LearnMore,{learnMoreLabel:(0,s.__)("Learn more about CSS Box Shadows","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow",onClose:t}))},(0,e.createElement)("div",{className:"gb-box-shadow"},(0,e.createElement)("div",{className:"gb-box-shadow__wrapper"},!v&&(0,e.createElement)("div",null,(0,e.createElement)(Xr,{items:h,dragHandleLabel:(0,s.__)("Reorder Box Shadow","generateblocks-pro"),setItems:e=>{w(e)},itemComponent:function({item:t,index:r}){const n=Vo([t]),o=n.length>0?n:(0,s.__)("Invalid box shadow","generateblocks-pro");return(0,e.createElement)(Xr.Item,{css:o,swatchColor:t.color,canDuplicate:n.length>0,onDuplicate:()=>{const e=[...h,{...t}];g(e.length-1),w(e)},onEdit:()=>{g(r)}})},dragHandle:!0})),(0,e.createElement)(Ho,{isEditing:v,currentOption:b,findBoxShadowIndex:k,setSettings:w}))),(0,e.createElement)(Zr.PasteModal,{property:"box-shadow",errorMessage:c,showPasteStyles:i,setShowPasteStyles:l,onAddStyles:({pastedValue:e,replaceStyles:t})=>{if(!e||0===e.length)return!1;try{const r=Uo.parse(jo(No(e))),n=t?[...r]:[...h,...r];return w(n),l(!1),u(""),!0}catch(e){return u((0,s.__)("Error parsing pasted styles. Please check your CSS and try again.","generateblocks-pro")),!1}}})))}var qo=r(9456);function Go(e){return e?e.split(",").map((e=>{const t=document.createElement("div");if(t.style.transition=e,""===t.style.transition)return!1;const{transitionProperty:r="",transitionDuration:n="",transitionTimingFunction:o="",transitionDelay:a=""}=t.style;return{transitionProperty:r,transitionDuration:n,transitionTimingFunction:o,transitionDelay:a}})).filter(Boolean):[]}const Zo=e=>e.replace(/transition/g,"").replace(/webkit/g,"").replace(/\r?\n|\r/g,"").replace(/;/g,"").replace(/:/g,"").trim(),Ko=(e=[])=>e.reduce(((e,t)=>{if(t.hidden)return e;const{transitionProperty:r,transitionDuration:n,transitionDelay:o,transitionTimingFunction:a}=t,s=`${r} ${n} ${a} ${o}`.trim();return s.length?e.length>0?`${e}, ${s}`:`${s}`:e}),"").replace(/,$/,"").trim(),Yo=(e="")=>{const t=e.match(/^cubic-bezier\((\d+(?:\.\d+)?),\s*(\d+(?:\.\d+)?),\s*(\d+(?:\.\d+)?),\s*(\d+(?:\.\d+)?)\)$/);if(t){const[,e,,r]=t;return e<0||e>1||r<0||r>1?[!1,(0,s.__)("Invalid cubic-bezier definition.","generateblocks-pro")]:[!0,""]}const r=e.match(/^steps\(([^,]+),\s*(.+)\)$/);if(r){const[,e,t]=r,n=parseInt(e,10),o=["jump-start","jump-end","jump-none","jump-both","start","end"];return isNaN(n)||n<1||!o.includes(t)?[!1,(0,s.__)("Invalid steps definition.","generateblocks-pro")]:[!0,""]}return e.startsWith("var(--")||["ease","linear","ease-in","ease-out","ease-in-out","initial","inherit"].includes(e)?[!0,""]:[!1,(0,s.__)("Unknown timing function.","generateblocks-pro")]},Qo=["s"];function Jo({currentOption:t,findTransitionIndex:r,setSettings:n,cssPropertyError:a,cssTimingError:i}){const{styles:l,index:c}=r();if(t){var u;let e=!1;qo.all.includes(null!==(u=t.transitionProperty)&&void 0!==u?u:"")||(l[c].transitionProperty="all",e=!0),Yo(t.transitionTimingFunction)||(l[c].transitionTimingFunction="ease",e=!0),e&&n(l)}return t&&(0,e.createElement)(Kr,null,(0,e.createElement)($r,{as:xn,label:"Duration",units:Qo,value:t.transitionDuration,defaultUnitValue:"s",onChange:e=>{l[c].transitionDuration=e,n(l)},alwaysVisible:!0}),(0,e.createElement)($r,{as:xn,label:"Delay",units:Qo,value:t.transitionDelay,defaultUnitValue:"s",onChange:e=>{l[c].transitionDelay=e,n(l)},alwaysVisible:!0}),(0,e.createElement)($r,{as:o.TextControl,label:"Transition Property",value:t.transitionProperty,onChange:e=>{l[c].transitionProperty=e,n(l)},help:a,alwaysVisible:!0}),(0,e.createElement)($r,{alwaysVisible:!0,as:o.SelectControl,allowCustomValue:!0,label:"Timing Function",value:t.transitionTimingFunction,options:[{label:"Ease",value:"ease"},{label:"Linear",value:"linear"},{label:"Ease-in",value:"ease-in"},{label:"Ease-out",value:"ease-out"},{label:"Ease-in-out",value:"ease-in-out"},{label:"Step-start",value:"step-start"},{label:"Step-end",value:"step-end"},{label:"Initial",value:"initial"},{label:"Inherit",value:"inherit"}],help:i,customValueHelp:i||(0,s.__)("Enter any valid CSS timing function.","generateblocks-pro"),onChange:e=>{l[c].transitionTimingFunction=e,n(l)}}))}function Xo({onStyleChange:t,value:r}){var n;const[i,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)(""),[d,p]=(0,a.useState)(!1),[h,m]=(0,a.useState)((()=>Go(r))),[f,g]=(0,a.useState)(null),[b,v]=(0,a.useState)(null),[y,w]=(0,a.useState)(null),k=null!==(n=h[y])&&void 0!==n?n:null,E=null!==k,S=(0,yr.useDebounce)(t,0),x=(0,a.useCallback)((function(e){m(e),S("transition",Ko(e))}),[S]),C=(0,a.useCallback)((()=>{const e=[...h];return{styles:e,index:e[y]?y:-1}}),[h,y]),{styles:_,index:O}=C();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Zr,{items:h,label:"Transition",cssProp:"transition",searchKeywords:["tween","timing","duration","delay","timing-function"],onAdd:()=>{const e=[...h,{transitionProperty:"all",transitionDuration:"0.5s",transitionDelay:"0s",transitionTimingFunction:"ease"}];w(e.length-1),x(e)},isEditing:E,onClickDelete:()=>{_.splice(O,1),x(_),w(null)},onClickDone:()=>{const e=Yo(k.transitionTimingFunction);let t=!1;g(null),v(null),qo.all.includes(k.transitionProperty)||(g((0,s.__)("Please enter a valid CSS property!","generateblocks-pro")),t=!0),e[0]||(v(e[1]),t=!0),t||(g(null),v(null)),w(null)},dropdownChildren:({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("Options","generateblocks-pro")},!d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuItem,{onClick:()=>{l(!0),t()}},(0,s.__)("Paste in transition styles","generateblocks-pro"))),(0,e.createElement)(Zr.DeleteAll,{label:(0,s.__)("Delete all transition styles","generateblocks-pro"),content:(0,s.__)("This will delete all transition styles for the current selector. This operation cannot be undone.","generateblocks-pro"),items:h,onDelete:e=>{x(e),w(null)},onClose:t,confirmDelete:d,setConfirmDelete:p})),!d&&(0,e.createElement)(Zr.LearnMore,{learnMoreLabel:(0,s.__)("Learn more about CSS Transitions","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/transition",onClose:t}))},(0,e.createElement)("div",{className:"gb-transition"},(0,e.createElement)("div",{className:"gb-transition__wrapper"},!E&&(0,e.createElement)("div",null,(0,e.createElement)(Xr,{items:h,dragHandleLabel:(0,s.__)("Reorder Transition","generateblocks-pro"),setItems:e=>{x(e)},itemComponent:function({item:t,index:r}){const n=Ko([t]),o=n.length>0?n:(0,s.__)("Invalid transition","generateblocks-pro");return(0,e.createElement)(Xr.Item,{css:o,swatchColor:t.color,onDuplicate:()=>{const e=[...h,{...t}];w(e.length-1),x(e)},onEdit:()=>{w(r)}})},dragHandle:!0})),(0,e.createElement)(Jo,{currentOption:k,findTransitionIndex:C,setSettings:x,cssPropertyError:f,cssTimingError:b}))),(0,e.createElement)(Zr.PasteModal,{property:"transition",errorMessage:c,showPasteStyles:i,setShowPasteStyles:l,onAddStyles:({pastedValue:e,replaceStyles:t})=>{if(!e||0===e.length)return!1;try{const r=Go(Zo(e)).map((e=>{const{transitionProperty:t,transitionDuration:r,transitionDelay:n,transitionTimingFunction:o}=e;return{transitionProperty:t,transitionDuration:r,transitionDelay:n,transitionTimingFunction:o}})),n=t?[...r]:[...h,...r];return x(n),l(!1),u(""),!0}catch(e){return u((0,s.__)("Error parsing pasted styles. Please check your CSS and try again.","generateblocks-pro")),console.error(e),!1}}})))}function ea(e=[]){return e.reduce(((e,t)=>{if(t?.hidden)return e;const{type:r,value:n,dropShadow:{xOffset:o="",yOffset:a="",blur:s="",color:i=""}={}}=t;let l=`${r}(${n})`;return"drop-shadow"===r&&(l=`${r}(${o} ${a} ${s} ${i})`),e.length>0?`${e} ${l}`:`${l}`}),"").trim()}function ta(e){const t=e.match(/\b(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(([^)]+)\)/g),r=[];return t?(t.forEach((e=>{const t=e.split("(")[0],n=e.match(/\(([^)]+)\)/)[1];if("drop-shadow"===t){const e=function(e){const t=e.split(" ").filter(Boolean);if(4!==t.length)return null;let r=t.pop();return/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(r)||(r="#cccccc"),{xOffset:t[0],yOffset:t[1],blur:t[2],color:r}}(n);e&&r.push({type:"drop-shadow",dropShadow:e})}else(function(e){const t=document.createElement("div");return t.style.filter=e,""!==t.style.filter})(e)&&r.push({type:t,value:n,dropShadow:{}})})),Array.from(new Set(r.map(JSON.stringify))).map(JSON.parse)):[]}const ra={blur:["px"],brightness:["%"],contrast:["%"],"drop-shadow":["px","em","rem","vw","vh","ch"],grayscale:["%"],"hue-rotate":["deg"],invert:["%"],opacity:["%"],saturate:["%"],sepia:["%"]},na={blur:"5px",brightness:"100%",contrast:"100%","drop-shadow":{xOffset:"10px",yOffset:"10px",blur:"5px",color:"#cccccc"},grayscale:"100%","hue-rotate":"0deg",invert:"100%",opacity:"100%",saturate:"100%",sepia:"100%"},oa={blur:"Blur",brightness:"Brightness",contrast:"Contrast","drop-shadow":"Drop Shadow",grayscale:"Grayscale","hue-rotate":"Hue Rotate",invert:"Invert",opacity:"Opacity",saturate:"Saturate",sepia:"Sepia"};function aa({findFilterIndex:t,setSettings:r,transitionSettings:n,onStyleChange:a,currentOption:i=null}){const{styles:l,index:c}=t(),u=!n.some((e=>["all","filter"].includes(e.transitionProperty)));return i&&(0,e.createElement)(Kr,null,(0,e.createElement)($r,{as:o.SelectControl,label:(0,s.__)("Filter type","generateblocks-pro"),value:i.type,options:[{label:oa.blur,value:"blur"},{label:oa.brightness,value:"brightness"},{label:oa.contrast,value:"contrast"},{label:oa["drop-shadow"],value:"drop-shadow"},{label:oa.grayscale,value:"grayscale"},{label:oa["hue-rotate"],value:"hue-rotate"},{label:oa.invert,value:"invert"},{label:oa.opacity,value:"opacity"},{label:oa.saturate,value:"saturate"},{label:oa.sepia,value:"sepia"}],onChange:e=>{l[c].type=e,l[c].value=na[e],r(l)},alwaysVisible:!0}),"blur"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.blur,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"brightness"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.brightness,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"contrast"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.contrast,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"drop-shadow"===i.type&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{as:xn,allowCustomValue:!0,label:"X-Offset",units:ra[i.type],value:i.dropShadow.xOffset[0],onChange:e=>{l[c].dropShadow.xOffset=e,r(l)},alwaysVisible:!0}),(0,e.createElement)($r,{as:xn,allowCustomValue:!0,label:"Y-Offset",units:ra[i.type],value:i.dropShadow.yOffset[0],onChange:e=>{l[c].dropShadow.yOffset=e,r(l)},alwaysVisible:!0}),(0,e.createElement)($r,{as:xn,allowCustomValue:!0,label:"Blur",units:ra[i.type],value:i.dropShadow.blur[0],onChange:e=>{l[c].dropShadow.blur=e,r(l)},alwaysVisible:!0}),(0,e.createElement)($r,{as:ve.ColorPicker,value:i.dropShadow.color,label:"Color",tooltip:(0,s.__)("Filter color","generateblocks-pro"),onChange:e=>{l[c].dropShadow.color=e,r(l)},alwaysVisible:!0})),"grayscale"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.grayscale,allowCustomValue:!0,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"hue-rotate"===i.type&&(0,e.createElement)($r,{as:xn,label:oa["hue-rotate"],allowCustomValue:!0,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"invert"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.invert,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"opacity"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.opacity,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"saturate"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.saturate,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"sepia"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.sepia,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)}}),u&&(0,e.createElement)(o.Button,{style:{marginTop:"10px"},label:(0,s.__)("Automatically add a smooth transition for filters","generateblocks-pro"),showTooltip:!0,variant:"secondary",size:"compact",icon:p,onClick:()=>{const e=[...n,{transitionProperty:"all",transitionDuration:"0.5s",transitionDelay:"0s",transitionTimingFunction:"ease",transitionProperty:"filter"}];a("transition",Ko(e),e)}},"Transition"))}function sa({onStyleChange:t,value:r="",transition:n=""}){var i;const l=(0,a.useMemo)((()=>Go(n)),[n]),[c,u]=(0,a.useState)(!1),[d,p]=(0,a.useState)(""),[h,m]=(0,a.useState)(!1),[f,g]=(0,a.useState)((()=>ta(r))),[b,v]=(0,a.useState)(null),y=null!==(i=f[b])&&void 0!==i?i:null,w=(0,a.useMemo)((()=>null!==y),[y]),k=(0,yr.useDebounce)(t,0),E=(0,a.useCallback)((function(e){g(e),k("filter",ea(e))}),[k]),S=(0,a.useCallback)((()=>{const e=[...f];return{styles:e,index:e[b]?b:-1}}),[f,b]),{styles:x,index:C}=S();return(0,e.createElement)(Zr,{items:f,label:"Filter",cssProp:"filter",isEditing:w,onClickDelete:()=>{x.splice(C,1),E(x),v(null)},onClickDone:()=>{v(null)},dropdownChildren:({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("Options","generateblocks-pro")},!h&&(0,e.createElement)(o.MenuItem,{onClick:()=>{u(!0),t()}},(0,s.__)("Add via paste…","generateblocks-pro")),(0,e.createElement)(Zr.DeleteAll,{label:(0,s.__)("Delete all filter styles","generateblocks-pro"),content:(0,s.__)("This will delete all filter styles for the current selector. This operation cannot be undone.","generateblocks-pro"),items:f,onDelete:e=>{E(e),v(null)},onClose:t,confirmDelete:h,setConfirmDelete:m})),!h&&(0,e.createElement)(Zr.LearnMore,{learnMoreLabel:(0,s.__)("Learn more about CSS Filters","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/filter",onClose:t})),onAdd:()=>{const e=[...f,{type:"blur",value:"5px",dropShadow:{xOffset:"10px",yOffset:"10px",blur:"5px",color:"#cccccc"}}];v(e.length-1),E(e)},learnMoreLabel:(0,s.__)("Learn more about CSS Filters","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/filter"},(0,e.createElement)("div",{className:"gb-filter"},(0,e.createElement)("div",{className:"gb-filter__wrapper"},!w&&(0,e.createElement)("div",null,(0,e.createElement)(Xr,{items:f,dragHandleLabel:(0,s.__)("Reorder Filter","generateblocks-pro"),setItems:e=>{E(e)},itemComponent:function({item:t,index:r}){const n=ea([t]),o=n.length>0?n:(0,s.__)("Invalid transform","generateblocks-pro");return(0,e.createElement)(Xr.Item,{css:o,swatchColor:"drop-shadow"===t.type&&t?.dropShadow?.color,onDuplicate:()=>{const e=[...f,{...t}];v(e.length-1),E(e)},onEdit:()=>{v(r)}})},dragHandle:!0})),w&&(0,e.createElement)(aa,{currentOption:y,findFilterIndex:S,settings:f,setSettings:E,transitionSettings:l,onStyleChange:t}))),(0,e.createElement)(Zr.PasteModal,{property:"filter",errorMessage:d,showPasteStyles:c,setShowPasteStyles:u,onAddStyles:({pastedValue:e,replaceStyles:t})=>{if(!e||0===e.length)return!1;try{const r=ta(e),n=t?[...r]:[...f,...r];return E(n),u(!1),p(""),!0}catch(e){return p((0,s.__)("Error parsing pasted styles. Please check your CSS and try again.","generateblocks-pro")),!1}}}))}const ia=e=>e.replace(/-webkit-text-shadow:[^;]+;|-moz-text-shadow:[^;]+;/g,""),la=e=>e.replace(/text-shadow/g,"").replace(/webkit/g,"").replace(/\r?\n|\r/g,"").replace(/;/g,"").replace(/:/g,"").trim(),ca=(e=[])=>e.reduce(((e,t)=>{if(t.hidden)return e;const{offsetX:r="",offsetY:n="",blur:o="",color:a=""}=t,s=`${a} ${r} ${n} ${o}`.trim();return s.trim().length?e.length>0?`${e}, ${s}`:`${s}`:e}),"").replace(/,$/,"").trim(),ua=function(){const e=/,(?![^\(]*\))/,t=/\s(?![^(]*\))/,r=/^[0-9]+[a-zA-Z%]+$/,n=e=>{const r=e.split(t),n=a(r[0])?void 0:r[0],o=r.filter((e=>e!==n)),[s,i,l]=o;return{offsetX:s,offsetY:i,blur:l,color:n}},o=e=>{const{offsetX:t=0,offsetY:r=0,blur:n=0,color:o}=e||{};return[o,t,r,n].filter((e=>null!=e)).map((e=>(""+e).trim())).join(" ")},a=e=>r.test(e);return{parse:t=>t?t.split(e).map((e=>e.trim())).map(n):[],stringify:e=>e?.length?e.map(o).join(", "):""}}(),da=["px","em","rem","vw","vh","ch"];function pa({findTextShadowIndex:t,setSettings:r,currentOption:n=null}){const{styles:o,index:a}=t();return n&&(0,e.createElement)(Kr,null,(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,e.createElement)($r,{alwaysVisible:!0,as:ve.ColorPicker,value:n?.color||"rgba(0,0,0,1)",tooltip:"Text Shadow Color",onChange:e=>{o[a].color=e,r(o)}})),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,label:"x-Offset",units:da,value:n.offsetX,onChange:e=>{o[a].offsetX=e,r(o)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,label:"y-Offset",units:da,value:n.offsetY,onChange:e=>{o[a].offsetY=e,r(o)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,label:"blur",units:da,value:n?.blur,onChange:e=>{o[a].blur=e,r(o)}}))}function ha({onStyleChange:t,value:r}){var n;const[i,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)(""),[d,p]=(0,a.useState)(!1),[h,m]=(0,a.useState)((()=>ua.parse(r))),[f,g]=(0,a.useState)(null),b=null!==(n=h[f])&&void 0!==n?n:null,v=null!==b,y=(0,yr.useDebounce)(t,0),w=(0,a.useCallback)((function(e){m(e),y("textShadow",ca(e))}),[y]),k=(0,a.useCallback)((()=>{const e=[...h];return{styles:e,index:e[f]?f:-1}}),[h,f]),{styles:E,index:S}=k();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Zr,{items:h,label:"Text Shadow",searchKeywords:["shadows","text-shadow"],cssProp:"textShadow",onAdd:()=>{const e=[...h,{offsetX:"1px",offsetY:"1px",blur:"2px",color:"rgba(0,0,0,1)"}];g(e.length-1),w(e)},isEditing:v,onClickDelete:()=>{E.splice(S,1),w(E),g(null)},onClickDone:()=>{g(null)},dropdownChildren:({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("Options","generateblocks-pro")},!d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuItem,{onClick:()=>{l(!0),t()}},(0,s.__)("Add via paste…","generateblocks-pro"))),(0,e.createElement)(Zr.DeleteAll,{label:(0,s.__)("Delete all text shadow styles","generateblocks-pro"),content:(0,s.__)("This will delete all text shadow styles for the current selector. This operation cannot be undone.","generateblocks-pro"),items:h,onDelete:e=>{w(e),g(null)},onClose:t,confirmDelete:d,setConfirmDelete:p})),!d&&(0,e.createElement)(Zr.LearnMore,{learnMoreLabel:(0,s.__)("Learn more about CSS Text Shadows","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow",onClose:t}))},(0,e.createElement)("div",{className:"gb-text-shadow"},(0,e.createElement)("div",{className:"gb-text-shadow__wrapper"},!v&&(0,e.createElement)("div",null,(0,e.createElement)(Xr,{items:h,dragHandleLabel:(0,s.__)("Reorder Text Shadow","generateblocks-pro"),setItems:e=>{w(e)},itemComponent:function({item:t,index:r}){const n=ca([t]),o=n.length>0?n:(0,s.__)("Invalid text shadow","generateblocks-pro");return(0,e.createElement)(Xr.Item,{css:o,swatchColor:t.color,canDuplicate:n.length>0,onDuplicate:()=>{const e=[...h,{...t}];g(e.length-1),w(e)},onEdit:()=>{g(r)}})},dragHandle:!0})),(0,e.createElement)(pa,{isEditing:v,currentOption:b,findTextShadowIndex:k,setSettings:w}))),(0,e.createElement)(Zr.PasteModal,{property:"text-shadow",errorMessage:c,showPasteStyles:i,setShowPasteStyles:l,onAddStyles:({pastedValue:e,replaceStyles:t})=>{if(!e||0===e.length)return!1;try{const r=ua.parse(la(ia(e))),n=t?[...r]:[...h,...r];return w(n),l(!1),u(""),!0}catch(e){return u((0,s.__)("Error parsing pasted styles. Please check your CSS and try again.","generateblocks-pro")),!1}}})))}const ma=["perspective","rotate","rotate3d","scale","scale3d","skew","translate3d"];function fa(e=[]){return e.reduce(((e,t)=>{const{hidden:r=!1,values:n=[],type:o=""}=t,a=`${o}(${n.join(", ").trim()})`;return r?e:a?e.length>0?`${e} ${a}`:`${a}`:e}),"").trim()}function ga(e=""){const t=function(e){const t=document.createElement("div");return t.style.transform=e,t.style.transform}(e);if(!t)return null;if(["unset","inherit","initial"].includes(t))return{[t]:!0};const r=t.replaceAll(/var\(([^)]+)\)/g,"$1").match(/([A-z\d]+)\(([^)]+)\)/g);return r?r.reduce(((e,t)=>{if(!t)return e;const[r,n]=t.match(/(^[a-z\d]*)|\(([^)]+)\)/g),o=n.replace("(","").replace(")","").split(",").map((e=>{const t=e.trim();return t.startsWith("--")?`var(${t})`:t}));return{...e,[r]:{type:r,values:o,cssText:`${r}${n}`}}}),{}):null}const ba={perspective:["px","em","%","vh","vw"],rotate:["deg"],rotate3d:["deg"],scale:[],scale3d:[],skew:["deg"],translate3d:["px","em","%","vh","vw"]},va={perspective:{cssText:"perspective(0px)",values:["0px"]},rotate:{cssText:"rotate(0deg)",values:["0deg"]},scale:{cssText:"scale(1)",values:["1"]},scale3d:{cssText:"scale3d(1, 1, 1)",values:["1","1","1"]},skew:{cssText:"skew(0deg)",values:["0deg"]},translate3d:{cssText:"translate3d(0px, 0px, 0px)",values:["0px","0px","0px"]},rotate3d:{cssText:"rotate3d(0, 0, 0, 0deg)",values:["0","0","0","0deg"]},custom:{cssText:"",values:[""]}},ya={perspective:"Perspective",translate3d:"Translate",rotate:"Rotate",rotate3d:"Rotate (3d)",scale:"Scale",scale3d:"Scale (3d)",skew:"Skew",custom:(0,s.__)("Custom","generateblocks-pro")},wa=(0,s.__)("Enter any valid transform value here.","generateblocks-pro");function ka({findTransformIndex:t,setSettings:r,settings:n,onStyleChange:i,setNextEditIndex:l,currentOption:c=null,transitionSettings:u=[]}){var d,h;const[m,f]=(0,a.useState)(wa),{styles:g,index:b}=t(),v=null!==(d=c?.values)&&void 0!==d?d:[],y=null!==(h=c?.cssText)&&void 0!==h?h:"";let w=c?.type||"custom";const k=!u.some((e=>["all","transform"].includes(e.transitionProperty))),E=!ma.includes(w);return E&&"custom"!==w&&(w="custom"),c&&(0,e.createElement)(Kr,null,(0,e.createElement)($r,{alwaysVisible:!0,as:o.SelectControl,label:(0,s.__)("Transform type","generateblocks-pro"),value:w,options:[{label:ya.perspective,value:"perspective",disabled:n.some((e=>"perspective"===e.type))},{label:ya.rotate,value:"rotate"},{label:ya.rotate3d,value:"rotate3d"},{label:ya.translate3d,value:"translate3d"},{label:ya.scale,value:"scale"},{label:ya.scale3d,value:"scale3d"},{label:ya.skew,value:"skew"},{label:ya.custom,value:"custom"}],onChange:e=>{g[b].type=e,"custom"!==e&&(g[b]={...g[b],...va[e]}),"perspective"===e&&b>0&&(g.unshift(g.splice(b,1)[0]),l(0)),r(g)}}),E&&(0,e.createElement)($r,{alwaysVisible:!0,as:o.TextControl,label:ya[w],help:m||wa,placeholder:"e.g. rotate(45deg)",onChange:(e="")=>{if(""===e)return g[b].values=[""],g[b].cssText="",r(g),void f(wa);const t=ga(e);if(null===t)return void f((0,s.__)("Invalid value"));if(Object.keys(t).length>1)return void f((0,s.__)("Only one transform value is allowed.","generateblocks-pro"));m!==wa&&f(wa);const n=Object.keys(t)[0];g[b]={type:n,...t[n]},r(g)},value:y}),"translate3d"===w&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:`${ya[w]} X`,value:v[0],onChange:e=>{g[b].values[0]=e,r(g)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:`${ya[w]} Y`,value:v[1],onChange:e=>{g[b].values[1]=e,r(g)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:`${ya[w]} Z`,value:v[2],onChange:e=>{g[b].values[2]=e,r(g)}})),["rotate","skew"].includes(w)&&(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:ya[w],value:v[0],onChange:(e=0)=>{g[b].values[0]=e,r(g)}}),"scale"===w&&(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:ya[w],value:v[0],onChange:e=>{g[b].values[0]=e,r(g)}}),"perspective"===w&&(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:ya[w],value:v[0],onChange:e=>{g[b].values[0]=e,r(g)}}),"rotate3d"===w&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:[],label:`${ya[w]} X`,value:v[0],onChange:e=>{g[b].values[0]=e,r(g)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:[],label:`${ya[w]} Y`,value:v[1],onChange:e=>{g[b].values[1]=e,r(g)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:[],label:`${ya[w]} Z`,value:v[2],onChange:e=>{g[b].values[2]=e,r(g)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:`${ya[w]} Angle`,value:v[3],onChange:e=>{g[b].values[3]=e,r(g)}})),"scale3d"===w&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:`${ya[w]} X`,value:v[0],onChange:e=>{g[b].values[0]=e,r(g)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:`${ya[w]} Y`,value:v[1],onChange:e=>{g[b].values[1]=e,r(g)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:`${ya[w]} Z`,value:v[2],onChange:e=>{g[b].values[2]=e,r(g)}})),k&&(0,e.createElement)(o.Button,{label:(0,s.__)("Automatically add a smooth transition for transforms","generateblocks-pro"),showTooltip:!0,variant:"secondary",size:"compact",icon:p,onClick:()=>{const e=[...u,{transitionProperty:"all",transitionDuration:"0.5s",transitionDelay:"0s",transitionTimingFunction:"ease",transitionProperty:"transform"}],t=Ko(e);i("transition",t,e)}},"Transition"))}function Ea(e){if(!e)return[];const t=ga(e);return null===t?[]:Object.entries(t).map((([e,t])=>{const{disabled:r=!1}=t;return{type:e,...t,id:br(),disabled:"perspective"===e||r}}))}function Sa({onStyleChange:t,value:r="",transition:n=""}){var i;const l=(0,a.useMemo)((()=>Go(n)),[n]),[c,u]=(0,a.useState)((()=>Ea(r))),[d,p]=(0,a.useState)(!1),[h,m]=(0,a.useState)(""),[f,g]=(0,a.useState)(!1),[b,v]=(0,a.useState)(null),y=null!==(i=c[b])&&void 0!==i?i:null,w=null!==y,k=(0,yr.useDebounce)(t,0),E=(0,a.useCallback)((function(e){u(e),k("transform",fa(e))}),[k]),S=(0,a.useCallback)((()=>{const e=[...c];return{styles:e,index:e[b]?b:-1}}),[c,b]),{styles:x,index:C}=S();return(0,e.createElement)(Zr,{items:c,label:"Transform",isEditing:w,cssProp:"transform",onClickDelete:()=>{x.splice(C,1),E(x),v(null)},onClickDone:()=>{v(null)},dropdownChildren:({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("Options","generateblocks-pro")},!f&&(0,e.createElement)(o.MenuItem,{onClick:()=>{p(!0),t()}},(0,s.__)("Add via paste…","generateblocks-pro")),(0,e.createElement)(Zr.DeleteAll,{label:(0,s.__)("Delete all transform styles","generateblocks-pro"),content:(0,s.__)("This will delete all transform styles for the current selector. This operation cannot be undone.","generateblocks-pro"),items:c,onDelete:e=>{E(e),v(null)},onClose:t,confirmDelete:f,setConfirmDelete:g})),!f&&(0,e.createElement)(Zr.LearnMore,{learnMoreLabel:(0,s.__)("Learn more about CSS Transforms","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/transform",onClose:t})),onAdd:()=>{const e=[...c,{type:"translate3d",values:["0px","0px","0px"],cssText:"translate3d(0px, 0px, 0px)"}];v(e.length-1),E(e)},learnMoreLabel:(0,s.__)("Learn more about CSS Transforms","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/transform"},(0,e.createElement)("div",{className:"gb-transform"},(0,e.createElement)("div",{className:"gb-transform__wrapper"},!w&&(0,e.createElement)("div",null,(0,e.createElement)(Xr,{items:c,dragHandleLabel:(0,s.__)("Reorder Transform","generateblocks-pro"),setItems:e=>{E(e.map((e=>({...e,disabled:"perspective"===e.type}))))},itemComponent:function({item:t,index:r}){const n=fa([t]),o=n.length>0?n:(0,s.__)("Invalid transform","generateblocks-pro"),{type:a,color:i}=t;return(0,e.createElement)(Xr.Item,{css:o,swatchColor:i,canDuplicate:"perspective"!==a,onDuplicate:()=>{const e=[...c,{...t}];v(e.length-1),E(e)},onEdit:()=>{v(r)}})},dragHandle:!0})),w&&(0,e.createElement)(ka,{isEditing:w,currentOption:y,findTransformIndex:S,settings:c,setSettings:E,transitionSettings:l,onStyleChange:t,setNextEditIndex:v}))),(0,e.createElement)(Zr.PasteModal,{property:"transform",errorMessage:h,showPasteStyles:d,setShowPasteStyles:p,onAddStyles:({pastedValue:e,replaceStyles:t})=>{if(!e||0===e.length)return!1;try{const r=Ea(e),n=t?[...r]:[...c,...r],o=n.findIndex((({type:e})=>"perspective"===e));return o>0&&n.unshift(n.splice(o,1)[0]),E(n),p(!1),m(""),!0}catch(e){return m((0,s.__)("Error parsing pasted styles. Please check your CSS and try again.","generateblocks-pro")),!1}}}))}function xa(t){const{styles:r,onStyleChange:n,atRule:a,nestedRule:i,opened:l,scrollAfterOpen:c,onToggle:u,initialOpen:d}=t,{backdropFilter:p="",boxShadow:h="",filter:m="",mixBlendMode:f="",opacity:g="",transform:b="",transformOrigin:v="",transition:y="",visibility:w="",textShadow:k=""}=r;let E=parseFloat(g);return isNaN(E)&&(E=g),(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Effects","generateblocks-pro"),initialOpen:d,icon:(0,e.createElement)(rr,null),open,opened:!!l||void 0,scrollAfterOpen:c,onToggle:u},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)($o,{value:h,onStyleChange:n,atRule:a,nestedRule:i}),(0,e.createElement)(Xo,{value:y,onStyleChange:n,atRule:a,nestedRule:i}),(0,e.createElement)(sa,{value:m,transition:y,onStyleChange:n,atRule:a,nestedRule:i}),(0,e.createElement)(ha,{value:k,onStyleChange:n,atRule:a,nestedRule:i}),(0,e.createElement)(Sa,{value:b,transformOrigin:v,transition:y,onStyleChange:n,atRule:a,nestedRule:i}),(0,e.createElement)($r,{as:o.TextControl,label:"Transform Origin",value:v,placeholder:"ex: center, 50% -100%, etc.",onChange:e=>n("transformOrigin",e),cssProp:"transformOrigin",learnMoreLabel:(0,s.__)("Learn more about transform origin","generateblocks-pro"),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origin"}),(0,e.createElement)(Bo,{onStyleChange:n,opacity:g}),(0,e.createElement)($r,{allowCustomValue:!0,as:o.SelectControl,label:"Visibility",value:w,cssProp:"visibility",options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Visible",value:"visible"},{label:"Hidden",value:"hidden"}],onChange:e=>n("visibility",e),help:(0,s.__)('Using the "hidden" value may cause some block editor elements to become invisible.',"generateblocks-pro")}),(0,e.createElement)($r,{as:o.SelectControl,allowCustomValue:!0,label:"Mix Blend Mode",value:f,cssProp:"mixBlendMode",options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Normal",value:"normal"},{label:"Multiply",value:"multiply"},{label:"Screen",value:"screen"},{label:"Overlay",value:"overlay"},{label:"Darken",value:"darken"},{label:"Lighten",value:"lighten"},{label:"Color Dodge",value:"color-dodge"},{label:"Color Burn",value:"color-burn"},{label:"Hard Light",value:"hard-light"},{label:"Soft Light",value:"soft-light"},{label:"Difference",value:"difference"},{label:"Exclusion",value:"exclusion"},{label:"Hue",value:"hue"},{label:"Saturation",value:"saturation"},{label:"Color",value:"color"},{label:"Luminosity",value:"luminosity"}],onChange:e=>n("mixBlendMode",e)}),(0,e.createElement)($r,{as:o.TextControl,label:"Backdrop Filter",value:p,cssProp:"backdropFilter",onChange:e=>n("backdropFilter",e)})))}function Ca(t){const{styles:r,onStyleChange:n,opened:a,scrollAfterOpen:i,onToggle:l,initialOpen:c}=t,{objectFit:u="",objectPosition:d=""}=r;return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Media","generateblocks-pro"),initialOpen:c,icon:(0,e.createElement)(or,null),opened:!!a||void 0,scrollAfterOpen:i,onToggle:l},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)($r,{as:o.SelectControl,label:"Object Fit",id:"gblocks-object-fit",allowCustomValue:!0,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"fill",value:"fill"},{label:"contain",value:"contain"},{label:"cover",value:"cover"},{label:"none",value:"none"},{label:"scale-down",value:"scale-down"}],value:u,onChange:e=>n("objectFit",e),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro"),cssProp:"objectFit",fallback:!0}),(0,e.createElement)($r,{as:o.TextControl,label:"Object Position",id:"gblocks-object-position",value:d,onChange:e=>n("objectPosition",e),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/object-position",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro"),cssProp:"objectPosition",fallback:!0})))}const _a=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"}));function Oa(t){const{styles:r,onStyleChange:n,opened:a,scrollAfterOpen:i,onToggle:l,initialOpen:c}=t,{listStyleType:u="",listStyleImage:d="",listStylePosition:p="",display:h=""}=r;return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Lists","generateblocks-pro"),initialOpen:c,icon:_a,opened:!!a||void 0,scrollAfterOpen:i,onToggle:l},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)($r,{as:o.SelectControl,label:"List Type",id:"gblocks-list-style-type",options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"none",value:"none"},{label:"disc",value:"disc"},{label:"circle",value:"circle"},{label:"square",value:"square"},{label:"decimal",value:"decimal"},{label:"decimal-leading-zero",value:"decimal-leading-zero"},{label:"lower-roman",value:"lower-roman"},{label:"upper-roman",value:"upper-roman"},{label:"lower-greek",value:"lower-greek"}],value:u,cssProp:"listStyleType",allowCustomValue:!0,onChange:e=>n("listStyleType",e)}),(0,e.createElement)($r,{as:o.TextControl,label:"List Image",id:"gblocks-list-style-image",value:d,allowCustomValue:!0,cssProp:"listStyleImage",onChange:e=>n("listStyleImage",e),help:(0,s.__)("The URL of an image to be used as the list item marker.","generateblocks-pro")}),(0,e.createElement)($r,{id:"gblocks-list-style-position",label:"List Position",as:o.SelectControl,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Inside",value:"inside"},{label:"Outside",value:"outside"}],help:(0,s.__)("The position of the list item marker.","generateblocks-pro"),allowCustomValue:!0,value:p,cssProp:"listStylePosition",onChange:e=>n("listStylePosition",e)}),!["","list-item"].includes(h)&&(0,e.createElement)(o.Notice,{status:"warning",isDismissible:!1},(0,s.__)("List properties will not apply unless the element's display property is set to list-item","generateblocks-pro"))))}function Ta(t){const{styles:r,onStyleChange:n,nestedRule:a,opened:i,scrollAfterOpen:l,onToggle:c,initialOpen:u}=t,{content:d="",pointerEvents:p="",fill:h="",stroke:m=""}=r;return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("More","generateblocks-pro"),initialOpen:u,icon:ar,opened:!!i||void 0,scrollAfterOpen:l,onToggle:c},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(a.includes(":before")||a.includes(":after"))&&(0,e.createElement)($r,{as:o.TextControl,label:"Content",id:"gblocks-content",value:d,cssProp:"content",fallback:!0,onChange:e=>n("content",e),help:(0,s.__)("The content property is used with the ::before and ::after pseudo-elements and must be wrapped in quotes.","generateblocks-pro")}),(0,e.createElement)($r,{as:o.SelectControl,label:"Pointer Events",id:"gblocks-pointer-events",allowCustomValue:!0,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"auto",value:"auto"},{label:"none",value:"none"}],value:p,cssProp:"pointerEvents",fallback:!0,onChange:e=>n("pointerEvents",e),dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Pointer Events","generateblocks-pro"),onClick:t},(0,s.__)("Use this property to control whether an element can be the target for click/keyboard events. See the documentation link below for a complete list (note: some only apply to SVG tags).","generateblocks-pro")),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro")}),(0,e.createElement)($r,{as:ve.ColorPicker,label:"Fill Color",id:"gblocks-fill",allowCustomValue:!0,value:h,cssProp:"fill",fallback:!0,onChange:e=>n("fill",e),dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Fill","generateblocks-pro"),onClick:t},(0,s.__)("Set the color of an svg element or svg child element.","generateblocks-pro")),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/fill",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro")}),(0,e.createElement)($r,{as:ve.ColorPicker,label:"Stroke Color",id:"gblocks-stroke",allowCustomValue:!0,value:m,cssProp:"stroke",fallback:!0,onChange:e=>n("stroke",e),dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Stroke","generateblocks-pro"),onClick:t},(0,s.__)("Set the stroke (border) color of an svg element or svg child element.","generateblocks-pro")),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/stroke",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro")})))}const Ia={controls:"knttE5KP5YHzKcXfmYvf",noResults:"VjTLWYpdToJ8tz4sZpC6",filtersActive:"alIq7NNnng4aQl1UHzEp",addMargin:"eVxP5EbXKBfj36ytKhHz",vertical:"dM9ABmijKbDAlB8_Nu4e"},Ma={panel:"EQPCi2ra6jOyVlsV1DEY",filtersActive:"mvSjIIiaUxz8GrR6Cgro"};function Pa({filtersActive:t,scope:r,panel:n,search:o="",atRule:s,id:i,...l}){const c=(0,a.useRef)(null),u=!(!t&&!o),d=`gb-styles-builder-open-panels-${r}`,p=JSON.parse(sessionStorage.getItem(d))||[],h=p?.includes(i)||!1;return(0,e.createElement)("div",{ref:c,className:Se(Ma.panel,(t||o)&&Ma.filtersActive)},(0,e.createElement)(n,{...l,opened:u,atRule:s,scrollAfterOpen:!1,filtersActive:t,search:o,initialOpen:h,onToggle:()=>{if(u)return;const e=JSON.parse(sessionStorage.getItem(d))||[],t=e.includes(i);sessionStorage.setItem(d,t?JSON.stringify(e.filter((e=>e!==i))):JSON.stringify([...e,i]))}}))}class Aa extends a.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e,t.componentStack)}render(){return this.state.hasError?this.props.fallback:this.props.children}}function Ra({styles:t,settings:r,onStyleChange:n,nestedRule:i,atRule:l,deviceType:c,filters:u,dispatchFilters:d,currentSelector:p,scope:h=""}){const m=(0,a.useMemo)((()=>{const e=l?t?.[l]:t;return!!e&&Object.keys(e).length>0}),[JSON.stringify(t),l]),f=!!u.activeFilter,g={styles:t,settings:r,onStyleChange:n,nestedRule:i,atRule:l,deviceType:c,filtersActive:f,search:u.search,scope:h};return(0,e.createElement)("div",{key:p+l+i,className:Se("gb-inspector-controls",Ia.controls,(u.search||f)&&"gb-inspector-controls--filtering")},(0,e.createElement)(Aa,{fallback:(0,s.__)("An error has occured, please reload and try again","generateblocks-pro")},(0,e.createElement)(Pa,{id:"layout",panel:In,...g}),(0,e.createElement)(Pa,{id:"sizing",panel:Pn,...g}),(0,e.createElement)(Pa,{id:"spacing",panel:Vn,...g}),(0,e.createElement)(Pa,{id:"borders",panel:qn,...g}),(0,e.createElement)(Pa,{id:"typography",panel:vo,...g}),(0,e.createElement)(Pa,{id:"backgrounds",panel:Do,...g}),(0,e.createElement)(Pa,{id:"position",panel:Fo,...g}),(0,e.createElement)(Pa,{id:"effects",panel:xa,...g}),(0,e.createElement)(Pa,{id:"media",panel:Ca,...g}),(0,e.createElement)(Pa,{id:"lists",panel:Oa,...g}),(0,e.createElement)(Pa,{id:"more",panel:Ta,...g}),!m&&"hide-empty"===u.activeFilter&&(0,e.createElement)(o.Notice,{className:Se(Ia.addMargin,Ia.vertical),isDismissible:!1},(0,s.__)("No styles set.","generateblocks-pro")," ",(0,e.createElement)(o.Button,{className:Ia.resetButton,variant:"link",onClick:()=>{d({type:"RESET"})}},(0,s.__)("Reset filters","generateblocks-pro"))),m&&(0,e.createElement)(o.Notice,{className:Se(Ia.addMargin,Ia.vertical,Ia.noResults,(f||u.search)&&Ia.filtersActive),isDismissible:!1},(0,s.__)("No results found.","generateblocks-pro"))))}function La({query:e,type:t}){const r=new URLSearchParams(window.location.search);r.set(`gb-${t}-styles-search`,e),window.history.replaceState(null,"",`${window.location.pathname}?${r.toString()}`)}function za(e,t){switch(t.type){case"SET_SEARCH":const{query:r}=t.payload;return La(t.payload),{...e,search:r};case"SET_FILTER":return{...e,activeFilter:t.payload};default:return e}}function Da(e,t){return Array.isArray(e)?e.some((e=>Da(e,t))):"string"==typeof e?e.toLowerCase().includes(t.toLowerCase()):!!(0,a.isValidElement)(e)&&Fa(e,t)}function Fa(e,t){const{children:r}=e.props;return"string"==typeof r?r.toLowerCase().includes(t.toLowerCase()):!!Array.isArray(r)&&r.some((e=>"string"==typeof e?e.toLowerCase().includes(t.toLowerCase()):(0,a.isValidElement)(e)&&Fa(e,t)))}function Ba(t){const{settings:r,onStyleChange:n,nestedRule:i,onNestedRuleChange:l,onAtRuleChange:u,onEditStyle:d,atRule:p,currentSelector:h,onUpdateKey:m,onDeleteStyle:g,styles:b={},allStyles:v={},customAtRules:y=[],selectorShortcuts:w={},visibleSelectors:k=[],scope:E="",canManageStyles:S=!0,setLocalTab:x=()=>{},cancelEditStyle:C=()=>{},allowCustomAtRule:_=!0,allowCustomAdvancedSelector:O=!0}=t,[T,I]=(0,a.useState)(!1),[M,P]=(0,a.useState)(!1),A=(0,a.useMemo)((()=>me(p)),[p]),R=(0,a.useRef)(),[L,z]=(0,a.useState)(null),D=y.length>0?y:fe;(0,a.useEffect)((()=>{if(!R?.current)return;const e=R.current.closest(".editor-sidebar");if(e){const t=e.querySelectorAll(".components-panel__header"),r=Array.from(t).find((e=>null!==e.offsetParent));r&&z(r)}}),[L,R?.current]);const F=(0,a.useMemo)((()=>L?L.getBoundingClientRect().height:"50"),[L]);(0,f.addFilter)("generateblocks.control.atRule","generateblocks-pro/control/functions",(()=>A)),(0,f.addFilter)("generateblocks.control.currentSelector","generateblocks-pro/control/functions",(()=>h)),(0,f.addFilter)("generateblocks.permissions.canManageStyles","generateblocks-pro/permissions",(()=>S)),(0,f.addFilter)("generateblocks.indicators.onEditStyle","generateblocks-pro/indicators/functions",(()=>d)),(0,f.addFilter)("generateblocks.indicators.setLocalTab","generateblocks-pro/indicators/functions",(()=>x)),(0,f.addFilter)("generateblocks.indicators.cancelEditStyle","generateblocks-pro/indicators/functions",(()=>C)),(0,f.addFilter)("generateblocks.indicators.onAtRuleChange","generateblocks-pro/indicators/functions",(()=>u));const[B,N]=(0,a.useReducer)(za,{search:"",activeFilter:""},(()=>{var e;return{search:null!==(e=new URLSearchParams(window.location.search).get(`gb-${E}-styles-search`))&&void 0!==e?e:"",activeFilter:""}})),j=(0,yr.useDebounce)(N,200),V=!!B.activeFilter;return(0,f.addFilter)("generateblocks.control.filters","generateblocks-pro/styles-builder/filters",(()=>B)),(0,f.addFilter)("generateblocks.control.visible","generateblocks-pro/styles-builder/controls-search",((e,t,r)=>{let n=!0;if(!B.search&&!B.activeFilter)return n;const{label:o="",searchKeywords:a=[],matchType:s="",cssProp:i}=t;switch(B.activeFilter){case"hide-empty":n=""!==r?.value||void 0===r?.value;break;case"show-inherited":n=""!==s||!1===i}if(!n||!B.search)return n;const l=Array.from(new Set(a)),c=B.search.split(",").filter(Boolean);return c.length>1?c.some((e=>Da([o,...l],e.trim()))):Da([o,...l],B.search)}),10,2),(0,f.addFilter)("generateblocks.indicators.setSearch","generateblocks-pro/styles-builder/indicators/props",(()=>(e,t)=>{La({query:e,type:t}),N({type:"SET_SEARCH",payload:{query:e,type:t}})})),(0,e.createElement)("div",{ref:R},(0,e.createElement)("div",{className:Se("gb-styles-builder",c.component)},(0,e.createElement)(nn,{allStyles:v,onUpdateKey:m,onNestedRuleChange:l,currentSelector:h,nestedRule:i,showSelectorOptions:T,setShowSelectorOptions:I,onDeleteStyle:g,selectorShortcuts:w,visibleSelectors:k,allowCustomAdvancedSelector:O}),!T&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:c.atRuleFilters,style:{"--topOffset":`${F}px`}},!!D.length>0&&(0,e.createElement)(be,{atRule:A,onAtRuleChange:u,onNestedRuleChange:l,defaultAtRules:D,allStyles:v,showAtRuleOptions:M,setShowAtRuleOptions:P,onUpdateKey:m,nestedRule:i,onDeleteStyle:g,allowCustomAtRule:_}),!M&&(0,e.createElement)("div",{className:c.filters},(0,e.createElement)(o.SearchControl,{__nextHasNoMarginBottom:!0,value:B.search,onChange:e=>{j({type:"SET_SEARCH",payload:{query:e,type:E}})},label:(0,s.__)("Search Controls","generateblocks-pro"),hideLabelFromVision:!0,className:c.search}),(0,e.createElement)(o.DropdownMenu,{variant:"link",size:"small",icon:on,label:(0,s.__)("Filter Controls","generateblocks-pro"),className:c.filtersDropdown,popoverProps:{className:c.filtersPopover},toggleProps:{size:"compact",isPressed:V}},(({onClose:t})=>(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("Controls Visibility","generateblocks-pro")},(0,e.createElement)(o.MenuItemsChoice,{value:B.activeFilter,choices:[{label:(0,s.__)("Show all","generateblocks-pro"),value:""},{info:(0,s.__)("Hide controls with no value set.","generateblocks-pro"),label:(0,s.__)("Hide empty controls","generateblocks-pro"),value:"hide-empty"},{info:(0,s.__)("Show inherited local or global styles.","generateblocks-pro"),label:(0,s.__)("Show inherited values","generateblocks-pro"),value:"show-inherited"}],onSelect:e=>{N({type:"SET_FILTER",payload:e}),t()}})))))),!M&&(0,e.createElement)(Ra,{currentSelector:h,settings:r,styles:b,onStyleChange:n,onNestedRuleChange:l,nestedRule:i,atRule:A,filters:B,dispatchFilters:N,scope:E}))))}const Na={data:{},settings:{}},ja={setStyles:e=>({type:"SET_DATA",payload:e}),addStyle:(e,t,r,n)=>({type:"ADD_STYLE",payload:{property:e,value:t,atRule:r,nestedRule:n}}),updateKey:(e,t,r)=>({type:"UPDATE_KEY",payload:{oldKey:e,newKey:t,nestedRule:r}}),deleteStyle:(e,t)=>({type:"DELETE_STYLE",payload:{key:e,nestedRule:t}})},Va={getStyles:(e,t="",r="")=>ue(e.data,t,r)};function Ua(e=Na,t){if("SET_DATA"===t.type)return Object.assign({},e,{data:t.payload});if("ADD_STYLE"===t.type){const{property:r,value:n,atRule:o,nestedRule:a}=t.payload;let{data:s}=e;return"object"==typeof r?Object.entries(r).forEach((([e,t])=>{s=ie(s,e,t,o,a)})):Array.isArray(r)?r.forEach((e=>{s=ie(s,e.property,e.value,o,a)})):s=ie(e.data,r,n,o,a),{...e,data:s}}if("UPDATE_KEY"===t.type){const{oldKey:r,newKey:n,nestedRule:o}=t.payload,a=le(e.data,r,n,o);return{...e,data:a}}if("DELETE_STYLE"===t.type){const{key:r,nestedRule:n}=t.payload,o=ce(e.data,r,n);return{...e,data:o}}return{...e}}const Wa="",Ha={setNestedRule:e=>({type:"SET_DATA",payload:e})},$a={getNestedRule:e=>e};function qa(e=Wa,t){return"SET_DATA"===t.type?t.payload:e}const Ga={data:{}},Za={setCurrentStyle:e=>({type:"SET_DATA",payload:e})},Ka={currentStyle:e=>e.data};function Ya(e=Ga,t){return"SET_DATA"===t.type?Object.assign({},e,{data:t.payload}):{...e}}const Qa="",Ja={setAtRule:e=>({type:"SET_DATA",payload:e})},Xa={getAtRule:e=>e};function es(e=Qa,t){return"SET_DATA"===t.type?t.payload:e}const ts="",rs={setFilters:e=>({type:"SET_DATA",payload:e})},ns={getFilters:e=>e};function os(e=ts,t){return"SET_DATA"===t.type?t.payload:e}})(),n})(),e.exports=t()}},t={},r=function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}(555);(window.gb=window.gb||{}).stylesBuilder=r})(); \ No newline at end of file +(0,s.__)("Remove stop %s","generateblocks-pro"),i)}))}function Co({onChange:t,value:r="",presets:n=[],selectingPreset:i,setSelectingPreset:l=!1}){var c;const[u,d]=(0,a.useState)(yo.parse(r)[0]),{type:p,orientation:h,colorStops:m=[]}=u,g=(0,f.applyFilters)("generateblocks.editor.gradientPresets",n);(0,a.useEffect)((()=>{try{t(yo.stringify([u]))}catch(e){console.error(e.message)}}),[u]);const b=null!==(c=h?.value)&&void 0!==c?c:h;return(0,e.createElement)("div",{className:So.gradient},(0,e.createElement)(ve.Stack,{gap:"12px"},(0,e.createElement)("div",{className:So.preview},(0,e.createElement)("div",{className:So.bar,style:{backgroundImage:r}})),i&&g?(0,e.createElement)(e.Fragment,null,g.map((t=>(0,e.createElement)("div",{className:So.preset,key:t.name},(0,e.createElement)("span",{className:Dr.label},t.name),(0,e.createElement)(ve.Stack,{direction:"horizontal",layout:"flex",gap:"2px"},t.gradients.map((t=>(0,e.createElement)(o.Button,{key:t.slug,onClick:()=>{d(yo.parse(t.gradient)[0])}},(0,e.createElement)("span",{style:{background:t.gradient?t.gradient:null}})))))))),(0,e.createElement)(o.Button,{variant:"link",onClick:()=>l(!1)},(0,s.__)("Back","generateblocks-pro"))):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:So.settings},(0,e.createElement)(ve.Stack,{layout:"flex",direction:"horizontal",wrap:!1},(0,e.createElement)($r,{as:o.SelectControl,label:(0,s.__)("Type","generateblocks-pro"),value:p,options:[{label:"Linear",value:"linear-gradient"},{label:"Radial",value:"radial-gradient"}],onChange:e=>{d((t=>({...t,type:e,orientation:"radial-gradient"===e?void 0:t.orientation||{type:"angular",value:"90"}})))},style:{flexGrow:1}}),"linear-gradient"===p&&(0,e.createElement)($r,{as:o.AnglePickerControl,label:"Angle",value:{right:"90",bottom:"180",left:"270",top:"0"}[b]||b,onChange:e=>{d((t=>({...t,orientation:{type:"angular",value:e}})))}}))),(0,e.createElement)("ul",{className:So.stops,role:"list"},m.map(((t,r)=>(0,e.createElement)("li",{key:r,style:{marginBottom:0}},(0,e.createElement)(xo,{index:r,currentGradient:u,setCurrentGradient:d,colorStop:t,onChange:(e,t)=>{d((n=>{const o=[...n.colorStops],a=o[r];return o[r]={...a,...e,length:t},{...n,colorStops:o}}))}})))),(0,e.createElement)(o.Button,{variant:"primary",size:"compact",onClick:()=>{d((e=>({...e,colorStops:[...e.colorStops,{type:"rgb",value:[0,0,0],length:{type:"%",value:0}}]})))}},(0,s.__)("Add Color","generateblocks-pro"))))))}const _o={left:0,center:.5,top:0,right:1,bottom:1};function Oo(e,{width:t,height:r}){var n,o;const a=document.createElement("div");if(a.style.backgroundPosition=e,""===a.style.backgroundPosition)return e;t&&(a.style.width=`${t}px`),r&&(a.style.height=`${r}px`),document.body.appendChild(a);const s=getComputedStyle(a),i=s.backgroundPositionX,l=s.backgroundPositionY;document.body.removeChild(a);let c=null,u=null;return i.endsWith("%")?c=parseFloat(i)/100:i.endsWith("px")?c=parseFloat(l)/t:i in _o&&(c=_o[i]),l.endsWith("%")?u=parseFloat(l)/100:l.endsWith("px")?u=parseFloat(l)/t:l in _o&&(u=_o[i]),{x:null!==(n=parseFloat(Math.round(100*c)/100))&&void 0!==n?n:.5,y:null!==(o=parseFloat(Math.round(100*u)/100))&&void 0!==o?o:.5}}const To={control:"PDhnyDecXzi_7wPZzgsp",selectButton:"hp6b8k8k_jvTKv07UXJ7",url:"GYXAKGkqN8o8ViTiPrmr",flex:"NoZsOEI44T12k6kp6rBl"},Io=O("/wp-content/plugins/generateblocks-pro/dist/assets/placeholder-lg.min.jpg");function Po({onUrlChange:t,onPositionChange:r,onSizeChange:n,onMediaSelect:i,url:l,urlInputLabel:c,imageSizeLabel:u=(0,s.__)("Media Size","generateblocks-pro"),position:d="center",size:p="full"}){const h=(0,a.useRef)(null),[m,f]=(0,a.useState)({width:240,height:131}),[b,v]=(0,a.useState)((()=>Oo(d,m))),y=(0,s.__)("Enter any valid background position.","generateblocks-pro"),[w,k]=(0,a.useState)(y),[E,S,x]=(0,yr.useDebouncedInput)(d),[C,_]=(0,a.useState)((()=>{var e;return null!==(e=JSON.parse(sessionStorage.getItem("gb_image_sizes")))&&void 0!==e?e:{}})),[O,T]=(0,a.useState)((()=>function(e){if(e.startsWith("url(")){const t=e.match(/url\((.*?)\)/);return(t?t[1]:"").replace('"',"").replace("'","")}return e}(l))),[I,P]=(0,a.useState)(!0),[M,A]=(0,a.useState)(O),R=(0,a.useMemo)((()=>{var e;return null!==(e=function(e,t){const r=Object.keys(e).find((r=>Object.values(e[r]).some((e=>e.url===t))));return r?e[r]:null}(C,O))&&void 0!==e?e:{}}),[C,O]),L=(0,a.useMemo)((()=>{const e=Object.keys(R).map((e=>({label:e.charAt(0).toUpperCase()+e.slice(1),value:e})));return e.length||e.unshift({label:(0,s.__)("Full","generateblocks-pro"),value:""}),e}),[R]),z=(0,a.useMemo)((()=>{var e;return Object.keys(R).length&&null!==(e=Object.entries(R).find((([,e])=>e.url===O))[0])&&void 0!==e?e:""}),[R,O]),D=(0,a.useCallback)((function(e){const t=`${Math.round(100*e.x)}% ${Math.round(100*e.y)}%`;v(e),S(t)}),[r]),F=(0,a.useCallback)((function(e){const t=function(e){const t=document.createElement("div");return t.style.backgroundPosition=e,""!==t.style.backgroundPosition}(e);S(e),t?(k(y),v(Oo(e,m))):k((0,s.__)("Invalid background position.","generateblocks-pro"))}),[]),B=(0,a.useCallback)((function(e){t&&(t(e),A(e)),P(!0)}),[t]);return(0,a.useLayoutEffect)((()=>{if(!h.current)return;const e=h.current.querySelector(".components-focal-point-picker__media--image");function t(){O.startsWith("var(")||"none"===O||P(!1),A(Io),e.style.width="240px",e.style.height="131px"}if(e){e.addEventListener("error",t);const r=e.clientWidth||240,n=e.clientHeight||131;f({width:r,height:n})}return()=>{e&&e.removeEventListener("error",t)}}),[O]),Ur((()=>{r&&r(E)}),[x]),(0,e.createElement)("div",{className:Se("gb-image-control",To.control),ref:h},(0,e.createElement)(ve.Stack,{gap:"12px"},(0,e.createElement)("div",{className:To.flex},(0,e.createElement)($r,{as:o.TextControl,className:To.url,type:"text",value:O,onChange:B,label:c,help:!I&&(0,s.__)("Could not load image.","generateblocks-pro")}),(0,e.createElement)(g.MediaUploadCheck,null,(0,e.createElement)(g.MediaUpload,{title:(0,s.__)("Choose Media","generateblocks-pro"),onSelect:e=>{var t,r;const n={...C,[e.id]:e.sizes};sessionStorage.setItem("gb_image_sizes",JSON.stringify(n)),_(n);const o=null!==(t=null!==(r=e.sizes?.[p].url)&&void 0!==r?r:e?.url)&&void 0!==t?t:"";B(o),i&&i(e)},allowedTypes:["image"],value:O,modalClass:"gb-image-control-modal",render:({open:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.Tooltip,{text:(0,s.__)("Open the Media Library","generateblocks-pro")},(0,e.createElement)(o.Button,{variant:"secondary",onClick:()=>{t()},className:To.selectButton},(0,s.__)("Select","generateblocks-pro"))))}))),"none"!==O&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(g.MediaUploadCheck,null,(0,e.createElement)($r,{as:o.SelectControl,value:z,options:L,disabled:!Object.keys(R).length,onChange:e=>{var t;(null!==(t=R?.[e])&&void 0!==t?t:null)&&T(R?.[e].url),n&&n(e)},label:u,help:Object.keys(R).length?(0,s.__)("Sets the size of the image chosen from the Media Library.","generateblocks-pro"):(0,s.__)("Size information is not available. Try re-inserting the image from the Media Library.","generateblocks-pro")})),(0,e.createElement)(o.FocalPointPicker,{url:M,value:b,onDragStart:D,onDrag:D,onChange:D}),(0,e.createElement)($r,{as:o.TextControl,label:"Background Position",value:E,help:w,onChange:F}))))}const Mo=[{label:"Default",value:""},{label:"Normal",value:"normal"},{label:"Multiply",value:"multiply"},{label:"Screen",value:"screen"},{label:"Overlay",value:"overlay"},{label:"Darken",value:"darken"},{label:"Lighten",value:"lighten"},{label:"Color-dodge",value:"color-dodge"},{label:"Color-burn",value:"color-burn"},{label:"Hard-light",value:"hard-light"},{label:"Soft-light",value:"soft-light"},{label:"Difference",value:"difference"},{label:"Exclusion",value:"exclusion"},{label:"Hue",value:"hue"},{label:"Saturation",value:"saturation"},{label:"Color",value:"color"},{label:"Luminosity",value:"luminosity"}],Ao={image:(0,s.__)("Choose a background image from the Media Library or enter a URL to a remote image.","generateblocks-pro"),gradient:(0,s.__)("Use this to create a linear or radial gradient. To overlay a gradient over another background, the gradient colors must be semi-transparent.","generateblocks-pro"),overlay:(0,s.__)("Use this to overlay a single color over one or more backgrounds. The chosen color must semi-transparent.","generateblocks-pro"),none:(0,s.__)("Disables the background for this at-rule (sets background: none","generateblocks-pro")},Ro="linear-gradient(to right, rgba(0, 0, 0, 1) 0%,rgba(10, 10, 10, 0.5) 100%)";function Lo({currentOption:t,findBackgroundIndex:r,setSettings:n}){const i=(0,g.useSetting)("color.gradients")||[],[l,c]=(0,a.useState)(!1),u=[];i.length&&u.push({name:(0,s.__)("Theme.JSON Presets","generateblocks-pro"),gradients:i});const{styles:d,index:p}=r(),{type:h,backgroundImage:m="",backgroundSize:f="",backgroundRepeat:b="",backgroundPosition:v="",backgroundBlendMode:y="",backgroundAttachment:w="",overlayColor:k=""}=t,[E,S]=(0,a.useState)((()=>({prevType:h,prevValue:m}))),[x,C]=(0,a.useState)((()=>"gradient"===h?m:Ro)),[_,O]=(0,a.useState)((()=>k||"rgba(0, 0, 0, .25)"));return"gradient"===h&&m!==x&&(d[p].backgroundImage=x,n(d)),t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Kr,null,(0,e.createElement)($r,{alwaysVisible:!0,as:o.SelectControl,options:[{label:(0,s.__)("Image","generateblocks-pro"),value:"image"},{label:(0,s.__)("Gradient","generateblocks-pro"),value:"gradient"},{label:(0,s.__)("Overlay","generateblocks-pro"),value:"overlay"},{label:(0,s.__)("None","generateblocks-pro"),value:"none"}],label:(0,s.__)("Background Type","generateblocks-pro"),onChange:e=>{const t=d[p].backgroundImage,{prevType:r="",prevValue:o=""}=E;d[p].type=e,["overlay","gradient"].includes(e)?("overlay"===e&&(d[p].overlayColor=_,d[p].backgroundImage="overlay"===r?o:`linear-gradient(to left, ${_} 0%, ${_} 100%)`),"gradient"===e&&(d[p].backgroundImage="gradient"===r?o:Ro)):"image"===e?d[p].backgroundImage="image"===r?o:"":"none"===e&&(d[p].backgroundImage="none"),S({prevType:h,prevValue:t}),n(d)},dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Background Types","generateblocks-pro"),onClick:t},(0,e.createElement)("dl",null,(0,e.createElement)("dt",null,(0,s.__)("Image","generateblocks-pro")," ","image"===h&&(0,s.__)("(Current)","generateblocks-pro")),(0,e.createElement)("dd",null,Ao.image),(0,e.createElement)("dt",null,(0,s.__)("Gradient","generateblocks-pro")," ","gradient"===h&&(0,s.__)("(Current)","generateblocks-pro")),(0,e.createElement)("dd",null,Ao.gradient),(0,e.createElement)("dt",null,(0,s.__)("Overlay","generateblocks-pro")," ","overlay"===h&&(0,s.__)("(Current)","generateblocks-pro")),(0,e.createElement)("dd",null,Ao.overlay))),value:h}),"overlay"===h&&(0,e.createElement)($r,{alwaysVisible:!0,as:ve.ColorPicker,label:(0,s.__)("Overlay Color","generateblocks-pro"),help:(0,e.createElement)(e.Fragment,null,!_.includes("rgba")&&!_.includes("hsla")&&(0,s.__)("The chosen color must have some transparency for the background(s) beneath to be visible.","generateblocks-pro")),value:_,onChange:e=>{d[p].overlayColor=e,d[p].backgroundImage=`linear-gradient(to left, ${e} 0%, ${e} 100%)`,O(e),n(d)},dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Background Overlay","generateblocks-pro"),onClick:t},Ao.overlay)}),"image"===h&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{alwaysVisible:!0,as:Po,label:"Background Image",url:m,position:v,onUrlChange:e=>{const t=e.startsWith("http")||e.startsWith("://")||e.startsWith("/");d[p].backgroundImage=t?`url(${e})`:e,n(d)},onPositionChange:e=>{d[p].backgroundPosition=e,n(d)},onSizeChange:e=>{d[p].media.selectedSize=e,n(d)},onMediaSelect:e=>{var t;d[p].media.sizes=null!==(t=e.sizes)&&void 0!==t?t:{},n(d)},dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Background Image","generateblocks-pro"),onClick:t},Ao.image)}),"none"!==m&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{alwaysVisible:!0,allowCustomValue:!0,as:o.SelectControl,label:"Repeat",value:b,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"},{label:"round",value:"round"},{label:"space",value:"space"},{label:"no-repeat",value:"no-repeat"}],dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Background Blend Mode","generateblocks-pro"),onClick:t},(0,s.__)("The background-repeat CSS property sets how background images are repeated. A background image can be repeated along the horizontal and vertical axes, or not repeated at all.","generateblocks-pro")),onChange:(e=0)=>{d[p].backgroundRepeat=e,n(d)},learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro")}),(0,e.createElement)($r,{alwaysVisible:!0,as:o.SelectControl,allowCustomValue:!0,label:"Size",value:f,placeholder:(0,s.__)("100px 50%, cover, contain, etc","generateblocks-pro"),options:[{id:1,label:(0,s.__)("Default","generateblocks-pro"),value:""},{id:2,label:"cover",value:"cover"},{id:3,label:"contain",value:"contain"},{id:4,label:"auto",value:"auto"}],onChange:e=>{d[p].backgroundSize=e,n(d)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:o.SelectControl,allowCustomValue:!0,label:"Attachment Type",value:w,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Fixed",value:"fixed"},{label:"Scroll with Content (scroll)",value:"scroll"},{label:"Local",value:"local"}],dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Background Attachment","generateblocks-pro"),onClick:t},(0,s.__)("The background-attachment CSS property sets whether a background image's position is fixed within the viewport, or scrolls with its containing block.","generateblocks-pro")),onChange:(e=0)=>{d[p].backgroundAttachment=e,n(d)},learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/background-attachment",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro")}))),"gradient"===h&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{alwaysVisible:!0,as:Co,selectingPreset:l,setSelectingPreset:c,presets:u,label:"Gradient",onChange:C,value:m.includes("gradient")?m:Ro,dropdownChildren:({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r.Description,{label:(0,s.__)("About Gradients","generateblocks-pro"),onClick:t},Ao.gradient),(0,e.createElement)(o.MenuGroup,null,(0,e.createElement)(o.MenuItem,{onClick:()=>{t(),c(!l)}},l?(0,s.__)("Cancel select preset","generateblocks-pro"):(0,s.__)("Select preset","generateblocks-pro")))),learnMoreLabel:(0,s.__)("Learn more about gradients.","generateblocks-pro"),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/gradient"})),"none"!==m&&(0,e.createElement)($r,{alwaysVisible:!0,as:o.SelectControl,allowCustomValue:!0,label:"Blend Mode",value:y,options:Mo,onChange:(e=0)=>{d[p].backgroundBlendMode=e,n(d)},dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Background Blend Mode","generateblocks-pro"),onClick:t},(0,s.__)("The background-blend-mode CSS property sets how an element's background images should blend with each other and with the element's background color.","generateblocks-pro")),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/background-blend-mode",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro")})))}const zo=({onStyleChange:t,value:r,atRule:n})=>{var i;const[l,c]=(0,a.useState)(!1),[u,d]=(0,a.useState)((()=>function(e){const{background:t="",backgroundBlendMode:r="",backgroundAttachment:n="",backgroundImage:o="",backgroundPosition:a="",backgroundSize:s="",backgroundRepeat:i=""}=e;if(Object.values(e).every((e=>""===e)))return[];if(t){const e=r.split(",");return(l=t,(l.match(M)||[]).map((e=>{const t=document.createElement("div");if(t.style.background=e,""===t.style.background)return{type:"image"};const{backgroundAttachment:r="",backgroundImage:n="",backgroundSize:o="",backgroundRepeat:a="",backgroundPosition:s=""}=t.style,i=n.includes("gradient("),l=n.startsWith("url(");if(!i&&!l)return{type:"image"};let c="image",u="";if(i){c="gradient";const e=n.match(P);e&&e.every((t=>t===e[0]))&&(c="overlay",u=e[0])}return{type:c,backgroundAttachment:"initial"===r?"":r,backgroundImage:n.replace('"',"").replace("'",""),backgroundSize:o,backgroundRepeat:a,backgroundPosition:s,overlayColor:u}}))).map(((t,r)=>(t.backgroundBlendMode=e[r]||"normal","image"===t.type&&(t.media={id:0}),t)))}var l;return X({backgroundBlendMode:r,backgroundAttachment:n,backgroundImage:o,backgroundPosition:a,backgroundSize:s,backgroundRepeat:i})}(r))),[p,h]=(0,a.useState)(null),m=u.some((e=>"none"===e.backgroundImage)),f=null!==(i=u[p])&&void 0!==i?i:null,g=null!==f,b=(0,yr.useDebounce)(t,0),v=(0,a.useCallback)((function(e){d(e),b({backgroundAttachment:e.reduce(((e,t)=>{const{backgroundBlendMode:r="normal"}=t;return e.length>0?`${e},${r.trim()}`:`${r.trim()}`}),"").trim(),backgroundImage:e.reduce(((e,t)=>{const{backgroundAttachment:r=""}=t;return e.length>0?`${e},${r.trim()}`:`${r.trim()}`}),""),backgroundSize:e.reduce(((e,t)=>{const{backgroundImage:r=""}=t;return e.length>0?`${e},${r.trim()}`:`${r.trim()}`}),""),backgroundRepeat:e.reduce(((e,t)=>{const{backgroundSize:r=""}=t;return e.length>0?`${e},${r.trim()}`:`${r.trim()}`}),""),backgroundPosition:e.reduce(((e,t)=>{const{backgroundRepeat:r=""}=t;return e.length>0?`${e},${r.trim()}`:`${r.trim()}`}),""),backgroundBlendMode:e.reduce(((e,t)=>{const{backgroundPosition:r=""}=t;return e.length>0?`${e},${r.trim()}`:`${r.trim()}`}),"")})}),[b]),y=(0,a.useCallback)((()=>{const e=[...u];return{styles:e,index:e[p]?p:-1}}),[u,p]),{styles:w,index:k}=y();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Zr,{id:"BackgroundControl",items:u,label:(0,s.__)("Backgrounds","generateblocks-pro"),isEditing:g,onClickDelete:()=>{w.splice(k,1),v(w),h(null)},onClickDone:()=>{h(null)},showAdd:!m,dropdownChildren:({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("Options","generateblocks-pro")},(0,e.createElement)(Zr.DeleteAll,{label:(0,s.__)("Delete all background styles","generateblocks-pro"),content:(0,s.__)("This will delete all background styles for the current selector. This operation cannot be undone.","generateblocks-pro"),items:u,onDelete:()=>{v([]),h(null)},onClose:t,confirmDelete:l,setConfirmDelete:c})),!l&&(0,e.createElement)(Zr.LearnMore,{learnMoreLabel:(0,s.__)("Learn more about Backgrounds","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/background",onClose:t})),onAdd:()=>{const e=u.some((e=>"image"===e.type));h(0),v([e?R():A(n),...u])},learnMoreLabel:(0,s.__)("Learn more about Backgrounds","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/background",help:m&&(0,s.__)("Remove the disabled background to enable.","generateblocks-pro"),searchKeywords:["image","gradient","blend mode","bg"],cssProp:r},(0,e.createElement)("div",{className:So.control},(0,e.createElement)("div",{className:So.wrapper},!g&&(0,e.createElement)("div",null,(0,e.createElement)(Xr,{items:u,dragHandleLabel:(0,s.__)("Reorder Background","generateblocks-pro"),setItems:e=>{v(e)},itemComponent:function({item:t,index:r}){const n=function(e={}){var t;return[["backgroundImage",null!==(t=e.backgroundImage)&&void 0!==t?t:""],...Object.entries(e).filter((([e])=>e.startsWith("background")&&"backgroundImage"!==e))].reduce(((e,[t,r])=>t.startsWith("background")&&r?e?`${e}\n${I(t)}: ${r};`:`${I(t)}: ${r};`:e),"")}(t),o=n.length>0?n:(0,s.__)("Empty","generateblocks-pro");return(0,e.createElement)(Xr.Item,{label:t.label,css:o,canDuplicate:n.length>0,onDuplicate:()=>{const e=[...u,{...t}];h(e.length-1),v(e)},onEdit:()=>{h(r)}})},dragHandle:!0})),g&&(0,e.createElement)(Lo,{isEditing:g,currentOption:f,findBackgroundIndex:y,setSettings:v})))))};function Do(t){const{styles:r,onStyleChange:n,nestedRule:i,atRule:l,opened:c,scrollAfterOpen:u,onToggle:d,initialOpen:p}=t,{background:h="",backgroundColor:m="",backgroundClip:f="",backgroundOrigin:g="",backgroundBlendMode:b="",backgroundAttachment:v="",backgroundImage:y="",backgroundPosition:w="",backgroundSize:k="",backgroundRepeat:E=""}=r,S=(0,a.useMemo)((()=>({background:h,backgroundBlendMode:b,backgroundAttachment:v,backgroundImage:y,backgroundPosition:w,backgroundSize:k,backgroundRepeat:E})),[h,b,v,y,w,k,E]);return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Backgrounds","generateblocks-pro"),initialOpen:p,icon:(0,e.createElement)(tr,null),opened:!!c||void 0,scrollAfterOpen:u,onToggle:d},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)(zo,{value:S,onStyleChange:n,nestedRule:i,atRule:l}),(0,e.createElement)($r,{as:ve.ColorPicker,label:"Background Color",value:m,cssProp:"backgroundColor",onChange:e=>n("backgroundColor",e),searchKeywords:["bg"]}),(0,e.createElement)($r,{allowCustomValue:!0,as:o.SelectControl,label:"Background Clip",value:f,cssProp:"backgroundClip",options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"border-box",value:"border-box"},{label:"padding-box",value:"padding-box"},{label:"content-box",value:"content-box"},{label:"text",value:"text"}],onChange:e=>n("backgroundClip",e),learnMoreLabel:(0,s.__)("Learn more about this property","generateblocks-pro"),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip",dropdownChildren:()=>(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("About Background Clip","generateblocks-pro")},(0,e.createElement)("p",{style:{padding:"0 8px"}},(0,s.__)("This property only will apply if a background color or image is set, or if the element has a border with transparency.","generateblocks-pro")))}),(0,e.createElement)($r,{allowCustomValue:!0,as:o.SelectControl,label:"Background Origin",value:g,cssProp:"backgroundOrigin",options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"border-box",value:"border-box"},{label:"padding-box",value:"padding-box"},{label:"content-box",value:"content-box"}],onChange:e=>n("backgroundOrigin",e),learnMoreLabel:(0,s.__)("Learn more about this property","generateblocks-pro"),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/background-origin",dropdownChildren:()=>(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("About Background Origin","generateblocks-pro")},(0,e.createElement)("p",{style:{padding:"0 8px"}},(0,s.__)("This property property sets the background's origin: from the border start, inside the border, or inside the padding.","generateblocks-pro")))})))}function Fo(t){const{styles:r,onStyleChange:n,opened:i,scrollAfterOpen:l,onToggle:c,initialOpen:u}=t,{position:d="",overflowX:p="",overflowY:h="",zIndex:m="",top:f="",right:g="",bottom:b="",left:v=""}=r,y=[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"visible",value:"visible"},{label:"hidden",value:"hidden"},{label:"clip",value:"clip"},{label:"scroll",value:"scroll"},{label:"auto",value:"auto"}],w=(0,a.useMemo)((()=>({Top:{prop:"top",value:f},Left:{prop:"left",value:v},Bottom:{prop:"bottom",value:b},Right:{prop:"right",value:g}})),[f,g,b,v]);return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Position","generateblocks-pro"),initialOpen:u,icon:(0,e.createElement)(nr,null),opened:!!i||void 0,scrollAfterOpen:l,onToggle:c},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)($r,{allowCustomValue:!0,as:o.SelectControl,label:"position",value:d,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Relative",value:"relative"},{label:"Absolute",value:"absolute"},{label:"Sticky",value:"sticky"},{label:"Fixed",value:"fixed"}],onChange:e=>n("position",e),cssProp:"position"}),(0,e.createElement)(jn,{id:"inset",cssProps:w,onChange:n,syncTypes:["all"],label:"Inset"}),(0,e.createElement)($r,{allowCustomValue:!0,as:o.SelectControl,label:"Overflow-X",value:p,options:y,onChange:e=>n("overflowX",e),cssProp:"overflowX"}),(0,e.createElement)($r,{allowCustomValue:!0,as:o.SelectControl,label:"Overflow-Y",value:h,options:y,onChange:e=>n("overflowY",e),cssProp:"overflowY"}),(0,e.createElement)($r,{as:o.TextControl,label:"z-index",value:m,cssProp:"zIndex",onChange:e=>{n("zIndex",e),d||n("position","relative")}})))}function Bo({opacity:t,onStyleChange:r}){let n=100*parseFloat(t);const a=Number.isInteger(n);return isNaN(n)&&(n=t),(0,e.createElement)($r,{as:o.RangeControl,label:"Opacity",hasCustomValue:!a&&""!==t,value:n,step:1,cssProp:"opacity",onChange:e=>{let t=parseFloat(e)/100;isNaN(t)&&(t=e),r("opacity",t)},min:0,max:100,allowCustomValue:!0})}const No=e=>e.replace(/-webkit-box-shadow:[^;]+;|-moz-box-shadow:[^;]+;/g,""),jo=e=>e.replace(/box-shadow/g,"").replace(/webkit/g,"").replace(/\r?\n|\r/g,"").replace(/;/g,"").replace(/:/g,"").trim(),Vo=(e=[])=>e.reduce(((e,t)=>{if(t.hidden)return e;const{offsetX:r="",offsetY:n="",blur:o="",spread:a="",color:s="",inset:i=!1}=t,l=`${i?"inset":""} ${r} ${n} ${o} ${a} ${s}`.trim();return l.trim().length?e.length>0?`${e}, ${l}`:`${l}`:e}),"").replace(/,$/,"").trim(),Uo=function(){const e=/,(?![^\(]*\))/,t=/\s(?![^(]*\))/,r=/^[0-9]+[a-zA-Z%]+$/,n=e=>{const r=e.split(t),n=r.includes("inset"),o=r.slice(-1)[0],s=a(o)?void 0:o,i=r.filter((e=>"inset"!==e)).filter((e=>e!==s)),[l,c,u,d]=i;return{inset:n,offsetX:l,offsetY:c,blur:u,spread:d,color:s}},o=e=>{const{inset:t,offsetX:r=0,offsetY:n=0,blur:o=0,spread:a,color:s}=e||{};return[t?"inset":null,r,n,o,a,s].filter((e=>null!=e)).map((e=>(""+e).trim())).join(" ")},a=e=>r.test(e);return{parse:t=>t?t.split(e).map((e=>e.trim())).map(n):[],stringify:e=>e?.length?e.map(o).join(", "):""}}(),Ho=["px","em","rem","vw","vh","ch"];function Wo({findBoxShadowIndex:t,setSettings:r,currentOption:n=null}){const{styles:a,index:s}=t();return n&&(0,e.createElement)(Kr,null,(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,e.createElement)(o.CheckboxControl,{checked:n.inset,label:"Inset",onChange:e=>{a[s].inset=e,r(a)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:ve.ColorPicker,value:n?.color||"rgba(0,0,0,.1)",tooltip:"Box Shadow Color",onChange:e=>{a[s].color=e,r(a)}})),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,label:"x-Offset",units:Ho,value:n.offsetX,onChange:e=>{a[s].offsetX=e,r(a)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,label:"y-Offset",units:Ho,value:n.offsetY,onChange:e=>{a[s].offsetY=e,r(a)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,label:"blur",units:Ho,value:n?.blur,onChange:e=>{a[s].blur=e,r(a)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,label:"spread",units:Ho,value:n?.spread,onChange:e=>{a[s].spread=e,r(a)}}))}function $o({onStyleChange:t,value:r}){var n;const[i,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)(""),[d,p]=(0,a.useState)(!1),[h,m]=(0,a.useState)((()=>Uo.parse(r))),[f,g]=(0,a.useState)(null),b=null!==(n=h[f])&&void 0!==n?n:null,v=null!==b,y=(0,yr.useDebounce)(t,0),w=(0,a.useCallback)((function(e){m(e),y("boxShadow",Vo(e))}),[y]),k=(0,a.useCallback)((()=>{const e=[...h];return{styles:e,index:e[f]?f:-1}}),[h,f]),{styles:E,index:S}=k();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Zr,{items:h,label:"Box Shadow",searchKeywords:["shadows","box-shadow"],cssProp:"boxShadow",onAdd:()=>{const e=[...h,{offsetX:"10px",offsetY:"10px",blur:"5px",spread:"7px",color:"rgba(0,0,0,0.1)",inset:!1}];g(e.length-1),w(e)},isEditing:v,onClickDelete:()=>{E.splice(S,1),w(E),g(null)},onClickDone:()=>{g(null)},dropdownChildren:({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("Options","generateblocks-pro")},!d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuItem,{onClick:()=>{l(!0),t()}},(0,s.__)("Add via paste…","generateblocks-pro"))),(0,e.createElement)(Zr.DeleteAll,{label:(0,s.__)("Delete all box shadow styles","generateblocks-pro"),content:(0,s.__)("This will delete all box shadow styles for the current selector. This operation cannot be undone.","generateblocks-pro"),items:h,onDelete:e=>{w(e),g(null)},onClose:t,confirmDelete:d,setConfirmDelete:p})),!d&&(0,e.createElement)(Zr.LearnMore,{learnMoreLabel:(0,s.__)("Learn more about CSS Box Shadows","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow",onClose:t}))},(0,e.createElement)("div",{className:"gb-box-shadow"},(0,e.createElement)("div",{className:"gb-box-shadow__wrapper"},!v&&(0,e.createElement)("div",null,(0,e.createElement)(Xr,{items:h,dragHandleLabel:(0,s.__)("Reorder Box Shadow","generateblocks-pro"),setItems:e=>{w(e)},itemComponent:function({item:t,index:r}){const n=Vo([t]),o=n.length>0?n:(0,s.__)("Invalid box shadow","generateblocks-pro");return(0,e.createElement)(Xr.Item,{css:o,swatchColor:t.color,canDuplicate:n.length>0,onDuplicate:()=>{const e=[...h,{...t}];g(e.length-1),w(e)},onEdit:()=>{g(r)}})},dragHandle:!0})),(0,e.createElement)(Wo,{isEditing:v,currentOption:b,findBoxShadowIndex:k,setSettings:w}))),(0,e.createElement)(Zr.PasteModal,{property:"box-shadow",errorMessage:c,showPasteStyles:i,setShowPasteStyles:l,onAddStyles:({pastedValue:e,replaceStyles:t})=>{if(!e||0===e.length)return!1;try{const r=Uo.parse(jo(No(e))),n=t?[...r]:[...h,...r];return w(n),l(!1),u(""),!0}catch(e){return u((0,s.__)("Error parsing pasted styles. Please check your CSS and try again.","generateblocks-pro")),!1}}})))}var qo=r(9456);function Go(e){return e?e.split(",").map((e=>{const t=document.createElement("div");if(t.style.transition=e,""===t.style.transition)return!1;const{transitionProperty:r="",transitionDuration:n="",transitionTimingFunction:o="",transitionDelay:a=""}=t.style;return{transitionProperty:r,transitionDuration:n,transitionTimingFunction:o,transitionDelay:a}})).filter(Boolean):[]}const Zo=e=>e.replace(/transition/g,"").replace(/webkit/g,"").replace(/\r?\n|\r/g,"").replace(/;/g,"").replace(/:/g,"").trim(),Ko=(e=[])=>e.reduce(((e,t)=>{if(t.hidden)return e;const{transitionProperty:r,transitionDuration:n,transitionDelay:o,transitionTimingFunction:a}=t,s=`${r} ${n} ${a} ${o}`.trim();return s.length?e.length>0?`${e}, ${s}`:`${s}`:e}),"").replace(/,$/,"").trim(),Yo=(e="")=>{const t=e.match(/^cubic-bezier\((\d+(?:\.\d+)?),\s*(\d+(?:\.\d+)?),\s*(\d+(?:\.\d+)?),\s*(\d+(?:\.\d+)?)\)$/);if(t){const[,e,,r]=t;return e<0||e>1||r<0||r>1?[!1,(0,s.__)("Invalid cubic-bezier definition.","generateblocks-pro")]:[!0,""]}const r=e.match(/^steps\(([^,]+),\s*(.+)\)$/);if(r){const[,e,t]=r,n=parseInt(e,10),o=["jump-start","jump-end","jump-none","jump-both","start","end"];return isNaN(n)||n<1||!o.includes(t)?[!1,(0,s.__)("Invalid steps definition.","generateblocks-pro")]:[!0,""]}return e.startsWith("var(--")||["ease","linear","ease-in","ease-out","ease-in-out","initial","inherit"].includes(e)?[!0,""]:[!1,(0,s.__)("Unknown timing function.","generateblocks-pro")]},Qo=["s"];function Jo({currentOption:t,findTransitionIndex:r,setSettings:n,cssPropertyError:a,cssTimingError:i}){const{styles:l,index:c}=r();if(t){var u;let e=!1;qo.all.includes(null!==(u=t.transitionProperty)&&void 0!==u?u:"")||(l[c].transitionProperty="all",e=!0),Yo(t.transitionTimingFunction)||(l[c].transitionTimingFunction="ease",e=!0),e&&n(l)}return t&&(0,e.createElement)(Kr,null,(0,e.createElement)($r,{as:xn,label:"Duration",units:Qo,value:t.transitionDuration,defaultUnitValue:"s",onChange:e=>{l[c].transitionDuration=e,n(l)},alwaysVisible:!0}),(0,e.createElement)($r,{as:xn,label:"Delay",units:Qo,value:t.transitionDelay,defaultUnitValue:"s",onChange:e=>{l[c].transitionDelay=e,n(l)},alwaysVisible:!0}),(0,e.createElement)($r,{as:o.TextControl,label:"Transition Property",value:t.transitionProperty,onChange:e=>{l[c].transitionProperty=e,n(l)},help:a,alwaysVisible:!0}),(0,e.createElement)($r,{alwaysVisible:!0,as:o.SelectControl,allowCustomValue:!0,label:"Timing Function",value:t.transitionTimingFunction,options:[{label:"Ease",value:"ease"},{label:"Linear",value:"linear"},{label:"Ease-in",value:"ease-in"},{label:"Ease-out",value:"ease-out"},{label:"Ease-in-out",value:"ease-in-out"},{label:"Step-start",value:"step-start"},{label:"Step-end",value:"step-end"},{label:"Initial",value:"initial"},{label:"Inherit",value:"inherit"}],help:i,customValueHelp:i||(0,s.__)("Enter any valid CSS timing function.","generateblocks-pro"),onChange:e=>{l[c].transitionTimingFunction=e,n(l)}}))}function Xo({onStyleChange:t,value:r}){var n;const[i,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)(""),[d,p]=(0,a.useState)(!1),[h,m]=(0,a.useState)((()=>Go(r))),[f,g]=(0,a.useState)(null),[b,v]=(0,a.useState)(null),[y,w]=(0,a.useState)(null),k=null!==(n=h[y])&&void 0!==n?n:null,E=null!==k,S=(0,yr.useDebounce)(t,0),x=(0,a.useCallback)((function(e){m(e),S("transition",Ko(e))}),[S]),C=(0,a.useCallback)((()=>{const e=[...h];return{styles:e,index:e[y]?y:-1}}),[h,y]),{styles:_,index:O}=C();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Zr,{items:h,label:"Transition",cssProp:"transition",searchKeywords:["tween","timing","duration","delay","timing-function"],onAdd:()=>{const e=[...h,{transitionProperty:"all",transitionDuration:"0.5s",transitionDelay:"0s",transitionTimingFunction:"ease"}];w(e.length-1),x(e)},isEditing:E,onClickDelete:()=>{_.splice(O,1),x(_),w(null)},onClickDone:()=>{const e=Yo(k.transitionTimingFunction);let t=!1;g(null),v(null),qo.all.includes(k.transitionProperty)||(g((0,s.__)("Please enter a valid CSS property!","generateblocks-pro")),t=!0),e[0]||(v(e[1]),t=!0),t||(g(null),v(null)),w(null)},dropdownChildren:({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("Options","generateblocks-pro")},!d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuItem,{onClick:()=>{l(!0),t()}},(0,s.__)("Paste in transition styles","generateblocks-pro"))),(0,e.createElement)(Zr.DeleteAll,{label:(0,s.__)("Delete all transition styles","generateblocks-pro"),content:(0,s.__)("This will delete all transition styles for the current selector. This operation cannot be undone.","generateblocks-pro"),items:h,onDelete:e=>{x(e),w(null)},onClose:t,confirmDelete:d,setConfirmDelete:p})),!d&&(0,e.createElement)(Zr.LearnMore,{learnMoreLabel:(0,s.__)("Learn more about CSS Transitions","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/transition",onClose:t}))},(0,e.createElement)("div",{className:"gb-transition"},(0,e.createElement)("div",{className:"gb-transition__wrapper"},!E&&(0,e.createElement)("div",null,(0,e.createElement)(Xr,{items:h,dragHandleLabel:(0,s.__)("Reorder Transition","generateblocks-pro"),setItems:e=>{x(e)},itemComponent:function({item:t,index:r}){const n=Ko([t]),o=n.length>0?n:(0,s.__)("Invalid transition","generateblocks-pro");return(0,e.createElement)(Xr.Item,{css:o,swatchColor:t.color,onDuplicate:()=>{const e=[...h,{...t}];w(e.length-1),x(e)},onEdit:()=>{w(r)}})},dragHandle:!0})),(0,e.createElement)(Jo,{currentOption:k,findTransitionIndex:C,setSettings:x,cssPropertyError:f,cssTimingError:b}))),(0,e.createElement)(Zr.PasteModal,{property:"transition",errorMessage:c,showPasteStyles:i,setShowPasteStyles:l,onAddStyles:({pastedValue:e,replaceStyles:t})=>{if(!e||0===e.length)return!1;try{const r=Go(Zo(e)).map((e=>{const{transitionProperty:t,transitionDuration:r,transitionDelay:n,transitionTimingFunction:o}=e;return{transitionProperty:t,transitionDuration:r,transitionDelay:n,transitionTimingFunction:o}})),n=t?[...r]:[...h,...r];return x(n),l(!1),u(""),!0}catch(e){return u((0,s.__)("Error parsing pasted styles. Please check your CSS and try again.","generateblocks-pro")),console.error(e),!1}}})))}function ea(e=[]){return e.reduce(((e,t)=>{if(t?.hidden)return e;const{type:r,value:n,dropShadow:{xOffset:o="",yOffset:a="",blur:s="",color:i=""}={}}=t;let l=`${r}(${n})`;return"drop-shadow"===r&&(l=`${r}(${o} ${a} ${s} ${i})`),e.length>0?`${e} ${l}`:`${l}`}),"").trim()}function ta(e){const t=e.match(/\b(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(([^)]+)\)/g),r=[];return t?(t.forEach((e=>{const t=e.split("(")[0],n=e.match(/\(([^)]+)\)/)[1];if("drop-shadow"===t){const e=function(e){const t=e.split(" ").filter(Boolean);if(4!==t.length)return null;let r=t.pop();return/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(r)||(r="#cccccc"),{xOffset:t[0],yOffset:t[1],blur:t[2],color:r}}(n);e&&r.push({type:"drop-shadow",dropShadow:e})}else(function(e){const t=document.createElement("div");return t.style.filter=e,""!==t.style.filter})(e)&&r.push({type:t,value:n,dropShadow:{}})})),Array.from(new Set(r.map(JSON.stringify))).map(JSON.parse)):[]}const ra={blur:["px"],brightness:["%"],contrast:["%"],"drop-shadow":["px","em","rem","vw","vh","ch"],grayscale:["%"],"hue-rotate":["deg"],invert:["%"],opacity:["%"],saturate:["%"],sepia:["%"]},na={blur:"5px",brightness:"100%",contrast:"100%","drop-shadow":{xOffset:"10px",yOffset:"10px",blur:"5px",color:"#cccccc"},grayscale:"100%","hue-rotate":"0deg",invert:"100%",opacity:"100%",saturate:"100%",sepia:"100%"},oa={blur:"Blur",brightness:"Brightness",contrast:"Contrast","drop-shadow":"Drop Shadow",grayscale:"Grayscale","hue-rotate":"Hue Rotate",invert:"Invert",opacity:"Opacity",saturate:"Saturate",sepia:"Sepia"};function aa({findFilterIndex:t,setSettings:r,transitionSettings:n,onStyleChange:a,currentOption:i=null}){const{styles:l,index:c}=t(),u=!n.some((e=>["all","filter"].includes(e.transitionProperty)));return i&&(0,e.createElement)(Kr,null,(0,e.createElement)($r,{as:o.SelectControl,label:(0,s.__)("Filter type","generateblocks-pro"),value:i.type,options:[{label:oa.blur,value:"blur"},{label:oa.brightness,value:"brightness"},{label:oa.contrast,value:"contrast"},{label:oa["drop-shadow"],value:"drop-shadow"},{label:oa.grayscale,value:"grayscale"},{label:oa["hue-rotate"],value:"hue-rotate"},{label:oa.invert,value:"invert"},{label:oa.opacity,value:"opacity"},{label:oa.saturate,value:"saturate"},{label:oa.sepia,value:"sepia"}],onChange:e=>{l[c].type=e,l[c].value=na[e],r(l)},alwaysVisible:!0}),"blur"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.blur,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"brightness"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.brightness,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"contrast"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.contrast,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"drop-shadow"===i.type&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{as:xn,allowCustomValue:!0,label:"X-Offset",units:ra[i.type],value:i.dropShadow.xOffset[0],onChange:e=>{l[c].dropShadow.xOffset=e,r(l)},alwaysVisible:!0}),(0,e.createElement)($r,{as:xn,allowCustomValue:!0,label:"Y-Offset",units:ra[i.type],value:i.dropShadow.yOffset[0],onChange:e=>{l[c].dropShadow.yOffset=e,r(l)},alwaysVisible:!0}),(0,e.createElement)($r,{as:xn,allowCustomValue:!0,label:"Blur",units:ra[i.type],value:i.dropShadow.blur[0],onChange:e=>{l[c].dropShadow.blur=e,r(l)},alwaysVisible:!0}),(0,e.createElement)($r,{as:ve.ColorPicker,value:i.dropShadow.color,label:"Color",tooltip:(0,s.__)("Filter color","generateblocks-pro"),onChange:e=>{l[c].dropShadow.color=e,r(l)},alwaysVisible:!0})),"grayscale"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.grayscale,allowCustomValue:!0,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"hue-rotate"===i.type&&(0,e.createElement)($r,{as:xn,label:oa["hue-rotate"],allowCustomValue:!0,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"invert"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.invert,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"opacity"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.opacity,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"saturate"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.saturate,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)},alwaysVisible:!0}),"sepia"===i.type&&(0,e.createElement)($r,{as:xn,label:oa.sepia,units:ra[i.type],value:i.value,onChange:e=>{l[c].value=e,r(l)}}),u&&(0,e.createElement)(o.Button,{style:{marginTop:"10px"},label:(0,s.__)("Automatically add a smooth transition for filters","generateblocks-pro"),showTooltip:!0,variant:"secondary",size:"compact",icon:p,onClick:()=>{const e=[...n,{transitionProperty:"all",transitionDuration:"0.5s",transitionDelay:"0s",transitionTimingFunction:"ease",transitionProperty:"filter"}];a("transition",Ko(e),e)}},"Transition"))}function sa({onStyleChange:t,value:r="",transition:n=""}){var i;const l=(0,a.useMemo)((()=>Go(n)),[n]),[c,u]=(0,a.useState)(!1),[d,p]=(0,a.useState)(""),[h,m]=(0,a.useState)(!1),[f,g]=(0,a.useState)((()=>ta(r))),[b,v]=(0,a.useState)(null),y=null!==(i=f[b])&&void 0!==i?i:null,w=(0,a.useMemo)((()=>null!==y),[y]),k=(0,yr.useDebounce)(t,0),E=(0,a.useCallback)((function(e){g(e),k("filter",ea(e))}),[k]),S=(0,a.useCallback)((()=>{const e=[...f];return{styles:e,index:e[b]?b:-1}}),[f,b]),{styles:x,index:C}=S();return(0,e.createElement)(Zr,{items:f,label:"Filter",cssProp:"filter",isEditing:w,onClickDelete:()=>{x.splice(C,1),E(x),v(null)},onClickDone:()=>{v(null)},dropdownChildren:({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("Options","generateblocks-pro")},!h&&(0,e.createElement)(o.MenuItem,{onClick:()=>{u(!0),t()}},(0,s.__)("Add via paste…","generateblocks-pro")),(0,e.createElement)(Zr.DeleteAll,{label:(0,s.__)("Delete all filter styles","generateblocks-pro"),content:(0,s.__)("This will delete all filter styles for the current selector. This operation cannot be undone.","generateblocks-pro"),items:f,onDelete:e=>{E(e),v(null)},onClose:t,confirmDelete:h,setConfirmDelete:m})),!h&&(0,e.createElement)(Zr.LearnMore,{learnMoreLabel:(0,s.__)("Learn more about CSS Filters","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/filter",onClose:t})),onAdd:()=>{const e=[...f,{type:"blur",value:"5px",dropShadow:{xOffset:"10px",yOffset:"10px",blur:"5px",color:"#cccccc"}}];v(e.length-1),E(e)},learnMoreLabel:(0,s.__)("Learn more about CSS Filters","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/filter"},(0,e.createElement)("div",{className:"gb-filter"},(0,e.createElement)("div",{className:"gb-filter__wrapper"},!w&&(0,e.createElement)("div",null,(0,e.createElement)(Xr,{items:f,dragHandleLabel:(0,s.__)("Reorder Filter","generateblocks-pro"),setItems:e=>{E(e)},itemComponent:function({item:t,index:r}){const n=ea([t]),o=n.length>0?n:(0,s.__)("Invalid transform","generateblocks-pro");return(0,e.createElement)(Xr.Item,{css:o,swatchColor:"drop-shadow"===t.type&&t?.dropShadow?.color,onDuplicate:()=>{const e=[...f,{...t}];v(e.length-1),E(e)},onEdit:()=>{v(r)}})},dragHandle:!0})),w&&(0,e.createElement)(aa,{currentOption:y,findFilterIndex:S,settings:f,setSettings:E,transitionSettings:l,onStyleChange:t}))),(0,e.createElement)(Zr.PasteModal,{property:"filter",errorMessage:d,showPasteStyles:c,setShowPasteStyles:u,onAddStyles:({pastedValue:e,replaceStyles:t})=>{if(!e||0===e.length)return!1;try{const r=ta(e),n=t?[...r]:[...f,...r];return E(n),u(!1),p(""),!0}catch(e){return p((0,s.__)("Error parsing pasted styles. Please check your CSS and try again.","generateblocks-pro")),!1}}}))}const ia=e=>e.replace(/-webkit-text-shadow:[^;]+;|-moz-text-shadow:[^;]+;/g,""),la=e=>e.replace(/text-shadow/g,"").replace(/webkit/g,"").replace(/\r?\n|\r/g,"").replace(/;/g,"").replace(/:/g,"").trim(),ca=(e=[])=>e.reduce(((e,t)=>{if(t.hidden)return e;const{offsetX:r="",offsetY:n="",blur:o="",color:a=""}=t,s=`${a} ${r} ${n} ${o}`.trim();return s.trim().length?e.length>0?`${e}, ${s}`:`${s}`:e}),"").replace(/,$/,"").trim(),ua=function(){const e=/,(?![^\(]*\))/,t=/\s(?![^(]*\))/,r=/^[0-9]+[a-zA-Z%]+$/,n=e=>{const r=e.split(t),n=a(r[0])?void 0:r[0],o=r.filter((e=>e!==n)),[s,i,l]=o;return{offsetX:s,offsetY:i,blur:l,color:n}},o=e=>{const{offsetX:t=0,offsetY:r=0,blur:n=0,color:o}=e||{};return[o,t,r,n].filter((e=>null!=e)).map((e=>(""+e).trim())).join(" ")},a=e=>r.test(e);return{parse:t=>t?t.split(e).map((e=>e.trim())).map(n):[],stringify:e=>e?.length?e.map(o).join(", "):""}}(),da=["px","em","rem","vw","vh","ch"];function pa({findTextShadowIndex:t,setSettings:r,currentOption:n=null}){const{styles:o,index:a}=t();return n&&(0,e.createElement)(Kr,null,(0,e.createElement)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},(0,e.createElement)($r,{alwaysVisible:!0,as:ve.ColorPicker,value:n?.color||"rgba(0,0,0,1)",tooltip:"Text Shadow Color",onChange:e=>{o[a].color=e,r(o)}})),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,label:"x-Offset",units:da,value:n.offsetX,onChange:e=>{o[a].offsetX=e,r(o)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,label:"y-Offset",units:da,value:n.offsetY,onChange:e=>{o[a].offsetY=e,r(o)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,label:"blur",units:da,value:n?.blur,onChange:e=>{o[a].blur=e,r(o)}}))}function ha({onStyleChange:t,value:r}){var n;const[i,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)(""),[d,p]=(0,a.useState)(!1),[h,m]=(0,a.useState)((()=>ua.parse(r))),[f,g]=(0,a.useState)(null),b=null!==(n=h[f])&&void 0!==n?n:null,v=null!==b,y=(0,yr.useDebounce)(t,0),w=(0,a.useCallback)((function(e){m(e),y("textShadow",ca(e))}),[y]),k=(0,a.useCallback)((()=>{const e=[...h];return{styles:e,index:e[f]?f:-1}}),[h,f]),{styles:E,index:S}=k();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Zr,{items:h,label:"Text Shadow",searchKeywords:["shadows","text-shadow"],cssProp:"textShadow",onAdd:()=>{const e=[...h,{offsetX:"1px",offsetY:"1px",blur:"2px",color:"rgba(0,0,0,1)"}];g(e.length-1),w(e)},isEditing:v,onClickDelete:()=>{E.splice(S,1),w(E),g(null)},onClickDone:()=>{g(null)},dropdownChildren:({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("Options","generateblocks-pro")},!d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuItem,{onClick:()=>{l(!0),t()}},(0,s.__)("Add via paste…","generateblocks-pro"))),(0,e.createElement)(Zr.DeleteAll,{label:(0,s.__)("Delete all text shadow styles","generateblocks-pro"),content:(0,s.__)("This will delete all text shadow styles for the current selector. This operation cannot be undone.","generateblocks-pro"),items:h,onDelete:e=>{w(e),g(null)},onClose:t,confirmDelete:d,setConfirmDelete:p})),!d&&(0,e.createElement)(Zr.LearnMore,{learnMoreLabel:(0,s.__)("Learn more about CSS Text Shadows","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow",onClose:t}))},(0,e.createElement)("div",{className:"gb-text-shadow"},(0,e.createElement)("div",{className:"gb-text-shadow__wrapper"},!v&&(0,e.createElement)("div",null,(0,e.createElement)(Xr,{items:h,dragHandleLabel:(0,s.__)("Reorder Text Shadow","generateblocks-pro"),setItems:e=>{w(e)},itemComponent:function({item:t,index:r}){const n=ca([t]),o=n.length>0?n:(0,s.__)("Invalid text shadow","generateblocks-pro");return(0,e.createElement)(Xr.Item,{css:o,swatchColor:t.color,canDuplicate:n.length>0,onDuplicate:()=>{const e=[...h,{...t}];g(e.length-1),w(e)},onEdit:()=>{g(r)}})},dragHandle:!0})),(0,e.createElement)(pa,{isEditing:v,currentOption:b,findTextShadowIndex:k,setSettings:w}))),(0,e.createElement)(Zr.PasteModal,{property:"text-shadow",errorMessage:c,showPasteStyles:i,setShowPasteStyles:l,onAddStyles:({pastedValue:e,replaceStyles:t})=>{if(!e||0===e.length)return!1;try{const r=ua.parse(la(ia(e))),n=t?[...r]:[...h,...r];return w(n),l(!1),u(""),!0}catch(e){return u((0,s.__)("Error parsing pasted styles. Please check your CSS and try again.","generateblocks-pro")),!1}}})))}const ma=["perspective","rotate","rotate3d","scale","scale3d","skew","translate3d"];function fa(e=[]){return e.reduce(((e,t)=>{const{hidden:r=!1,values:n=[],type:o=""}=t,a=`${o}(${n.join(", ").trim()})`;return r?e:a?e.length>0?`${e} ${a}`:`${a}`:e}),"").trim()}function ga(e=""){const t=function(e){const t=document.createElement("div");return t.style.transform=e,t.style.transform}(e);if(!t)return null;if(["unset","inherit","initial"].includes(t))return{[t]:!0};const r=t.replaceAll(/var\(([^)]+)\)/g,"$1").match(/([A-z\d]+)\(([^)]+)\)/g);return r?r.reduce(((e,t)=>{if(!t)return e;const[r,n]=t.match(/(^[a-z\d]*)|\(([^)]+)\)/g),o=n.replace("(","").replace(")","").split(",").map((e=>{const t=e.trim();return t.startsWith("--")?`var(${t})`:t}));return{...e,[r]:{type:r,values:o,cssText:`${r}${n}`}}}),{}):null}const ba={perspective:["px","em","%","vh","vw"],rotate:["deg"],rotate3d:["deg"],scale:[],scale3d:[],skew:["deg"],translate3d:["px","em","%","vh","vw"]},va={perspective:{cssText:"perspective(0px)",values:["0px"]},rotate:{cssText:"rotate(0deg)",values:["0deg"]},scale:{cssText:"scale(1)",values:["1"]},scale3d:{cssText:"scale3d(1, 1, 1)",values:["1","1","1"]},skew:{cssText:"skew(0deg)",values:["0deg"]},translate3d:{cssText:"translate3d(0px, 0px, 0px)",values:["0px","0px","0px"]},rotate3d:{cssText:"rotate3d(0, 0, 0, 0deg)",values:["0","0","0","0deg"]},custom:{cssText:"",values:[""]}},ya={perspective:"Perspective",translate3d:"Translate",rotate:"Rotate",rotate3d:"Rotate (3d)",scale:"Scale",scale3d:"Scale (3d)",skew:"Skew",custom:(0,s.__)("Custom","generateblocks-pro")},wa=(0,s.__)("Enter any valid transform value here.","generateblocks-pro");function ka({findTransformIndex:t,setSettings:r,settings:n,onStyleChange:i,setNextEditIndex:l,currentOption:c=null,transitionSettings:u=[]}){var d,h;const[m,f]=(0,a.useState)(wa),{styles:g,index:b}=t(),v=null!==(d=c?.values)&&void 0!==d?d:[],y=null!==(h=c?.cssText)&&void 0!==h?h:"";let w=c?.type||"custom";const k=!u.some((e=>["all","transform"].includes(e.transitionProperty))),E=!ma.includes(w);return E&&"custom"!==w&&(w="custom"),c&&(0,e.createElement)(Kr,null,(0,e.createElement)($r,{alwaysVisible:!0,as:o.SelectControl,label:(0,s.__)("Transform type","generateblocks-pro"),value:w,options:[{label:ya.perspective,value:"perspective",disabled:n.some((e=>"perspective"===e.type))},{label:ya.rotate,value:"rotate"},{label:ya.rotate3d,value:"rotate3d"},{label:ya.translate3d,value:"translate3d"},{label:ya.scale,value:"scale"},{label:ya.scale3d,value:"scale3d"},{label:ya.skew,value:"skew"},{label:ya.custom,value:"custom"}],onChange:e=>{g[b].type=e,"custom"!==e&&(g[b]={...g[b],...va[e]}),"perspective"===e&&b>0&&(g.unshift(g.splice(b,1)[0]),l(0)),r(g)}}),E&&(0,e.createElement)($r,{alwaysVisible:!0,as:o.TextControl,label:ya[w],help:m||wa,placeholder:"e.g. rotate(45deg)",onChange:(e="")=>{if(""===e)return g[b].values=[""],g[b].cssText="",r(g),void f(wa);const t=ga(e);if(null===t)return void f((0,s.__)("Invalid value"));if(Object.keys(t).length>1)return void f((0,s.__)("Only one transform value is allowed.","generateblocks-pro"));m!==wa&&f(wa);const n=Object.keys(t)[0];g[b]={type:n,...t[n]},r(g)},value:y}),"translate3d"===w&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:`${ya[w]} X`,value:v[0],onChange:e=>{g[b].values[0]=e,r(g)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:`${ya[w]} Y`,value:v[1],onChange:e=>{g[b].values[1]=e,r(g)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:`${ya[w]} Z`,value:v[2],onChange:e=>{g[b].values[2]=e,r(g)}})),["rotate","skew"].includes(w)&&(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:ya[w],value:v[0],onChange:(e=0)=>{g[b].values[0]=e,r(g)}}),"scale"===w&&(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:ya[w],value:v[0],onChange:e=>{g[b].values[0]=e,r(g)}}),"perspective"===w&&(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:ya[w],value:v[0],onChange:e=>{g[b].values[0]=e,r(g)}}),"rotate3d"===w&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:[],label:`${ya[w]} X`,value:v[0],onChange:e=>{g[b].values[0]=e,r(g)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:[],label:`${ya[w]} Y`,value:v[1],onChange:e=>{g[b].values[1]=e,r(g)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:[],label:`${ya[w]} Z`,value:v[2],onChange:e=>{g[b].values[2]=e,r(g)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:`${ya[w]} Angle`,value:v[3],onChange:e=>{g[b].values[3]=e,r(g)}})),"scale3d"===w&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:`${ya[w]} X`,value:v[0],onChange:e=>{g[b].values[0]=e,r(g)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:`${ya[w]} Y`,value:v[1],onChange:e=>{g[b].values[1]=e,r(g)}}),(0,e.createElement)($r,{alwaysVisible:!0,as:xn,units:ba[w],label:`${ya[w]} Z`,value:v[2],onChange:e=>{g[b].values[2]=e,r(g)}})),k&&(0,e.createElement)(o.Button,{label:(0,s.__)("Automatically add a smooth transition for transforms","generateblocks-pro"),showTooltip:!0,variant:"secondary",size:"compact",icon:p,onClick:()=>{const e=[...u,{transitionProperty:"all",transitionDuration:"0.5s",transitionDelay:"0s",transitionTimingFunction:"ease",transitionProperty:"transform"}],t=Ko(e);i("transition",t,e)}},"Transition"))}function Ea(e){if(!e)return[];const t=ga(e);return null===t?[]:Object.entries(t).map((([e,t])=>{const{disabled:r=!1}=t;return{type:e,...t,id:br(),disabled:"perspective"===e||r}}))}function Sa({onStyleChange:t,value:r="",transition:n=""}){var i;const l=(0,a.useMemo)((()=>Go(n)),[n]),[c,u]=(0,a.useState)((()=>Ea(r))),[d,p]=(0,a.useState)(!1),[h,m]=(0,a.useState)(""),[f,g]=(0,a.useState)(!1),[b,v]=(0,a.useState)(null),y=null!==(i=c[b])&&void 0!==i?i:null,w=null!==y,k=(0,yr.useDebounce)(t,0),E=(0,a.useCallback)((function(e){u(e),k("transform",fa(e))}),[k]),S=(0,a.useCallback)((()=>{const e=[...c];return{styles:e,index:e[b]?b:-1}}),[c,b]),{styles:x,index:C}=S();return(0,e.createElement)(Zr,{items:c,label:"Transform",isEditing:w,cssProp:"transform",onClickDelete:()=>{x.splice(C,1),E(x),v(null)},onClickDone:()=>{v(null)},dropdownChildren:({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("Options","generateblocks-pro")},!f&&(0,e.createElement)(o.MenuItem,{onClick:()=>{p(!0),t()}},(0,s.__)("Add via paste…","generateblocks-pro")),(0,e.createElement)(Zr.DeleteAll,{label:(0,s.__)("Delete all transform styles","generateblocks-pro"),content:(0,s.__)("This will delete all transform styles for the current selector. This operation cannot be undone.","generateblocks-pro"),items:c,onDelete:e=>{E(e),v(null)},onClose:t,confirmDelete:f,setConfirmDelete:g})),!f&&(0,e.createElement)(Zr.LearnMore,{learnMoreLabel:(0,s.__)("Learn more about CSS Transforms","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/transform",onClose:t})),onAdd:()=>{const e=[...c,{type:"translate3d",values:["0px","0px","0px"],cssText:"translate3d(0px, 0px, 0px)"}];v(e.length-1),E(e)},learnMoreLabel:(0,s.__)("Learn more about CSS Transforms","generateblocks-pro"),learnMoreURL:"https://developer.mozilla.org/en-US/docs/Web/CSS/transform"},(0,e.createElement)("div",{className:"gb-transform"},(0,e.createElement)("div",{className:"gb-transform__wrapper"},!w&&(0,e.createElement)("div",null,(0,e.createElement)(Xr,{items:c,dragHandleLabel:(0,s.__)("Reorder Transform","generateblocks-pro"),setItems:e=>{E(e.map((e=>({...e,disabled:"perspective"===e.type}))))},itemComponent:function({item:t,index:r}){const n=fa([t]),o=n.length>0?n:(0,s.__)("Invalid transform","generateblocks-pro"),{type:a,color:i}=t;return(0,e.createElement)(Xr.Item,{css:o,swatchColor:i,canDuplicate:"perspective"!==a,onDuplicate:()=>{const e=[...c,{...t}];v(e.length-1),E(e)},onEdit:()=>{v(r)}})},dragHandle:!0})),w&&(0,e.createElement)(ka,{isEditing:w,currentOption:y,findTransformIndex:S,settings:c,setSettings:E,transitionSettings:l,onStyleChange:t,setNextEditIndex:v}))),(0,e.createElement)(Zr.PasteModal,{property:"transform",errorMessage:h,showPasteStyles:d,setShowPasteStyles:p,onAddStyles:({pastedValue:e,replaceStyles:t})=>{if(!e||0===e.length)return!1;try{const r=Ea(e),n=t?[...r]:[...c,...r],o=n.findIndex((({type:e})=>"perspective"===e));return o>0&&n.unshift(n.splice(o,1)[0]),E(n),p(!1),m(""),!0}catch(e){return m((0,s.__)("Error parsing pasted styles. Please check your CSS and try again.","generateblocks-pro")),!1}}}))}function xa(t){const{styles:r,onStyleChange:n,atRule:a,nestedRule:i,opened:l,scrollAfterOpen:c,onToggle:u,initialOpen:d}=t,{backdropFilter:p="",boxShadow:h="",filter:m="",mixBlendMode:f="",opacity:g="",transform:b="",transformOrigin:v="",transition:y="",visibility:w="",textShadow:k=""}=r;let E=parseFloat(g);return isNaN(E)&&(E=g),(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Effects","generateblocks-pro"),initialOpen:d,icon:(0,e.createElement)(rr,null),open,opened:!!l||void 0,scrollAfterOpen:c,onToggle:u},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)($o,{value:h,onStyleChange:n,atRule:a,nestedRule:i}),(0,e.createElement)(Xo,{value:y,onStyleChange:n,atRule:a,nestedRule:i}),(0,e.createElement)(sa,{value:m,transition:y,onStyleChange:n,atRule:a,nestedRule:i}),(0,e.createElement)(ha,{value:k,onStyleChange:n,atRule:a,nestedRule:i}),(0,e.createElement)(Sa,{value:b,transformOrigin:v,transition:y,onStyleChange:n,atRule:a,nestedRule:i}),(0,e.createElement)($r,{as:o.TextControl,label:"Transform Origin",value:v,placeholder:"ex: center, 50% -100%, etc.",onChange:e=>n("transformOrigin",e),cssProp:"transformOrigin",learnMoreLabel:(0,s.__)("Learn more about transform origin","generateblocks-pro"),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origin"}),(0,e.createElement)(Bo,{onStyleChange:n,opacity:g}),(0,e.createElement)($r,{allowCustomValue:!0,as:o.SelectControl,label:"Visibility",value:w,cssProp:"visibility",options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Visible",value:"visible"},{label:"Hidden",value:"hidden"}],onChange:e=>n("visibility",e),help:(0,s.__)('Using the "hidden" value may cause some block editor elements to become invisible.',"generateblocks-pro")}),(0,e.createElement)($r,{as:o.SelectControl,allowCustomValue:!0,label:"Mix Blend Mode",value:f,cssProp:"mixBlendMode",options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Normal",value:"normal"},{label:"Multiply",value:"multiply"},{label:"Screen",value:"screen"},{label:"Overlay",value:"overlay"},{label:"Darken",value:"darken"},{label:"Lighten",value:"lighten"},{label:"Color Dodge",value:"color-dodge"},{label:"Color Burn",value:"color-burn"},{label:"Hard Light",value:"hard-light"},{label:"Soft Light",value:"soft-light"},{label:"Difference",value:"difference"},{label:"Exclusion",value:"exclusion"},{label:"Hue",value:"hue"},{label:"Saturation",value:"saturation"},{label:"Color",value:"color"},{label:"Luminosity",value:"luminosity"}],onChange:e=>n("mixBlendMode",e)}),(0,e.createElement)($r,{as:o.TextControl,label:"Backdrop Filter",value:p,cssProp:"backdropFilter",onChange:e=>n("backdropFilter",e)})))}function Ca(t){const{styles:r,onStyleChange:n,opened:a,scrollAfterOpen:i,onToggle:l,initialOpen:c}=t,{objectFit:u="",objectPosition:d=""}=r;return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Media","generateblocks-pro"),initialOpen:c,icon:(0,e.createElement)(or,null),opened:!!a||void 0,scrollAfterOpen:i,onToggle:l},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)($r,{as:o.SelectControl,label:"Object Fit",id:"gblocks-object-fit",allowCustomValue:!0,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"fill",value:"fill"},{label:"contain",value:"contain"},{label:"cover",value:"cover"},{label:"none",value:"none"},{label:"scale-down",value:"scale-down"}],value:u,onChange:e=>n("objectFit",e),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro"),cssProp:"objectFit",fallback:!0}),(0,e.createElement)($r,{as:o.TextControl,label:"Object Position",id:"gblocks-object-position",value:d,onChange:e=>n("objectPosition",e),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/object-position",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro"),cssProp:"objectPosition",fallback:!0})))}const _a=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"}));function Oa(t){const{styles:r,onStyleChange:n,opened:a,scrollAfterOpen:i,onToggle:l,initialOpen:c}=t,{listStyleType:u="",listStyleImage:d="",listStylePosition:p="",display:h=""}=r;return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("Lists","generateblocks-pro"),initialOpen:c,icon:_a,opened:!!a||void 0,scrollAfterOpen:i,onToggle:l},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(0,e.createElement)($r,{as:o.SelectControl,label:"List Type",id:"gblocks-list-style-type",options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"none",value:"none"},{label:"disc",value:"disc"},{label:"circle",value:"circle"},{label:"square",value:"square"},{label:"decimal",value:"decimal"},{label:"decimal-leading-zero",value:"decimal-leading-zero"},{label:"lower-roman",value:"lower-roman"},{label:"upper-roman",value:"upper-roman"},{label:"lower-greek",value:"lower-greek"}],value:u,cssProp:"listStyleType",allowCustomValue:!0,onChange:e=>n("listStyleType",e)}),(0,e.createElement)($r,{as:o.TextControl,label:"List Image",id:"gblocks-list-style-image",value:d,allowCustomValue:!0,cssProp:"listStyleImage",onChange:e=>n("listStyleImage",e),help:(0,s.__)("The URL of an image to be used as the list item marker.","generateblocks-pro")}),(0,e.createElement)($r,{id:"gblocks-list-style-position",label:"List Position",as:o.SelectControl,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"Inside",value:"inside"},{label:"Outside",value:"outside"}],help:(0,s.__)("The position of the list item marker.","generateblocks-pro"),allowCustomValue:!0,value:p,cssProp:"listStylePosition",onChange:e=>n("listStylePosition",e)}),!["","list-item"].includes(h)&&(0,e.createElement)(o.Notice,{status:"warning",isDismissible:!1},(0,s.__)("List properties will not apply unless the element's display property is set to list-item","generateblocks-pro"))))}function Ta(t){const{styles:r,onStyleChange:n,nestedRule:a,opened:i,scrollAfterOpen:l,onToggle:c,initialOpen:u}=t,{content:d="",pointerEvents:p="",fill:h="",stroke:m=""}=r;return(0,e.createElement)(o.PanelBody,{title:(0,s.__)("More","generateblocks-pro"),initialOpen:u,icon:ar,opened:!!i||void 0,scrollAfterOpen:l,onToggle:c},(0,e.createElement)(ve.Stack,{gap:"12px",className:"gb-styles-builder-panel__content"},(a.includes(":before")||a.includes(":after"))&&(0,e.createElement)($r,{as:o.TextControl,label:"Content",id:"gblocks-content",value:d,cssProp:"content",fallback:!0,onChange:e=>n("content",e),help:(0,s.__)("The content property is used with the ::before and ::after pseudo-elements and must be wrapped in quotes.","generateblocks-pro")}),(0,e.createElement)($r,{as:o.SelectControl,label:"Pointer Events",id:"gblocks-pointer-events",allowCustomValue:!0,options:[{label:(0,s.__)("Default","generateblocks-pro"),value:""},{label:"auto",value:"auto"},{label:"none",value:"none"}],value:p,cssProp:"pointerEvents",fallback:!0,onChange:e=>n("pointerEvents",e),dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Pointer Events","generateblocks-pro"),onClick:t},(0,s.__)("Use this property to control whether an element can be the target for click/keyboard events. See the documentation link below for a complete list (note: some only apply to SVG tags).","generateblocks-pro")),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro")}),(0,e.createElement)($r,{as:ve.ColorPicker,label:"Fill Color",id:"gblocks-fill",allowCustomValue:!0,value:h,cssProp:"fill",fallback:!0,onChange:e=>n("fill",e),dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Fill","generateblocks-pro"),onClick:t},(0,s.__)("Set the color of an svg element or svg child element.","generateblocks-pro")),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/fill",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro")}),(0,e.createElement)($r,{as:ve.ColorPicker,label:"Stroke Color",id:"gblocks-stroke",allowCustomValue:!0,value:m,cssProp:"stroke",fallback:!0,onChange:e=>n("stroke",e),dropdownChildren:({onClose:t})=>(0,e.createElement)($r.Description,{label:(0,s.__)("About Stroke","generateblocks-pro"),onClick:t},(0,s.__)("Set the stroke (border) color of an svg element or svg child element.","generateblocks-pro")),learnMoreUrl:"https://developer.mozilla.org/en-US/docs/Web/CSS/stroke",learnMoreLabel:(0,s.__)("Learn more about this property.","generateblocks-pro")})))}const Ia={controls:"Q4_95wjbLPOxIvH375IJ",noResults:"WnWPZZWG_5lgPFahXYyv",filtersActive:"qtYUinEI4ZCq2SKlqjOZ",addMargin:"YzcJARI0jtDyHOPN_Pmm",vertical:"u0l1RpwLFjS3kzoimUMX"},Pa={panel:"GHGTIuGFWhqTp_J9_nsx",filtersActive:"wIHdoZo8md5DrJ9sEaM5"};function Ma({filtersActive:t,scope:r,panel:n,search:o="",atRule:s,id:i,...l}){const c=(0,a.useRef)(null),u=!(!t&&!o),d=`gb-styles-builder-open-panels-${r}`,p=JSON.parse(sessionStorage.getItem(d))||[],h=p?.includes(i)||!1;return(0,e.createElement)("div",{ref:c,className:Se(Pa.panel,(t||o)&&Pa.filtersActive)},(0,e.createElement)(n,{...l,opened:u,atRule:s,scrollAfterOpen:!1,filtersActive:t,search:o,initialOpen:h,onToggle:()=>{if(u)return;const e=JSON.parse(sessionStorage.getItem(d))||[],t=e.includes(i);sessionStorage.setItem(d,t?JSON.stringify(e.filter((e=>e!==i))):JSON.stringify([...e,i]))}}))}class Aa extends a.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e,t.componentStack)}render(){return this.state.hasError?this.props.fallback:this.props.children}}function Ra({styles:t,settings:r,onStyleChange:n,nestedRule:i,atRule:l,deviceType:c,filters:u,dispatchFilters:d,currentSelector:p,scope:h=""}){const m=(0,a.useMemo)((()=>{const e=l?t?.[l]:t;return!!e&&Object.keys(e).length>0}),[JSON.stringify(t),l]),f=!!u.activeFilter,g={styles:t,settings:r,onStyleChange:n,nestedRule:i,atRule:l,deviceType:c,filtersActive:f,search:u.search,scope:h};return(0,e.createElement)("div",{key:p+l+i,className:Se("gb-inspector-controls",Ia.controls,(u.search||f)&&"gb-inspector-controls--filtering")},(0,e.createElement)(Aa,{fallback:(0,s.__)("An error has occured, please reload and try again","generateblocks-pro")},(0,e.createElement)(Ma,{id:"layout",panel:In,...g}),(0,e.createElement)(Ma,{id:"sizing",panel:Mn,...g}),(0,e.createElement)(Ma,{id:"spacing",panel:Vn,...g}),(0,e.createElement)(Ma,{id:"borders",panel:qn,...g}),(0,e.createElement)(Ma,{id:"typography",panel:vo,...g}),(0,e.createElement)(Ma,{id:"backgrounds",panel:Do,...g}),(0,e.createElement)(Ma,{id:"position",panel:Fo,...g}),(0,e.createElement)(Ma,{id:"effects",panel:xa,...g}),(0,e.createElement)(Ma,{id:"media",panel:Ca,...g}),(0,e.createElement)(Ma,{id:"lists",panel:Oa,...g}),(0,e.createElement)(Ma,{id:"more",panel:Ta,...g}),!m&&"hide-empty"===u.activeFilter&&(0,e.createElement)(o.Notice,{className:Se(Ia.addMargin,Ia.vertical),isDismissible:!1},(0,s.__)("No styles set.","generateblocks-pro")," ",(0,e.createElement)(o.Button,{className:Ia.resetButton,variant:"link",onClick:()=>{d({type:"RESET"})}},(0,s.__)("Reset filters","generateblocks-pro"))),m&&(0,e.createElement)(o.Notice,{className:Se(Ia.addMargin,Ia.vertical,Ia.noResults,(f||u.search)&&Ia.filtersActive),isDismissible:!1},(0,s.__)("No results found.","generateblocks-pro"))))}function La({query:e,type:t}){const r=new URLSearchParams(window.location.search);r.set(`gb-${t}-styles-search`,e),window.history.replaceState(null,"",`${window.location.pathname}?${r.toString()}`)}function za(e,t){switch(t.type){case"SET_SEARCH":const{query:r}=t.payload;return La(t.payload),{...e,search:r};case"SET_FILTER":return{...e,activeFilter:t.payload};default:return e}}function Da(e,t){return Array.isArray(e)?e.some((e=>Da(e,t))):"string"==typeof e?e.toLowerCase().includes(t.toLowerCase()):!!(0,a.isValidElement)(e)&&Fa(e,t)}function Fa(e,t){const{children:r}=e.props;return"string"==typeof r?r.toLowerCase().includes(t.toLowerCase()):!!Array.isArray(r)&&r.some((e=>"string"==typeof e?e.toLowerCase().includes(t.toLowerCase()):(0,a.isValidElement)(e)&&Fa(e,t)))}function Ba(t){const{settings:r,onStyleChange:n,nestedRule:i,onNestedRuleChange:l,onAtRuleChange:u,onEditStyle:d,atRule:p,currentSelector:h,onUpdateKey:m,onDeleteStyle:g,styles:b={},allStyles:v={},customAtRules:y=[],selectorShortcuts:w={},visibleSelectors:k=[],scope:E="",canManageStyles:S=!0,setLocalTab:x=()=>{},cancelEditStyle:C=()=>{},allowCustomAtRule:_=!0,allowCustomAdvancedSelector:O=!0}=t,[T,I]=(0,a.useState)(!1),[P,M]=(0,a.useState)(!1),A=(0,a.useMemo)((()=>me(p)),[p]),R=(0,a.useRef)(),[L,z]=(0,a.useState)(null),D=y.length>0?y:fe;(0,a.useEffect)((()=>{if(!R?.current)return;const e=R.current.closest(".editor-sidebar");if(e){const t=e.querySelectorAll(".components-panel__header"),r=Array.from(t).find((e=>null!==e.offsetParent));r&&z(r)}}),[L,R?.current]);const F=(0,a.useMemo)((()=>L?L.getBoundingClientRect().height:"50"),[L]);(0,f.addFilter)("generateblocks.control.atRule","generateblocks-pro/control/functions",(()=>A)),(0,f.addFilter)("generateblocks.control.currentSelector","generateblocks-pro/control/functions",(()=>h)),(0,f.addFilter)("generateblocks.permissions.canManageStyles","generateblocks-pro/permissions",(()=>S)),(0,f.addFilter)("generateblocks.indicators.onEditStyle","generateblocks-pro/indicators/functions",(()=>d)),(0,f.addFilter)("generateblocks.indicators.setLocalTab","generateblocks-pro/indicators/functions",(()=>x)),(0,f.addFilter)("generateblocks.indicators.cancelEditStyle","generateblocks-pro/indicators/functions",(()=>C)),(0,f.addFilter)("generateblocks.indicators.onAtRuleChange","generateblocks-pro/indicators/functions",(()=>u));const[B,N]=(0,a.useReducer)(za,{search:"",activeFilter:""},(()=>{var e;return{search:null!==(e=new URLSearchParams(window.location.search).get(`gb-${E}-styles-search`))&&void 0!==e?e:"",activeFilter:""}})),j=(0,yr.useDebounce)(N,200),V=!!B.activeFilter;return(0,f.addFilter)("generateblocks.control.filters","generateblocks-pro/styles-builder/filters",(()=>B)),(0,f.addFilter)("generateblocks.control.visible","generateblocks-pro/styles-builder/controls-search",((e,t,r)=>{let n=!0;if(!B.search&&!B.activeFilter)return n;const{label:o="",searchKeywords:a=[],matchType:s="",cssProp:i}=t;switch(B.activeFilter){case"hide-empty":n=""!==r?.value||void 0===r?.value;break;case"show-inherited":n=""!==s||!1===i}if(!n||!B.search)return n;const l=Array.from(new Set(a)),c=B.search.split(",").filter(Boolean);return c.length>1?c.some((e=>Da([o,...l],e.trim()))):Da([o,...l],B.search)}),10,2),(0,f.addFilter)("generateblocks.indicators.setSearch","generateblocks-pro/styles-builder/indicators/props",(()=>(e,t)=>{La({query:e,type:t}),N({type:"SET_SEARCH",payload:{query:e,type:t}})})),(0,e.createElement)("div",{ref:R},(0,e.createElement)("div",{className:Se("gb-styles-builder",c.component)},(0,e.createElement)(nn,{allStyles:v,onUpdateKey:m,onNestedRuleChange:l,currentSelector:h,nestedRule:i,showSelectorOptions:T,setShowSelectorOptions:I,onDeleteStyle:g,selectorShortcuts:w,visibleSelectors:k,allowCustomAdvancedSelector:O}),!T&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:c.atRuleFilters,style:{"--topOffset":`${F}px`}},!!D.length>0&&(0,e.createElement)(be,{atRule:A,onAtRuleChange:u,onNestedRuleChange:l,defaultAtRules:D,allStyles:v,showAtRuleOptions:P,setShowAtRuleOptions:M,onUpdateKey:m,nestedRule:i,onDeleteStyle:g,allowCustomAtRule:_}),!P&&(0,e.createElement)("div",{className:c.filters},(0,e.createElement)(o.SearchControl,{__nextHasNoMarginBottom:!0,value:B.search,onChange:e=>{j({type:"SET_SEARCH",payload:{query:e,type:E}})},label:(0,s.__)("Search Controls","generateblocks-pro"),hideLabelFromVision:!0,className:c.search}),(0,e.createElement)(o.DropdownMenu,{variant:"link",size:"small",icon:on,label:(0,s.__)("Filter Controls","generateblocks-pro"),className:c.filtersDropdown,popoverProps:{className:c.filtersPopover},toggleProps:{size:"compact",isPressed:V}},(({onClose:t})=>(0,e.createElement)(o.MenuGroup,{label:(0,s.__)("Controls Visibility","generateblocks-pro")},(0,e.createElement)(o.MenuItemsChoice,{value:B.activeFilter,choices:[{label:(0,s.__)("Show all","generateblocks-pro"),value:""},{info:(0,s.__)("Hide controls with no value set.","generateblocks-pro"),label:(0,s.__)("Hide empty controls","generateblocks-pro"),value:"hide-empty"},{info:(0,s.__)("Show inherited local or global styles.","generateblocks-pro"),label:(0,s.__)("Show inherited values","generateblocks-pro"),value:"show-inherited"}],onSelect:e=>{N({type:"SET_FILTER",payload:e}),t()}})))))),!P&&(0,e.createElement)(Ra,{currentSelector:h,settings:r,styles:b,onStyleChange:n,onNestedRuleChange:l,nestedRule:i,atRule:A,filters:B,dispatchFilters:N,scope:E}))))}const Na={data:{},settings:{}},ja={setStyles:e=>({type:"SET_DATA",payload:e}),addStyle:(e,t,r,n)=>({type:"ADD_STYLE",payload:{property:e,value:t,atRule:r,nestedRule:n}}),updateKey:(e,t,r)=>({type:"UPDATE_KEY",payload:{oldKey:e,newKey:t,nestedRule:r}}),deleteStyle:(e,t)=>({type:"DELETE_STYLE",payload:{key:e,nestedRule:t}})},Va={getStyles:(e,t="",r="")=>ue(e.data,t,r)};function Ua(e=Na,t){if("SET_DATA"===t.type)return Object.assign({},e,{data:t.payload});if("ADD_STYLE"===t.type){const{property:r,value:n,atRule:o,nestedRule:a}=t.payload;let{data:s}=e;return"object"==typeof r?Object.entries(r).forEach((([e,t])=>{s=ie(s,e,t,o,a)})):Array.isArray(r)?r.forEach((e=>{s=ie(s,e.property,e.value,o,a)})):s=ie(e.data,r,n,o,a),{...e,data:s}}if("UPDATE_KEY"===t.type){const{oldKey:r,newKey:n,nestedRule:o}=t.payload,a=le(e.data,r,n,o);return{...e,data:a}}if("DELETE_STYLE"===t.type){const{key:r,nestedRule:n}=t.payload,o=ce(e.data,r,n);return{...e,data:o}}return{...e}}const Ha="",Wa={setNestedRule:e=>({type:"SET_DATA",payload:e})},$a={getNestedRule:e=>e};function qa(e=Ha,t){return"SET_DATA"===t.type?t.payload:e}const Ga={data:{}},Za={setCurrentStyle:e=>({type:"SET_DATA",payload:e})},Ka={currentStyle:e=>e.data};function Ya(e=Ga,t){return"SET_DATA"===t.type?Object.assign({},e,{data:t.payload}):{...e}}const Qa="",Ja={setAtRule:e=>({type:"SET_DATA",payload:e})},Xa={getAtRule:e=>e};function es(e=Qa,t){return"SET_DATA"===t.type?t.payload:e}const ts="",rs={setFilters:e=>({type:"SET_DATA",payload:e})},ns={getFilters:e=>e};function os(e=ts,t){return"SET_DATA"===t.type?t.payload:e}})(),n})(),e.exports=t()}},t={},r=function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}(555);(window.gb=window.gb||{}).stylesBuilder=r})(); \ No newline at end of file